opnet 1.0.49 → 1.0.50
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/.babelrc +8 -7
- package/.github/ISSUE_TEMPLATE/bug_report.md +38 -38
- package/.github/ISSUE_TEMPLATE/feature_request.md +20 -20
- package/.github/workflows/ci.yml +48 -0
- package/.prettierrc.json +11 -11
- package/CONTRIBUTING.md +71 -71
- package/LICENSE.md +16 -16
- package/README.md +96 -93
- package/STAKING.md +60 -70
- package/browser/_version.d.ts +1 -1
- package/browser/bitcoin/BitcoinAddress.d.ts +0 -1
- package/browser/contracts/CallResult.d.ts +0 -1
- package/browser/contracts/Contract.d.ts +0 -1
- package/browser/contracts/ContractData.d.ts +0 -1
- package/browser/contracts/interfaces/IContract.d.ts +0 -1
- package/browser/contracts/interfaces/IRawContract.d.ts +0 -1
- package/browser/crypto/crypto.d.ts +0 -1
- package/browser/index.js +2 -2
- package/browser/providers/AbstractRpcProvider.d.ts +47 -48
- package/browser/providers/JSONRpcProvider.d.ts +10 -10
- package/browser/storage/StoredValue.d.ts +0 -1
- package/browser/storage/interfaces/IStorageValue.d.ts +0 -1
- package/browser/transactions/decoders/DeploymentTransaction.d.ts +0 -1
- package/browser/transactions/decoders/InteractionTransaction.d.ts +0 -1
- package/browser/transactions/interfaces/ITransaction.d.ts +0 -1
- package/browser/transactions/interfaces/ITransactionReceipt.d.ts +0 -1
- package/browser/transactions/interfaces/transactions/IDeploymentTransaction.d.ts +0 -1
- package/browser/transactions/interfaces/transactions/IInteractionTransaction.d.ts +0 -1
- package/browser/transactions/interfaces/transactions/IUnwrapTransaction.d.ts +0 -1
- package/browser/transactions/metadata/TransactionOutput.d.ts +0 -1
- package/browser/transactions/metadata/TransactionReceipt.d.ts +0 -1
- package/build/abi/BitcoinInterface.js +0 -1
- package/build/bitcoin/BitcoinAddress.d.ts +0 -1
- package/build/bitcoin/BitcoinAddress.js +30 -19
- package/build/bitcoin/UTXOs.js +0 -4
- package/build/block/Block.js +1 -19
- package/build/contracts/CallResult.d.ts +0 -1
- package/build/contracts/CallResult.js +2 -7
- package/build/contracts/Contract.d.ts +0 -1
- package/build/contracts/Contract.js +1 -6
- package/build/contracts/ContractData.d.ts +0 -1
- package/build/contracts/ContractData.js +0 -11
- package/build/contracts/OPNetEvent.js +2 -5
- package/build/contracts/interfaces/IContract.d.ts +0 -1
- package/build/contracts/interfaces/IRawContract.d.ts +0 -1
- package/build/crypto/crypto.d.ts +0 -1
- package/build/providers/AbstractRpcProvider.d.ts +0 -1
- package/build/providers/AbstractRpcProvider.js +3 -4
- package/build/providers/JSONRpcProvider.js +1 -3
- package/build/providers/WebsocketRpcProvider.js +0 -1
- package/build/storage/StoredValue.d.ts +0 -1
- package/build/storage/StoredValue.js +0 -4
- package/build/storage/interfaces/IStorageValue.d.ts +0 -1
- package/build/transactions/Transaction.js +0 -8
- package/build/transactions/decoders/DeploymentTransaction.d.ts +0 -1
- package/build/transactions/decoders/DeploymentTransaction.js +0 -10
- package/build/transactions/decoders/InteractionTransaction.d.ts +0 -1
- package/build/transactions/decoders/InteractionTransaction.js +0 -7
- package/build/transactions/decoders/UnwrapTransaction.js +0 -5
- package/build/transactions/decoders/WrapTransaction.js +0 -7
- package/build/transactions/interfaces/ITransaction.d.ts +0 -1
- package/build/transactions/interfaces/ITransactionReceipt.d.ts +0 -1
- package/build/transactions/interfaces/transactions/IDeploymentTransaction.d.ts +0 -1
- package/build/transactions/interfaces/transactions/IInteractionTransaction.d.ts +0 -1
- package/build/transactions/interfaces/transactions/IUnwrapTransaction.d.ts +0 -1
- package/build/transactions/metadata/TransactionInput.js +1 -5
- package/build/transactions/metadata/TransactionOutput.d.ts +0 -1
- package/build/transactions/metadata/TransactionOutput.js +0 -4
- package/build/transactions/metadata/TransactionReceipt.d.ts +0 -1
- package/build/transactions/metadata/TransactionReceipt.js +0 -4
- package/cjs/package.json +3 -3
- package/docs/assets/highlight.css +92 -92
- package/docs/classes/AbstractRpcProvider.html +334 -334
- package/docs/classes/BaseContract.html +198 -198
- package/docs/classes/BitcoinAddress.html +192 -192
- package/docs/classes/BitcoinInterface.html +182 -182
- package/docs/classes/BitcoinUtils.html +182 -182
- package/docs/classes/Block.html +196 -196
- package/docs/classes/CallResult.html +185 -185
- package/docs/classes/ContractData.html +187 -187
- package/docs/classes/DeploymentTransaction.html +220 -220
- package/docs/classes/GenericTransaction.html +200 -200
- package/docs/classes/IBaseContract.html +203 -203
- package/docs/classes/InteractionTransaction.html +213 -213
- package/docs/classes/JSONRpcProvider.html +332 -332
- package/docs/classes/OPNetEvent.html +181 -181
- package/docs/classes/StoredValue.html +181 -181
- package/docs/classes/TransactionBase.html +200 -200
- package/docs/classes/TransactionInput.html +180 -180
- package/docs/classes/TransactionOutput.html +180 -180
- package/docs/classes/TransactionParser.html +177 -177
- package/docs/classes/TransactionReceipt.html +187 -187
- package/docs/classes/UTXO.html +180 -180
- package/docs/classes/UnwrapTransaction.html +224 -224
- package/docs/classes/WebSocketRpcProvider.html +329 -329
- package/docs/classes/WrapTransaction.html +228 -228
- package/docs/enums/ABIDataTypes.html +193 -193
- package/docs/enums/BitcoinAbiTypes.html +177 -177
- package/docs/enums/GenerateTarget.html +174 -174
- package/docs/enums/JSONRPCErrorCode.html +183 -183
- package/docs/enums/JSONRPCErrorHttpCodes.html +183 -183
- package/docs/enums/JSONRpcMethods.html +196 -196
- package/docs/enums/OPNetTransactionTypes.html +178 -178
- package/docs/functions/getContract.html +182 -182
- package/docs/hierarchy.html +173 -173
- package/docs/index.html +218 -218
- package/docs/interfaces/BaseContractProperties.html +180 -180
- package/docs/interfaces/BitcoinAbiValue.html +179 -179
- package/docs/interfaces/BitcoinInterfaceAbiBase.html +177 -177
- package/docs/interfaces/BroadcastedTransaction.html +183 -183
- package/docs/interfaces/ContractEvents.html +173 -173
- package/docs/interfaces/EventBaseData.html +178 -178
- package/docs/interfaces/FunctionBaseData.html +181 -181
- package/docs/interfaces/IAccessList.html +175 -175
- package/docs/interfaces/IAccessListItem.html +175 -175
- package/docs/interfaces/IBlock.html +195 -195
- package/docs/interfaces/IBlockCommon.html +194 -194
- package/docs/interfaces/IBlockWitness.html +175 -175
- package/docs/interfaces/IBlockWitnessAPI.html +177 -177
- package/docs/interfaces/ICallRequestError.html +176 -176
- package/docs/interfaces/ICallResultData.html +179 -179
- package/docs/interfaces/ICommonTransaction.html +205 -205
- package/docs/interfaces/IContract.html +180 -180
- package/docs/interfaces/IDecodedEvent.html +177 -177
- package/docs/interfaces/IDeploymentTransaction.html +219 -219
- package/docs/interfaces/IGenericTransaction.html +199 -199
- package/docs/interfaces/IInteractionTransaction.html +213 -213
- package/docs/interfaces/IMotoContract.html +196 -196
- package/docs/interfaces/IMotoswapFactoryContract.html +193 -193
- package/docs/interfaces/IMotoswapPoolContract.html +208 -208
- package/docs/interfaces/IMotoswapRouterContract.html +227 -227
- package/docs/interfaces/IOP_20Contract.html +196 -196
- package/docs/interfaces/IOP_NETContract.html +183 -183
- package/docs/interfaces/IRawContract.html +187 -187
- package/docs/interfaces/IRawContractEvents.html +173 -173
- package/docs/interfaces/IStackingContract.html +183 -183
- package/docs/interfaces/IStorageValue.html +179 -179
- package/docs/interfaces/ITransactionBase.html +199 -199
- package/docs/interfaces/ITransactionInput.html +179 -179
- package/docs/interfaces/ITransactionOutput.html +177 -177
- package/docs/interfaces/ITransactionReceipt.html +183 -183
- package/docs/interfaces/IUTXO.html +179 -179
- package/docs/interfaces/IUnwrapTransaction.html +223 -223
- package/docs/interfaces/IWBTCContract.html +209 -209
- package/docs/interfaces/IWrapTransaction.html +227 -227
- package/docs/interfaces/JSONRpc2Request.html +177 -177
- package/docs/interfaces/JSONRpc2ResponseError.html +177 -177
- package/docs/interfaces/JSONRpc2ResponseResult.html +177 -177
- package/docs/interfaces/JSONRpc2ResultData.html +173 -173
- package/docs/interfaces/JSONRpcErrorData.html +173 -173
- package/docs/interfaces/JSONRpcParams.html +173 -173
- package/docs/interfaces/JSONRpcResultError.html +176 -176
- package/docs/interfaces/MergedOP_20AndStackingContract.html +201 -201
- package/docs/interfaces/NetEventDocument.html +182 -182
- package/docs/interfaces/ParsedPartialWBTCUTXODocument.html +178 -178
- package/docs/interfaces/PartialWBTCUTXODocument.html +178 -178
- package/docs/interfaces/ReorgInformation.html +176 -176
- package/docs/interfaces/UsedUTXO.html +175 -175
- package/docs/modules.html +296 -296
- package/docs/types/BaseContractProperty.html +175 -175
- package/docs/types/BigNumberish.html +173 -173
- package/docs/types/BitcoinAddressLike.html +173 -173
- package/docs/types/BitcoinInterfaceAbi.html +173 -173
- package/docs/types/BlockHeaderChecksumProof.html +173 -173
- package/docs/types/BlockTag.html +173 -173
- package/docs/types/BlockWitnesses.html +173 -173
- package/docs/types/ContractDecodedObjectResult.html +173 -173
- package/docs/types/DecodedCallResult.html +173 -173
- package/docs/types/DecodedOutput.html +173 -173
- package/docs/types/GenerationParameters.html +173 -173
- package/docs/types/ICallResult.html +174 -174
- package/docs/types/ITransaction.html +174 -174
- package/docs/types/InteractionType.html +173 -173
- package/docs/types/JSONRpc2RequestParams.html +173 -173
- package/docs/types/JSONRpc2Result.html +173 -173
- package/docs/types/JSONRpcId.html +173 -173
- package/docs/types/JsonRpcCallResult.html +173 -173
- package/docs/types/JsonRpcError.html +173 -173
- package/docs/types/JsonRpcPayload.html +173 -173
- package/docs/types/JsonRpcResult.html +173 -173
- package/docs/types/Numeric.html +173 -173
- package/docs/types/PointerLike.html +173 -173
- package/docs/types/RawContractEvents.html +173 -173
- package/docs/types/UTXOs.html +175 -175
- package/docs/variables/MOTOSWAP_ROUTER_ABI.html +173 -173
- package/docs/variables/MOTO_TOKEN_ABI.html +173 -173
- package/docs/variables/MotoSwapFactoryAbi.html +173 -173
- package/docs/variables/MotoSwapFactoryEvents.html +173 -173
- package/docs/variables/MotoSwapPoolEvents.html +173 -173
- package/docs/variables/MotoswapPoolAbi.html +173 -173
- package/docs/variables/OP20Events.html +173 -173
- package/docs/variables/OP_20_ABI.html +173 -173
- package/docs/variables/OP_NET_ABI.html +173 -173
- package/docs/variables/STAKING_ABI.html +173 -173
- package/docs/variables/StackingEvents.html +173 -173
- package/docs/variables/WBTCEvents.html +173 -173
- package/docs/variables/WBTC_ABI.html +173 -173
- package/docs/variables/version.html +173 -173
- package/gulpfile.js +49 -120
- package/package.json +111 -109
- package/src/_version.ts +1 -1
- package/src/abi/shared/json/MOTOSWAP_POOL_ABI.ts +299 -299
- package/src/contracts/Contract.ts +600 -600
- package/src/crypto/crypto.ts +1 -1
- package/src/providers/AbstractRpcProvider.ts +602 -602
- package/src/providers/JSONRpcProvider.ts +81 -81
- package/src/serialize/BigInt.ts +15 -15
- package/tsconfig.base.json +43 -43
- package/tsconfig.json +15 -8
- package/tsconfig.webpack.json +19 -19
- package/.github/workflows/node.js.yml +0 -21
- package/.idea/bsc.iml +0 -14
- package/.idea/bsi-binary.iml +0 -14
- package/.idea/codeStyles/Project.xml +0 -101
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/inspectionProfiles/Project_Default.xml +0 -7
- package/.idea/markdown.xml +0 -7
- package/.idea/modules.xml +0 -8
- package/.idea/motoswap.iml +0 -12
- package/.idea/opnet.iml +0 -17
- package/.idea/prettier.xml +0 -7
- package/.idea/vcs.xml +0 -6
- package/browser/crypto/crypto-browser.d.ts +0 -40
- package/browser/generator/WrappedGenerationParameters.d.ts +0 -9
- package/browser/scripts/ITestContract.d.ts +0 -22
- package/browser/scripts/block.d.ts +0 -1
- package/browser/scripts/test.d.ts +0 -1
- package/browser/scripts/testContract.d.ts +0 -1
- package/browser/scripts/testMethods.d.ts +0 -1
- package/browser/scripts/testMethodsReg.d.ts +0 -1
- package/browser/scripts/testWBTCContract.d.ts +0 -1
- package/browser/transactions/DeploymentTransaction.d.ts +0 -16
- package/browser/transactions/GenericTransaction.d.ts +0 -6
- package/browser/transactions/InteractionTransaction.d.ts +0 -15
- package/browser/transactions/TransactionInput.d.ts +0 -16
- package/browser/transactions/TransactionOutput.d.ts +0 -19
- package/browser/transactions/TransactionReceipt.d.ts +0 -11
- package/build/abi/BitcoinInterfaceAbi.d.ts +0 -3
- package/build/abi/BitcoinInterfaceAbi.js +0 -1
- package/build/abi/enums/ParamTypes.d.ts +0 -0
- package/build/abi/enums/ParamTypes.js +0 -1
- package/build/abi/interface/BitcoinInterface.d.ts +0 -6
- package/build/abi/interface/BitcoinInterface.js +0 -12
- package/build/abi/interface/BitcoinInterfaceAbi.d.ts +0 -3
- package/build/abi/interface/BitcoinInterfaceAbi.js +0 -1
- package/build/abi/interfaces/BaseContractProperty.d.ts +0 -2
- package/build/abi/interfaces/BaseContractProperty.js +0 -1
- package/build/abi/interfaces/BitcoinAbiInput.d.ts +0 -5
- package/build/abi/interfaces/BitcoinAbiInput.js +0 -1
- package/build/abi/shared/MOTOSWAP_FACTORY_ABI.d.ts +0 -2
- package/build/abi/shared/MOTOSWAP_FACTORY_ABI.js +0 -68
- package/build/abi/shared/OP_20_ABI.d.ts +0 -2
- package/build/abi/shared/OP_20_ABI.js +0 -235
- package/build/abi/shared/OP_NET_ABI.d.ts +0 -2
- package/build/abi/shared/OP_NET_ABI.js +0 -31
- package/build/abi/shared/STAKING_ABI.d.ts +0 -2
- package/build/abi/shared/STAKING_ABI.js +0 -96
- package/build/abi/shared/WBTC_ABI.d.ts +0 -2
- package/build/abi/shared/WBTC_ABI.js +0 -40
- package/build/bitcoin/UXTOs.d.ts +0 -7
- package/build/bitcoin/UXTOs.js +0 -1
- package/build/block/index.d.ts +0 -2
- package/build/block/index.js +0 -1
- package/build/contracts/DecodedEvent.d.ts +0 -15
- package/build/contracts/DecodedEvent.js +0 -18
- package/build/contracts/IRawContract.d.ts +0 -13
- package/build/contracts/IRawContract.js +0 -1
- package/build/crypto/crypto-browser.d.ts +0 -0
- package/build/crypto/crypto-browser.js +0 -47
- package/build/generator/WrappedGenerationParameters.d.ts +0 -9
- package/build/generator/WrappedGenerationParameters.js +0 -14
- package/build/interface/BitcoinInterface.d.ts +0 -6
- package/build/interface/BitcoinInterface.js +0 -12
- package/build/interface/BitcoinInterfaceAbi.d.ts +0 -3
- package/build/interface/BitcoinInterfaceAbi.js +0 -1
- package/build/interface/Interface.d.ts +0 -2
- package/build/interface/Interface.js +0 -2
- package/build/interface.d.ts +0 -0
- package/build/interface.js +0 -1
- package/build/interfaces/Block.d.ts +0 -0
- package/build/interfaces/Block.js +0 -1
- package/build/interfaces/IBlock.d.ts +0 -0
- package/build/interfaces/IBlock.js +0 -1
- package/build/interfaces/blocks/IBlock.d.ts +0 -28
- package/build/interfaces/blocks/IBlock.js +0 -1
- package/build/interfaces/transactions/ITransaction.d.ts +0 -39
- package/build/interfaces/transactions/ITransaction.js +0 -1
- package/build/providers/index.d.ts +0 -4
- package/build/providers/index.js +0 -4
- package/build/providers/interfaces/GenerateResult.d.ts +0 -0
- package/build/providers/interfaces/GenerateResult.js +0 -1
- package/build/scripts/ITestContract.d.ts +0 -18
- package/build/scripts/ITestContract.js +0 -1
- package/build/scripts/block.d.ts +0 -1
- package/build/scripts/block.js +0 -13
- package/build/scripts/test.d.ts +0 -1
- package/build/scripts/test.js +0 -24
- package/build/scripts/testContract.d.ts +0 -1
- package/build/scripts/testContract.js +0 -11
- package/build/scripts/testMethods.d.ts +0 -1
- package/build/scripts/testMethods.js +0 -11
- package/build/scripts/testMethodsReg.d.ts +0 -1
- package/build/scripts/testMethodsReg.js +0 -8
- package/build/scripts/testWBTCContract.d.ts +0 -1
- package/build/scripts/testWBTCContract.js +0 -11
- package/build/storage/interfaces/IStorage.d.ts +0 -7
- package/build/storage/interfaces/IStorage.js +0 -1
- package/build/transactions/DeploymentTransaction.d.ts +0 -16
- package/build/transactions/DeploymentTransaction.js +0 -24
- package/build/transactions/GenericTransaction.d.ts +0 -6
- package/build/transactions/GenericTransaction.js +0 -6
- package/build/transactions/InteractionTransaction.d.ts +0 -15
- package/build/transactions/InteractionTransaction.js +0 -21
- package/build/transactions/TransactionInput.d.ts +0 -16
- package/build/transactions/TransactionInput.js +0 -14
- package/build/transactions/TransactionOutput.d.ts +0 -19
- package/build/transactions/TransactionOutput.js +0 -16
- package/build/transactions/TransactionReceipt.d.ts +0 -11
- package/build/transactions/TransactionReceipt.js +0 -53
- package/build/transactions/decoders/WrapInteractionTransaction.d.ts +0 -15
- package/build/transactions/decoders/WrapInteractionTransaction.js +0 -21
- package/build/transactions/index.d.ts +0 -6
- package/build/transactions/index.js +0 -6
- package/build/transactions/interfaces/IWrapTransaction.d.ts +0 -3
- package/build/transactions/interfaces/IWrapTransaction.js +0 -1
- package/build/transactions/types/DeploymentTransaction.d.ts +0 -16
- package/build/transactions/types/DeploymentTransaction.js +0 -24
- package/build/transactions/types/GenericTransaction.d.ts +0 -6
- package/build/transactions/types/GenericTransaction.js +0 -6
- package/build/transactions/types/InteractionTransaction.d.ts +0 -15
- package/build/transactions/types/InteractionTransaction.js +0 -21
- package/cjs/_version.d.ts +0 -1
- package/cjs/_version.js +0 -4
- package/cjs/abi/BaseContractProperty.d.ts +0 -3
- package/cjs/abi/BaseContractProperty.js +0 -2
- package/cjs/abi/BitcoinAbiTypes.d.ts +0 -4
- package/cjs/abi/BitcoinAbiTypes.js +0 -8
- package/cjs/abi/BitcoinInterface.d.ts +0 -10
- package/cjs/abi/BitcoinInterface.js +0 -60
- package/cjs/abi/interfaces/BaseContractProperties.d.ts +0 -5
- package/cjs/abi/interfaces/BaseContractProperties.js +0 -2
- package/cjs/abi/interfaces/BitcoinAbiValue.d.ts +0 -5
- package/cjs/abi/interfaces/BitcoinAbiValue.js +0 -2
- package/cjs/abi/interfaces/BitcoinInterfaceAbi.d.ts +0 -16
- package/cjs/abi/interfaces/BitcoinInterfaceAbi.js +0 -2
- package/cjs/abi/shared/interfaces/IMotoContract.d.ts +0 -6
- package/cjs/abi/shared/interfaces/IMotoContract.js +0 -2
- package/cjs/abi/shared/interfaces/IMotoswapFactoryContract.d.ts +0 -7
- package/cjs/abi/shared/interfaces/IMotoswapFactoryContract.js +0 -2
- package/cjs/abi/shared/interfaces/IMotoswapPoolContract.d.ts +0 -13
- package/cjs/abi/shared/interfaces/IMotoswapPoolContract.js +0 -2
- package/cjs/abi/shared/interfaces/IMotoswapRouterContract.d.ts +0 -15
- package/cjs/abi/shared/interfaces/IMotoswapRouterContract.js +0 -2
- package/cjs/abi/shared/interfaces/IOP_20Contract.d.ts +0 -16
- package/cjs/abi/shared/interfaces/IOP_20Contract.js +0 -2
- package/cjs/abi/shared/interfaces/IOP_NETContract.d.ts +0 -7
- package/cjs/abi/shared/interfaces/IOP_NETContract.js +0 -2
- package/cjs/abi/shared/interfaces/IStackingContract.d.ts +0 -11
- package/cjs/abi/shared/interfaces/IStackingContract.js +0 -2
- package/cjs/abi/shared/interfaces/IWBTCContract.d.ts +0 -8
- package/cjs/abi/shared/interfaces/IWBTCContract.js +0 -2
- package/cjs/abi/shared/json/MOTOSWAP_FACTORY_ABI.d.ts +0 -3
- package/cjs/abi/shared/json/MOTOSWAP_FACTORY_ABI.js +0 -74
- package/cjs/abi/shared/json/MOTOSWAP_POOL_ABI.d.ts +0 -3
- package/cjs/abi/shared/json/MOTOSWAP_POOL_ABI.js +0 -280
- package/cjs/abi/shared/json/MOTOSWAP_ROUTER_ABI.d.ts +0 -2
- package/cjs/abi/shared/json/MOTOSWAP_ROUTER_ABI.js +0 -277
- package/cjs/abi/shared/json/MOTO_TOKEN_ABI.d.ts +0 -2
- package/cjs/abi/shared/json/MOTO_TOKEN_ABI.js +0 -25
- package/cjs/abi/shared/json/OP_20_ABI.d.ts +0 -3
- package/cjs/abi/shared/json/OP_20_ABI.js +0 -270
- package/cjs/abi/shared/json/OP_NET_ABI.d.ts +0 -2
- package/cjs/abi/shared/json/OP_NET_ABI.js +0 -34
- package/cjs/abi/shared/json/STAKING_ABI.d.ts +0 -3
- package/cjs/abi/shared/json/STAKING_ABI.js +0 -132
- package/cjs/abi/shared/json/WBTC_ABI.d.ts +0 -3
- package/cjs/abi/shared/json/WBTC_ABI.js +0 -60
- package/cjs/bitcoin/BitcoinAddress.d.ts +0 -20
- package/cjs/bitcoin/BitcoinAddress.js +0 -116
- package/cjs/bitcoin/UTXOs.d.ts +0 -10
- package/cjs/bitcoin/UTXOs.js +0 -16
- package/cjs/bitcoin/interfaces/IUTXO.d.ts +0 -7
- package/cjs/bitcoin/interfaces/IUTXO.js +0 -2
- package/cjs/block/Block.d.ts +0 -26
- package/cjs/block/Block.js +0 -47
- package/cjs/block/interfaces/BlockWitness.d.ts +0 -11
- package/cjs/block/interfaces/BlockWitness.js +0 -2
- package/cjs/block/interfaces/IBlock.d.ts +0 -28
- package/cjs/block/interfaces/IBlock.js +0 -2
- package/cjs/common/CommonTypes.d.ts +0 -8
- package/cjs/common/CommonTypes.js +0 -2
- package/cjs/contracts/CallResult.d.ts +0 -19
- package/cjs/contracts/CallResult.js +0 -35
- package/cjs/contracts/Contract.d.ts +0 -44
- package/cjs/contracts/Contract.js +0 -398
- package/cjs/contracts/ContractData.d.ts +0 -17
- package/cjs/contracts/ContractData.js +0 -38
- package/cjs/contracts/OPNetEvent.d.ts +0 -15
- package/cjs/contracts/OPNetEvent.js +0 -22
- package/cjs/contracts/interfaces/IAccessList.d.ts +0 -6
- package/cjs/contracts/interfaces/IAccessList.js +0 -2
- package/cjs/contracts/interfaces/ICallResult.d.ts +0 -12
- package/cjs/contracts/interfaces/ICallResult.js +0 -2
- package/cjs/contracts/interfaces/IContract.d.ts +0 -12
- package/cjs/contracts/interfaces/IContract.js +0 -2
- package/cjs/contracts/interfaces/IRawContract.d.ts +0 -15
- package/cjs/contracts/interfaces/IRawContract.js +0 -2
- package/cjs/crypto/crypto.d.ts +0 -2
- package/cjs/crypto/crypto.js +0 -8
- package/cjs/index.d.ts +0 -3
- package/cjs/index.js +0 -32
- package/cjs/interfaces/opnet/OPNetTransactionTypes.d.ts +0 -8
- package/cjs/interfaces/opnet/OPNetTransactionTypes.js +0 -11
- package/cjs/opnet.d.ts +0 -70
- package/cjs/opnet.js +0 -89
- package/cjs/providers/AbstractRpcProvider.d.ts +0 -48
- package/cjs/providers/AbstractRpcProvider.js +0 -277
- package/cjs/providers/JSONRpcProvider.d.ts +0 -10
- package/cjs/providers/JSONRpcProvider.js +0 -59
- package/cjs/providers/WebsocketRpcProvider.d.ts +0 -9
- package/cjs/providers/WebsocketRpcProvider.js +0 -27
- package/cjs/providers/interfaces/Generate.d.ts +0 -5
- package/cjs/providers/interfaces/Generate.js +0 -7
- package/cjs/providers/interfaces/JSONRpc.d.ts +0 -11
- package/cjs/providers/interfaces/JSONRpc.js +0 -2
- package/cjs/providers/interfaces/JSONRpcMethods.d.ts +0 -17
- package/cjs/providers/interfaces/JSONRpcMethods.js +0 -21
- package/cjs/providers/interfaces/JSONRpcParams.d.ts +0 -3
- package/cjs/providers/interfaces/JSONRpcParams.js +0 -2
- package/cjs/providers/interfaces/JSONRpcResult.d.ts +0 -51
- package/cjs/providers/interfaces/JSONRpcResult.js +0 -29
- package/cjs/providers/interfaces/ReorgInformation.d.ts +0 -5
- package/cjs/providers/interfaces/ReorgInformation.js +0 -2
- package/cjs/serialize/BigInt.d.ts +0 -6
- package/cjs/serialize/BigInt.js +0 -5
- package/cjs/storage/StoredValue.d.ts +0 -10
- package/cjs/storage/StoredValue.js +0 -28
- package/cjs/storage/interfaces/IStorageValue.d.ts +0 -8
- package/cjs/storage/interfaces/IStorageValue.js +0 -2
- package/cjs/transactions/Transaction.d.ts +0 -17
- package/cjs/transactions/Transaction.js +0 -33
- package/cjs/transactions/TransactionParser.d.ts +0 -7
- package/cjs/transactions/TransactionParser.js +0 -43
- package/cjs/transactions/decoders/DeploymentTransaction.d.ts +0 -17
- package/cjs/transactions/decoders/DeploymentTransaction.js +0 -30
- package/cjs/transactions/decoders/GenericTransaction.d.ts +0 -6
- package/cjs/transactions/decoders/GenericTransaction.js +0 -10
- package/cjs/transactions/decoders/InteractionTransaction.d.ts +0 -15
- package/cjs/transactions/decoders/InteractionTransaction.js +0 -25
- package/cjs/transactions/decoders/UnwrapTransaction.d.ts +0 -11
- package/cjs/transactions/decoders/UnwrapTransaction.js +0 -33
- package/cjs/transactions/decoders/WrapTransaction.d.ts +0 -15
- package/cjs/transactions/decoders/WrapTransaction.js +0 -34
- package/cjs/transactions/interfaces/BroadcastedTransaction.d.ts +0 -7
- package/cjs/transactions/interfaces/BroadcastedTransaction.js +0 -2
- package/cjs/transactions/interfaces/ITransaction.d.ts +0 -23
- package/cjs/transactions/interfaces/ITransaction.js +0 -2
- package/cjs/transactions/interfaces/ITransactionReceipt.d.ts +0 -21
- package/cjs/transactions/interfaces/ITransactionReceipt.js +0 -2
- package/cjs/transactions/interfaces/transactions/ICommonTransaction.d.ts +0 -7
- package/cjs/transactions/interfaces/transactions/ICommonTransaction.js +0 -2
- package/cjs/transactions/interfaces/transactions/IDeploymentTransaction.d.ts +0 -13
- package/cjs/transactions/interfaces/transactions/IDeploymentTransaction.js +0 -2
- package/cjs/transactions/interfaces/transactions/IInteractionTransaction.d.ts +0 -14
- package/cjs/transactions/interfaces/transactions/IInteractionTransaction.js +0 -2
- package/cjs/transactions/interfaces/transactions/IUnwrapTransaction.d.ts +0 -28
- package/cjs/transactions/interfaces/transactions/IUnwrapTransaction.js +0 -2
- package/cjs/transactions/interfaces/transactions/IWrapTransaction.d.ts +0 -10
- package/cjs/transactions/interfaces/transactions/IWrapTransaction.js +0 -2
- package/cjs/transactions/metadata/TransactionInput.d.ts +0 -16
- package/cjs/transactions/metadata/TransactionInput.js +0 -18
- package/cjs/transactions/metadata/TransactionOutput.d.ts +0 -19
- package/cjs/transactions/metadata/TransactionOutput.js +0 -20
- package/cjs/transactions/metadata/TransactionReceipt.d.ts +0 -11
- package/cjs/transactions/metadata/TransactionReceipt.js +0 -57
- package/cjs/utils/BitcoinUtils.d.ts +0 -4
- package/cjs/utils/BitcoinUtils.js +0 -14
- package/tsconfig.cjs.json +0 -9
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MotoswapPoolAbi = exports.MotoSwapPoolEvents = void 0;
|
|
4
|
-
const bsi_binary_1 = require("@btc-vision/bsi-binary");
|
|
5
|
-
const BitcoinAbiTypes_js_1 = require("../../BitcoinAbiTypes.js");
|
|
6
|
-
const OP_20_ABI_js_1 = require("./OP_20_ABI.js");
|
|
7
|
-
exports.MotoSwapPoolEvents = [
|
|
8
|
-
{
|
|
9
|
-
name: 'PoolBurn',
|
|
10
|
-
values: [
|
|
11
|
-
{
|
|
12
|
-
name: 'sender',
|
|
13
|
-
type: bsi_binary_1.ABIDataTypes.ADDRESS,
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
name: 'amount0',
|
|
17
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
name: 'amount1',
|
|
21
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
22
|
-
},
|
|
23
|
-
],
|
|
24
|
-
type: BitcoinAbiTypes_js_1.BitcoinAbiTypes.Event,
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
name: 'PoolMint',
|
|
28
|
-
values: [
|
|
29
|
-
{
|
|
30
|
-
name: 'sender',
|
|
31
|
-
type: bsi_binary_1.ABIDataTypes.ADDRESS,
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
name: 'amount0',
|
|
35
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
name: 'amount1',
|
|
39
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
40
|
-
},
|
|
41
|
-
],
|
|
42
|
-
type: BitcoinAbiTypes_js_1.BitcoinAbiTypes.Event,
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
name: 'Swap',
|
|
46
|
-
values: [
|
|
47
|
-
{
|
|
48
|
-
name: 'sender',
|
|
49
|
-
type: bsi_binary_1.ABIDataTypes.ADDRESS,
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
name: 'amount0In',
|
|
53
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
name: 'amount1In',
|
|
57
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
name: 'amount0Out',
|
|
61
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
name: 'amount1Out',
|
|
65
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
name: 'to',
|
|
69
|
-
type: bsi_binary_1.ABIDataTypes.ADDRESS,
|
|
70
|
-
},
|
|
71
|
-
],
|
|
72
|
-
type: BitcoinAbiTypes_js_1.BitcoinAbiTypes.Event,
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
name: 'Sync',
|
|
76
|
-
values: [
|
|
77
|
-
{
|
|
78
|
-
name: 'reserve0',
|
|
79
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
name: 'reserve1',
|
|
83
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
84
|
-
},
|
|
85
|
-
],
|
|
86
|
-
type: BitcoinAbiTypes_js_1.BitcoinAbiTypes.Event,
|
|
87
|
-
},
|
|
88
|
-
];
|
|
89
|
-
exports.MotoswapPoolAbi = [
|
|
90
|
-
{
|
|
91
|
-
name: 'initialize',
|
|
92
|
-
inputs: [
|
|
93
|
-
{
|
|
94
|
-
name: 'token0',
|
|
95
|
-
type: bsi_binary_1.ABIDataTypes.ADDRESS,
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
name: 'token1',
|
|
99
|
-
type: bsi_binary_1.ABIDataTypes.ADDRESS,
|
|
100
|
-
},
|
|
101
|
-
],
|
|
102
|
-
outputs: [
|
|
103
|
-
{
|
|
104
|
-
name: 'success',
|
|
105
|
-
type: bsi_binary_1.ABIDataTypes.BOOL,
|
|
106
|
-
},
|
|
107
|
-
],
|
|
108
|
-
type: BitcoinAbiTypes_js_1.BitcoinAbiTypes.Function,
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
name: 'swap',
|
|
112
|
-
inputs: [
|
|
113
|
-
{
|
|
114
|
-
name: 'amount0Out',
|
|
115
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
name: 'amount1Out',
|
|
119
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
name: 'to',
|
|
123
|
-
type: bsi_binary_1.ABIDataTypes.ADDRESS,
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
name: 'data',
|
|
127
|
-
type: bsi_binary_1.ABIDataTypes.BYTES,
|
|
128
|
-
},
|
|
129
|
-
],
|
|
130
|
-
outputs: [
|
|
131
|
-
{
|
|
132
|
-
name: 'success',
|
|
133
|
-
type: bsi_binary_1.ABIDataTypes.BOOL,
|
|
134
|
-
},
|
|
135
|
-
],
|
|
136
|
-
type: BitcoinAbiTypes_js_1.BitcoinAbiTypes.Function,
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
name: 'skim',
|
|
140
|
-
inputs: [],
|
|
141
|
-
outputs: [
|
|
142
|
-
{
|
|
143
|
-
name: 'success',
|
|
144
|
-
type: bsi_binary_1.ABIDataTypes.BOOL,
|
|
145
|
-
},
|
|
146
|
-
],
|
|
147
|
-
type: BitcoinAbiTypes_js_1.BitcoinAbiTypes.Function,
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
name: 'getReserves',
|
|
151
|
-
inputs: [],
|
|
152
|
-
outputs: [
|
|
153
|
-
{
|
|
154
|
-
name: 'reserve0',
|
|
155
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
name: 'reserve1',
|
|
159
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
name: 'blockTimestampLast',
|
|
163
|
-
type: bsi_binary_1.ABIDataTypes.UINT64,
|
|
164
|
-
},
|
|
165
|
-
],
|
|
166
|
-
type: BitcoinAbiTypes_js_1.BitcoinAbiTypes.Function,
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
name: 'token0',
|
|
170
|
-
constant: true,
|
|
171
|
-
inputs: [],
|
|
172
|
-
outputs: [
|
|
173
|
-
{
|
|
174
|
-
name: 'token0',
|
|
175
|
-
type: bsi_binary_1.ABIDataTypes.ADDRESS,
|
|
176
|
-
},
|
|
177
|
-
],
|
|
178
|
-
type: BitcoinAbiTypes_js_1.BitcoinAbiTypes.Function,
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
name: 'token1',
|
|
182
|
-
constant: true,
|
|
183
|
-
inputs: [],
|
|
184
|
-
outputs: [
|
|
185
|
-
{
|
|
186
|
-
name: 'token1',
|
|
187
|
-
type: bsi_binary_1.ABIDataTypes.ADDRESS,
|
|
188
|
-
},
|
|
189
|
-
],
|
|
190
|
-
type: BitcoinAbiTypes_js_1.BitcoinAbiTypes.Function,
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
name: 'price0CumulativeLast',
|
|
194
|
-
inputs: [],
|
|
195
|
-
outputs: [
|
|
196
|
-
{
|
|
197
|
-
name: 'price0CumulativeLast',
|
|
198
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
199
|
-
},
|
|
200
|
-
],
|
|
201
|
-
type: BitcoinAbiTypes_js_1.BitcoinAbiTypes.Function,
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
name: 'price1CumulativeLast',
|
|
205
|
-
inputs: [],
|
|
206
|
-
outputs: [
|
|
207
|
-
{
|
|
208
|
-
name: 'price1CumulativeLast',
|
|
209
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
210
|
-
},
|
|
211
|
-
],
|
|
212
|
-
type: BitcoinAbiTypes_js_1.BitcoinAbiTypes.Function,
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
name: 'kLast',
|
|
216
|
-
inputs: [],
|
|
217
|
-
outputs: [
|
|
218
|
-
{
|
|
219
|
-
name: 'kLast',
|
|
220
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
221
|
-
},
|
|
222
|
-
],
|
|
223
|
-
type: BitcoinAbiTypes_js_1.BitcoinAbiTypes.Function,
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
name: 'blockTimestampLast',
|
|
227
|
-
inputs: [],
|
|
228
|
-
outputs: [
|
|
229
|
-
{
|
|
230
|
-
name: 'blockTimestampLast',
|
|
231
|
-
type: bsi_binary_1.ABIDataTypes.UINT64,
|
|
232
|
-
},
|
|
233
|
-
],
|
|
234
|
-
type: BitcoinAbiTypes_js_1.BitcoinAbiTypes.Function,
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
name: 'sync',
|
|
238
|
-
inputs: [],
|
|
239
|
-
outputs: [
|
|
240
|
-
{
|
|
241
|
-
name: 'success',
|
|
242
|
-
type: bsi_binary_1.ABIDataTypes.BOOL,
|
|
243
|
-
},
|
|
244
|
-
],
|
|
245
|
-
type: BitcoinAbiTypes_js_1.BitcoinAbiTypes.Function,
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
name: 'mint',
|
|
249
|
-
inputs: [],
|
|
250
|
-
outputs: [
|
|
251
|
-
{
|
|
252
|
-
name: 'liquidity',
|
|
253
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
254
|
-
},
|
|
255
|
-
],
|
|
256
|
-
type: BitcoinAbiTypes_js_1.BitcoinAbiTypes.Function,
|
|
257
|
-
},
|
|
258
|
-
{
|
|
259
|
-
name: 'burn',
|
|
260
|
-
inputs: [
|
|
261
|
-
{
|
|
262
|
-
name: 'to',
|
|
263
|
-
type: bsi_binary_1.ABIDataTypes.ADDRESS,
|
|
264
|
-
},
|
|
265
|
-
],
|
|
266
|
-
outputs: [
|
|
267
|
-
{
|
|
268
|
-
name: 'amount0',
|
|
269
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
name: 'amount1',
|
|
273
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
274
|
-
},
|
|
275
|
-
],
|
|
276
|
-
type: BitcoinAbiTypes_js_1.BitcoinAbiTypes.Function,
|
|
277
|
-
},
|
|
278
|
-
...OP_20_ABI_js_1.OP_20_ABI,
|
|
279
|
-
...exports.MotoSwapPoolEvents,
|
|
280
|
-
];
|
|
@@ -1,277 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MOTOSWAP_ROUTER_ABI = void 0;
|
|
4
|
-
const bsi_binary_1 = require("@btc-vision/bsi-binary");
|
|
5
|
-
const BitcoinAbiTypes_js_1 = require("../../BitcoinAbiTypes.js");
|
|
6
|
-
const MOTOSWAP_FACTORY_ABI_js_1 = require("./MOTOSWAP_FACTORY_ABI.js");
|
|
7
|
-
const MOTOSWAP_POOL_ABI_js_1 = require("./MOTOSWAP_POOL_ABI.js");
|
|
8
|
-
const OP_20_ABI_js_1 = require("./OP_20_ABI.js");
|
|
9
|
-
const OP_NET_ABI_js_1 = require("./OP_NET_ABI.js");
|
|
10
|
-
exports.MOTOSWAP_ROUTER_ABI = [
|
|
11
|
-
{
|
|
12
|
-
name: 'addLiquidity',
|
|
13
|
-
inputs: [
|
|
14
|
-
{
|
|
15
|
-
name: 'tokenA',
|
|
16
|
-
type: bsi_binary_1.ABIDataTypes.ADDRESS,
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
name: 'tokenB',
|
|
20
|
-
type: bsi_binary_1.ABIDataTypes.ADDRESS,
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
name: 'amountADesired',
|
|
24
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
name: 'amountBDesired',
|
|
28
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
name: 'amountAMin',
|
|
32
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
name: 'amountBMin',
|
|
36
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
name: 'to',
|
|
40
|
-
type: bsi_binary_1.ABIDataTypes.ADDRESS,
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
name: 'deadline',
|
|
44
|
-
type: bsi_binary_1.ABIDataTypes.UINT64,
|
|
45
|
-
},
|
|
46
|
-
],
|
|
47
|
-
outputs: [
|
|
48
|
-
{
|
|
49
|
-
name: 'amountA',
|
|
50
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
name: 'amountB',
|
|
54
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
name: 'liquidity',
|
|
58
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
59
|
-
},
|
|
60
|
-
],
|
|
61
|
-
type: BitcoinAbiTypes_js_1.BitcoinAbiTypes.Function,
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
name: 'removeLiquidity',
|
|
65
|
-
inputs: [
|
|
66
|
-
{
|
|
67
|
-
name: 'tokenA',
|
|
68
|
-
type: bsi_binary_1.ABIDataTypes.ADDRESS,
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
name: 'tokenB',
|
|
72
|
-
type: bsi_binary_1.ABIDataTypes.ADDRESS,
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
name: 'liquidity',
|
|
76
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
name: 'amountAMin',
|
|
80
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
name: 'amountBMin',
|
|
84
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
name: 'to',
|
|
88
|
-
type: bsi_binary_1.ABIDataTypes.ADDRESS,
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
name: 'deadline',
|
|
92
|
-
type: bsi_binary_1.ABIDataTypes.UINT64,
|
|
93
|
-
},
|
|
94
|
-
],
|
|
95
|
-
outputs: [
|
|
96
|
-
{
|
|
97
|
-
name: 'amountA',
|
|
98
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
name: 'amountB',
|
|
102
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
103
|
-
},
|
|
104
|
-
],
|
|
105
|
-
type: BitcoinAbiTypes_js_1.BitcoinAbiTypes.Function,
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
name: 'quote',
|
|
109
|
-
inputs: [
|
|
110
|
-
{
|
|
111
|
-
name: 'amountA',
|
|
112
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
name: 'reserveA',
|
|
116
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
name: 'reserveB',
|
|
120
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
121
|
-
},
|
|
122
|
-
],
|
|
123
|
-
outputs: [
|
|
124
|
-
{
|
|
125
|
-
name: 'quote',
|
|
126
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
127
|
-
},
|
|
128
|
-
],
|
|
129
|
-
type: BitcoinAbiTypes_js_1.BitcoinAbiTypes.Function,
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
name: 'getAmountOut',
|
|
133
|
-
inputs: [
|
|
134
|
-
{
|
|
135
|
-
name: 'amountIn',
|
|
136
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
name: 'reserveIn',
|
|
140
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
name: 'reserveOut',
|
|
144
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
145
|
-
},
|
|
146
|
-
],
|
|
147
|
-
outputs: [
|
|
148
|
-
{
|
|
149
|
-
name: 'amountOut',
|
|
150
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
151
|
-
},
|
|
152
|
-
],
|
|
153
|
-
type: BitcoinAbiTypes_js_1.BitcoinAbiTypes.Function,
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
name: 'getAmountIn',
|
|
157
|
-
inputs: [
|
|
158
|
-
{
|
|
159
|
-
name: 'amountOut',
|
|
160
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
name: 'reserveIn',
|
|
164
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
name: 'reserveOut',
|
|
168
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
169
|
-
},
|
|
170
|
-
],
|
|
171
|
-
outputs: [
|
|
172
|
-
{
|
|
173
|
-
name: 'amountIn',
|
|
174
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
175
|
-
},
|
|
176
|
-
],
|
|
177
|
-
type: BitcoinAbiTypes_js_1.BitcoinAbiTypes.Function,
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
name: 'getAmountsOut',
|
|
181
|
-
inputs: [
|
|
182
|
-
{
|
|
183
|
-
name: 'amountIn',
|
|
184
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
name: 'path',
|
|
188
|
-
type: bsi_binary_1.ABIDataTypes.ARRAY_OF_ADDRESSES,
|
|
189
|
-
},
|
|
190
|
-
],
|
|
191
|
-
outputs: [
|
|
192
|
-
{
|
|
193
|
-
name: 'amountsOut',
|
|
194
|
-
type: bsi_binary_1.ABIDataTypes.TUPLE,
|
|
195
|
-
},
|
|
196
|
-
],
|
|
197
|
-
type: BitcoinAbiTypes_js_1.BitcoinAbiTypes.Function,
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
name: 'getAmountsIn',
|
|
201
|
-
inputs: [
|
|
202
|
-
{
|
|
203
|
-
name: 'amountOut',
|
|
204
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
name: 'path',
|
|
208
|
-
type: bsi_binary_1.ABIDataTypes.ARRAY_OF_ADDRESSES,
|
|
209
|
-
},
|
|
210
|
-
],
|
|
211
|
-
outputs: [
|
|
212
|
-
{
|
|
213
|
-
name: 'amountIn',
|
|
214
|
-
type: bsi_binary_1.ABIDataTypes.TUPLE,
|
|
215
|
-
},
|
|
216
|
-
],
|
|
217
|
-
type: BitcoinAbiTypes_js_1.BitcoinAbiTypes.Function,
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
name: 'swapExactTokensForTokensSupportingFeeOnTransferTokens',
|
|
221
|
-
inputs: [
|
|
222
|
-
{
|
|
223
|
-
name: 'amountIn',
|
|
224
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
name: 'amountOutMin',
|
|
228
|
-
type: bsi_binary_1.ABIDataTypes.UINT256,
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
name: 'path',
|
|
232
|
-
type: bsi_binary_1.ABIDataTypes.ARRAY_OF_ADDRESSES,
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
name: 'to',
|
|
236
|
-
type: bsi_binary_1.ABIDataTypes.ADDRESS,
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
name: 'deadline',
|
|
240
|
-
type: bsi_binary_1.ABIDataTypes.UINT64,
|
|
241
|
-
},
|
|
242
|
-
],
|
|
243
|
-
outputs: [
|
|
244
|
-
{
|
|
245
|
-
name: 'success',
|
|
246
|
-
type: bsi_binary_1.ABIDataTypes.BOOL,
|
|
247
|
-
},
|
|
248
|
-
],
|
|
249
|
-
type: BitcoinAbiTypes_js_1.BitcoinAbiTypes.Function,
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
name: 'factory',
|
|
253
|
-
inputs: [],
|
|
254
|
-
outputs: [
|
|
255
|
-
{
|
|
256
|
-
name: 'factory',
|
|
257
|
-
type: bsi_binary_1.ABIDataTypes.ADDRESS,
|
|
258
|
-
},
|
|
259
|
-
],
|
|
260
|
-
type: BitcoinAbiTypes_js_1.BitcoinAbiTypes.Function,
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
name: 'WBTC',
|
|
264
|
-
inputs: [],
|
|
265
|
-
outputs: [
|
|
266
|
-
{
|
|
267
|
-
name: 'WBTC',
|
|
268
|
-
type: bsi_binary_1.ABIDataTypes.ADDRESS,
|
|
269
|
-
},
|
|
270
|
-
],
|
|
271
|
-
type: BitcoinAbiTypes_js_1.BitcoinAbiTypes.Function,
|
|
272
|
-
},
|
|
273
|
-
...MOTOSWAP_FACTORY_ABI_js_1.MotoSwapFactoryEvents,
|
|
274
|
-
...OP_20_ABI_js_1.OP20Events,
|
|
275
|
-
...MOTOSWAP_POOL_ABI_js_1.MotoSwapPoolEvents,
|
|
276
|
-
...OP_NET_ABI_js_1.OP_NET_ABI,
|
|
277
|
-
];
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MOTO_TOKEN_ABI = void 0;
|
|
4
|
-
const bsi_binary_1 = require("@btc-vision/bsi-binary");
|
|
5
|
-
const BitcoinAbiTypes_js_1 = require("../../BitcoinAbiTypes.js");
|
|
6
|
-
const OP_20_ABI_js_1 = require("./OP_20_ABI.js");
|
|
7
|
-
exports.MOTO_TOKEN_ABI = [
|
|
8
|
-
{
|
|
9
|
-
name: 'airdrop',
|
|
10
|
-
inputs: [
|
|
11
|
-
{
|
|
12
|
-
name: 'amount',
|
|
13
|
-
type: bsi_binary_1.ABIDataTypes.ADDRESS_UINT256_TUPLE,
|
|
14
|
-
},
|
|
15
|
-
],
|
|
16
|
-
outputs: [
|
|
17
|
-
{
|
|
18
|
-
name: 'success',
|
|
19
|
-
type: bsi_binary_1.ABIDataTypes.BOOL,
|
|
20
|
-
},
|
|
21
|
-
],
|
|
22
|
-
type: BitcoinAbiTypes_js_1.BitcoinAbiTypes.Function,
|
|
23
|
-
},
|
|
24
|
-
...OP_20_ABI_js_1.OP_20_ABI,
|
|
25
|
-
];
|