@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
package/LICENSE.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Copyright 2019 Papers GmbH
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Action } from '@airgap/coinlib-core';
|
|
2
|
+
export interface ImportAccoutActionContext {
|
|
3
|
+
publicKey: string;
|
|
4
|
+
}
|
|
5
|
+
export declare class ImportAccountAction extends Action<string[], ImportAccoutActionContext> {
|
|
6
|
+
get identifier(): string;
|
|
7
|
+
protected perform(): Promise<string[]>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
25
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
26
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
27
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
28
|
+
function step(op) {
|
|
29
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
30
|
+
while (_) try {
|
|
31
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
32
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
33
|
+
switch (op[0]) {
|
|
34
|
+
case 0: case 1: t = op; break;
|
|
35
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
36
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
37
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
38
|
+
default:
|
|
39
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
40
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
41
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
42
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
43
|
+
if (t[2]) _.ops.pop();
|
|
44
|
+
_.trys.pop(); continue;
|
|
45
|
+
}
|
|
46
|
+
op = body.call(thisArg, _);
|
|
47
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
48
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
52
|
+
exports.ImportAccountAction = void 0;
|
|
53
|
+
var coinlib_core_1 = require("@airgap/coinlib-core");
|
|
54
|
+
var TezosKtProtocol_1 = require("../protocol/kt/TezosKtProtocol");
|
|
55
|
+
var ImportAccountAction = /** @class */ (function (_super) {
|
|
56
|
+
__extends(ImportAccountAction, _super);
|
|
57
|
+
function ImportAccountAction() {
|
|
58
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
59
|
+
}
|
|
60
|
+
Object.defineProperty(ImportAccountAction.prototype, "identifier", {
|
|
61
|
+
get: function () {
|
|
62
|
+
return 'tezos-import-account-action';
|
|
63
|
+
},
|
|
64
|
+
enumerable: false,
|
|
65
|
+
configurable: true
|
|
66
|
+
});
|
|
67
|
+
ImportAccountAction.prototype.perform = function () {
|
|
68
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
69
|
+
var protocol, ktAddresses;
|
|
70
|
+
return __generator(this, function (_a) {
|
|
71
|
+
switch (_a.label) {
|
|
72
|
+
case 0:
|
|
73
|
+
protocol = new TezosKtProtocol_1.TezosKtProtocol();
|
|
74
|
+
return [4 /*yield*/, protocol.getAddressesFromPublicKey(this.context.publicKey)];
|
|
75
|
+
case 1:
|
|
76
|
+
ktAddresses = _a.sent();
|
|
77
|
+
return [2 /*return*/, ktAddresses.map(function (address) { return address.address; })];
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
};
|
|
82
|
+
return ImportAccountAction;
|
|
83
|
+
}(coinlib_core_1.Action));
|
|
84
|
+
exports.ImportAccountAction = ImportAccountAction;
|
|
85
|
+
//# sourceMappingURL=GetKtAccountsAction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetKtAccountsAction.js","sourceRoot":"","sources":["../../src/actions/GetKtAccountsAction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAA6C;AAE7C,kEAAgE;AAOhE;IAAyC,uCAA2C;IAApF;;IAWA,CAAC;IAVC,sBAAI,2CAAU;aAAd;YACE,OAAO,6BAA6B,CAAA;QACtC,CAAC;;;OAAA;IAEe,qCAAO,GAAvB;;;;;;wBACQ,QAAQ,GAAoB,IAAI,iCAAe,EAAE,CAAA;wBACX,qBAAM,QAAQ,CAAC,yBAAyB,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAA;;wBAAtG,WAAW,GAA2B,SAAgE;wBAE5G,sBAAO,WAAW,CAAC,GAAG,CAAC,UAAC,OAA6B,IAAK,OAAA,OAAO,CAAC,OAAO,EAAf,CAAe,CAAC,EAAA;;;;KAC3E;IACH,0BAAC;AAAD,CAAC,AAXD,CAAyC,qBAAM,GAW9C;AAXY,kDAAmB"}
|