diff --git a/packages/mask/package.json b/packages/mask/package.json index 88f87bd9823b..528c03fd6530 100644 --- a/packages/mask/package.json +++ b/packages/mask/package.json @@ -8,7 +8,7 @@ "@dimensiondev/holoflows-kit": "^0.9.0-20210902104757-7c3d0d0", "@dimensiondev/mask-wallet-core": "0.1.0-20211013082857-eb62e5f", "@dimensiondev/metamask-extension-provider": "3.0.6-20210519045409-1835d4d", - "@dimensiondev/snapshot.js": "0.2.0", + "@snapshot-labs/snapshot.js": "^0.3.31", "@ethersproject/abi": "^5.4.0", "@ethersproject/address": "^5.0.4", "@ethersproject/providers": "^5.0.9", diff --git a/packages/mask/src/plugins/Snapshot/SNSAdaptor/hooks/usePower.ts b/packages/mask/src/plugins/Snapshot/SNSAdaptor/hooks/usePower.ts index ad931aaba7c2..4730f77b391b 100644 --- a/packages/mask/src/plugins/Snapshot/SNSAdaptor/hooks/usePower.ts +++ b/packages/mask/src/plugins/Snapshot/SNSAdaptor/hooks/usePower.ts @@ -12,7 +12,6 @@ export function usePower(identifier: ProposalIdentifier) { const { value: blockNumber = 0 } = useBlockNumber() return useAsyncRetry(async () => { if (!account) return 0 - if (!blockNumber) return 0 return ( await PluginSnapshotRPC.getScores( proposal.snapshot, diff --git a/packages/mask/src/plugins/Snapshot/SNSAdaptor/hooks/useVotes.ts b/packages/mask/src/plugins/Snapshot/SNSAdaptor/hooks/useVotes.ts index 11d00b1adf14..857a4b016921 100644 --- a/packages/mask/src/plugins/Snapshot/SNSAdaptor/hooks/useVotes.ts +++ b/packages/mask/src/plugins/Snapshot/SNSAdaptor/hooks/useVotes.ts @@ -17,8 +17,6 @@ async function Suspender(identifier: ProposalIdentifier) { const { value: blockNumber = 0 } = useBlockNumber() const { payload: proposal } = useProposal(identifier.id) - if (!blockNumber) return [] - const voters = proposal.votes.map((v) => v.voter) const scores = await PluginSnapshotRPC.getScores( proposal.snapshot, diff --git a/packages/mask/src/plugins/Snapshot/Worker/apis/index.ts b/packages/mask/src/plugins/Snapshot/Worker/apis/index.ts index 9c7590b443a8..5c6c4431de6d 100644 --- a/packages/mask/src/plugins/Snapshot/Worker/apis/index.ts +++ b/packages/mask/src/plugins/Snapshot/Worker/apis/index.ts @@ -1,7 +1,8 @@ -import ss from '@dimensiondev/snapshot.js' +import ss from '@snapshot-labs/snapshot.js' import type { Proposal, Profile3Box, ProposalIdentifier, VoteSuccess, RawVote, Strategy } from '../../types' import Services from '../../../../extension/service' import { transform } from 'lodash-unified' +import { SNAPSHOT_GET_SCORE_API } from '../../constants' export async function fetchProposal(id: string) { const { votes, proposal } = await fetchProposalFromGraphql(id) @@ -117,9 +118,9 @@ export async function getScores( space, strategies, network, - provider, voters, blockTag, + SNAPSHOT_GET_SCORE_API, ) return scores.map((score) => transform(score, function (result: { [key in string]: number }, val, key: string) { diff --git a/packages/mask/src/plugins/Snapshot/constants.ts b/packages/mask/src/plugins/Snapshot/constants.ts index a66507c06e9f..4fb9acc89979 100644 --- a/packages/mask/src/plugins/Snapshot/constants.ts +++ b/packages/mask/src/plugins/Snapshot/constants.ts @@ -1,2 +1,3 @@ export const SNAPSHOT_PLUGIN_NAME = 'Snapshot' export const SNAPSHOT_PLUGIN_ID = 'org.snapshot' +export const SNAPSHOT_GET_SCORE_API = 'https://score.snapshot.org/api/scores' diff --git a/packages/mask/src/social-network-adaptor/minds.com/injection/ToolboxHint_UI.tsx b/packages/mask/src/social-network-adaptor/minds.com/injection/ToolboxHint_UI.tsx index 69d048cea97d..cfa651887ea8 100644 --- a/packages/mask/src/social-network-adaptor/minds.com/injection/ToolboxHint_UI.tsx +++ b/packages/mask/src/social-network-adaptor/minds.com/injection/ToolboxHint_UI.tsx @@ -5,9 +5,13 @@ import { styled, ListItemButton, Typography, ListItemIcon, useMediaQuery } from const mindsBreakPoint = 1221 /** px */ -const Container = styled('div')`` +const Container = styled('div')` + height: 45px; + margin-bottom: 10px; +` const Item = styled(ListItemButton)` border-radius: 8px; + height: 45px; padding: 4px 12px 4px 0; color: ${({ theme }) => (theme.palette.mode === 'dark' ? '#b8c1ca' : '#72727c')}; &:hover { @@ -32,6 +36,7 @@ const Text = styled(Typography)` const Icon = styled(ListItemIcon)` color: inherit; min-width: 48px; + margin-left: 6px; @media screen and (max-width: ${mindsBreakPoint}px) { min-width: 0; } diff --git a/packages/mask/src/social-network-adaptor/minds.com/utils/selector.ts b/packages/mask/src/social-network-adaptor/minds.com/utils/selector.ts index 37e03baffcf1..ed0d973592b9 100644 --- a/packages/mask/src/social-network-adaptor/minds.com/utils/selector.ts +++ b/packages/mask/src/social-network-adaptor/minds.com/utils/selector.ts @@ -23,7 +23,7 @@ export const postEditorInTimelineSelector: () => LiveSelector = () => querySelector('m-newsfeed m-composer', true) export const toolBoxInSideBarSelector: () => LiveSelector = () => - querySelector('.m-sidebarNavigation__list li:nth-child(11)') + querySelector('.m-sidebarNavigation__list li:nth-child(7)') export const postEditorDraftContentSelector = () => { return querySelector('m-composer__modal m-composer__textarea textarea.m-composerTextarea__message') diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 89896e4fb59b..40bfc15a743a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -284,7 +284,6 @@ importers: '@dimensiondev/holoflows-kit': ^0.9.0-20210902104757-7c3d0d0 '@dimensiondev/mask-wallet-core': 0.1.0-20211013082857-eb62e5f '@dimensiondev/metamask-extension-provider': 3.0.6-20210519045409-1835d4d - '@dimensiondev/snapshot.js': 0.2.0 '@dimensiondev/webextension-shim': 0.0.3-20210823035705-4257e12 '@ethersproject/abi': ^5.4.0 '@ethersproject/address': ^5.0.4 @@ -319,6 +318,7 @@ importers: '@pmmmwh/react-refresh-webpack-plugin': ^0.5.4 '@servie/events': ^3.0.0 '@sinonjs/text-encoding': ^0.7.1 + '@snapshot-labs/snapshot.js': ^0.3.31 '@swc/core': ^1.2.133 '@types/bn.js': ^4.11.6 '@types/d3': 5.16.4 @@ -422,7 +422,6 @@ importers: '@dimensiondev/holoflows-kit': 0.9.0-20210902104757-7c3d0d0_webextension-polyfill@0.8.0 '@dimensiondev/mask-wallet-core': 0.1.0-20211013082857-eb62e5f_protobufjs@6.11.2 '@dimensiondev/metamask-extension-provider': 3.0.6-20210519045409-1835d4d - '@dimensiondev/snapshot.js': 0.2.0 '@ethersproject/abi': 5.4.0 '@ethersproject/address': 5.4.0 '@ethersproject/providers': 5.4.2 @@ -454,6 +453,7 @@ importers: '@msgpack/msgpack': 2.7.1 '@servie/events': 3.0.0 '@sinonjs/text-encoding': 0.7.1 + '@snapshot-labs/snapshot.js': 0.3.31 '@types/bn.js': 4.11.6 '@types/d3': 5.16.4 '@types/elliptic': 6.4.14 @@ -3478,30 +3478,6 @@ packages: tmp: 0.0.33 dev: true - /@dimensiondev/snapshot.js/0.2.0: - resolution: {integrity: sha512-X2H6U8GmTK6vUavgoyj62sj2Yj1R3IR6KfI/s/Cg9PnTExmJw0O96q7/58maBvLuH+mjKJ5D9Er/J/oq5YJWxA==, tarball: download/@dimensiondev/snapshot.js/0.2.0/9f82b8dcec0e2f9708b5349078f2a6f08afdb23f3a1402b6b96f5822c41284fc} - engines: {node: '>=14'} - dependencies: - '@ethersproject/abi': 5.4.0 - '@ethersproject/address': 5.4.0 - '@ethersproject/bignumber': 5.4.1 - '@ethersproject/bytes': 5.4.0 - '@ethersproject/contracts': 5.4.1 - '@ethersproject/hash': 5.4.0 - '@ethersproject/providers': 5.4.3 - '@ethersproject/solidity': 5.4.0 - '@ethersproject/strings': 5.4.0 - '@ethersproject/wallet': 5.4.0 - ajv: 8.6.2 - ajv-formats: 2.1.0 - cross-fetch: 3.1.4 - json-to-graphql-query: 2.1.0 - lodash.set: 4.3.2 - transitivePeerDependencies: - - bufferutil - - utf-8-validate - dev: false - /@dimensiondev/stego-js/0.11.1-20201027083223-8ab41be: resolution: {integrity: sha512-lm49qcX2O40Nn+AGKN6J4qrpPHaffGnvUI3mCh+obyiZxT9H5/vZv1B+SUm2bXq8r2LeLHIeW90x1lpyg1roTQ==, tarball: download/@dimensiondev/stego-js/0.11.1-20201027083223-8ab41be/2d41418365c7ea41e10de432e82b0707c3a3a3b70a20a3733276162eeb6c4bcd} hasBin: true @@ -3793,7 +3769,7 @@ packages: dependencies: '@ethersproject/address': 5.4.0 '@ethersproject/bignumber': 5.4.1 - '@ethersproject/bytes': 5.4.0 + '@ethersproject/bytes': 5.5.0 '@ethersproject/constants': 5.4.0 '@ethersproject/hash': 5.4.0 '@ethersproject/keccak256': 5.4.0 @@ -3819,7 +3795,7 @@ packages: resolution: {integrity: sha512-vPBR7HKUBY0lpdllIn7tLIzNN7DrVnhCLKSzY0l8WAwxz686m/aL7ASDzrVxV93GJtIub6N2t4dfZ29CkPOxgA==} dependencies: '@ethersproject/bignumber': 5.4.1 - '@ethersproject/bytes': 5.4.0 + '@ethersproject/bytes': 5.5.0 '@ethersproject/logger': 5.4.0 '@ethersproject/networks': 5.4.2 '@ethersproject/properties': 5.4.0 @@ -3831,7 +3807,7 @@ packages: dependencies: '@ethersproject/abstract-provider': 5.4.0 '@ethersproject/bignumber': 5.4.1 - '@ethersproject/bytes': 5.4.0 + '@ethersproject/bytes': 5.5.0 '@ethersproject/logger': 5.4.0 '@ethersproject/properties': 5.4.0 dev: false @@ -3841,8 +3817,8 @@ packages: dependencies: '@ethersproject/abstract-provider': 5.4.0 '@ethersproject/bignumber': 5.4.1 - '@ethersproject/bytes': 5.4.0 - '@ethersproject/logger': 5.4.0 + '@ethersproject/bytes': 5.5.0 + '@ethersproject/logger': 5.5.0 '@ethersproject/properties': 5.4.0 /@ethersproject/address/5.4.0: @@ -3862,7 +3838,7 @@ packages: /@ethersproject/basex/5.4.0: resolution: {integrity: sha512-J07+QCVJ7np2bcpxydFVf/CuYo9mZ7T73Pe7KQY4c1lRlrixMeblauMxHXD0MPwFmUHZIILDNViVkykFBZylbg==} dependencies: - '@ethersproject/bytes': 5.4.0 + '@ethersproject/bytes': 5.5.0 '@ethersproject/properties': 5.4.0 dev: false @@ -3877,7 +3853,7 @@ packages: /@ethersproject/bignumber/5.4.1: resolution: {integrity: sha512-fJhdxqoQNuDOk6epfM7yD6J8Pol4NUCy1vkaGAkuujZm0+lNow//MKu1hLhRiYV4BsOHyBv5/lsTjF+7hWwhJg==} dependencies: - '@ethersproject/bytes': 5.4.0 + '@ethersproject/bytes': 5.5.0 '@ethersproject/logger': 5.4.0 bn.js: 4.12.0 @@ -3890,7 +3866,6 @@ packages: resolution: {integrity: sha512-ABvc7BHWhZU9PNM/tANm/Qx4ostPGadAuQzWTr3doklZOhDlmcBqclrQe/ZXUIj3K8wC28oYeuRa+A37tX9kog==} dependencies: '@ethersproject/logger': 5.5.0 - dev: false /@ethersproject/constants/5.4.0: resolution: {integrity: sha512-tzjn6S7sj9+DIIeKTJLjK9WGN2Tj0P++Z8ONEIlZjyoTkBuODN+0VfhAyYksKi43l1Sx9tX2VlFfzjfmr5Wl3Q==} @@ -3905,7 +3880,7 @@ packages: '@ethersproject/abstract-signer': 5.4.1 '@ethersproject/address': 5.4.0 '@ethersproject/bignumber': 5.4.1 - '@ethersproject/bytes': 5.4.0 + '@ethersproject/bytes': 5.5.0 '@ethersproject/constants': 5.4.0 '@ethersproject/logger': 5.4.0 '@ethersproject/properties': 5.4.0 @@ -3920,9 +3895,9 @@ packages: '@ethersproject/abstract-signer': 5.4.1 '@ethersproject/address': 5.4.0 '@ethersproject/bignumber': 5.4.1 - '@ethersproject/bytes': 5.4.0 + '@ethersproject/bytes': 5.5.0 '@ethersproject/constants': 5.4.0 - '@ethersproject/logger': 5.4.0 + '@ethersproject/logger': 5.5.0 '@ethersproject/properties': 5.4.0 '@ethersproject/transactions': 5.4.0 dev: false @@ -3933,9 +3908,9 @@ packages: '@ethersproject/abstract-signer': 5.4.1 '@ethersproject/address': 5.4.0 '@ethersproject/bignumber': 5.4.1 - '@ethersproject/bytes': 5.4.0 + '@ethersproject/bytes': 5.5.0 '@ethersproject/keccak256': 5.4.0 - '@ethersproject/logger': 5.4.0 + '@ethersproject/logger': 5.5.0 '@ethersproject/properties': 5.4.0 '@ethersproject/strings': 5.4.0 @@ -3945,11 +3920,11 @@ packages: '@ethersproject/abstract-signer': 5.4.1 '@ethersproject/basex': 5.4.0 '@ethersproject/bignumber': 5.4.1 - '@ethersproject/bytes': 5.4.0 - '@ethersproject/logger': 5.4.0 + '@ethersproject/bytes': 5.5.0 + '@ethersproject/logger': 5.5.0 '@ethersproject/pbkdf2': 5.4.0 '@ethersproject/properties': 5.4.0 - '@ethersproject/sha2': 5.4.0 + '@ethersproject/sha2': 5.5.0 '@ethersproject/signing-key': 5.4.0 '@ethersproject/strings': 5.4.0 '@ethersproject/transactions': 5.4.0 @@ -3961,10 +3936,10 @@ packages: dependencies: '@ethersproject/abstract-signer': 5.4.1 '@ethersproject/address': 5.4.0 - '@ethersproject/bytes': 5.4.0 + '@ethersproject/bytes': 5.5.0 '@ethersproject/hdnode': 5.4.0 '@ethersproject/keccak256': 5.4.0 - '@ethersproject/logger': 5.4.0 + '@ethersproject/logger': 5.5.0 '@ethersproject/pbkdf2': 5.4.0 '@ethersproject/properties': 5.4.0 '@ethersproject/random': 5.4.0 @@ -3977,7 +3952,7 @@ packages: /@ethersproject/keccak256/5.4.0: resolution: {integrity: sha512-FBI1plWet+dPUvAzPAeHzRKiPpETQzqSUWR1wXJGHVWi4i8bOSrpC3NwpkPjgeXG7MnugVc1B42VbfnQikyC/A==} dependencies: - '@ethersproject/bytes': 5.4.0 + '@ethersproject/bytes': 5.5.0 js-sha3: 0.5.7 /@ethersproject/logger/5.4.0: @@ -3985,7 +3960,6 @@ packages: /@ethersproject/logger/5.5.0: resolution: {integrity: sha512-rIY/6WPm7T8n3qS2vuHTUBPdXHl+rGxWxW5okDfo9J4Z0+gRRZT0msvUdIJkE4/HS29GUMziwGaaKO2bWONBrg==} - dev: false /@ethersproject/networks/5.4.1: resolution: {integrity: sha512-8SvowCKz9Uf4xC5DTKI8+il8lWqOr78kmiqAVLYT9lzB8aSmJHQMD1GSuJI0CW4hMAnzocpGpZLgiMdzsNSPig==} @@ -3996,7 +3970,7 @@ packages: /@ethersproject/networks/5.4.2: resolution: {integrity: sha512-eekOhvJyBnuibfJnhtK46b8HimBc5+4gqpvd1/H9LEl7Q7/qhsIhM81dI9Fcnjpk3jB1aTy6bj0hz3cifhNeYw==} dependencies: - '@ethersproject/logger': 5.4.0 + '@ethersproject/logger': 5.5.0 /@ethersproject/pbkdf2/5.4.0: resolution: {integrity: sha512-x94aIv6tiA04g6BnazZSLoRXqyusawRyZWlUhKip2jvoLpzJuLb//KtMM6PEovE47pMbW+Qe1uw+68ameJjB7g==} @@ -4018,7 +3992,7 @@ packages: '@ethersproject/address': 5.4.0 '@ethersproject/basex': 5.4.0 '@ethersproject/bignumber': 5.4.1 - '@ethersproject/bytes': 5.4.0 + '@ethersproject/bytes': 5.5.0 '@ethersproject/constants': 5.4.0 '@ethersproject/hash': 5.4.0 '@ethersproject/logger': 5.4.0 @@ -4099,15 +4073,15 @@ packages: '@ethersproject/address': 5.4.0 '@ethersproject/basex': 5.4.0 '@ethersproject/bignumber': 5.4.1 - '@ethersproject/bytes': 5.4.0 + '@ethersproject/bytes': 5.5.0 '@ethersproject/constants': 5.4.0 '@ethersproject/hash': 5.4.0 - '@ethersproject/logger': 5.4.0 - '@ethersproject/networks': 5.4.1 + '@ethersproject/logger': 5.5.0 + '@ethersproject/networks': 5.4.2 '@ethersproject/properties': 5.4.0 '@ethersproject/random': 5.4.0 '@ethersproject/rlp': 5.4.0 - '@ethersproject/sha2': 5.4.0 + '@ethersproject/sha2': 5.5.0 '@ethersproject/strings': 5.4.0 '@ethersproject/transactions': 5.4.0 '@ethersproject/web': 5.4.0 @@ -4121,20 +4095,20 @@ packages: /@ethersproject/random/5.4.0: resolution: {integrity: sha512-pnpWNQlf0VAZDEOVp1rsYQosmv2o0ITS/PecNw+mS2/btF8eYdspkN0vIXrCMtkX09EAh9bdk8GoXmFXM1eAKw==} dependencies: - '@ethersproject/bytes': 5.4.0 + '@ethersproject/bytes': 5.5.0 '@ethersproject/logger': 5.4.0 dev: false /@ethersproject/rlp/5.4.0: resolution: {integrity: sha512-0I7MZKfi+T5+G8atId9QaQKHRvvasM/kqLyAH4XxBCBchAooH2EX5rL9kYZWwcm3awYV+XC7VF6nLhfeQFKVPg==} dependencies: - '@ethersproject/bytes': 5.4.0 + '@ethersproject/bytes': 5.5.0 '@ethersproject/logger': 5.4.0 /@ethersproject/sha2/5.4.0: resolution: {integrity: sha512-siheo36r1WD7Cy+bDdE1BJ8y0bDtqXCOxRMzPa4bV1TGt/eTUUt03BHoJNB6reWJD8A30E/pdJ8WFkq+/uz4Gg==} dependencies: - '@ethersproject/bytes': 5.4.0 + '@ethersproject/bytes': 5.5.0 '@ethersproject/logger': 5.4.0 hash.js: 1.1.7 dev: false @@ -4150,8 +4124,8 @@ packages: /@ethersproject/signing-key/5.4.0: resolution: {integrity: sha512-q8POUeywx6AKg2/jX9qBYZIAmKSB4ubGXdQ88l40hmATj29JnG5pp331nAWwwxPn2Qao4JpWHNZsQN+bPiSW9A==} dependencies: - '@ethersproject/bytes': 5.4.0 - '@ethersproject/logger': 5.4.0 + '@ethersproject/bytes': 5.5.0 + '@ethersproject/logger': 5.5.0 '@ethersproject/properties': 5.4.0 bn.js: 4.12.0 elliptic: 6.5.4 @@ -4170,7 +4144,7 @@ packages: /@ethersproject/strings/5.4.0: resolution: {integrity: sha512-k/9DkH5UGDhv7aReXLluFG5ExurwtIpUfnDNhQA29w896Dw3i4uDTz01Quaptbks1Uj9kI8wo9tmW73wcIEaWA==} dependencies: - '@ethersproject/bytes': 5.4.0 + '@ethersproject/bytes': 5.5.0 '@ethersproject/constants': 5.4.0 '@ethersproject/logger': 5.4.0 @@ -4179,7 +4153,7 @@ packages: dependencies: '@ethersproject/address': 5.4.0 '@ethersproject/bignumber': 5.4.1 - '@ethersproject/bytes': 5.4.0 + '@ethersproject/bytes': 5.5.0 '@ethersproject/constants': 5.4.0 '@ethersproject/keccak256': 5.4.0 '@ethersproject/logger': 5.4.0 @@ -4202,12 +4176,12 @@ packages: '@ethersproject/abstract-signer': 5.4.1 '@ethersproject/address': 5.4.0 '@ethersproject/bignumber': 5.4.1 - '@ethersproject/bytes': 5.4.0 + '@ethersproject/bytes': 5.5.0 '@ethersproject/hash': 5.4.0 '@ethersproject/hdnode': 5.4.0 '@ethersproject/json-wallets': 5.4.0 '@ethersproject/keccak256': 5.4.0 - '@ethersproject/logger': 5.4.0 + '@ethersproject/logger': 5.5.0 '@ethersproject/properties': 5.4.0 '@ethersproject/random': 5.4.0 '@ethersproject/signing-key': 5.4.0 @@ -4219,7 +4193,7 @@ packages: resolution: {integrity: sha512-1bUusGmcoRLYgMn6c1BLk1tOKUIFuTg8j+6N8lYlbMpDesnle+i3pGSagGNvwjaiLo4Y5gBibwctpPRmjrh4Og==} dependencies: '@ethersproject/base64': 5.4.0 - '@ethersproject/bytes': 5.4.0 + '@ethersproject/bytes': 5.5.0 '@ethersproject/logger': 5.4.0 '@ethersproject/properties': 5.4.0 '@ethersproject/strings': 5.4.0 @@ -4227,9 +4201,9 @@ packages: /@ethersproject/wordlists/5.4.0: resolution: {integrity: sha512-FemEkf6a+EBKEPxlzeVgUaVSodU7G0Na89jqKjmWMlDB0tomoU8RlEMgUvXyqtrg8N4cwpLh8nyRnm1Nay1isA==} dependencies: - '@ethersproject/bytes': 5.4.0 + '@ethersproject/bytes': 5.5.0 '@ethersproject/hash': 5.4.0 - '@ethersproject/logger': 5.4.0 + '@ethersproject/logger': 5.5.0 '@ethersproject/properties': 5.4.0 '@ethersproject/strings': 5.4.0 dev: false @@ -5372,6 +5346,26 @@ packages: resolution: {integrity: sha512-+iTbntw2IZPb/anVDbypzfQa+ay64MW0Zo8aJ8gZPWMMK6/OubMVb6lUPMagqjOPnmtauXnFCACVl3O7ogjeqQ==} dev: false + /@snapshot-labs/snapshot.js/0.3.31: + resolution: {integrity: sha512-MM0L/NMA2yUupeirubJWOkqyd8OhUvXdSLVGI4nKZ9hhX9fFaI8trbBY9k/j0XjT+riIg4yum/VEYaOSg5tlWg==} + engines: {node: '>=14'} + dependencies: + '@ethersproject/abi': 5.4.0 + '@ethersproject/bytes': 5.5.0 + '@ethersproject/contracts': 5.4.1 + '@ethersproject/hash': 5.4.0 + '@ethersproject/providers': 5.4.3 + '@ethersproject/wallet': 5.4.0 + ajv: 8.9.0 + ajv-formats: 2.1.1 + cross-fetch: 3.1.4 + json-to-graphql-query: 2.1.0 + lodash.set: 4.3.2 + transitivePeerDependencies: + - bufferutil + - utf-8-validate + dev: false + /@solana/buffer-layout/3.0.0: resolution: {integrity: sha512-MVdgAKKL39tEs0l8je0hKaXLQFb7Rdfb0Xg2LjFZd8Lfdazkg6xiS98uAZrEKvaoF3i4M95ei9RydkGIDMeo3w==} engines: {node: '>=5.10'} @@ -9046,15 +9040,6 @@ packages: ajv: 6.12.6 dev: true - /ajv-formats/2.1.0: - resolution: {integrity: sha512-USH2jBb+C/hIpwD2iRjp0pe0k+MvzG0mlSn/FIdCgQhUb9ALPRjt2KIQdfZDS9r0ZIeUAg7gOu9KL0PFqGqr5Q==} - peerDependenciesMeta: - ajv: - optional: true - dependencies: - ajv: 8.6.2 - dev: false - /ajv-formats/2.1.1: resolution: {integrity: sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==} peerDependenciesMeta: @@ -9062,7 +9047,6 @@ packages: optional: true dependencies: ajv: 8.9.0 - dev: true /ajv-keywords/3.5.2_ajv@6.12.6: resolution: {integrity: sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==} @@ -9088,15 +9072,6 @@ packages: json-schema-traverse: 0.4.1 uri-js: 4.4.1 - /ajv/8.6.2: - resolution: {integrity: sha512-9807RlWAgT564wT+DjeyU5OFMPjmzxVobvDFmNAhY+5zD6A2ly3jDp6sgnfyDtlIQ+7H97oc/DGCzzfu9rjw9w==} - dependencies: - fast-deep-equal: 3.1.3 - json-schema-traverse: 1.0.0 - require-from-string: 2.0.2 - uri-js: 4.4.1 - dev: false - /ajv/8.9.0: resolution: {integrity: sha512-qOKJyNj/h+OWx7s5DePL6Zu1KeM9jPZhwBqs+7DzP6bGOvqzVCSf0xueYmVuaC/oQ/VtS2zLMLHdQFbkka+XDQ==} dependencies: @@ -9104,7 +9079,6 @@ packages: json-schema-traverse: 1.0.0 require-from-string: 2.0.2 uri-js: 4.4.1 - dev: true /align-text/0.1.4: resolution: {integrity: sha1-DNkKVhCT810KmSVsIrcGlDP60Rc=}