@aptos-labs/js-pro 0.1.0-experimental.50 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +134 -0
- package/LICENSE +201 -0
- package/README.md +6 -42
- package/dist/client.d.ts +136 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/constants/endpoints.d.ts +0 -2
- package/dist/constants/endpoints.d.ts.map +1 -1
- package/dist/errors/base.d.ts.map +1 -1
- package/dist/errors/clients.d.ts +10 -0
- package/dist/errors/clients.d.ts.map +1 -0
- package/dist/errors/index.d.ts +3 -2
- package/dist/errors/index.d.ts.map +1 -1
- package/dist/errors/transactions.d.ts +6 -0
- package/dist/errors/transactions.d.ts.map +1 -0
- package/dist/index.d.ts +7 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +180 -145
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +414 -0
- package/dist/index.mjs.map +1 -0
- package/dist/mutations/buildTransaction.d.ts +12 -0
- package/dist/mutations/buildTransaction.d.ts.map +1 -0
- package/dist/mutations/index.d.ts +6 -9
- package/dist/mutations/index.d.ts.map +1 -1
- package/dist/mutations/signAndSubmitTransaction.d.ts +13 -0
- package/dist/mutations/signAndSubmitTransaction.d.ts.map +1 -0
- package/dist/mutations/signTransaction.d.ts +16 -0
- package/dist/mutations/signTransaction.d.ts.map +1 -0
- package/dist/mutations/simulateTransaction.d.ts +10 -0
- package/dist/mutations/simulateTransaction.d.ts.map +1 -0
- package/dist/mutations/submitTransaction.d.ts +11 -0
- package/dist/mutations/submitTransaction.d.ts.map +1 -0
- package/dist/mutations/waitForTransaction.d.ts +9 -0
- package/dist/mutations/waitForTransaction.d.ts.map +1 -0
- package/dist/operations/generated/operations.d.ts +403 -89
- package/dist/operations/generated/operations.d.ts.map +1 -1
- package/dist/operations/generated/sdk.d.ts +50 -45
- package/dist/operations/generated/sdk.d.ts.map +1 -1
- package/dist/operations/generated/types.d.ts +402 -8
- package/dist/operations/generated/types.d.ts.map +1 -1
- package/dist/operations/index.d.ts +21 -22
- package/dist/operations/index.d.ts.map +1 -1
- package/dist/operations/scalars.d.ts +6 -0
- package/dist/operations/scalars.d.ts.map +1 -1
- package/dist/queries/fetchAccountCoins.d.ts +25 -0
- package/dist/queries/fetchAccountCoins.d.ts.map +1 -0
- package/dist/queries/fetchAccountCollections.d.ts +25 -0
- package/dist/queries/fetchAccountCollections.d.ts.map +1 -0
- package/dist/queries/fetchAccountTokens.d.ts +29 -0
- package/dist/queries/fetchAccountTokens.d.ts.map +1 -0
- package/dist/queries/fetchAccountTransactions.d.ts +41 -0
- package/dist/queries/fetchAccountTransactions.d.ts.map +1 -0
- package/dist/queries/fetchAddressFromName.d.ts +13 -0
- package/dist/queries/fetchAddressFromName.d.ts.map +1 -0
- package/dist/queries/fetchAptBalance.d.ts +12 -0
- package/dist/queries/fetchAptBalance.d.ts.map +1 -0
- package/dist/queries/fetchBalance.d.ts +16 -0
- package/dist/queries/fetchBalance.d.ts.map +1 -0
- package/dist/queries/fetchEstimatedGasPrice.d.ts +10 -0
- package/dist/queries/fetchEstimatedGasPrice.d.ts.map +1 -0
- package/dist/queries/fetchEvents.d.ts +7 -0
- package/dist/queries/fetchEvents.d.ts.map +1 -0
- package/dist/queries/fetchFungibleAssetMetadata.d.ts +9 -0
- package/dist/queries/fetchFungibleAssetMetadata.d.ts.map +1 -0
- package/dist/queries/fetchLedgerInfo.d.ts +17 -0
- package/dist/queries/fetchLedgerInfo.d.ts.map +1 -0
- package/dist/queries/fetchNameFromAddress.d.ts +13 -0
- package/dist/queries/fetchNameFromAddress.d.ts.map +1 -0
- package/dist/queries/fetchProcessorStatus.d.ts +12 -0
- package/dist/queries/fetchProcessorStatus.d.ts.map +1 -0
- package/dist/queries/fetchResourceType.d.ts +34 -0
- package/dist/queries/fetchResourceType.d.ts.map +1 -0
- package/dist/queries/fetchResources.d.ts +7 -0
- package/dist/queries/fetchResources.d.ts.map +1 -0
- package/dist/queries/fetchTokenData.d.ts +12 -0
- package/dist/queries/fetchTokenData.d.ts.map +1 -0
- package/dist/queries/fetchTransaction.d.ts +11 -0
- package/dist/queries/fetchTransaction.d.ts.map +1 -0
- package/dist/queries/fetchUserTransactions.d.ts +14 -0
- package/dist/queries/fetchUserTransactions.d.ts.map +1 -0
- package/dist/queries/fetchViewModule.d.ts +7 -0
- package/dist/queries/fetchViewModule.d.ts.map +1 -0
- package/dist/queries/getClients.d.ts +15 -0
- package/dist/queries/getClients.d.ts.map +1 -0
- package/dist/queries/index.d.ts +20 -29
- package/dist/queries/index.d.ts.map +1 -1
- package/dist/types/accounts.d.ts +3 -5
- package/dist/types/accounts.d.ts.map +1 -1
- package/dist/types/activities.d.ts +45 -0
- package/dist/types/activities.d.ts.map +1 -0
- package/dist/types/build.d.ts +12 -0
- package/dist/types/build.d.ts.map +1 -0
- package/dist/types/{coins.d.ts → fungibleAssets.d.ts} +3 -4
- package/dist/types/fungibleAssets.d.ts.map +1 -0
- package/dist/types/index.d.ts +8 -13
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/networks.d.ts +9 -13
- package/dist/types/networks.d.ts.map +1 -1
- package/dist/types/parameters.d.ts +8 -0
- package/dist/types/parameters.d.ts.map +1 -0
- package/dist/types/parsers.d.ts +33 -0
- package/dist/types/parsers.d.ts.map +1 -0
- package/dist/types/resources.d.ts +51 -0
- package/dist/types/resources.d.ts.map +1 -0
- package/dist/types/signers.d.ts +44 -0
- package/dist/types/signers.d.ts.map +1 -0
- package/dist/types/tokens.d.ts +19 -54
- package/dist/types/tokens.d.ts.map +1 -1
- package/dist/types/transactions.d.ts +22 -66
- package/dist/types/transactions.d.ts.map +1 -1
- package/dist/utils/convert.d.ts +2 -2
- package/dist/utils/convert.d.ts.map +1 -1
- package/dist/utils/explorer.d.ts +7 -0
- package/dist/utils/explorer.d.ts.map +1 -0
- package/dist/utils/{fungibleAsset.d.ts → fungibleAssets.d.ts} +1 -1
- package/dist/utils/fungibleAssets.d.ts.map +1 -0
- package/dist/utils/index.d.ts +7 -19
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/lib.d.ts +7 -0
- package/dist/utils/lib.d.ts.map +1 -0
- package/dist/utils/normalize.d.ts +28 -0
- package/dist/utils/normalize.d.ts.map +1 -0
- package/dist/utils/{object.d.ts → objects.d.ts} +2 -2
- package/dist/utils/objects.d.ts.map +1 -0
- package/dist/utils/pagination.d.ts +14 -0
- package/dist/utils/pagination.d.ts.map +1 -1
- package/dist/utils/tokens.d.ts +0 -5
- package/dist/utils/tokens.d.ts.map +1 -1
- package/dist/utils/transactions/TransactionParser.d.ts +57 -0
- package/dist/utils/transactions/TransactionParser.d.ts.map +1 -0
- package/dist/utils/transactions/index.d.ts +7 -0
- package/dist/utils/transactions/index.d.ts.map +1 -0
- package/dist/utils/transactions/parsers/CoinEventParser.d.ts +28 -0
- package/dist/utils/transactions/parsers/CoinEventParser.d.ts.map +1 -0
- package/dist/utils/transactions/parsers/CoinStoreWritesetParser.d.ts +24 -0
- package/dist/utils/transactions/parsers/CoinStoreWritesetParser.d.ts.map +1 -0
- package/dist/utils/transactions/parsers/FungibleAssetEventParser.d.ts +22 -0
- package/dist/utils/transactions/parsers/FungibleAssetEventParser.d.ts.map +1 -0
- package/dist/utils/transactions/parsers/FungibleAssetStoreWritesetParser.d.ts +18 -0
- package/dist/utils/transactions/parsers/FungibleAssetStoreWritesetParser.d.ts.map +1 -0
- package/dist/utils/transactions/parsers/ObjectOwnersWritesetParser.d.ts +14 -0
- package/dist/utils/transactions/parsers/ObjectOwnersWritesetParser.d.ts.map +1 -0
- package/dist/utils/transactions/shared.d.ts +15 -0
- package/dist/utils/transactions/shared.d.ts.map +1 -0
- package/dist/utils/units.d.ts.map +1 -1
- package/package.json +48 -45
- package/src/client.ts +344 -0
- package/src/constants/endpoints.ts +3 -0
- package/src/errors/base.ts +23 -0
- package/src/errors/clients.ts +26 -0
- package/src/errors/index.ts +6 -0
- package/src/errors/transactions.ts +12 -0
- package/src/index.ts +10 -0
- package/src/mutations/buildTransaction.ts +80 -0
- package/src/mutations/index.ts +9 -0
- package/src/mutations/signAndSubmitTransaction.ts +56 -0
- package/src/mutations/signTransaction.ts +36 -0
- package/src/mutations/simulateTransaction.ts +43 -0
- package/src/mutations/submitTransaction.ts +56 -0
- package/src/mutations/waitForTransaction.ts +34 -0
- package/src/operations/generated/operations.ts +165 -0
- package/src/operations/generated/sdk.ts +505 -0
- package/src/operations/generated/types.ts +11226 -0
- package/src/operations/index.ts +17 -0
- package/src/operations/scalars.ts +18 -0
- package/src/operations/schemas/account.gql +408 -0
- package/src/operations/schemas/staking.gql +53 -0
- package/src/queries/fetchAccountCoins.ts +90 -0
- package/src/queries/fetchAccountCollections.ts +90 -0
- package/src/queries/fetchAccountTokens.ts +106 -0
- package/src/queries/fetchAccountTransactions.ts +104 -0
- package/src/queries/fetchAddressFromName.ts +31 -0
- package/src/queries/fetchAptBalance.ts +29 -0
- package/src/queries/fetchBalance.ts +40 -0
- package/src/queries/fetchEstimatedGasPrice.ts +28 -0
- package/src/queries/fetchEvents.ts +23 -0
- package/src/queries/fetchFungibleAssetMetadata.ts +35 -0
- package/src/queries/fetchLedgerInfo.ts +41 -0
- package/src/queries/fetchNameFromAddress.ts +31 -0
- package/src/queries/fetchProcessorStatus.ts +29 -0
- package/src/queries/fetchResourceType.ts +81 -0
- package/src/queries/fetchResources.ts +27 -0
- package/src/queries/fetchTokenData.ts +43 -0
- package/src/queries/fetchTransaction.ts +34 -0
- package/src/queries/fetchUserTransactions.ts +57 -0
- package/src/queries/fetchViewModule.ts +23 -0
- package/src/queries/getClients.ts +38 -0
- package/src/queries/index.ts +23 -0
- package/src/types/accounts.ts +9 -0
- package/src/types/activities.ts +51 -0
- package/src/types/build.ts +17 -0
- package/src/types/fungibleAssets.ts +31 -0
- package/src/types/index.ts +11 -0
- package/src/types/networks.ts +21 -0
- package/src/types/parameters.ts +11 -0
- package/src/types/parsers.ts +90 -0
- package/src/types/resources.ts +34 -0
- package/src/types/signers.ts +65 -0
- package/src/types/tokens.ts +48 -0
- package/src/types/transactions.ts +33 -0
- package/src/utils/convert.ts +32 -0
- package/src/utils/explorer.ts +18 -0
- package/src/utils/fungibleAssets.ts +32 -0
- package/src/utils/index.ts +10 -0
- package/src/utils/lib.ts +34 -0
- package/src/utils/names.ts +51 -0
- package/src/utils/normalize.ts +274 -0
- package/src/utils/objects.ts +35 -0
- package/src/utils/pagination.ts +93 -0
- package/src/utils/tokens.ts +13 -0
- package/src/utils/transactions/TransactionParser.ts +172 -0
- package/src/utils/transactions/index.ts +8 -0
- package/src/utils/transactions/parsers/CoinEventParser.ts +94 -0
- package/src/utils/transactions/parsers/CoinStoreWritesetParser.ts +62 -0
- package/src/utils/transactions/parsers/FungibleAssetEventParser.ts +76 -0
- package/src/utils/transactions/parsers/FungibleAssetStoreWritesetParser.ts +38 -0
- package/src/utils/transactions/parsers/ObjectOwnersWritesetParser.ts +30 -0
- package/src/utils/transactions/shared.ts +36 -0
- package/src/utils/units.ts +86 -0
- package/dist/client/client.d.ts +0 -196
- package/dist/client/client.d.ts.map +0 -1
- package/dist/client/index.d.ts +0 -2
- package/dist/client/index.d.ts.map +0 -1
- package/dist/constants/coins.d.ts +0 -32
- package/dist/constants/coins.d.ts.map +0 -1
- package/dist/constants/contracts.d.ts +0 -10
- package/dist/constants/contracts.d.ts.map +0 -1
- package/dist/constants/fragments.d.ts +0 -3
- package/dist/constants/fragments.d.ts.map +0 -1
- package/dist/constants/index.d.ts +0 -12
- package/dist/constants/index.d.ts.map +0 -1
- package/dist/constants/lists/devnetList.d.ts +0 -4
- package/dist/constants/lists/devnetList.d.ts.map +0 -1
- package/dist/constants/lists/mainnetList.d.ts +0 -4
- package/dist/constants/lists/mainnetList.d.ts.map +0 -1
- package/dist/constants/lists/testnetList.d.ts +0 -4
- package/dist/constants/lists/testnetList.d.ts.map +0 -1
- package/dist/constants/metadata.d.ts +0 -2
- package/dist/constants/metadata.d.ts.map +0 -1
- package/dist/constants/networks.d.ts +0 -64
- package/dist/constants/networks.d.ts.map +0 -1
- package/dist/constants/numbers.d.ts +0 -5
- package/dist/constants/numbers.d.ts.map +0 -1
- package/dist/constants/time.d.ts +0 -11
- package/dist/constants/time.d.ts.map +0 -1
- package/dist/constants/units.d.ts +0 -4
- package/dist/constants/units.d.ts.map +0 -1
- package/dist/errors/common.d.ts +0 -50
- package/dist/errors/common.d.ts.map +0 -1
- package/dist/index.cjs +0 -379
- package/dist/index.cjs.map +0 -1
- package/dist/mutations/buildTransaction/buildTransaction.d.ts +0 -19
- package/dist/mutations/buildTransaction/buildTransaction.d.ts.map +0 -1
- package/dist/mutations/buildTransaction/index.d.ts +0 -2
- package/dist/mutations/buildTransaction/index.d.ts.map +0 -1
- package/dist/mutations/fundAccount/fundAccount.d.ts +0 -9
- package/dist/mutations/fundAccount/fundAccount.d.ts.map +0 -1
- package/dist/mutations/fundAccount/index.d.ts +0 -2
- package/dist/mutations/fundAccount/index.d.ts.map +0 -1
- package/dist/mutations/signAndSubmitRawTransaction/index.d.ts +0 -2
- package/dist/mutations/signAndSubmitRawTransaction/index.d.ts.map +0 -1
- package/dist/mutations/signAndSubmitRawTransaction/signAndSubmitRawTransaction.d.ts +0 -17
- package/dist/mutations/signAndSubmitRawTransaction/signAndSubmitRawTransaction.d.ts.map +0 -1
- package/dist/mutations/signAndSubmitTransaction/index.d.ts +0 -2
- package/dist/mutations/signAndSubmitTransaction/index.d.ts.map +0 -1
- package/dist/mutations/signAndSubmitTransaction/signAndSubmitTransaction.d.ts +0 -18
- package/dist/mutations/signAndSubmitTransaction/signAndSubmitTransaction.d.ts.map +0 -1
- package/dist/mutations/signBuffer/index.d.ts +0 -2
- package/dist/mutations/signBuffer/index.d.ts.map +0 -1
- package/dist/mutations/signBuffer/signBuffer.d.ts +0 -16
- package/dist/mutations/signBuffer/signBuffer.d.ts.map +0 -1
- package/dist/mutations/signMessage/index.d.ts +0 -2
- package/dist/mutations/signMessage/index.d.ts.map +0 -1
- package/dist/mutations/signMessage/signMessage.d.ts +0 -15
- package/dist/mutations/signMessage/signMessage.d.ts.map +0 -1
- package/dist/mutations/signTransaction/index.d.ts +0 -2
- package/dist/mutations/signTransaction/index.d.ts.map +0 -1
- package/dist/mutations/signTransaction/signTransaction.d.ts +0 -17
- package/dist/mutations/signTransaction/signTransaction.d.ts.map +0 -1
- package/dist/mutations/simulateTransaction/index.d.ts +0 -2
- package/dist/mutations/simulateTransaction/index.d.ts.map +0 -1
- package/dist/mutations/simulateTransaction/simulateTransaction.d.ts +0 -10
- package/dist/mutations/simulateTransaction/simulateTransaction.d.ts.map +0 -1
- package/dist/mutations/submitTransaction/index.d.ts +0 -2
- package/dist/mutations/submitTransaction/index.d.ts.map +0 -1
- package/dist/mutations/submitTransaction/submitTransaction.d.ts +0 -15
- package/dist/mutations/submitTransaction/submitTransaction.d.ts.map +0 -1
- package/dist/queries/fetchAccountActivities/fetchAccountActivities.d.ts +0 -13
- package/dist/queries/fetchAccountActivities/fetchAccountActivities.d.ts.map +0 -1
- package/dist/queries/fetchAccountActivities/index.d.ts +0 -2
- package/dist/queries/fetchAccountActivities/index.d.ts.map +0 -1
- package/dist/queries/fetchAccountActivities/mockData.d.ts +0 -140
- package/dist/queries/fetchAccountActivities/mockData.d.ts.map +0 -1
- package/dist/queries/fetchAccountCoins/fetchAccountCoins.d.ts +0 -16
- package/dist/queries/fetchAccountCoins/fetchAccountCoins.d.ts.map +0 -1
- package/dist/queries/fetchAccountCoins/index.d.ts +0 -2
- package/dist/queries/fetchAccountCoins/index.d.ts.map +0 -1
- package/dist/queries/fetchAccountCollections/fetchAccountCollections.d.ts +0 -14
- package/dist/queries/fetchAccountCollections/fetchAccountCollections.d.ts.map +0 -1
- package/dist/queries/fetchAccountCollections/index.d.ts +0 -2
- package/dist/queries/fetchAccountCollections/index.d.ts.map +0 -1
- package/dist/queries/fetchAccountTokens/fetchAccountTokens.d.ts +0 -17
- package/dist/queries/fetchAccountTokens/fetchAccountTokens.d.ts.map +0 -1
- package/dist/queries/fetchAccountTokens/index.d.ts +0 -2
- package/dist/queries/fetchAccountTokens/index.d.ts.map +0 -1
- package/dist/queries/fetchAccountTotalTokens/fetchAccountTotalTokens.d.ts +0 -7
- package/dist/queries/fetchAccountTotalTokens/fetchAccountTotalTokens.d.ts.map +0 -1
- package/dist/queries/fetchAccountTotalTokens/index.d.ts +0 -2
- package/dist/queries/fetchAccountTotalTokens/index.d.ts.map +0 -1
- package/dist/queries/fetchAccountTransactions/fetchAccountTransactions.d.ts +0 -13
- package/dist/queries/fetchAccountTransactions/fetchAccountTransactions.d.ts.map +0 -1
- package/dist/queries/fetchAccountTransactions/index.d.ts +0 -2
- package/dist/queries/fetchAccountTransactions/index.d.ts.map +0 -1
- package/dist/queries/fetchAccountTransactions/mockData.d.ts +0 -10
- package/dist/queries/fetchAccountTransactions/mockData.d.ts.map +0 -1
- package/dist/queries/fetchAddressFromName/fetchAddressFromName.d.ts +0 -26
- package/dist/queries/fetchAddressFromName/fetchAddressFromName.d.ts.map +0 -1
- package/dist/queries/fetchAddressFromName/index.d.ts +0 -2
- package/dist/queries/fetchAddressFromName/index.d.ts.map +0 -1
- package/dist/queries/fetchAptBalance/fetchAptBalance.d.ts +0 -6
- package/dist/queries/fetchAptBalance/fetchAptBalance.d.ts.map +0 -1
- package/dist/queries/fetchAptBalance/index.d.ts +0 -2
- package/dist/queries/fetchAptBalance/index.d.ts.map +0 -1
- package/dist/queries/fetchCoinInfo/fetchCoinInfo.d.ts +0 -11
- package/dist/queries/fetchCoinInfo/fetchCoinInfo.d.ts.map +0 -1
- package/dist/queries/fetchCoinInfo/index.d.ts +0 -2
- package/dist/queries/fetchCoinInfo/index.d.ts.map +0 -1
- package/dist/queries/fetchEvents/fetchEvents.d.ts +0 -9
- package/dist/queries/fetchEvents/fetchEvents.d.ts.map +0 -1
- package/dist/queries/fetchEvents/index.d.ts +0 -2
- package/dist/queries/fetchEvents/index.d.ts.map +0 -1
- package/dist/queries/fetchFaucetStatus/fetchFaucetStatus.d.ts +0 -10
- package/dist/queries/fetchFaucetStatus/fetchFaucetStatus.d.ts.map +0 -1
- package/dist/queries/fetchFaucetStatus/index.d.ts +0 -2
- package/dist/queries/fetchFaucetStatus/index.d.ts.map +0 -1
- package/dist/queries/fetchFungibleAssetMetadata/fetchFungibleAssetMetadata.d.ts +0 -9
- package/dist/queries/fetchFungibleAssetMetadata/fetchFungibleAssetMetadata.d.ts.map +0 -1
- package/dist/queries/fetchFungibleAssetMetadata/index.d.ts +0 -2
- package/dist/queries/fetchFungibleAssetMetadata/index.d.ts.map +0 -1
- package/dist/queries/fetchGasPrice/fetchGasPrice.d.ts +0 -7
- package/dist/queries/fetchGasPrice/fetchGasPrice.d.ts.map +0 -1
- package/dist/queries/fetchGasPrice/index.d.ts +0 -2
- package/dist/queries/fetchGasPrice/index.d.ts.map +0 -1
- package/dist/queries/fetchIndexedTokenData/fetchIndexedTokenData.d.ts +0 -17
- package/dist/queries/fetchIndexedTokenData/fetchIndexedTokenData.d.ts.map +0 -1
- package/dist/queries/fetchIndexedTokenData/index.d.ts +0 -2
- package/dist/queries/fetchIndexedTokenData/index.d.ts.map +0 -1
- package/dist/queries/fetchIndexerProcessorAvailability/fetchIndexerProcessorAvailability.d.ts +0 -17
- package/dist/queries/fetchIndexerProcessorAvailability/fetchIndexerProcessorAvailability.d.ts.map +0 -1
- package/dist/queries/fetchIndexerProcessorAvailability/index.d.ts +0 -2
- package/dist/queries/fetchIndexerProcessorAvailability/index.d.ts.map +0 -1
- package/dist/queries/fetchIsValidMetadata/fetchIsValidMetadata.d.ts +0 -9
- package/dist/queries/fetchIsValidMetadata/fetchIsValidMetadata.d.ts.map +0 -1
- package/dist/queries/fetchIsValidMetadata/index.d.ts +0 -2
- package/dist/queries/fetchIsValidMetadata/index.d.ts.map +0 -1
- package/dist/queries/fetchNodeStatus/fetchNodeStatus.d.ts +0 -11
- package/dist/queries/fetchNodeStatus/fetchNodeStatus.d.ts.map +0 -1
- package/dist/queries/fetchNodeStatus/index.d.ts +0 -2
- package/dist/queries/fetchNodeStatus/index.d.ts.map +0 -1
- package/dist/queries/fetchOwnedDigitalAssets/fetchOwnedDigitalAssets.d.ts +0 -74
- package/dist/queries/fetchOwnedDigitalAssets/fetchOwnedDigitalAssets.d.ts.map +0 -1
- package/dist/queries/fetchOwnedDigitalAssets/index.d.ts +0 -2
- package/dist/queries/fetchOwnedDigitalAssets/index.d.ts.map +0 -1
- package/dist/queries/fetchResources/fetchResources.d.ts +0 -21
- package/dist/queries/fetchResources/fetchResources.d.ts.map +0 -1
- package/dist/queries/fetchResources/index.d.ts +0 -2
- package/dist/queries/fetchResources/index.d.ts.map +0 -1
- package/dist/queries/fetchTokenAcquiredDate/fetchTokenAcquiredDate.d.ts +0 -12
- package/dist/queries/fetchTokenAcquiredDate/fetchTokenAcquiredDate.d.ts.map +0 -1
- package/dist/queries/fetchTokenAcquiredDate/index.d.ts +0 -2
- package/dist/queries/fetchTokenAcquiredDate/index.d.ts.map +0 -1
- package/dist/queries/fetchTokenActivities/fetchTokenActivities.d.ts +0 -17
- package/dist/queries/fetchTokenActivities/fetchTokenActivities.d.ts.map +0 -1
- package/dist/queries/fetchTokenActivities/index.d.ts +0 -2
- package/dist/queries/fetchTokenActivities/index.d.ts.map +0 -1
- package/dist/queries/fetchTokenActivities/mockData.d.ts +0 -30
- package/dist/queries/fetchTokenActivities/mockData.d.ts.map +0 -1
- package/dist/queries/fetchTokenDataWithAddress/fetchTokenDataWithAddress.d.ts +0 -18
- package/dist/queries/fetchTokenDataWithAddress/fetchTokenDataWithAddress.d.ts.map +0 -1
- package/dist/queries/fetchTokenDataWithAddress/index.d.ts +0 -2
- package/dist/queries/fetchTokenDataWithAddress/index.d.ts.map +0 -1
- package/dist/queries/fetchTokenMetadata/fetchTokenMetadata.d.ts +0 -9
- package/dist/queries/fetchTokenMetadata/fetchTokenMetadata.d.ts.map +0 -1
- package/dist/queries/fetchTokenMetadata/index.d.ts +0 -2
- package/dist/queries/fetchTokenMetadata/index.d.ts.map +0 -1
- package/dist/queries/fetchTopPriceChanges/fetchTopPriceChanges.d.ts +0 -15
- package/dist/queries/fetchTopPriceChanges/fetchTopPriceChanges.d.ts.map +0 -1
- package/dist/queries/fetchTopPriceChanges/index.d.ts +0 -2
- package/dist/queries/fetchTopPriceChanges/index.d.ts.map +0 -1
- package/dist/queries/fetchTransaction/fetchTransaction.d.ts +0 -10
- package/dist/queries/fetchTransaction/fetchTransaction.d.ts.map +0 -1
- package/dist/queries/fetchTransaction/index.d.ts +0 -2
- package/dist/queries/fetchTransaction/index.d.ts.map +0 -1
- package/dist/queries/fetchWaitForTransaction/fetchWaitForTransaction.d.ts +0 -11
- package/dist/queries/fetchWaitForTransaction/fetchWaitForTransaction.d.ts.map +0 -1
- package/dist/queries/fetchWaitForTransaction/index.d.ts +0 -2
- package/dist/queries/fetchWaitForTransaction/index.d.ts.map +0 -1
- package/dist/queries/getClients/getClients.d.ts +0 -18
- package/dist/queries/getClients/getClients.d.ts.map +0 -1
- package/dist/queries/getClients/index.d.ts +0 -2
- package/dist/queries/getClients/index.d.ts.map +0 -1
- package/dist/queries/getCoinList/getCoinList.d.ts +0 -17
- package/dist/queries/getCoinList/getCoinList.d.ts.map +0 -1
- package/dist/queries/getCoinList/index.d.ts +0 -2
- package/dist/queries/getCoinList/index.d.ts.map +0 -1
- package/dist/queries/getExplorerUrl/getExplorerUrl.d.ts +0 -7
- package/dist/queries/getExplorerUrl/getExplorerUrl.d.ts.map +0 -1
- package/dist/queries/getExplorerUrl/index.d.ts +0 -2
- package/dist/queries/getExplorerUrl/index.d.ts.map +0 -1
- package/dist/types/activity.d.ts +0 -171
- package/dist/types/activity.d.ts.map +0 -1
- package/dist/types/coins.d.ts.map +0 -1
- package/dist/types/event.d.ts +0 -55
- package/dist/types/event.d.ts.map +0 -1
- package/dist/types/resource.d.ts +0 -222
- package/dist/types/resource.d.ts.map +0 -1
- package/dist/types/serialization.d.ts +0 -19
- package/dist/types/serialization.d.ts.map +0 -1
- package/dist/types/signer.d.ts +0 -34
- package/dist/types/signer.d.ts.map +0 -1
- package/dist/types/staking.d.ts +0 -48
- package/dist/types/staking.d.ts.map +0 -1
- package/dist/types/swaps.d.ts +0 -49
- package/dist/types/swaps.d.ts.map +0 -1
- package/dist/types/tokenMetadata.d.ts +0 -47
- package/dist/types/tokenMetadata.d.ts.map +0 -1
- package/dist/utils/accounts.d.ts +0 -4
- package/dist/utils/accounts.d.ts.map +0 -1
- package/dist/utils/activity/index.d.ts +0 -2
- package/dist/utils/activity/index.d.ts.map +0 -1
- package/dist/utils/activity/transform.d.ts +0 -26
- package/dist/utils/activity/transform.d.ts.map +0 -1
- package/dist/utils/apt.d.ts +0 -5
- package/dist/utils/apt.d.ts.map +0 -1
- package/dist/utils/cache.d.ts +0 -2
- package/dist/utils/cache.d.ts.map +0 -1
- package/dist/utils/dates.d.ts +0 -2
- package/dist/utils/dates.d.ts.map +0 -1
- package/dist/utils/fungibleAsset.d.ts.map +0 -1
- package/dist/utils/ipfs.d.ts +0 -98
- package/dist/utils/ipfs.d.ts.map +0 -1
- package/dist/utils/move/abort.d.ts +0 -84
- package/dist/utils/move/abort.d.ts.map +0 -1
- package/dist/utils/move/error.d.ts +0 -50
- package/dist/utils/move/error.d.ts.map +0 -1
- package/dist/utils/move/index.d.ts +0 -4
- package/dist/utils/move/index.d.ts.map +0 -1
- package/dist/utils/move/status.d.ts +0 -12
- package/dist/utils/move/status.d.ts.map +0 -1
- package/dist/utils/numbers.d.ts +0 -19
- package/dist/utils/numbers.d.ts.map +0 -1
- package/dist/utils/object.d.ts.map +0 -1
- package/dist/utils/parsers.d.ts +0 -20
- package/dist/utils/parsers.d.ts.map +0 -1
- package/dist/utils/payloads/buildCoinTransferPayload.d.ts +0 -8
- package/dist/utils/payloads/buildCoinTransferPayload.d.ts.map +0 -1
- package/dist/utils/payloads/buildFungibleAssetTransferPayload.d.ts +0 -8
- package/dist/utils/payloads/buildFungibleAssetTransferPayload.d.ts.map +0 -1
- package/dist/utils/payloads/buildNaturalCoinTransferPayload.d.ts +0 -11
- package/dist/utils/payloads/buildNaturalCoinTransferPayload.d.ts.map +0 -1
- package/dist/utils/payloads/index.d.ts +0 -4
- package/dist/utils/payloads/index.d.ts.map +0 -1
- package/dist/utils/resource.d.ts +0 -49
- package/dist/utils/resource.d.ts.map +0 -1
- package/dist/utils/transactions/utils.d.ts +0 -14
- package/dist/utils/transactions/utils.d.ts.map +0 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
# @aptos-labs/js-pro
|
|
2
|
+
|
|
3
|
+
## 0.1.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 3ab379b: Fix `useAddressFromName` and `useNameFromAddress` resolving to `undefined` instead of `null`
|
|
8
|
+
- 47c56ba: Add default empty objects to js-pro queries
|
|
9
|
+
- b6c39c8: Allow network specific API keys
|
|
10
|
+
- ff32dd0: Fix missing query keys for useSimulateTransaction
|
|
11
|
+
- 7ebca81: Fix explorer url to accept pathname
|
|
12
|
+
- 1335293: Add README.md
|
|
13
|
+
- ad3bbe0: Export TransactionParser
|
|
14
|
+
- 4fb9cb5: Default queries/mutations to use empty object if possible
|
|
15
|
+
- f57c51a: `useAccountTransactions` will now provide the entryFunction
|
|
16
|
+
- e0374e3: Fix `convertWalletADapterNetworkToNetworkInfo` to use latest URLs for localnet if not provided
|
|
17
|
+
- bcfa4c8: ANS resolution hooks now accept `undefined` `address` or `name`
|
|
18
|
+
- 1b533f3: Add sender to useSimulateTransaction and added more resource types
|
|
19
|
+
- a370ae3: Add TransactionParser to parse UserTransactionResponse's for balance changes
|
|
20
|
+
- 64f547a: Export TransactionParser default
|
|
21
|
+
- 66f17ec: Update dependencies
|
|
22
|
+
- bec94ce: Change default values for queries from undefined to null
|
|
23
|
+
- 66f17ec: Move connectors to separate entry point
|
|
24
|
+
- 364ad41: Add `useEvents` hook
|
|
25
|
+
- e457314: Add new AdapterSignerClient
|
|
26
|
+
- fd5339d: Add paginated fetchUserTransactions query and allow useClients to specify network
|
|
27
|
+
- a6503db: Fix useClients to allow empty objects
|
|
28
|
+
|
|
29
|
+
## 0.1.0-beta.18
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- 1335293: Add README.md
|
|
34
|
+
|
|
35
|
+
## 0.1.0-beta.17
|
|
36
|
+
|
|
37
|
+
### Patch Changes
|
|
38
|
+
|
|
39
|
+
- 66f17ec: Update dependencies
|
|
40
|
+
- 66f17ec: Move connectors to separate entry point
|
|
41
|
+
|
|
42
|
+
## 0.1.0-beta.16
|
|
43
|
+
|
|
44
|
+
### Patch Changes
|
|
45
|
+
|
|
46
|
+
- 47c56ba: Add default empty objects to js-pro queries
|
|
47
|
+
|
|
48
|
+
## 0.1.0-beta.15
|
|
49
|
+
|
|
50
|
+
### Patch Changes
|
|
51
|
+
|
|
52
|
+
- 64f547a: Export TransactionParser default
|
|
53
|
+
|
|
54
|
+
## 0.1.0-beta.14
|
|
55
|
+
|
|
56
|
+
### Patch Changes
|
|
57
|
+
|
|
58
|
+
- ad3bbe0: Export TransactionParser
|
|
59
|
+
|
|
60
|
+
## 0.1.0-beta.13
|
|
61
|
+
|
|
62
|
+
### Patch Changes
|
|
63
|
+
|
|
64
|
+
- a370ae3: Add TransactionParser to parse UserTransactionResponse's for balance changes
|
|
65
|
+
|
|
66
|
+
## 0.1.0-beta.12
|
|
67
|
+
|
|
68
|
+
### Patch Changes
|
|
69
|
+
|
|
70
|
+
- bec94ce: Change default values for queries from undefined to null
|
|
71
|
+
|
|
72
|
+
## 0.1.0-beta.11
|
|
73
|
+
|
|
74
|
+
### Patch Changes
|
|
75
|
+
|
|
76
|
+
- a6503db: Fix useClients to allow empty objects
|
|
77
|
+
|
|
78
|
+
## 0.1.0-beta.10
|
|
79
|
+
|
|
80
|
+
### Patch Changes
|
|
81
|
+
|
|
82
|
+
- fd5339d: Add paginated fetchUserTransactions query and allow useClients to specify network
|
|
83
|
+
|
|
84
|
+
## 0.1.0-beta.9
|
|
85
|
+
|
|
86
|
+
### Patch Changes
|
|
87
|
+
|
|
88
|
+
- e457314: Add new AdapterSignerClient
|
|
89
|
+
|
|
90
|
+
## 0.1.0-beta.8
|
|
91
|
+
|
|
92
|
+
### Patch Changes
|
|
93
|
+
|
|
94
|
+
- 3ab379b: Fix `useAddressFromName` and `useNameFromAddress` resolving to `undefined` instead of `null`
|
|
95
|
+
- b6c39c8: Allow network specific API keys
|
|
96
|
+
|
|
97
|
+
## 0.1.0-beta.7
|
|
98
|
+
|
|
99
|
+
### Patch Changes
|
|
100
|
+
|
|
101
|
+
- bcfa4c8: ANS resolution hooks now accept `undefined` `address` or `name`
|
|
102
|
+
|
|
103
|
+
## 0.1.0-beta.6
|
|
104
|
+
|
|
105
|
+
### Patch Changes
|
|
106
|
+
|
|
107
|
+
- ff32dd0: Fix missing query keys for useSimulateTransaction
|
|
108
|
+
|
|
109
|
+
## 0.1.0-beta.5
|
|
110
|
+
|
|
111
|
+
### Patch Changes
|
|
112
|
+
|
|
113
|
+
- 1b533f3: Add sender to useSimulateTransaction and added more resource types
|
|
114
|
+
|
|
115
|
+
## 0.1.0-beta.4
|
|
116
|
+
|
|
117
|
+
### Patch Changes
|
|
118
|
+
|
|
119
|
+
- 7ebca81: Fix explorer url to accept pathname
|
|
120
|
+
- 364ad41: Add `useEvents` hook
|
|
121
|
+
|
|
122
|
+
## 0.1.0-beta.3
|
|
123
|
+
|
|
124
|
+
### Patch Changes
|
|
125
|
+
|
|
126
|
+
- f57c51a: `useAccountTransactions` will now provide the entryFunction
|
|
127
|
+
|
|
128
|
+
## 0.1.0-beta.2
|
|
129
|
+
|
|
130
|
+
## 0.1.0-beta.1
|
|
131
|
+
|
|
132
|
+
### Patch Changes
|
|
133
|
+
|
|
134
|
+
- 4fb9cb5: Default queries/mutations to use empty object if possible
|
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
190
|
+
you may not use this file except in compliance with the License.
|
|
191
|
+
You may obtain a copy of the License at
|
|
192
|
+
|
|
193
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
194
|
+
|
|
195
|
+
Copyright 2023 Aptos Foundation
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,49 +1,13 @@
|
|
|
1
|
-
# Aptos JS
|
|
1
|
+
# Aptos JS-Pro
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A library of opinionated utilities built on top of the `@aptos-labs/ts-sdk`. This library is focused on an opinionated tools based off of internal usecases derived from Aptos Labs products such as Petra and Aptos Connect.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
1. Install the package
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
pnpm add @aptos-labs/js-pro
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
2. Initialize the AptosJSPro client
|
|
14
|
-
|
|
15
|
-
```ts
|
|
16
|
-
const core = new AptosJSProClient({ account, network, signer });
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
3. You now have access to all of the queries and mutations in the library!
|
|
20
|
-
|
|
21
|
-
```ts
|
|
22
|
-
const address = await core.fetchAddressFromName({ name: 'kent.apt' });
|
|
23
|
-
|
|
24
|
-
const signedTxn = await core.signTransaction({ rawTxn });
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
# Maintainers
|
|
28
|
-
|
|
29
|
-
In order to see changes reflected in apps locally, the package needs to be built and bundled. To do this, run the following command from the project:
|
|
5
|
+
## Installation
|
|
30
6
|
|
|
31
7
|
```bash
|
|
32
|
-
pnpm
|
|
8
|
+
pnpm install @aptos-labs/ts-sdk @aptos-labs/js-pro
|
|
33
9
|
```
|
|
34
10
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
## Utilities
|
|
38
|
-
|
|
39
|
-
Aptos core provides the client alongside the signer, network, and account. If you need access to clients such as the indexer client, or AptosClient, you can use the `getClients()` utility.
|
|
40
|
-
|
|
41
|
-
```ts
|
|
42
|
-
// Access AptosClient via `provider.aptosClient`
|
|
43
|
-
const { provider, indexerClient } = core.getClients();
|
|
44
|
-
|
|
45
|
-
// Access to: core.account, core.network, core.signer
|
|
46
|
-
core.account;
|
|
47
|
-
```
|
|
11
|
+
## Documentation
|
|
48
12
|
|
|
49
|
-
|
|
13
|
+
Please visit [js-pro.aptos.dev](https://js-pro.aptos.dev/typescript) for the latest documentation.
|
package/dist/client.d.ts
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { StoreApi } from "zustand/vanilla";
|
|
2
|
+
import { Aptos, AptosSettings, Network } from "@aptos-labs/ts-sdk";
|
|
3
|
+
import { GraphQLClient } from "graphql-request";
|
|
4
|
+
import { Sdk } from "./operations/index.js";
|
|
5
|
+
import { AccountInfo, NetworkInfo, SignerClient } from "./types/index.js";
|
|
6
|
+
import { getClients, fetchAccountCoins, fetchAptBalance, fetchBalance, fetchProcessorStatus, fetchAddressFromName, fetchNameFromAddress, fetchEstimatedGasPrice, fetchTransaction, fetchResources, fetchResourceType, fetchTokenData, fetchFungibleAssetMetadata, fetchAccountCollections, fetchViewModule, fetchLedgerInfo, fetchEvents, fetchAccountTransactions, fetchAccountTokens, fetchUserTransactions } from "./queries/index.js";
|
|
7
|
+
import { buildTransaction, signAndSubmitTransaction, signTransaction, simulateTransaction, submitTransaction, waitForTransaction } from "./mutations/index.js";
|
|
8
|
+
type IndexerClientOptions = ConstructorParameters<typeof GraphQLClient>[1];
|
|
9
|
+
export type ClientConfigs = {
|
|
10
|
+
/**
|
|
11
|
+
* This will be included as `Authorization: Bearer <apiKey>` in all requests to Aptos
|
|
12
|
+
* APIs. For the Aptos client this means settings AptosConfig.clientConfig.API_KEY.
|
|
13
|
+
* For the indexer client, we provide a custom header.
|
|
14
|
+
*
|
|
15
|
+
* This argument takes precedence over the relevant argument in the configs for
|
|
16
|
+
* `aptos` and `indexerClient`.
|
|
17
|
+
*
|
|
18
|
+
* It is okay to accept a single argument here because it is standard to use the same
|
|
19
|
+
* API key for both APIs (node and indexer APIs).
|
|
20
|
+
*/
|
|
21
|
+
apiKey?: {
|
|
22
|
+
[network: string | Network]: string | undefined;
|
|
23
|
+
} | string;
|
|
24
|
+
/**
|
|
25
|
+
* Will override any Network settings if provided in this config.
|
|
26
|
+
*/
|
|
27
|
+
aptos?: {
|
|
28
|
+
config: AptosSettings;
|
|
29
|
+
};
|
|
30
|
+
indexerClient?: {
|
|
31
|
+
options: IndexerClientOptions;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* A function that returns the current server time in milliseconds.
|
|
35
|
+
*
|
|
36
|
+
* @default Date.now
|
|
37
|
+
* @returns The current server time in milliseconds
|
|
38
|
+
*/
|
|
39
|
+
serverTime?: () => number;
|
|
40
|
+
};
|
|
41
|
+
export type AptosJSProClientParameters = {
|
|
42
|
+
account?: AccountInfo;
|
|
43
|
+
config?: ClientConfigs;
|
|
44
|
+
network: NetworkInfo;
|
|
45
|
+
signer?: SignerClient;
|
|
46
|
+
};
|
|
47
|
+
export type AptosJSProClientState = {
|
|
48
|
+
account?: AccountInfo;
|
|
49
|
+
config?: ClientConfigs;
|
|
50
|
+
network: NetworkInfo;
|
|
51
|
+
signer?: SignerClient;
|
|
52
|
+
};
|
|
53
|
+
export declare class AptosJSProClient {
|
|
54
|
+
#private;
|
|
55
|
+
constructor(params: AptosJSProClientParameters);
|
|
56
|
+
get state(): AptosJSProClientState;
|
|
57
|
+
get store(): Omit<StoreApi<AptosJSProClientState>, "subscribe"> & {
|
|
58
|
+
subscribe: {
|
|
59
|
+
(listener: (selectedState: AptosJSProClientState, previousSelectedState: AptosJSProClientState) => void): () => void;
|
|
60
|
+
<U>(selector: (state: AptosJSProClientState) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
61
|
+
equalityFn?: ((a: U, b: U) => boolean) | undefined;
|
|
62
|
+
fireImmediately?: boolean;
|
|
63
|
+
} | undefined): () => void;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
get signer(): SignerClient | undefined;
|
|
67
|
+
get account(): AccountInfo | undefined;
|
|
68
|
+
get network(): NetworkInfo;
|
|
69
|
+
get aptos(): Aptos;
|
|
70
|
+
get indexer(): {
|
|
71
|
+
getAccountTokensTotal(variables: import("./operations/index.js").GetAccountTokensTotalQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<import("./operations/index.js").GetAccountTokensTotalQuery>;
|
|
72
|
+
getAccountTokenOwnerships(variables: import("./operations/index.js").GetAccountTokenOwnershipsQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<import("./operations/index.js").GetAccountTokenOwnershipsQuery>;
|
|
73
|
+
getCurrentTokenData(variables: import("./operations/index.js").GetCurrentTokenDataQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<import("./operations/index.js").GetCurrentTokenDataQuery>;
|
|
74
|
+
getAccountCollections(variables: import("./operations/index.js").GetAccountCollectionsQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<import("./operations/index.js").GetAccountCollectionsQuery>;
|
|
75
|
+
getTokenData(variables: import("./operations/index.js").GetTokenDataQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<import("./operations/index.js").GetTokenDataQuery>;
|
|
76
|
+
getActivitiesAggregate(variables: import("./operations/index.js").GetActivitiesAggregateQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<import("./operations/index.js").GetActivitiesAggregateQuery>;
|
|
77
|
+
getTokenActivities(variables: import("./operations/index.js").GetTokenActivitiesQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<import("./operations/index.js").GetTokenActivitiesQuery>;
|
|
78
|
+
getTokenAcquisitionActivity(variables: import("./operations/index.js").GetTokenAcquisitionActivityQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<import("./operations/index.js").GetTokenAcquisitionActivityQuery>;
|
|
79
|
+
getAccountTransactions(variables: import("./operations/index.js").GetAccountTransactionsQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<import("./operations/index.js").GetAccountTransactionsQuery>;
|
|
80
|
+
getUserTransactions(variables: import("./operations/index.js").GetUserTransactionsQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<import("./operations/index.js").GetUserTransactionsQuery>;
|
|
81
|
+
getFungibleAssetMetadata(variables: import("./operations/index.js").GetFungibleAssetMetadataQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<import("./operations/index.js").GetFungibleAssetMetadataQuery>;
|
|
82
|
+
getFungibleAssetBalances(variables?: import("./operations/index.js").GetFungibleAssetBalancesQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<import("./operations/index.js").GetFungibleAssetBalancesQuery>;
|
|
83
|
+
getDelegatedStakingRoyalties(variables: import("./operations/index.js").GetDelegatedStakingRoyaltiesQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<import("./operations/index.js").GetDelegatedStakingRoyaltiesQuery>;
|
|
84
|
+
getDelegatedStaking(variables: import("./operations/index.js").GetDelegatedStakingQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<import("./operations/index.js").GetDelegatedStakingQuery>;
|
|
85
|
+
getDelegationPools(variables?: import("./operations/index.js").GetDelegationPoolsQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<import("./operations/index.js").GetDelegationPoolsQuery>;
|
|
86
|
+
getNumberOfDelegators(variables?: import("./operations/index.js").GetNumberOfDelegatorsQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<import("./operations/index.js").GetNumberOfDelegatorsQuery>;
|
|
87
|
+
} | undefined;
|
|
88
|
+
getServerTime: () => number;
|
|
89
|
+
getServerDate: () => Date;
|
|
90
|
+
setAccount: (account: AccountInfo | undefined) => void;
|
|
91
|
+
setNetwork: (network: NetworkInfo) => void;
|
|
92
|
+
setSigner: (signer: SignerClient | undefined) => void;
|
|
93
|
+
setConfig: (config: ClientConfigs) => void;
|
|
94
|
+
onAccountChange: (callback: (account?: AccountInfo) => void) => () => void;
|
|
95
|
+
onNetworkChange: (callback: (network: NetworkInfo) => void) => () => void;
|
|
96
|
+
onSignerChange: (callback: (signer?: SignerClient) => void) => () => void;
|
|
97
|
+
onConfigChange: (callback: (config?: ClientConfigs) => void) => () => void;
|
|
98
|
+
onChange: (callback: (state: AptosJSProClientState) => void) => () => void;
|
|
99
|
+
createNetworkConfig: (network?: NetworkInfo) => AptosSettings;
|
|
100
|
+
/**
|
|
101
|
+
* To support V1 networks, we are case insensitive when matching the network name.
|
|
102
|
+
*
|
|
103
|
+
* @returns An Aptos instance
|
|
104
|
+
*/
|
|
105
|
+
createAptos: (clientConfig?: AptosSettings, network?: NetworkInfo) => Aptos;
|
|
106
|
+
createIndexer: (clientConfig?: AptosSettings, network?: NetworkInfo) => Sdk | undefined;
|
|
107
|
+
private refreshClients;
|
|
108
|
+
getClients: typeof getClients;
|
|
109
|
+
fetchAccountTransactions: typeof fetchAccountTransactions;
|
|
110
|
+
fetchAccountCollections: typeof fetchAccountCollections;
|
|
111
|
+
fetchAccountCoins: typeof fetchAccountCoins;
|
|
112
|
+
fetchAccountTokens: typeof fetchAccountTokens;
|
|
113
|
+
fetchTransaction: typeof fetchTransaction;
|
|
114
|
+
fetchResources: typeof fetchResources;
|
|
115
|
+
fetchResourceType: typeof fetchResourceType;
|
|
116
|
+
fetchProcessorStatus: typeof fetchProcessorStatus;
|
|
117
|
+
fetchTokenData: typeof fetchTokenData;
|
|
118
|
+
fetchFungibleAssetMetadata: typeof fetchFungibleAssetMetadata;
|
|
119
|
+
fetchLedgerInfo: typeof fetchLedgerInfo;
|
|
120
|
+
fetchAddressFromName: typeof fetchAddressFromName;
|
|
121
|
+
fetchNameFromAddress: typeof fetchNameFromAddress;
|
|
122
|
+
fetchAptBalance: typeof fetchAptBalance;
|
|
123
|
+
fetchBalance: typeof fetchBalance;
|
|
124
|
+
fetchEstimatedGasPrice: typeof fetchEstimatedGasPrice;
|
|
125
|
+
fetchViewModule: typeof fetchViewModule;
|
|
126
|
+
fetchEvents: typeof fetchEvents;
|
|
127
|
+
fetchUserTransactions: typeof fetchUserTransactions;
|
|
128
|
+
submitTransaction: typeof submitTransaction;
|
|
129
|
+
waitForTransaction: typeof waitForTransaction;
|
|
130
|
+
simulateTransaction: typeof simulateTransaction;
|
|
131
|
+
signTransaction: typeof signTransaction;
|
|
132
|
+
signAndSubmitTransaction: typeof signAndSubmitTransaction;
|
|
133
|
+
buildTransaction: typeof buildTransaction;
|
|
134
|
+
}
|
|
135
|
+
export {};
|
|
136
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
export declare const APTOS_NAMES_ENDPOINT = "https://www.aptosnames.com/api";
|
|
2
|
-
export declare const COIN_GECKO_ENDPOINT = "https://api.coingecko.com/api";
|
|
3
|
-
export declare const EXPLORER_BASE_PATH = "https://explorer.aptoslabs.com";
|
|
4
2
|
//# sourceMappingURL=endpoints.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../src/constants/endpoints.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,mCAAmC,CAAC
|
|
1
|
+
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../src/constants/endpoints.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,mCAAmC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/errors/base.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,qBAAqB;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,qBAAa,cAAe,SAAQ,KAAK;IACvC,YAAY,EAAE,MAAM,CAAC;IAErB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,WAAW,
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/errors/base.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,qBAAqB;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,qBAAa,cAAe,SAAQ,KAAK;IACvC,YAAY,EAAE,MAAM,CAAC;IAErB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,WAAW,SAA+B;IAEjC,IAAI,SAAqB;gBAEtB,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAMlE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AptosBaseError } from "./base.js";
|
|
2
|
+
export declare class IndexerNotInitializedError extends AptosBaseError {
|
|
3
|
+
name: string;
|
|
4
|
+
constructor();
|
|
5
|
+
}
|
|
6
|
+
export declare class SignerNotFoundError extends AptosBaseError {
|
|
7
|
+
name: string;
|
|
8
|
+
constructor();
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=clients.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clients.d.ts","sourceRoot":"","sources":["../../src/errors/clients.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE3C,qBAAa,0BAA2B,SAAQ,cAAc;IACnD,IAAI,SAAgC;;CAQ9C;AAED,qBAAa,mBAAoB,SAAQ,cAAc;IAC5C,IAAI,SAAyB;;CAQvC"}
|
package/dist/errors/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":"AAGA,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactions.d.ts","sourceRoot":"","sources":["../../src/errors/transactions.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE3C,qBAAa,mBAAoB,SAAQ,cAAc;IAC5C,IAAI,SAAyB;;CAKvC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from './constants';
|
|
1
|
+
export * from "./client.js";
|
|
2
|
+
export * from "./operations/index.js";
|
|
3
|
+
export * from "./types/index.js";
|
|
4
|
+
export * from "./queries/index.js";
|
|
5
|
+
export * from "./utils/index.js";
|
|
6
|
+
export * from "./errors/index.js";
|
|
7
|
+
export * from "./mutations/index.js";
|
|
9
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC"}
|