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,81 +1,81 @@
|
|
|
1
|
-
import { AbstractRpcProvider } from './AbstractRpcProvider.js';
|
|
2
|
-
import { JsonRpcPayload } from './interfaces/JSONRpc.js';
|
|
3
|
-
import { JsonRpcCallResult } from './interfaces/JSONRpcResult.js';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @description This class is used to provide a JSON RPC provider.
|
|
7
|
-
* @class JSONRpcProvider
|
|
8
|
-
* @category Providers
|
|
9
|
-
*/
|
|
10
|
-
export class JSONRpcProvider extends AbstractRpcProvider {
|
|
11
|
-
private readonly url: string;
|
|
12
|
-
|
|
13
|
-
constructor(url: string, private readonly timeout: number = 10_000) {
|
|
14
|
-
super();
|
|
15
|
-
|
|
16
|
-
this.url = this.providerUrl(url);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* @description Sends a JSON RPC payload to the provider.
|
|
21
|
-
* @param {JsonRpcPayload | JsonRpcPayload[]} payload - The payload to send
|
|
22
|
-
* @returns {Promise<JsonRpcCallResult>} - The result of the call
|
|
23
|
-
*/
|
|
24
|
-
public async _send(payload: JsonRpcPayload | JsonRpcPayload[]): Promise<JsonRpcCallResult> {
|
|
25
|
-
// Create an AbortController instance
|
|
26
|
-
const controller = new AbortController();
|
|
27
|
-
const { signal } = controller;
|
|
28
|
-
|
|
29
|
-
// Start a timer that will abort the fetch after the timeout period
|
|
30
|
-
const timeoutId = setTimeout(() => controller.abort(), this.timeout);
|
|
31
|
-
|
|
32
|
-
const params = {
|
|
33
|
-
method: 'POST',
|
|
34
|
-
headers: {
|
|
35
|
-
'Content-Type': 'application/json',
|
|
36
|
-
},
|
|
37
|
-
body: JSON.stringify(payload),
|
|
38
|
-
timeout: this.timeout,
|
|
39
|
-
signal: signal
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
try {
|
|
43
|
-
const resp: Response = await fetch(this.url, params);
|
|
44
|
-
if (!resp.ok) {
|
|
45
|
-
throw new Error(`Failed to fetch: ${resp.statusText}`);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
clearTimeout(timeoutId);
|
|
49
|
-
|
|
50
|
-
const fetchedData = await resp.json();
|
|
51
|
-
if (!fetchedData) {
|
|
52
|
-
throw new Error('No data fetched');
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
return [fetchedData];
|
|
56
|
-
} catch (e) {
|
|
57
|
-
const error = e as Error;
|
|
58
|
-
if (error.name === 'AbortError') {
|
|
59
|
-
throw new Error(`Request timed out after ${this.timeout}ms`);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
throw e;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
protected providerUrl(url: string): string {
|
|
69
|
-
url = url.trim();
|
|
70
|
-
|
|
71
|
-
if (url.endsWith('/')) {
|
|
72
|
-
return url.slice(0, -1);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
if (url.includes('api/v1/json-rpc')) {
|
|
76
|
-
return url;
|
|
77
|
-
} else {
|
|
78
|
-
return `${url}/api/v1/json-rpc`;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
1
|
+
import { AbstractRpcProvider } from './AbstractRpcProvider.js';
|
|
2
|
+
import { JsonRpcPayload } from './interfaces/JSONRpc.js';
|
|
3
|
+
import { JsonRpcCallResult } from './interfaces/JSONRpcResult.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @description This class is used to provide a JSON RPC provider.
|
|
7
|
+
* @class JSONRpcProvider
|
|
8
|
+
* @category Providers
|
|
9
|
+
*/
|
|
10
|
+
export class JSONRpcProvider extends AbstractRpcProvider {
|
|
11
|
+
private readonly url: string;
|
|
12
|
+
|
|
13
|
+
constructor(url: string, private readonly timeout: number = 10_000) {
|
|
14
|
+
super();
|
|
15
|
+
|
|
16
|
+
this.url = this.providerUrl(url);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @description Sends a JSON RPC payload to the provider.
|
|
21
|
+
* @param {JsonRpcPayload | JsonRpcPayload[]} payload - The payload to send
|
|
22
|
+
* @returns {Promise<JsonRpcCallResult>} - The result of the call
|
|
23
|
+
*/
|
|
24
|
+
public async _send(payload: JsonRpcPayload | JsonRpcPayload[]): Promise<JsonRpcCallResult> {
|
|
25
|
+
// Create an AbortController instance
|
|
26
|
+
const controller = new AbortController();
|
|
27
|
+
const { signal } = controller;
|
|
28
|
+
|
|
29
|
+
// Start a timer that will abort the fetch after the timeout period
|
|
30
|
+
const timeoutId = setTimeout(() => controller.abort(), this.timeout);
|
|
31
|
+
|
|
32
|
+
const params = {
|
|
33
|
+
method: 'POST',
|
|
34
|
+
headers: {
|
|
35
|
+
'Content-Type': 'application/json',
|
|
36
|
+
},
|
|
37
|
+
body: JSON.stringify(payload),
|
|
38
|
+
timeout: this.timeout,
|
|
39
|
+
signal: signal
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
try {
|
|
43
|
+
const resp: Response = await fetch(this.url, params);
|
|
44
|
+
if (!resp.ok) {
|
|
45
|
+
throw new Error(`Failed to fetch: ${resp.statusText}`);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
clearTimeout(timeoutId);
|
|
49
|
+
|
|
50
|
+
const fetchedData = await resp.json();
|
|
51
|
+
if (!fetchedData) {
|
|
52
|
+
throw new Error('No data fetched');
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
return [fetchedData];
|
|
56
|
+
} catch (e) {
|
|
57
|
+
const error = e as Error;
|
|
58
|
+
if (error.name === 'AbortError') {
|
|
59
|
+
throw new Error(`Request timed out after ${this.timeout}ms`);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
throw e;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
protected providerUrl(url: string): string {
|
|
69
|
+
url = url.trim();
|
|
70
|
+
|
|
71
|
+
if (url.endsWith('/')) {
|
|
72
|
+
return url.slice(0, -1);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (url.includes('api/v1/json-rpc')) {
|
|
76
|
+
return url;
|
|
77
|
+
} else {
|
|
78
|
+
return `${url}/api/v1/json-rpc`;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
package/src/serialize/BigInt.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
|
|
3
|
-
declare global {
|
|
4
|
-
interface BigInt {
|
|
5
|
-
/**
|
|
6
|
-
* Returns the JSON representation of the BigInt instance.
|
|
7
|
-
* @returns The JSON representation of the BigInt instance as a string.
|
|
8
|
-
*/
|
|
9
|
-
toJSON(): string;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
BigInt.prototype.toJSON = function () {
|
|
14
|
-
return this.toString();
|
|
15
|
-
};
|
|
1
|
+
export {};
|
|
2
|
+
|
|
3
|
+
declare global {
|
|
4
|
+
interface BigInt {
|
|
5
|
+
/**
|
|
6
|
+
* Returns the JSON representation of the BigInt instance.
|
|
7
|
+
* @returns The JSON representation of the BigInt instance as a string.
|
|
8
|
+
*/
|
|
9
|
+
toJSON(): string;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
BigInt.prototype.toJSON = function () {
|
|
14
|
+
return this.toString();
|
|
15
|
+
};
|
package/tsconfig.base.json
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"declaration": true,
|
|
4
|
-
"noImplicitAny": true,
|
|
5
|
-
"removeComments": true,
|
|
6
|
-
"suppressImplicitAnyIndexErrors": false,
|
|
7
|
-
"preserveConstEnums": true,
|
|
8
|
-
"resolveJsonModule": true,
|
|
9
|
-
"skipLibCheck": true,
|
|
10
|
-
"sourceMap": false,
|
|
11
|
-
"moduleDetection": "force",
|
|
12
|
-
"experimentalDecorators": true,
|
|
13
|
-
"lib": [
|
|
14
|
-
"es6",
|
|
15
|
-
"es2020",
|
|
16
|
-
"es2021",
|
|
17
|
-
"es2022",
|
|
18
|
-
"esnext",
|
|
19
|
-
"webworker",
|
|
20
|
-
"dom",
|
|
21
|
-
"scripthost"
|
|
22
|
-
],
|
|
23
|
-
"strict": true,
|
|
24
|
-
"strictNullChecks": true,
|
|
25
|
-
"strictFunctionTypes": true,
|
|
26
|
-
"strictBindCallApply": true,
|
|
27
|
-
"strictPropertyInitialization": true,
|
|
28
|
-
"alwaysStrict": true,
|
|
29
|
-
"moduleResolution": "node",
|
|
30
|
-
"allowJs": true,
|
|
31
|
-
"incremental": true,
|
|
32
|
-
"allowSyntheticDefaultImports": true,
|
|
33
|
-
"esModuleInterop": true
|
|
34
|
-
},
|
|
35
|
-
"include": [
|
|
36
|
-
"src/**/*.ts",
|
|
37
|
-
"src/*",
|
|
38
|
-
"src/**/*.js",
|
|
39
|
-
"src/*.ts",
|
|
40
|
-
"src/*.js",
|
|
41
|
-
"src/*.cjs"
|
|
42
|
-
]
|
|
43
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"declaration": true,
|
|
4
|
+
"noImplicitAny": true,
|
|
5
|
+
"removeComments": true,
|
|
6
|
+
"suppressImplicitAnyIndexErrors": false,
|
|
7
|
+
"preserveConstEnums": true,
|
|
8
|
+
"resolveJsonModule": true,
|
|
9
|
+
"skipLibCheck": true,
|
|
10
|
+
"sourceMap": false,
|
|
11
|
+
"moduleDetection": "force",
|
|
12
|
+
"experimentalDecorators": true,
|
|
13
|
+
"lib": [
|
|
14
|
+
"es6",
|
|
15
|
+
"es2020",
|
|
16
|
+
"es2021",
|
|
17
|
+
"es2022",
|
|
18
|
+
"esnext",
|
|
19
|
+
"webworker",
|
|
20
|
+
"dom",
|
|
21
|
+
"scripthost"
|
|
22
|
+
],
|
|
23
|
+
"strict": true,
|
|
24
|
+
"strictNullChecks": true,
|
|
25
|
+
"strictFunctionTypes": true,
|
|
26
|
+
"strictBindCallApply": true,
|
|
27
|
+
"strictPropertyInitialization": true,
|
|
28
|
+
"alwaysStrict": true,
|
|
29
|
+
"moduleResolution": "node",
|
|
30
|
+
"allowJs": true,
|
|
31
|
+
"incremental": true,
|
|
32
|
+
"allowSyntheticDefaultImports": true,
|
|
33
|
+
"esModuleInterop": true
|
|
34
|
+
},
|
|
35
|
+
"include": [
|
|
36
|
+
"src/**/*.ts",
|
|
37
|
+
"src/*",
|
|
38
|
+
"src/**/*.js",
|
|
39
|
+
"src/*.ts",
|
|
40
|
+
"src/*.js",
|
|
41
|
+
"src/*.cjs"
|
|
42
|
+
]
|
|
43
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.base.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"target": "ES2020",
|
|
6
|
+
"declaration": true,
|
|
7
|
+
"outDir": "./build",
|
|
8
|
+
"moduleResolution": "node",
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"skipLibCheck": true,
|
|
11
|
+
"allowSyntheticDefaultImports": true
|
|
12
|
+
},
|
|
13
|
+
"include": ["src/**/*.ts"],
|
|
14
|
+
"exclude": ["node_modules"]
|
|
15
|
+
}
|
package/tsconfig.webpack.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./tsconfig.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"module": "esnext",
|
|
5
|
-
"outDir": "browser",
|
|
6
|
-
"target": "esnext",
|
|
7
|
-
"declaration": true,
|
|
8
|
-
"esModuleInterop": true,
|
|
9
|
-
"skipLibCheck": true,
|
|
10
|
-
"strict": true,
|
|
11
|
-
"baseUrl": ".",
|
|
12
|
-
"paths": {
|
|
13
|
-
"@btc-vision/transaction": [
|
|
14
|
-
"node_modules/@btc-vision/transaction"
|
|
15
|
-
]
|
|
16
|
-
},
|
|
17
|
-
"moduleResolution": "bundler"
|
|
18
|
-
}
|
|
19
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"module": "esnext",
|
|
5
|
+
"outDir": "browser",
|
|
6
|
+
"target": "esnext",
|
|
7
|
+
"declaration": true,
|
|
8
|
+
"esModuleInterop": true,
|
|
9
|
+
"skipLibCheck": true,
|
|
10
|
+
"strict": true,
|
|
11
|
+
"baseUrl": ".",
|
|
12
|
+
"paths": {
|
|
13
|
+
"@btc-vision/transaction": [
|
|
14
|
+
"node_modules/@btc-vision/transaction"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"moduleResolution": "bundler"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
name: Build Package CI
|
|
2
|
-
on:
|
|
3
|
-
push:
|
|
4
|
-
branches: [ "main" ]
|
|
5
|
-
|
|
6
|
-
jobs:
|
|
7
|
-
publish-gpr:
|
|
8
|
-
runs-on: ubuntu-latest
|
|
9
|
-
steps:
|
|
10
|
-
- uses: actions/checkout@v4
|
|
11
|
-
- uses: actions/setup-node@v4
|
|
12
|
-
with:
|
|
13
|
-
node-version: 21.7.1
|
|
14
|
-
registry-url: https://npm.pkg.github.com/
|
|
15
|
-
scope: '@btc-vision'
|
|
16
|
-
- run: npm install
|
|
17
|
-
- run: npm run build
|
|
18
|
-
- run: npm publish
|
|
19
|
-
env:
|
|
20
|
-
NODE_AUTH_TOKEN: ${{secrets.BuildToken}}
|
|
21
|
-
NPM_TOKEN: ${{secrets.NpmToken}}
|
package/.idea/bsc.iml
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="WEB_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager">
|
|
4
|
-
<content url="file://$MODULE_DIR$">
|
|
5
|
-
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
|
6
|
-
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
|
7
|
-
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
|
8
|
-
<excludeFolder url="file://$MODULE_DIR$/build" />
|
|
9
|
-
<excludeFolder url="file://$MODULE_DIR$/cjs" />
|
|
10
|
-
</content>
|
|
11
|
-
<orderEntry type="inheritedJdk" />
|
|
12
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
13
|
-
</component>
|
|
14
|
-
</module>
|
package/.idea/bsi-binary.iml
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="WEB_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager">
|
|
4
|
-
<content url="file://$MODULE_DIR$">
|
|
5
|
-
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
|
6
|
-
<excludeFolder url="file://$MODULE_DIR$/build" />
|
|
7
|
-
<excludeFolder url="file://$MODULE_DIR$/cjs" />
|
|
8
|
-
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
|
9
|
-
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
|
10
|
-
</content>
|
|
11
|
-
<orderEntry type="inheritedJdk" />
|
|
12
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
13
|
-
</component>
|
|
14
|
-
</module>
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
<component name="ProjectCodeStyleConfiguration">
|
|
2
|
-
<code_scheme name="Project" version="173">
|
|
3
|
-
<HTMLCodeStyleSettings>
|
|
4
|
-
<option name="HTML_SPACE_INSIDE_EMPTY_TAG" value="true" />
|
|
5
|
-
<option name="HTML_QUOTE_STYLE" value="Single" />
|
|
6
|
-
<option name="HTML_ENFORCE_QUOTES" value="true" />
|
|
7
|
-
</HTMLCodeStyleSettings>
|
|
8
|
-
<JSCodeStyleSettings version="0">
|
|
9
|
-
<option name="FORCE_SEMICOLON_STYLE" value="true" />
|
|
10
|
-
<option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
|
|
11
|
-
<option name="USE_DOUBLE_QUOTES" value="false" />
|
|
12
|
-
<option name="FORCE_QUOTE_STYlE" value="true" />
|
|
13
|
-
<option name="ENFORCE_TRAILING_COMMA" value="WhenMultiline" />
|
|
14
|
-
<option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
|
|
15
|
-
<option name="SPACES_WITHIN_IMPORTS" value="true" />
|
|
16
|
-
<option name="IMPORT_SORT_MODULE_NAME" value="true" />
|
|
17
|
-
</JSCodeStyleSettings>
|
|
18
|
-
<Markdown>
|
|
19
|
-
<option name="KEEP_LINE_BREAKS_INSIDE_TEXT_BLOCKS" value="false" />
|
|
20
|
-
</Markdown>
|
|
21
|
-
<TypeScriptCodeStyleSettings version="0">
|
|
22
|
-
<option name="FORCE_SEMICOLON_STYLE" value="true" />
|
|
23
|
-
<option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
|
|
24
|
-
<option name="USE_DOUBLE_QUOTES" value="false" />
|
|
25
|
-
<option name="FORCE_QUOTE_STYlE" value="true" />
|
|
26
|
-
<option name="ENFORCE_TRAILING_COMMA" value="WhenMultiline" />
|
|
27
|
-
<option name="USE_EXPLICIT_JS_EXTENSION" value="TRUE" />
|
|
28
|
-
<option name="VAR_DECLARATION_WRAP" value="5" />
|
|
29
|
-
<option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
|
|
30
|
-
<option name="SPACES_WITHIN_IMPORTS" value="true" />
|
|
31
|
-
<option name="IMPORT_SORT_MODULE_NAME" value="true" />
|
|
32
|
-
</TypeScriptCodeStyleSettings>
|
|
33
|
-
<VueCodeStyleSettings>
|
|
34
|
-
<option name="INTERPOLATION_NEW_LINE_AFTER_START_DELIMITER" value="false" />
|
|
35
|
-
<option name="INTERPOLATION_NEW_LINE_BEFORE_END_DELIMITER" value="false" />
|
|
36
|
-
</VueCodeStyleSettings>
|
|
37
|
-
<codeStyleSettings language="HTML">
|
|
38
|
-
<option name="SOFT_MARGINS" value="100" />
|
|
39
|
-
<indentOptions>
|
|
40
|
-
<option name="CONTINUATION_INDENT_SIZE" value="4" />
|
|
41
|
-
</indentOptions>
|
|
42
|
-
</codeStyleSettings>
|
|
43
|
-
<codeStyleSettings language="JSON">
|
|
44
|
-
<indentOptions>
|
|
45
|
-
<option name="INDENT_SIZE" value="4" />
|
|
46
|
-
</indentOptions>
|
|
47
|
-
</codeStyleSettings>
|
|
48
|
-
<codeStyleSettings language="JavaScript">
|
|
49
|
-
<option name="ALIGN_MULTILINE_PARAMETERS_IN_CALLS" value="true" />
|
|
50
|
-
<option name="ALIGN_MULTILINE_BINARY_OPERATION" value="true" />
|
|
51
|
-
<option name="CALL_PARAMETERS_WRAP" value="5" />
|
|
52
|
-
<option name="PREFER_PARAMETERS_WRAP" value="true" />
|
|
53
|
-
<option name="CALL_PARAMETERS_LPAREN_ON_NEXT_LINE" value="true" />
|
|
54
|
-
<option name="CALL_PARAMETERS_RPAREN_ON_NEXT_LINE" value="true" />
|
|
55
|
-
<option name="METHOD_PARAMETERS_WRAP" value="5" />
|
|
56
|
-
<option name="METHOD_PARAMETERS_LPAREN_ON_NEXT_LINE" value="true" />
|
|
57
|
-
<option name="METHOD_PARAMETERS_RPAREN_ON_NEXT_LINE" value="true" />
|
|
58
|
-
<option name="BINARY_OPERATION_WRAP" value="5" />
|
|
59
|
-
<option name="SOFT_MARGINS" value="100" />
|
|
60
|
-
</codeStyleSettings>
|
|
61
|
-
<codeStyleSettings language="Markdown">
|
|
62
|
-
<option name="RIGHT_MARGIN" value="80" />
|
|
63
|
-
<option name="WRAP_ON_TYPING" value="1" />
|
|
64
|
-
<option name="SOFT_MARGINS" value="80" />
|
|
65
|
-
<indentOptions>
|
|
66
|
-
<option name="INDENT_SIZE" value="2" />
|
|
67
|
-
<option name="CONTINUATION_INDENT_SIZE" value="4" />
|
|
68
|
-
<option name="TAB_SIZE" value="2" />
|
|
69
|
-
</indentOptions>
|
|
70
|
-
</codeStyleSettings>
|
|
71
|
-
<codeStyleSettings language="TypeScript">
|
|
72
|
-
<option name="ALIGN_MULTILINE_CHAINED_METHODS" value="true" />
|
|
73
|
-
<option name="ALIGN_MULTILINE_PARAMETERS_IN_CALLS" value="true" />
|
|
74
|
-
<option name="ALIGN_MULTILINE_BINARY_OPERATION" value="true" />
|
|
75
|
-
<option name="ALIGN_MULTILINE_ARRAY_INITIALIZER_EXPRESSION" value="true" />
|
|
76
|
-
<option name="CALL_PARAMETERS_WRAP" value="5" />
|
|
77
|
-
<option name="PREFER_PARAMETERS_WRAP" value="true" />
|
|
78
|
-
<option name="CALL_PARAMETERS_LPAREN_ON_NEXT_LINE" value="true" />
|
|
79
|
-
<option name="CALL_PARAMETERS_RPAREN_ON_NEXT_LINE" value="true" />
|
|
80
|
-
<option name="METHOD_PARAMETERS_WRAP" value="5" />
|
|
81
|
-
<option name="METHOD_PARAMETERS_LPAREN_ON_NEXT_LINE" value="true" />
|
|
82
|
-
<option name="METHOD_PARAMETERS_RPAREN_ON_NEXT_LINE" value="true" />
|
|
83
|
-
<option name="METHOD_CALL_CHAIN_WRAP" value="5" />
|
|
84
|
-
<option name="PARENTHESES_EXPRESSION_LPAREN_WRAP" value="true" />
|
|
85
|
-
<option name="PARENTHESES_EXPRESSION_RPAREN_WRAP" value="true" />
|
|
86
|
-
<option name="FOR_STATEMENT_LPAREN_ON_NEXT_LINE" value="true" />
|
|
87
|
-
<option name="FOR_STATEMENT_RPAREN_ON_NEXT_LINE" value="true" />
|
|
88
|
-
<option name="ARRAY_INITIALIZER_WRAP" value="5" />
|
|
89
|
-
<option name="ARRAY_INITIALIZER_LBRACE_ON_NEXT_LINE" value="true" />
|
|
90
|
-
<option name="ARRAY_INITIALIZER_RBRACE_ON_NEXT_LINE" value="true" />
|
|
91
|
-
<option name="SOFT_MARGINS" value="100" />
|
|
92
|
-
</codeStyleSettings>
|
|
93
|
-
<codeStyleSettings language="Vue">
|
|
94
|
-
<option name="SOFT_MARGINS" value="100" />
|
|
95
|
-
<indentOptions>
|
|
96
|
-
<option name="INDENT_SIZE" value="4" />
|
|
97
|
-
<option name="TAB_SIZE" value="4" />
|
|
98
|
-
</indentOptions>
|
|
99
|
-
</codeStyleSettings>
|
|
100
|
-
</code_scheme>
|
|
101
|
-
</component>
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
<component name="InspectionProjectProfileManager">
|
|
2
|
-
<profile version="1.0">
|
|
3
|
-
<option name="myName" value="Project Default" />
|
|
4
|
-
<inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
|
|
5
|
-
<inspection_tool class="TsLint" enabled="true" level="WARNING" enabled_by_default="true" />
|
|
6
|
-
</profile>
|
|
7
|
-
</component>
|
package/.idea/markdown.xml
DELETED
package/.idea/modules.xml
DELETED
package/.idea/motoswap.iml
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="WEB_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager">
|
|
4
|
-
<content url="file://$MODULE_DIR$">
|
|
5
|
-
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
|
6
|
-
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
|
7
|
-
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
|
8
|
-
</content>
|
|
9
|
-
<orderEntry type="inheritedJdk" />
|
|
10
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
11
|
-
</component>
|
|
12
|
-
</module>
|
package/.idea/opnet.iml
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="WEB_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager">
|
|
4
|
-
<content url="file://$MODULE_DIR$">
|
|
5
|
-
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
|
6
|
-
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
|
7
|
-
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
|
8
|
-
<excludeFolder url="file://$MODULE_DIR$/build" />
|
|
9
|
-
<excludeFolder url="file://$MODULE_DIR$/packages" />
|
|
10
|
-
<excludeFolder url="file://$MODULE_DIR$/cjs" />
|
|
11
|
-
<excludeFolder url="file://$MODULE_DIR$/browser" />
|
|
12
|
-
<excludeFolder url="file://$MODULE_DIR$/docs" />
|
|
13
|
-
</content>
|
|
14
|
-
<orderEntry type="inheritedJdk" />
|
|
15
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
16
|
-
</component>
|
|
17
|
-
</module>
|
package/.idea/prettier.xml
DELETED
package/.idea/vcs.xml
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
export function createHash(algo: any): import("@noble/hashes/utils").Hash<{
|
|
2
|
-
A: number;
|
|
3
|
-
B: number;
|
|
4
|
-
C: number;
|
|
5
|
-
D: number;
|
|
6
|
-
E: number;
|
|
7
|
-
F: number;
|
|
8
|
-
G: number;
|
|
9
|
-
H: number;
|
|
10
|
-
get(): [number, number, number, number, number, number, number, number];
|
|
11
|
-
set(A: number, B: number, C: number, D: number, E: number, F: number, G: number, H: number): void;
|
|
12
|
-
process(view: DataView, offset: number): void;
|
|
13
|
-
roundClean(): void;
|
|
14
|
-
destroy(): void;
|
|
15
|
-
readonly blockLen: number;
|
|
16
|
-
outputLen: number;
|
|
17
|
-
readonly padOffset: number;
|
|
18
|
-
readonly isLE: boolean;
|
|
19
|
-
buffer: Uint8Array;
|
|
20
|
-
view: DataView;
|
|
21
|
-
finished: boolean;
|
|
22
|
-
length: number;
|
|
23
|
-
pos: number;
|
|
24
|
-
destroyed: boolean;
|
|
25
|
-
update(data: import("@noble/hashes/utils").Input): any;
|
|
26
|
-
digestInto(out: Uint8Array): void;
|
|
27
|
-
digest(): Uint8Array;
|
|
28
|
-
_cloneInto(to?: any | undefined): any;
|
|
29
|
-
clone(): any;
|
|
30
|
-
}> | import("@noble/hashes/utils").Hash<import("@noble/hashes/sha512").SHA512> | undefined;
|
|
31
|
-
export function createHmac(_algo: any, key: any): import("@noble/hashes/hmac").HMAC<any>;
|
|
32
|
-
export function pbkdf2Sync(password: any, salt: any, iterations: any, keylen: any, _algo: any): Uint8Array;
|
|
33
|
-
export function randomBytes(length: any): Uint8Array;
|
|
34
|
-
declare namespace _default {
|
|
35
|
-
export { createHash };
|
|
36
|
-
export { createHmac };
|
|
37
|
-
export { pbkdf2Sync };
|
|
38
|
-
export { randomBytes };
|
|
39
|
-
}
|
|
40
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { GenerationConstraints, WrappedGenerationParameters } from '../providers/interfaces/Generate.js';
|
|
2
|
-
export declare class WrappedGeneration implements WrappedGenerationParameters {
|
|
3
|
-
readonly constraints: GenerationConstraints;
|
|
4
|
-
readonly entities: string[];
|
|
5
|
-
readonly keys: string[];
|
|
6
|
-
readonly signature: string;
|
|
7
|
-
readonly vault: string;
|
|
8
|
-
constructor(params: WrappedGenerationParameters);
|
|
9
|
-
}
|