@airgap/tezos 0.13.7-beta.11
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/LICENSE.md +7 -0
- package/actions/GetKtAccountsAction.d.ts +8 -0
- package/actions/GetKtAccountsAction.js +85 -0
- package/actions/GetKtAccountsAction.js.map +1 -0
- package/airgap-coinlib-tezos.min.js +103587 -0
- package/constants.d.ts +18 -0
- package/constants.js +28 -0
- package/constants.js.map +1 -0
- package/index.d.ts +46 -0
- package/index.js +103 -0
- package/index.js.map +1 -0
- package/package.json +70 -0
- package/protocol/TezosAddress.d.ts +11 -0
- package/protocol/TezosAddress.js +102 -0
- package/protocol/TezosAddress.js.map +1 -0
- package/protocol/TezosCryptoClient.d.ts +15 -0
- package/protocol/TezosCryptoClient.js +152 -0
- package/protocol/TezosCryptoClient.js.map +1 -0
- package/protocol/TezosProtocol.d.ts +349 -0
- package/protocol/TezosProtocol.js +1853 -0
- package/protocol/TezosProtocol.js.map +1 -0
- package/protocol/TezosProtocolOptions.d.ts +29 -0
- package/protocol/TezosProtocolOptions.js +114 -0
- package/protocol/TezosProtocolOptions.js.map +1 -0
- package/protocol/TezosUtils.d.ts +40 -0
- package/protocol/TezosUtils.js +296 -0
- package/protocol/TezosUtils.js.map +1 -0
- package/protocol/contract/TezosContract.d.ts +52 -0
- package/protocol/contract/TezosContract.js +509 -0
- package/protocol/contract/TezosContract.js.map +1 -0
- package/protocol/contract/TezosContractCall.d.ts +10 -0
- package/protocol/contract/TezosContractCall.js +23 -0
- package/protocol/contract/TezosContractCall.js.map +1 -0
- package/protocol/contract/TezosContractEntrypoint.d.ts +8 -0
- package/protocol/contract/TezosContractEntrypoint.js +27 -0
- package/protocol/contract/TezosContractEntrypoint.js.map +1 -0
- package/protocol/contract/TezosContractStorage.d.ts +7 -0
- package/protocol/contract/TezosContractStorage.js +16 -0
- package/protocol/contract/TezosContractStorage.js.map +1 -0
- package/protocol/contract/remote-data/TezosContractRemoteDataFactory.d.ts +11 -0
- package/protocol/contract/remote-data/TezosContractRemoteDataFactory.js +34 -0
- package/protocol/contract/remote-data/TezosContractRemoteDataFactory.js.map +1 -0
- package/protocol/contract/remote-data/TezosStorageRemoteData.d.ts +12 -0
- package/protocol/contract/remote-data/TezosStorageRemoteData.js +151 -0
- package/protocol/contract/remote-data/TezosStorageRemoteData.js.map +1 -0
- package/protocol/domains/TezosDomains.d.ts +20 -0
- package/protocol/domains/TezosDomains.js +306 -0
- package/protocol/domains/TezosDomains.js.map +1 -0
- package/protocol/fa/TezosBTC.d.ts +12 -0
- package/protocol/fa/TezosBTC.js +107 -0
- package/protocol/fa/TezosBTC.js.map +1 -0
- package/protocol/fa/TezosBTCtez.d.ts +10 -0
- package/protocol/fa/TezosBTCtez.js +54 -0
- package/protocol/fa/TezosBTCtez.js.map +1 -0
- package/protocol/fa/TezosCTez.d.ts +10 -0
- package/protocol/fa/TezosCTez.js +51 -0
- package/protocol/fa/TezosCTez.js.map +1 -0
- package/protocol/fa/TezosDOGA.d.ts +10 -0
- package/protocol/fa/TezosDOGA.js +51 -0
- package/protocol/fa/TezosDOGA.js.map +1 -0
- package/protocol/fa/TezosETHtz.d.ts +9 -0
- package/protocol/fa/TezosETHtz.js +72 -0
- package/protocol/fa/TezosETHtz.js.map +1 -0
- package/protocol/fa/TezosFA1Protocol.d.ts +27 -0
- package/protocol/fa/TezosFA1Protocol.js +310 -0
- package/protocol/fa/TezosFA1Protocol.js.map +1 -0
- package/protocol/fa/TezosFA1p2Protocol.d.ts +8 -0
- package/protocol/fa/TezosFA1p2Protocol.js +117 -0
- package/protocol/fa/TezosFA1p2Protocol.js.map +1 -0
- package/protocol/fa/TezosFA2Protocol.d.ts +58 -0
- package/protocol/fa/TezosFA2Protocol.js +449 -0
- package/protocol/fa/TezosFA2Protocol.js.map +1 -0
- package/protocol/fa/TezosFAProtocol.d.ts +65 -0
- package/protocol/fa/TezosFAProtocol.js +510 -0
- package/protocol/fa/TezosFAProtocol.js.map +1 -0
- package/protocol/fa/TezosFAProtocolOptions.d.ts +54 -0
- package/protocol/fa/TezosFAProtocolOptions.js +228 -0
- package/protocol/fa/TezosFAProtocolOptions.js.map +1 -0
- package/protocol/fa/TezosKolibriUSD.d.ts +10 -0
- package/protocol/fa/TezosKolibriUSD.js +74 -0
- package/protocol/fa/TezosKolibriUSD.js.map +1 -0
- package/protocol/fa/TezosPlanty.d.ts +10 -0
- package/protocol/fa/TezosPlanty.js +51 -0
- package/protocol/fa/TezosPlanty.js.map +1 -0
- package/protocol/fa/TezosQUIPU.d.ts +10 -0
- package/protocol/fa/TezosQUIPU.js +54 -0
- package/protocol/fa/TezosQUIPU.js.map +1 -0
- package/protocol/fa/TezosSIRS.d.ts +10 -0
- package/protocol/fa/TezosSIRS.js +51 -0
- package/protocol/fa/TezosSIRS.js.map +1 -0
- package/protocol/fa/TezosStaker.d.ts +10 -0
- package/protocol/fa/TezosStaker.js +74 -0
- package/protocol/fa/TezosStaker.js.map +1 -0
- package/protocol/fa/TezosUBTC.d.ts +10 -0
- package/protocol/fa/TezosUBTC.js +54 -0
- package/protocol/fa/TezosUBTC.js.map +1 -0
- package/protocol/fa/TezosUDEFI.d.ts +10 -0
- package/protocol/fa/TezosUDEFI.js +54 -0
- package/protocol/fa/TezosUDEFI.js.map +1 -0
- package/protocol/fa/TezosUSD.d.ts +10 -0
- package/protocol/fa/TezosUSD.js +74 -0
- package/protocol/fa/TezosUSD.js.map +1 -0
- package/protocol/fa/TezosUSDT.d.ts +10 -0
- package/protocol/fa/TezosUSDT.js +54 -0
- package/protocol/fa/TezosUSDT.js.map +1 -0
- package/protocol/fa/TezosUUSD.d.ts +6 -0
- package/protocol/fa/TezosUUSD.js +31 -0
- package/protocol/fa/TezosUUSD.js.map +1 -0
- package/protocol/fa/TezosWRAP.d.ts +10 -0
- package/protocol/fa/TezosWRAP.js +54 -0
- package/protocol/fa/TezosWRAP.js.map +1 -0
- package/protocol/fa/TezosWrapped.d.ts +10 -0
- package/protocol/fa/TezosWrapped.js +74 -0
- package/protocol/fa/TezosWrapped.js.map +1 -0
- package/protocol/fa/TezosYOU.d.ts +6 -0
- package/protocol/fa/TezosYOU.js +31 -0
- package/protocol/fa/TezosYOU.js.map +1 -0
- package/protocol/indexerClient/TezosIndexerClient.d.ts +25 -0
- package/protocol/indexerClient/TezosIndexerClient.js +251 -0
- package/protocol/indexerClient/TezosIndexerClient.js.map +1 -0
- package/protocol/indexerClient/TezosProtocolIndexerClient.d.ts +26 -0
- package/protocol/indexerClient/TezosProtocolIndexerClient.js +3 -0
- package/protocol/indexerClient/TezosProtocolIndexerClient.js.map +1 -0
- package/protocol/kt/TezosKtAddress.d.ts +5 -0
- package/protocol/kt/TezosKtAddress.js +72 -0
- package/protocol/kt/TezosKtAddress.js.map +1 -0
- package/protocol/kt/TezosKtProtocol.d.ts +30 -0
- package/protocol/kt/TezosKtProtocol.js +317 -0
- package/protocol/kt/TezosKtProtocol.js.map +1 -0
- package/protocol/sapling/TezosSaplingAddress.d.ts +12 -0
- package/protocol/sapling/TezosSaplingAddress.js +134 -0
- package/protocol/sapling/TezosSaplingAddress.js.map +1 -0
- package/protocol/sapling/TezosSaplingCryptoClient.d.ts +34 -0
- package/protocol/sapling/TezosSaplingCryptoClient.js +241 -0
- package/protocol/sapling/TezosSaplingCryptoClient.js.map +1 -0
- package/protocol/sapling/TezosSaplingProtocol.d.ts +130 -0
- package/protocol/sapling/TezosSaplingProtocol.js +1101 -0
- package/protocol/sapling/TezosSaplingProtocol.js.map +1 -0
- package/protocol/sapling/TezosSaplingProtocolOptions.d.ts +43 -0
- package/protocol/sapling/TezosSaplingProtocolOptions.js +78 -0
- package/protocol/sapling/TezosSaplingProtocolOptions.js.map +1 -0
- package/protocol/sapling/TezosShieldedTezProtocol.d.ts +9 -0
- package/protocol/sapling/TezosShieldedTezProtocol.js +109 -0
- package/protocol/sapling/TezosShieldedTezProtocol.js.map +1 -0
- package/protocol/sapling/node/TezosSaplingNodeClient.d.ts +8 -0
- package/protocol/sapling/node/TezosSaplingNodeClient.js +78 -0
- package/protocol/sapling/node/TezosSaplingNodeClient.js.map +1 -0
- package/protocol/sapling/utils/TezosSaplingBookkeeper.d.ts +34 -0
- package/protocol/sapling/utils/TezosSaplingBookkeeper.js +586 -0
- package/protocol/sapling/utils/TezosSaplingBookkeeper.js.map +1 -0
- package/protocol/sapling/utils/TezosSaplingEncoder.d.ts +22 -0
- package/protocol/sapling/utils/TezosSaplingEncoder.js +158 -0
- package/protocol/sapling/utils/TezosSaplingEncoder.js.map +1 -0
- package/protocol/sapling/utils/TezosSaplingForger.d.ts +26 -0
- package/protocol/sapling/utils/TezosSaplingForger.js +278 -0
- package/protocol/sapling/utils/TezosSaplingForger.js.map +1 -0
- package/protocol/sapling/utils/TezosSaplingState.d.ts +17 -0
- package/protocol/sapling/utils/TezosSaplingState.js +260 -0
- package/protocol/sapling/utils/TezosSaplingState.js.map +1 -0
- package/protocol/types/TezosAddressCursor.d.ts +3 -0
- package/protocol/types/TezosAddressCursor.js +3 -0
- package/protocol/types/TezosAddressCursor.js.map +1 -0
- package/protocol/types/TezosAddressResult.d.ts +4 -0
- package/protocol/types/TezosAddressResult.js +3 -0
- package/protocol/types/TezosAddressResult.js.map +1 -0
- package/protocol/types/TezosBlockHeader.d.ts +13 -0
- package/protocol/types/TezosBlockHeader.js +3 -0
- package/protocol/types/TezosBlockHeader.js.map +1 -0
- package/protocol/types/TezosBlockMetadata.d.ts +7 -0
- package/protocol/types/TezosBlockMetadata.js +3 -0
- package/protocol/types/TezosBlockMetadata.js.map +1 -0
- package/protocol/types/TezosContractCode.d.ts +5 -0
- package/protocol/types/TezosContractCode.js +3 -0
- package/protocol/types/TezosContractCode.js.map +1 -0
- package/protocol/types/TezosOperationType.d.ts +13 -0
- package/protocol/types/TezosOperationType.js +18 -0
- package/protocol/types/TezosOperationType.js.map +1 -0
- package/protocol/types/TezosTransactionCursor.d.ts +3 -0
- package/protocol/types/TezosTransactionCursor.js +3 -0
- package/protocol/types/TezosTransactionCursor.js.map +1 -0
- package/protocol/types/TezosTransactionResult.d.ts +6 -0
- package/protocol/types/TezosTransactionResult.js +3 -0
- package/protocol/types/TezosTransactionResult.js.map +1 -0
- package/protocol/types/TezosWrappedOperation.d.ts +5 -0
- package/protocol/types/TezosWrappedOperation.js +3 -0
- package/protocol/types/TezosWrappedOperation.js.map +1 -0
- package/protocol/types/contract/BigMap.d.ts +7 -0
- package/protocol/types/contract/BigMap.js +3 -0
- package/protocol/types/contract/BigMap.js.map +1 -0
- package/protocol/types/contract/BigMapEnrtyFilter.d.ts +5 -0
- package/protocol/types/contract/BigMapEnrtyFilter.js +3 -0
- package/protocol/types/contract/BigMapEnrtyFilter.js.map +1 -0
- package/protocol/types/contract/BigMapEntry.d.ts +7 -0
- package/protocol/types/contract/BigMapEntry.js +3 -0
- package/protocol/types/contract/BigMapEntry.js.map +1 -0
- package/protocol/types/contract/BigMapRequest.d.ts +8 -0
- package/protocol/types/contract/BigMapRequest.js +3 -0
- package/protocol/types/contract/BigMapRequest.js.map +1 -0
- package/protocol/types/contract/TezosContractMetadata.d.ts +61 -0
- package/protocol/types/contract/TezosContractMetadata.js +3 -0
- package/protocol/types/contract/TezosContractMetadata.js.map +1 -0
- package/protocol/types/domains/TezosDomainsRecord.d.ts +8 -0
- package/protocol/types/domains/TezosDomainsRecord.js +3 -0
- package/protocol/types/domains/TezosDomainsRecord.js.map +1 -0
- package/protocol/types/domains/TezosDomainsReverseRecord.d.ts +5 -0
- package/protocol/types/domains/TezosDomainsReverseRecord.js +3 -0
- package/protocol/types/domains/TezosDomainsReverseRecord.js.map +1 -0
- package/protocol/types/fa/TezosFA2BalanceOfRequest.d.ts +4 -0
- package/protocol/types/fa/TezosFA2BalanceOfRequest.js +3 -0
- package/protocol/types/fa/TezosFA2BalanceOfRequest.js.map +1 -0
- package/protocol/types/fa/TezosFA2BalanceOfResponse.d.ts +5 -0
- package/protocol/types/fa/TezosFA2BalanceOfResponse.js +3 -0
- package/protocol/types/fa/TezosFA2BalanceOfResponse.js.map +1 -0
- package/protocol/types/fa/TezosFA2TransferRequest.d.ts +8 -0
- package/protocol/types/fa/TezosFA2TransferRequest.js +3 -0
- package/protocol/types/fa/TezosFA2TransferRequest.js.map +1 -0
- package/protocol/types/fa/TezosFA2UpdateOperatorRequest.d.ts +6 -0
- package/protocol/types/fa/TezosFA2UpdateOperatorRequest.js +3 -0
- package/protocol/types/fa/TezosFA2UpdateOperatorRequest.js.map +1 -0
- package/protocol/types/fa/TezosFATokenMetadata.d.ts +6 -0
- package/protocol/types/fa/TezosFATokenMetadata.js +3 -0
- package/protocol/types/fa/TezosFATokenMetadata.js.map +1 -0
- package/protocol/types/kt/TezosKtAddressCursor.d.ts +4 -0
- package/protocol/types/kt/TezosKtAddressCursor.js +3 -0
- package/protocol/types/kt/TezosKtAddressCursor.js.map +1 -0
- package/protocol/types/kt/TezosKtAddressResult.d.ts +5 -0
- package/protocol/types/kt/TezosKtAddressResult.js +3 -0
- package/protocol/types/kt/TezosKtAddressResult.js.map +1 -0
- package/protocol/types/micheline/MichelineNode.d.ts +15 -0
- package/protocol/types/micheline/MichelineNode.js +5 -0
- package/protocol/types/micheline/MichelineNode.js.map +1 -0
- package/protocol/types/micheline/MichelineNodeUtils.d.ts +6 -0
- package/protocol/types/micheline/MichelineNodeUtils.js +40 -0
- package/protocol/types/micheline/MichelineNodeUtils.js.map +1 -0
- package/protocol/types/michelson/MichelsonType.d.ts +11 -0
- package/protocol/types/michelson/MichelsonType.js +22 -0
- package/protocol/types/michelson/MichelsonType.js.map +1 -0
- package/protocol/types/michelson/MichelsonTypeMeta.d.ts +33 -0
- package/protocol/types/michelson/MichelsonTypeMeta.js +132 -0
- package/protocol/types/michelson/MichelsonTypeMeta.js.map +1 -0
- package/protocol/types/michelson/MichelsonTypeUtils.d.ts +19 -0
- package/protocol/types/michelson/MichelsonTypeUtils.js +249 -0
- package/protocol/types/michelson/MichelsonTypeUtils.js.map +1 -0
- package/protocol/types/michelson/generics/MichelsonList.d.ts +11 -0
- package/protocol/types/michelson/generics/MichelsonList.js +68 -0
- package/protocol/types/michelson/generics/MichelsonList.js.map +1 -0
- package/protocol/types/michelson/generics/MichelsonMap.d.ts +14 -0
- package/protocol/types/michelson/generics/MichelsonMap.js +118 -0
- package/protocol/types/michelson/generics/MichelsonMap.js.map +1 -0
- package/protocol/types/michelson/generics/MichelsonOption.d.ts +25 -0
- package/protocol/types/michelson/generics/MichelsonOption.js +119 -0
- package/protocol/types/michelson/generics/MichelsonOption.js.map +1 -0
- package/protocol/types/michelson/generics/MichelsonOr.d.ts +25 -0
- package/protocol/types/michelson/generics/MichelsonOr.js +132 -0
- package/protocol/types/michelson/generics/MichelsonOr.js.map +1 -0
- package/protocol/types/michelson/generics/MichelsonPair.d.ts +17 -0
- package/protocol/types/michelson/generics/MichelsonPair.js +135 -0
- package/protocol/types/michelson/generics/MichelsonPair.js.map +1 -0
- package/protocol/types/michelson/grammar/MichelsonGrammarData.d.ts +2 -0
- package/protocol/types/michelson/grammar/MichelsonGrammarData.js +4 -0
- package/protocol/types/michelson/grammar/MichelsonGrammarData.js.map +1 -0
- package/protocol/types/michelson/grammar/MichelsonGrammarInstruction.d.ts +1 -0
- package/protocol/types/michelson/grammar/MichelsonGrammarInstruction.js +4 -0
- package/protocol/types/michelson/grammar/MichelsonGrammarInstruction.js.map +1 -0
- package/protocol/types/michelson/grammar/MichelsonGrammarType.d.ts +1 -0
- package/protocol/types/michelson/grammar/MichelsonGrammarType.js +4 -0
- package/protocol/types/michelson/grammar/MichelsonGrammarType.js.map +1 -0
- package/protocol/types/michelson/primitives/MichelsonAddress.d.ts +15 -0
- package/protocol/types/michelson/primitives/MichelsonAddress.js +72 -0
- package/protocol/types/michelson/primitives/MichelsonAddress.js.map +1 -0
- package/protocol/types/michelson/primitives/MichelsonBool.d.ts +12 -0
- package/protocol/types/michelson/primitives/MichelsonBool.js +57 -0
- package/protocol/types/michelson/primitives/MichelsonBool.js.map +1 -0
- package/protocol/types/michelson/primitives/MichelsonBytes.d.ts +14 -0
- package/protocol/types/michelson/primitives/MichelsonBytes.js +75 -0
- package/protocol/types/michelson/primitives/MichelsonBytes.js.map +1 -0
- package/protocol/types/michelson/primitives/MichelsonInt.d.ts +14 -0
- package/protocol/types/michelson/primitives/MichelsonInt.js +72 -0
- package/protocol/types/michelson/primitives/MichelsonInt.js.map +1 -0
- package/protocol/types/michelson/primitives/MichelsonString.d.ts +14 -0
- package/protocol/types/michelson/primitives/MichelsonString.js +74 -0
- package/protocol/types/michelson/primitives/MichelsonString.js.map +1 -0
- package/protocol/types/michelson/primitives/MichelsonUnit.d.ts +9 -0
- package/protocol/types/michelson/primitives/MichelsonUnit.js +53 -0
- package/protocol/types/michelson/primitives/MichelsonUnit.js.map +1 -0
- package/protocol/types/operations/ActivateAccount.d.ts +7 -0
- package/protocol/types/operations/ActivateAccount.js +3 -0
- package/protocol/types/operations/ActivateAccount.js.map +1 -0
- package/protocol/types/operations/Ballot.d.ts +9 -0
- package/protocol/types/operations/Ballot.js +3 -0
- package/protocol/types/operations/Ballot.js.map +1 -0
- package/protocol/types/operations/Delegation.d.ts +11 -0
- package/protocol/types/operations/Delegation.js +3 -0
- package/protocol/types/operations/Delegation.js.map +1 -0
- package/protocol/types/operations/DoubleBakingEvidence.d.ts +8 -0
- package/protocol/types/operations/DoubleBakingEvidence.js +3 -0
- package/protocol/types/operations/DoubleBakingEvidence.js.map +1 -0
- package/protocol/types/operations/DoubleEndorsementEvidence.d.ts +16 -0
- package/protocol/types/operations/DoubleEndorsementEvidence.js +3 -0
- package/protocol/types/operations/DoubleEndorsementEvidence.js.map +1 -0
- package/protocol/types/operations/Endorsement.d.ts +6 -0
- package/protocol/types/operations/Endorsement.js +3 -0
- package/protocol/types/operations/Endorsement.js.map +1 -0
- package/protocol/types/operations/Origination.d.ts +13 -0
- package/protocol/types/operations/Origination.js +3 -0
- package/protocol/types/operations/Origination.js.map +1 -0
- package/protocol/types/operations/Proposal.d.ts +7 -0
- package/protocol/types/operations/Proposal.js +3 -0
- package/protocol/types/operations/Proposal.js.map +1 -0
- package/protocol/types/operations/Reveal.d.ts +11 -0
- package/protocol/types/operations/Reveal.js +3 -0
- package/protocol/types/operations/Reveal.js.map +1 -0
- package/protocol/types/operations/SeedNonceRevelation.d.ts +7 -0
- package/protocol/types/operations/SeedNonceRevelation.js +3 -0
- package/protocol/types/operations/SeedNonceRevelation.js.map +1 -0
- package/protocol/types/operations/TezosOperation.d.ts +4 -0
- package/protocol/types/operations/TezosOperation.js +3 -0
- package/protocol/types/operations/TezosOperation.js.map +1 -0
- package/protocol/types/operations/Transaction.d.ts +23 -0
- package/protocol/types/operations/Transaction.js +3 -0
- package/protocol/types/operations/Transaction.js.map +1 -0
- package/protocol/types/sapling/TezosSaplingAddressCursor.d.ts +4 -0
- package/protocol/types/sapling/TezosSaplingAddressCursor.js +3 -0
- package/protocol/types/sapling/TezosSaplingAddressCursor.js.map +1 -0
- package/protocol/types/sapling/TezosSaplingAddressResult.d.ts +4 -0
- package/protocol/types/sapling/TezosSaplingAddressResult.js +3 -0
- package/protocol/types/sapling/TezosSaplingAddressResult.js.map +1 -0
- package/protocol/types/sapling/TezosSaplingCiphertext.d.ts +8 -0
- package/protocol/types/sapling/TezosSaplingCiphertext.js +3 -0
- package/protocol/types/sapling/TezosSaplingCiphertext.js.map +1 -0
- package/protocol/types/sapling/TezosSaplingInput.d.ts +6 -0
- package/protocol/types/sapling/TezosSaplingInput.js +3 -0
- package/protocol/types/sapling/TezosSaplingInput.js.map +1 -0
- package/protocol/types/sapling/TezosSaplingOutput.d.ts +6 -0
- package/protocol/types/sapling/TezosSaplingOutput.js +3 -0
- package/protocol/types/sapling/TezosSaplingOutput.js.map +1 -0
- package/protocol/types/sapling/TezosSaplingStateDiff.d.ts +6 -0
- package/protocol/types/sapling/TezosSaplingStateDiff.js +3 -0
- package/protocol/types/sapling/TezosSaplingStateDiff.js.map +1 -0
- package/protocol/types/sapling/TezosSaplingStateTree.d.ts +7 -0
- package/protocol/types/sapling/TezosSaplingStateTree.js +3 -0
- package/protocol/types/sapling/TezosSaplingStateTree.js.map +1 -0
- package/protocol/types/sapling/TezosSaplingTransaction.d.ts +23 -0
- package/protocol/types/sapling/TezosSaplingTransaction.js +3 -0
- package/protocol/types/sapling/TezosSaplingTransaction.js.map +1 -0
- package/protocol/types/sapling/TezosSaplingTransactionCursor.d.ts +3 -0
- package/protocol/types/sapling/TezosSaplingTransactionCursor.js +3 -0
- package/protocol/types/sapling/TezosSaplingTransactionCursor.js.map +1 -0
- package/protocol/types/sapling/TezosSaplingTransactionResult.d.ts +6 -0
- package/protocol/types/sapling/TezosSaplingTransactionResult.js +3 -0
- package/protocol/types/sapling/TezosSaplingTransactionResult.js.map +1 -0
- package/protocol/types/utils.d.ts +8 -0
- package/protocol/types/utils.js +41 -0
- package/protocol/types/utils.js.map +1 -0
- package/readme.md +121 -0
- package/types/signed-transaction-tezos-sapling.d.ts +3 -0
- package/types/signed-transaction-tezos-sapling.js +3 -0
- package/types/signed-transaction-tezos-sapling.js.map +1 -0
- package/types/signed-transaction-tezos.d.ts +5 -0
- package/types/signed-transaction-tezos.js +3 -0
- package/types/signed-transaction-tezos.js.map +1 -0
- package/types/transaction-tezos.d.ts +14 -0
- package/types/transaction-tezos.js +3 -0
- package/types/transaction-tezos.js.map +1 -0
- package/types/unsigned-transaction-tezos-sapling.d.ts +38 -0
- package/types/unsigned-transaction-tezos-sapling.js +3 -0
- package/types/unsigned-transaction-tezos-sapling.js.map +1 -0
- package/types/unsigned-transaction-tezos.d.ts +8 -0
- package/types/unsigned-transaction-tezos.js +3 -0
- package/types/unsigned-transaction-tezos.js.map +1 -0
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
extendStatics(d, b);
|
|
11
|
+
function __() { this.constructor = d; }
|
|
12
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
+
};
|
|
14
|
+
})();
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.MichelsonBytes = void 0;
|
|
17
|
+
var errors_1 = require("@airgap/coinlib-core/errors");
|
|
18
|
+
var coinlib_error_1 = require("@airgap/coinlib-core/errors/coinlib-error");
|
|
19
|
+
var error_1 = require("@airgap/coinlib-core/utils/error");
|
|
20
|
+
var hex_1 = require("@airgap/coinlib-core/utils/hex");
|
|
21
|
+
var utils_1 = require("../../utils");
|
|
22
|
+
var MichelsonType_1 = require("../MichelsonType");
|
|
23
|
+
var MichelsonTypeUtils_1 = require("../MichelsonTypeUtils");
|
|
24
|
+
var MichelsonBytes = /** @class */ (function (_super) {
|
|
25
|
+
__extends(MichelsonBytes, _super);
|
|
26
|
+
function MichelsonBytes(value, name) {
|
|
27
|
+
var _this = _super.call(this, name) || this;
|
|
28
|
+
_this.value = hex_1.hexToBytes(value);
|
|
29
|
+
return _this;
|
|
30
|
+
}
|
|
31
|
+
MichelsonBytes.from = function (value, name) {
|
|
32
|
+
return utils_1.isMichelinePrimitive('bytes', value) ? MichelsonBytes.fromMicheline(value, name) : MichelsonBytes.fromUnknown(value, name);
|
|
33
|
+
};
|
|
34
|
+
MichelsonBytes.fromMicheline = function (micheline, name) {
|
|
35
|
+
return MichelsonBytes.fromUnknown(micheline.bytes, name);
|
|
36
|
+
};
|
|
37
|
+
MichelsonBytes.fromUnknown = function (unknownValue, name) {
|
|
38
|
+
if (unknownValue instanceof MichelsonBytes) {
|
|
39
|
+
return unknownValue;
|
|
40
|
+
}
|
|
41
|
+
if (typeof unknownValue !== 'string' && !Buffer.isBuffer(unknownValue)) {
|
|
42
|
+
throw error_1.invalidArgumentTypeError('MichelsonBytes', 'string or Buffer', typeof unknownValue + ": " + unknownValue);
|
|
43
|
+
}
|
|
44
|
+
return new MichelsonBytes(unknownValue, name);
|
|
45
|
+
};
|
|
46
|
+
MichelsonBytes.decode = function (bytes) {
|
|
47
|
+
var prefix = bytes.slice(0, MichelsonTypeUtils_1.MichelsonTypeUtils.literalPrefixes.bytes.length);
|
|
48
|
+
if (!prefix.equals(MichelsonTypeUtils_1.MichelsonTypeUtils.literalPrefixes.bytes)) {
|
|
49
|
+
throw new errors_1.ConditionViolationError(coinlib_error_1.Domain.TEZOS, 'Invalid encoded MichelsonBytes.');
|
|
50
|
+
}
|
|
51
|
+
var length = bytes.readInt32BE(prefix.length);
|
|
52
|
+
var valueStart = prefix.length + 4;
|
|
53
|
+
var valueEnd = valueStart + length;
|
|
54
|
+
var value = bytes.slice(valueStart, valueEnd);
|
|
55
|
+
return new MichelsonBytes(value);
|
|
56
|
+
};
|
|
57
|
+
MichelsonBytes.prototype.encode = function () {
|
|
58
|
+
var length = Buffer.alloc(4);
|
|
59
|
+
length.writeInt32BE(this.value.length);
|
|
60
|
+
return Buffer.concat([MichelsonTypeUtils_1.MichelsonTypeUtils.literalPrefixes.bytes, length, this.value]);
|
|
61
|
+
};
|
|
62
|
+
MichelsonBytes.prototype.asRawValue = function () {
|
|
63
|
+
var _a;
|
|
64
|
+
var value = hex_1.bytesToHex(this.value);
|
|
65
|
+
return this.name ? (_a = {}, _a[this.name] = value, _a) : value;
|
|
66
|
+
};
|
|
67
|
+
MichelsonBytes.prototype.toMichelineJSON = function () {
|
|
68
|
+
return {
|
|
69
|
+
bytes: hex_1.bytesToHex(this.value)
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
return MichelsonBytes;
|
|
73
|
+
}(MichelsonType_1.MichelsonType));
|
|
74
|
+
exports.MichelsonBytes = MichelsonBytes;
|
|
75
|
+
//# sourceMappingURL=MichelsonBytes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MichelsonBytes.js","sourceRoot":"","sources":["../../../../../src/protocol/types/michelson/primitives/MichelsonBytes.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAqE;AACrE,2EAAkE;AAClE,0DAA2E;AAC3E,sDAAuE;AAGvE,qCAAkD;AAClD,kDAAgD;AAChD,4DAA0D;AAE1D;IAAoC,kCAAa;IAG/C,wBAAY,KAAsB,EAAE,IAAa;QAAjD,YACE,kBAAM,IAAI,CAAC,SAEZ;QADC,KAAI,CAAC,KAAK,GAAG,gBAAU,CAAC,KAAK,CAAC,CAAA;;IAChC,CAAC;IAEa,mBAAI,GAAlB,UAAmB,KAAc,EAAE,IAAa;QAC9C,OAAO,4BAAoB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,aAAa,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,WAAW,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;IACnI,CAAC;IAEa,4BAAa,GAA3B,UAA4B,SAAsC,EAAE,IAAa;QAC/E,OAAO,cAAc,CAAC,WAAW,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;IAC1D,CAAC;IAEa,0BAAW,GAAzB,UAA0B,YAAqB,EAAE,IAAa;QAC5D,IAAI,YAAY,YAAY,cAAc,EAAE;YAC1C,OAAO,YAAY,CAAA;SACpB;QAED,IAAI,OAAO,YAAY,KAAK,QAAQ,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE;YACtE,MAAM,gCAAwB,CAAC,gBAAgB,EAAE,kBAAkB,EAAK,OAAO,YAAY,UAAK,YAAc,CAAC,CAAA;SAChH;QAED,OAAO,IAAI,cAAc,CAAC,YAAY,EAAE,IAAI,CAAC,CAAA;IAC/C,CAAC;I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AAC,KAAK,CAAC;SAC9B,CAAA;IACH,CAAC;IACH,qBAAC;AAAD,CAAC,AA5DD,CAAoC,6BAAa,GA4DhD;AA5DY,wCAAc"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import BigNumber from '@airgap/coinlib-core/dependencies/src/bignumber.js-9.0.0/bignumber';
|
|
3
|
+
import { MichelineDataNode, MichelinePrimitive } from '../../micheline/MichelineNode';
|
|
4
|
+
import { MichelsonType } from '../MichelsonType';
|
|
5
|
+
export declare class MichelsonInt extends MichelsonType {
|
|
6
|
+
readonly value: BigNumber;
|
|
7
|
+
constructor(value: number | string | BigNumber, name?: string);
|
|
8
|
+
static from(value: unknown, name?: string): MichelsonInt;
|
|
9
|
+
static fromMicheline(micheline: MichelinePrimitive<'int'>, name?: string): MichelsonInt;
|
|
10
|
+
static fromUnknown(unknownValue: unknown, name?: string): MichelsonInt;
|
|
11
|
+
encode(): Buffer;
|
|
12
|
+
asRawValue(): Record<string, BigNumber> | BigNumber;
|
|
13
|
+
toMichelineJSON(): MichelineDataNode;
|
|
14
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
extendStatics(d, b);
|
|
11
|
+
function __() { this.constructor = d; }
|
|
12
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
+
};
|
|
14
|
+
})();
|
|
15
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.MichelsonInt = void 0;
|
|
20
|
+
var bigInt = require("@airgap/coinlib-core/dependencies/src/big-integer-1.6.45/BigInteger");
|
|
21
|
+
var bignumber_1 = __importDefault(require("@airgap/coinlib-core/dependencies/src/bignumber.js-9.0.0/bignumber"));
|
|
22
|
+
var error_1 = require("@airgap/coinlib-core/utils/error");
|
|
23
|
+
var utils_1 = require("../../utils");
|
|
24
|
+
var MichelsonType_1 = require("../MichelsonType");
|
|
25
|
+
var MichelsonTypeUtils_1 = require("../MichelsonTypeUtils");
|
|
26
|
+
var MichelsonInt = /** @class */ (function (_super) {
|
|
27
|
+
__extends(MichelsonInt, _super);
|
|
28
|
+
function MichelsonInt(value, name) {
|
|
29
|
+
var _this = _super.call(this, name) || this;
|
|
30
|
+
_this.value = bignumber_1.default.isBigNumber(value) ? value : new bignumber_1.default(value);
|
|
31
|
+
return _this;
|
|
32
|
+
}
|
|
33
|
+
MichelsonInt.from = function (value, name) {
|
|
34
|
+
return utils_1.isMichelinePrimitive('int', value) ? MichelsonInt.fromMicheline(value, name) : MichelsonInt.fromUnknown(value, name);
|
|
35
|
+
};
|
|
36
|
+
MichelsonInt.fromMicheline = function (micheline, name) {
|
|
37
|
+
return MichelsonInt.fromUnknown(parseInt(micheline.int, 10), name);
|
|
38
|
+
};
|
|
39
|
+
MichelsonInt.fromUnknown = function (unknownValue, name) {
|
|
40
|
+
if (unknownValue instanceof MichelsonInt) {
|
|
41
|
+
return unknownValue;
|
|
42
|
+
}
|
|
43
|
+
if (typeof unknownValue !== 'number' && typeof unknownValue !== 'string' && !bignumber_1.default.isBigNumber(unknownValue)) {
|
|
44
|
+
throw error_1.invalidArgumentTypeError('MichelsonInt', 'number or string or BigNumber', typeof unknownValue);
|
|
45
|
+
}
|
|
46
|
+
return new MichelsonInt(bignumber_1.default.isBigNumber(unknownValue) ? unknownValue : new bignumber_1.default(unknownValue), name);
|
|
47
|
+
};
|
|
48
|
+
MichelsonInt.prototype.encode = function () {
|
|
49
|
+
var absValue = bigInt(this.value.integerValue().abs().toString());
|
|
50
|
+
var u8Numbers = [];
|
|
51
|
+
u8Numbers.push(absValue.and(63).or(this.value.lt(0) ? 192 : 128));
|
|
52
|
+
absValue = absValue.shiftRight(6);
|
|
53
|
+
while (absValue.gt(0)) {
|
|
54
|
+
u8Numbers.push(absValue.and(127).or(128));
|
|
55
|
+
absValue = absValue.shiftRight(7);
|
|
56
|
+
}
|
|
57
|
+
u8Numbers[u8Numbers.length - 1] = u8Numbers[u8Numbers.length - 1].and(127);
|
|
58
|
+
return u8Numbers.reduce(function (bytes, next) { return Buffer.concat([bytes, Buffer.from(new Uint8Array([next.toJSNumber()]))]); }, MichelsonTypeUtils_1.MichelsonTypeUtils.literalPrefixes.int);
|
|
59
|
+
};
|
|
60
|
+
MichelsonInt.prototype.asRawValue = function () {
|
|
61
|
+
var _a;
|
|
62
|
+
return this.name ? (_a = {}, _a[this.name] = this.value, _a) : this.value;
|
|
63
|
+
};
|
|
64
|
+
MichelsonInt.prototype.toMichelineJSON = function () {
|
|
65
|
+
return {
|
|
66
|
+
int: this.value.toString()
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
return MichelsonInt;
|
|
70
|
+
}(MichelsonType_1.MichelsonType));
|
|
71
|
+
exports.MichelsonInt = MichelsonInt;
|
|
72
|
+
//# sourceMappingURL=MichelsonInt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MichelsonInt.js","sourceRoot":"","sources":["../../../../../src/protocol/types/michelson/primitives/MichelsonInt.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,4FAA8F;AAC9F,iHAA0F;AAC1F,0DAA2E;AAG3E,qCAAkD;AAClD,kDAAgD;AAChD,4DAA0D;AAE1D;IAAkC,gCAAa;IAG7C,sBAAY,KAAkC,EAAE,IAA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K,CAAC,QAAQ,EAAE;SAC3B,CAAA;IACH,CAAC;IACH,mBAAC;AAAD,CAAC,AAzDD,CAAkC,6BAAa,GAyD9C;AAzDY,oCAAY"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { MichelineDataNode, MichelinePrimitive } from '../../micheline/MichelineNode';
|
|
3
|
+
import { MichelsonType } from '../MichelsonType';
|
|
4
|
+
export declare class MichelsonString extends MichelsonType {
|
|
5
|
+
readonly value: string;
|
|
6
|
+
constructor(value: string, name?: string);
|
|
7
|
+
static from(value: unknown, name?: string): MichelsonString;
|
|
8
|
+
static fromMicheline(micheline: MichelinePrimitive<'string'>, name?: string): MichelsonString;
|
|
9
|
+
static fromUnknown(unknownValue: unknown, name?: string): MichelsonString;
|
|
10
|
+
static decode(bytes: Buffer): MichelsonString;
|
|
11
|
+
encode(): Buffer;
|
|
12
|
+
asRawValue(): Record<string, string> | string;
|
|
13
|
+
toMichelineJSON(): MichelineDataNode;
|
|
14
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
extendStatics(d, b);
|
|
11
|
+
function __() { this.constructor = d; }
|
|
12
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
+
};
|
|
14
|
+
})();
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.MichelsonString = void 0;
|
|
17
|
+
var errors_1 = require("@airgap/coinlib-core/errors");
|
|
18
|
+
var coinlib_error_1 = require("@airgap/coinlib-core/errors/coinlib-error");
|
|
19
|
+
var error_1 = require("@airgap/coinlib-core/utils/error");
|
|
20
|
+
var utils_1 = require("../../utils");
|
|
21
|
+
var MichelsonType_1 = require("../MichelsonType");
|
|
22
|
+
var MichelsonTypeUtils_1 = require("../MichelsonTypeUtils");
|
|
23
|
+
var MichelsonString = /** @class */ (function (_super) {
|
|
24
|
+
__extends(MichelsonString, _super);
|
|
25
|
+
function MichelsonString(value, name) {
|
|
26
|
+
var _this = _super.call(this, name) || this;
|
|
27
|
+
_this.value = value;
|
|
28
|
+
return _this;
|
|
29
|
+
}
|
|
30
|
+
MichelsonString.from = function (value, name) {
|
|
31
|
+
return utils_1.isMichelinePrimitive('string', value) ? MichelsonString.fromMicheline(value, name) : MichelsonString.fromUnknown(value, name);
|
|
32
|
+
};
|
|
33
|
+
MichelsonString.fromMicheline = function (micheline, name) {
|
|
34
|
+
return MichelsonString.fromUnknown(micheline.string, name);
|
|
35
|
+
};
|
|
36
|
+
MichelsonString.fromUnknown = function (unknownValue, name) {
|
|
37
|
+
if (unknownValue instanceof MichelsonString) {
|
|
38
|
+
return unknownValue;
|
|
39
|
+
}
|
|
40
|
+
if (typeof unknownValue !== 'string') {
|
|
41
|
+
throw error_1.invalidArgumentTypeError('MichelsonString', 'string', typeof unknownValue);
|
|
42
|
+
}
|
|
43
|
+
return new MichelsonString(unknownValue, name);
|
|
44
|
+
};
|
|
45
|
+
MichelsonString.decode = function (bytes) {
|
|
46
|
+
var prefix = bytes.slice(0, MichelsonTypeUtils_1.MichelsonTypeUtils.literalPrefixes.string.length);
|
|
47
|
+
if (!prefix.equals(MichelsonTypeUtils_1.MichelsonTypeUtils.literalPrefixes.string)) {
|
|
48
|
+
throw new errors_1.ConditionViolationError(coinlib_error_1.Domain.TEZOS, 'Invalid encoded MichelsonString.');
|
|
49
|
+
}
|
|
50
|
+
var length = bytes.readInt32BE(prefix.length);
|
|
51
|
+
var valueStart = prefix.length + 4;
|
|
52
|
+
var valueEnd = valueStart + length;
|
|
53
|
+
var value = bytes.slice(valueStart, valueEnd).toString();
|
|
54
|
+
return new MichelsonString(value);
|
|
55
|
+
};
|
|
56
|
+
MichelsonString.prototype.encode = function () {
|
|
57
|
+
var bytes = Buffer.from(this.value);
|
|
58
|
+
var length = Buffer.alloc(4);
|
|
59
|
+
length.writeInt32BE(bytes.length);
|
|
60
|
+
return Buffer.concat([MichelsonTypeUtils_1.MichelsonTypeUtils.literalPrefixes.string, length, bytes]);
|
|
61
|
+
};
|
|
62
|
+
MichelsonString.prototype.asRawValue = function () {
|
|
63
|
+
var _a;
|
|
64
|
+
return this.name ? (_a = {}, _a[this.name] = this.value, _a) : this.value;
|
|
65
|
+
};
|
|
66
|
+
MichelsonString.prototype.toMichelineJSON = function () {
|
|
67
|
+
return {
|
|
68
|
+
string: this.value
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
return MichelsonString;
|
|
72
|
+
}(MichelsonType_1.MichelsonType));
|
|
73
|
+
exports.MichelsonString = MichelsonString;
|
|
74
|
+
//# sourceMappingURL=MichelsonString.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MichelsonString.js","sourceRoot":"","sources":["../../../../../src/protocol/types/michelson/primitives/MichelsonString.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAqE;AACrE,2EAAkE;AAClE,0DAA2E;AAG3E,qCAAkD;AAClD,kDAAgD;AAChD,4DAA0D;AAE1D;IAAqC,mCAAa;IAChD,yBAA4B,KAAa,EAAE,IAAa;QAAxD,YACE,kBAAM,IAAI,CAAC,SACZ;QAF2B,WAAK,GAAL,KAAK,CAAQ;;IAEzC,CAAC;IAEa,oBAAI,GAAlB,UAAmB,KAAc,EAAE,IAAa;QAC9C,OAAO,4BAAoB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,aAAa,CAAC,KAAK,EAAE,IAA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QACE,IAAM,KAAK,GAAW,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAC7C,IAAM,MAAM,GAAW,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;QACtC,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;QAEjC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,uCAAkB,CAAC,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC,CAAA;IAClF,CAAC;IAEM,oCAAU,GAAjB;;QACE,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,WAAG,GAAC,IAAI,CAAC,IAAI,IAAG,IAAI,CAAC,KAAK,MAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAA;IAC7D,CAAC;IAEM,yCAAe,GAAtB;QACE,OAAO;YACL,MAAM,EAAE,IAAI,CAAC,KAAK;SACnB,CAAA;IACH,CAAC;IACH,sBAAC;AAAD,CAAC,AAxDD,CAAqC,6BAAa,GAwDjD;AAxDY,0CAAe"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MichelineDataNode, MichelinePrimitiveApplication } from '../../micheline/MichelineNode';
|
|
2
|
+
import { MichelsonGrammarData } from '../grammar/MichelsonGrammarData';
|
|
3
|
+
import { MichelsonType } from '../MichelsonType';
|
|
4
|
+
export declare class MichelsonUnit extends MichelsonType {
|
|
5
|
+
static from(value: unknown, name?: string): MichelsonUnit;
|
|
6
|
+
static fromMicheline(micheline: MichelinePrimitiveApplication<MichelsonGrammarData>, name?: string): MichelsonUnit;
|
|
7
|
+
asRawValue(): any;
|
|
8
|
+
toMichelineJSON(): MichelineDataNode;
|
|
9
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
extendStatics(d, b);
|
|
11
|
+
function __() { this.constructor = d; }
|
|
12
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
+
};
|
|
14
|
+
})();
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.MichelsonUnit = void 0;
|
|
17
|
+
var error_1 = require("@airgap/coinlib-core/utils/error");
|
|
18
|
+
var utils_1 = require("../../utils");
|
|
19
|
+
var MichelsonType_1 = require("../MichelsonType");
|
|
20
|
+
var MichelsonUnit = /** @class */ (function (_super) {
|
|
21
|
+
__extends(MichelsonUnit, _super);
|
|
22
|
+
function MichelsonUnit() {
|
|
23
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
24
|
+
}
|
|
25
|
+
MichelsonUnit.from = function (value, name) {
|
|
26
|
+
if (value instanceof MichelsonUnit) {
|
|
27
|
+
return value;
|
|
28
|
+
}
|
|
29
|
+
else if (utils_1.isAnyMichelinePrimitiveApplication(value)) {
|
|
30
|
+
return MichelsonUnit.fromMicheline(value, name);
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
return new MichelsonUnit();
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
MichelsonUnit.fromMicheline = function (micheline, name) {
|
|
37
|
+
if (micheline.prim !== 'Unit') {
|
|
38
|
+
throw error_1.invalidArgumentTypeError('MichelsonUnit', 'prim: Unit', "prim: " + micheline.prim);
|
|
39
|
+
}
|
|
40
|
+
return new MichelsonUnit(name);
|
|
41
|
+
};
|
|
42
|
+
MichelsonUnit.prototype.asRawValue = function () {
|
|
43
|
+
return undefined;
|
|
44
|
+
};
|
|
45
|
+
MichelsonUnit.prototype.toMichelineJSON = function () {
|
|
46
|
+
return {
|
|
47
|
+
prim: 'Unit'
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
return MichelsonUnit;
|
|
51
|
+
}(MichelsonType_1.MichelsonType));
|
|
52
|
+
exports.MichelsonUnit = MichelsonUnit;
|
|
53
|
+
//# sourceMappingURL=MichelsonUnit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MichelsonUnit.js","sourceRoot":"","sources":["../../../../../src/protocol/types/michelson/primitives/MichelsonUnit.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAA2E;AAG3E,qCAAgE;AAEhE,kDAAgD;AAEhD;IAAmC,iCAAa;IAAhD;;IA4BA,CAAC;IA3Be,kBAAI,GAAlB,UAAmB,KAAc,EAAE,IAAa;QAC9C,IAAI,KAAK,YAAY,aAAa,EAAE;YAClC,OAAO,KAAK,CAAA;SACb;aAAM,IAAI,0CAAkC,CAAC,KAAK,CAAC,EAAE;YACpD,OAAO,aAAa,CAAC,aAAa,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;SAChD;aAAM;YACL,OAAO,IAAI,aAAa,EAAE,CAAA;SAC3B;IACH,CAAC;IAEa,2BAAa,GAA3B,UAA4B,SAA8D,EAAE,IAAa;QACvG,IAAI,SAAS,CAAC,IAAI,KAAK,MAAM,EAAE;YAC7B,MAAM,gCAAwB,CAAC,eAAe,EAAE,YAAY,EAAE,WAAS,SAAS,CAAC,IAAM,CAAC,CAAA;SACzF;QAED,OAAO,IAAI,aAAa,CAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAEM,kCAAU,GAAjB;QACE,OAAO,SAAS,CAAA;IAClB,CAAC;IAEM,uCAAe,GAAtB;QACE,OAAO;YACL,IAAI,EAAE,MAAM;SACb,CAAA;IACH,CAAC;IACH,oBAAC;AAAD,CAAC,AA5BD,CAAmC,6BAAa,GA4B/C;AA5BY,sCAAa"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TezosOperationType } from '../TezosOperationType';
|
|
2
|
+
import { TezosOperation } from './TezosOperation';
|
|
3
|
+
export interface TezosActivateAccountOperation extends TezosOperation {
|
|
4
|
+
kind: TezosOperationType.ACTIVATE_ACCOUNT;
|
|
5
|
+
pkh: string;
|
|
6
|
+
secret: string;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActivateAccount.js","sourceRoot":"","sources":["../../../../src/protocol/types/operations/ActivateAccount.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TezosOperationType } from '../TezosOperationType';
|
|
2
|
+
import { TezosOperation } from './TezosOperation';
|
|
3
|
+
export interface TezosBallotOperation extends TezosOperation {
|
|
4
|
+
kind: TezosOperationType.BALLOT;
|
|
5
|
+
source: string;
|
|
6
|
+
period: string;
|
|
7
|
+
proposal: string;
|
|
8
|
+
ballot: 'nay' | 'yay' | 'pass';
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Ballot.js","sourceRoot":"","sources":["../../../../src/protocol/types/operations/Ballot.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TezosOperationType } from '../TezosOperationType';
|
|
2
|
+
import { TezosOperation } from './TezosOperation';
|
|
3
|
+
export interface TezosDelegationOperation extends TezosOperation {
|
|
4
|
+
kind: TezosOperationType.DELEGATION;
|
|
5
|
+
source: string;
|
|
6
|
+
fee: string;
|
|
7
|
+
counter: string;
|
|
8
|
+
gas_limit: string;
|
|
9
|
+
storage_limit: string;
|
|
10
|
+
delegate?: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Delegation.js","sourceRoot":"","sources":["../../../../src/protocol/types/operations/Delegation.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TezosBlockHeader } from '../TezosBlockHeader';
|
|
2
|
+
import { TezosOperationType } from '../TezosOperationType';
|
|
3
|
+
import { TezosOperation } from './TezosOperation';
|
|
4
|
+
export interface TezosDoubleBakingEvidenceOperation extends TezosOperation {
|
|
5
|
+
kind: TezosOperationType.DOUBLE_BAKING_EVIDENCE;
|
|
6
|
+
bh1: TezosBlockHeader;
|
|
7
|
+
bh2: TezosBlockHeader;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DoubleBakingEvidence.js","sourceRoot":"","sources":["../../../../src/protocol/types/operations/DoubleBakingEvidence.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TezosOperationType } from '../TezosOperationType';
|
|
2
|
+
import { TezosOperation } from './TezosOperation';
|
|
3
|
+
export interface InlinedEndorsement {
|
|
4
|
+
branch: string;
|
|
5
|
+
operations: InlinedEndorsementContents;
|
|
6
|
+
signature?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface InlinedEndorsementContents {
|
|
9
|
+
kind: 'endorsement';
|
|
10
|
+
level: string;
|
|
11
|
+
}
|
|
12
|
+
export interface TezosDoubleEndorsementEvidenceOperation extends TezosOperation {
|
|
13
|
+
kind: TezosOperationType.DOUBLE_ENDORSEMENT_EVIDENCE;
|
|
14
|
+
op1: InlinedEndorsement;
|
|
15
|
+
op2: InlinedEndorsement;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DoubleEndorsementEvidence.js","sourceRoot":"","sources":["../../../../src/protocol/types/operations/DoubleEndorsementEvidence.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Endorsement.js","sourceRoot":"","sources":["../../../../src/protocol/types/operations/Endorsement.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TezosOperationType } from '../TezosOperationType';
|
|
2
|
+
import { TezosOperation } from './TezosOperation';
|
|
3
|
+
export interface TezosOriginationOperation extends TezosOperation {
|
|
4
|
+
kind: TezosOperationType.DELEGATION;
|
|
5
|
+
source: string;
|
|
6
|
+
fee: string;
|
|
7
|
+
counter: string;
|
|
8
|
+
gas_limit: string;
|
|
9
|
+
storage_limit: string;
|
|
10
|
+
balance: string;
|
|
11
|
+
delegate?: string;
|
|
12
|
+
script: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Origination.js","sourceRoot":"","sources":["../../../../src/protocol/types/operations/Origination.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Proposal.js","sourceRoot":"","sources":["../../../../src/protocol/types/operations/Proposal.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TezosOperationType } from '../TezosOperationType';
|
|
2
|
+
import { TezosOperation } from './TezosOperation';
|
|
3
|
+
export interface TezosRevealOperation extends TezosOperation {
|
|
4
|
+
kind: TezosOperationType.REVEAL;
|
|
5
|
+
source: string;
|
|
6
|
+
fee: string;
|
|
7
|
+
counter: string;
|
|
8
|
+
gas_limit: string;
|
|
9
|
+
storage_limit: string;
|
|
10
|
+
public_key: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Reveal.js","sourceRoot":"","sources":["../../../../src/protocol/types/operations/Reveal.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TezosOperationType } from '../TezosOperationType';
|
|
2
|
+
import { TezosOperation } from './TezosOperation';
|
|
3
|
+
export interface TezosSeedNonceRevelationOperation extends TezosOperation {
|
|
4
|
+
kind: TezosOperationType.SEED_NONCE_REVELATION;
|
|
5
|
+
level: string;
|
|
6
|
+
nonce: string;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SeedNonceRevelation.js","sourceRoot":"","sources":["../../../../src/protocol/types/operations/SeedNonceRevelation.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TezosOperation.js","sourceRoot":"","sources":["../../../../src/protocol/types/operations/TezosOperation.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { MichelineNode } from '../micheline/MichelineNode';
|
|
2
|
+
import { TezosOperationType } from '../TezosOperationType';
|
|
3
|
+
import { TezosWrappedOperation } from '../TezosWrappedOperation';
|
|
4
|
+
import { TezosOperation } from './TezosOperation';
|
|
5
|
+
export interface TezosTransactionParameters {
|
|
6
|
+
entrypoint: 'default' | 'root' | 'do' | 'set_delegate' | 'remove_delegate' | string;
|
|
7
|
+
value: MichelineNode;
|
|
8
|
+
}
|
|
9
|
+
export interface TezosWrappedTransactionOperation extends TezosWrappedOperation {
|
|
10
|
+
contents: TezosTransactionOperation[];
|
|
11
|
+
signature: string;
|
|
12
|
+
}
|
|
13
|
+
export interface TezosTransactionOperation extends TezosOperation {
|
|
14
|
+
kind: TezosOperationType.TRANSACTION;
|
|
15
|
+
source: string;
|
|
16
|
+
fee: string;
|
|
17
|
+
counter: string;
|
|
18
|
+
gas_limit: string;
|
|
19
|
+
storage_limit: string;
|
|
20
|
+
amount: string;
|
|
21
|
+
destination: string;
|
|
22
|
+
parameters?: TezosTransactionParameters;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Transaction.js","sourceRoot":"","sources":["../../../../src/protocol/types/operations/Transaction.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TezosSaplingAddressCursor.js","sourceRoot":"","sources":["../../../../src/protocol/types/sapling/TezosSaplingAddressCursor.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TezosSaplingAddressResult.js","sourceRoot":"","sources":["../../../../src/protocol/types/sapling/TezosSaplingAddressResult.ts"],"names":[],"mappings":""}
|