@aptos-labs/ts-sdk 0.0.4 → 0.0.6
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/README.md +3 -3
- package/dist/{cjs → browser}/index.d.ts +357 -297
- package/dist/browser/index.global.js +72 -47
- package/dist/browser/index.global.js.map +1 -1
- package/dist/{esm → common}/index.d.ts +357 -297
- package/dist/common/index.js +406 -0
- package/dist/common/index.js.map +1 -0
- package/dist/esm/api/account.d.mts +292 -0
- package/dist/esm/api/account.mjs +2 -0
- package/dist/esm/api/account.mjs.map +1 -0
- package/dist/esm/api/ans.d.mts +79 -0
- package/dist/esm/api/ans.mjs +2 -0
- package/dist/esm/api/ans.mjs.map +1 -0
- package/dist/esm/api/aptos.d.mts +72 -0
- package/dist/esm/api/aptos.mjs +2 -0
- package/dist/esm/api/aptos.mjs.map +1 -0
- package/dist/esm/api/aptosConfig.d.mts +51 -0
- package/dist/esm/api/aptosConfig.mjs +2 -0
- package/dist/esm/api/aptosConfig.mjs.map +1 -0
- package/dist/esm/api/coin.d.mts +59 -0
- package/dist/esm/api/coin.mjs +2 -0
- package/dist/esm/api/coin.mjs.map +1 -0
- package/dist/esm/api/digitalAsset.d.mts +174 -0
- package/dist/esm/api/digitalAsset.mjs +2 -0
- package/dist/esm/api/digitalAsset.mjs.map +1 -0
- package/dist/esm/api/event.d.mts +74 -0
- package/dist/esm/api/event.mjs +2 -0
- package/dist/esm/api/event.mjs.map +1 -0
- package/dist/esm/api/faucet.d.mts +37 -0
- package/dist/esm/api/faucet.mjs +2 -0
- package/dist/esm/api/faucet.mjs.map +1 -0
- package/dist/esm/api/fungibleAsset.d.mts +72 -0
- package/dist/esm/api/fungibleAsset.mjs +2 -0
- package/dist/esm/api/fungibleAsset.mjs.map +1 -0
- package/dist/esm/api/general.d.mts +150 -0
- package/dist/esm/api/general.mjs +2 -0
- package/dist/esm/api/general.mjs.map +1 -0
- package/dist/esm/api/index.d.mts +46 -0
- package/dist/esm/api/index.mjs +2 -0
- package/dist/esm/api/index.mjs.map +1 -0
- package/dist/esm/api/staking.d.mts +53 -0
- package/dist/esm/api/staking.mjs +2 -0
- package/dist/esm/api/staking.mjs.map +1 -0
- package/dist/esm/api/transaction.d.mts +101 -0
- package/dist/esm/api/transaction.mjs +2 -0
- package/dist/esm/api/transaction.mjs.map +1 -0
- package/dist/esm/api/transactionSubmission.d.mts +142 -0
- package/dist/esm/api/transactionSubmission.mjs +2 -0
- package/dist/esm/api/transactionSubmission.mjs.map +1 -0
- package/dist/esm/bcs/consts.d.mts +14 -0
- package/dist/esm/bcs/consts.mjs +2 -0
- package/dist/esm/bcs/consts.mjs.map +1 -0
- package/dist/esm/bcs/deserializer.d.mts +150 -0
- package/dist/esm/bcs/deserializer.mjs +2 -0
- package/dist/esm/bcs/deserializer.mjs.map +1 -0
- package/dist/esm/bcs/index.d.mts +14 -0
- package/dist/esm/bcs/index.mjs +2 -0
- package/dist/esm/bcs/index.mjs.map +1 -0
- package/dist/esm/bcs/serializable/entryFunctionBytes.d.mts +40 -0
- package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +2 -0
- package/dist/esm/bcs/serializable/entryFunctionBytes.mjs.map +1 -0
- package/dist/esm/bcs/serializable/fixedBytes.d.mts +52 -0
- package/dist/esm/bcs/serializable/fixedBytes.mjs +2 -0
- package/dist/esm/bcs/serializable/fixedBytes.mjs.map +1 -0
- package/dist/esm/bcs/serializable/movePrimitives.d.mts +69 -0
- package/dist/esm/bcs/serializable/movePrimitives.mjs +2 -0
- package/dist/esm/bcs/serializable/movePrimitives.mjs.map +1 -0
- package/dist/esm/bcs/serializable/moveStructs.d.mts +284 -0
- package/dist/esm/bcs/serializable/moveStructs.mjs +2 -0
- package/dist/esm/bcs/serializable/moveStructs.mjs.map +1 -0
- package/dist/esm/bcs/serializer.d.mts +192 -0
- package/dist/esm/bcs/serializer.mjs +2 -0
- package/dist/esm/bcs/serializer.mjs.map +1 -0
- package/dist/esm/chunk-2W744GUN.mjs +2 -0
- package/dist/esm/chunk-2W744GUN.mjs.map +1 -0
- package/dist/esm/chunk-3JPVQHOR.mjs +2 -0
- package/dist/esm/chunk-3JPVQHOR.mjs.map +1 -0
- package/dist/esm/chunk-3JVGSFHP.mjs +2 -0
- package/dist/esm/chunk-3JVGSFHP.mjs.map +1 -0
- package/dist/esm/chunk-44MGBJ73.mjs +2 -0
- package/dist/esm/chunk-44MGBJ73.mjs.map +1 -0
- package/dist/esm/chunk-4ADA5BE7.mjs +2 -0
- package/dist/esm/chunk-4ADA5BE7.mjs.map +1 -0
- package/dist/esm/chunk-4RVIA63I.mjs +2 -0
- package/dist/esm/chunk-4RVIA63I.mjs.map +1 -0
- package/dist/esm/chunk-4WPQQPUF.mjs +1 -0
- package/dist/esm/chunk-4WPQQPUF.mjs.map +1 -0
- package/dist/esm/chunk-62SCW5NH.mjs +2 -0
- package/dist/esm/chunk-62SCW5NH.mjs.map +1 -0
- package/dist/esm/chunk-6FBKUTGF.mjs +2 -0
- package/dist/esm/chunk-6FBKUTGF.mjs.map +1 -0
- package/dist/esm/chunk-7MNEEVXY.mjs +2 -0
- package/dist/esm/chunk-7MNEEVXY.mjs.map +1 -0
- package/dist/esm/chunk-AAIBCWZY.mjs +2 -0
- package/dist/esm/chunk-AAIBCWZY.mjs.map +1 -0
- package/dist/esm/chunk-AH44UPM4.mjs +2 -0
- package/dist/esm/chunk-AH44UPM4.mjs.map +1 -0
- package/dist/esm/chunk-ARVSIDVB.mjs +2 -0
- package/dist/esm/chunk-ARVSIDVB.mjs.map +1 -0
- package/dist/esm/chunk-BFSEVKNA.mjs +2 -0
- package/dist/esm/chunk-BFSEVKNA.mjs.map +1 -0
- package/dist/esm/chunk-BP5ZO7NK.mjs +2 -0
- package/dist/esm/chunk-BP5ZO7NK.mjs.map +1 -0
- package/dist/esm/chunk-BPYLPPEQ.mjs +2 -0
- package/dist/esm/chunk-BPYLPPEQ.mjs.map +1 -0
- package/dist/esm/chunk-BSCOVLWS.mjs +1 -0
- package/dist/esm/chunk-BSCOVLWS.mjs.map +1 -0
- package/dist/esm/chunk-BV4OOU5Y.mjs +2 -0
- package/dist/esm/chunk-BV4OOU5Y.mjs.map +1 -0
- package/dist/esm/chunk-BWMNPUTK.mjs +2 -0
- package/dist/esm/chunk-BWMNPUTK.mjs.map +1 -0
- package/dist/esm/chunk-CYDWEPFL.mjs +1 -0
- package/dist/esm/chunk-CYDWEPFL.mjs.map +1 -0
- package/dist/esm/chunk-DNDWTM7A.mjs +2 -0
- package/dist/esm/chunk-DNDWTM7A.mjs.map +1 -0
- package/dist/esm/chunk-E7FWVXGX.mjs +1 -0
- package/dist/esm/chunk-E7FWVXGX.mjs.map +1 -0
- package/dist/esm/chunk-EFIYW4WK.mjs +2 -0
- package/dist/esm/chunk-EFIYW4WK.mjs.map +1 -0
- package/dist/esm/chunk-EGOYLZBU.mjs +2 -0
- package/dist/esm/chunk-EGOYLZBU.mjs.map +1 -0
- package/dist/esm/chunk-EQ5BEDJ7.mjs +2 -0
- package/dist/esm/chunk-EQ5BEDJ7.mjs.map +1 -0
- package/dist/esm/chunk-EWTHPMEE.mjs +2 -0
- package/dist/esm/chunk-EWTHPMEE.mjs.map +1 -0
- package/dist/esm/chunk-EYXHVA6W.mjs +2 -0
- package/dist/esm/chunk-EYXHVA6W.mjs.map +1 -0
- package/dist/esm/chunk-FBPNHF54.mjs +2 -0
- package/dist/esm/chunk-FBPNHF54.mjs.map +1 -0
- package/dist/esm/chunk-FYIFBLHU.mjs +2 -0
- package/dist/esm/chunk-FYIFBLHU.mjs.map +1 -0
- package/dist/esm/chunk-FZY4PMEE.mjs +1 -0
- package/dist/esm/chunk-FZY4PMEE.mjs.map +1 -0
- package/dist/esm/chunk-GEFQFRL3.mjs +2 -0
- package/dist/esm/chunk-GEFQFRL3.mjs.map +1 -0
- package/dist/esm/chunk-GTC7WHMV.mjs +2 -0
- package/dist/esm/chunk-GTC7WHMV.mjs.map +1 -0
- package/dist/esm/chunk-HA6JD5R6.mjs +2 -0
- package/dist/esm/chunk-HA6JD5R6.mjs.map +1 -0
- package/dist/esm/chunk-HTZTTZQJ.mjs +1 -0
- package/dist/esm/chunk-HTZTTZQJ.mjs.map +1 -0
- package/dist/esm/chunk-HVADSXTB.mjs +2 -0
- package/dist/esm/chunk-HVADSXTB.mjs.map +1 -0
- package/dist/esm/chunk-I5OYNCZS.mjs +1 -0
- package/dist/esm/chunk-I5OYNCZS.mjs.map +1 -0
- package/dist/esm/chunk-IG5CHHSI.mjs +2 -0
- package/dist/esm/chunk-IG5CHHSI.mjs.map +1 -0
- package/dist/esm/chunk-IXMB2GOK.mjs +2 -0
- package/dist/esm/chunk-IXMB2GOK.mjs.map +1 -0
- package/dist/esm/chunk-J5ZFOJN2.mjs +2 -0
- package/dist/esm/chunk-J5ZFOJN2.mjs.map +1 -0
- package/dist/esm/chunk-JDS7K2WI.mjs +2 -0
- package/dist/esm/chunk-JDS7K2WI.mjs.map +1 -0
- package/dist/esm/chunk-JZNLZMUC.mjs +2 -0
- package/dist/esm/chunk-JZNLZMUC.mjs.map +1 -0
- package/dist/esm/chunk-KC64ESLO.mjs +2 -0
- package/dist/esm/chunk-KC64ESLO.mjs.map +1 -0
- package/dist/esm/chunk-KQXRH5FK.mjs +2 -0
- package/dist/esm/chunk-KQXRH5FK.mjs.map +1 -0
- package/dist/esm/chunk-LR65XHSF.mjs +2 -0
- package/dist/esm/chunk-LR65XHSF.mjs.map +1 -0
- package/dist/esm/chunk-LV33NV4J.mjs +2 -0
- package/dist/esm/chunk-LV33NV4J.mjs.map +1 -0
- package/dist/esm/chunk-N2FKVZ4D.mjs +1 -0
- package/dist/esm/chunk-N2FKVZ4D.mjs.map +1 -0
- package/dist/esm/chunk-NGCFPQ22.mjs +2 -0
- package/dist/esm/chunk-NGCFPQ22.mjs.map +1 -0
- package/dist/esm/chunk-NTD3H2S4.mjs +2 -0
- package/dist/esm/chunk-NTD3H2S4.mjs.map +1 -0
- package/dist/esm/chunk-NYFVEKF6.mjs +2 -0
- package/dist/esm/chunk-NYFVEKF6.mjs.map +1 -0
- package/dist/esm/chunk-NZIJV4O2.mjs +2 -0
- package/dist/esm/chunk-NZIJV4O2.mjs.map +1 -0
- package/dist/esm/chunk-P32MY5YF.mjs +2 -0
- package/dist/esm/chunk-P32MY5YF.mjs.map +1 -0
- package/dist/esm/chunk-Q6N6QACD.mjs +2 -0
- package/dist/esm/chunk-Q6N6QACD.mjs.map +1 -0
- package/dist/esm/chunk-QWVR4RCV.mjs +2 -0
- package/dist/esm/chunk-QWVR4RCV.mjs.map +1 -0
- package/dist/esm/chunk-R26XML3D.mjs +2 -0
- package/dist/esm/chunk-R26XML3D.mjs.map +1 -0
- package/dist/esm/chunk-R3KWVOFG.mjs +2 -0
- package/dist/esm/chunk-R3KWVOFG.mjs.map +1 -0
- package/dist/esm/chunk-R7G3CLRI.mjs +1 -0
- package/dist/esm/chunk-R7G3CLRI.mjs.map +1 -0
- package/dist/esm/chunk-RMMOF53Q.mjs +1 -0
- package/dist/esm/chunk-RMMOF53Q.mjs.map +1 -0
- package/dist/esm/chunk-RYETO74W.mjs +2 -0
- package/dist/esm/chunk-RYETO74W.mjs.map +1 -0
- package/dist/esm/chunk-S36IYY6K.mjs +2 -0
- package/dist/esm/chunk-S36IYY6K.mjs.map +1 -0
- package/dist/esm/chunk-TCTZCPQ6.mjs +1 -0
- package/dist/esm/chunk-TCTZCPQ6.mjs.map +1 -0
- package/dist/esm/chunk-TIH6ARYP.mjs +2 -0
- package/dist/esm/chunk-TIH6ARYP.mjs.map +1 -0
- package/dist/esm/chunk-TQD4IGUM.mjs +2 -0
- package/dist/esm/chunk-TQD4IGUM.mjs.map +1 -0
- package/dist/esm/chunk-U25N2VWA.mjs +2 -0
- package/dist/esm/chunk-U25N2VWA.mjs.map +1 -0
- package/dist/esm/chunk-U3LO2FSJ.mjs +2 -0
- package/dist/esm/chunk-U3LO2FSJ.mjs.map +1 -0
- package/dist/esm/chunk-U6SZNNVL.mjs +2 -0
- package/dist/esm/chunk-U6SZNNVL.mjs.map +1 -0
- package/dist/esm/chunk-UAAI3NCA.mjs +2 -0
- package/dist/esm/chunk-UAAI3NCA.mjs.map +1 -0
- package/dist/esm/chunk-UNQNACJT.mjs +2 -0
- package/dist/esm/chunk-UNQNACJT.mjs.map +1 -0
- package/dist/esm/chunk-UPLWWSB4.mjs +2 -0
- package/dist/esm/chunk-UPLWWSB4.mjs.map +1 -0
- package/dist/esm/chunk-UYVPNUH3.mjs +1 -0
- package/dist/esm/chunk-UYVPNUH3.mjs.map +1 -0
- package/dist/esm/chunk-V3MBJJTL.mjs +1 -0
- package/dist/esm/chunk-V3MBJJTL.mjs.map +1 -0
- package/dist/esm/chunk-V45RFKH7.mjs +2 -0
- package/dist/esm/chunk-V45RFKH7.mjs.map +1 -0
- package/dist/esm/chunk-VMQWW5UT.mjs +2 -0
- package/dist/esm/chunk-VMQWW5UT.mjs.map +1 -0
- package/dist/esm/chunk-VOYW2TZW.mjs +2 -0
- package/dist/esm/chunk-VOYW2TZW.mjs.map +1 -0
- package/dist/esm/chunk-VWVEDCBM.mjs +2 -0
- package/dist/esm/chunk-VWVEDCBM.mjs.map +1 -0
- package/dist/esm/chunk-VYAVLUPJ.mjs +2 -0
- package/dist/esm/chunk-VYAVLUPJ.mjs.map +1 -0
- package/dist/esm/chunk-WKY5ENCK.mjs +2 -0
- package/dist/esm/chunk-WKY5ENCK.mjs.map +1 -0
- package/dist/esm/chunk-WX43AJTD.mjs +406 -0
- package/dist/esm/chunk-WX43AJTD.mjs.map +1 -0
- package/dist/esm/chunk-X32O46IB.mjs +2 -0
- package/dist/esm/chunk-X32O46IB.mjs.map +1 -0
- package/dist/esm/chunk-Y5DJPHJT.mjs +2 -0
- package/dist/esm/chunk-Y5DJPHJT.mjs.map +1 -0
- package/dist/esm/chunk-Y7VR7X5W.mjs +2 -0
- package/dist/esm/chunk-Y7VR7X5W.mjs.map +1 -0
- package/dist/esm/chunk-YYRDFZE6.mjs +2 -0
- package/dist/esm/chunk-YYRDFZE6.mjs.map +1 -0
- package/dist/esm/chunk-Z2UDRTHA.mjs +2 -0
- package/dist/esm/chunk-Z2UDRTHA.mjs.map +1 -0
- package/dist/esm/chunk-ZWH2ESXT.mjs +2 -0
- package/dist/esm/chunk-ZWH2ESXT.mjs.map +1 -0
- package/dist/esm/client/core.d.mts +24 -0
- package/dist/esm/client/core.mjs +2 -0
- package/dist/esm/client/core.mjs.map +1 -0
- package/dist/esm/client/get.d.mts +55 -0
- package/dist/esm/client/get.mjs +2 -0
- package/dist/esm/client/get.mjs.map +1 -0
- package/dist/esm/client/index.d.mts +11 -0
- package/dist/esm/client/index.mjs +2 -0
- package/dist/esm/client/index.mjs.map +1 -0
- package/dist/esm/client/post.d.mts +60 -0
- package/dist/esm/client/post.mjs +2 -0
- package/dist/esm/client/post.mjs.map +1 -0
- package/dist/esm/client/types.d.mts +46 -0
- package/dist/esm/client/types.mjs +2 -0
- package/dist/esm/client/types.mjs.map +1 -0
- package/dist/esm/core/account.d.mts +184 -0
- package/dist/esm/core/account.mjs +2 -0
- package/dist/esm/core/account.mjs.map +1 -0
- package/dist/esm/core/accountAddress.d.mts +244 -0
- package/dist/esm/core/accountAddress.mjs +2 -0
- package/dist/esm/core/accountAddress.mjs.map +1 -0
- package/dist/esm/core/authenticationKey.d.mts +74 -0
- package/dist/esm/core/authenticationKey.mjs +2 -0
- package/dist/esm/core/authenticationKey.mjs.map +1 -0
- package/dist/esm/core/common.d.mts +32 -0
- package/dist/esm/core/common.mjs +2 -0
- package/dist/esm/core/common.mjs.map +1 -0
- package/dist/esm/core/crypto/anyPublicKey.d.mts +54 -0
- package/dist/esm/core/crypto/anyPublicKey.mjs +2 -0
- package/dist/esm/core/crypto/anyPublicKey.mjs.map +1 -0
- package/dist/esm/core/crypto/anySignature.d.mts +31 -0
- package/dist/esm/core/crypto/anySignature.mjs +2 -0
- package/dist/esm/core/crypto/anySignature.mjs.map +1 -0
- package/dist/esm/core/crypto/asymmetricCrypto.d.mts +74 -0
- package/dist/esm/core/crypto/asymmetricCrypto.mjs +2 -0
- package/dist/esm/core/crypto/asymmetricCrypto.mjs.map +1 -0
- package/dist/esm/core/crypto/ed25519.d.mts +173 -0
- package/dist/esm/core/crypto/ed25519.mjs +2 -0
- package/dist/esm/core/crypto/ed25519.mjs.map +1 -0
- package/dist/esm/core/crypto/hdKey.d.mts +65 -0
- package/dist/esm/core/crypto/hdKey.mjs +2 -0
- package/dist/esm/core/crypto/hdKey.mjs.map +1 -0
- package/dist/esm/core/crypto/index.d.mts +17 -0
- package/dist/esm/core/crypto/index.mjs +2 -0
- package/dist/esm/core/crypto/index.mjs.map +1 -0
- package/dist/esm/core/crypto/multiEd25519.d.mts +126 -0
- package/dist/esm/core/crypto/multiEd25519.mjs +2 -0
- package/dist/esm/core/crypto/multiEd25519.mjs.map +1 -0
- package/dist/esm/core/crypto/multiKey.d.mts +52 -0
- package/dist/esm/core/crypto/multiKey.mjs +2 -0
- package/dist/esm/core/crypto/multiKey.mjs.map +1 -0
- package/dist/esm/core/crypto/secp256k1.d.mts +161 -0
- package/dist/esm/core/crypto/secp256k1.mjs +2 -0
- package/dist/esm/core/crypto/secp256k1.mjs.map +1 -0
- package/dist/esm/core/hex.d.mts +105 -0
- package/dist/esm/core/hex.mjs +2 -0
- package/dist/esm/core/hex.mjs.map +1 -0
- package/dist/esm/core/index.d.mts +21 -0
- package/dist/esm/core/index.mjs +2 -0
- package/dist/esm/core/index.mjs.map +1 -0
- package/dist/esm/index.d.mts +60 -0
- package/dist/esm/index.mjs +1 -5706
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/internal/account.d.mts +143 -0
- package/dist/esm/internal/account.mjs +2 -0
- package/dist/esm/internal/account.mjs.map +1 -0
- package/dist/esm/internal/ans.d.mts +83 -0
- package/dist/esm/internal/ans.mjs +2 -0
- package/dist/esm/internal/ans.mjs.map +1 -0
- package/dist/esm/internal/coin.d.mts +43 -0
- package/dist/esm/internal/coin.mjs +2 -0
- package/dist/esm/internal/coin.mjs.map +1 -0
- package/dist/esm/internal/digitalAsset.d.mts +118 -0
- package/dist/esm/internal/digitalAsset.mjs +2 -0
- package/dist/esm/internal/digitalAsset.mjs.map +1 -0
- package/dist/esm/internal/event.d.mts +45 -0
- package/dist/esm/internal/event.mjs +2 -0
- package/dist/esm/internal/event.mjs.map +1 -0
- package/dist/esm/internal/faucet.d.mts +29 -0
- package/dist/esm/internal/faucet.mjs +2 -0
- package/dist/esm/internal/faucet.mjs.map +1 -0
- package/dist/esm/internal/fungibleAsset.d.mts +38 -0
- package/dist/esm/internal/fungibleAsset.mjs +2 -0
- package/dist/esm/internal/fungibleAsset.mjs.map +1 -0
- package/dist/esm/internal/general.d.mts +60 -0
- package/dist/esm/internal/general.mjs +2 -0
- package/dist/esm/internal/general.mjs.map +1 -0
- package/dist/esm/internal/staking.d.mts +38 -0
- package/dist/esm/internal/staking.mjs +2 -0
- package/dist/esm/internal/staking.mjs.map +1 -0
- package/dist/esm/internal/transaction.d.mts +57 -0
- package/dist/esm/internal/transaction.mjs +2 -0
- package/dist/esm/internal/transaction.mjs.map +1 -0
- package/dist/esm/internal/transactionSubmission.d.mts +148 -0
- package/dist/esm/internal/transactionSubmission.mjs +2 -0
- package/dist/esm/internal/transactionSubmission.mjs.map +1 -0
- package/dist/esm/transactions/authenticator/account.d.mts +79 -0
- package/dist/esm/transactions/authenticator/account.mjs +2 -0
- package/dist/esm/transactions/authenticator/account.mjs.map +1 -0
- package/dist/esm/transactions/authenticator/index.d.mts +19 -0
- package/dist/esm/transactions/authenticator/index.mjs +2 -0
- package/dist/esm/transactions/authenticator/index.mjs.map +1 -0
- package/dist/esm/transactions/authenticator/transaction.d.mts +105 -0
- package/dist/esm/transactions/authenticator/transaction.mjs +2 -0
- package/dist/esm/transactions/authenticator/transaction.mjs.map +1 -0
- package/dist/esm/transactions/index.d.mts +39 -0
- package/dist/esm/transactions/index.mjs +2 -0
- package/dist/esm/transactions/index.mjs.map +1 -0
- package/dist/esm/transactions/instances/chainId.d.mts +21 -0
- package/dist/esm/transactions/instances/chainId.mjs +2 -0
- package/dist/esm/transactions/instances/chainId.mjs.map +1 -0
- package/dist/esm/transactions/instances/identifier.d.mts +23 -0
- package/dist/esm/transactions/instances/identifier.mjs +2 -0
- package/dist/esm/transactions/instances/identifier.mjs.map +1 -0
- package/dist/esm/transactions/instances/index.d.mts +29 -0
- package/dist/esm/transactions/instances/index.mjs +2 -0
- package/dist/esm/transactions/instances/index.mjs.map +1 -0
- package/dist/esm/transactions/instances/moduleId.d.mts +37 -0
- package/dist/esm/transactions/instances/moduleId.mjs +2 -0
- package/dist/esm/transactions/instances/moduleId.mjs.map +1 -0
- package/dist/esm/transactions/instances/rawTransaction.d.mts +98 -0
- package/dist/esm/transactions/instances/rawTransaction.mjs +2 -0
- package/dist/esm/transactions/instances/rawTransaction.mjs.map +1 -0
- package/dist/esm/transactions/instances/rotationProofChallenge.d.mts +37 -0
- package/dist/esm/transactions/instances/rotationProofChallenge.mjs +2 -0
- package/dist/esm/transactions/instances/rotationProofChallenge.mjs.map +1 -0
- package/dist/esm/transactions/instances/signedTransaction.d.mts +46 -0
- package/dist/esm/transactions/instances/signedTransaction.mjs +2 -0
- package/dist/esm/transactions/instances/signedTransaction.mjs.map +1 -0
- package/dist/esm/transactions/instances/transactionArgument.d.mts +40 -0
- package/dist/esm/transactions/instances/transactionArgument.mjs +2 -0
- package/dist/esm/transactions/instances/transactionArgument.mjs.map +1 -0
- package/dist/esm/transactions/instances/transactionPayload.d.mts +211 -0
- package/dist/esm/transactions/instances/transactionPayload.mjs +2 -0
- package/dist/esm/transactions/instances/transactionPayload.mjs.map +1 -0
- package/dist/esm/transactions/transactionBuilder/helpers.d.mts +63 -0
- package/dist/esm/transactions/transactionBuilder/helpers.mjs +2 -0
- package/dist/esm/transactions/transactionBuilder/helpers.mjs.map +1 -0
- package/dist/esm/transactions/transactionBuilder/index.d.mts +35 -0
- package/dist/esm/transactions/transactionBuilder/index.mjs +2 -0
- package/dist/esm/transactions/transactionBuilder/index.mjs.map +1 -0
- package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +54 -0
- package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +2 -0
- package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs.map +1 -0
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +126 -0
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +2 -0
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs.map +1 -0
- package/dist/esm/transactions/typeTag/index.d.mts +127 -0
- package/dist/esm/transactions/typeTag/index.mjs +2 -0
- package/dist/esm/transactions/typeTag/index.mjs.map +1 -0
- package/dist/esm/transactions/typeTag/parser.d.mts +48 -0
- package/dist/esm/transactions/typeTag/parser.mjs +2 -0
- package/dist/esm/transactions/typeTag/parser.mjs.map +1 -0
- package/dist/esm/transactions/types.d.mts +242 -0
- package/dist/esm/transactions/types.mjs +2 -0
- package/dist/esm/transactions/types.mjs.map +1 -0
- package/dist/esm/types/generated/operations.d.mts +604 -0
- package/dist/esm/types/generated/operations.mjs +1 -0
- package/dist/esm/types/generated/operations.mjs.map +1 -0
- package/dist/esm/types/generated/queries.d.mts +55 -0
- package/dist/esm/types/generated/queries.mjs +2 -0
- package/dist/esm/types/generated/queries.mjs.map +1 -0
- package/dist/esm/types/generated/types.d.mts +9496 -0
- package/dist/esm/types/generated/types.mjs +2 -0
- package/dist/esm/types/generated/types.mjs.map +1 -0
- package/dist/esm/types/index.d.mts +886 -0
- package/dist/esm/types/index.mjs +2 -0
- package/dist/esm/types/index.mjs.map +1 -0
- package/dist/esm/types/indexer.d.mts +62 -0
- package/dist/esm/types/indexer.mjs +2 -0
- package/dist/esm/types/indexer.mjs.map +1 -0
- package/dist/esm/utils/apiEndpoints.d.mts +14 -0
- package/dist/esm/utils/apiEndpoints.mjs +2 -0
- package/dist/esm/utils/apiEndpoints.mjs.map +1 -0
- package/dist/esm/utils/const.d.mts +42 -0
- package/dist/esm/utils/const.mjs +2 -0
- package/dist/esm/utils/const.mjs.map +1 -0
- package/dist/esm/utils/helpers.d.mts +7 -0
- package/dist/esm/utils/helpers.mjs +2 -0
- package/dist/esm/utils/helpers.mjs.map +1 -0
- package/dist/esm/utils/index.d.mts +2 -0
- package/dist/esm/utils/index.mjs +2 -0
- package/dist/esm/utils/index.mjs.map +1 -0
- package/dist/esm/utils/memoize.d.mts +20 -0
- package/dist/esm/utils/memoize.mjs +2 -0
- package/dist/esm/utils/memoize.mjs.map +1 -0
- package/dist/esm/version.d.mts +8 -0
- package/dist/esm/version.mjs +2 -0
- package/dist/esm/version.mjs.map +1 -0
- package/package.json +43 -40
- package/src/api/account.ts +2 -2
- package/src/api/coin.ts +2 -2
- package/src/api/event.ts +2 -2
- package/src/api/general.ts +4 -4
- package/src/api/transactionSubmission.ts +20 -3
- package/src/bcs/serializable/moveStructs.ts +8 -4
- package/src/client/core.ts +7 -5
- package/src/client/get.ts +6 -2
- package/src/client/post.ts +12 -4
- package/src/core/account.ts +7 -4
- package/src/index.ts +1 -1
- package/src/internal/account.ts +2 -2
- package/src/internal/ans.ts +4 -6
- package/src/internal/coin.ts +2 -2
- package/src/internal/event.ts +3 -3
- package/src/internal/general.ts +7 -6
- package/src/internal/queries/getEvents.graphql +1 -0
- package/src/internal/transactionSubmission.ts +41 -3
- package/src/transactions/transactionBuilder/helpers.ts +2 -2
- package/src/transactions/transactionBuilder/remoteAbi.ts +1 -1
- package/src/transactions/transactionBuilder/transactionBuilder.ts +15 -20
- package/src/transactions/typeTag/parser.ts +10 -2
- package/src/transactions/types.ts +5 -14
- package/src/types/generated/operations.ts +52 -51
- package/src/types/generated/queries.ts +42 -41
- package/src/types/generated/types.ts +2257 -2249
- package/src/types/index.ts +20 -12
- package/src/utils/index.ts +2 -0
- package/dist/cjs/index.js +0 -5901
- package/dist/cjs/index.js.map +0 -1
- package/dist/types/index.d.ts +0 -1310
- package/dist/types/index.js +0 -176
- package/dist/types/index.js.map +0 -1
|
@@ -11,91 +11,121 @@ declare enum Network {
|
|
|
11
11
|
declare const NetworkToChainId: Record<string, number>;
|
|
12
12
|
declare const NetworkToNetworkName: Record<string, Network>;
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
type Maybe<T> = T | null;
|
|
15
|
+
type InputMaybe<T> = Maybe<T>;
|
|
16
16
|
/** All built-in and custom scalars, mapped to their actual values */
|
|
17
|
-
|
|
18
|
-
ID:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
17
|
+
type Scalars = {
|
|
18
|
+
ID: {
|
|
19
|
+
input: string;
|
|
20
|
+
output: string;
|
|
21
|
+
};
|
|
22
|
+
String: {
|
|
23
|
+
input: string;
|
|
24
|
+
output: string;
|
|
25
|
+
};
|
|
26
|
+
Boolean: {
|
|
27
|
+
input: boolean;
|
|
28
|
+
output: boolean;
|
|
29
|
+
};
|
|
30
|
+
Int: {
|
|
31
|
+
input: number;
|
|
32
|
+
output: number;
|
|
33
|
+
};
|
|
34
|
+
Float: {
|
|
35
|
+
input: number;
|
|
36
|
+
output: number;
|
|
37
|
+
};
|
|
38
|
+
bigint: {
|
|
39
|
+
input: any;
|
|
40
|
+
output: any;
|
|
41
|
+
};
|
|
42
|
+
jsonb: {
|
|
43
|
+
input: any;
|
|
44
|
+
output: any;
|
|
45
|
+
};
|
|
46
|
+
numeric: {
|
|
47
|
+
input: any;
|
|
48
|
+
output: any;
|
|
49
|
+
};
|
|
50
|
+
timestamp: {
|
|
51
|
+
input: any;
|
|
52
|
+
output: any;
|
|
53
|
+
};
|
|
54
|
+
timestamptz: {
|
|
55
|
+
input: any;
|
|
56
|
+
output: any;
|
|
57
|
+
};
|
|
28
58
|
};
|
|
29
59
|
/** Boolean expression to compare columns of type "Boolean". All fields are combined with logical 'AND'. */
|
|
30
|
-
|
|
31
|
-
_eq?: InputMaybe<Scalars["Boolean"]>;
|
|
32
|
-
_gt?: InputMaybe<Scalars["Boolean"]>;
|
|
33
|
-
_gte?: InputMaybe<Scalars["Boolean"]>;
|
|
34
|
-
_in?: InputMaybe<Array<Scalars["Boolean"]>>;
|
|
35
|
-
_is_null?: InputMaybe<Scalars["Boolean"]>;
|
|
36
|
-
_lt?: InputMaybe<Scalars["Boolean"]>;
|
|
37
|
-
_lte?: InputMaybe<Scalars["Boolean"]>;
|
|
38
|
-
_neq?: InputMaybe<Scalars["Boolean"]>;
|
|
39
|
-
_nin?: InputMaybe<Array<Scalars["Boolean"]>>;
|
|
60
|
+
type BooleanComparisonExp = {
|
|
61
|
+
_eq?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
62
|
+
_gt?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
63
|
+
_gte?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
64
|
+
_in?: InputMaybe<Array<Scalars["Boolean"]["input"]>>;
|
|
65
|
+
_is_null?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
66
|
+
_lt?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
67
|
+
_lte?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
68
|
+
_neq?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
69
|
+
_nin?: InputMaybe<Array<Scalars["Boolean"]["input"]>>;
|
|
40
70
|
};
|
|
41
71
|
/** Boolean expression to compare columns of type "Int". All fields are combined with logical 'AND'. */
|
|
42
|
-
|
|
43
|
-
_eq?: InputMaybe<Scalars["Int"]>;
|
|
44
|
-
_gt?: InputMaybe<Scalars["Int"]>;
|
|
45
|
-
_gte?: InputMaybe<Scalars["Int"]>;
|
|
46
|
-
_in?: InputMaybe<Array<Scalars["Int"]>>;
|
|
47
|
-
_is_null?: InputMaybe<Scalars["Boolean"]>;
|
|
48
|
-
_lt?: InputMaybe<Scalars["Int"]>;
|
|
49
|
-
_lte?: InputMaybe<Scalars["Int"]>;
|
|
50
|
-
_neq?: InputMaybe<Scalars["Int"]>;
|
|
51
|
-
_nin?: InputMaybe<Array<Scalars["Int"]>>;
|
|
72
|
+
type IntComparisonExp = {
|
|
73
|
+
_eq?: InputMaybe<Scalars["Int"]["input"]>;
|
|
74
|
+
_gt?: InputMaybe<Scalars["Int"]["input"]>;
|
|
75
|
+
_gte?: InputMaybe<Scalars["Int"]["input"]>;
|
|
76
|
+
_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
|
|
77
|
+
_is_null?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
78
|
+
_lt?: InputMaybe<Scalars["Int"]["input"]>;
|
|
79
|
+
_lte?: InputMaybe<Scalars["Int"]["input"]>;
|
|
80
|
+
_neq?: InputMaybe<Scalars["Int"]["input"]>;
|
|
81
|
+
_nin?: InputMaybe<Array<Scalars["Int"]["input"]>>;
|
|
52
82
|
};
|
|
53
83
|
/** Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'. */
|
|
54
|
-
|
|
55
|
-
_eq?: InputMaybe<Scalars["String"]>;
|
|
56
|
-
_gt?: InputMaybe<Scalars["String"]>;
|
|
57
|
-
_gte?: InputMaybe<Scalars["String"]>;
|
|
84
|
+
type StringComparisonExp = {
|
|
85
|
+
_eq?: InputMaybe<Scalars["String"]["input"]>;
|
|
86
|
+
_gt?: InputMaybe<Scalars["String"]["input"]>;
|
|
87
|
+
_gte?: InputMaybe<Scalars["String"]["input"]>;
|
|
58
88
|
/** does the column match the given case-insensitive pattern */
|
|
59
|
-
_ilike?: InputMaybe<Scalars["String"]>;
|
|
60
|
-
_in?: InputMaybe<Array<Scalars["String"]>>;
|
|
89
|
+
_ilike?: InputMaybe<Scalars["String"]["input"]>;
|
|
90
|
+
_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
|
|
61
91
|
/** does the column match the given POSIX regular expression, case insensitive */
|
|
62
|
-
_iregex?: InputMaybe<Scalars["String"]>;
|
|
63
|
-
_is_null?: InputMaybe<Scalars["Boolean"]>;
|
|
92
|
+
_iregex?: InputMaybe<Scalars["String"]["input"]>;
|
|
93
|
+
_is_null?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
64
94
|
/** does the column match the given pattern */
|
|
65
|
-
_like?: InputMaybe<Scalars["String"]>;
|
|
66
|
-
_lt?: InputMaybe<Scalars["String"]>;
|
|
67
|
-
_lte?: InputMaybe<Scalars["String"]>;
|
|
68
|
-
_neq?: InputMaybe<Scalars["String"]>;
|
|
95
|
+
_like?: InputMaybe<Scalars["String"]["input"]>;
|
|
96
|
+
_lt?: InputMaybe<Scalars["String"]["input"]>;
|
|
97
|
+
_lte?: InputMaybe<Scalars["String"]["input"]>;
|
|
98
|
+
_neq?: InputMaybe<Scalars["String"]["input"]>;
|
|
69
99
|
/** does the column NOT match the given case-insensitive pattern */
|
|
70
|
-
_nilike?: InputMaybe<Scalars["String"]>;
|
|
71
|
-
_nin?: InputMaybe<Array<Scalars["String"]>>;
|
|
100
|
+
_nilike?: InputMaybe<Scalars["String"]["input"]>;
|
|
101
|
+
_nin?: InputMaybe<Array<Scalars["String"]["input"]>>;
|
|
72
102
|
/** does the column NOT match the given POSIX regular expression, case insensitive */
|
|
73
|
-
_niregex?: InputMaybe<Scalars["String"]>;
|
|
103
|
+
_niregex?: InputMaybe<Scalars["String"]["input"]>;
|
|
74
104
|
/** does the column NOT match the given pattern */
|
|
75
|
-
_nlike?: InputMaybe<Scalars["String"]>;
|
|
105
|
+
_nlike?: InputMaybe<Scalars["String"]["input"]>;
|
|
76
106
|
/** does the column NOT match the given POSIX regular expression, case sensitive */
|
|
77
|
-
_nregex?: InputMaybe<Scalars["String"]>;
|
|
107
|
+
_nregex?: InputMaybe<Scalars["String"]["input"]>;
|
|
78
108
|
/** does the column NOT match the given SQL regular expression */
|
|
79
|
-
_nsimilar?: InputMaybe<Scalars["String"]>;
|
|
109
|
+
_nsimilar?: InputMaybe<Scalars["String"]["input"]>;
|
|
80
110
|
/** does the column match the given POSIX regular expression, case sensitive */
|
|
81
|
-
_regex?: InputMaybe<Scalars["String"]>;
|
|
111
|
+
_regex?: InputMaybe<Scalars["String"]["input"]>;
|
|
82
112
|
/** does the column match the given SQL regular expression */
|
|
83
|
-
_similar?: InputMaybe<Scalars["String"]>;
|
|
113
|
+
_similar?: InputMaybe<Scalars["String"]["input"]>;
|
|
84
114
|
};
|
|
85
115
|
/** Boolean expression to compare columns of type "bigint". All fields are combined with logical 'AND'. */
|
|
86
|
-
|
|
87
|
-
_eq?: InputMaybe<Scalars["bigint"]>;
|
|
88
|
-
_gt?: InputMaybe<Scalars["bigint"]>;
|
|
89
|
-
_gte?: InputMaybe<Scalars["bigint"]>;
|
|
90
|
-
_in?: InputMaybe<Array<Scalars["bigint"]>>;
|
|
91
|
-
_is_null?: InputMaybe<Scalars["Boolean"]>;
|
|
92
|
-
_lt?: InputMaybe<Scalars["bigint"]>;
|
|
93
|
-
_lte?: InputMaybe<Scalars["bigint"]>;
|
|
94
|
-
_neq?: InputMaybe<Scalars["bigint"]>;
|
|
95
|
-
_nin?: InputMaybe<Array<Scalars["bigint"]>>;
|
|
116
|
+
type BigintComparisonExp = {
|
|
117
|
+
_eq?: InputMaybe<Scalars["bigint"]["input"]>;
|
|
118
|
+
_gt?: InputMaybe<Scalars["bigint"]["input"]>;
|
|
119
|
+
_gte?: InputMaybe<Scalars["bigint"]["input"]>;
|
|
120
|
+
_in?: InputMaybe<Array<Scalars["bigint"]["input"]>>;
|
|
121
|
+
_is_null?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
122
|
+
_lt?: InputMaybe<Scalars["bigint"]["input"]>;
|
|
123
|
+
_lte?: InputMaybe<Scalars["bigint"]["input"]>;
|
|
124
|
+
_neq?: InputMaybe<Scalars["bigint"]["input"]>;
|
|
125
|
+
_nin?: InputMaybe<Array<Scalars["bigint"]["input"]>>;
|
|
96
126
|
};
|
|
97
127
|
/** Boolean expression to filter rows from the table "current_aptos_names". All fields are combined with a logical 'AND'. */
|
|
98
|
-
|
|
128
|
+
type CurrentAptosNamesBoolExp = {
|
|
99
129
|
_and?: InputMaybe<Array<CurrentAptosNamesBoolExp>>;
|
|
100
130
|
_not?: InputMaybe<CurrentAptosNamesBoolExp>;
|
|
101
131
|
_or?: InputMaybe<Array<CurrentAptosNamesBoolExp>>;
|
|
@@ -113,7 +143,7 @@ declare type CurrentAptosNamesBoolExp = {
|
|
|
113
143
|
token_standard?: InputMaybe<StringComparisonExp>;
|
|
114
144
|
};
|
|
115
145
|
/** Boolean expression to filter rows from the table "current_fungible_asset_balances". All fields are combined with a logical 'AND'. */
|
|
116
|
-
|
|
146
|
+
type CurrentFungibleAssetBalancesBoolExp = {
|
|
117
147
|
_and?: InputMaybe<Array<CurrentFungibleAssetBalancesBoolExp>>;
|
|
118
148
|
_not?: InputMaybe<CurrentFungibleAssetBalancesBoolExp>;
|
|
119
149
|
_or?: InputMaybe<Array<CurrentFungibleAssetBalancesBoolExp>>;
|
|
@@ -129,7 +159,7 @@ declare type CurrentFungibleAssetBalancesBoolExp = {
|
|
|
129
159
|
token_standard?: InputMaybe<StringComparisonExp>;
|
|
130
160
|
};
|
|
131
161
|
/** Boolean expression to filter rows from the table "events". All fields are combined with a logical 'AND'. */
|
|
132
|
-
|
|
162
|
+
type EventsBoolExp = {
|
|
133
163
|
_and?: InputMaybe<Array<EventsBoolExp>>;
|
|
134
164
|
_not?: InputMaybe<EventsBoolExp>;
|
|
135
165
|
_or?: InputMaybe<Array<EventsBoolExp>>;
|
|
@@ -137,13 +167,14 @@ declare type EventsBoolExp = {
|
|
|
137
167
|
creation_number?: InputMaybe<BigintComparisonExp>;
|
|
138
168
|
data?: InputMaybe<JsonbComparisonExp>;
|
|
139
169
|
event_index?: InputMaybe<BigintComparisonExp>;
|
|
170
|
+
indexed_type?: InputMaybe<StringComparisonExp>;
|
|
140
171
|
sequence_number?: InputMaybe<BigintComparisonExp>;
|
|
141
172
|
transaction_block_height?: InputMaybe<BigintComparisonExp>;
|
|
142
173
|
transaction_version?: InputMaybe<BigintComparisonExp>;
|
|
143
174
|
type?: InputMaybe<StringComparisonExp>;
|
|
144
175
|
};
|
|
145
176
|
/** Boolean expression to filter rows from the table "fungible_asset_activities". All fields are combined with a logical 'AND'. */
|
|
146
|
-
|
|
177
|
+
type FungibleAssetActivitiesBoolExp = {
|
|
147
178
|
_and?: InputMaybe<Array<FungibleAssetActivitiesBoolExp>>;
|
|
148
179
|
_not?: InputMaybe<FungibleAssetActivitiesBoolExp>;
|
|
149
180
|
_or?: InputMaybe<Array<FungibleAssetActivitiesBoolExp>>;
|
|
@@ -167,7 +198,7 @@ declare type FungibleAssetActivitiesBoolExp = {
|
|
|
167
198
|
type?: InputMaybe<StringComparisonExp>;
|
|
168
199
|
};
|
|
169
200
|
/** Boolean expression to filter rows from the table "fungible_asset_metadata". All fields are combined with a logical 'AND'. */
|
|
170
|
-
|
|
201
|
+
type FungibleAssetMetadataBoolExp = {
|
|
171
202
|
_and?: InputMaybe<Array<FungibleAssetMetadataBoolExp>>;
|
|
172
203
|
_not?: InputMaybe<FungibleAssetMetadataBoolExp>;
|
|
173
204
|
_or?: InputMaybe<Array<FungibleAssetMetadataBoolExp>>;
|
|
@@ -184,58 +215,58 @@ declare type FungibleAssetMetadataBoolExp = {
|
|
|
184
215
|
symbol?: InputMaybe<StringComparisonExp>;
|
|
185
216
|
token_standard?: InputMaybe<StringComparisonExp>;
|
|
186
217
|
};
|
|
187
|
-
|
|
218
|
+
type JsonbCastExp = {
|
|
188
219
|
String?: InputMaybe<StringComparisonExp>;
|
|
189
220
|
};
|
|
190
221
|
/** Boolean expression to compare columns of type "jsonb". All fields are combined with logical 'AND'. */
|
|
191
|
-
|
|
222
|
+
type JsonbComparisonExp = {
|
|
192
223
|
_cast?: InputMaybe<JsonbCastExp>;
|
|
193
224
|
/** is the column contained in the given json value */
|
|
194
|
-
_contained_in?: InputMaybe<Scalars["jsonb"]>;
|
|
225
|
+
_contained_in?: InputMaybe<Scalars["jsonb"]["input"]>;
|
|
195
226
|
/** does the column contain the given json value at the top level */
|
|
196
|
-
_contains?: InputMaybe<Scalars["jsonb"]>;
|
|
197
|
-
_eq?: InputMaybe<Scalars["jsonb"]>;
|
|
198
|
-
_gt?: InputMaybe<Scalars["jsonb"]>;
|
|
199
|
-
_gte?: InputMaybe<Scalars["jsonb"]>;
|
|
227
|
+
_contains?: InputMaybe<Scalars["jsonb"]["input"]>;
|
|
228
|
+
_eq?: InputMaybe<Scalars["jsonb"]["input"]>;
|
|
229
|
+
_gt?: InputMaybe<Scalars["jsonb"]["input"]>;
|
|
230
|
+
_gte?: InputMaybe<Scalars["jsonb"]["input"]>;
|
|
200
231
|
/** does the string exist as a top-level key in the column */
|
|
201
|
-
_has_key?: InputMaybe<Scalars["String"]>;
|
|
232
|
+
_has_key?: InputMaybe<Scalars["String"]["input"]>;
|
|
202
233
|
/** do all of these strings exist as top-level keys in the column */
|
|
203
|
-
_has_keys_all?: InputMaybe<Array<Scalars["String"]>>;
|
|
234
|
+
_has_keys_all?: InputMaybe<Array<Scalars["String"]["input"]>>;
|
|
204
235
|
/** do any of these strings exist as top-level keys in the column */
|
|
205
|
-
_has_keys_any?: InputMaybe<Array<Scalars["String"]>>;
|
|
206
|
-
_in?: InputMaybe<Array<Scalars["jsonb"]>>;
|
|
207
|
-
_is_null?: InputMaybe<Scalars["Boolean"]>;
|
|
208
|
-
_lt?: InputMaybe<Scalars["jsonb"]>;
|
|
209
|
-
_lte?: InputMaybe<Scalars["jsonb"]>;
|
|
210
|
-
_neq?: InputMaybe<Scalars["jsonb"]>;
|
|
211
|
-
_nin?: InputMaybe<Array<Scalars["jsonb"]>>;
|
|
236
|
+
_has_keys_any?: InputMaybe<Array<Scalars["String"]["input"]>>;
|
|
237
|
+
_in?: InputMaybe<Array<Scalars["jsonb"]["input"]>>;
|
|
238
|
+
_is_null?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
239
|
+
_lt?: InputMaybe<Scalars["jsonb"]["input"]>;
|
|
240
|
+
_lte?: InputMaybe<Scalars["jsonb"]["input"]>;
|
|
241
|
+
_neq?: InputMaybe<Scalars["jsonb"]["input"]>;
|
|
242
|
+
_nin?: InputMaybe<Array<Scalars["jsonb"]["input"]>>;
|
|
212
243
|
};
|
|
213
244
|
/** Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. */
|
|
214
|
-
|
|
215
|
-
_eq?: InputMaybe<Scalars["numeric"]>;
|
|
216
|
-
_gt?: InputMaybe<Scalars["numeric"]>;
|
|
217
|
-
_gte?: InputMaybe<Scalars["numeric"]>;
|
|
218
|
-
_in?: InputMaybe<Array<Scalars["numeric"]>>;
|
|
219
|
-
_is_null?: InputMaybe<Scalars["Boolean"]>;
|
|
220
|
-
_lt?: InputMaybe<Scalars["numeric"]>;
|
|
221
|
-
_lte?: InputMaybe<Scalars["numeric"]>;
|
|
222
|
-
_neq?: InputMaybe<Scalars["numeric"]>;
|
|
223
|
-
_nin?: InputMaybe<Array<Scalars["numeric"]>>;
|
|
245
|
+
type NumericComparisonExp = {
|
|
246
|
+
_eq?: InputMaybe<Scalars["numeric"]["input"]>;
|
|
247
|
+
_gt?: InputMaybe<Scalars["numeric"]["input"]>;
|
|
248
|
+
_gte?: InputMaybe<Scalars["numeric"]["input"]>;
|
|
249
|
+
_in?: InputMaybe<Array<Scalars["numeric"]["input"]>>;
|
|
250
|
+
_is_null?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
251
|
+
_lt?: InputMaybe<Scalars["numeric"]["input"]>;
|
|
252
|
+
_lte?: InputMaybe<Scalars["numeric"]["input"]>;
|
|
253
|
+
_neq?: InputMaybe<Scalars["numeric"]["input"]>;
|
|
254
|
+
_nin?: InputMaybe<Array<Scalars["numeric"]["input"]>>;
|
|
224
255
|
};
|
|
225
256
|
/** Boolean expression to compare columns of type "timestamp". All fields are combined with logical 'AND'. */
|
|
226
|
-
|
|
227
|
-
_eq?: InputMaybe<Scalars["timestamp"]>;
|
|
228
|
-
_gt?: InputMaybe<Scalars["timestamp"]>;
|
|
229
|
-
_gte?: InputMaybe<Scalars["timestamp"]>;
|
|
230
|
-
_in?: InputMaybe<Array<Scalars["timestamp"]>>;
|
|
231
|
-
_is_null?: InputMaybe<Scalars["Boolean"]>;
|
|
232
|
-
_lt?: InputMaybe<Scalars["timestamp"]>;
|
|
233
|
-
_lte?: InputMaybe<Scalars["timestamp"]>;
|
|
234
|
-
_neq?: InputMaybe<Scalars["timestamp"]>;
|
|
235
|
-
_nin?: InputMaybe<Array<Scalars["timestamp"]>>;
|
|
257
|
+
type TimestampComparisonExp = {
|
|
258
|
+
_eq?: InputMaybe<Scalars["timestamp"]["input"]>;
|
|
259
|
+
_gt?: InputMaybe<Scalars["timestamp"]["input"]>;
|
|
260
|
+
_gte?: InputMaybe<Scalars["timestamp"]["input"]>;
|
|
261
|
+
_in?: InputMaybe<Array<Scalars["timestamp"]["input"]>>;
|
|
262
|
+
_is_null?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
263
|
+
_lt?: InputMaybe<Scalars["timestamp"]["input"]>;
|
|
264
|
+
_lte?: InputMaybe<Scalars["timestamp"]["input"]>;
|
|
265
|
+
_neq?: InputMaybe<Scalars["timestamp"]["input"]>;
|
|
266
|
+
_nin?: InputMaybe<Array<Scalars["timestamp"]["input"]>>;
|
|
236
267
|
};
|
|
237
268
|
|
|
238
|
-
|
|
269
|
+
type GetAccountCoinsDataQuery = {
|
|
239
270
|
current_fungible_asset_balances: Array<{
|
|
240
271
|
amount: any;
|
|
241
272
|
asset_type: string;
|
|
@@ -262,7 +293,7 @@ declare type GetAccountCoinsDataQuery = {
|
|
|
262
293
|
} | null;
|
|
263
294
|
}>;
|
|
264
295
|
};
|
|
265
|
-
|
|
296
|
+
type GetAccountCollectionsWithOwnedTokensQuery = {
|
|
266
297
|
current_collection_ownership_v2_view: Array<{
|
|
267
298
|
collection_id?: string | null;
|
|
268
299
|
collection_name?: string | null;
|
|
@@ -290,7 +321,7 @@ declare type GetAccountCollectionsWithOwnedTokensQuery = {
|
|
|
290
321
|
} | null;
|
|
291
322
|
}>;
|
|
292
323
|
};
|
|
293
|
-
|
|
324
|
+
type GetAccountOwnedObjectsQuery = {
|
|
294
325
|
current_objects: Array<{
|
|
295
326
|
allow_ungated_transfer: boolean;
|
|
296
327
|
state_key_hash: string;
|
|
@@ -301,7 +332,7 @@ declare type GetAccountOwnedObjectsQuery = {
|
|
|
301
332
|
is_deleted: boolean;
|
|
302
333
|
}>;
|
|
303
334
|
};
|
|
304
|
-
|
|
335
|
+
type GetAccountOwnedTokensQuery = {
|
|
305
336
|
current_token_ownerships_v2: Array<{
|
|
306
337
|
token_standard: string;
|
|
307
338
|
token_properties_mutated_v1?: any | null;
|
|
@@ -348,7 +379,7 @@ declare type GetAccountOwnedTokensQuery = {
|
|
|
348
379
|
} | null;
|
|
349
380
|
}>;
|
|
350
381
|
};
|
|
351
|
-
|
|
382
|
+
type GetAccountOwnedTokensFromCollectionQuery = {
|
|
352
383
|
current_token_ownerships_v2: Array<{
|
|
353
384
|
token_standard: string;
|
|
354
385
|
token_properties_mutated_v1?: any | null;
|
|
@@ -395,12 +426,12 @@ declare type GetAccountOwnedTokensFromCollectionQuery = {
|
|
|
395
426
|
} | null;
|
|
396
427
|
}>;
|
|
397
428
|
};
|
|
398
|
-
|
|
429
|
+
type GetChainTopUserTransactionsQuery = {
|
|
399
430
|
user_transactions: Array<{
|
|
400
431
|
version: any;
|
|
401
432
|
}>;
|
|
402
433
|
};
|
|
403
|
-
|
|
434
|
+
type GetCollectionDataQuery = {
|
|
404
435
|
current_collections_v2: Array<{
|
|
405
436
|
collection_id: string;
|
|
406
437
|
collection_name: string;
|
|
@@ -418,7 +449,7 @@ declare type GetCollectionDataQuery = {
|
|
|
418
449
|
uri: string;
|
|
419
450
|
}>;
|
|
420
451
|
};
|
|
421
|
-
|
|
452
|
+
type GetCurrentFungibleAssetBalancesQuery = {
|
|
422
453
|
current_fungible_asset_balances: Array<{
|
|
423
454
|
amount: any;
|
|
424
455
|
asset_type: string;
|
|
@@ -431,7 +462,7 @@ declare type GetCurrentFungibleAssetBalancesQuery = {
|
|
|
431
462
|
token_standard: string;
|
|
432
463
|
}>;
|
|
433
464
|
};
|
|
434
|
-
|
|
465
|
+
type GetDelegatedStakingActivitiesQuery = {
|
|
435
466
|
delegated_staking_activities: Array<{
|
|
436
467
|
amount: any;
|
|
437
468
|
delegator_address: string;
|
|
@@ -441,7 +472,7 @@ declare type GetDelegatedStakingActivitiesQuery = {
|
|
|
441
472
|
transaction_version: any;
|
|
442
473
|
}>;
|
|
443
474
|
};
|
|
444
|
-
|
|
475
|
+
type GetEventsQuery = {
|
|
445
476
|
events: Array<{
|
|
446
477
|
account_address: string;
|
|
447
478
|
creation_number: any;
|
|
@@ -451,9 +482,10 @@ declare type GetEventsQuery = {
|
|
|
451
482
|
transaction_block_height: any;
|
|
452
483
|
transaction_version: any;
|
|
453
484
|
type: string;
|
|
485
|
+
indexed_type: string;
|
|
454
486
|
}>;
|
|
455
487
|
};
|
|
456
|
-
|
|
488
|
+
type GetFungibleAssetActivitiesQuery = {
|
|
457
489
|
fungible_asset_activities: Array<{
|
|
458
490
|
amount?: any | null;
|
|
459
491
|
asset_type: string;
|
|
@@ -473,7 +505,7 @@ declare type GetFungibleAssetActivitiesQuery = {
|
|
|
473
505
|
type: string;
|
|
474
506
|
}>;
|
|
475
507
|
};
|
|
476
|
-
|
|
508
|
+
type GetFungibleAssetMetadataQuery = {
|
|
477
509
|
fungible_asset_metadata: Array<{
|
|
478
510
|
icon_uri?: string | null;
|
|
479
511
|
project_uri?: string | null;
|
|
@@ -489,20 +521,20 @@ declare type GetFungibleAssetMetadataQuery = {
|
|
|
489
521
|
token_standard: string;
|
|
490
522
|
}>;
|
|
491
523
|
};
|
|
492
|
-
|
|
524
|
+
type GetNumberOfDelegatorsQuery = {
|
|
493
525
|
num_active_delegator_per_pool: Array<{
|
|
494
526
|
num_active_delegator?: any | null;
|
|
495
527
|
pool_address?: string | null;
|
|
496
528
|
}>;
|
|
497
529
|
};
|
|
498
|
-
|
|
530
|
+
type GetProcessorStatusQuery = {
|
|
499
531
|
processor_status: Array<{
|
|
500
532
|
last_success_version: any;
|
|
501
533
|
processor: string;
|
|
502
534
|
last_updated: any;
|
|
503
535
|
}>;
|
|
504
536
|
};
|
|
505
|
-
|
|
537
|
+
type GetTokenActivityQuery = {
|
|
506
538
|
token_activities_v2: Array<{
|
|
507
539
|
after_value?: string | null;
|
|
508
540
|
before_value?: string | null;
|
|
@@ -521,7 +553,7 @@ declare type GetTokenActivityQuery = {
|
|
|
521
553
|
type: string;
|
|
522
554
|
}>;
|
|
523
555
|
};
|
|
524
|
-
|
|
556
|
+
type GetCurrentTokenOwnershipQuery = {
|
|
525
557
|
current_token_ownerships_v2: Array<{
|
|
526
558
|
token_standard: string;
|
|
527
559
|
token_properties_mutated_v1?: any | null;
|
|
@@ -568,7 +600,7 @@ declare type GetCurrentTokenOwnershipQuery = {
|
|
|
568
600
|
} | null;
|
|
569
601
|
}>;
|
|
570
602
|
};
|
|
571
|
-
|
|
603
|
+
type GetTokenDataQuery = {
|
|
572
604
|
current_token_datas_v2: Array<{
|
|
573
605
|
collection_id: string;
|
|
574
606
|
description: string;
|
|
@@ -622,40 +654,40 @@ declare type GetTokenDataQuery = {
|
|
|
622
654
|
* These types are used as the return type when calling a sdk api function
|
|
623
655
|
* that calls the function that queries the server (usually under the /api/ folder)
|
|
624
656
|
*/
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
657
|
+
type GetAccountOwnedObjectsResponse = GetAccountOwnedObjectsQuery["current_objects"];
|
|
658
|
+
type GetAccountOwnedTokensQueryResponse = GetAccountOwnedTokensQuery["current_token_ownerships_v2"];
|
|
659
|
+
type GetAccountOwnedTokensFromCollectionResponse = GetAccountOwnedTokensFromCollectionQuery["current_token_ownerships_v2"];
|
|
660
|
+
type GetAccountCollectionsWithOwnedTokenResponse = GetAccountCollectionsWithOwnedTokensQuery["current_collection_ownership_v2_view"];
|
|
661
|
+
type GetAccountCoinsDataResponse = GetAccountCoinsDataQuery["current_fungible_asset_balances"];
|
|
662
|
+
type GetChainTopUserTransactionsResponse = GetChainTopUserTransactionsQuery["user_transactions"];
|
|
663
|
+
type GetEventsResponse = GetEventsQuery["events"];
|
|
664
|
+
type GetNumberOfDelegatorsResponse = GetNumberOfDelegatorsQuery["num_active_delegator_per_pool"];
|
|
665
|
+
type GetDelegatedStakingActivitiesResponse = GetDelegatedStakingActivitiesQuery["delegated_staking_activities"];
|
|
666
|
+
type GetCollectionDataResponse = GetCollectionDataQuery["current_collections_v2"][0];
|
|
667
|
+
type GetTokenDataResponse = GetTokenDataQuery["current_token_datas_v2"][0];
|
|
668
|
+
type GetProcessorStatusResponse = GetProcessorStatusQuery["processor_status"];
|
|
669
|
+
type GetFungibleAssetMetadataResponse = GetFungibleAssetMetadataQuery["fungible_asset_metadata"];
|
|
670
|
+
type GetFungibleAssetActivitiesResponse = GetFungibleAssetActivitiesQuery["fungible_asset_activities"];
|
|
671
|
+
type GetCurrentFungibleAssetBalancesResponse = GetCurrentFungibleAssetBalancesQuery["current_fungible_asset_balances"];
|
|
672
|
+
type GetTokenActivityResponse = GetTokenActivityQuery["token_activities_v2"];
|
|
673
|
+
type GetCurrentTokenOwnershipResponse = GetCurrentTokenOwnershipQuery["current_token_ownerships_v2"][0];
|
|
674
|
+
type GetOwnedTokensResponse = GetCurrentTokenOwnershipQuery["current_token_ownerships_v2"];
|
|
643
675
|
/**
|
|
644
676
|
* A generic type that being passed by each function and holds an
|
|
645
677
|
* array of properties we can sort the query by
|
|
646
678
|
*/
|
|
647
|
-
|
|
679
|
+
type OrderBy<T> = Array<{
|
|
648
680
|
[K in keyof T]?: OrderByValue;
|
|
649
681
|
}>;
|
|
650
|
-
|
|
682
|
+
type OrderByValue = "asc" | "asc_nulls_first" | "asc_nulls_last" | "desc" | "desc_nulls_first" | "desc_nulls_last";
|
|
651
683
|
/**
|
|
652
684
|
* Refers to the token standard we want to query for
|
|
653
685
|
*/
|
|
654
|
-
|
|
686
|
+
type TokenStandard = "v1" | "v2";
|
|
655
687
|
/**
|
|
656
688
|
* The graphql query type to pass into the `queryIndexer` function
|
|
657
689
|
*/
|
|
658
|
-
|
|
690
|
+
type GraphqlQuery = {
|
|
659
691
|
query: string;
|
|
660
692
|
variables?: {};
|
|
661
693
|
};
|
|
@@ -677,7 +709,7 @@ declare enum MimeType {
|
|
|
677
709
|
/**
|
|
678
710
|
* Hex data as input to a function
|
|
679
711
|
*/
|
|
680
|
-
|
|
712
|
+
type HexInput = string | Uint8Array;
|
|
681
713
|
/**
|
|
682
714
|
* TypeTag enum as they are represented in Rust
|
|
683
715
|
* {@link https://github.com/aptos-labs/aptos-core/blob/main/third_party/move/move-core/types/src/language_storage.rs#L27}
|
|
@@ -761,19 +793,19 @@ declare enum AnySignatureVariant {
|
|
|
761
793
|
/**
|
|
762
794
|
* BCS types
|
|
763
795
|
*/
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
796
|
+
type Uint8 = number;
|
|
797
|
+
type Uint16 = number;
|
|
798
|
+
type Uint32 = number;
|
|
799
|
+
type Uint64 = bigint;
|
|
800
|
+
type Uint128 = bigint;
|
|
801
|
+
type Uint256 = bigint;
|
|
802
|
+
type AnyNumber = number | bigint;
|
|
771
803
|
/**
|
|
772
804
|
* Set of configuration options that can be provided when initializing the SDK.
|
|
773
805
|
* The purpose of these options is to configure various aspects of the SDK's
|
|
774
806
|
* behavior and interaction with the Aptos network
|
|
775
807
|
*/
|
|
776
|
-
|
|
808
|
+
type AptosSettings = {
|
|
777
809
|
readonly network?: Network;
|
|
778
810
|
readonly fullnode?: string;
|
|
779
811
|
readonly faucet?: string;
|
|
@@ -797,12 +829,14 @@ interface PaginationArgs {
|
|
|
797
829
|
/**
|
|
798
830
|
* A configuration object we can pass with the request to the server.
|
|
799
831
|
*
|
|
800
|
-
* @param
|
|
832
|
+
* @param AUTH_TOKEN - an auth token to send with a faucet request
|
|
833
|
+
* @param API_KEY - api key generated from developer portal {@link https://developers.aptoslabs.com/manage/api-keys}}
|
|
801
834
|
* @param HEADERS - extra headers we want to send with the request
|
|
802
835
|
* @param WITH_CREDENTIALS - whether to carry cookies. By default, it is set to true and cookies will be sent
|
|
803
836
|
*/
|
|
804
|
-
|
|
805
|
-
|
|
837
|
+
type ClientConfig = {
|
|
838
|
+
AUTH_TOKEN?: string;
|
|
839
|
+
API_KEY?: string;
|
|
806
840
|
HEADERS?: Record<string, string | number | boolean>;
|
|
807
841
|
WITH_CREDENTIALS?: boolean;
|
|
808
842
|
};
|
|
@@ -840,7 +874,7 @@ interface Client {
|
|
|
840
874
|
* @param originMethod (optional) - the local method the request came from
|
|
841
875
|
* @param overrides (optional) - a `ClientConfig` object type to override request data
|
|
842
876
|
*/
|
|
843
|
-
|
|
877
|
+
type AptosRequest = {
|
|
844
878
|
url: string;
|
|
845
879
|
method: "GET" | "POST";
|
|
846
880
|
path?: string;
|
|
@@ -854,7 +888,7 @@ declare type AptosRequest = {
|
|
|
854
888
|
/**
|
|
855
889
|
* Specifies ledger version of transactions. By default latest version will be used
|
|
856
890
|
*/
|
|
857
|
-
|
|
891
|
+
type LedgerVersion = {
|
|
858
892
|
ledgerVersion?: AnyNumber;
|
|
859
893
|
};
|
|
860
894
|
/**
|
|
@@ -863,7 +897,7 @@ declare type LedgerVersion = {
|
|
|
863
897
|
/**
|
|
864
898
|
* Type holding the outputs of the estimate gas API
|
|
865
899
|
*/
|
|
866
|
-
|
|
900
|
+
type GasEstimation = {
|
|
867
901
|
/**
|
|
868
902
|
* The deprioritized estimate for the gas unit price
|
|
869
903
|
*/
|
|
@@ -877,15 +911,15 @@ declare type GasEstimation = {
|
|
|
877
911
|
*/
|
|
878
912
|
prioritized_gas_estimate?: number;
|
|
879
913
|
};
|
|
880
|
-
|
|
881
|
-
type:
|
|
914
|
+
type MoveResource = {
|
|
915
|
+
type: MoveStructId;
|
|
882
916
|
data: {};
|
|
883
917
|
};
|
|
884
|
-
|
|
918
|
+
type AccountData = {
|
|
885
919
|
sequence_number: string;
|
|
886
920
|
authentication_key: string;
|
|
887
921
|
};
|
|
888
|
-
|
|
922
|
+
type MoveModuleBytecode = {
|
|
889
923
|
bytecode: string;
|
|
890
924
|
abi?: MoveModule;
|
|
891
925
|
};
|
|
@@ -899,8 +933,8 @@ declare enum TransactionResponseType {
|
|
|
899
933
|
BlockMetadata = "block_metadata_transaction",
|
|
900
934
|
StateCheckpoint = "state_checkpoint_transaction"
|
|
901
935
|
}
|
|
902
|
-
|
|
903
|
-
|
|
936
|
+
type TransactionResponse = PendingTransactionResponse | UserTransactionResponse | GenesisTransactionResponse | BlockMetadataTransactionResponse | StateCheckpointTransactionResponse;
|
|
937
|
+
type PendingTransactionResponse = {
|
|
904
938
|
type: TransactionResponseType.Pending;
|
|
905
939
|
hash: string;
|
|
906
940
|
sender: string;
|
|
@@ -911,7 +945,7 @@ declare type PendingTransactionResponse = {
|
|
|
911
945
|
payload: TransactionPayloadResponse;
|
|
912
946
|
signature?: TransactionSignature;
|
|
913
947
|
};
|
|
914
|
-
|
|
948
|
+
type UserTransactionResponse = {
|
|
915
949
|
type: TransactionResponseType.User;
|
|
916
950
|
version: string;
|
|
917
951
|
hash: string;
|
|
@@ -945,7 +979,7 @@ declare type UserTransactionResponse = {
|
|
|
945
979
|
events: Array<Event$1>;
|
|
946
980
|
timestamp: string;
|
|
947
981
|
};
|
|
948
|
-
|
|
982
|
+
type GenesisTransactionResponse = {
|
|
949
983
|
type: TransactionResponseType.Genesis;
|
|
950
984
|
version: string;
|
|
951
985
|
hash: string;
|
|
@@ -972,7 +1006,7 @@ declare type GenesisTransactionResponse = {
|
|
|
972
1006
|
*/
|
|
973
1007
|
events: Array<Event$1>;
|
|
974
1008
|
};
|
|
975
|
-
|
|
1009
|
+
type BlockMetadataTransactionResponse = {
|
|
976
1010
|
type: TransactionResponseType.BlockMetadata;
|
|
977
1011
|
version: string;
|
|
978
1012
|
hash: string;
|
|
@@ -1011,7 +1045,7 @@ declare type BlockMetadataTransactionResponse = {
|
|
|
1011
1045
|
failed_proposer_indices: Array<number>;
|
|
1012
1046
|
timestamp: string;
|
|
1013
1047
|
};
|
|
1014
|
-
|
|
1048
|
+
type StateCheckpointTransactionResponse = {
|
|
1015
1049
|
type: TransactionResponseType.StateCheckpoint;
|
|
1016
1050
|
version: string;
|
|
1017
1051
|
hash: string;
|
|
@@ -1037,8 +1071,8 @@ declare type StateCheckpointTransactionResponse = {
|
|
|
1037
1071
|
/**
|
|
1038
1072
|
* WRITESET CHANGE TYPES
|
|
1039
1073
|
*/
|
|
1040
|
-
|
|
1041
|
-
|
|
1074
|
+
type WriteSetChange = WriteSetChangeDeleteModule | WriteSetChangeDeleteResource | WriteSetChangeDeleteTableItem | WriteSetChangeWriteModule | WriteSetChangeWriteResource | WriteSetChangeWriteTableItem;
|
|
1075
|
+
type WriteSetChangeDeleteModule = {
|
|
1042
1076
|
type: string;
|
|
1043
1077
|
address: string;
|
|
1044
1078
|
/**
|
|
@@ -1047,32 +1081,32 @@ declare type WriteSetChangeDeleteModule = {
|
|
|
1047
1081
|
state_key_hash: string;
|
|
1048
1082
|
module: MoveModuleId;
|
|
1049
1083
|
};
|
|
1050
|
-
|
|
1084
|
+
type WriteSetChangeDeleteResource = {
|
|
1051
1085
|
type: string;
|
|
1052
1086
|
address: string;
|
|
1053
1087
|
state_key_hash: string;
|
|
1054
1088
|
resource: string;
|
|
1055
1089
|
};
|
|
1056
|
-
|
|
1090
|
+
type WriteSetChangeDeleteTableItem = {
|
|
1057
1091
|
type: string;
|
|
1058
1092
|
state_key_hash: string;
|
|
1059
1093
|
handle: string;
|
|
1060
1094
|
key: string;
|
|
1061
1095
|
data?: DeletedTableData;
|
|
1062
1096
|
};
|
|
1063
|
-
|
|
1097
|
+
type WriteSetChangeWriteModule = {
|
|
1064
1098
|
type: string;
|
|
1065
1099
|
address: string;
|
|
1066
1100
|
state_key_hash: string;
|
|
1067
1101
|
data: MoveModuleBytecode;
|
|
1068
1102
|
};
|
|
1069
|
-
|
|
1103
|
+
type WriteSetChangeWriteResource = {
|
|
1070
1104
|
type: string;
|
|
1071
1105
|
address: string;
|
|
1072
1106
|
state_key_hash: string;
|
|
1073
1107
|
data: MoveResource;
|
|
1074
1108
|
};
|
|
1075
|
-
|
|
1109
|
+
type WriteSetChangeWriteTableItem = {
|
|
1076
1110
|
type: string;
|
|
1077
1111
|
state_key_hash: string;
|
|
1078
1112
|
handle: string;
|
|
@@ -1080,7 +1114,7 @@ declare type WriteSetChangeWriteTableItem = {
|
|
|
1080
1114
|
value: string;
|
|
1081
1115
|
data?: DecodedTableData;
|
|
1082
1116
|
};
|
|
1083
|
-
|
|
1117
|
+
type DecodedTableData = {
|
|
1084
1118
|
/**
|
|
1085
1119
|
* Key of table in JSON
|
|
1086
1120
|
*/
|
|
@@ -1101,7 +1135,7 @@ declare type DecodedTableData = {
|
|
|
1101
1135
|
/**
|
|
1102
1136
|
* Deleted table data
|
|
1103
1137
|
*/
|
|
1104
|
-
|
|
1138
|
+
type DeletedTableData = {
|
|
1105
1139
|
/**
|
|
1106
1140
|
* Deleted key
|
|
1107
1141
|
*/
|
|
@@ -1111,10 +1145,10 @@ declare type DeletedTableData = {
|
|
|
1111
1145
|
*/
|
|
1112
1146
|
key_type: string;
|
|
1113
1147
|
};
|
|
1114
|
-
|
|
1115
|
-
|
|
1148
|
+
type TransactionPayloadResponse = EntryFunctionPayloadResponse | ScriptPayloadResponse | MultisigPayloadResponse;
|
|
1149
|
+
type EntryFunctionPayloadResponse = {
|
|
1116
1150
|
type: string;
|
|
1117
|
-
function:
|
|
1151
|
+
function: MoveFunctionId;
|
|
1118
1152
|
/**
|
|
1119
1153
|
* Type arguments of the function
|
|
1120
1154
|
*/
|
|
@@ -1124,7 +1158,7 @@ declare type EntryFunctionPayloadResponse = {
|
|
|
1124
1158
|
*/
|
|
1125
1159
|
arguments: Array<any>;
|
|
1126
1160
|
};
|
|
1127
|
-
|
|
1161
|
+
type ScriptPayloadResponse = {
|
|
1128
1162
|
type: string;
|
|
1129
1163
|
code: MoveScriptBytecode;
|
|
1130
1164
|
/**
|
|
@@ -1136,37 +1170,37 @@ declare type ScriptPayloadResponse = {
|
|
|
1136
1170
|
*/
|
|
1137
1171
|
arguments: Array<any>;
|
|
1138
1172
|
};
|
|
1139
|
-
|
|
1173
|
+
type MultisigPayloadResponse = {
|
|
1140
1174
|
type: string;
|
|
1141
1175
|
multisig_address: string;
|
|
1142
1176
|
transaction_payload?: EntryFunctionPayloadResponse;
|
|
1143
1177
|
};
|
|
1144
|
-
|
|
1178
|
+
type GenesisPayload = {
|
|
1145
1179
|
type: string;
|
|
1146
1180
|
write_set: WriteSet;
|
|
1147
1181
|
};
|
|
1148
1182
|
/**
|
|
1149
1183
|
* Move script bytecode
|
|
1150
1184
|
*/
|
|
1151
|
-
|
|
1185
|
+
type MoveScriptBytecode = {
|
|
1152
1186
|
bytecode: string;
|
|
1153
1187
|
abi?: MoveFunction;
|
|
1154
1188
|
};
|
|
1155
1189
|
/**
|
|
1156
1190
|
* These are the JSON representations of transaction signatures returned from the node API.
|
|
1157
1191
|
*/
|
|
1158
|
-
|
|
1159
|
-
|
|
1192
|
+
type TransactionSignature = TransactionEd25519Signature | TransactionSecp256k1Signature | TransactionMultiEd25519Signature | TransactionMultiAgentSignature | TransactionFeePayerSignature;
|
|
1193
|
+
type TransactionEd25519Signature = {
|
|
1160
1194
|
type: string;
|
|
1161
1195
|
public_key: string;
|
|
1162
1196
|
signature: "ed25519_signature";
|
|
1163
1197
|
};
|
|
1164
|
-
|
|
1198
|
+
type TransactionSecp256k1Signature = {
|
|
1165
1199
|
type: string;
|
|
1166
1200
|
public_key: string;
|
|
1167
1201
|
signature: "secp256k1_ecdsa_signature";
|
|
1168
1202
|
};
|
|
1169
|
-
|
|
1203
|
+
type TransactionMultiEd25519Signature = {
|
|
1170
1204
|
type: "multi_ed25519_signature";
|
|
1171
1205
|
/**
|
|
1172
1206
|
* The public keys for the Ed25519 signature
|
|
@@ -1182,7 +1216,7 @@ declare type TransactionMultiEd25519Signature = {
|
|
|
1182
1216
|
threshold: number;
|
|
1183
1217
|
bitmap: string;
|
|
1184
1218
|
};
|
|
1185
|
-
|
|
1219
|
+
type TransactionMultiAgentSignature = {
|
|
1186
1220
|
type: "multi_agent_signature";
|
|
1187
1221
|
sender: AccountSignature;
|
|
1188
1222
|
/**
|
|
@@ -1194,7 +1228,7 @@ declare type TransactionMultiAgentSignature = {
|
|
|
1194
1228
|
*/
|
|
1195
1229
|
secondary_signers: Array<AccountSignature>;
|
|
1196
1230
|
};
|
|
1197
|
-
|
|
1231
|
+
type TransactionFeePayerSignature = {
|
|
1198
1232
|
type: "fee_payer_signature";
|
|
1199
1233
|
sender: AccountSignature;
|
|
1200
1234
|
/**
|
|
@@ -1211,26 +1245,26 @@ declare type TransactionFeePayerSignature = {
|
|
|
1211
1245
|
/**
|
|
1212
1246
|
* The union of all single account signatures.
|
|
1213
1247
|
*/
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1248
|
+
type AccountSignature = AccountEd25519Signature | AccountSecp256k1Signature | AccountMultiEd25519Signature;
|
|
1249
|
+
type AccountEd25519Signature = TransactionEd25519Signature;
|
|
1250
|
+
type AccountSecp256k1Signature = TransactionSecp256k1Signature;
|
|
1251
|
+
type AccountMultiEd25519Signature = TransactionMultiEd25519Signature;
|
|
1252
|
+
type WriteSet = ScriptWriteSet | DirectWriteSet;
|
|
1253
|
+
type ScriptWriteSet = {
|
|
1220
1254
|
type: string;
|
|
1221
1255
|
execute_as: string;
|
|
1222
1256
|
script: ScriptPayloadResponse;
|
|
1223
1257
|
};
|
|
1224
|
-
|
|
1258
|
+
type DirectWriteSet = {
|
|
1225
1259
|
type: string;
|
|
1226
1260
|
changes: Array<WriteSetChange>;
|
|
1227
1261
|
events: Array<Event$1>;
|
|
1228
1262
|
};
|
|
1229
|
-
|
|
1263
|
+
type EventGuid = {
|
|
1230
1264
|
creation_number: string;
|
|
1231
1265
|
account_address: string;
|
|
1232
1266
|
};
|
|
1233
|
-
|
|
1267
|
+
type Event$1 = {
|
|
1234
1268
|
guid: EventGuid;
|
|
1235
1269
|
sequence_number: string;
|
|
1236
1270
|
type: string;
|
|
@@ -1242,20 +1276,22 @@ declare type Event$1 = {
|
|
|
1242
1276
|
/**
|
|
1243
1277
|
* Map of Move types to local TypeScript types
|
|
1244
1278
|
*/
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1279
|
+
type MoveUint8Type = number;
|
|
1280
|
+
type MoveUint16Type = number;
|
|
1281
|
+
type MoveUint32Type = number;
|
|
1282
|
+
type MoveUint64Type = string;
|
|
1283
|
+
type MoveUint128Type = string;
|
|
1284
|
+
type MoveUint256Type = string;
|
|
1285
|
+
type MoveAddressType = string;
|
|
1286
|
+
type MoveObjectType = string;
|
|
1287
|
+
type MoveOptionType = MoveType | null | undefined;
|
|
1254
1288
|
/**
|
|
1255
1289
|
* This is the format for a fully qualified struct, resource, or entry function in Move.
|
|
1256
1290
|
*/
|
|
1257
|
-
|
|
1258
|
-
|
|
1291
|
+
type MoveStructId = `${string}::${string}::${string}`;
|
|
1292
|
+
type MoveFunctionId = MoveStructId;
|
|
1293
|
+
type MoveStructType = {};
|
|
1294
|
+
type MoveType = boolean | string | MoveUint8Type | MoveUint16Type | MoveUint32Type | MoveUint64Type | MoveUint128Type | MoveUint256Type | MoveAddressType | MoveObjectType | MoveStructType | Array<MoveType>;
|
|
1259
1295
|
/**
|
|
1260
1296
|
* Possible Move values acceptable by move functions (entry, view)
|
|
1261
1297
|
*
|
|
@@ -1279,12 +1315,12 @@ declare type MoveType = boolean | string | MoveUint8Type | MoveUint16Type | Move
|
|
|
1279
1315
|
*
|
|
1280
1316
|
* `Option -> MoveValue | null | undefined`
|
|
1281
1317
|
*/
|
|
1282
|
-
|
|
1318
|
+
type MoveValue = boolean | string | MoveUint8Type | MoveUint16Type | MoveUint32Type | MoveUint64Type | MoveUint128Type | MoveUint256Type | MoveAddressType | MoveObjectType | MoveStructId | MoveOptionType | Array<MoveValue>;
|
|
1283
1319
|
/**
|
|
1284
1320
|
* Move module id is a string representation of Move module.
|
|
1285
1321
|
* Module name is case-sensitive.
|
|
1286
1322
|
*/
|
|
1287
|
-
|
|
1323
|
+
type MoveModuleId = `${string}::${string}`;
|
|
1288
1324
|
/**
|
|
1289
1325
|
* Move function visibility
|
|
1290
1326
|
*/
|
|
@@ -1305,20 +1341,20 @@ declare enum MoveAbility {
|
|
|
1305
1341
|
/**
|
|
1306
1342
|
* Move abilities tied to the generic type param and associated with the function that uses it
|
|
1307
1343
|
*/
|
|
1308
|
-
|
|
1344
|
+
type MoveFunctionGenericTypeParam = {
|
|
1309
1345
|
constraints: Array<MoveAbility>;
|
|
1310
1346
|
};
|
|
1311
1347
|
/**
|
|
1312
1348
|
* Move struct field
|
|
1313
1349
|
*/
|
|
1314
|
-
|
|
1350
|
+
type MoveStructField = {
|
|
1315
1351
|
name: string;
|
|
1316
1352
|
type: string;
|
|
1317
1353
|
};
|
|
1318
1354
|
/**
|
|
1319
1355
|
* A Move module
|
|
1320
1356
|
*/
|
|
1321
|
-
|
|
1357
|
+
type MoveModule = {
|
|
1322
1358
|
address: string;
|
|
1323
1359
|
name: string;
|
|
1324
1360
|
/**
|
|
@@ -1337,7 +1373,7 @@ declare type MoveModule = {
|
|
|
1337
1373
|
/**
|
|
1338
1374
|
* A move struct
|
|
1339
1375
|
*/
|
|
1340
|
-
|
|
1376
|
+
type MoveStruct = {
|
|
1341
1377
|
name: string;
|
|
1342
1378
|
/**
|
|
1343
1379
|
* Whether the struct is a native struct of Move
|
|
@@ -1359,7 +1395,7 @@ declare type MoveStruct = {
|
|
|
1359
1395
|
/**
|
|
1360
1396
|
* Move function
|
|
1361
1397
|
*/
|
|
1362
|
-
|
|
1398
|
+
type MoveFunction = {
|
|
1363
1399
|
name: string;
|
|
1364
1400
|
visibility: MoveFunctionVisibility;
|
|
1365
1401
|
/**
|
|
@@ -1387,7 +1423,7 @@ declare enum RoleType {
|
|
|
1387
1423
|
VALIDATOR = "validator",
|
|
1388
1424
|
FULL_NODE = "full_node"
|
|
1389
1425
|
}
|
|
1390
|
-
|
|
1426
|
+
type LedgerInfo = {
|
|
1391
1427
|
/**
|
|
1392
1428
|
* Chain ID of the current chain
|
|
1393
1429
|
*/
|
|
@@ -1408,7 +1444,7 @@ declare type LedgerInfo = {
|
|
|
1408
1444
|
/**
|
|
1409
1445
|
* A Block type
|
|
1410
1446
|
*/
|
|
1411
|
-
|
|
1447
|
+
type Block = {
|
|
1412
1448
|
block_height: string;
|
|
1413
1449
|
block_hash: string;
|
|
1414
1450
|
block_timestamp: string;
|
|
@@ -1422,22 +1458,22 @@ declare type Block = {
|
|
|
1422
1458
|
/**
|
|
1423
1459
|
* The data needed to generate a View Request payload
|
|
1424
1460
|
*/
|
|
1425
|
-
|
|
1426
|
-
function:
|
|
1427
|
-
typeArguments?: Array<
|
|
1461
|
+
type InputViewRequestData = {
|
|
1462
|
+
function: MoveFunctionId;
|
|
1463
|
+
typeArguments?: Array<MoveStructId>;
|
|
1428
1464
|
functionArguments?: Array<MoveValue>;
|
|
1429
1465
|
};
|
|
1430
1466
|
/**
|
|
1431
1467
|
* View request for the Move view function API
|
|
1432
1468
|
*
|
|
1433
|
-
* `type
|
|
1469
|
+
* `type MoveFunctionId = ${string}::${string}::${string}`;
|
|
1434
1470
|
*/
|
|
1435
|
-
|
|
1436
|
-
function:
|
|
1471
|
+
type ViewRequest = {
|
|
1472
|
+
function: MoveFunctionId;
|
|
1437
1473
|
/**
|
|
1438
1474
|
* Type arguments of the function
|
|
1439
1475
|
*/
|
|
1440
|
-
|
|
1476
|
+
typeArguments: Array<MoveStructId>;
|
|
1441
1477
|
/**
|
|
1442
1478
|
* Arguments of the function
|
|
1443
1479
|
*/
|
|
@@ -1446,7 +1482,7 @@ declare type ViewRequest = {
|
|
|
1446
1482
|
/**
|
|
1447
1483
|
* Table Item request for the GetTableItem API
|
|
1448
1484
|
*/
|
|
1449
|
-
|
|
1485
|
+
type TableItemRequest = {
|
|
1450
1486
|
key_type: MoveValue;
|
|
1451
1487
|
value_type: MoveValue;
|
|
1452
1488
|
/**
|
|
@@ -1459,7 +1495,7 @@ declare type TableItemRequest = {
|
|
|
1459
1495
|
*
|
|
1460
1496
|
* They are combinations of signing schemes and derive schemes.
|
|
1461
1497
|
*/
|
|
1462
|
-
|
|
1498
|
+
type AuthenticationKeyScheme = SigningScheme | DeriveScheme;
|
|
1463
1499
|
declare enum SigningScheme {
|
|
1464
1500
|
/**
|
|
1465
1501
|
* For Ed25519PublicKey
|
|
@@ -1513,7 +1549,7 @@ declare enum DeriveScheme {
|
|
|
1513
1549
|
/**
|
|
1514
1550
|
* Option properties to pass for waitForTransaction() function
|
|
1515
1551
|
*/
|
|
1516
|
-
|
|
1552
|
+
type WaitForTransactionOptions = {
|
|
1517
1553
|
timeoutSecs?: number;
|
|
1518
1554
|
checkSuccess?: boolean;
|
|
1519
1555
|
indexerVersionCheck?: boolean;
|
|
@@ -1522,7 +1558,7 @@ declare type WaitForTransactionOptions = {
|
|
|
1522
1558
|
* Input type to generate an account using Single Signer
|
|
1523
1559
|
* Ed25519 or Legacy Ed25519
|
|
1524
1560
|
*/
|
|
1525
|
-
|
|
1561
|
+
type GenerateAccountWithEd25519 = {
|
|
1526
1562
|
scheme: SigningSchemeInput.Ed25519;
|
|
1527
1563
|
legacy: boolean;
|
|
1528
1564
|
};
|
|
@@ -1530,11 +1566,11 @@ declare type GenerateAccountWithEd25519 = {
|
|
|
1530
1566
|
* Input type to generate an account using Single Signer
|
|
1531
1567
|
* Secp256k1
|
|
1532
1568
|
*/
|
|
1533
|
-
|
|
1569
|
+
type GenerateAccountWithSingleSignerSecp256k1Key = {
|
|
1534
1570
|
scheme: SigningSchemeInput.Secp256k1Ecdsa;
|
|
1535
1571
|
legacy?: false;
|
|
1536
1572
|
};
|
|
1537
|
-
|
|
1573
|
+
type GenerateAccount = GenerateAccountWithEd25519 | GenerateAccountWithSingleSignerSecp256k1Key;
|
|
1538
1574
|
|
|
1539
1575
|
/**
|
|
1540
1576
|
* Type of API endpoint for request routing
|
|
@@ -1544,6 +1580,38 @@ declare enum AptosApiType {
|
|
|
1544
1580
|
INDEXER = 1,
|
|
1545
1581
|
FAUCET = 2
|
|
1546
1582
|
}
|
|
1583
|
+
declare const DEFAULT_NETWORK = Network.DEVNET;
|
|
1584
|
+
/**
|
|
1585
|
+
* The default max gas amount when none is given.
|
|
1586
|
+
*
|
|
1587
|
+
* This is the maximum number of gas units that will be used by a transaction before being rejected.
|
|
1588
|
+
*
|
|
1589
|
+
* Note that max gas amount varies based on the transaction. A larger transaction will go over this
|
|
1590
|
+
* default gas amount, and the value will need to be changed for the specific transaction.
|
|
1591
|
+
*/
|
|
1592
|
+
declare const DEFAULT_MAX_GAS_AMOUNT = 200000;
|
|
1593
|
+
/**
|
|
1594
|
+
* The default transaction expiration seconds from now.
|
|
1595
|
+
*
|
|
1596
|
+
* This time is how long until the blockchain nodes will reject the transaction.
|
|
1597
|
+
*
|
|
1598
|
+
* Note that the transaction expiration time varies based on network connection and network load. It may need to be
|
|
1599
|
+
* increased for the transaction to be processed.
|
|
1600
|
+
*/
|
|
1601
|
+
declare const DEFAULT_TXN_EXP_SEC_FROM_NOW = 20;
|
|
1602
|
+
/**
|
|
1603
|
+
* The default number of seconds to wait for a transaction to be processed.
|
|
1604
|
+
*
|
|
1605
|
+
* This time is the amount of time that the SDK will wait for a transaction to be processed when waiting for
|
|
1606
|
+
* the results of the transaction. It may take longer based on network connection and network load.
|
|
1607
|
+
*/
|
|
1608
|
+
declare const DEFAULT_TXN_TIMEOUT_SEC = 20;
|
|
1609
|
+
/**
|
|
1610
|
+
* The default gas currency for the network.
|
|
1611
|
+
*/
|
|
1612
|
+
declare const APTOS_COIN = "0x1::aptos_coin::AptosCoin";
|
|
1613
|
+
declare const RAW_TRANSACTION_SALT = "APTOS::RawTransaction";
|
|
1614
|
+
declare const RAW_TRANSACTION_WITH_DATA_SALT = "APTOS::RawTransactionWithData";
|
|
1547
1615
|
|
|
1548
1616
|
/**
|
|
1549
1617
|
* This class holds the config information for the SDK client instance.
|
|
@@ -1604,7 +1672,7 @@ declare class ParsingError<T> extends Error {
|
|
|
1604
1672
|
* Whereas ParsingError is thrown when parsing fails, e.g. in a fromString function,
|
|
1605
1673
|
* this type is returned from "defensive" functions like isValid.
|
|
1606
1674
|
*/
|
|
1607
|
-
|
|
1675
|
+
type ParsingResult<T> = {
|
|
1608
1676
|
/**
|
|
1609
1677
|
* True if valid, false otherwise.
|
|
1610
1678
|
*/
|
|
@@ -2084,7 +2152,7 @@ declare enum AddressInvalidReason {
|
|
|
2084
2152
|
LONG_FORM_REQUIRED_UNLESS_SPECIAL = "long_form_required_unless_special",
|
|
2085
2153
|
INVALID_PADDING_ZEROES = "INVALID_PADDING_ZEROES"
|
|
2086
2154
|
}
|
|
2087
|
-
|
|
2155
|
+
type AccountAddressInput = HexInput | AccountAddress;
|
|
2088
2156
|
/**
|
|
2089
2157
|
* NOTE: Only use this class for account addresses. For other hex data, e.g. transaction
|
|
2090
2158
|
* hashes, use the Hex class.
|
|
@@ -2837,11 +2905,14 @@ declare class AuthenticationKey extends Serializable {
|
|
|
2837
2905
|
* `SingleSender` supports `ED25519` and `Secp256k1`, and `MultiSender` supports
|
|
2838
2906
|
* `MultiED25519`.
|
|
2839
2907
|
*
|
|
2840
|
-
* In TypeScript SDK, we support all of these options
|
|
2841
|
-
*
|
|
2842
|
-
*
|
|
2908
|
+
* In TypeScript SDK, we support all of these options:
|
|
2909
|
+
*
|
|
2910
|
+
* @generate default to generate Legacy Ed25519 keys, with an optional `legacy` boolean argument
|
|
2911
|
+
* that lets you generate new keys conforming to the Unified authentication.
|
|
2912
|
+
*
|
|
2843
2913
|
* @fromPrivateKey derives an account by a provided private key and address, with an optional
|
|
2844
|
-
* `legacy` boolean argument that lets you generate new keys conforming to the
|
|
2914
|
+
* `legacy` boolean argument that lets you generate new keys conforming to the Unified authentication.
|
|
2915
|
+
*
|
|
2845
2916
|
* @fromDerivationPath derives an account with bip44 path and mnemonics,
|
|
2846
2917
|
*
|
|
2847
2918
|
*/
|
|
@@ -3510,7 +3581,7 @@ declare class MultiKey extends PublicKey {
|
|
|
3510
3581
|
static deserialize(deserializer: Deserializer): MultiKey;
|
|
3511
3582
|
}
|
|
3512
3583
|
|
|
3513
|
-
|
|
3584
|
+
type DerivedKeys = {
|
|
3514
3585
|
key: Uint8Array;
|
|
3515
3586
|
chainCode: Uint8Array;
|
|
3516
3587
|
};
|
|
@@ -3689,7 +3760,7 @@ declare class Account {
|
|
|
3689
3760
|
*/
|
|
3690
3761
|
getAccountResource<T extends {} = any>(args: {
|
|
3691
3762
|
accountAddress: AccountAddressInput;
|
|
3692
|
-
resourceType:
|
|
3763
|
+
resourceType: MoveStructId;
|
|
3693
3764
|
options?: LedgerVersion;
|
|
3694
3765
|
}): Promise<T>;
|
|
3695
3766
|
/**
|
|
@@ -4471,23 +4542,23 @@ declare class SignedTransaction extends Serializable {
|
|
|
4471
4542
|
/**
|
|
4472
4543
|
* Entry function arguments to be used when building a raw transaction using remote ABI
|
|
4473
4544
|
*/
|
|
4474
|
-
|
|
4545
|
+
type SimpleEntryFunctionArgumentTypes = boolean | number | bigint | string | null | undefined | Uint8Array | Array<SimpleEntryFunctionArgumentTypes>;
|
|
4475
4546
|
/**
|
|
4476
4547
|
* Entry function arguments to be used when building a raw transaction using BCS serialized arguments
|
|
4477
4548
|
*/
|
|
4478
|
-
|
|
4549
|
+
type EntryFunctionArgumentTypes = Bool | U8 | U16 | U32 | U64 | U128 | U256 | AccountAddress | MoveVector<EntryFunctionArgumentTypes> | MoveOption<EntryFunctionArgumentTypes> | MoveString | FixedBytes;
|
|
4479
4550
|
/**
|
|
4480
4551
|
* Script function arguments to be used when building a raw transaction using BCS serialized arguments
|
|
4481
4552
|
*/
|
|
4482
|
-
|
|
4553
|
+
type ScriptFunctionArgumentTypes = Bool | U8 | U16 | U32 | U64 | U128 | U256 | AccountAddress | MoveVector<U8> | MoveString | FixedBytes;
|
|
4483
4554
|
/**
|
|
4484
4555
|
* Type that holds all raw transaction instances Aptos SDK supports
|
|
4485
4556
|
*/
|
|
4486
|
-
|
|
4557
|
+
type AnyRawTransactionInstance = RawTransaction | MultiAgentRawTransaction | FeePayerRawTransaction;
|
|
4487
4558
|
/**
|
|
4488
4559
|
* Optional options to set when generating a transaction
|
|
4489
4560
|
*/
|
|
4490
|
-
|
|
4561
|
+
type InputGenerateTransactionOptions = {
|
|
4491
4562
|
maxGasAmount?: AnyNumber;
|
|
4492
4563
|
gasUnitPrice?: AnyNumber;
|
|
4493
4564
|
expireTimestamp?: AnyNumber;
|
|
@@ -4496,42 +4567,40 @@ declare type InputGenerateTransactionOptions = {
|
|
|
4496
4567
|
/**
|
|
4497
4568
|
* The generated transaction payload type that was produces from `generateTransactionPayload()` function.
|
|
4498
4569
|
*/
|
|
4499
|
-
|
|
4570
|
+
type AnyTransactionPayloadInstance = TransactionPayloadEntryFunction | TransactionPayloadScript | TransactionPayloadMultisig;
|
|
4500
4571
|
/**
|
|
4501
4572
|
* Unified type for the data needed to generate a transaction payload of types:
|
|
4502
4573
|
* Entry Function | Script | Multi Sig
|
|
4503
4574
|
*/
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
aptosConfig?: undefined;
|
|
4507
|
-
}) | InputEntryFunctionDataWithRemoteABI | InputMultiSigDataWithRemoteABI;
|
|
4575
|
+
type InputGenerateTransactionPayloadData = InputEntryFunctionData | InputScriptData | InputMultiSigData;
|
|
4576
|
+
type InputGenerateTransactionPayloadDataWithRemoteABI = InputScriptData | InputEntryFunctionDataWithRemoteABI | InputMultiSigDataWithRemoteABI;
|
|
4508
4577
|
/**
|
|
4509
4578
|
* The data needed to generate an Entry Function payload
|
|
4510
4579
|
*/
|
|
4511
|
-
|
|
4512
|
-
function:
|
|
4513
|
-
typeArguments?: Array<TypeTag>;
|
|
4580
|
+
type InputEntryFunctionData = {
|
|
4581
|
+
function: MoveFunctionId;
|
|
4582
|
+
typeArguments?: Array<TypeTag | string>;
|
|
4514
4583
|
functionArguments: Array<EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes>;
|
|
4515
4584
|
};
|
|
4516
|
-
|
|
4585
|
+
type InputEntryFunctionDataWithRemoteABI = InputEntryFunctionData & {
|
|
4517
4586
|
aptosConfig: AptosConfig;
|
|
4518
4587
|
};
|
|
4519
4588
|
/**
|
|
4520
4589
|
* The data needed to generate a Multi Sig payload
|
|
4521
4590
|
*/
|
|
4522
|
-
|
|
4591
|
+
type InputMultiSigData = {
|
|
4523
4592
|
multisigAddress: AccountAddress;
|
|
4524
4593
|
} & InputEntryFunctionData;
|
|
4525
4594
|
/**
|
|
4526
4595
|
* The data needed to generate a Multi Sig payload
|
|
4527
4596
|
*/
|
|
4528
|
-
|
|
4597
|
+
type InputMultiSigDataWithRemoteABI = {
|
|
4529
4598
|
multisigAddress: AccountAddressInput;
|
|
4530
4599
|
} & InputEntryFunctionDataWithRemoteABI;
|
|
4531
4600
|
/**
|
|
4532
4601
|
* The data needed to generate a Script payload
|
|
4533
4602
|
*/
|
|
4534
|
-
|
|
4603
|
+
type InputScriptData = {
|
|
4535
4604
|
bytecode: HexInput;
|
|
4536
4605
|
typeArguments?: Array<TypeTag>;
|
|
4537
4606
|
functionArguments: Array<ScriptFunctionArgumentTypes>;
|
|
@@ -4541,7 +4610,7 @@ declare type InputScriptData = {
|
|
|
4541
4610
|
*
|
|
4542
4611
|
* This is used to provide type checking and simple input conversion on ABI based transaction submission.
|
|
4543
4612
|
*/
|
|
4544
|
-
|
|
4613
|
+
type EntryFunctionABI = {
|
|
4545
4614
|
typeParameters: Array<MoveFunctionGenericTypeParam>;
|
|
4546
4615
|
parameters: Array<TypeTag>;
|
|
4547
4616
|
};
|
|
@@ -4553,8 +4622,6 @@ interface InputGenerateSingleSignerRawTransactionArgs {
|
|
|
4553
4622
|
aptosConfig: AptosConfig;
|
|
4554
4623
|
sender: AccountAddressInput;
|
|
4555
4624
|
payload: AnyTransactionPayloadInstance;
|
|
4556
|
-
feePayerAddress?: undefined;
|
|
4557
|
-
secondarySignerAddresses?: undefined;
|
|
4558
4625
|
options?: InputGenerateTransactionOptions;
|
|
4559
4626
|
}
|
|
4560
4627
|
/**
|
|
@@ -4578,13 +4645,12 @@ interface InputGenerateMultiAgentRawTransactionArgs {
|
|
|
4578
4645
|
sender: AccountAddressInput;
|
|
4579
4646
|
payload: AnyTransactionPayloadInstance;
|
|
4580
4647
|
secondarySignerAddresses: AccountAddressInput[];
|
|
4581
|
-
feePayerAddress?: undefined;
|
|
4582
4648
|
options?: InputGenerateTransactionOptions;
|
|
4583
4649
|
}
|
|
4584
4650
|
/**
|
|
4585
4651
|
* Unified type that holds all the interfaces to generate different transaction types
|
|
4586
4652
|
*/
|
|
4587
|
-
|
|
4653
|
+
type InputGenerateRawTransactionArgs = InputGenerateSingleSignerRawTransactionArgs | InputGenerateFeePayerRawTransactionArgs | InputGenerateMultiAgentRawTransactionArgs;
|
|
4588
4654
|
/**
|
|
4589
4655
|
* Interface that holds the return data when generating a single signer transaction
|
|
4590
4656
|
*
|
|
@@ -4592,8 +4658,6 @@ declare type InputGenerateRawTransactionArgs = InputGenerateSingleSignerRawTrans
|
|
|
4592
4658
|
*/
|
|
4593
4659
|
interface InputSingleSignerTransaction {
|
|
4594
4660
|
rawTransaction: RawTransaction;
|
|
4595
|
-
feePayerAddress?: undefined;
|
|
4596
|
-
secondarySignerAddresses?: undefined;
|
|
4597
4661
|
}
|
|
4598
4662
|
/**
|
|
4599
4663
|
* Interface that holds the return data when generating a fee payer transaction
|
|
@@ -4616,13 +4680,12 @@ interface InputFeePayerTransaction {
|
|
|
4616
4680
|
interface InputMultiAgentTransaction {
|
|
4617
4681
|
rawTransaction: RawTransaction;
|
|
4618
4682
|
secondarySignerAddresses: AccountAddress[];
|
|
4619
|
-
feePayerAddress?: undefined;
|
|
4620
4683
|
}
|
|
4621
4684
|
/**
|
|
4622
4685
|
* Unified type that holds all the return interfaces when generating different transaction types
|
|
4623
4686
|
*/
|
|
4624
|
-
|
|
4625
|
-
|
|
4687
|
+
type AnyRawTransaction = InputSingleSignerTransaction | InputFeePayerTransaction | InputMultiAgentTransaction;
|
|
4688
|
+
type InputSimulateTransactionData = {
|
|
4626
4689
|
/**
|
|
4627
4690
|
* The transaction to simulate, probably generated by `generateTransaction()`
|
|
4628
4691
|
*/
|
|
@@ -4641,7 +4704,7 @@ declare type InputSimulateTransactionData = {
|
|
|
4641
4704
|
feePayerPublicKey?: PublicKey;
|
|
4642
4705
|
options?: InputSimulateTransactionOptions;
|
|
4643
4706
|
};
|
|
4644
|
-
|
|
4707
|
+
type InputSimulateTransactionOptions = {
|
|
4645
4708
|
estimateGasUnitPrice?: boolean;
|
|
4646
4709
|
estimateMaxGasAmount?: boolean;
|
|
4647
4710
|
estimatePrioritizedGasUnitPrice?: boolean;
|
|
@@ -4651,8 +4714,6 @@ declare type InputSimulateTransactionOptions = {
|
|
|
4651
4714
|
*/
|
|
4652
4715
|
interface InputGenerateSingleSignerRawTransactionData {
|
|
4653
4716
|
sender: AccountAddressInput;
|
|
4654
|
-
feePayerAddress?: undefined;
|
|
4655
|
-
secondarySignerAddresses?: undefined;
|
|
4656
4717
|
options?: InputGenerateTransactionOptions;
|
|
4657
4718
|
data: InputGenerateTransactionPayloadData;
|
|
4658
4719
|
}
|
|
@@ -4661,7 +4722,7 @@ interface InputGenerateSingleSignerRawTransactionData {
|
|
|
4661
4722
|
*/
|
|
4662
4723
|
interface InputGenerateFeePayerRawTransactionData {
|
|
4663
4724
|
sender: AccountAddressInput;
|
|
4664
|
-
|
|
4725
|
+
hasFeePayer: true;
|
|
4665
4726
|
secondarySignerAddresses?: AccountAddressInput[];
|
|
4666
4727
|
options?: InputGenerateTransactionOptions;
|
|
4667
4728
|
data: InputGenerateTransactionPayloadData;
|
|
@@ -4672,14 +4733,13 @@ interface InputGenerateFeePayerRawTransactionData {
|
|
|
4672
4733
|
interface InputGenerateMultiAgentRawTransactionData {
|
|
4673
4734
|
sender: AccountAddressInput;
|
|
4674
4735
|
secondarySignerAddresses: AccountAddressInput[];
|
|
4675
|
-
feePayerAddress?: undefined;
|
|
4676
4736
|
options?: InputGenerateTransactionOptions;
|
|
4677
4737
|
data: InputGenerateTransactionPayloadData;
|
|
4678
4738
|
}
|
|
4679
4739
|
/**
|
|
4680
4740
|
* Unified type that holds all the user data input interfaces when generating different transaction types
|
|
4681
4741
|
*/
|
|
4682
|
-
|
|
4742
|
+
type InputGenerateTransactionData = InputGenerateMultiAgentRawTransactionData | InputGenerateFeePayerRawTransactionData | InputGenerateSingleSignerRawTransactionData;
|
|
4683
4743
|
/**
|
|
4684
4744
|
* Interface that holds the user data input when submitting a transaction
|
|
4685
4745
|
*/
|
|
@@ -4710,7 +4770,7 @@ declare class Coin {
|
|
|
4710
4770
|
sender: Account$1;
|
|
4711
4771
|
recipient: AccountAddressInput;
|
|
4712
4772
|
amount: AnyNumber;
|
|
4713
|
-
coinType?:
|
|
4773
|
+
coinType?: MoveStructId;
|
|
4714
4774
|
options?: InputGenerateTransactionOptions;
|
|
4715
4775
|
}): Promise<InputSingleSignerTransaction>;
|
|
4716
4776
|
}
|
|
@@ -4904,7 +4964,7 @@ declare class Event {
|
|
|
4904
4964
|
*/
|
|
4905
4965
|
getAccountEventsByEventType(args: {
|
|
4906
4966
|
accountAddress: AccountAddressInput;
|
|
4907
|
-
eventType:
|
|
4967
|
+
eventType: MoveStructId;
|
|
4908
4968
|
options?: {
|
|
4909
4969
|
pagination?: PaginationArgs;
|
|
4910
4970
|
orderBy?: OrderBy<GetEventsResponse[0]>;
|
|
@@ -5117,10 +5177,10 @@ declare class General {
|
|
|
5117
5177
|
*
|
|
5118
5178
|
* @returns an array of Move values
|
|
5119
5179
|
*/
|
|
5120
|
-
view(args: {
|
|
5121
|
-
payload:
|
|
5180
|
+
view<T extends Array<MoveValue>>(args: {
|
|
5181
|
+
payload: InputViewRequestData;
|
|
5122
5182
|
options?: LedgerVersion;
|
|
5123
|
-
}): Promise<
|
|
5183
|
+
}): Promise<T>;
|
|
5124
5184
|
/**
|
|
5125
5185
|
* Queries top user transactions
|
|
5126
5186
|
*
|
|
@@ -5150,7 +5210,7 @@ declare class General {
|
|
|
5150
5210
|
*
|
|
5151
5211
|
* @return The provided T type
|
|
5152
5212
|
*/
|
|
5153
|
-
queryIndexer<T>(args: {
|
|
5213
|
+
queryIndexer<T extends {}>(args: {
|
|
5154
5214
|
query: GraphqlQuery;
|
|
5155
5215
|
}): Promise<T>;
|
|
5156
5216
|
/**
|
|
@@ -5379,10 +5439,11 @@ declare class TransactionSubmission {
|
|
|
5379
5439
|
*
|
|
5380
5440
|
* @param args.signer The signer account to sign the transaction
|
|
5381
5441
|
* @param args.transaction An instance of a RawTransaction, plus optional secondary/fee payer addresses
|
|
5442
|
+
* @param args.asFeePayer optional. If the signer is also the fee payer
|
|
5382
5443
|
* ```
|
|
5383
5444
|
* {
|
|
5384
5445
|
* rawTransaction: RawTransaction,
|
|
5385
|
-
* secondarySignerAddresses
|
|
5446
|
+
* secondarySignerAddresses?: Array<AccountAddress>,
|
|
5386
5447
|
* feePayerAddress?: AccountAddress
|
|
5387
5448
|
* }
|
|
5388
5449
|
* ```
|
|
@@ -5392,6 +5453,7 @@ declare class TransactionSubmission {
|
|
|
5392
5453
|
signTransaction(args: {
|
|
5393
5454
|
signer: Account$1;
|
|
5394
5455
|
transaction: AnyRawTransaction;
|
|
5456
|
+
asFeePayer?: boolean;
|
|
5395
5457
|
}): AccountAuthenticator;
|
|
5396
5458
|
/**
|
|
5397
5459
|
* Simulates a transaction before singing it.
|
|
@@ -5543,9 +5605,9 @@ declare function request<Req, Res>(options: ClientRequest<Req>, client: Client):
|
|
|
5543
5605
|
* @param aptosConfig The config information for the SDK client instance
|
|
5544
5606
|
* @returns the response or AptosApiError
|
|
5545
5607
|
*/
|
|
5546
|
-
declare function aptosRequest<Req, Res>(options: AptosRequest, aptosConfig: AptosConfig): Promise<AptosResponse<Req, Res>>;
|
|
5608
|
+
declare function aptosRequest<Req extends {}, Res extends {}>(options: AptosRequest, aptosConfig: AptosConfig): Promise<AptosResponse<Req, Res>>;
|
|
5547
5609
|
|
|
5548
|
-
|
|
5610
|
+
type GetRequestOptions = {
|
|
5549
5611
|
/**
|
|
5550
5612
|
* The config for the API client
|
|
5551
5613
|
*/
|
|
@@ -5579,18 +5641,18 @@ declare type GetRequestOptions = {
|
|
|
5579
5641
|
*/
|
|
5580
5642
|
overrides?: ClientConfig;
|
|
5581
5643
|
};
|
|
5582
|
-
|
|
5644
|
+
type GetAptosRequestOptions = Omit<GetRequestOptions, "type">;
|
|
5583
5645
|
/**
|
|
5584
5646
|
* Main function to do a Get request
|
|
5585
5647
|
*
|
|
5586
5648
|
* @param options GetRequestOptions
|
|
5587
5649
|
* @returns
|
|
5588
5650
|
*/
|
|
5589
|
-
declare function get<Req, Res>(options: GetRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
5590
|
-
declare function getAptosFullNode<Req, Res>(options: GetAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
5651
|
+
declare function get<Req extends {}, Res extends {}>(options: GetRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
5652
|
+
declare function getAptosFullNode<Req extends {}, Res extends {}>(options: GetAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
5591
5653
|
declare function paginateWithCursor<Req extends Record<string, any>, Res extends any[]>(options: GetAptosRequestOptions): Promise<Res>;
|
|
5592
5654
|
|
|
5593
|
-
|
|
5655
|
+
type PostRequestOptions = {
|
|
5594
5656
|
/**
|
|
5595
5657
|
* The config for the API client
|
|
5596
5658
|
*/
|
|
@@ -5628,17 +5690,17 @@ declare type PostRequestOptions = {
|
|
|
5628
5690
|
*/
|
|
5629
5691
|
overrides?: ClientConfig;
|
|
5630
5692
|
};
|
|
5631
|
-
|
|
5693
|
+
type PostAptosRequestOptions = Omit<PostRequestOptions, "type">;
|
|
5632
5694
|
/**
|
|
5633
5695
|
* Main function to do a Post request
|
|
5634
5696
|
*
|
|
5635
5697
|
* @param options PostRequestOptions
|
|
5636
5698
|
* @returns
|
|
5637
5699
|
*/
|
|
5638
|
-
declare function post<Req, Res>(options: PostRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
5639
|
-
declare function postAptosFullNode<Req, Res>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
5640
|
-
declare function postAptosIndexer<Req, Res>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
5641
|
-
declare function postAptosFaucet<Req, Res>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
5700
|
+
declare function post<Req extends {}, Res extends {}>(options: PostRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
5701
|
+
declare function postAptosFullNode<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
5702
|
+
declare function postAptosIndexer<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
5703
|
+
declare function postAptosFaucet<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
5642
5704
|
|
|
5643
5705
|
declare function isBool(arg: SimpleEntryFunctionArgumentTypes): arg is boolean;
|
|
5644
5706
|
declare function isString(arg: any): arg is string;
|
|
@@ -5665,7 +5727,7 @@ declare function throwTypeMismatch(expectedType: string, position: number): void
|
|
|
5665
5727
|
* @param functionAbi
|
|
5666
5728
|
*/
|
|
5667
5729
|
declare function findFirstNonSignerArg(functionAbi: MoveFunction): number;
|
|
5668
|
-
declare function getFunctionParts(functionArg:
|
|
5730
|
+
declare function getFunctionParts(functionArg: MoveFunctionId): {
|
|
5669
5731
|
moduleAddress: string;
|
|
5670
5732
|
moduleName: string;
|
|
5671
5733
|
functionName: string;
|
|
@@ -5677,15 +5739,12 @@ declare function getFunctionParts(functionArg: MoveStructType): {
|
|
|
5677
5739
|
* When we call our `generateTransactionPayload` function with the relevant type properties,
|
|
5678
5740
|
* Typescript can infer the return type based on the appropriate function overload.
|
|
5679
5741
|
*/
|
|
5680
|
-
declare function generateTransactionPayload(args: InputScriptData
|
|
5681
|
-
aptosConfig?: undefined;
|
|
5682
|
-
}): Promise<TransactionPayloadScript>;
|
|
5742
|
+
declare function generateTransactionPayload(args: InputScriptData): Promise<TransactionPayloadScript>;
|
|
5683
5743
|
declare function generateTransactionPayload(args: InputEntryFunctionDataWithRemoteABI): Promise<TransactionPayloadEntryFunction>;
|
|
5684
5744
|
declare function generateTransactionPayload(args: InputMultiSigDataWithRemoteABI): Promise<TransactionPayloadMultisig>;
|
|
5685
5745
|
declare function generateTransactionPayload(args: InputGenerateTransactionPayloadDataWithRemoteABI): Promise<AnyTransactionPayloadInstance>;
|
|
5686
5746
|
declare function generateTransactionPayloadWithABI(args: InputEntryFunctionData, functionAbi: EntryFunctionABI): TransactionPayloadEntryFunction;
|
|
5687
5747
|
declare function generateTransactionPayloadWithABI(args: InputMultiSigData, functionAbi: EntryFunctionABI): TransactionPayloadMultisig;
|
|
5688
|
-
declare function generateTransactionPayloadWithABI(args: InputGenerateTransactionPayloadData, functionAbi: EntryFunctionABI): AnyTransactionPayloadInstance;
|
|
5689
5748
|
/**
|
|
5690
5749
|
* Generates a raw transaction
|
|
5691
5750
|
*
|
|
@@ -5790,6 +5849,7 @@ declare function convertArgument(functionName: string, functionAbi: EntryFunctio
|
|
|
5790
5849
|
|
|
5791
5850
|
declare enum TypeTagParserErrorType {
|
|
5792
5851
|
InvalidTypeTag = "unknown type",
|
|
5852
|
+
UnexpectedGenericType = "unexpected generic type",
|
|
5793
5853
|
UnexpectedTypeArgumentClose = "unexpected '>'",
|
|
5794
5854
|
UnexpectedWhitespaceCharacter = "unexpected whitespace character",
|
|
5795
5855
|
UnexpectedComma = "unexpected ','",
|
|
@@ -5820,4 +5880,4 @@ declare function parseTypeTag(typeStr: string, options?: {
|
|
|
5820
5880
|
allowGenerics?: boolean;
|
|
5821
5881
|
}): TypeTag;
|
|
5822
5882
|
|
|
5823
|
-
export { APTOS_BIP44_REGEX, APTOS_HARDENED_REGEX, Account$1 as Account, AccountAddress, AccountAddressInput, AccountAuthenticator, AccountAuthenticatorEd25519, AccountAuthenticatorMultiEd25519, AccountAuthenticatorMultiKey, AccountAuthenticatorSingleKey, AccountAuthenticatorVariant, AccountData, AccountEd25519Signature, AccountMultiEd25519Signature, AccountSecp256k1Signature, AccountSignature, AddressInvalidReason, AnyNumber, AnyPublicKeyVariant, AnyRawTransaction, AnyRawTransactionInstance, AnySignatureVariant, AnyTransactionPayloadInstance, Aptos, AptosApiError, AptosConfig, AptosRequest, AptosResponse, AptosSettings, AuthenticationKey, AuthenticationKeyScheme, Block, BlockMetadataTransactionResponse, Bool, CKDPriv, ChainId, Client, ClientConfig, ClientRequest, ClientResponse, DecodedTableData, DeletedTableData, DeriveScheme, DerivedKeys, Deserializable, Deserializer, DirectWriteSet, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, EntryFunction, EntryFunctionABI, EntryFunctionArgument, EntryFunctionArgumentTypes, EntryFunctionBytes, EntryFunctionPayloadResponse, Event$1 as Event, EventGuid, FeePayerRawTransaction, FixedBytes, GasEstimation, GenerateAccount, GenerateAccountWithEd25519, GenerateAccountWithSingleSignerSecp256k1Key, GenesisPayload, GenesisTransactionResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedObjectsResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, GetAptosRequestOptions, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, GetRequestOptions, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, HARDENED_OFFSET, Hex, HexInput, HexInvalidReason, Identifier, InputEntryFunctionData, InputEntryFunctionDataWithRemoteABI, InputFeePayerTransaction, InputGenerateFeePayerRawTransactionArgs, InputGenerateFeePayerRawTransactionData, InputGenerateMultiAgentRawTransactionArgs, InputGenerateMultiAgentRawTransactionData, InputGenerateRawTransactionArgs, InputGenerateSingleSignerRawTransactionArgs, InputGenerateSingleSignerRawTransactionData, InputGenerateTransactionData, InputGenerateTransactionOptions, InputGenerateTransactionPayloadData, InputGenerateTransactionPayloadDataWithRemoteABI, InputMultiAgentTransaction, InputMultiSigData, InputMultiSigDataWithRemoteABI, InputScriptData, InputSimulateTransactionData, InputSimulateTransactionOptions, InputSingleSignerTransaction, InputSubmitTransactionData, KeyType, LedgerInfo, LedgerVersion, MimeType, ModuleId, MoveAbility, MoveAddressType, MoveFunction, MoveFunctionGenericTypeParam, MoveFunctionVisibility, MoveModule, MoveModuleBytecode, MoveModuleId, MoveObjectType, MoveOption, MoveOptionType, MoveResource, MoveScriptBytecode, MoveString, MoveStruct, MoveStructField, MoveStructType, MoveType, MoveUint128Type, MoveUint16Type, MoveUint256Type, MoveUint32Type, MoveUint64Type, MoveUint8Type, MoveValue, MoveVector, MultiAgentRawTransaction, MultiEd25519PublicKey, MultiEd25519Signature, MultiKey, MultiSig, MultisigPayloadResponse, MultisigTransactionPayload, Network, NetworkToChainId, NetworkToFaucetAPI, NetworkToIndexerAPI, NetworkToNetworkName, NetworkToNodeAPI, OrderBy, OrderByValue, PaginationArgs, ParsingError, ParsingResult, PendingTransactionResponse, PostAptosRequestOptions, PostRequestOptions, PrivateKey, PublicKey, RawTransaction, RawTransactionWithData, RoleType, RotationProofChallenge, Script, ScriptFunctionArgument, ScriptFunctionArgumentTypes, ScriptPayloadResponse, ScriptTransactionArgumentVariants, ScriptWriteSet, Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature, Serializable, Serializer, Signature, SignedTransaction, SigningScheme, SigningSchemeInput, SimpleEntryFunctionArgumentTypes, StateCheckpointTransactionResponse, StructTag, TableItemRequest, TokenStandard, TransactionArgument, TransactionAuthenticator, TransactionAuthenticatorEd25519, TransactionAuthenticatorFeePayer, TransactionAuthenticatorMultiAgent, TransactionAuthenticatorMultiEd25519, TransactionAuthenticatorSingleSender, TransactionAuthenticatorVariant, TransactionEd25519Signature, TransactionFeePayerSignature, TransactionMultiAgentSignature, TransactionMultiEd25519Signature, TransactionPayload, TransactionPayloadEntryFunction, TransactionPayloadMultisig, TransactionPayloadResponse, TransactionPayloadScript, TransactionPayloadVariants, TransactionResponse, TransactionResponseType, TransactionSecp256k1Signature, TransactionSignature, TransactionVariants, TypeTag, TypeTagAddress, TypeTagBool, TypeTagGeneric, TypeTagParserError, TypeTagParserErrorType, TypeTagReference, TypeTagSigner, TypeTagStruct, TypeTagU128, TypeTagU16, TypeTagU256, TypeTagU32, TypeTagU64, TypeTagU8, TypeTagVariants, TypeTagVector, U128, U16, U256, U32, U64, U8, Uint128, Uint16, Uint256, Uint32, Uint64, Uint8, UserTransactionResponse, ViewRequest,
|
|
5883
|
+
export { APTOS_BIP44_REGEX, APTOS_COIN, APTOS_HARDENED_REGEX, Account$1 as Account, AccountAddress, AccountAddressInput, AccountAuthenticator, AccountAuthenticatorEd25519, AccountAuthenticatorMultiEd25519, AccountAuthenticatorMultiKey, AccountAuthenticatorSingleKey, AccountAuthenticatorVariant, AccountData, AccountEd25519Signature, AccountMultiEd25519Signature, AccountSecp256k1Signature, AccountSignature, AddressInvalidReason, AnyNumber, AnyPublicKeyVariant, AnyRawTransaction, AnyRawTransactionInstance, AnySignatureVariant, AnyTransactionPayloadInstance, Aptos, AptosApiError, AptosApiType, AptosConfig, AptosRequest, AptosResponse, AptosSettings, AuthenticationKey, AuthenticationKeyScheme, Block, BlockMetadataTransactionResponse, Bool, CKDPriv, ChainId, Client, ClientConfig, ClientRequest, ClientResponse, DEFAULT_MAX_GAS_AMOUNT, DEFAULT_NETWORK, DEFAULT_TXN_EXP_SEC_FROM_NOW, DEFAULT_TXN_TIMEOUT_SEC, DecodedTableData, DeletedTableData, DeriveScheme, DerivedKeys, Deserializable, Deserializer, DirectWriteSet, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, EntryFunction, EntryFunctionABI, EntryFunctionArgument, EntryFunctionArgumentTypes, EntryFunctionBytes, EntryFunctionPayloadResponse, Event$1 as Event, EventGuid, FeePayerRawTransaction, FixedBytes, GasEstimation, GenerateAccount, GenerateAccountWithEd25519, GenerateAccountWithSingleSignerSecp256k1Key, GenesisPayload, GenesisTransactionResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedObjectsResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, GetAptosRequestOptions, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, GetRequestOptions, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, HARDENED_OFFSET, Hex, HexInput, HexInvalidReason, Identifier, InputEntryFunctionData, InputEntryFunctionDataWithRemoteABI, InputFeePayerTransaction, InputGenerateFeePayerRawTransactionArgs, InputGenerateFeePayerRawTransactionData, InputGenerateMultiAgentRawTransactionArgs, InputGenerateMultiAgentRawTransactionData, InputGenerateRawTransactionArgs, InputGenerateSingleSignerRawTransactionArgs, InputGenerateSingleSignerRawTransactionData, InputGenerateTransactionData, InputGenerateTransactionOptions, InputGenerateTransactionPayloadData, InputGenerateTransactionPayloadDataWithRemoteABI, InputMultiAgentTransaction, InputMultiSigData, InputMultiSigDataWithRemoteABI, InputScriptData, InputSimulateTransactionData, InputSimulateTransactionOptions, InputSingleSignerTransaction, InputSubmitTransactionData, InputViewRequestData, KeyType, LedgerInfo, LedgerVersion, MimeType, ModuleId, MoveAbility, MoveAddressType, MoveFunction, MoveFunctionGenericTypeParam, MoveFunctionId, MoveFunctionVisibility, MoveModule, MoveModuleBytecode, MoveModuleId, MoveObjectType, MoveOption, MoveOptionType, MoveResource, MoveScriptBytecode, MoveString, MoveStruct, MoveStructField, MoveStructId, MoveStructType, MoveType, MoveUint128Type, MoveUint16Type, MoveUint256Type, MoveUint32Type, MoveUint64Type, MoveUint8Type, MoveValue, MoveVector, MultiAgentRawTransaction, MultiEd25519PublicKey, MultiEd25519Signature, MultiKey, MultiSig, MultisigPayloadResponse, MultisigTransactionPayload, Network, NetworkToChainId, NetworkToFaucetAPI, NetworkToIndexerAPI, NetworkToNetworkName, NetworkToNodeAPI, OrderBy, OrderByValue, PaginationArgs, ParsingError, ParsingResult, PendingTransactionResponse, PostAptosRequestOptions, PostRequestOptions, PrivateKey, PublicKey, RAW_TRANSACTION_SALT, RAW_TRANSACTION_WITH_DATA_SALT, RawTransaction, RawTransactionWithData, RoleType, RotationProofChallenge, Script, ScriptFunctionArgument, ScriptFunctionArgumentTypes, ScriptPayloadResponse, ScriptTransactionArgumentVariants, ScriptWriteSet, Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature, Serializable, Serializer, Signature, SignedTransaction, SigningScheme, SigningSchemeInput, SimpleEntryFunctionArgumentTypes, StateCheckpointTransactionResponse, StructTag, TableItemRequest, TokenStandard, TransactionArgument, TransactionAuthenticator, TransactionAuthenticatorEd25519, TransactionAuthenticatorFeePayer, TransactionAuthenticatorMultiAgent, TransactionAuthenticatorMultiEd25519, TransactionAuthenticatorSingleSender, TransactionAuthenticatorVariant, TransactionEd25519Signature, TransactionFeePayerSignature, TransactionMultiAgentSignature, TransactionMultiEd25519Signature, TransactionPayload, TransactionPayloadEntryFunction, TransactionPayloadMultisig, TransactionPayloadResponse, TransactionPayloadScript, TransactionPayloadVariants, TransactionResponse, TransactionResponseType, TransactionSecp256k1Signature, TransactionSignature, TransactionVariants, TypeTag, TypeTagAddress, TypeTagBool, TypeTagGeneric, TypeTagParserError, TypeTagParserErrorType, TypeTagReference, TypeTagSigner, TypeTagStruct, TypeTagU128, TypeTagU16, TypeTagU256, TypeTagU32, TypeTagU64, TypeTagU8, TypeTagVariants, TypeTagVector, U128, U16, U256, U32, U64, U8, Uint128, Uint16, Uint256, Uint32, Uint64, Uint8, UserTransactionResponse, ViewRequest, WaitForTransactionOptions, WriteSet, WriteSetChange, WriteSetChangeDeleteModule, WriteSetChangeDeleteResource, WriteSetChangeDeleteTableItem, WriteSetChangeWriteModule, WriteSetChangeWriteResource, WriteSetChangeWriteTableItem, aptosCoinStructTag, aptosRequest, buildTransaction, convertArgument, deriveKey, deriveTransactionType, deserializeFromScriptArgument, ensureBoolean, fetchEntryFunctionAbi, findFirstNonSignerArg, generateMultiSignersSignedTransaction, generateRawTransaction, generateSignedTransaction, generateSignedTransactionForSimulation, generateTransactionPayload, generateTransactionPayloadWithABI, get, getAptosFullNode, getAuthenticatorForSimulation, getFunctionParts, getSigningMessage, isBcsAddress, isBcsBool, isBcsFixedBytes, isBcsString, isBcsU128, isBcsU16, isBcsU256, isBcsU32, isBcsU64, isBcsU8, isBool, isLargeNumber, isNull, isNumber, isScriptDataInput, isString, isValidBIP44Path, isValidHardenedPath, mnemonicToSeed, objectStructTag, optionStructTag, outOfRangeErrorMessage, paginateWithCursor, parseTypeTag, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, request, sign, splitPath, standardizeTypeTags, stringStructTag, throwTypeMismatch, validateNumberInRange };
|