@airgap/tezos 0.13.11-beta.0 → 0.13.11-beta.1
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 +11 -9
- package/airgap-coinlib-tezos.min.js +0 -145616
- package/index.d.ts +0 -1
- package/index.js +0 -18
- package/index.js.map +0 -1
- package/v0/actions/GetKtAccountsAction.d.ts +0 -8
- package/v0/actions/GetKtAccountsAction.js +0 -87
- package/v0/actions/GetKtAccountsAction.js.map +0 -1
- package/v0/constants.d.ts +0 -18
- package/v0/constants.js +0 -28
- package/v0/constants.js.map +0 -1
- package/v0/index.d.ts +0 -46
- package/v0/index.js +0 -146
- package/v0/index.js.map +0 -1
- package/v0/protocol/TezosAddress.d.ts +0 -11
- package/v0/protocol/TezosAddress.js +0 -107
- package/v0/protocol/TezosAddress.js.map +0 -1
- package/v0/protocol/TezosCryptoClient.d.ts +0 -15
- package/v0/protocol/TezosCryptoClient.js +0 -160
- package/v0/protocol/TezosCryptoClient.js.map +0 -1
- package/v0/protocol/TezosProtocol.d.ts +0 -349
- package/v0/protocol/TezosProtocol.js +0 -1861
- package/v0/protocol/TezosProtocol.js.map +0 -1
- package/v0/protocol/TezosProtocolOptions.d.ts +0 -29
- package/v0/protocol/TezosProtocolOptions.js +0 -116
- package/v0/protocol/TezosProtocolOptions.js.map +0 -1
- package/v0/protocol/TezosUtils.d.ts +0 -40
- package/v0/protocol/TezosUtils.js +0 -301
- package/v0/protocol/TezosUtils.js.map +0 -1
- package/v0/protocol/contract/TezosContract.d.ts +0 -52
- package/v0/protocol/contract/TezosContract.js +0 -508
- package/v0/protocol/contract/TezosContract.js.map +0 -1
- package/v0/protocol/contract/TezosContractCall.d.ts +0 -11
- package/v0/protocol/contract/TezosContractCall.js +0 -23
- package/v0/protocol/contract/TezosContractCall.js.map +0 -1
- package/v0/protocol/contract/TezosContractEntrypoint.d.ts +0 -8
- package/v0/protocol/contract/TezosContractEntrypoint.js +0 -27
- package/v0/protocol/contract/TezosContractEntrypoint.js.map +0 -1
- package/v0/protocol/contract/TezosContractStorage.d.ts +0 -7
- package/v0/protocol/contract/TezosContractStorage.js +0 -16
- package/v0/protocol/contract/TezosContractStorage.js.map +0 -1
- package/v0/protocol/contract/remote-data/TezosContractRemoteDataFactory.d.ts +0 -11
- package/v0/protocol/contract/remote-data/TezosContractRemoteDataFactory.js +0 -36
- package/v0/protocol/contract/remote-data/TezosContractRemoteDataFactory.js.map +0 -1
- package/v0/protocol/contract/remote-data/TezosStorageRemoteData.d.ts +0 -12
- package/v0/protocol/contract/remote-data/TezosStorageRemoteData.js +0 -152
- package/v0/protocol/contract/remote-data/TezosStorageRemoteData.js.map +0 -1
- package/v0/protocol/domains/TezosDomains.d.ts +0 -20
- package/v0/protocol/domains/TezosDomains.js +0 -310
- package/v0/protocol/domains/TezosDomains.js.map +0 -1
- package/v0/protocol/fa/TezosBTC.d.ts +0 -12
- package/v0/protocol/fa/TezosBTC.js +0 -109
- package/v0/protocol/fa/TezosBTC.js.map +0 -1
- package/v0/protocol/fa/TezosBTCtez.d.ts +0 -10
- package/v0/protocol/fa/TezosBTCtez.js +0 -56
- package/v0/protocol/fa/TezosBTCtez.js.map +0 -1
- package/v0/protocol/fa/TezosCTez.d.ts +0 -10
- package/v0/protocol/fa/TezosCTez.js +0 -53
- package/v0/protocol/fa/TezosCTez.js.map +0 -1
- package/v0/protocol/fa/TezosDOGA.d.ts +0 -10
- package/v0/protocol/fa/TezosDOGA.js +0 -53
- package/v0/protocol/fa/TezosDOGA.js.map +0 -1
- package/v0/protocol/fa/TezosETHtz.d.ts +0 -9
- package/v0/protocol/fa/TezosETHtz.js +0 -74
- package/v0/protocol/fa/TezosETHtz.js.map +0 -1
- package/v0/protocol/fa/TezosFA1Protocol.d.ts +0 -27
- package/v0/protocol/fa/TezosFA1Protocol.js +0 -312
- package/v0/protocol/fa/TezosFA1Protocol.js.map +0 -1
- package/v0/protocol/fa/TezosFA1p2Protocol.d.ts +0 -8
- package/v0/protocol/fa/TezosFA1p2Protocol.js +0 -119
- package/v0/protocol/fa/TezosFA1p2Protocol.js.map +0 -1
- package/v0/protocol/fa/TezosFA2Protocol.d.ts +0 -58
- package/v0/protocol/fa/TezosFA2Protocol.js +0 -452
- package/v0/protocol/fa/TezosFA2Protocol.js.map +0 -1
- package/v0/protocol/fa/TezosFAProtocol.d.ts +0 -65
- package/v0/protocol/fa/TezosFAProtocol.js +0 -455
- package/v0/protocol/fa/TezosFAProtocol.js.map +0 -1
- package/v0/protocol/fa/TezosFAProtocolOptions.d.ts +0 -54
- package/v0/protocol/fa/TezosFAProtocolOptions.js +0 -230
- package/v0/protocol/fa/TezosFAProtocolOptions.js.map +0 -1
- package/v0/protocol/fa/TezosKolibriUSD.d.ts +0 -10
- package/v0/protocol/fa/TezosKolibriUSD.js +0 -76
- package/v0/protocol/fa/TezosKolibriUSD.js.map +0 -1
- package/v0/protocol/fa/TezosPlanty.d.ts +0 -10
- package/v0/protocol/fa/TezosPlanty.js +0 -53
- package/v0/protocol/fa/TezosPlanty.js.map +0 -1
- package/v0/protocol/fa/TezosQUIPU.d.ts +0 -10
- package/v0/protocol/fa/TezosQUIPU.js +0 -56
- package/v0/protocol/fa/TezosQUIPU.js.map +0 -1
- package/v0/protocol/fa/TezosSIRS.d.ts +0 -10
- package/v0/protocol/fa/TezosSIRS.js +0 -53
- package/v0/protocol/fa/TezosSIRS.js.map +0 -1
- package/v0/protocol/fa/TezosStaker.d.ts +0 -10
- package/v0/protocol/fa/TezosStaker.js +0 -76
- package/v0/protocol/fa/TezosStaker.js.map +0 -1
- package/v0/protocol/fa/TezosUBTC.d.ts +0 -10
- package/v0/protocol/fa/TezosUBTC.js +0 -56
- package/v0/protocol/fa/TezosUBTC.js.map +0 -1
- package/v0/protocol/fa/TezosUDEFI.d.ts +0 -10
- package/v0/protocol/fa/TezosUDEFI.js +0 -56
- package/v0/protocol/fa/TezosUDEFI.js.map +0 -1
- package/v0/protocol/fa/TezosUSD.d.ts +0 -10
- package/v0/protocol/fa/TezosUSD.js +0 -76
- package/v0/protocol/fa/TezosUSD.js.map +0 -1
- package/v0/protocol/fa/TezosUSDT.d.ts +0 -10
- package/v0/protocol/fa/TezosUSDT.js +0 -56
- package/v0/protocol/fa/TezosUSDT.js.map +0 -1
- package/v0/protocol/fa/TezosUUSD.d.ts +0 -6
- package/v0/protocol/fa/TezosUUSD.js +0 -33
- package/v0/protocol/fa/TezosUUSD.js.map +0 -1
- package/v0/protocol/fa/TezosWRAP.d.ts +0 -10
- package/v0/protocol/fa/TezosWRAP.js +0 -56
- package/v0/protocol/fa/TezosWRAP.js.map +0 -1
- package/v0/protocol/fa/TezosWrapped.d.ts +0 -10
- package/v0/protocol/fa/TezosWrapped.js +0 -76
- package/v0/protocol/fa/TezosWrapped.js.map +0 -1
- package/v0/protocol/fa/TezosYOU.d.ts +0 -6
- package/v0/protocol/fa/TezosYOU.js +0 -33
- package/v0/protocol/fa/TezosYOU.js.map +0 -1
- package/v0/protocol/fa/metadata/BigMapTokenMetadataIndexer.d.ts +0 -13
- package/v0/protocol/fa/metadata/BigMapTokenMetadataIndexer.js +0 -180
- package/v0/protocol/fa/metadata/BigMapTokenMetadataIndexer.js.map +0 -1
- package/v0/protocol/fa/metadata/ObjktTokenMetadataIndexer.d.ts +0 -8
- package/v0/protocol/fa/metadata/ObjktTokenMetadataIndexer.js +0 -97
- package/v0/protocol/fa/metadata/ObjktTokenMetadataIndexer.js.map +0 -1
- package/v0/protocol/fa/metadata/TokenMetadataIndexer.d.ts +0 -4
- package/v0/protocol/fa/metadata/TokenMetadataIndexer.js +0 -3
- package/v0/protocol/fa/metadata/TokenMetadataIndexer.js.map +0 -1
- package/v0/protocol/indexerClient/TezosIndexerClient.d.ts +0 -29
- package/v0/protocol/indexerClient/TezosIndexerClient.js +0 -269
- package/v0/protocol/indexerClient/TezosIndexerClient.js.map +0 -1
- package/v0/protocol/indexerClient/TezosProtocolIndexerClient.d.ts +0 -30
- package/v0/protocol/indexerClient/TezosProtocolIndexerClient.js +0 -3
- package/v0/protocol/indexerClient/TezosProtocolIndexerClient.js.map +0 -1
- package/v0/protocol/kt/TezosKtAddress.d.ts +0 -5
- package/v0/protocol/kt/TezosKtAddress.js +0 -74
- package/v0/protocol/kt/TezosKtAddress.js.map +0 -1
- package/v0/protocol/kt/TezosKtProtocol.d.ts +0 -30
- package/v0/protocol/kt/TezosKtProtocol.js +0 -320
- package/v0/protocol/kt/TezosKtProtocol.js.map +0 -1
- package/v0/protocol/sapling/TezosSaplingAddress.d.ts +0 -12
- package/v0/protocol/sapling/TezosSaplingAddress.js +0 -141
- package/v0/protocol/sapling/TezosSaplingAddress.js.map +0 -1
- package/v0/protocol/sapling/TezosSaplingCryptoClient.d.ts +0 -34
- package/v0/protocol/sapling/TezosSaplingCryptoClient.js +0 -248
- package/v0/protocol/sapling/TezosSaplingCryptoClient.js.map +0 -1
- package/v0/protocol/sapling/TezosSaplingProtocol.d.ts +0 -135
- package/v0/protocol/sapling/TezosSaplingProtocol.js +0 -1182
- package/v0/protocol/sapling/TezosSaplingProtocol.js.map +0 -1
- package/v0/protocol/sapling/TezosSaplingProtocolOptions.d.ts +0 -45
- package/v0/protocol/sapling/TezosSaplingProtocolOptions.js +0 -73
- package/v0/protocol/sapling/TezosSaplingProtocolOptions.js.map +0 -1
- package/v0/protocol/sapling/TezosShieldedTezProtocol.d.ts +0 -12
- package/v0/protocol/sapling/TezosShieldedTezProtocol.js +0 -144
- package/v0/protocol/sapling/TezosShieldedTezProtocol.js.map +0 -1
- package/v0/protocol/sapling/injector/TezosSaplingInjectorClient.d.ts +0 -6
- package/v0/protocol/sapling/injector/TezosSaplingInjectorClient.js +0 -68
- package/v0/protocol/sapling/injector/TezosSaplingInjectorClient.js.map +0 -1
- package/v0/protocol/sapling/node/TezosSaplingNodeClient.d.ts +0 -8
- package/v0/protocol/sapling/node/TezosSaplingNodeClient.js +0 -78
- package/v0/protocol/sapling/node/TezosSaplingNodeClient.js.map +0 -1
- package/v0/protocol/sapling/utils/TezosSaplingBookkeeper.d.ts +0 -34
- package/v0/protocol/sapling/utils/TezosSaplingBookkeeper.js +0 -591
- package/v0/protocol/sapling/utils/TezosSaplingBookkeeper.js.map +0 -1
- package/v0/protocol/sapling/utils/TezosSaplingEncoder.d.ts +0 -22
- package/v0/protocol/sapling/utils/TezosSaplingEncoder.js +0 -158
- package/v0/protocol/sapling/utils/TezosSaplingEncoder.js.map +0 -1
- package/v0/protocol/sapling/utils/TezosSaplingForger.d.ts +0 -27
- package/v0/protocol/sapling/utils/TezosSaplingForger.js +0 -304
- package/v0/protocol/sapling/utils/TezosSaplingForger.js.map +0 -1
- package/v0/protocol/sapling/utils/TezosSaplingState.d.ts +0 -17
- package/v0/protocol/sapling/utils/TezosSaplingState.js +0 -266
- package/v0/protocol/sapling/utils/TezosSaplingState.js.map +0 -1
- package/v0/protocol/types/TezosAddressCursor.d.ts +0 -3
- package/v0/protocol/types/TezosAddressCursor.js +0 -3
- package/v0/protocol/types/TezosAddressCursor.js.map +0 -1
- package/v0/protocol/types/TezosAddressResult.d.ts +0 -4
- package/v0/protocol/types/TezosAddressResult.js +0 -3
- package/v0/protocol/types/TezosAddressResult.js.map +0 -1
- package/v0/protocol/types/TezosBlockHeader.d.ts +0 -13
- package/v0/protocol/types/TezosBlockHeader.js +0 -3
- package/v0/protocol/types/TezosBlockHeader.js.map +0 -1
- package/v0/protocol/types/TezosBlockMetadata.d.ts +0 -7
- package/v0/protocol/types/TezosBlockMetadata.js +0 -3
- package/v0/protocol/types/TezosBlockMetadata.js.map +0 -1
- package/v0/protocol/types/TezosContractCode.d.ts +0 -5
- package/v0/protocol/types/TezosContractCode.js +0 -3
- package/v0/protocol/types/TezosContractCode.js.map +0 -1
- package/v0/protocol/types/TezosOperationType.d.ts +0 -13
- package/v0/protocol/types/TezosOperationType.js +0 -18
- package/v0/protocol/types/TezosOperationType.js.map +0 -1
- package/v0/protocol/types/TezosTransactionCursor.d.ts +0 -3
- package/v0/protocol/types/TezosTransactionCursor.js +0 -3
- package/v0/protocol/types/TezosTransactionCursor.js.map +0 -1
- package/v0/protocol/types/TezosTransactionResult.d.ts +0 -6
- package/v0/protocol/types/TezosTransactionResult.js +0 -3
- package/v0/protocol/types/TezosTransactionResult.js.map +0 -1
- package/v0/protocol/types/TezosWrappedOperation.d.ts +0 -5
- package/v0/protocol/types/TezosWrappedOperation.js +0 -3
- package/v0/protocol/types/TezosWrappedOperation.js.map +0 -1
- package/v0/protocol/types/contract/BigMap.d.ts +0 -7
- package/v0/protocol/types/contract/BigMap.js +0 -3
- package/v0/protocol/types/contract/BigMap.js.map +0 -1
- package/v0/protocol/types/contract/BigMapEntry.d.ts +0 -8
- package/v0/protocol/types/contract/BigMapEntry.js +0 -3
- package/v0/protocol/types/contract/BigMapEntry.js.map +0 -1
- package/v0/protocol/types/contract/BigMapEntryFilter.d.ts +0 -5
- package/v0/protocol/types/contract/BigMapEntryFilter.js +0 -3
- package/v0/protocol/types/contract/BigMapEntryFilter.js.map +0 -1
- package/v0/protocol/types/contract/BigMapRequest.d.ts +0 -10
- package/v0/protocol/types/contract/BigMapRequest.js +0 -3
- package/v0/protocol/types/contract/BigMapRequest.js.map +0 -1
- package/v0/protocol/types/contract/TezosContractMetadata.d.ts +0 -61
- package/v0/protocol/types/contract/TezosContractMetadata.js +0 -3
- package/v0/protocol/types/contract/TezosContractMetadata.js.map +0 -1
- package/v0/protocol/types/domains/TezosDomainsRecord.d.ts +0 -8
- package/v0/protocol/types/domains/TezosDomainsRecord.js +0 -3
- package/v0/protocol/types/domains/TezosDomainsRecord.js.map +0 -1
- package/v0/protocol/types/domains/TezosDomainsReverseRecord.d.ts +0 -5
- package/v0/protocol/types/domains/TezosDomainsReverseRecord.js +0 -3
- package/v0/protocol/types/domains/TezosDomainsReverseRecord.js.map +0 -1
- package/v0/protocol/types/fa/TezosFA2BalanceOfRequest.d.ts +0 -4
- package/v0/protocol/types/fa/TezosFA2BalanceOfRequest.js +0 -3
- package/v0/protocol/types/fa/TezosFA2BalanceOfRequest.js.map +0 -1
- package/v0/protocol/types/fa/TezosFA2BalanceOfResponse.d.ts +0 -5
- package/v0/protocol/types/fa/TezosFA2BalanceOfResponse.js +0 -3
- package/v0/protocol/types/fa/TezosFA2BalanceOfResponse.js.map +0 -1
- package/v0/protocol/types/fa/TezosFA2TransferRequest.d.ts +0 -8
- package/v0/protocol/types/fa/TezosFA2TransferRequest.js +0 -3
- package/v0/protocol/types/fa/TezosFA2TransferRequest.js.map +0 -1
- package/v0/protocol/types/fa/TezosFA2UpdateOperatorRequest.d.ts +0 -6
- package/v0/protocol/types/fa/TezosFA2UpdateOperatorRequest.js +0 -3
- package/v0/protocol/types/fa/TezosFA2UpdateOperatorRequest.js.map +0 -1
- package/v0/protocol/types/fa/TezosFATokenMetadata.d.ts +0 -6
- package/v0/protocol/types/fa/TezosFATokenMetadata.js +0 -3
- package/v0/protocol/types/fa/TezosFATokenMetadata.js.map +0 -1
- package/v0/protocol/types/kt/TezosKtAddressCursor.d.ts +0 -4
- package/v0/protocol/types/kt/TezosKtAddressCursor.js +0 -3
- package/v0/protocol/types/kt/TezosKtAddressCursor.js.map +0 -1
- package/v0/protocol/types/kt/TezosKtAddressResult.d.ts +0 -5
- package/v0/protocol/types/kt/TezosKtAddressResult.js +0 -3
- package/v0/protocol/types/kt/TezosKtAddressResult.js.map +0 -1
- package/v0/protocol/types/micheline/MichelineNode.d.ts +0 -15
- package/v0/protocol/types/micheline/MichelineNode.js +0 -5
- package/v0/protocol/types/micheline/MichelineNode.js.map +0 -1
- package/v0/protocol/types/micheline/MichelineNodeUtils.d.ts +0 -6
- package/v0/protocol/types/micheline/MichelineNodeUtils.js +0 -40
- package/v0/protocol/types/micheline/MichelineNodeUtils.js.map +0 -1
- package/v0/protocol/types/michelson/MichelsonType.d.ts +0 -11
- package/v0/protocol/types/michelson/MichelsonType.js +0 -22
- package/v0/protocol/types/michelson/MichelsonType.js.map +0 -1
- package/v0/protocol/types/michelson/MichelsonTypeMeta.d.ts +0 -33
- package/v0/protocol/types/michelson/MichelsonTypeMeta.js +0 -136
- package/v0/protocol/types/michelson/MichelsonTypeMeta.js.map +0 -1
- package/v0/protocol/types/michelson/MichelsonTypeUtils.d.ts +0 -19
- package/v0/protocol/types/michelson/MichelsonTypeUtils.js +0 -251
- package/v0/protocol/types/michelson/MichelsonTypeUtils.js.map +0 -1
- package/v0/protocol/types/michelson/generics/MichelsonList.d.ts +0 -11
- package/v0/protocol/types/michelson/generics/MichelsonList.js +0 -70
- package/v0/protocol/types/michelson/generics/MichelsonList.js.map +0 -1
- package/v0/protocol/types/michelson/generics/MichelsonMap.d.ts +0 -14
- package/v0/protocol/types/michelson/generics/MichelsonMap.js +0 -120
- package/v0/protocol/types/michelson/generics/MichelsonMap.js.map +0 -1
- package/v0/protocol/types/michelson/generics/MichelsonOption.d.ts +0 -25
- package/v0/protocol/types/michelson/generics/MichelsonOption.js +0 -121
- package/v0/protocol/types/michelson/generics/MichelsonOption.js.map +0 -1
- package/v0/protocol/types/michelson/generics/MichelsonOr.d.ts +0 -25
- package/v0/protocol/types/michelson/generics/MichelsonOr.js +0 -134
- package/v0/protocol/types/michelson/generics/MichelsonOr.js.map +0 -1
- package/v0/protocol/types/michelson/generics/MichelsonPair.d.ts +0 -17
- package/v0/protocol/types/michelson/generics/MichelsonPair.js +0 -139
- package/v0/protocol/types/michelson/generics/MichelsonPair.js.map +0 -1
- package/v0/protocol/types/michelson/grammar/MichelsonGrammarData.d.ts +0 -2
- package/v0/protocol/types/michelson/grammar/MichelsonGrammarData.js +0 -4
- package/v0/protocol/types/michelson/grammar/MichelsonGrammarData.js.map +0 -1
- package/v0/protocol/types/michelson/grammar/MichelsonGrammarInstruction.d.ts +0 -1
- package/v0/protocol/types/michelson/grammar/MichelsonGrammarInstruction.js +0 -4
- package/v0/protocol/types/michelson/grammar/MichelsonGrammarInstruction.js.map +0 -1
- package/v0/protocol/types/michelson/grammar/MichelsonGrammarType.d.ts +0 -1
- package/v0/protocol/types/michelson/grammar/MichelsonGrammarType.js +0 -4
- package/v0/protocol/types/michelson/grammar/MichelsonGrammarType.js.map +0 -1
- package/v0/protocol/types/michelson/primitives/MichelsonAddress.d.ts +0 -15
- package/v0/protocol/types/michelson/primitives/MichelsonAddress.js +0 -74
- package/v0/protocol/types/michelson/primitives/MichelsonAddress.js.map +0 -1
- package/v0/protocol/types/michelson/primitives/MichelsonBool.d.ts +0 -12
- package/v0/protocol/types/michelson/primitives/MichelsonBool.js +0 -59
- package/v0/protocol/types/michelson/primitives/MichelsonBool.js.map +0 -1
- package/v0/protocol/types/michelson/primitives/MichelsonBytes.d.ts +0 -14
- package/v0/protocol/types/michelson/primitives/MichelsonBytes.js +0 -77
- package/v0/protocol/types/michelson/primitives/MichelsonBytes.js.map +0 -1
- package/v0/protocol/types/michelson/primitives/MichelsonInt.d.ts +0 -14
- package/v0/protocol/types/michelson/primitives/MichelsonInt.js +0 -74
- package/v0/protocol/types/michelson/primitives/MichelsonInt.js.map +0 -1
- package/v0/protocol/types/michelson/primitives/MichelsonString.d.ts +0 -14
- package/v0/protocol/types/michelson/primitives/MichelsonString.js +0 -76
- package/v0/protocol/types/michelson/primitives/MichelsonString.js.map +0 -1
- package/v0/protocol/types/michelson/primitives/MichelsonUnit.d.ts +0 -9
- package/v0/protocol/types/michelson/primitives/MichelsonUnit.js +0 -55
- package/v0/protocol/types/michelson/primitives/MichelsonUnit.js.map +0 -1
- package/v0/protocol/types/operations/ActivateAccount.d.ts +0 -7
- package/v0/protocol/types/operations/ActivateAccount.js +0 -3
- package/v0/protocol/types/operations/ActivateAccount.js.map +0 -1
- package/v0/protocol/types/operations/Ballot.d.ts +0 -9
- package/v0/protocol/types/operations/Ballot.js +0 -3
- package/v0/protocol/types/operations/Ballot.js.map +0 -1
- package/v0/protocol/types/operations/Delegation.d.ts +0 -11
- package/v0/protocol/types/operations/Delegation.js +0 -3
- package/v0/protocol/types/operations/Delegation.js.map +0 -1
- package/v0/protocol/types/operations/DoubleBakingEvidence.d.ts +0 -8
- package/v0/protocol/types/operations/DoubleBakingEvidence.js +0 -3
- package/v0/protocol/types/operations/DoubleBakingEvidence.js.map +0 -1
- package/v0/protocol/types/operations/DoubleEndorsementEvidence.d.ts +0 -16
- package/v0/protocol/types/operations/DoubleEndorsementEvidence.js +0 -3
- package/v0/protocol/types/operations/DoubleEndorsementEvidence.js.map +0 -1
- package/v0/protocol/types/operations/Endorsement.d.ts +0 -6
- package/v0/protocol/types/operations/Endorsement.js +0 -3
- package/v0/protocol/types/operations/Endorsement.js.map +0 -1
- package/v0/protocol/types/operations/Origination.d.ts +0 -13
- package/v0/protocol/types/operations/Origination.js +0 -3
- package/v0/protocol/types/operations/Origination.js.map +0 -1
- package/v0/protocol/types/operations/Proposal.d.ts +0 -7
- package/v0/protocol/types/operations/Proposal.js +0 -3
- package/v0/protocol/types/operations/Proposal.js.map +0 -1
- package/v0/protocol/types/operations/Reveal.d.ts +0 -11
- package/v0/protocol/types/operations/Reveal.js +0 -3
- package/v0/protocol/types/operations/Reveal.js.map +0 -1
- package/v0/protocol/types/operations/SeedNonceRevelation.d.ts +0 -7
- package/v0/protocol/types/operations/SeedNonceRevelation.js +0 -3
- package/v0/protocol/types/operations/SeedNonceRevelation.js.map +0 -1
- package/v0/protocol/types/operations/TezosOperation.d.ts +0 -4
- package/v0/protocol/types/operations/TezosOperation.js +0 -3
- package/v0/protocol/types/operations/TezosOperation.js.map +0 -1
- package/v0/protocol/types/operations/Transaction.d.ts +0 -23
- package/v0/protocol/types/operations/Transaction.js +0 -3
- package/v0/protocol/types/operations/Transaction.js.map +0 -1
- package/v0/protocol/types/sapling/TezosSaplingAddressCursor.d.ts +0 -4
- package/v0/protocol/types/sapling/TezosSaplingAddressCursor.js +0 -3
- package/v0/protocol/types/sapling/TezosSaplingAddressCursor.js.map +0 -1
- package/v0/protocol/types/sapling/TezosSaplingAddressResult.d.ts +0 -4
- package/v0/protocol/types/sapling/TezosSaplingAddressResult.js +0 -3
- package/v0/protocol/types/sapling/TezosSaplingAddressResult.js.map +0 -1
- package/v0/protocol/types/sapling/TezosSaplingCiphertext.d.ts +0 -8
- package/v0/protocol/types/sapling/TezosSaplingCiphertext.js +0 -3
- package/v0/protocol/types/sapling/TezosSaplingCiphertext.js.map +0 -1
- package/v0/protocol/types/sapling/TezosSaplingInput.d.ts +0 -6
- package/v0/protocol/types/sapling/TezosSaplingInput.js +0 -3
- package/v0/protocol/types/sapling/TezosSaplingInput.js.map +0 -1
- package/v0/protocol/types/sapling/TezosSaplingOutput.d.ts +0 -6
- package/v0/protocol/types/sapling/TezosSaplingOutput.js +0 -3
- package/v0/protocol/types/sapling/TezosSaplingOutput.js.map +0 -1
- package/v0/protocol/types/sapling/TezosSaplingStateDiff.d.ts +0 -6
- package/v0/protocol/types/sapling/TezosSaplingStateDiff.js +0 -3
- package/v0/protocol/types/sapling/TezosSaplingStateDiff.js.map +0 -1
- package/v0/protocol/types/sapling/TezosSaplingStateTree.d.ts +0 -7
- package/v0/protocol/types/sapling/TezosSaplingStateTree.js +0 -3
- package/v0/protocol/types/sapling/TezosSaplingStateTree.js.map +0 -1
- package/v0/protocol/types/sapling/TezosSaplingTransaction.d.ts +0 -23
- package/v0/protocol/types/sapling/TezosSaplingTransaction.js +0 -3
- package/v0/protocol/types/sapling/TezosSaplingTransaction.js.map +0 -1
- package/v0/protocol/types/sapling/TezosSaplingTransactionCursor.d.ts +0 -3
- package/v0/protocol/types/sapling/TezosSaplingTransactionCursor.js +0 -3
- package/v0/protocol/types/sapling/TezosSaplingTransactionCursor.js.map +0 -1
- package/v0/protocol/types/sapling/TezosSaplingTransactionResult.d.ts +0 -6
- package/v0/protocol/types/sapling/TezosSaplingTransactionResult.js +0 -3
- package/v0/protocol/types/sapling/TezosSaplingTransactionResult.js.map +0 -1
- package/v0/protocol/types/utils.d.ts +0 -8
- package/v0/protocol/types/utils.js +0 -41
- package/v0/protocol/types/utils.js.map +0 -1
- package/v0/serializer/schemas/v2/transaction-sign-request-tezos-sapling.json +0 -127
- package/v0/serializer/schemas/v2/transaction-sign-request-tezos.json +0 -29
- package/v0/serializer/schemas/v2/transaction-sign-response-tezos-sapling.json +0 -19
- package/v0/serializer/schemas/v2/transaction-sign-response-tezos.json +0 -19
- package/v0/serializer/schemas/v3/transaction-sign-request-tezos-sapling.json +0 -133
- package/v0/serializer/schemas/v3/transaction-sign-request-tezos.json +0 -29
- package/v0/serializer/schemas/v3/transaction-sign-response-tezos-sapling.json +0 -19
- package/v0/serializer/schemas/v3/transaction-sign-response-tezos.json +0 -19
- package/v0/serializer/validators/transaction-validator.d.ts +0 -15
- package/v0/serializer/validators/transaction-validator.js +0 -107
- package/v0/serializer/validators/transaction-validator.js.map +0 -1
- package/v0/serializer/validators/transaction-xtz-btc-validator.d.ts +0 -18
- package/v0/serializer/validators/transaction-xtz-btc-validator.js +0 -170
- package/v0/serializer/validators/transaction-xtz-btc-validator.js.map +0 -1
- package/v0/serializer/validators/validators.d.ts +0 -1
- package/v0/serializer/validators/validators.js +0 -115
- package/v0/serializer/validators/validators.js.map +0 -1
- package/v0/types/signed-transaction-tezos-sapling.d.ts +0 -3
- package/v0/types/signed-transaction-tezos-sapling.js +0 -3
- package/v0/types/signed-transaction-tezos-sapling.js.map +0 -1
- package/v0/types/signed-transaction-tezos.d.ts +0 -5
- package/v0/types/signed-transaction-tezos.js +0 -3
- package/v0/types/signed-transaction-tezos.js.map +0 -1
- package/v0/types/transaction-tezos.d.ts +0 -14
- package/v0/types/transaction-tezos.js +0 -3
- package/v0/types/transaction-tezos.js.map +0 -1
- package/v0/types/unsigned-transaction-tezos-sapling.d.ts +0 -38
- package/v0/types/unsigned-transaction-tezos-sapling.js +0 -3
- package/v0/types/unsigned-transaction-tezos-sapling.js.map +0 -1
- package/v0/types/unsigned-transaction-tezos.d.ts +0 -8
- package/v0/types/unsigned-transaction-tezos.js +0 -3
- package/v0/types/unsigned-transaction-tezos.js.map +0 -1
- package/v1/block-explorer/TzKTBlockExplorer.d.ts +0 -9
- package/v1/block-explorer/TzKTBlockExplorer.js +0 -72
- package/v1/block-explorer/TzKTBlockExplorer.js.map +0 -1
- package/v1/block-explorer/factory.d.ts +0 -3
- package/v1/block-explorer/factory.js +0 -17
- package/v1/block-explorer/factory.js.map +0 -1
- package/v1/contract/TezosContract.d.ts +0 -52
- package/v1/contract/TezosContract.js +0 -508
- package/v1/contract/TezosContract.js.map +0 -1
- package/v1/contract/TezosContractCall.d.ts +0 -11
- package/v1/contract/TezosContractCall.js +0 -23
- package/v1/contract/TezosContractCall.js.map +0 -1
- package/v1/contract/TezosContractEntrypoint.d.ts +0 -9
- package/v1/contract/TezosContractEntrypoint.js +0 -27
- package/v1/contract/TezosContractEntrypoint.js.map +0 -1
- package/v1/contract/TezosContractStorage.d.ts +0 -7
- package/v1/contract/TezosContractStorage.js +0 -16
- package/v1/contract/TezosContractStorage.js.map +0 -1
- package/v1/contract/remote-data/TezosContractRemoteDataFactory.d.ts +0 -11
- package/v1/contract/remote-data/TezosContractRemoteDataFactory.js +0 -36
- package/v1/contract/remote-data/TezosContractRemoteDataFactory.js.map +0 -1
- package/v1/contract/remote-data/TezosStorageRemoteData.d.ts +0 -12
- package/v1/contract/remote-data/TezosStorageRemoteData.js +0 -152
- package/v1/contract/remote-data/TezosStorageRemoteData.js.map +0 -1
- package/v1/crypto/TezosCryptoClient.d.ts +0 -13
- package/v1/crypto/TezosCryptoClient.js +0 -153
- package/v1/crypto/TezosCryptoClient.js.map +0 -1
- package/v1/crypto/TezosSaplingCryptoClient.d.ts +0 -25
- package/v1/crypto/TezosSaplingCryptoClient.js +0 -222
- package/v1/crypto/TezosSaplingCryptoClient.js.map +0 -1
- package/v1/data/TezosAddress.d.ts +0 -9
- package/v1/data/TezosAddress.js +0 -27
- package/v1/data/TezosAddress.js.map +0 -1
- package/v1/data/TezosSaplingAddress.d.ts +0 -14
- package/v1/data/TezosSaplingAddress.js +0 -105
- package/v1/data/TezosSaplingAddress.js.map +0 -1
- package/v1/index.d.ts +0 -52
- package/v1/index.js +0 -82
- package/v1/index.js.map +0 -1
- package/v1/indexer/TezosIndexerClient.d.ts +0 -31
- package/v1/indexer/TezosIndexerClient.js +0 -3
- package/v1/indexer/TezosIndexerClient.js.map +0 -1
- package/v1/indexer/TzKTIndexerClient.d.ts +0 -31
- package/v1/indexer/TzKTIndexerClient.js +0 -283
- package/v1/indexer/TzKTIndexerClient.js.map +0 -1
- package/v1/indexer/factory.d.ts +0 -3
- package/v1/indexer/factory.js +0 -17
- package/v1/indexer/factory.js.map +0 -1
- package/v1/indexer/token-metadata/BigMapTokenMetadataIndexerClient.d.ts +0 -12
- package/v1/indexer/token-metadata/BigMapTokenMetadataIndexerClient.js +0 -178
- package/v1/indexer/token-metadata/BigMapTokenMetadataIndexerClient.js.map +0 -1
- package/v1/indexer/token-metadata/ObjktTokenMetadataIndexerClient.d.ts +0 -8
- package/v1/indexer/token-metadata/ObjktTokenMetadataIndexerClient.js +0 -95
- package/v1/indexer/token-metadata/ObjktTokenMetadataIndexerClient.js.map +0 -1
- package/v1/indexer/token-metadata/TokenMetadataIndexerClient.d.ts +0 -4
- package/v1/indexer/token-metadata/TokenMetadataIndexerClient.js +0 -3
- package/v1/indexer/token-metadata/TokenMetadataIndexerClient.js.map +0 -1
- package/v1/injector/TezosSaplingInjectorClient.d.ts +0 -6
- package/v1/injector/TezosSaplingInjectorClient.js +0 -68
- package/v1/injector/TezosSaplingInjectorClient.js.map +0 -1
- package/v1/module/TezosModule.d.ts +0 -11
- package/v1/module/TezosModule.js +0 -202
- package/v1/module/TezosModule.js.map +0 -1
- package/v1/module.d.ts +0 -3
- package/v1/module.js +0 -24
- package/v1/module.js.map +0 -1
- package/v1/node/TezosSaplingNodeClient.d.ts +0 -8
- package/v1/node/TezosSaplingNodeClient.js +0 -78
- package/v1/node/TezosSaplingNodeClient.js.map +0 -1
- package/v1/protocol/TezosProtocol.d.ts +0 -72
- package/v1/protocol/TezosProtocol.js +0 -968
- package/v1/protocol/TezosProtocol.js.map +0 -1
- package/v1/protocol/fa/TezosFA1Protocol.d.ts +0 -30
- package/v1/protocol/fa/TezosFA1Protocol.js +0 -211
- package/v1/protocol/fa/TezosFA1Protocol.js.map +0 -1
- package/v1/protocol/fa/TezosFA1p2Protocol.d.ts +0 -19
- package/v1/protocol/fa/TezosFA1p2Protocol.js +0 -122
- package/v1/protocol/fa/TezosFA1p2Protocol.js.map +0 -1
- package/v1/protocol/fa/TezosFA2Protocol.d.ts +0 -40
- package/v1/protocol/fa/TezosFA2Protocol.js +0 -305
- package/v1/protocol/fa/TezosFA2Protocol.js.map +0 -1
- package/v1/protocol/fa/TezosFAProtocol.d.ts +0 -76
- package/v1/protocol/fa/TezosFAProtocol.js +0 -574
- package/v1/protocol/fa/TezosFAProtocol.js.map +0 -1
- package/v1/protocol/fa/tokens/BTCTezProtocol.d.ts +0 -14
- package/v1/protocol/fa/tokens/BTCTezProtocol.js +0 -74
- package/v1/protocol/fa/tokens/BTCTezProtocol.js.map +0 -1
- package/v1/protocol/fa/tokens/CTezProtocol.d.ts +0 -14
- package/v1/protocol/fa/tokens/CTezProtocol.js +0 -74
- package/v1/protocol/fa/tokens/CTezProtocol.js.map +0 -1
- package/v1/protocol/fa/tokens/DogamiProtocol.d.ts +0 -14
- package/v1/protocol/fa/tokens/DogamiProtocol.js +0 -74
- package/v1/protocol/fa/tokens/DogamiProtocol.js.map +0 -1
- package/v1/protocol/fa/tokens/ETHTezProtocol.d.ts +0 -18
- package/v1/protocol/fa/tokens/ETHTezProtocol.js +0 -117
- package/v1/protocol/fa/tokens/ETHTezProtocol.js.map +0 -1
- package/v1/protocol/fa/tokens/KolibriUSDProtocol.d.ts +0 -18
- package/v1/protocol/fa/tokens/KolibriUSDProtocol.js +0 -117
- package/v1/protocol/fa/tokens/KolibriUSDProtocol.js.map +0 -1
- package/v1/protocol/fa/tokens/PlentyProtocol.d.ts +0 -18
- package/v1/protocol/fa/tokens/PlentyProtocol.js +0 -117
- package/v1/protocol/fa/tokens/PlentyProtocol.js.map +0 -1
- package/v1/protocol/fa/tokens/QuipuswapProtocol.d.ts +0 -14
- package/v1/protocol/fa/tokens/QuipuswapProtocol.js +0 -74
- package/v1/protocol/fa/tokens/QuipuswapProtocol.js.map +0 -1
- package/v1/protocol/fa/tokens/SiriusProtocol.d.ts +0 -14
- package/v1/protocol/fa/tokens/SiriusProtocol.js +0 -74
- package/v1/protocol/fa/tokens/SiriusProtocol.js.map +0 -1
- package/v1/protocol/fa/tokens/StakerProtocol.d.ts +0 -18
- package/v1/protocol/fa/tokens/StakerProtocol.js +0 -117
- package/v1/protocol/fa/tokens/StakerProtocol.js.map +0 -1
- package/v1/protocol/fa/tokens/TetherUSDProtocol.d.ts +0 -14
- package/v1/protocol/fa/tokens/TetherUSDProtocol.js +0 -74
- package/v1/protocol/fa/tokens/TetherUSDProtocol.js.map +0 -1
- package/v1/protocol/fa/tokens/TzBTCProtocol.d.ts +0 -14
- package/v1/protocol/fa/tokens/TzBTCProtocol.js +0 -74
- package/v1/protocol/fa/tokens/TzBTCProtocol.js.map +0 -1
- package/v1/protocol/fa/tokens/UBTCProtocol.d.ts +0 -14
- package/v1/protocol/fa/tokens/UBTCProtocol.js +0 -74
- package/v1/protocol/fa/tokens/UBTCProtocol.js.map +0 -1
- package/v1/protocol/fa/tokens/UDEFIProtocol.d.ts +0 -14
- package/v1/protocol/fa/tokens/UDEFIProtocol.js +0 -74
- package/v1/protocol/fa/tokens/UDEFIProtocol.js.map +0 -1
- package/v1/protocol/fa/tokens/USDTezProtocol.d.ts +0 -14
- package/v1/protocol/fa/tokens/USDTezProtocol.js +0 -74
- package/v1/protocol/fa/tokens/USDTezProtocol.js.map +0 -1
- package/v1/protocol/fa/tokens/UUSDProtocol.d.ts +0 -14
- package/v1/protocol/fa/tokens/UUSDProtocol.js +0 -74
- package/v1/protocol/fa/tokens/UUSDProtocol.js.map +0 -1
- package/v1/protocol/fa/tokens/WrapProtocol.d.ts +0 -14
- package/v1/protocol/fa/tokens/WrapProtocol.js +0 -74
- package/v1/protocol/fa/tokens/WrapProtocol.js.map +0 -1
- package/v1/protocol/fa/tokens/WrappedTezosProtocol.d.ts +0 -14
- package/v1/protocol/fa/tokens/WrappedTezosProtocol.js +0 -74
- package/v1/protocol/fa/tokens/WrappedTezosProtocol.js.map +0 -1
- package/v1/protocol/fa/tokens/YouProtocol.d.ts +0 -14
- package/v1/protocol/fa/tokens/YouProtocol.js +0 -74
- package/v1/protocol/fa/tokens/YouProtocol.js.map +0 -1
- package/v1/protocol/kt/TezosKtProtocol.d.ts +0 -17
- package/v1/protocol/kt/TezosKtProtocol.js +0 -501
- package/v1/protocol/kt/TezosKtProtocol.js.map +0 -1
- package/v1/protocol/sapling/TezosSaplingProtocol.d.ts +0 -103
- package/v1/protocol/sapling/TezosSaplingProtocol.js +0 -1031
- package/v1/protocol/sapling/TezosSaplingProtocol.js.map +0 -1
- package/v1/protocol/sapling/TezosShieldedTezProtocol.d.ts +0 -17
- package/v1/protocol/sapling/TezosShieldedTezProtocol.js +0 -185
- package/v1/protocol/sapling/TezosShieldedTezProtocol.js.map +0 -1
- package/v1/serializer/v3/schemas/converter/transaction-converter.d.ts +0 -13
- package/v1/serializer/v3/schemas/converter/transaction-converter.js +0 -59
- package/v1/serializer/v3/schemas/converter/transaction-converter.js.map +0 -1
- package/v1/serializer/v3/schemas/definitions/transaction-sign-request-tezos-sapling.d.ts +0 -4
- package/v1/serializer/v3/schemas/definitions/transaction-sign-request-tezos-sapling.js +0 -3
- package/v1/serializer/v3/schemas/definitions/transaction-sign-request-tezos-sapling.js.map +0 -1
- package/v1/serializer/v3/schemas/definitions/transaction-sign-request-tezos.d.ts +0 -8
- package/v1/serializer/v3/schemas/definitions/transaction-sign-request-tezos.js +0 -3
- package/v1/serializer/v3/schemas/definitions/transaction-sign-request-tezos.js.map +0 -1
- package/v1/serializer/v3/schemas/definitions/transaction-sign-response-tezos-sapling.d.ts +0 -3
- package/v1/serializer/v3/schemas/definitions/transaction-sign-response-tezos-sapling.js +0 -3
- package/v1/serializer/v3/schemas/definitions/transaction-sign-response-tezos-sapling.js.map +0 -1
- package/v1/serializer/v3/schemas/definitions/transaction-sign-response-tezos.d.ts +0 -3
- package/v1/serializer/v3/schemas/definitions/transaction-sign-response-tezos.js +0 -3
- package/v1/serializer/v3/schemas/definitions/transaction-sign-response-tezos.js.map +0 -1
- package/v1/serializer/v3/schemas/generated/transaction-sign-request-tezos-sapling.json +0 -145
- package/v1/serializer/v3/schemas/generated/transaction-sign-request-tezos.json +0 -29
- package/v1/serializer/v3/schemas/generated/transaction-sign-response-tezos-sapling.json +0 -19
- package/v1/serializer/v3/schemas/generated/transaction-sign-response-tezos.json +0 -19
- package/v1/serializer/v3/serializer-companion.d.ts +0 -15
- package/v1/serializer/v3/serializer-companion.js +0 -521
- package/v1/serializer/v3/serializer-companion.js.map +0 -1
- package/v1/serializer/v3/validators/transaction-validator.d.ts +0 -14
- package/v1/serializer/v3/validators/transaction-validator.js +0 -179
- package/v1/serializer/v3/validators/transaction-validator.js.map +0 -1
- package/v1/serializer/v3/validators/validators.d.ts +0 -4
- package/v1/serializer/v3/validators/validators.js +0 -108
- package/v1/serializer/v3/validators/validators.js.map +0 -1
- package/v1/types/address.d.ts +0 -7
- package/v1/types/address.js +0 -3
- package/v1/types/address.js.map +0 -1
- package/v1/types/block/TezosBlockHeader.d.ts +0 -13
- package/v1/types/block/TezosBlockHeader.js +0 -3
- package/v1/types/block/TezosBlockHeader.js.map +0 -1
- package/v1/types/block-explorer.d.ts +0 -6
- package/v1/types/block-explorer.js +0 -3
- package/v1/types/block-explorer.js.map +0 -1
- package/v1/types/contract/TezosContractCode.d.ts +0 -5
- package/v1/types/contract/TezosContractCode.js +0 -3
- package/v1/types/contract/TezosContractCode.js.map +0 -1
- package/v1/types/contract/TezosContractMetadata.d.ts +0 -61
- package/v1/types/contract/TezosContractMetadata.js +0 -3
- package/v1/types/contract/TezosContractMetadata.js.map +0 -1
- package/v1/types/contract/bigmap/BigMap.d.ts +0 -7
- package/v1/types/contract/bigmap/BigMap.js +0 -3
- package/v1/types/contract/bigmap/BigMap.js.map +0 -1
- package/v1/types/contract/bigmap/BigMapEnrtyFilter.d.ts +0 -5
- package/v1/types/contract/bigmap/BigMapEnrtyFilter.js +0 -3
- package/v1/types/contract/bigmap/BigMapEnrtyFilter.js.map +0 -1
- package/v1/types/contract/bigmap/BigMapEntry.d.ts +0 -8
- package/v1/types/contract/bigmap/BigMapEntry.js +0 -3
- package/v1/types/contract/bigmap/BigMapEntry.js.map +0 -1
- package/v1/types/contract/bigmap/BigMapRequest.d.ts +0 -10
- package/v1/types/contract/bigmap/BigMapRequest.js +0 -3
- package/v1/types/contract/bigmap/BigMapRequest.js.map +0 -1
- package/v1/types/fa/TezosFA1ContractEntrypoint.d.ts +0 -1
- package/v1/types/fa/TezosFA1ContractEntrypoint.js +0 -3
- package/v1/types/fa/TezosFA1ContractEntrypoint.js.map +0 -1
- package/v1/types/fa/TezosFA1p2ContractEntrypoint.d.ts +0 -2
- package/v1/types/fa/TezosFA1p2ContractEntrypoint.js +0 -3
- package/v1/types/fa/TezosFA1p2ContractEntrypoint.js.map +0 -1
- package/v1/types/fa/TezosFA2BalanceOfRequest.d.ts +0 -4
- package/v1/types/fa/TezosFA2BalanceOfRequest.js +0 -3
- package/v1/types/fa/TezosFA2BalanceOfRequest.js.map +0 -1
- package/v1/types/fa/TezosFA2BalanceOfResponse.d.ts +0 -5
- package/v1/types/fa/TezosFA2BalanceOfResponse.js +0 -3
- package/v1/types/fa/TezosFA2BalanceOfResponse.js.map +0 -1
- package/v1/types/fa/TezosFA2ContractEntrypoint.d.ts +0 -1
- package/v1/types/fa/TezosFA2ContractEntrypoint.js +0 -3
- package/v1/types/fa/TezosFA2ContractEntrypoint.js.map +0 -1
- package/v1/types/fa/TezosFA2TransferRequest.d.ts +0 -8
- package/v1/types/fa/TezosFA2TransferRequest.js +0 -3
- package/v1/types/fa/TezosFA2TransferRequest.js.map +0 -1
- package/v1/types/fa/TezosFA2UpdateOperatorRequest.d.ts +0 -6
- package/v1/types/fa/TezosFA2UpdateOperatorRequest.js +0 -3
- package/v1/types/fa/TezosFA2UpdateOperatorRequest.js.map +0 -1
- package/v1/types/fa/TezosFATokenMetadata.d.ts +0 -6
- package/v1/types/fa/TezosFATokenMetadata.js +0 -3
- package/v1/types/fa/TezosFATokenMetadata.js.map +0 -1
- package/v1/types/indexer.d.ts +0 -6
- package/v1/types/indexer.js +0 -3
- package/v1/types/indexer.js.map +0 -1
- package/v1/types/micheline/MichelineNode.d.ts +0 -15
- package/v1/types/micheline/MichelineNode.js +0 -5
- package/v1/types/micheline/MichelineNode.js.map +0 -1
- package/v1/types/micheline/MichelineNodeUtils.d.ts +0 -6
- package/v1/types/micheline/MichelineNodeUtils.js +0 -40
- package/v1/types/micheline/MichelineNodeUtils.js.map +0 -1
- package/v1/types/michelson/MichelsonType.d.ts +0 -11
- package/v1/types/michelson/MichelsonType.js +0 -22
- package/v1/types/michelson/MichelsonType.js.map +0 -1
- package/v1/types/michelson/MichelsonTypeMeta.d.ts +0 -33
- package/v1/types/michelson/MichelsonTypeMeta.js +0 -136
- package/v1/types/michelson/MichelsonTypeMeta.js.map +0 -1
- package/v1/types/michelson/MichelsonTypeUtils.d.ts +0 -19
- package/v1/types/michelson/MichelsonTypeUtils.js +0 -251
- package/v1/types/michelson/MichelsonTypeUtils.js.map +0 -1
- package/v1/types/michelson/generics/MichelsonList.d.ts +0 -11
- package/v1/types/michelson/generics/MichelsonList.js +0 -70
- package/v1/types/michelson/generics/MichelsonList.js.map +0 -1
- package/v1/types/michelson/generics/MichelsonMap.d.ts +0 -14
- package/v1/types/michelson/generics/MichelsonMap.js +0 -120
- package/v1/types/michelson/generics/MichelsonMap.js.map +0 -1
- package/v1/types/michelson/generics/MichelsonOption.d.ts +0 -25
- package/v1/types/michelson/generics/MichelsonOption.js +0 -121
- package/v1/types/michelson/generics/MichelsonOption.js.map +0 -1
- package/v1/types/michelson/generics/MichelsonOr.d.ts +0 -25
- package/v1/types/michelson/generics/MichelsonOr.js +0 -134
- package/v1/types/michelson/generics/MichelsonOr.js.map +0 -1
- package/v1/types/michelson/generics/MichelsonPair.d.ts +0 -17
- package/v1/types/michelson/generics/MichelsonPair.js +0 -139
- package/v1/types/michelson/generics/MichelsonPair.js.map +0 -1
- package/v1/types/michelson/grammar/MichelsonGrammarData.d.ts +0 -2
- package/v1/types/michelson/grammar/MichelsonGrammarData.js +0 -4
- package/v1/types/michelson/grammar/MichelsonGrammarData.js.map +0 -1
- package/v1/types/michelson/grammar/MichelsonGrammarInstruction.d.ts +0 -1
- package/v1/types/michelson/grammar/MichelsonGrammarInstruction.js +0 -4
- package/v1/types/michelson/grammar/MichelsonGrammarInstruction.js.map +0 -1
- package/v1/types/michelson/grammar/MichelsonGrammarType.d.ts +0 -1
- package/v1/types/michelson/grammar/MichelsonGrammarType.js +0 -4
- package/v1/types/michelson/grammar/MichelsonGrammarType.js.map +0 -1
- package/v1/types/michelson/primitives/MichelsonAddress.d.ts +0 -15
- package/v1/types/michelson/primitives/MichelsonAddress.js +0 -74
- package/v1/types/michelson/primitives/MichelsonAddress.js.map +0 -1
- package/v1/types/michelson/primitives/MichelsonBool.d.ts +0 -12
- package/v1/types/michelson/primitives/MichelsonBool.js +0 -59
- package/v1/types/michelson/primitives/MichelsonBool.js.map +0 -1
- package/v1/types/michelson/primitives/MichelsonBytes.d.ts +0 -14
- package/v1/types/michelson/primitives/MichelsonBytes.js +0 -77
- package/v1/types/michelson/primitives/MichelsonBytes.js.map +0 -1
- package/v1/types/michelson/primitives/MichelsonInt.d.ts +0 -14
- package/v1/types/michelson/primitives/MichelsonInt.js +0 -74
- package/v1/types/michelson/primitives/MichelsonInt.js.map +0 -1
- package/v1/types/michelson/primitives/MichelsonString.d.ts +0 -14
- package/v1/types/michelson/primitives/MichelsonString.js +0 -76
- package/v1/types/michelson/primitives/MichelsonString.js.map +0 -1
- package/v1/types/michelson/primitives/MichelsonUnit.d.ts +0 -9
- package/v1/types/michelson/primitives/MichelsonUnit.js +0 -55
- package/v1/types/michelson/primitives/MichelsonUnit.js.map +0 -1
- package/v1/types/network.d.ts +0 -4
- package/v1/types/network.js +0 -9
- package/v1/types/network.js.map +0 -1
- package/v1/types/node.d.ts +0 -78
- package/v1/types/node.js +0 -3
- package/v1/types/node.js.map +0 -1
- package/v1/types/operations/TezosOperationType.d.ts +0 -13
- package/v1/types/operations/TezosOperationType.js +0 -18
- package/v1/types/operations/TezosOperationType.js.map +0 -1
- package/v1/types/operations/TezosWrappedOperation.d.ts +0 -5
- package/v1/types/operations/TezosWrappedOperation.js +0 -3
- package/v1/types/operations/TezosWrappedOperation.js.map +0 -1
- package/v1/types/operations/kinds/ActivateAccount.d.ts +0 -7
- package/v1/types/operations/kinds/ActivateAccount.js +0 -3
- package/v1/types/operations/kinds/ActivateAccount.js.map +0 -1
- package/v1/types/operations/kinds/Ballot.d.ts +0 -9
- package/v1/types/operations/kinds/Ballot.js +0 -3
- package/v1/types/operations/kinds/Ballot.js.map +0 -1
- package/v1/types/operations/kinds/Delegation.d.ts +0 -11
- package/v1/types/operations/kinds/Delegation.js +0 -3
- package/v1/types/operations/kinds/Delegation.js.map +0 -1
- package/v1/types/operations/kinds/DoubleBakingEvidence.d.ts +0 -8
- package/v1/types/operations/kinds/DoubleBakingEvidence.js +0 -3
- package/v1/types/operations/kinds/DoubleBakingEvidence.js.map +0 -1
- package/v1/types/operations/kinds/DoubleEndorsementEvidence.d.ts +0 -16
- package/v1/types/operations/kinds/DoubleEndorsementEvidence.js +0 -3
- package/v1/types/operations/kinds/DoubleEndorsementEvidence.js.map +0 -1
- package/v1/types/operations/kinds/Endorsement.d.ts +0 -6
- package/v1/types/operations/kinds/Endorsement.js +0 -3
- package/v1/types/operations/kinds/Endorsement.js.map +0 -1
- package/v1/types/operations/kinds/Origination.d.ts +0 -13
- package/v1/types/operations/kinds/Origination.js +0 -3
- package/v1/types/operations/kinds/Origination.js.map +0 -1
- package/v1/types/operations/kinds/Proposal.d.ts +0 -7
- package/v1/types/operations/kinds/Proposal.js +0 -3
- package/v1/types/operations/kinds/Proposal.js.map +0 -1
- package/v1/types/operations/kinds/Reveal.d.ts +0 -11
- package/v1/types/operations/kinds/Reveal.js +0 -3
- package/v1/types/operations/kinds/Reveal.js.map +0 -1
- package/v1/types/operations/kinds/SeedNonceRevelation.d.ts +0 -7
- package/v1/types/operations/kinds/SeedNonceRevelation.js +0 -3
- package/v1/types/operations/kinds/SeedNonceRevelation.js.map +0 -1
- package/v1/types/operations/kinds/TezosOperation.d.ts +0 -4
- package/v1/types/operations/kinds/TezosOperation.js +0 -3
- package/v1/types/operations/kinds/TezosOperation.js.map +0 -1
- package/v1/types/operations/kinds/Transaction.d.ts +0 -24
- package/v1/types/operations/kinds/Transaction.js +0 -3
- package/v1/types/operations/kinds/Transaction.js.map +0 -1
- package/v1/types/protocol.d.ts +0 -62
- package/v1/types/protocol.js +0 -3
- package/v1/types/protocol.js.map +0 -1
- package/v1/types/sapling/TezosSaplingCiphertext.d.ts +0 -8
- package/v1/types/sapling/TezosSaplingCiphertext.js +0 -3
- package/v1/types/sapling/TezosSaplingCiphertext.js.map +0 -1
- package/v1/types/sapling/TezosSaplingExternalMethodProvider.d.ts +0 -10
- package/v1/types/sapling/TezosSaplingExternalMethodProvider.js +0 -3
- package/v1/types/sapling/TezosSaplingExternalMethodProvider.js.map +0 -1
- package/v1/types/sapling/TezosSaplingInput.d.ts +0 -6
- package/v1/types/sapling/TezosSaplingInput.js +0 -3
- package/v1/types/sapling/TezosSaplingInput.js.map +0 -1
- package/v1/types/sapling/TezosSaplingOutput.d.ts +0 -6
- package/v1/types/sapling/TezosSaplingOutput.js +0 -3
- package/v1/types/sapling/TezosSaplingOutput.js.map +0 -1
- package/v1/types/sapling/TezosSaplingStateDiff.d.ts +0 -6
- package/v1/types/sapling/TezosSaplingStateDiff.js +0 -3
- package/v1/types/sapling/TezosSaplingStateDiff.js.map +0 -1
- package/v1/types/sapling/TezosSaplingStateTree.d.ts +0 -7
- package/v1/types/sapling/TezosSaplingStateTree.js +0 -3
- package/v1/types/sapling/TezosSaplingStateTree.js.map +0 -1
- package/v1/types/sapling/TezosSaplingTransaction.d.ts +0 -23
- package/v1/types/sapling/TezosSaplingTransaction.js +0 -3
- package/v1/types/sapling/TezosSaplingTransaction.js.map +0 -1
- package/v1/types/sapling/TezosSaplingTransactionCursor.d.ts +0 -3
- package/v1/types/sapling/TezosSaplingTransactionCursor.js +0 -3
- package/v1/types/sapling/TezosSaplingTransactionCursor.js.map +0 -1
- package/v1/types/sapling/TezosSaplingTransactionResult.d.ts +0 -6
- package/v1/types/sapling/TezosSaplingTransactionResult.js +0 -3
- package/v1/types/sapling/TezosSaplingTransactionResult.js.map +0 -1
- package/v1/types/transaction.d.ts +0 -30
- package/v1/types/transaction.js +0 -3
- package/v1/types/transaction.js.map +0 -1
- package/v1/utils/address.d.ts +0 -2
- package/v1/utils/address.js +0 -13
- package/v1/utils/address.js.map +0 -1
- package/v1/utils/bip.d.ts +0 -2
- package/v1/utils/bip.js +0 -14
- package/v1/utils/bip.js.map +0 -1
- package/v1/utils/convert.d.ts +0 -4
- package/v1/utils/convert.js +0 -33
- package/v1/utils/convert.js.map +0 -1
- package/v1/utils/encoding.d.ts +0 -52
- package/v1/utils/encoding.js +0 -104
- package/v1/utils/encoding.js.map +0 -1
- package/v1/utils/fa.d.ts +0 -2
- package/v1/utils/fa.js +0 -13
- package/v1/utils/fa.js.map +0 -1
- package/v1/utils/key.d.ts +0 -4
- package/v1/utils/key.js +0 -43
- package/v1/utils/key.js.map +0 -1
- package/v1/utils/micheline.d.ts +0 -8
- package/v1/utils/micheline.js +0 -41
- package/v1/utils/micheline.js.map +0 -1
- package/v1/utils/operations.d.ts +0 -12
- package/v1/utils/operations.js +0 -72
- package/v1/utils/operations.js.map +0 -1
- package/v1/utils/pack.d.ts +0 -10
- package/v1/utils/pack.js +0 -252
- package/v1/utils/pack.js.map +0 -1
- package/v1/utils/protocol/fa/TezosFA1Accountant.d.ts +0 -9
- package/v1/utils/protocol/fa/TezosFA1Accountant.js +0 -76
- package/v1/utils/protocol/fa/TezosFA1Accountant.js.map +0 -1
- package/v1/utils/protocol/fa/TezosFA2Accountant.d.ts +0 -12
- package/v1/utils/protocol/fa/TezosFA2Accountant.js +0 -113
- package/v1/utils/protocol/fa/TezosFA2Accountant.js.map +0 -1
- package/v1/utils/protocol/fa/TezosFAAccountant.d.ts +0 -8
- package/v1/utils/protocol/fa/TezosFAAccountant.js +0 -95
- package/v1/utils/protocol/fa/TezosFAAccountant.js.map +0 -1
- package/v1/utils/protocol/sapling/TezosSaplingAccountant.d.ts +0 -32
- package/v1/utils/protocol/sapling/TezosSaplingAccountant.js +0 -589
- package/v1/utils/protocol/sapling/TezosSaplingAccountant.js.map +0 -1
- package/v1/utils/protocol/sapling/TezosSaplingEncoder.d.ts +0 -22
- package/v1/utils/protocol/sapling/TezosSaplingEncoder.js +0 -158
- package/v1/utils/protocol/sapling/TezosSaplingEncoder.js.map +0 -1
- package/v1/utils/protocol/sapling/TezosSaplingForger.d.ts +0 -27
- package/v1/utils/protocol/sapling/TezosSaplingForger.js +0 -304
- package/v1/utils/protocol/sapling/TezosSaplingForger.js.map +0 -1
- package/v1/utils/protocol/sapling/TezosSaplingState.d.ts +0 -17
- package/v1/utils/protocol/sapling/TezosSaplingState.js +0 -266
- package/v1/utils/protocol/sapling/TezosSaplingState.js.map +0 -1
- package/v1/utils/protocol/tezos/TezosAccountant.d.ts +0 -13
- package/v1/utils/protocol/tezos/TezosAccountant.js +0 -177
- package/v1/utils/protocol/tezos/TezosAccountant.js.map +0 -1
- package/v1/utils/protocol/tezos/TezosForger.d.ts +0 -6
- package/v1/utils/protocol/tezos/TezosForger.js +0 -82
- package/v1/utils/protocol/tezos/TezosForger.js.map +0 -1
- package/v1/utils/signature.d.ts +0 -2
- package/v1/utils/signature.js +0 -23
- package/v1/utils/signature.js.map +0 -1
- package/v1/utils/transaction.d.ts +0 -9
- package/v1/utils/transaction.js +0 -26
- package/v1/utils/transaction.js.map +0 -1
|
@@ -1,160 +0,0 @@
|
|
|
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
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
-
if (k2 === undefined) k2 = k;
|
|
19
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
20
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
21
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
22
|
-
}
|
|
23
|
-
Object.defineProperty(o, k2, desc);
|
|
24
|
-
}) : (function(o, m, k, k2) {
|
|
25
|
-
if (k2 === undefined) k2 = k;
|
|
26
|
-
o[k2] = m[k];
|
|
27
|
-
}));
|
|
28
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
29
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
30
|
-
}) : function(o, v) {
|
|
31
|
-
o["default"] = v;
|
|
32
|
-
});
|
|
33
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
34
|
-
if (mod && mod.__esModule) return mod;
|
|
35
|
-
var result = {};
|
|
36
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
37
|
-
__setModuleDefault(result, mod);
|
|
38
|
-
return result;
|
|
39
|
-
};
|
|
40
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
41
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
42
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
43
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
44
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
45
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
46
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
47
|
-
});
|
|
48
|
-
};
|
|
49
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
50
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
51
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
52
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
53
|
-
function step(op) {
|
|
54
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
55
|
-
while (_) try {
|
|
56
|
-
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;
|
|
57
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
58
|
-
switch (op[0]) {
|
|
59
|
-
case 0: case 1: t = op; break;
|
|
60
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
61
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
62
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
63
|
-
default:
|
|
64
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
65
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
66
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
67
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
68
|
-
if (t[2]) _.ops.pop();
|
|
69
|
-
_.trys.pop(); continue;
|
|
70
|
-
}
|
|
71
|
-
op = body.call(thisArg, _);
|
|
72
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
73
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
77
|
-
exports.TezosCryptoClient = void 0;
|
|
78
|
-
// @ts-ignore
|
|
79
|
-
var bs58 = __importStar(require("@airgap/coinlib-core/dependencies/src/bs58-4.0.1"));
|
|
80
|
-
// @ts-ignore
|
|
81
|
-
var bs58check = __importStar(require("@airgap/coinlib-core/dependencies/src/bs58check-2.1.2"));
|
|
82
|
-
var errors_1 = require("@airgap/coinlib-core/errors");
|
|
83
|
-
var coinlib_error_1 = require("@airgap/coinlib-core/errors/coinlib-error");
|
|
84
|
-
var Ed25519CryptoClient_1 = require("@airgap/coinlib-core/protocols/Ed25519CryptoClient");
|
|
85
|
-
var blake2b_1 = require("@stablelib/blake2b");
|
|
86
|
-
var ed25519_1 = require("@stablelib/ed25519");
|
|
87
|
-
var utf8_1 = require("@stablelib/utf8");
|
|
88
|
-
var TezosUtils_1 = require("./TezosUtils");
|
|
89
|
-
var TezosCryptoClient = /** @class */ (function (_super) {
|
|
90
|
-
__extends(TezosCryptoClient, _super);
|
|
91
|
-
function TezosCryptoClient(edsigPrefix) {
|
|
92
|
-
if (edsigPrefix === void 0) { edsigPrefix = new Uint8Array([9, 245, 205, 134, 18]); }
|
|
93
|
-
var _this = _super.call(this) || this;
|
|
94
|
-
_this.edsigPrefix = edsigPrefix;
|
|
95
|
-
return _this;
|
|
96
|
-
}
|
|
97
|
-
TezosCryptoClient.prototype.signMessage = function (message, keypair) {
|
|
98
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
99
|
-
var bufferMessage, hashBytes, rawSignature, signature;
|
|
100
|
-
return __generator(this, function (_a) {
|
|
101
|
-
bufferMessage = this.toBuffer(message);
|
|
102
|
-
hashBytes = this.hash(bufferMessage);
|
|
103
|
-
rawSignature = (0, ed25519_1.sign)(Buffer.from(keypair.privateKey, 'hex'), hashBytes);
|
|
104
|
-
signature = bs58check.encode(Buffer.concat([Buffer.from(this.edsigPrefix), Buffer.from(rawSignature)]));
|
|
105
|
-
return [2 /*return*/, signature];
|
|
106
|
-
});
|
|
107
|
-
});
|
|
108
|
-
};
|
|
109
|
-
TezosCryptoClient.prototype.operationSignature = function (privateKey, transaction) {
|
|
110
|
-
var watermarkedForgedOperationBytesHex = TezosUtils_1.TezosUtils.watermark.operation + transaction.binaryTransaction;
|
|
111
|
-
var watermarkedForgedOperationBytes = Buffer.from(watermarkedForgedOperationBytesHex, 'hex');
|
|
112
|
-
var hashedWatermarkedOpBytes = this.hash(watermarkedForgedOperationBytes);
|
|
113
|
-
return Buffer.from((0, ed25519_1.sign)(privateKey, hashedWatermarkedOpBytes));
|
|
114
|
-
};
|
|
115
|
-
TezosCryptoClient.prototype.verifyMessage = function (message, signature, publicKey) {
|
|
116
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
117
|
-
var rawSignature, edsigPrefixLength, decoded, bufferMessage, hashBytes, isValidSignature;
|
|
118
|
-
return __generator(this, function (_a) {
|
|
119
|
-
if (signature.startsWith('edsig')) {
|
|
120
|
-
edsigPrefixLength = this.edsigPrefix.length;
|
|
121
|
-
decoded = bs58check.decode(signature);
|
|
122
|
-
rawSignature = new Uint8Array(decoded.slice(edsigPrefixLength, decoded.length));
|
|
123
|
-
}
|
|
124
|
-
else {
|
|
125
|
-
throw new errors_1.InvalidValueError(coinlib_error_1.Domain.TEZOS, "invalid signature: ".concat(JSON.stringify(signature)));
|
|
126
|
-
}
|
|
127
|
-
bufferMessage = this.toBuffer(message);
|
|
128
|
-
hashBytes = this.hash(bufferMessage);
|
|
129
|
-
isValidSignature = (0, ed25519_1.verify)(Buffer.from(publicKey, 'hex'), hashBytes, rawSignature);
|
|
130
|
-
return [2 /*return*/, isValidSignature];
|
|
131
|
-
});
|
|
132
|
-
});
|
|
133
|
-
};
|
|
134
|
-
TezosCryptoClient.prototype.toBuffer = function (message) {
|
|
135
|
-
if (message.length % 2 !== 0) {
|
|
136
|
-
return Buffer.from((0, utf8_1.encode)(message));
|
|
137
|
-
}
|
|
138
|
-
var adjustedMessage = message;
|
|
139
|
-
if (message.startsWith('0x')) {
|
|
140
|
-
adjustedMessage = message.slice(2);
|
|
141
|
-
}
|
|
142
|
-
var buffer = Buffer.from(adjustedMessage, 'hex');
|
|
143
|
-
if (buffer.length === adjustedMessage.length / 2) {
|
|
144
|
-
return buffer;
|
|
145
|
-
}
|
|
146
|
-
return Buffer.from((0, utf8_1.encode)(message));
|
|
147
|
-
};
|
|
148
|
-
TezosCryptoClient.prototype.hash = function (message, size) {
|
|
149
|
-
if (size === void 0) { size = 32; }
|
|
150
|
-
return Buffer.from((0, blake2b_1.hash)(message, size));
|
|
151
|
-
};
|
|
152
|
-
TezosCryptoClient.prototype.blake2bLedgerHash = function (message) {
|
|
153
|
-
var buffer = this.toBuffer(message);
|
|
154
|
-
var hash = this.hash(buffer);
|
|
155
|
-
return bs58.encode(Buffer.from(hash));
|
|
156
|
-
};
|
|
157
|
-
return TezosCryptoClient;
|
|
158
|
-
}(Ed25519CryptoClient_1.Ed25519CryptoClient));
|
|
159
|
-
exports.TezosCryptoClient = TezosCryptoClient;
|
|
160
|
-
//# sourceMappingURL=TezosCryptoClient.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TezosCryptoClient.js","sourceRoot":"","sources":["../../../src/v0/protocol/TezosCryptoClient.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,aAAa;AACb,qFAAwE;AACxE,aAAa;AACb,+FAAkF;AAClF,sDAA+D;AAC/D,2EAAkE;AAClE,0FAAwF;AACxF,8CAAyC;AACzC,8CAAiD;AACjD,wCAAwC;AAIxC,2CAAyC;AAEzC;IAAuC,qCAAmB;IACxD,2BAA4B,WAAgE;QAAhE,4BAAA,EAAA,kBAA8B,UAAU,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;QAA5F,YACE,iBAAO,SACR;QAF2B,iBAAW,GAAX,WAAW,CAAqD;;IAE5F,CAAC;IAEY,uCAAW,GAAxB,UAAyB,OAAe,EAAE,OAA+B;;;;gBACjE,aAAa,GAAW,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAA;gBAE9C,SAAS,GAAW,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;gBAC5C,YAAY,GAAe,IAAA,cAAI,EAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,KAAK,CAAC,EAAE,SAAS,CAAC,CAAA;gBAClF,SAAS,GAAW,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAA;gBAErH,sBAAO,SAAS,EAAA;;;KACjB;IAEM,8CAAkB,GAAzB,UAA0B,UAAkB,EAAE,WAAgC;QAC5E,IAAM,kCAAkC,GAAW,uBAAU,CAAC,SAAS,CAAC,SAAS,GAAG,WAAW,CAAC,iBAAiB,CAAA;QACjH,IAAM,+BAA+B,GAAW,MAAM,CAAC,IAAI,CAAC,kCAAkC,EAAE,KAAK,CAAC,CAAA;QACtG,IAAM,wBAAwB,GAAW,IAAI,CAAC,IAAI,CAAC,+BAA+B,CAAC,CAAA;QAEnF,OAAO,MAAM,CAAC,IAAI,CAAC,IAAA,cAAI,EAAC,UAAU,EAAE,wBAAwB,CAAC,CAAC,CAAA;IAChE,CAAC;IAEY,yCAAa,GAA1B,UAA2B,OAAe,EAAE,SAAiB,EAAE,SAAiB;;;;gBAE9E,IAAI,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE;oBAC3B,iBAAiB,GAAW,IAAI,CAAC,WAAW,CAAC,MAAM,CAAA;oBACnD,OAAO,GAAW,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;oBAEnD,YAAY,GAAG,IAAI,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,iBAAiB,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,CAAA;iBAChF;qBAAM;oBACL,MAAM,IAAI,0BAAiB,CAAC,sBAAM,CAAC,KAAK,EAAE,6BAAsB,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAE,CAAC,CAAA;iBAC7F;gBAEK,aAAa,GAAW,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAA;gBAE9C,SAAS,GAAW,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;gBAC5C,gBAAgB,GAAY,IAAA,gBAAM,EAAC,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,EAAE,SAAS,EAAE,YAAY,CAAC,CAAA;gBAEhG,sBAAO,gBAAgB,EAAA;;;KACxB;IAEM,oCAAQ,GAAf,UAAgB,OAAe;QAC7B,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,KAAK,CAAC,EAAE;YAC5B,OAAO,MAAM,CAAC,IAAI,CAAC,IAAA,aAAM,EAAC,OAAO,CAAC,CAAC,CAAA;SACpC;QAED,IAAI,eAAe,GAAG,OAAO,CAAA;QAE7B,IAAI,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE;YAC5B,eAAe,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;SACnC;QAED,IAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,eAAe,EAAE,KAAK,CAAC,CAAA;QAElD,IAAI,MAAM,CAAC,MAAM,KAAK,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE;YAChD,OAAO,MAAM,CAAA;SACd;QAED,OAAO,MAAM,CAAC,IAAI,CAAC,IAAA,aAAM,EAAC,OAAO,CAAC,CAAC,CAAA;IACrC,CAAC;IAEM,gCAAI,GAAX,UAAY,OAAe,EAAE,IAAiB;QAAjB,qBAAA,EAAA,SAAiB;QAC5C,OAAO,MAAM,CAAC,IAAI,CAAC,IAAA,cAAI,EAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAA;IACzC,CAAC;IAEM,6CAAiB,GAAxB,UAAyB,OAAe;QACtC,IAAM,MAAM,GAAW,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAA;QAC7C,IAAM,IAAI,GAAW,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAEtC,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;IACvC,CAAC;IACH,wBAAC;AAAD,CAAC,AAxED,CAAuC,yCAAmB,GAwEzD;AAxEY,8CAAiB"}
|
|
@@ -1,349 +0,0 @@
|
|
|
1
|
-
import { ICoinSubProtocol } from '@airgap/coinlib-core';
|
|
2
|
-
import BigNumber from '@airgap/coinlib-core/dependencies/src/bignumber.js-9.0.0/bignumber';
|
|
3
|
-
import { IAirGapSignedTransaction } from '@airgap/coinlib-core/interfaces/IAirGapSignedTransaction';
|
|
4
|
-
import { AirGapTransactionStatus, IAirGapTransaction } from '@airgap/coinlib-core/interfaces/IAirGapTransaction';
|
|
5
|
-
import { DelegateeDetails, DelegationDetails, DelegatorDetails, ICoinDelegateProtocol } from '@airgap/coinlib-core/protocols/ICoinDelegateProtocol';
|
|
6
|
-
import { CurrencyUnit, FeeDefaults } from '@airgap/coinlib-core/protocols/ICoinProtocol';
|
|
7
|
-
import { NonExtendedProtocol } from '@airgap/coinlib-core/protocols/NonExtendedProtocol';
|
|
8
|
-
import { ProtocolSymbols } from '@airgap/coinlib-core/utils/ProtocolSymbols';
|
|
9
|
-
import { SignedTezosTransaction } from '../types/signed-transaction-tezos';
|
|
10
|
-
import { RawTezosTransaction } from '../types/transaction-tezos';
|
|
11
|
-
import { UnsignedTezosTransaction } from '../types/unsigned-transaction-tezos';
|
|
12
|
-
import { TezosCryptoClient } from './TezosCryptoClient';
|
|
13
|
-
import { TezosProtocolOptions } from './TezosProtocolOptions';
|
|
14
|
-
import { TezosRevealOperation } from './types/operations/Reveal';
|
|
15
|
-
import { TezosOperation } from './types/operations/TezosOperation';
|
|
16
|
-
import { TezosTransactionOperation } from './types/operations/Transaction';
|
|
17
|
-
import { TezosAddressCursor } from './types/TezosAddressCursor';
|
|
18
|
-
import { TezosAddressResult } from './types/TezosAddressResult';
|
|
19
|
-
import { TezosTransactionCursor } from './types/TezosTransactionCursor';
|
|
20
|
-
import { TezosTransactionResult } from './types/TezosTransactionResult';
|
|
21
|
-
import { TezosWrappedOperation } from './types/TezosWrappedOperation';
|
|
22
|
-
export interface TezosVotingInfo {
|
|
23
|
-
pkh: string;
|
|
24
|
-
rolls: number;
|
|
25
|
-
}
|
|
26
|
-
export interface BakerInfo {
|
|
27
|
-
balance: BigNumber;
|
|
28
|
-
delegatedBalance: BigNumber;
|
|
29
|
-
stakingBalance: BigNumber;
|
|
30
|
-
selfBond: BigNumber;
|
|
31
|
-
bakerCapacity: BigNumber;
|
|
32
|
-
bakerUsage: BigNumber;
|
|
33
|
-
}
|
|
34
|
-
export interface DelegationRewardInfo {
|
|
35
|
-
cycle: number;
|
|
36
|
-
reward: BigNumber;
|
|
37
|
-
deposit: BigNumber;
|
|
38
|
-
delegatedBalance: BigNumber;
|
|
39
|
-
stakingBalance: BigNumber;
|
|
40
|
-
totalRewards: BigNumber;
|
|
41
|
-
totalFees: BigNumber;
|
|
42
|
-
payout: Date;
|
|
43
|
-
}
|
|
44
|
-
export interface DelegationInfo {
|
|
45
|
-
isDelegated: boolean;
|
|
46
|
-
value?: string;
|
|
47
|
-
delegatedOpLevel?: number;
|
|
48
|
-
delegatedDate?: Date;
|
|
49
|
-
}
|
|
50
|
-
export declare enum TezosDelegatorAction {
|
|
51
|
-
DELEGATE = "delegate",
|
|
52
|
-
UNDELEGATE = "undelegate",
|
|
53
|
-
CHANGE_BAKER = "change_baker"
|
|
54
|
-
}
|
|
55
|
-
export interface TezosPayoutInfo {
|
|
56
|
-
delegator: string;
|
|
57
|
-
share: string;
|
|
58
|
-
payout: string;
|
|
59
|
-
balance: string;
|
|
60
|
-
}
|
|
61
|
-
export interface RunOperationBalanceUpdate {
|
|
62
|
-
kind: string;
|
|
63
|
-
contract: string;
|
|
64
|
-
change: string;
|
|
65
|
-
category: string;
|
|
66
|
-
delegate: string;
|
|
67
|
-
cycle?: number;
|
|
68
|
-
}
|
|
69
|
-
export interface RunOperationOperationBalanceUpdate {
|
|
70
|
-
kind: string;
|
|
71
|
-
contract: string;
|
|
72
|
-
change: string;
|
|
73
|
-
}
|
|
74
|
-
export interface RunOperationOperationResult {
|
|
75
|
-
status: string;
|
|
76
|
-
errors?: unknown;
|
|
77
|
-
balance_updates: RunOperationOperationBalanceUpdate[];
|
|
78
|
-
consumed_milligas: string;
|
|
79
|
-
paid_storage_size_diff?: string;
|
|
80
|
-
originated_contracts?: string[];
|
|
81
|
-
allocated_destination_contract?: boolean;
|
|
82
|
-
}
|
|
83
|
-
interface RunOperationInternalOperationResult {
|
|
84
|
-
result?: {
|
|
85
|
-
errors?: unknown;
|
|
86
|
-
consumed_milligas: string;
|
|
87
|
-
paid_storage_size_diff?: string;
|
|
88
|
-
originated_contracts?: string[];
|
|
89
|
-
allocated_destination_contract?: boolean;
|
|
90
|
-
};
|
|
91
|
-
parameters?: {
|
|
92
|
-
entrypoint: string;
|
|
93
|
-
value: unknown;
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
export interface RunOperationMetadata {
|
|
97
|
-
balance_updates: RunOperationBalanceUpdate[];
|
|
98
|
-
operation_result: RunOperationOperationResult;
|
|
99
|
-
internal_operation_results?: RunOperationInternalOperationResult[];
|
|
100
|
-
}
|
|
101
|
-
export declare enum TezosNetwork {
|
|
102
|
-
MAINNET = "mainnet",
|
|
103
|
-
GHOSTNET = "ghostnet"
|
|
104
|
-
}
|
|
105
|
-
export declare class TezosProtocol extends NonExtendedProtocol implements ICoinDelegateProtocol {
|
|
106
|
-
readonly options: TezosProtocolOptions;
|
|
107
|
-
symbol: string;
|
|
108
|
-
name: string;
|
|
109
|
-
marketSymbol: string;
|
|
110
|
-
feeSymbol: string;
|
|
111
|
-
decimals: number;
|
|
112
|
-
feeDecimals: number;
|
|
113
|
-
identifier: ProtocolSymbols;
|
|
114
|
-
feeDefaults: FeeDefaults;
|
|
115
|
-
units: CurrencyUnit[];
|
|
116
|
-
supportsHD: boolean;
|
|
117
|
-
standardDerivationPath: string;
|
|
118
|
-
addressIsCaseSensitive: boolean;
|
|
119
|
-
addressValidationPattern: string;
|
|
120
|
-
addressPlaceholder: string;
|
|
121
|
-
minCycleDuration: number;
|
|
122
|
-
protected readonly transactionFee: BigNumber;
|
|
123
|
-
protected readonly originationSize: BigNumber;
|
|
124
|
-
protected readonly storageCostPerByte: BigNumber;
|
|
125
|
-
protected readonly revealFee: BigNumber;
|
|
126
|
-
protected readonly activationBurn: BigNumber;
|
|
127
|
-
protected readonly originationBurn: BigNumber;
|
|
128
|
-
readonly cryptoClient: TezosCryptoClient;
|
|
129
|
-
get jsonRPCAPI(): string;
|
|
130
|
-
constructor(options?: TezosProtocolOptions);
|
|
131
|
-
getSymbol(): Promise<string>;
|
|
132
|
-
getName(): Promise<string>;
|
|
133
|
-
getMarketSymbol(): Promise<string>;
|
|
134
|
-
getFeeSymbol(): Promise<string>;
|
|
135
|
-
getDecimals(): Promise<number>;
|
|
136
|
-
getFeeDecimals(): Promise<number>;
|
|
137
|
-
getIdentifier(): Promise<ProtocolSymbols>;
|
|
138
|
-
getFeeDefaults(): Promise<FeeDefaults>;
|
|
139
|
-
getUnits(): Promise<CurrencyUnit[]>;
|
|
140
|
-
getSupportsHD(): Promise<boolean>;
|
|
141
|
-
getStandardDerivationPath(): Promise<string>;
|
|
142
|
-
getAddressIsCaseSensitive(): Promise<boolean>;
|
|
143
|
-
getAddressValidationPattern(): Promise<string>;
|
|
144
|
-
getAddressPlaceholder(): Promise<string>;
|
|
145
|
-
getOptions(): Promise<TezosProtocolOptions>;
|
|
146
|
-
getBlockExplorerLinkForAddress(address: string): Promise<string>;
|
|
147
|
-
getBlockExplorerLinkForTxId(txId: string): Promise<string>;
|
|
148
|
-
getPublicKeyFromMnemonic(mnemonic: string, derivationPath: string, password?: string): Promise<string>;
|
|
149
|
-
getPrivateKeyFromMnemonic(mnemonic: string, derivationPath: string, password?: string): Promise<string>;
|
|
150
|
-
/**
|
|
151
|
-
* Returns the PublicKey as String, derived from a supplied hex-string
|
|
152
|
-
* @param secret HEX-Secret from BIP39
|
|
153
|
-
* @param derivationPath DerivationPath for Key
|
|
154
|
-
*/
|
|
155
|
-
getPublicKeyFromHexSecret(secret: string, derivationPath: string): Promise<string>;
|
|
156
|
-
/**
|
|
157
|
-
* Returns the PrivateKey as Buffer, derived from a supplied hex-string
|
|
158
|
-
* @param secret HEX-Secret from BIP39
|
|
159
|
-
* @param derivationPath DerivationPath for Key
|
|
160
|
-
*/
|
|
161
|
-
getPrivateKeyFromHexSecret(secret: string, derivationPath: string): Promise<string>;
|
|
162
|
-
getAddressFromPublicKey(publicKey: string, cursor?: TezosAddressCursor): Promise<TezosAddressResult>;
|
|
163
|
-
getAddressesFromPublicKey(publicKey: string, cursor?: TezosAddressCursor): Promise<TezosAddressResult[]>;
|
|
164
|
-
getTransactionsFromPublicKey(publicKey: string, limit: number, cursor?: TezosTransactionCursor): Promise<TezosTransactionResult>;
|
|
165
|
-
getTransactionsFromAddresses(addresses: string[], limit: number, cursor?: TezosTransactionCursor): Promise<TezosTransactionResult>;
|
|
166
|
-
signWithPrivateKey(privateKey: string, transaction: RawTezosTransaction): Promise<IAirGapSignedTransaction>;
|
|
167
|
-
getTransactionDetails(unsignedTx: UnsignedTezosTransaction): Promise<IAirGapTransaction[]>;
|
|
168
|
-
getTransactionDetailsFromSigned(signedTx: SignedTezosTransaction): Promise<IAirGapTransaction[]>;
|
|
169
|
-
getAirGapTxFromWrappedOperations(wrappedOperations: TezosWrappedOperation): Promise<IAirGapTransaction[]>;
|
|
170
|
-
getBalanceOfAddresses(addresses: string[], _data?: any): Promise<string>;
|
|
171
|
-
getBalanceOfPublicKey(publicKey: string, data?: any): Promise<string>;
|
|
172
|
-
getBalanceOfPublicKeyForSubProtocols(publicKey: string, subProtocols: ICoinSubProtocol[]): Promise<string[]>;
|
|
173
|
-
getAvailableBalanceOfAddresses(addresses: string[], data?: any): Promise<string>;
|
|
174
|
-
estimateMaxTransactionValueFromPublicKey(publicKey: string, recipients: string[], fee?: string): Promise<string>;
|
|
175
|
-
private estimateMaxTansactionValueWithBalance;
|
|
176
|
-
estimateFeeDefaultsFromPublicKey(publicKey: string, recipients: string[], values: string[], _data?: any): Promise<FeeDefaults>;
|
|
177
|
-
estimateFeeDefaultsForOperations(publicKey: string, operations: TezosOperation[]): Promise<FeeDefaults>;
|
|
178
|
-
prepareTransactionFromPublicKey(publicKey: string, recipients: string[], values: string[], fee: string, data?: {
|
|
179
|
-
addressIndex: number;
|
|
180
|
-
}): Promise<RawTezosTransaction>;
|
|
181
|
-
prepareTransactionsFromPublicKey(publicKey: string, recipients: string[], values: string[], fee: string, data?: {
|
|
182
|
-
addressIndex: number;
|
|
183
|
-
}, operationsPerGroup?: number): Promise<RawTezosTransaction[]>;
|
|
184
|
-
protected getTransactionOperationDetails(transactionOperation: TezosTransactionOperation): Promise<Partial<IAirGapTransaction>[]>;
|
|
185
|
-
private createTransactionOperations;
|
|
186
|
-
forgeAndWrapOperations(tezosWrappedOperation: TezosWrappedOperation): Promise<RawTezosTransaction>;
|
|
187
|
-
getDefaultDelegatee(): Promise<string>;
|
|
188
|
-
getCurrentDelegateesForPublicKey(publicKey: string): Promise<string[]>;
|
|
189
|
-
getCurrentDelegateesForAddress(address: string): Promise<string[]>;
|
|
190
|
-
getDelegateeDetails(address: string): Promise<DelegateeDetails>;
|
|
191
|
-
isPublicKeyDelegating(publicKey: string): Promise<boolean>;
|
|
192
|
-
isAddressDelegating(address: string): Promise<boolean>;
|
|
193
|
-
getDelegatorDetailsFromPublicKey(publicKey: string): Promise<DelegatorDetails>;
|
|
194
|
-
getDelegatorDetailsFromAddress(address: string): Promise<DelegatorDetails>;
|
|
195
|
-
getDelegationDetailsFromPublicKey(publicKey: string, delegatees: string[]): Promise<DelegationDetails>;
|
|
196
|
-
getDelegationDetailsFromAddress(address: string, delegatees: string[]): Promise<DelegationDetails>;
|
|
197
|
-
private getDelegatorDetails;
|
|
198
|
-
prepareDelegatorActionFromPublicKey(publicKey: string, type: TezosDelegatorAction, data?: any): Promise<RawTezosTransaction[]>;
|
|
199
|
-
prepareOperations(publicKey: string, operationRequests: TezosOperation[], overrideParameters?: boolean): Promise<TezosWrappedOperation>;
|
|
200
|
-
estimateAndReplaceLimitsAndFee(tezosWrappedOperation: TezosWrappedOperation, overrideParameters?: boolean, startingCounter?: BigNumber): Promise<TezosWrappedOperation>;
|
|
201
|
-
getDelegationInfo(delegatedAddress: string, fetchExtraInfo?: boolean): Promise<DelegationInfo>;
|
|
202
|
-
bakerInfo(tzAddress: string | undefined): Promise<BakerInfo>;
|
|
203
|
-
getDelegationRewardsForAddress(address: string): Promise<DelegationRewardInfo[]>;
|
|
204
|
-
getDelegationRewards(bakerAddress: string, delegatorAddress?: string): Promise<DelegationRewardInfo[]>;
|
|
205
|
-
undelegate(publicKey: string): Promise<RawTezosTransaction>;
|
|
206
|
-
delegate(publicKey: string, delegate?: string | string[]): Promise<RawTezosTransaction>;
|
|
207
|
-
private getAmountUsedByPreviousOperations;
|
|
208
|
-
broadcastTransaction(rawTransaction: IAirGapSignedTransaction): Promise<string>;
|
|
209
|
-
protected checkAndRemovePrefixToHex(base58CheckEncodedPayload: string, tezosPrefix: Uint8Array): string;
|
|
210
|
-
unforgeSignedTezosWrappedOperation(hexString: string): Promise<TezosWrappedOperation>;
|
|
211
|
-
unforgeUnsignedTezosWrappedOperation(hexString: string): Promise<TezosWrappedOperation>;
|
|
212
|
-
forgeTezosOperation(tezosWrappedOperation: TezosWrappedOperation): Promise<string>;
|
|
213
|
-
createRevealOperation(counter: BigNumber, publicKey: string, address: string, fee?: string): Promise<TezosRevealOperation>;
|
|
214
|
-
getTezosVotingInfo(blockHash: string): Promise<TezosVotingInfo[]>;
|
|
215
|
-
fetchCurrentCycle(): Promise<number>;
|
|
216
|
-
private static readonly FIRST_010_CYCLE;
|
|
217
|
-
private static readonly BLOCKS_PER_CYCLE;
|
|
218
|
-
private static readonly TIME_BETWEEN_BLOCKS;
|
|
219
|
-
timeIntervalBetweenCycles(fromCycle: number, toCycle: number): number;
|
|
220
|
-
cycleToBlockLevel(cycle: number): number;
|
|
221
|
-
blockLevelToCycle(blockLevel: number): number;
|
|
222
|
-
private fetchBlockMetadata;
|
|
223
|
-
signMessage(message: string, keypair: {
|
|
224
|
-
privateKey: string;
|
|
225
|
-
}): Promise<string>;
|
|
226
|
-
verifyMessage(message: string, signature: string, publicKey: string): Promise<boolean>;
|
|
227
|
-
encryptAsymmetric(message: string, publicKey: string): Promise<string>;
|
|
228
|
-
decryptAsymmetric(message: string, keypair: {
|
|
229
|
-
publicKey: string;
|
|
230
|
-
privateKey: string;
|
|
231
|
-
}): Promise<string>;
|
|
232
|
-
encryptAES(message: string, privateKey: string): Promise<string>;
|
|
233
|
-
decryptAES(message: string, privateKey: string): Promise<string>;
|
|
234
|
-
getTransactionStatuses(transactionHashes: string[]): Promise<AirGapTransactionStatus[]>;
|
|
235
|
-
}
|
|
236
|
-
export interface TezosBakingRight {
|
|
237
|
-
level: number;
|
|
238
|
-
delegate: string;
|
|
239
|
-
priority: number;
|
|
240
|
-
}
|
|
241
|
-
export interface TezosBakingRewards {
|
|
242
|
-
totalBakingRewards: string;
|
|
243
|
-
rewardsDetails: {
|
|
244
|
-
level: number;
|
|
245
|
-
amount: string;
|
|
246
|
-
deposit: string;
|
|
247
|
-
fees?: string;
|
|
248
|
-
}[];
|
|
249
|
-
}
|
|
250
|
-
export interface TezosEndorsingRewards {
|
|
251
|
-
totalEndorsingRewards: string;
|
|
252
|
-
rewardsDetails: {
|
|
253
|
-
level: number;
|
|
254
|
-
amount: string;
|
|
255
|
-
deposit: string;
|
|
256
|
-
}[];
|
|
257
|
-
}
|
|
258
|
-
export interface TezosEndorsingRight {
|
|
259
|
-
level: number;
|
|
260
|
-
block_level?: number;
|
|
261
|
-
delegate: string;
|
|
262
|
-
number_of_slots: number;
|
|
263
|
-
}
|
|
264
|
-
export interface TezosRewardsCalculations {
|
|
265
|
-
calculateRewards(bakerAddress: string, cycle: number, breakDownRewards: boolean, currentCycleIn?: number): Promise<TezosRewards>;
|
|
266
|
-
}
|
|
267
|
-
export interface TezosRewards {
|
|
268
|
-
baker: string;
|
|
269
|
-
stakingBalance: string;
|
|
270
|
-
bakingRewards: string;
|
|
271
|
-
bakingDeposits: string;
|
|
272
|
-
endorsingDeposits: string;
|
|
273
|
-
endorsingRewards: string;
|
|
274
|
-
fees: string;
|
|
275
|
-
deposit: string;
|
|
276
|
-
totalRewards: string;
|
|
277
|
-
cycle: number;
|
|
278
|
-
snapshotBlockLevel: number;
|
|
279
|
-
delegatedContracts: string[];
|
|
280
|
-
bakingRewardsDetails: {
|
|
281
|
-
level: number;
|
|
282
|
-
amount: string;
|
|
283
|
-
deposit: string;
|
|
284
|
-
fees?: string;
|
|
285
|
-
}[];
|
|
286
|
-
endorsingRewardsDetails: {
|
|
287
|
-
level: number;
|
|
288
|
-
amount: string;
|
|
289
|
-
deposit: string;
|
|
290
|
-
}[];
|
|
291
|
-
endorsingRightsCount: number;
|
|
292
|
-
}
|
|
293
|
-
export interface TezosBakerInfo {
|
|
294
|
-
balance: string;
|
|
295
|
-
frozen_balance: string;
|
|
296
|
-
frozen_balance_by_cycle: TezosFrozenBalance[];
|
|
297
|
-
staking_balance: string;
|
|
298
|
-
delegated_contracts: string[];
|
|
299
|
-
delegated_balance: string;
|
|
300
|
-
deactivated: boolean;
|
|
301
|
-
grace_period: number;
|
|
302
|
-
}
|
|
303
|
-
export interface TezosFrozenBalance {
|
|
304
|
-
cycle: number;
|
|
305
|
-
deposit?: string;
|
|
306
|
-
deposits: string;
|
|
307
|
-
fees: string;
|
|
308
|
-
rewards: string;
|
|
309
|
-
}
|
|
310
|
-
export interface TezosNodeConstants {
|
|
311
|
-
proof_of_work_nonce_size: number;
|
|
312
|
-
nonce_length: number;
|
|
313
|
-
max_revelations_per_block: number;
|
|
314
|
-
max_operation_data_length: number;
|
|
315
|
-
max_proposals_per_delegate: number;
|
|
316
|
-
preserved_cycles: number;
|
|
317
|
-
blocks_per_cycle: number;
|
|
318
|
-
blocks_per_commitment: number;
|
|
319
|
-
blocks_per_roll_snapshot: number;
|
|
320
|
-
blocks_per_voting_period: number;
|
|
321
|
-
time_between_blocks: number[];
|
|
322
|
-
endorsers_per_block: number;
|
|
323
|
-
hard_gas_limit_per_operation: string;
|
|
324
|
-
hard_gas_limit_per_block: string;
|
|
325
|
-
proof_of_work_threshold: number;
|
|
326
|
-
tokens_per_roll: string;
|
|
327
|
-
michelson_maximum_type_size: number;
|
|
328
|
-
seed_nonce_revelation_tip: string;
|
|
329
|
-
origination_size: number;
|
|
330
|
-
block_security_deposit: string;
|
|
331
|
-
endorsement_security_deposit: string;
|
|
332
|
-
cost_per_byte: string;
|
|
333
|
-
hard_storage_limit_per_operation: string;
|
|
334
|
-
test_chain_duration: string;
|
|
335
|
-
quorum_min: number;
|
|
336
|
-
quorum_max: number;
|
|
337
|
-
min_proposal_quorum: number;
|
|
338
|
-
initial_endorsers: number;
|
|
339
|
-
delay_per_missing_endorsement: string;
|
|
340
|
-
}
|
|
341
|
-
export interface TezosNodeConstantsV1 extends TezosNodeConstants {
|
|
342
|
-
block_reward: string;
|
|
343
|
-
endorsement_reward: string;
|
|
344
|
-
}
|
|
345
|
-
export interface TezosNodeConstantsV2 extends TezosNodeConstants {
|
|
346
|
-
baking_reward_per_endorsement: string[];
|
|
347
|
-
endorsement_reward: string[];
|
|
348
|
-
}
|
|
349
|
-
export {};
|