@airgap/substrate 0.13.45-beta.2 → 0.13.45-beta.3
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/package.json +5 -5
- package/v0/index.js +12 -12
- package/v0/index.js.map +1 -1
- package/v0/protocol/SubstrateCryptoClient.js +23 -94
- package/v0/protocol/SubstrateCryptoClient.js.map +1 -1
- package/v0/protocol/SubstrateDelegateProtocol.js +297 -542
- package/v0/protocol/SubstrateDelegateProtocol.js.map +1 -1
- package/v0/protocol/SubstrateNetwork.js +1 -1
- package/v0/protocol/SubstrateNetwork.js.map +1 -1
- package/v0/protocol/SubstrateProtocol.js +333 -672
- package/v0/protocol/SubstrateProtocol.js.map +1 -1
- package/v0/protocol/SubstrateProtocolOptions.js +25 -93
- package/v0/protocol/SubstrateProtocolOptions.js.map +1 -1
- package/v0/protocol/astar/AstarAddress.js +7 -27
- package/v0/protocol/astar/AstarAddress.js.map +1 -1
- package/v0/protocol/common/SubstrateAccountController.js +400 -687
- package/v0/protocol/common/SubstrateAccountController.js.map +1 -1
- package/v0/protocol/common/SubstrateTransactionController.d.ts +0 -1
- package/v0/protocol/common/SubstrateTransactionController.js +185 -346
- package/v0/protocol/common/SubstrateTransactionController.js.map +1 -1
- package/v0/protocol/common/blockexplorer/SubstrateBlockExplorerClient.js +52 -100
- package/v0/protocol/common/blockexplorer/SubstrateBlockExplorerClient.js.map +1 -1
- package/v0/protocol/common/data/account/SubstrateAccountInfo.js +27 -29
- package/v0/protocol/common/data/account/SubstrateAccountInfo.js.map +1 -1
- package/v0/protocol/common/data/account/SubstrateAddress.d.ts +0 -1
- package/v0/protocol/common/data/account/SubstrateAddress.js +43 -46
- package/v0/protocol/common/data/account/SubstrateAddress.js.map +1 -1
- package/v0/protocol/common/data/account/SubstrateRegistration.js +50 -56
- package/v0/protocol/common/data/account/SubstrateRegistration.js.map +1 -1
- package/v0/protocol/common/data/metadata/Metadata.js +24 -25
- package/v0/protocol/common/data/metadata/Metadata.js.map +1 -1
- package/v0/protocol/common/data/metadata/MetadataVersioned.js +2 -5
- package/v0/protocol/common/data/metadata/MetadataVersioned.js.map +1 -1
- package/v0/protocol/common/data/metadata/decorator/MetadataDecorator.js +18 -20
- package/v0/protocol/common/data/metadata/decorator/MetadataDecorator.js.map +1 -1
- package/v0/protocol/common/data/metadata/decorator/constant/SubstrateConstant.d.ts +0 -1
- package/v0/protocol/common/data/metadata/decorator/storage/SubstrateStorageEntry.js +89 -237
- package/v0/protocol/common/data/metadata/decorator/storage/SubstrateStorageEntry.js.map +1 -1
- package/v0/protocol/common/data/metadata/v11/MetadataV11.js +43 -63
- package/v0/protocol/common/data/metadata/v11/MetadataV11.js.map +1 -1
- package/v0/protocol/common/data/metadata/v11/module/MetadataV11Call.js +30 -51
- package/v0/protocol/common/data/metadata/v11/module/MetadataV11Call.js.map +1 -1
- package/v0/protocol/common/data/metadata/v11/module/MetadataV11Constant.js +20 -38
- package/v0/protocol/common/data/metadata/v11/module/MetadataV11Constant.js.map +1 -1
- package/v0/protocol/common/data/metadata/v11/module/MetadataV11Error.js +16 -34
- package/v0/protocol/common/data/metadata/v11/module/MetadataV11Error.js.map +1 -1
- package/v0/protocol/common/data/metadata/v11/module/MetadataV11Event.js +18 -36
- package/v0/protocol/common/data/metadata/v11/module/MetadataV11Event.js.map +1 -1
- package/v0/protocol/common/data/metadata/v11/module/MetadataV11Module.js +29 -51
- package/v0/protocol/common/data/metadata/v11/module/MetadataV11Module.js.map +1 -1
- package/v0/protocol/common/data/metadata/v11/module/storage/MetadataV11Storage.js +17 -35
- package/v0/protocol/common/data/metadata/v11/module/storage/MetadataV11Storage.js.map +1 -1
- package/v0/protocol/common/data/metadata/v11/module/storage/MetadataV11StorageEntry.js +23 -41
- package/v0/protocol/common/data/metadata/v11/module/storage/MetadataV11StorageEntry.js.map +1 -1
- package/v0/protocol/common/data/metadata/v11/module/storage/MetadataV11StorageEntryType.js +72 -114
- package/v0/protocol/common/data/metadata/v11/module/storage/MetadataV11StorageEntryType.js.map +1 -1
- package/v0/protocol/common/data/metadata/v12/MetadataV12.js +41 -61
- package/v0/protocol/common/data/metadata/v12/MetadataV12.js.map +1 -1
- package/v0/protocol/common/data/metadata/v12/module/MetadataV12Module.js +14 -32
- package/v0/protocol/common/data/metadata/v12/module/MetadataV12Module.js.map +1 -1
- package/v0/protocol/common/data/metadata/v13/MetadataV13.js +41 -61
- package/v0/protocol/common/data/metadata/v13/MetadataV13.js.map +1 -1
- package/v0/protocol/common/data/metadata/v13/module/MetadataV13Module.js +31 -53
- package/v0/protocol/common/data/metadata/v13/module/MetadataV13Module.js.map +1 -1
- package/v0/protocol/common/data/metadata/v13/module/storage/MetadataV13Storage.js +17 -35
- package/v0/protocol/common/data/metadata/v13/module/storage/MetadataV13Storage.js.map +1 -1
- package/v0/protocol/common/data/metadata/v13/module/storage/MetadataV13StorageEntry.js +23 -41
- package/v0/protocol/common/data/metadata/v13/module/storage/MetadataV13StorageEntry.js.map +1 -1
- package/v0/protocol/common/data/metadata/v13/module/storage/MetadataV13StorageEntryType.js +83 -130
- package/v0/protocol/common/data/metadata/v13/module/storage/MetadataV13StorageEntryType.js.map +1 -1
- package/v0/protocol/common/data/metadata/v14/MetadataV14.js +53 -74
- package/v0/protocol/common/data/metadata/v14/MetadataV14.js.map +1 -1
- package/v0/protocol/common/data/metadata/v14/MetadataV14Component.js +7 -25
- package/v0/protocol/common/data/metadata/v14/MetadataV14Component.js.map +1 -1
- package/v0/protocol/common/data/metadata/v14/extrinsic/MetadataV14Extrinsic.js +17 -35
- package/v0/protocol/common/data/metadata/v14/extrinsic/MetadataV14Extrinsic.js.map +1 -1
- package/v0/protocol/common/data/metadata/v14/extrinsic/MetadataV14SignedExtension.js +16 -34
- package/v0/protocol/common/data/metadata/v14/extrinsic/MetadataV14SignedExtension.js.map +1 -1
- package/v0/protocol/common/data/metadata/v14/pallet/MetadataV14Call.js +8 -28
- package/v0/protocol/common/data/metadata/v14/pallet/MetadataV14Call.js.map +1 -1
- package/v0/protocol/common/data/metadata/v14/pallet/MetadataV14Constant.js +19 -37
- package/v0/protocol/common/data/metadata/v14/pallet/MetadataV14Constant.js.map +1 -1
- package/v0/protocol/common/data/metadata/v14/pallet/MetadataV14Error.js +8 -28
- package/v0/protocol/common/data/metadata/v14/pallet/MetadataV14Error.js.map +1 -1
- package/v0/protocol/common/data/metadata/v14/pallet/MetadataV14Event.js +8 -28
- package/v0/protocol/common/data/metadata/v14/pallet/MetadataV14Event.js.map +1 -1
- package/v0/protocol/common/data/metadata/v14/pallet/MetadataV14Pallet.js +30 -48
- package/v0/protocol/common/data/metadata/v14/pallet/MetadataV14Pallet.js.map +1 -1
- package/v0/protocol/common/data/metadata/v14/pallet/storage/MetadataV14Storage.js +16 -34
- package/v0/protocol/common/data/metadata/v14/pallet/storage/MetadataV14Storage.js.map +1 -1
- package/v0/protocol/common/data/metadata/v14/pallet/storage/MetadataV14StorageEntry.js +23 -41
- package/v0/protocol/common/data/metadata/v14/pallet/storage/MetadataV14StorageEntry.js.map +1 -1
- package/v0/protocol/common/data/metadata/v14/pallet/storage/MetadataV14StorageEntryType.js +49 -90
- package/v0/protocol/common/data/metadata/v14/pallet/storage/MetadataV14StorageEntryType.js.map +1 -1
- package/v0/protocol/common/data/metadata/v14/registry/MetadataV14PortableRegistry.js +20 -41
- package/v0/protocol/common/data/metadata/v14/registry/MetadataV14PortableRegistry.js.map +1 -1
- package/v0/protocol/common/data/metadata/v14/registry/MetadataV14PortableType.js +17 -35
- package/v0/protocol/common/data/metadata/v14/registry/MetadataV14PortableType.js.map +1 -1
- package/v0/protocol/common/data/metadata/v14/registry/si/MetadataV14SiField.js +20 -38
- package/v0/protocol/common/data/metadata/v14/registry/si/MetadataV14SiField.js.map +1 -1
- package/v0/protocol/common/data/metadata/v14/registry/si/MetadataV14SiType.js +22 -40
- package/v0/protocol/common/data/metadata/v14/registry/si/MetadataV14SiType.js.map +1 -1
- package/v0/protocol/common/data/metadata/v14/registry/si/MetadataV14SiTypeParameter.js +16 -34
- package/v0/protocol/common/data/metadata/v14/registry/si/MetadataV14SiTypeParameter.js.map +1 -1
- package/v0/protocol/common/data/metadata/v14/registry/si/MetadataV14SiVariant.js +21 -39
- package/v0/protocol/common/data/metadata/v14/registry/si/MetadataV14SiVariant.js.map +1 -1
- package/v0/protocol/common/data/metadata/v14/registry/si/MetadataV14TypeDef.js +106 -150
- package/v0/protocol/common/data/metadata/v14/registry/si/MetadataV14TypeDef.js.map +1 -1
- package/v0/protocol/common/data/scale/SCALEDecoder.d.ts +2 -3
- package/v0/protocol/common/data/scale/SCALEDecoder.js +69 -74
- package/v0/protocol/common/data/scale/SCALEDecoder.js.map +1 -1
- package/v0/protocol/common/data/scale/type/SCALEAccountId.d.ts +0 -1
- package/v0/protocol/common/data/scale/type/SCALEAccountId.js +25 -44
- package/v0/protocol/common/data/scale/type/SCALEAccountId.js.map +1 -1
- package/v0/protocol/common/data/scale/type/SCALEArray.js +27 -45
- package/v0/protocol/common/data/scale/type/SCALEArray.js.map +1 -1
- package/v0/protocol/common/data/scale/type/SCALEBoolean.js +18 -36
- package/v0/protocol/common/data/scale/type/SCALEBoolean.js.map +1 -1
- package/v0/protocol/common/data/scale/type/SCALEBytes.d.ts +0 -1
- package/v0/protocol/common/data/scale/type/SCALEBytes.js +23 -42
- package/v0/protocol/common/data/scale/type/SCALEBytes.js.map +1 -1
- package/v0/protocol/common/data/scale/type/SCALEClass.js +8 -28
- package/v0/protocol/common/data/scale/type/SCALEClass.js.map +1 -1
- package/v0/protocol/common/data/scale/type/SCALECompactInt.d.ts +1 -1
- package/v0/protocol/common/data/scale/type/SCALECompactInt.js +54 -73
- package/v0/protocol/common/data/scale/type/SCALECompactInt.js.map +1 -1
- package/v0/protocol/common/data/scale/type/SCALEData.d.ts +0 -1
- package/v0/protocol/common/data/scale/type/SCALEData.js +33 -51
- package/v0/protocol/common/data/scale/type/SCALEData.js.map +1 -1
- package/v0/protocol/common/data/scale/type/SCALEEnum.js +21 -39
- package/v0/protocol/common/data/scale/type/SCALEEnum.js.map +1 -1
- package/v0/protocol/common/data/scale/type/SCALEEra.js +46 -68
- package/v0/protocol/common/data/scale/type/SCALEEra.js.map +1 -1
- package/v0/protocol/common/data/scale/type/SCALEHash.d.ts +0 -1
- package/v0/protocol/common/data/scale/type/SCALEHash.js +29 -53
- package/v0/protocol/common/data/scale/type/SCALEHash.js.map +1 -1
- package/v0/protocol/common/data/scale/type/SCALEInt.d.ts +1 -1
- package/v0/protocol/common/data/scale/type/SCALEInt.js +46 -65
- package/v0/protocol/common/data/scale/type/SCALEInt.js.map +1 -1
- package/v0/protocol/common/data/scale/type/SCALEMultiAddress.d.ts +1 -2
- package/v0/protocol/common/data/scale/type/SCALEMultiAddress.js +40 -59
- package/v0/protocol/common/data/scale/type/SCALEMultiAddress.js.map +1 -1
- package/v0/protocol/common/data/scale/type/SCALEOptional.js +27 -47
- package/v0/protocol/common/data/scale/type/SCALEOptional.js.map +1 -1
- package/v0/protocol/common/data/scale/type/SCALEString.js +25 -44
- package/v0/protocol/common/data/scale/type/SCALEString.js.map +1 -1
- package/v0/protocol/common/data/scale/type/SCALETuple.js +22 -40
- package/v0/protocol/common/data/scale/type/SCALETuple.js.map +1 -1
- package/v0/protocol/common/data/scale/type/SCALEType.js +6 -9
- package/v0/protocol/common/data/scale/type/SCALEType.js.map +1 -1
- package/v0/protocol/common/data/staking/SubstrateActiveEraInfo.js +11 -12
- package/v0/protocol/common/data/staking/SubstrateActiveEraInfo.js.map +1 -1
- package/v0/protocol/common/data/staking/SubstrateEraElectionStatus.js +14 -15
- package/v0/protocol/common/data/staking/SubstrateEraElectionStatus.js.map +1 -1
- package/v0/protocol/common/data/staking/SubstrateEraRewardPoints.js +13 -16
- package/v0/protocol/common/data/staking/SubstrateEraRewardPoints.js.map +1 -1
- package/v0/protocol/common/data/staking/SubstrateExposure.js +14 -17
- package/v0/protocol/common/data/staking/SubstrateExposure.js.map +1 -1
- package/v0/protocol/common/data/staking/SubstrateNominationStatus.js +1 -1
- package/v0/protocol/common/data/staking/SubstrateNominationStatus.js.map +1 -1
- package/v0/protocol/common/data/staking/SubstrateNominations.js +12 -13
- package/v0/protocol/common/data/staking/SubstrateNominations.js.map +1 -1
- package/v0/protocol/common/data/staking/SubstrateNominatorDetails.d.ts +1 -1
- package/v0/protocol/common/data/staking/SubstratePayee.js +1 -1
- package/v0/protocol/common/data/staking/SubstratePayee.js.map +1 -1
- package/v0/protocol/common/data/staking/SubstrateSlashingSpans.js +13 -14
- package/v0/protocol/common/data/staking/SubstrateSlashingSpans.js.map +1 -1
- package/v0/protocol/common/data/staking/SubstrateStakingActionType.js +1 -1
- package/v0/protocol/common/data/staking/SubstrateStakingActionType.js.map +1 -1
- package/v0/protocol/common/data/staking/SubstrateStakingLedger.js +16 -19
- package/v0/protocol/common/data/staking/SubstrateStakingLedger.js.map +1 -1
- package/v0/protocol/common/data/staking/SubstrateValidatorDetails.d.ts +1 -1
- package/v0/protocol/common/data/staking/SubstrateValidatorPrefs.js +9 -10
- package/v0/protocol/common/data/staking/SubstrateValidatorPrefs.js.map +1 -1
- package/v0/protocol/common/data/transaction/SubstrateSignature.d.ts +0 -1
- package/v0/protocol/common/data/transaction/SubstrateSignature.js +30 -53
- package/v0/protocol/common/data/transaction/SubstrateSignature.js.map +1 -1
- package/v0/protocol/common/data/transaction/SubstrateTransaction.d.ts +1 -1
- package/v0/protocol/common/data/transaction/SubstrateTransaction.js +53 -73
- package/v0/protocol/common/data/transaction/SubstrateTransaction.js.map +1 -1
- package/v0/protocol/common/data/transaction/SubstrateTransactionPayload.js +44 -76
- package/v0/protocol/common/data/transaction/SubstrateTransactionPayload.js.map +1 -1
- package/v0/protocol/common/data/transaction/method/SubstrateTransactionMethod.js +40 -76
- package/v0/protocol/common/data/transaction/method/SubstrateTransactionMethod.js.map +1 -1
- package/v0/protocol/common/data/transaction/method/SubstrateTransactionMethodArgs.js +360 -631
- package/v0/protocol/common/data/transaction/method/SubstrateTransactionMethodArgs.js.map +1 -1
- package/v0/protocol/common/node/SubstrateNodeClient.js +226 -533
- package/v0/protocol/common/node/SubstrateNodeClient.js.map +1 -1
- package/v0/protocol/common/node/supported.d.ts +9 -9
- package/v0/protocol/common/node/supported.js +1 -1
- package/v0/protocol/common/node/supported.js.map +1 -1
- package/v0/protocol/compat/SubstrateCompatAddress.d.ts +1 -2
- package/v0/protocol/compat/SubstrateCompatAddress.js +17 -30
- package/v0/protocol/compat/SubstrateCompatAddress.js.map +1 -1
- package/v0/protocol/compat/SubstrateCompatSignature.d.ts +0 -1
- package/v0/protocol/compat/SubstrateCompatSignature.js +4 -5
- package/v0/protocol/compat/SubstrateCompatSignature.js.map +1 -1
- package/v0/protocol/kusama/KusamaAddress.js +7 -27
- package/v0/protocol/kusama/KusamaAddress.js.map +1 -1
- package/v0/protocol/moonbeam/MoonbeamAddress.d.ts +0 -1
- package/v0/protocol/moonbeam/MoonbeamAddress.js +45 -36
- package/v0/protocol/moonbeam/MoonbeamAddress.js.map +1 -1
- package/v0/protocol/moonbeam/MoonbeamSignature.d.ts +0 -1
- package/v0/protocol/moonbeam/MoonbeamSignature.js +16 -35
- package/v0/protocol/moonbeam/MoonbeamSignature.js.map +1 -1
- package/v0/protocol/polkadot/PolkadotAddress.js +7 -27
- package/v0/protocol/polkadot/PolkadotAddress.js.map +1 -1
- package/v0/serializer/validators/transaction-validator.js +30 -83
- package/v0/serializer/validators/transaction-validator.js.map +1 -1
- package/v0/serializer/validators/validators.js +54 -133
- package/v0/serializer/validators/validators.js.map +1 -1
- package/v0/utils/sr25519.js +26 -74
- package/v0/utils/sr25519.js.map +1 -1
- package/v1/block-explorer/subscan/SubscanBlockExplorer.js +12 -61
- package/v1/block-explorer/subscan/SubscanBlockExplorer.js.map +1 -1
- package/v1/block-explorer/subscan/SubscanBlockExplorerClient.js +55 -103
- package/v1/block-explorer/subscan/SubscanBlockExplorerClient.js.map +1 -1
- package/v1/controller/account/SubstrateCommonAccountController.js +65 -132
- package/v1/controller/account/SubstrateCommonAccountController.js.map +1 -1
- package/v1/controller/transaction/SubstrateCommonTransactionController.js +194 -356
- package/v1/controller/transaction/SubstrateCommonTransactionController.js.map +1 -1
- package/v1/crypto/SubstrateCryptoClient.js +23 -94
- package/v1/crypto/SubstrateCryptoClient.js.map +1 -1
- package/v1/data/account/SubstrateAccountInfo.js +27 -29
- package/v1/data/account/SubstrateAccountInfo.js.map +1 -1
- package/v1/data/account/SubstrateRegistration.js +50 -56
- package/v1/data/account/SubstrateRegistration.js.map +1 -1
- package/v1/data/account/address/SubstrateAddress.d.ts +1 -2
- package/v1/data/account/address/SubstrateAddress.js +2 -3
- package/v1/data/account/address/SubstrateAddress.js.map +1 -1
- package/v1/data/account/address/SubstrateAddressFactory.d.ts +2 -3
- package/v1/data/account/address/SubstrateAddressFactory.js +16 -23
- package/v1/data/account/address/SubstrateAddressFactory.js.map +1 -1
- package/v1/data/account/address/SubstrateEthAddress.d.ts +0 -1
- package/v1/data/account/address/SubstrateEthAddress.js +48 -39
- package/v1/data/account/address/SubstrateEthAddress.js.map +1 -1
- package/v1/data/account/address/SubstrateSS58Address.d.ts +0 -1
- package/v1/data/account/address/SubstrateSS58Address.js +47 -50
- package/v1/data/account/address/SubstrateSS58Address.js.map +1 -1
- package/v1/data/metadata/Metadata.js +24 -25
- package/v1/data/metadata/Metadata.js.map +1 -1
- package/v1/data/metadata/MetadataVersioned.js +2 -5
- package/v1/data/metadata/MetadataVersioned.js.map +1 -1
- package/v1/data/metadata/decorator/MetadataDecorator.js +18 -20
- package/v1/data/metadata/decorator/MetadataDecorator.js.map +1 -1
- package/v1/data/metadata/decorator/constant/SubstrateConstant.d.ts +0 -1
- package/v1/data/metadata/decorator/storage/SubstrateStorageEntry.js +89 -237
- package/v1/data/metadata/decorator/storage/SubstrateStorageEntry.js.map +1 -1
- package/v1/data/metadata/v11/MetadataV11.js +43 -63
- package/v1/data/metadata/v11/MetadataV11.js.map +1 -1
- package/v1/data/metadata/v11/module/MetadataV11Call.js +30 -51
- package/v1/data/metadata/v11/module/MetadataV11Call.js.map +1 -1
- package/v1/data/metadata/v11/module/MetadataV11Constant.js +20 -38
- package/v1/data/metadata/v11/module/MetadataV11Constant.js.map +1 -1
- package/v1/data/metadata/v11/module/MetadataV11Error.js +16 -34
- package/v1/data/metadata/v11/module/MetadataV11Error.js.map +1 -1
- package/v1/data/metadata/v11/module/MetadataV11Event.js +18 -36
- package/v1/data/metadata/v11/module/MetadataV11Event.js.map +1 -1
- package/v1/data/metadata/v11/module/MetadataV11Module.js +29 -51
- package/v1/data/metadata/v11/module/MetadataV11Module.js.map +1 -1
- package/v1/data/metadata/v11/module/storage/MetadataV11Storage.js +17 -35
- package/v1/data/metadata/v11/module/storage/MetadataV11Storage.js.map +1 -1
- package/v1/data/metadata/v11/module/storage/MetadataV11StorageEntry.js +23 -41
- package/v1/data/metadata/v11/module/storage/MetadataV11StorageEntry.js.map +1 -1
- package/v1/data/metadata/v11/module/storage/MetadataV11StorageEntryType.js +72 -114
- package/v1/data/metadata/v11/module/storage/MetadataV11StorageEntryType.js.map +1 -1
- package/v1/data/metadata/v12/MetadataV12.js +41 -61
- package/v1/data/metadata/v12/MetadataV12.js.map +1 -1
- package/v1/data/metadata/v12/module/MetadataV12Module.js +14 -32
- package/v1/data/metadata/v12/module/MetadataV12Module.js.map +1 -1
- package/v1/data/metadata/v13/MetadataV13.js +41 -61
- package/v1/data/metadata/v13/MetadataV13.js.map +1 -1
- package/v1/data/metadata/v13/module/MetadataV13Module.js +31 -53
- package/v1/data/metadata/v13/module/MetadataV13Module.js.map +1 -1
- package/v1/data/metadata/v13/module/storage/MetadataV13Storage.js +17 -35
- package/v1/data/metadata/v13/module/storage/MetadataV13Storage.js.map +1 -1
- package/v1/data/metadata/v13/module/storage/MetadataV13StorageEntry.js +23 -41
- package/v1/data/metadata/v13/module/storage/MetadataV13StorageEntry.js.map +1 -1
- package/v1/data/metadata/v13/module/storage/MetadataV13StorageEntryType.js +83 -130
- package/v1/data/metadata/v13/module/storage/MetadataV13StorageEntryType.js.map +1 -1
- package/v1/data/metadata/v14/MetadataV14.js +53 -74
- package/v1/data/metadata/v14/MetadataV14.js.map +1 -1
- package/v1/data/metadata/v14/MetadataV14Component.js +7 -25
- package/v1/data/metadata/v14/MetadataV14Component.js.map +1 -1
- package/v1/data/metadata/v14/extrinsic/MetadataV14Extrinsic.js +17 -35
- package/v1/data/metadata/v14/extrinsic/MetadataV14Extrinsic.js.map +1 -1
- package/v1/data/metadata/v14/extrinsic/MetadataV14SignedExtension.js +16 -34
- package/v1/data/metadata/v14/extrinsic/MetadataV14SignedExtension.js.map +1 -1
- package/v1/data/metadata/v14/pallet/MetadataV14Call.js +8 -28
- package/v1/data/metadata/v14/pallet/MetadataV14Call.js.map +1 -1
- package/v1/data/metadata/v14/pallet/MetadataV14Constant.js +19 -37
- package/v1/data/metadata/v14/pallet/MetadataV14Constant.js.map +1 -1
- package/v1/data/metadata/v14/pallet/MetadataV14Error.js +8 -28
- package/v1/data/metadata/v14/pallet/MetadataV14Error.js.map +1 -1
- package/v1/data/metadata/v14/pallet/MetadataV14Event.js +8 -28
- package/v1/data/metadata/v14/pallet/MetadataV14Event.js.map +1 -1
- package/v1/data/metadata/v14/pallet/MetadataV14Pallet.js +30 -48
- package/v1/data/metadata/v14/pallet/MetadataV14Pallet.js.map +1 -1
- package/v1/data/metadata/v14/pallet/storage/MetadataV14Storage.js +16 -34
- package/v1/data/metadata/v14/pallet/storage/MetadataV14Storage.js.map +1 -1
- package/v1/data/metadata/v14/pallet/storage/MetadataV14StorageEntry.js +23 -41
- package/v1/data/metadata/v14/pallet/storage/MetadataV14StorageEntry.js.map +1 -1
- package/v1/data/metadata/v14/pallet/storage/MetadataV14StorageEntryType.js +49 -90
- package/v1/data/metadata/v14/pallet/storage/MetadataV14StorageEntryType.js.map +1 -1
- package/v1/data/metadata/v14/registry/MetadataV14PortableRegistry.js +20 -41
- package/v1/data/metadata/v14/registry/MetadataV14PortableRegistry.js.map +1 -1
- package/v1/data/metadata/v14/registry/MetadataV14PortableType.js +17 -35
- package/v1/data/metadata/v14/registry/MetadataV14PortableType.js.map +1 -1
- package/v1/data/metadata/v14/registry/si/MetadataV14SiField.js +20 -38
- package/v1/data/metadata/v14/registry/si/MetadataV14SiField.js.map +1 -1
- package/v1/data/metadata/v14/registry/si/MetadataV14SiType.js +22 -40
- package/v1/data/metadata/v14/registry/si/MetadataV14SiType.js.map +1 -1
- package/v1/data/metadata/v14/registry/si/MetadataV14SiTypeParameter.js +16 -34
- package/v1/data/metadata/v14/registry/si/MetadataV14SiTypeParameter.js.map +1 -1
- package/v1/data/metadata/v14/registry/si/MetadataV14SiVariant.js +21 -39
- package/v1/data/metadata/v14/registry/si/MetadataV14SiVariant.js.map +1 -1
- package/v1/data/metadata/v14/registry/si/MetadataV14TypeDef.js +106 -150
- package/v1/data/metadata/v14/registry/si/MetadataV14TypeDef.js.map +1 -1
- package/v1/data/scale/SCALEDecoder.d.ts +2 -3
- package/v1/data/scale/SCALEDecoder.js +69 -80
- package/v1/data/scale/SCALEDecoder.js.map +1 -1
- package/v1/data/scale/type/SCALEAccountId.d.ts +0 -1
- package/v1/data/scale/type/SCALEAccountId.js +27 -46
- package/v1/data/scale/type/SCALEAccountId.js.map +1 -1
- package/v1/data/scale/type/SCALEArray.js +27 -45
- package/v1/data/scale/type/SCALEArray.js.map +1 -1
- package/v1/data/scale/type/SCALEBoolean.js +18 -36
- package/v1/data/scale/type/SCALEBoolean.js.map +1 -1
- package/v1/data/scale/type/SCALEBytes.d.ts +0 -1
- package/v1/data/scale/type/SCALEBytes.js +23 -42
- package/v1/data/scale/type/SCALEBytes.js.map +1 -1
- package/v1/data/scale/type/SCALEClass.js +8 -28
- package/v1/data/scale/type/SCALEClass.js.map +1 -1
- package/v1/data/scale/type/SCALECompactInt.d.ts +1 -1
- package/v1/data/scale/type/SCALECompactInt.js +54 -73
- package/v1/data/scale/type/SCALECompactInt.js.map +1 -1
- package/v1/data/scale/type/SCALEData.d.ts +0 -1
- package/v1/data/scale/type/SCALEData.js +33 -51
- package/v1/data/scale/type/SCALEData.js.map +1 -1
- package/v1/data/scale/type/SCALEEnum.js +21 -39
- package/v1/data/scale/type/SCALEEnum.js.map +1 -1
- package/v1/data/scale/type/SCALEEra.js +46 -68
- package/v1/data/scale/type/SCALEEra.js.map +1 -1
- package/v1/data/scale/type/SCALEHash.d.ts +0 -1
- package/v1/data/scale/type/SCALEHash.js +29 -53
- package/v1/data/scale/type/SCALEHash.js.map +1 -1
- package/v1/data/scale/type/SCALEInt.d.ts +1 -1
- package/v1/data/scale/type/SCALEInt.js +46 -65
- package/v1/data/scale/type/SCALEInt.js.map +1 -1
- package/v1/data/scale/type/SCALEMultiAddress.d.ts +1 -2
- package/v1/data/scale/type/SCALEMultiAddress.js +40 -59
- package/v1/data/scale/type/SCALEMultiAddress.js.map +1 -1
- package/v1/data/scale/type/SCALEOptional.js +27 -47
- package/v1/data/scale/type/SCALEOptional.js.map +1 -1
- package/v1/data/scale/type/SCALEString.js +25 -44
- package/v1/data/scale/type/SCALEString.js.map +1 -1
- package/v1/data/scale/type/SCALETuple.js +22 -40
- package/v1/data/scale/type/SCALETuple.js.map +1 -1
- package/v1/data/scale/type/SCALEType.js +6 -9
- package/v1/data/scale/type/SCALEType.js.map +1 -1
- package/v1/data/transaction/SubstrateSignature.d.ts +0 -1
- package/v1/data/transaction/SubstrateSignature.js +36 -61
- package/v1/data/transaction/SubstrateSignature.js.map +1 -1
- package/v1/data/transaction/SubstrateTransaction.d.ts +2 -2
- package/v1/data/transaction/SubstrateTransaction.js +66 -87
- package/v1/data/transaction/SubstrateTransaction.js.map +1 -1
- package/v1/data/transaction/SubstrateTransactionPayload.js +81 -114
- package/v1/data/transaction/SubstrateTransactionPayload.js.map +1 -1
- package/v1/data/transaction/method/SubstrateTransactionMethod.js +40 -76
- package/v1/data/transaction/method/SubstrateTransactionMethod.js.map +1 -1
- package/v1/data/transaction/method/SubstrateTransactionMethodArgs.js +35 -65
- package/v1/data/transaction/method/SubstrateTransactionMethodArgs.js.map +1 -1
- package/v1/index.js +38 -38
- package/v1/index.js.map +1 -1
- package/v1/node/SubstrateCommonNodeClient.d.ts +12 -12
- package/v1/node/SubstrateCommonNodeClient.js +159 -357
- package/v1/node/SubstrateCommonNodeClient.js.map +1 -1
- package/v1/protocol/SubstrateProtocol.d.ts +2 -4
- package/v1/protocol/SubstrateProtocol.js +182 -410
- package/v1/protocol/SubstrateProtocol.js.map +1 -1
- package/v1/protocol/SubstrateStakingProtocol.js +15 -82
- package/v1/protocol/SubstrateStakingProtocol.js.map +1 -1
- package/v1/serializer/v3/schemas/converter/transaction-converter.js +8 -20
- package/v1/serializer/v3/schemas/converter/transaction-converter.js.map +1 -1
- package/v1/serializer/v3/validators/transaction-validator.js +15 -63
- package/v1/serializer/v3/validators/transaction-validator.js.map +1 -1
- package/v1/serializer/v3/validators/validators.js +48 -129
- package/v1/serializer/v3/validators/validators.js.map +1 -1
- package/v1/types/configuration.d.ts +6 -6
- package/v1/types/crypto.d.ts +1 -1
- package/v1/utils/keys.js +4 -5
- package/v1/utils/keys.js.map +1 -1
- package/v1/utils/protocol.js +14 -15
- package/v1/utils/protocol.js.map +1 -1
- package/v1/utils/signature.js +3 -4
- package/v1/utils/signature.js.map +1 -1
|
@@ -1,44 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
4
|
};
|
|
20
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
6
|
exports.SubstrateTransactionMethodArgsDecoder = exports.SubstrateTransactionMethodArgsFactory = void 0;
|
|
22
7
|
// tslint:disable: max-classes-per-file
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
function SubstrateTransactionMethodArgsFactory(network, args) {
|
|
37
|
-
this.network = network;
|
|
38
|
-
this.args = args;
|
|
39
|
-
}
|
|
8
|
+
const bignumber_1 = __importDefault(require("@airgap/coinlib-core/dependencies/src/bignumber.js-9.0.0/bignumber"));
|
|
9
|
+
const assert_1 = require("@airgap/coinlib-core/utils/assert");
|
|
10
|
+
const SubstrateCompatAddress_1 = require("../../../../compat/SubstrateCompatAddress");
|
|
11
|
+
const SCALEDecoder_1 = require("../../scale/SCALEDecoder");
|
|
12
|
+
const SCALEAccountId_1 = require("../../scale/type/SCALEAccountId");
|
|
13
|
+
const SCALEArray_1 = require("../../scale/type/SCALEArray");
|
|
14
|
+
const SCALECompactInt_1 = require("../../scale/type/SCALECompactInt");
|
|
15
|
+
const SCALEEnum_1 = require("../../scale/type/SCALEEnum");
|
|
16
|
+
const SCALEInt_1 = require("../../scale/type/SCALEInt");
|
|
17
|
+
const SubstratePayee_1 = require("../../staking/SubstratePayee");
|
|
18
|
+
const SubstrateTransaction_1 = require("../SubstrateTransaction");
|
|
19
|
+
const SubstrateTransactionMethod_1 = require("./SubstrateTransactionMethod");
|
|
20
|
+
class SubstrateTransactionMethodArgsFactory {
|
|
40
21
|
// tslint:disable-next-line: cyclomatic-complexity
|
|
41
|
-
|
|
22
|
+
static create(network, type, args) {
|
|
42
23
|
// tslint:disable-next-line: switch-default
|
|
43
24
|
switch (type) {
|
|
44
25
|
case SubstrateTransaction_1.SubstrateTransactionType.TRANSFER:
|
|
@@ -107,15 +88,16 @@ var SubstrateTransactionMethodArgsFactory = /** @class */ (function () {
|
|
|
107
88
|
case SubstrateTransaction_1.SubstrateTransactionType.M_CANCEL_CANDIDATE_BOND_LESS:
|
|
108
89
|
return new MoonbeamCancelCandidateBondLessArgsFactory(network, args);
|
|
109
90
|
}
|
|
110
|
-
};
|
|
111
|
-
return SubstrateTransactionMethodArgsFactory;
|
|
112
|
-
}());
|
|
113
|
-
exports.SubstrateTransactionMethodArgsFactory = SubstrateTransactionMethodArgsFactory;
|
|
114
|
-
var SubstrateTransactionMethodArgsDecoder = /** @class */ (function () {
|
|
115
|
-
function SubstrateTransactionMethodArgsDecoder() {
|
|
116
91
|
}
|
|
92
|
+
constructor(network, args) {
|
|
93
|
+
this.network = network;
|
|
94
|
+
this.args = args;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
exports.SubstrateTransactionMethodArgsFactory = SubstrateTransactionMethodArgsFactory;
|
|
98
|
+
class SubstrateTransactionMethodArgsDecoder {
|
|
117
99
|
// tslint:disable-next-line: cyclomatic-complexity
|
|
118
|
-
|
|
100
|
+
static create(type) {
|
|
119
101
|
// tslint:disable-next-line: switch-default
|
|
120
102
|
switch (type) {
|
|
121
103
|
case SubstrateTransaction_1.SubstrateTransactionType.TRANSFER:
|
|
@@ -165,44 +147,33 @@ var SubstrateTransactionMethodArgsDecoder = /** @class */ (function () {
|
|
|
165
147
|
case SubstrateTransaction_1.SubstrateTransactionType.M_CANCEL_CANDIDATE_BOND_LESS:
|
|
166
148
|
return new MoonbeamCancelCandidateBondLessArgsDecoder();
|
|
167
149
|
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
|
|
150
|
+
}
|
|
151
|
+
decode(network, runtimeVersion, raw) {
|
|
152
|
+
const decoder = new SCALEDecoder_1.SCALEDecoder(network, runtimeVersion, raw);
|
|
171
153
|
return this._decode(decoder);
|
|
172
|
-
};
|
|
173
|
-
return SubstrateTransactionMethodArgsDecoder;
|
|
174
|
-
}());
|
|
175
|
-
exports.SubstrateTransactionMethodArgsDecoder = SubstrateTransactionMethodArgsDecoder;
|
|
176
|
-
var TransferArgsFactory = /** @class */ (function (_super) {
|
|
177
|
-
__extends(TransferArgsFactory, _super);
|
|
178
|
-
function TransferArgsFactory() {
|
|
179
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
180
154
|
}
|
|
181
|
-
|
|
155
|
+
}
|
|
156
|
+
exports.SubstrateTransactionMethodArgsDecoder = SubstrateTransactionMethodArgsDecoder;
|
|
157
|
+
class TransferArgsFactory extends SubstrateTransactionMethodArgsFactory {
|
|
158
|
+
createFields() {
|
|
182
159
|
return [
|
|
183
160
|
['destination', (0, SubstrateCompatAddress_1.scaleAddressFactory)(this.network).from(this.args.to, this.network)],
|
|
184
161
|
['value', SCALECompactInt_1.SCALECompactInt.from(this.args.value)]
|
|
185
162
|
];
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
return function () { return [
|
|
163
|
+
}
|
|
164
|
+
createToAirGapTransactionParts() {
|
|
165
|
+
return () => [
|
|
190
166
|
{
|
|
191
|
-
to: [(0, SubstrateCompatAddress_1.substrateAddressFactory)(
|
|
192
|
-
amount:
|
|
193
|
-
}
|
|
194
|
-
];
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
202
|
-
}
|
|
203
|
-
TransferArgsDecoder.prototype._decode = function (decoder) {
|
|
204
|
-
var destination = decoder.decodeNextAccount();
|
|
205
|
-
var value = decoder.decodeNextCompactInt();
|
|
167
|
+
to: [(0, SubstrateCompatAddress_1.substrateAddressFactory)(this.network).from(this.args.to).asString()],
|
|
168
|
+
amount: this.args.value.toString()
|
|
169
|
+
}
|
|
170
|
+
];
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
class TransferArgsDecoder extends SubstrateTransactionMethodArgsDecoder {
|
|
174
|
+
_decode(decoder) {
|
|
175
|
+
const destination = decoder.decodeNextAccount();
|
|
176
|
+
const value = decoder.decodeNextCompactInt();
|
|
206
177
|
return {
|
|
207
178
|
bytesDecoded: destination.bytesDecoded + value.bytesDecoded,
|
|
208
179
|
decoded: {
|
|
@@ -210,41 +181,30 @@ var TransferArgsDecoder = /** @class */ (function (_super) {
|
|
|
210
181
|
value: value.decoded.value
|
|
211
182
|
}
|
|
212
183
|
};
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
__extends(BondArgsFactory, _super);
|
|
218
|
-
function BondArgsFactory() {
|
|
219
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
220
|
-
}
|
|
221
|
-
BondArgsFactory.prototype.createFields = function () {
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
class BondArgsFactory extends SubstrateTransactionMethodArgsFactory {
|
|
187
|
+
createFields() {
|
|
222
188
|
return [
|
|
223
189
|
['controller', (0, SubstrateCompatAddress_1.scaleAddressFactory)(this.network).from(this.args.controller, this.network)],
|
|
224
190
|
['value', SCALECompactInt_1.SCALECompactInt.from(this.args.value)],
|
|
225
191
|
['payee', SCALEEnum_1.SCALEEnum.from(this.args.payee)]
|
|
226
192
|
];
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
return function () { return [
|
|
193
|
+
}
|
|
194
|
+
createToAirGapTransactionParts() {
|
|
195
|
+
return () => [
|
|
231
196
|
{
|
|
232
|
-
to: [(0, SubstrateCompatAddress_1.substrateAddressFactory)(
|
|
233
|
-
amount:
|
|
234
|
-
}
|
|
235
|
-
];
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
}
|
|
244
|
-
BondArgsDecoder.prototype._decode = function (decoder) {
|
|
245
|
-
var controller = decoder.decodeNextAccount();
|
|
246
|
-
var value = decoder.decodeNextCompactInt();
|
|
247
|
-
var payee = decoder.decodeNextEnum(function (value) { return SubstratePayee_1.SubstratePayee[SubstratePayee_1.SubstratePayee[value]]; });
|
|
197
|
+
to: [(0, SubstrateCompatAddress_1.substrateAddressFactory)(this.network).from(this.args.controller).asString()],
|
|
198
|
+
amount: this.args.value.toString()
|
|
199
|
+
}
|
|
200
|
+
];
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
class BondArgsDecoder extends SubstrateTransactionMethodArgsDecoder {
|
|
204
|
+
_decode(decoder) {
|
|
205
|
+
const controller = decoder.decodeNextAccount();
|
|
206
|
+
const value = decoder.decodeNextCompactInt();
|
|
207
|
+
const payee = decoder.decodeNextEnum((value) => SubstratePayee_1.SubstratePayee[SubstratePayee_1.SubstratePayee[value]]);
|
|
248
208
|
return {
|
|
249
209
|
bytesDecoded: controller.bytesDecoded + value.bytesDecoded + payee.bytesDecoded,
|
|
250
210
|
decoded: {
|
|
@@ -253,227 +213,150 @@ var BondArgsDecoder = /** @class */ (function (_super) {
|
|
|
253
213
|
payee: payee.decoded.value
|
|
254
214
|
}
|
|
255
215
|
};
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
__extends(UnbondArgsFactory, _super);
|
|
261
|
-
function UnbondArgsFactory() {
|
|
262
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
263
|
-
}
|
|
264
|
-
UnbondArgsFactory.prototype.createFields = function () {
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
class UnbondArgsFactory extends SubstrateTransactionMethodArgsFactory {
|
|
219
|
+
createFields() {
|
|
265
220
|
return [['value', SCALECompactInt_1.SCALECompactInt.from(this.args.value)]];
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
return function () { return [
|
|
221
|
+
}
|
|
222
|
+
createToAirGapTransactionParts() {
|
|
223
|
+
return () => [
|
|
270
224
|
{
|
|
271
|
-
amount:
|
|
272
|
-
}
|
|
273
|
-
];
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
function UnbondArgsDecoder() {
|
|
280
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
281
|
-
}
|
|
282
|
-
UnbondArgsDecoder.prototype._decode = function (decoder) {
|
|
283
|
-
var value = decoder.decodeNextCompactInt();
|
|
225
|
+
amount: this.args.value.toString()
|
|
226
|
+
}
|
|
227
|
+
];
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
class UnbondArgsDecoder extends SubstrateTransactionMethodArgsDecoder {
|
|
231
|
+
_decode(decoder) {
|
|
232
|
+
const value = decoder.decodeNextCompactInt();
|
|
284
233
|
return {
|
|
285
234
|
bytesDecoded: value.bytesDecoded,
|
|
286
235
|
decoded: {
|
|
287
236
|
value: value.decoded.value
|
|
288
237
|
}
|
|
289
238
|
};
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
__extends(RebondArgsFactory, _super);
|
|
295
|
-
function RebondArgsFactory() {
|
|
296
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
297
|
-
}
|
|
298
|
-
RebondArgsFactory.prototype.createFields = function () {
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
class RebondArgsFactory extends SubstrateTransactionMethodArgsFactory {
|
|
242
|
+
createFields() {
|
|
299
243
|
return [['value', SCALECompactInt_1.SCALECompactInt.from(this.args.value)]];
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
return function () { return [
|
|
244
|
+
}
|
|
245
|
+
createToAirGapTransactionParts() {
|
|
246
|
+
return () => [
|
|
304
247
|
{
|
|
305
|
-
amount:
|
|
306
|
-
}
|
|
307
|
-
];
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
function RebondArgsDecoder() {
|
|
314
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
315
|
-
}
|
|
316
|
-
RebondArgsDecoder.prototype._decode = function (decoder) {
|
|
317
|
-
var value = decoder.decodeNextCompactInt();
|
|
248
|
+
amount: this.args.value.toString()
|
|
249
|
+
}
|
|
250
|
+
];
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
class RebondArgsDecoder extends SubstrateTransactionMethodArgsDecoder {
|
|
254
|
+
_decode(decoder) {
|
|
255
|
+
const value = decoder.decodeNextCompactInt();
|
|
318
256
|
return {
|
|
319
257
|
bytesDecoded: value.bytesDecoded,
|
|
320
258
|
decoded: {
|
|
321
259
|
value: value.decoded.value
|
|
322
260
|
}
|
|
323
261
|
};
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
__extends(BondExtraArgsFactory, _super);
|
|
329
|
-
function BondExtraArgsFactory() {
|
|
330
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
331
|
-
}
|
|
332
|
-
BondExtraArgsFactory.prototype.createFields = function () {
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
class BondExtraArgsFactory extends SubstrateTransactionMethodArgsFactory {
|
|
265
|
+
createFields() {
|
|
333
266
|
return [['value', SCALECompactInt_1.SCALECompactInt.from(this.args.value)]];
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
return function () { return [
|
|
267
|
+
}
|
|
268
|
+
createToAirGapTransactionParts() {
|
|
269
|
+
return () => [
|
|
338
270
|
{
|
|
339
|
-
amount:
|
|
340
|
-
}
|
|
341
|
-
];
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
function BondExtraArgsDecoder() {
|
|
348
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
349
|
-
}
|
|
350
|
-
BondExtraArgsDecoder.prototype._decode = function (decoder) {
|
|
351
|
-
var value = decoder.decodeNextCompactInt();
|
|
271
|
+
amount: this.args.value.toString()
|
|
272
|
+
}
|
|
273
|
+
];
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
class BondExtraArgsDecoder extends SubstrateTransactionMethodArgsDecoder {
|
|
277
|
+
_decode(decoder) {
|
|
278
|
+
const value = decoder.decodeNextCompactInt();
|
|
352
279
|
return {
|
|
353
280
|
bytesDecoded: value.bytesDecoded,
|
|
354
281
|
decoded: {
|
|
355
282
|
value: value.decoded.value
|
|
356
283
|
}
|
|
357
284
|
};
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
__extends(WithdrawUnbondedArgsFactory, _super);
|
|
363
|
-
function WithdrawUnbondedArgsFactory() {
|
|
364
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
365
|
-
}
|
|
366
|
-
WithdrawUnbondedArgsFactory.prototype.createFields = function () {
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
class WithdrawUnbondedArgsFactory extends SubstrateTransactionMethodArgsFactory {
|
|
288
|
+
createFields() {
|
|
367
289
|
return [['slashingSpansNumber', SCALEInt_1.SCALEInt.from(this.args.slashingSpansNumber, 32)]];
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
return
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
function WithdrawUnbondedArgsDecoder() {
|
|
377
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
378
|
-
}
|
|
379
|
-
WithdrawUnbondedArgsDecoder.prototype._decode = function (decoder) {
|
|
380
|
-
var slashingSpansNumber = decoder.decodeNextInt(32);
|
|
290
|
+
}
|
|
291
|
+
createToAirGapTransactionParts() {
|
|
292
|
+
return () => [];
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
class WithdrawUnbondedArgsDecoder extends SubstrateTransactionMethodArgsDecoder {
|
|
296
|
+
_decode(decoder) {
|
|
297
|
+
const slashingSpansNumber = decoder.decodeNextInt(32);
|
|
381
298
|
return {
|
|
382
299
|
bytesDecoded: slashingSpansNumber.bytesDecoded,
|
|
383
300
|
decoded: {
|
|
384
301
|
slashingSpansNumber: slashingSpansNumber.decoded.toNumber()
|
|
385
302
|
}
|
|
386
303
|
};
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
NominateArgsFactory.prototype.createFields = function () {
|
|
396
|
-
var _this = this;
|
|
397
|
-
return [['targets', SCALEArray_1.SCALEArray.from(this.args.targets.map(function (target) { return (0, SubstrateCompatAddress_1.scaleAddressFactory)(_this.network).from(target, _this.network); }))]];
|
|
398
|
-
};
|
|
399
|
-
NominateArgsFactory.prototype.createToAirGapTransactionParts = function () {
|
|
400
|
-
var _this = this;
|
|
401
|
-
return function () { return [
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
class NominateArgsFactory extends SubstrateTransactionMethodArgsFactory {
|
|
307
|
+
createFields() {
|
|
308
|
+
return [['targets', SCALEArray_1.SCALEArray.from(this.args.targets.map((target) => (0, SubstrateCompatAddress_1.scaleAddressFactory)(this.network).from(target, this.network)))]];
|
|
309
|
+
}
|
|
310
|
+
createToAirGapTransactionParts() {
|
|
311
|
+
return () => [
|
|
402
312
|
{
|
|
403
|
-
to:
|
|
404
|
-
}
|
|
405
|
-
];
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
function NominateArgsDecoder() {
|
|
412
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
413
|
-
}
|
|
414
|
-
NominateArgsDecoder.prototype._decode = function (decoder) {
|
|
415
|
-
var targets = decoder.decodeNextArray(function (network, runtimeVersion, hex) {
|
|
416
|
-
return (0, SubstrateCompatAddress_1.scaleAddressFactory)(network).decode(network, runtimeVersion, hex);
|
|
417
|
-
});
|
|
313
|
+
to: this.args.targets.map((target) => (0, SubstrateCompatAddress_1.substrateAddressFactory)(this.network).from(target).asString())
|
|
314
|
+
}
|
|
315
|
+
];
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
class NominateArgsDecoder extends SubstrateTransactionMethodArgsDecoder {
|
|
319
|
+
_decode(decoder) {
|
|
320
|
+
const targets = decoder.decodeNextArray((network, runtimeVersion, hex) => (0, SubstrateCompatAddress_1.scaleAddressFactory)(network).decode(network, runtimeVersion, hex));
|
|
418
321
|
return {
|
|
419
322
|
bytesDecoded: targets.bytesDecoded,
|
|
420
323
|
decoded: {
|
|
421
|
-
targets: targets.decoded.elements.map(
|
|
324
|
+
targets: targets.decoded.elements.map((target) => target.toString())
|
|
422
325
|
}
|
|
423
326
|
};
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
__extends(StopNominatingArgsFactory, _super);
|
|
429
|
-
function StopNominatingArgsFactory() {
|
|
430
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
431
|
-
}
|
|
432
|
-
StopNominatingArgsFactory.prototype.createFields = function () {
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
class StopNominatingArgsFactory extends SubstrateTransactionMethodArgsFactory {
|
|
330
|
+
createFields() {
|
|
433
331
|
return [];
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
return
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
__extends(StopNominatingArgsDecoder, _super);
|
|
442
|
-
function StopNominatingArgsDecoder() {
|
|
443
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
444
|
-
}
|
|
445
|
-
StopNominatingArgsDecoder.prototype._decode = function (decoder) {
|
|
332
|
+
}
|
|
333
|
+
createToAirGapTransactionParts() {
|
|
334
|
+
return () => [];
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
class StopNominatingArgsDecoder extends SubstrateTransactionMethodArgsDecoder {
|
|
338
|
+
_decode(decoder) {
|
|
446
339
|
return {
|
|
447
340
|
bytesDecoded: 0,
|
|
448
341
|
decoded: {}
|
|
449
342
|
};
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
__extends(PayoutStakersArgsFactory, _super);
|
|
455
|
-
function PayoutStakersArgsFactory() {
|
|
456
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
457
|
-
}
|
|
458
|
-
PayoutStakersArgsFactory.prototype.createFields = function () {
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
class PayoutStakersArgsFactory extends SubstrateTransactionMethodArgsFactory {
|
|
346
|
+
createFields() {
|
|
459
347
|
return [
|
|
460
348
|
['validatorStash', SCALEAccountId_1.SCALEAccountId.from(this.args.validator, this.network)],
|
|
461
349
|
['era', SCALEInt_1.SCALEInt.from(this.args.era, 32)]
|
|
462
350
|
];
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
return
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
473
|
-
}
|
|
474
|
-
PayoutStakersArgsDecoder.prototype._decode = function (decoder) {
|
|
475
|
-
var validatorStash = decoder.decodeNextAccountId();
|
|
476
|
-
var era = decoder.decodeNextInt(32);
|
|
351
|
+
}
|
|
352
|
+
createToAirGapTransactionParts() {
|
|
353
|
+
return () => [];
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
class PayoutStakersArgsDecoder extends SubstrateTransactionMethodArgsDecoder {
|
|
357
|
+
_decode(decoder) {
|
|
358
|
+
const validatorStash = decoder.decodeNextAccountId();
|
|
359
|
+
const era = decoder.decodeNextInt(32);
|
|
477
360
|
return {
|
|
478
361
|
bytesDecoded: era.bytesDecoded + validatorStash.bytesDecoded,
|
|
479
362
|
decoded: {
|
|
@@ -481,141 +364,94 @@ var PayoutStakersArgsDecoder = /** @class */ (function (_super) {
|
|
|
481
364
|
era: era.decoded.value
|
|
482
365
|
}
|
|
483
366
|
};
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
__extends(SetPayeeArgsFactory, _super);
|
|
489
|
-
function SetPayeeArgsFactory() {
|
|
490
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
491
|
-
}
|
|
492
|
-
SetPayeeArgsFactory.prototype.createFields = function () {
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
class SetPayeeArgsFactory extends SubstrateTransactionMethodArgsFactory {
|
|
370
|
+
createFields() {
|
|
493
371
|
return [['payee', SCALEEnum_1.SCALEEnum.from(this.args.payee)]];
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
return
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
function SetPayeeArgsDecoder() {
|
|
503
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
504
|
-
}
|
|
505
|
-
SetPayeeArgsDecoder.prototype._decode = function (decoder) {
|
|
506
|
-
var payee = decoder.decodeNextEnum(function (value) { return SubstratePayee_1.SubstratePayee[SubstratePayee_1.SubstratePayee[value]]; });
|
|
372
|
+
}
|
|
373
|
+
createToAirGapTransactionParts() {
|
|
374
|
+
return () => [];
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
class SetPayeeArgsDecoder extends SubstrateTransactionMethodArgsDecoder {
|
|
378
|
+
_decode(decoder) {
|
|
379
|
+
const payee = decoder.decodeNextEnum((value) => SubstratePayee_1.SubstratePayee[SubstratePayee_1.SubstratePayee[value]]);
|
|
507
380
|
return {
|
|
508
381
|
bytesDecoded: payee.bytesDecoded,
|
|
509
382
|
decoded: {
|
|
510
383
|
payee: payee.decoded.value
|
|
511
384
|
}
|
|
512
385
|
};
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
__extends(SetControllerArgsFactory, _super);
|
|
518
|
-
function SetControllerArgsFactory() {
|
|
519
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
520
|
-
}
|
|
521
|
-
SetControllerArgsFactory.prototype.createFields = function () {
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
class SetControllerArgsFactory extends SubstrateTransactionMethodArgsFactory {
|
|
389
|
+
createFields() {
|
|
522
390
|
return [['controller', (0, SubstrateCompatAddress_1.scaleAddressFactory)(this.network).from(this.args.controller, this.network)]];
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
return function () { return [
|
|
391
|
+
}
|
|
392
|
+
createToAirGapTransactionParts() {
|
|
393
|
+
return () => [
|
|
527
394
|
{
|
|
528
|
-
to: [(0, SubstrateCompatAddress_1.substrateAddressFactory)(
|
|
529
|
-
}
|
|
530
|
-
];
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
function SetControllerArgsDecoder() {
|
|
537
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
538
|
-
}
|
|
539
|
-
SetControllerArgsDecoder.prototype._decode = function (decoder) {
|
|
540
|
-
var controller = decoder.decodeNextAccount();
|
|
395
|
+
to: [(0, SubstrateCompatAddress_1.substrateAddressFactory)(this.network).from(this.args.controller).asString()]
|
|
396
|
+
}
|
|
397
|
+
];
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
class SetControllerArgsDecoder extends SubstrateTransactionMethodArgsDecoder {
|
|
401
|
+
_decode(decoder) {
|
|
402
|
+
const controller = decoder.decodeNextAccount();
|
|
541
403
|
return {
|
|
542
404
|
bytesDecoded: controller.bytesDecoded,
|
|
543
405
|
decoded: {
|
|
544
406
|
controller: controller.decoded.toString()
|
|
545
407
|
}
|
|
546
408
|
};
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
__extends(SubmitBatchArgsFactory, _super);
|
|
552
|
-
function SubmitBatchArgsFactory() {
|
|
553
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
554
|
-
}
|
|
555
|
-
SubmitBatchArgsFactory.prototype.createFields = function () {
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
class SubmitBatchArgsFactory extends SubstrateTransactionMethodArgsFactory {
|
|
412
|
+
createFields() {
|
|
556
413
|
return [['calls', SCALEArray_1.SCALEArray.from(this.args.calls)]];
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
return SubmitBatchArgsFactory;
|
|
565
|
-
}(SubstrateTransactionMethodArgsFactory));
|
|
566
|
-
var SubmitBatchArgsDecoder = /** @class */ (function (_super) {
|
|
567
|
-
__extends(SubmitBatchArgsDecoder, _super);
|
|
568
|
-
function SubmitBatchArgsDecoder() {
|
|
569
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
570
|
-
}
|
|
571
|
-
SubmitBatchArgsDecoder.prototype._decode = function (decoder) {
|
|
414
|
+
}
|
|
415
|
+
createToAirGapTransactionParts() {
|
|
416
|
+
return () => this.args.calls.map((call) => call.toAirGapTransactionParts()).reduce((flatten, toFlatten) => flatten.concat(toFlatten), []);
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
class SubmitBatchArgsDecoder extends SubstrateTransactionMethodArgsDecoder {
|
|
420
|
+
_decode(decoder) {
|
|
572
421
|
// temporary fixed type
|
|
573
|
-
|
|
574
|
-
return SubstrateTransactionMethod_1.SubstrateTransactionMethod.decode(network, runtimeVersion, SubstrateTransaction_1.SubstrateTransactionType.COLLECT_PAYOUT, hex);
|
|
575
|
-
});
|
|
422
|
+
const calls = decoder.decodeNextArray((network, runtimeVersion, hex) => SubstrateTransactionMethod_1.SubstrateTransactionMethod.decode(network, runtimeVersion, SubstrateTransaction_1.SubstrateTransactionType.COLLECT_PAYOUT, hex));
|
|
576
423
|
return {
|
|
577
424
|
bytesDecoded: calls.bytesDecoded,
|
|
578
425
|
decoded: {
|
|
579
426
|
calls: calls.decoded.elements
|
|
580
427
|
}
|
|
581
428
|
};
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
__extends(MoonbeamDelegateArgsFactory, _super);
|
|
587
|
-
function MoonbeamDelegateArgsFactory() {
|
|
588
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
589
|
-
}
|
|
590
|
-
MoonbeamDelegateArgsFactory.prototype.createFields = function () {
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
class MoonbeamDelegateArgsFactory extends SubstrateTransactionMethodArgsFactory {
|
|
432
|
+
createFields() {
|
|
591
433
|
return [
|
|
592
434
|
['collator', SCALEAccountId_1.SCALEAccountId.from(this.args.candidate, this.network)],
|
|
593
435
|
['amount', SCALEInt_1.SCALEInt.from(this.args.amount, 128)],
|
|
594
436
|
['candidateDelegationCount', SCALEInt_1.SCALEInt.from(this.args.candidateDelegationCount, 32)],
|
|
595
437
|
['delegationCount', SCALEInt_1.SCALEInt.from(this.args.delegationCount, 32)]
|
|
596
438
|
];
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
return function () { return [
|
|
439
|
+
}
|
|
440
|
+
createToAirGapTransactionParts() {
|
|
441
|
+
return () => [
|
|
601
442
|
{
|
|
602
|
-
to: [(0, SubstrateCompatAddress_1.substrateAddressFactory)(
|
|
603
|
-
amount: new bignumber_1.default(
|
|
604
|
-
}
|
|
605
|
-
];
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
MoonbeamDelegateArgsDecoder.prototype._decode = function (decoder) {
|
|
615
|
-
var candidate = decoder.decodeNextAccountId(20);
|
|
616
|
-
var amount = decoder.decodeNextInt(128);
|
|
617
|
-
var candidateDelegationCount = decoder.decodeNextInt(32);
|
|
618
|
-
var delegationCount = decoder.decodeNextInt(32);
|
|
443
|
+
to: [(0, SubstrateCompatAddress_1.substrateAddressFactory)(this.network).from(this.args.candidate).asString()],
|
|
444
|
+
amount: new bignumber_1.default(this.args.amount).toString()
|
|
445
|
+
}
|
|
446
|
+
];
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
class MoonbeamDelegateArgsDecoder extends SubstrateTransactionMethodArgsDecoder {
|
|
450
|
+
_decode(decoder) {
|
|
451
|
+
const candidate = decoder.decodeNextAccountId(20);
|
|
452
|
+
const amount = decoder.decodeNextInt(128);
|
|
453
|
+
const candidateDelegationCount = decoder.decodeNextInt(32);
|
|
454
|
+
const delegationCount = decoder.decodeNextInt(32);
|
|
619
455
|
return {
|
|
620
456
|
bytesDecoded: candidate.bytesDecoded + amount.bytesDecoded + candidateDelegationCount.bytesDecoded + delegationCount.bytesDecoded,
|
|
621
457
|
decoded: {
|
|
@@ -625,59 +461,39 @@ var MoonbeamDelegateArgsDecoder = /** @class */ (function (_super) {
|
|
|
625
461
|
delegationCount: delegationCount.decoded.value
|
|
626
462
|
}
|
|
627
463
|
};
|
|
628
|
-
}
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
__extends(MoonbeamScheduleLeaveDelegatorsArgsFactory, _super);
|
|
633
|
-
function MoonbeamScheduleLeaveDelegatorsArgsFactory() {
|
|
634
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
635
|
-
}
|
|
636
|
-
MoonbeamScheduleLeaveDelegatorsArgsFactory.prototype.createFields = function () {
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
class MoonbeamScheduleLeaveDelegatorsArgsFactory extends SubstrateTransactionMethodArgsFactory {
|
|
467
|
+
createFields() {
|
|
637
468
|
return [];
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
return
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
__extends(MoonbeamScheduleLeaveDelegatorsArgsDecoder, _super);
|
|
646
|
-
function MoonbeamScheduleLeaveDelegatorsArgsDecoder() {
|
|
647
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
648
|
-
}
|
|
649
|
-
MoonbeamScheduleLeaveDelegatorsArgsDecoder.prototype._decode = function (_decoder) {
|
|
469
|
+
}
|
|
470
|
+
createToAirGapTransactionParts() {
|
|
471
|
+
return () => [];
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
class MoonbeamScheduleLeaveDelegatorsArgsDecoder extends SubstrateTransactionMethodArgsDecoder {
|
|
475
|
+
_decode(_decoder) {
|
|
650
476
|
return {
|
|
651
477
|
bytesDecoded: 0,
|
|
652
478
|
decoded: {}
|
|
653
479
|
};
|
|
654
|
-
}
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
__extends(MoonbeamExecuteLeaveDelegatorsArgsFactory, _super);
|
|
659
|
-
function MoonbeamExecuteLeaveDelegatorsArgsFactory() {
|
|
660
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
661
|
-
}
|
|
662
|
-
MoonbeamExecuteLeaveDelegatorsArgsFactory.prototype.createFields = function () {
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
class MoonbeamExecuteLeaveDelegatorsArgsFactory extends SubstrateTransactionMethodArgsFactory {
|
|
483
|
+
createFields() {
|
|
663
484
|
return [
|
|
664
485
|
['delegator', SCALEAccountId_1.SCALEAccountId.from(this.args.delegator, this.network)],
|
|
665
486
|
['delegationCount', SCALEInt_1.SCALEInt.from(this.args.delegationCount, 32)]
|
|
666
487
|
];
|
|
667
|
-
}
|
|
668
|
-
|
|
669
|
-
return
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
677
|
-
}
|
|
678
|
-
MoonbeamExecuteLeaveDelegatorsArgsDecoder.prototype._decode = function (decoder) {
|
|
679
|
-
var delegator = decoder.decodeNextAccountId(20);
|
|
680
|
-
var delegationCount = decoder.decodeNextInt(32);
|
|
488
|
+
}
|
|
489
|
+
createToAirGapTransactionParts() {
|
|
490
|
+
return () => [];
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
class MoonbeamExecuteLeaveDelegatorsArgsDecoder extends SubstrateTransactionMethodArgsDecoder {
|
|
494
|
+
_decode(decoder) {
|
|
495
|
+
const delegator = decoder.decodeNextAccountId(20);
|
|
496
|
+
const delegationCount = decoder.decodeNextInt(32);
|
|
681
497
|
return {
|
|
682
498
|
bytesDecoded: delegator.bytesDecoded + delegationCount.bytesDecoded,
|
|
683
499
|
decoded: {
|
|
@@ -685,99 +501,67 @@ var MoonbeamExecuteLeaveDelegatorsArgsDecoder = /** @class */ (function (_super)
|
|
|
685
501
|
delegationCount: delegationCount.decoded.value
|
|
686
502
|
}
|
|
687
503
|
};
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
__extends(MoonbeamCancelLeaveDelegatorsArgsFactory, _super);
|
|
693
|
-
function MoonbeamCancelLeaveDelegatorsArgsFactory() {
|
|
694
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
695
|
-
}
|
|
696
|
-
MoonbeamCancelLeaveDelegatorsArgsFactory.prototype.createFields = function () {
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
class MoonbeamCancelLeaveDelegatorsArgsFactory extends SubstrateTransactionMethodArgsFactory {
|
|
507
|
+
createFields() {
|
|
697
508
|
return [];
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
return
|
|
701
|
-
}
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
__extends(MoonbeamCancelLeaveDelegatorsArgsDecoder, _super);
|
|
706
|
-
function MoonbeamCancelLeaveDelegatorsArgsDecoder() {
|
|
707
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
708
|
-
}
|
|
709
|
-
MoonbeamCancelLeaveDelegatorsArgsDecoder.prototype._decode = function (_decoder) {
|
|
509
|
+
}
|
|
510
|
+
createToAirGapTransactionParts() {
|
|
511
|
+
return () => [];
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
class MoonbeamCancelLeaveDelegatorsArgsDecoder extends SubstrateTransactionMethodArgsDecoder {
|
|
515
|
+
_decode(_decoder) {
|
|
710
516
|
return {
|
|
711
517
|
bytesDecoded: 0,
|
|
712
518
|
decoded: {}
|
|
713
519
|
};
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
__extends(MoonbeamScheduleRevokeDelegationArgsFactory, _super);
|
|
719
|
-
function MoonbeamScheduleRevokeDelegationArgsFactory() {
|
|
720
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
721
|
-
}
|
|
722
|
-
MoonbeamScheduleRevokeDelegationArgsFactory.prototype.createFields = function () {
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
class MoonbeamScheduleRevokeDelegationArgsFactory extends SubstrateTransactionMethodArgsFactory {
|
|
523
|
+
createFields() {
|
|
723
524
|
return [['collator', SCALEAccountId_1.SCALEAccountId.from(this.args.collator, this.network)]];
|
|
724
|
-
}
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
return function () { return [
|
|
525
|
+
}
|
|
526
|
+
createToAirGapTransactionParts() {
|
|
527
|
+
return () => [
|
|
728
528
|
{
|
|
729
|
-
to: [(0, SubstrateCompatAddress_1.substrateAddressFactory)(
|
|
730
|
-
}
|
|
731
|
-
];
|
|
732
|
-
}
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
function MoonbeamScheduleRevokeDelegationArgsDecoder() {
|
|
738
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
739
|
-
}
|
|
740
|
-
MoonbeamScheduleRevokeDelegationArgsDecoder.prototype._decode = function (decoder) {
|
|
741
|
-
var collator = decoder.decodeNextAccountId(20);
|
|
529
|
+
to: [(0, SubstrateCompatAddress_1.substrateAddressFactory)(this.network).from(this.args.collator).asString()]
|
|
530
|
+
}
|
|
531
|
+
];
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
class MoonbeamScheduleRevokeDelegationArgsDecoder extends SubstrateTransactionMethodArgsDecoder {
|
|
535
|
+
_decode(decoder) {
|
|
536
|
+
const collator = decoder.decodeNextAccountId(20);
|
|
742
537
|
return {
|
|
743
538
|
bytesDecoded: collator.bytesDecoded,
|
|
744
539
|
decoded: {
|
|
745
540
|
collator: collator.decoded.address
|
|
746
541
|
}
|
|
747
542
|
};
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
__extends(MoonbeamExecuteDelegationRequestArgsFactory, _super);
|
|
753
|
-
function MoonbeamExecuteDelegationRequestArgsFactory() {
|
|
754
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
755
|
-
}
|
|
756
|
-
MoonbeamExecuteDelegationRequestArgsFactory.prototype.createFields = function () {
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
class MoonbeamExecuteDelegationRequestArgsFactory extends SubstrateTransactionMethodArgsFactory {
|
|
546
|
+
createFields() {
|
|
757
547
|
return [
|
|
758
548
|
['delegator', SCALEAccountId_1.SCALEAccountId.from(this.args.delegator, this.network)],
|
|
759
549
|
['candidate', SCALEAccountId_1.SCALEAccountId.from(this.args.candidate, this.network)]
|
|
760
550
|
];
|
|
761
|
-
}
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
return function () { return [
|
|
551
|
+
}
|
|
552
|
+
createToAirGapTransactionParts() {
|
|
553
|
+
return () => [
|
|
765
554
|
{
|
|
766
|
-
from: [(0, SubstrateCompatAddress_1.substrateAddressFactory)(
|
|
767
|
-
to: [(0, SubstrateCompatAddress_1.substrateAddressFactory)(
|
|
768
|
-
}
|
|
769
|
-
];
|
|
770
|
-
}
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
777
|
-
}
|
|
778
|
-
MoonbeamExecuteDelegationRequestArgsDecoder.prototype._decode = function (decoder) {
|
|
779
|
-
var delegator = decoder.decodeNextAccountId(20);
|
|
780
|
-
var candidate = decoder.decodeNextAccountId(20);
|
|
555
|
+
from: [(0, SubstrateCompatAddress_1.substrateAddressFactory)(this.network).from(this.args.delegator).asString()],
|
|
556
|
+
to: [(0, SubstrateCompatAddress_1.substrateAddressFactory)(this.network).from(this.args.candidate).asString()]
|
|
557
|
+
}
|
|
558
|
+
];
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
class MoonbeamExecuteDelegationRequestArgsDecoder extends SubstrateTransactionMethodArgsDecoder {
|
|
562
|
+
_decode(decoder) {
|
|
563
|
+
const delegator = decoder.decodeNextAccountId(20);
|
|
564
|
+
const candidate = decoder.decodeNextAccountId(20);
|
|
781
565
|
return {
|
|
782
566
|
bytesDecoded: delegator.bytesDecoded + candidate.bytesDecoded,
|
|
783
567
|
decoded: {
|
|
@@ -785,73 +569,51 @@ var MoonbeamExecuteDelegationRequestArgsDecoder = /** @class */ (function (_supe
|
|
|
785
569
|
candidate: candidate.decoded.address
|
|
786
570
|
}
|
|
787
571
|
};
|
|
788
|
-
}
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
__extends(MoonbeamCancelDelegationRequestArgsFactory, _super);
|
|
793
|
-
function MoonbeamCancelDelegationRequestArgsFactory() {
|
|
794
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
795
|
-
}
|
|
796
|
-
MoonbeamCancelDelegationRequestArgsFactory.prototype.createFields = function () {
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
class MoonbeamCancelDelegationRequestArgsFactory extends SubstrateTransactionMethodArgsFactory {
|
|
575
|
+
createFields() {
|
|
797
576
|
return [['candidate', SCALEAccountId_1.SCALEAccountId.from(this.args.candidate, this.network)]];
|
|
798
|
-
}
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
return function () { return [
|
|
577
|
+
}
|
|
578
|
+
createToAirGapTransactionParts() {
|
|
579
|
+
return () => [
|
|
802
580
|
{
|
|
803
|
-
to: [(0, SubstrateCompatAddress_1.substrateAddressFactory)(
|
|
804
|
-
}
|
|
805
|
-
];
|
|
806
|
-
}
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
function MoonbeamCancelDelegationRequestArgsDecoder() {
|
|
812
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
813
|
-
}
|
|
814
|
-
MoonbeamCancelDelegationRequestArgsDecoder.prototype._decode = function (decoder) {
|
|
815
|
-
var candidate = decoder.decodeNextAccountId(20);
|
|
581
|
+
to: [(0, SubstrateCompatAddress_1.substrateAddressFactory)(this.network).from(this.args.candidate).asString()]
|
|
582
|
+
}
|
|
583
|
+
];
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
class MoonbeamCancelDelegationRequestArgsDecoder extends SubstrateTransactionMethodArgsDecoder {
|
|
587
|
+
_decode(decoder) {
|
|
588
|
+
const candidate = decoder.decodeNextAccountId(20);
|
|
816
589
|
return {
|
|
817
590
|
bytesDecoded: candidate.bytesDecoded,
|
|
818
591
|
decoded: {
|
|
819
592
|
candidate: candidate.decoded.address
|
|
820
593
|
}
|
|
821
594
|
};
|
|
822
|
-
}
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
__extends(MoonbeamDelegatorBondMoreArgsFactory, _super);
|
|
827
|
-
function MoonbeamDelegatorBondMoreArgsFactory() {
|
|
828
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
829
|
-
}
|
|
830
|
-
MoonbeamDelegatorBondMoreArgsFactory.prototype.createFields = function () {
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
class MoonbeamDelegatorBondMoreArgsFactory extends SubstrateTransactionMethodArgsFactory {
|
|
598
|
+
createFields() {
|
|
831
599
|
return [
|
|
832
600
|
['candidate', SCALEAccountId_1.SCALEAccountId.from(this.args.candidate, this.network)],
|
|
833
601
|
['more', SCALEInt_1.SCALEInt.from(this.args.more, 128)]
|
|
834
602
|
];
|
|
835
|
-
}
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
return function () { return [
|
|
603
|
+
}
|
|
604
|
+
createToAirGapTransactionParts() {
|
|
605
|
+
return () => [
|
|
839
606
|
{
|
|
840
|
-
to: [(0, SubstrateCompatAddress_1.substrateAddressFactory)(
|
|
841
|
-
amount: new bignumber_1.default(
|
|
842
|
-
}
|
|
843
|
-
];
|
|
844
|
-
}
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
851
|
-
}
|
|
852
|
-
MoonbeamDelegatorBondMoreArgsDecoder.prototype._decode = function (decoder) {
|
|
853
|
-
var candidate = decoder.decodeNextAccountId(20);
|
|
854
|
-
var more = decoder.decodeNextInt(128);
|
|
607
|
+
to: [(0, SubstrateCompatAddress_1.substrateAddressFactory)(this.network).from(this.args.candidate).asString()],
|
|
608
|
+
amount: new bignumber_1.default(this.args.more).toString()
|
|
609
|
+
}
|
|
610
|
+
];
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
class MoonbeamDelegatorBondMoreArgsDecoder extends SubstrateTransactionMethodArgsDecoder {
|
|
614
|
+
_decode(decoder) {
|
|
615
|
+
const candidate = decoder.decodeNextAccountId(20);
|
|
616
|
+
const more = decoder.decodeNextInt(128);
|
|
855
617
|
return {
|
|
856
618
|
bytesDecoded: candidate.bytesDecoded + more.bytesDecoded,
|
|
857
619
|
decoded: {
|
|
@@ -859,39 +621,28 @@ var MoonbeamDelegatorBondMoreArgsDecoder = /** @class */ (function (_super) {
|
|
|
859
621
|
more: more.decoded.value
|
|
860
622
|
}
|
|
861
623
|
};
|
|
862
|
-
}
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
__extends(MoonbeamScheduleDelegatorBondLessArgsFactory, _super);
|
|
867
|
-
function MoonbeamScheduleDelegatorBondLessArgsFactory() {
|
|
868
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
869
|
-
}
|
|
870
|
-
MoonbeamScheduleDelegatorBondLessArgsFactory.prototype.createFields = function () {
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
class MoonbeamScheduleDelegatorBondLessArgsFactory extends SubstrateTransactionMethodArgsFactory {
|
|
627
|
+
createFields() {
|
|
871
628
|
return [
|
|
872
629
|
['candidate', SCALEAccountId_1.SCALEAccountId.from(this.args.candidate, this.network)],
|
|
873
630
|
['less', SCALEInt_1.SCALEInt.from(this.args.less, 128)]
|
|
874
631
|
];
|
|
875
|
-
}
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
return function () { return [
|
|
632
|
+
}
|
|
633
|
+
createToAirGapTransactionParts() {
|
|
634
|
+
return () => [
|
|
879
635
|
{
|
|
880
|
-
to: [(0, SubstrateCompatAddress_1.substrateAddressFactory)(
|
|
881
|
-
amount: new bignumber_1.default(
|
|
882
|
-
}
|
|
883
|
-
];
|
|
884
|
-
}
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
891
|
-
}
|
|
892
|
-
MoonbeamScheduleDelegatorBondLessArgsDecoder.prototype._decode = function (decoder) {
|
|
893
|
-
var candidate = decoder.decodeNextAccountId(20);
|
|
894
|
-
var less = decoder.decodeNextInt(128);
|
|
636
|
+
to: [(0, SubstrateCompatAddress_1.substrateAddressFactory)(this.network).from(this.args.candidate).asString()],
|
|
637
|
+
amount: new bignumber_1.default(this.args.less).toString()
|
|
638
|
+
}
|
|
639
|
+
];
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
class MoonbeamScheduleDelegatorBondLessArgsDecoder extends SubstrateTransactionMethodArgsDecoder {
|
|
643
|
+
_decode(decoder) {
|
|
644
|
+
const candidate = decoder.decodeNextAccountId(20);
|
|
645
|
+
const less = decoder.decodeNextInt(128);
|
|
895
646
|
return {
|
|
896
647
|
bytesDecoded: candidate.bytesDecoded + less.bytesDecoded,
|
|
897
648
|
decoded: {
|
|
@@ -899,67 +650,45 @@ var MoonbeamScheduleDelegatorBondLessArgsDecoder = /** @class */ (function (_sup
|
|
|
899
650
|
less: less.decoded.value
|
|
900
651
|
}
|
|
901
652
|
};
|
|
902
|
-
}
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
__extends(MoonbeamExecuteCandidateBondLessArgsFactory, _super);
|
|
907
|
-
function MoonbeamExecuteCandidateBondLessArgsFactory() {
|
|
908
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
909
|
-
}
|
|
910
|
-
MoonbeamExecuteCandidateBondLessArgsFactory.prototype.createFields = function () {
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
class MoonbeamExecuteCandidateBondLessArgsFactory extends SubstrateTransactionMethodArgsFactory {
|
|
656
|
+
createFields() {
|
|
911
657
|
return [['candidate', SCALEAccountId_1.SCALEAccountId.from(this.args.candidate, this.network)]];
|
|
912
|
-
}
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
return function () { return [
|
|
658
|
+
}
|
|
659
|
+
createToAirGapTransactionParts() {
|
|
660
|
+
return () => [
|
|
916
661
|
{
|
|
917
|
-
to: [(0, SubstrateCompatAddress_1.substrateAddressFactory)(
|
|
918
|
-
}
|
|
919
|
-
];
|
|
920
|
-
}
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
function MoonbeamExecuteCandidateBondLessArgsDecoder() {
|
|
926
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
927
|
-
}
|
|
928
|
-
MoonbeamExecuteCandidateBondLessArgsDecoder.prototype._decode = function (decoder) {
|
|
929
|
-
var candidate = decoder.decodeNextAccountId(20);
|
|
662
|
+
to: [(0, SubstrateCompatAddress_1.substrateAddressFactory)(this.network).from(this.args.candidate).asString()]
|
|
663
|
+
}
|
|
664
|
+
];
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
class MoonbeamExecuteCandidateBondLessArgsDecoder extends SubstrateTransactionMethodArgsDecoder {
|
|
668
|
+
_decode(decoder) {
|
|
669
|
+
const candidate = decoder.decodeNextAccountId(20);
|
|
930
670
|
return {
|
|
931
671
|
bytesDecoded: candidate.bytesDecoded,
|
|
932
672
|
decoded: {
|
|
933
673
|
candidate: candidate.decoded.address
|
|
934
674
|
}
|
|
935
675
|
};
|
|
936
|
-
}
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
__extends(MoonbeamCancelCandidateBondLessArgsFactory, _super);
|
|
941
|
-
function MoonbeamCancelCandidateBondLessArgsFactory() {
|
|
942
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
943
|
-
}
|
|
944
|
-
MoonbeamCancelCandidateBondLessArgsFactory.prototype.createFields = function () {
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
class MoonbeamCancelCandidateBondLessArgsFactory extends SubstrateTransactionMethodArgsFactory {
|
|
679
|
+
createFields() {
|
|
945
680
|
return [];
|
|
946
|
-
}
|
|
947
|
-
|
|
948
|
-
return
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
__extends(MoonbeamCancelCandidateBondLessArgsDecoder, _super);
|
|
954
|
-
function MoonbeamCancelCandidateBondLessArgsDecoder() {
|
|
955
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
956
|
-
}
|
|
957
|
-
MoonbeamCancelCandidateBondLessArgsDecoder.prototype._decode = function (_decoder) {
|
|
681
|
+
}
|
|
682
|
+
createToAirGapTransactionParts() {
|
|
683
|
+
return () => [];
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
class MoonbeamCancelCandidateBondLessArgsDecoder extends SubstrateTransactionMethodArgsDecoder {
|
|
687
|
+
_decode(_decoder) {
|
|
958
688
|
return {
|
|
959
689
|
bytesDecoded: 0,
|
|
960
690
|
decoded: {}
|
|
961
691
|
};
|
|
962
|
-
}
|
|
963
|
-
|
|
964
|
-
}(SubstrateTransactionMethodArgsDecoder));
|
|
692
|
+
}
|
|
693
|
+
}
|
|
965
694
|
//# sourceMappingURL=SubstrateTransactionMethodArgs.js.map
|