@airgap/coinlib-core 0.12.7-beta.0 → 0.12.7
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/airgap-coinlib-core.min.js +313 -507
- package/index.d.ts +1 -2
- package/index.js +2 -4
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/protocols/ethereum/BaseEthereumProtocol.js.map +1 -1
- package/protocols/substrate/SubstrateDelegateProtocol.js.map +1 -1
- package/protocols/substrate/common/node/supported.d.ts +2 -2
- package/protocols/substrate/common/node/supported.js +14 -3
- package/protocols/substrate/common/node/supported.js.map +1 -1
- package/protocols/substrate/moonbeam/controllers/MoonbeamAccountController.js +42 -12
- package/protocols/substrate/moonbeam/controllers/MoonbeamAccountController.js.map +1 -1
- package/protocols/substrate/moonbeam/data/staking/MoonbeamCandidateMetadata.d.ts +28 -0
- package/protocols/substrate/moonbeam/data/staking/MoonbeamCandidateMetadata.js +49 -0
- package/protocols/substrate/moonbeam/data/staking/MoonbeamCandidateMetadata.js.map +1 -0
- package/protocols/substrate/moonbeam/data/staking/MoonbeamCollatorCandidate.js +1 -0
- package/protocols/substrate/moonbeam/data/staking/MoonbeamCollatorCandidate.js.map +1 -1
- package/protocols/substrate/moonbeam/moonbase/MoonbaseProtocolOptions.js +1 -1
- package/protocols/substrate/moonbeam/moonbase/MoonbaseProtocolOptions.js.map +1 -1
- package/protocols/substrate/moonbeam/node/MoonbeamNodeClient.d.ts +6 -2
- package/protocols/substrate/moonbeam/node/MoonbeamNodeClient.js +35 -5
- package/protocols/substrate/moonbeam/node/MoonbeamNodeClient.js.map +1 -1
- package/protocols/tezos/fa/TezosFA1Protocol.js +3 -4
- package/protocols/tezos/fa/TezosFA1Protocol.js.map +1 -1
- package/protocols/tezos/sapling/TezosSaplingProtocol.d.ts +4 -9
- package/protocols/tezos/sapling/TezosSaplingProtocol.js +67 -97
- package/protocols/tezos/sapling/TezosSaplingProtocol.js.map +1 -1
- package/protocols/tezos/sapling/TezosSaplingProtocolOptions.d.ts +7 -10
- package/protocols/tezos/sapling/TezosSaplingProtocolOptions.js +9 -39
- package/protocols/tezos/sapling/TezosSaplingProtocolOptions.js.map +1 -1
- package/protocols/tezos/sapling/utils/TezosSaplingBookkeeper.js +15 -22
- package/protocols/tezos/sapling/utils/TezosSaplingBookkeeper.js.map +1 -1
- package/protocols/tezos/types/michelson/MichelsonTypeUtils.js +1 -1
- package/protocols/tezos/types/michelson/MichelsonTypeUtils.js.map +1 -1
- package/serializer/schemas/definitions/unsigned-transaction-tezos-sapling.d.ts +1 -1
- package/serializer/serializer.js +0 -2
- package/serializer/serializer.js.map +1 -1
- package/serializer/types.d.ts +1 -1
- package/serializer-v3/message.js.map +1 -1
- package/serializer-v3/schemas/definitions/unsigned-transaction-tezos-sapling.d.ts +1 -1
- package/serializer-v3/schemas/generated/transaction-sign-request-tezos-sapling.json +1 -1
- package/serializer-v3/serializer.js +0 -2
- package/serializer-v3/serializer.js.map +1 -1
- package/serializer-v3/types.d.ts +1 -1
- package/utils/ProtocolSymbols.d.ts +0 -1
- package/utils/ProtocolSymbols.js +0 -1
- package/utils/ProtocolSymbols.js.map +1 -1
- package/utils/protocolOptionsByIdentifier.js +0 -4
- package/utils/protocolOptionsByIdentifier.js.map +1 -1
- package/protocols/tezos/sapling/TezosSaplingTokenProtocol.d.ts +0 -23
- package/protocols/tezos/sapling/TezosSaplingTokenProtocol.js +0 -234
- package/protocols/tezos/sapling/TezosSaplingTokenProtocol.js.map +0 -1
|
@@ -31023,7 +31023,7 @@ var ImportAccountAction = /** @class */ (function (_super) {
|
|
|
31023
31023
|
}(Action_1.Action));
|
|
31024
31024
|
exports.ImportAccountAction = ImportAccountAction;
|
|
31025
31025
|
|
|
31026
|
-
},{"../protocols/tezos/kt/TezosKtProtocol":
|
|
31026
|
+
},{"../protocols/tezos/kt/TezosKtProtocol":670,"./Action":202}],204:[function(require,module,exports){
|
|
31027
31027
|
"use strict";
|
|
31028
31028
|
var __extends = (this && this.__extends) || (function () {
|
|
31029
31029
|
var extendStatics = function (d, b) {
|
|
@@ -124028,8 +124028,8 @@ exports.InvalidString = InvalidString;
|
|
|
124028
124028
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
124029
124029
|
exports.EthereumAddress = exports.EthereumERC20ProtocolOptions = exports.EthereumERC20ProtocolConfig = exports.EthereumProtocolOptions = exports.EthereumProtocolConfig = exports.EthereumProtocolNetwork = exports.EtherscanBlockExplorer = exports.EthereumProtocolNetworkExtras = exports.EthereumCryptoClient = exports.GenericERC20 = exports.EthereumClassicProtocol = exports.EthereumRopstenProtocol = exports.EthereumProtocol = exports.CosmosTransaction = exports.CosmosAddress = exports.CosmosDelegationActionType = exports.CosmosProtocolOptions = exports.CosmosProtocolConfig = exports.CosmosProtocolNetwork = exports.MintscanBlockExplorer = exports.CosmosCryptoClient = exports.CosmosProtocol = exports.BitcoinSegwitAddress = exports.BitcoinSegwitProtocol = exports.BitcoinAddress = exports.BitcoinProtocolOptions = exports.BitcoinProtocolConfig = exports.BitcoinProtocolNetwork = exports.BlockcypherBlockExplorer = exports.BitcoinProtocolNetworkExtras = exports.BitcoinCryptoClient = exports.BitcoinTestnetProtocol = exports.BitcoinProtocol = exports.AeternityAddress = exports.AeternityProtocolNetwork = exports.AeternalBlockExplorer = exports.AeternityProtocolOptions = exports.AeternityCryptoClient = exports.AeternityProtocol = exports.NetworkType = exports.SubProtocolSymbols = exports.MainProtocolSymbols = exports.ProtocolNetwork = exports.ProtocolBlockExplorer = exports.CryptoClient = exports.AirGapNFTWallet = exports.AirGapWalletStatus = exports.AirGapCoinWallet = exports.AirGapMarketWallet = exports.AirGapWallet = void 0;
|
|
124030
124030
|
exports.TezosFAProtocol = exports.TezosKtProtocol = exports.TezosProtocol = exports.SubstrateAddress = exports.SubstrateTransaction = exports.SubstrateStakingActionType = exports.SubstrateNominationStatus = exports.SubstrateElectionStatus = exports.MoonriverProtocolOptions = exports.MoonriverProtocolNetwork = exports.MoonriverProtocolConfig = exports.MoonriverSubscanBlockExplorer = exports.MoonriverProtocolNetworkExtras = exports.MoonbaseProtocolOptions = exports.MoonbaseProtocolNetwork = exports.MoonbaseProtocolConfig = exports.MoonbaseSubscanBlockExplorer = exports.MoonbaseProtocolNetworkExtras = exports.PolkadotProtocolOptions = exports.PolkadotProtocolNetwork = exports.PolkadotProtocolConfig = exports.PolkadotSubscanBlockExplorer = exports.PolkadotProtocolNetworkExtras = exports.KusamaProtocolOptions = exports.KusamaProtocolNetwork = exports.KusamaProtocolConfig = exports.KusamaPolkascanBlockExplorer = exports.KusamaProtocolNetworkExtras = exports.SubstrateNodeClient = exports.SubstrateProtocolOptions = exports.SubstrateProtocolNetwork = exports.SubstrateProtocolConfig = exports.SubstrateProtocolNetworkExtras = exports.SubstrateCryptoClient = exports.SubstratePayee = exports.SubstrateNetwork = exports.MoonriverProtocol = exports.MoonbaseProtocol = exports.MoonbeamProtocol = exports.KusamaProtocol = exports.PolkadotProtocol = exports.SubstrateDelegateProtocol = exports.SubstrateProtocol = exports.GroestlcoinProtocolOptions = exports.GroestlcoinProtocolConfig = exports.GroestlcoinProtocolNetwork = exports.CryptoidBlockExplorer = exports.GroestlcoinProtocolNetworkExtras = exports.GroestlcoinTestnetProtocol = exports.GroestlcoinProtocol = void 0;
|
|
124031
|
-
exports.TezosDomains = exports.TezosAddress = exports.TezosUtils = exports.TezosShieldedTezProtocolConfig = exports.TezosSaplingProtocolConfig = exports.TezosSaplingProtocolOptions = exports.
|
|
124032
|
-
exports.bufferFrom = exports.assertNever = exports.SubProtocolType = exports.TimeInterval = exports.generateIdV2 = exports.generateId = exports.addSubProtocol = exports.isCoinlibReady = exports.ProtocolVersionMismatch = exports.Domain = exports.NetworkError = exports.ProtocolNotSupported = exports.SerializerVersionMismatch = exports.TypeNotSupported = exports.isSubProtocolSymbol = exports.isMainProtocolSymbol = exports.isProtocolSymbol = exports.supportedProtocols = exports.getSubProtocolsByIdentifier = exports.getProtocolByIdentifier = exports.addSupportedProtocol = exports.getProtocolOptionsByIdentifier = exports.isNetworkEqual = exports.ImportAccountAction = exports.SimpleAction = exports.LinkedAction = exports.RepeatableAction = exports.Action = exports.Message = exports.SerializerV3 = exports.Serializer =
|
|
124031
|
+
exports.IACMessageType = exports.TezosDomains = exports.TezosAddress = exports.TezosUtils = exports.TezosShieldedTezProtocolConfig = exports.TezosSaplingProtocolConfig = exports.TezosSaplingProtocolOptions = exports.TezosShieldedTezProtocol = exports.TezosSaplingProtocol = exports.TezosNetwork = exports.TezosFA2ProtocolOptions = exports.TezosFAProtocolOptions = exports.TezosQUIPUProtocolConfig = exports.TezosWRAPProtocolConfig = exports.TezosUDEFIProtocolConfig = exports.TezosPlentyProtocolConfig = exports.TezosCTezProtocolConfig = exports.TezosUSDProtocolConfig = exports.TezosStakerProtocolConfig = exports.TezosKolibriUSDProtocolConfig = exports.TezosWrappedProtocolConfig = exports.TezosYOUProtocolConfig = exports.TezosUUSDProtocolConfig = exports.TezosETHProtocolConfig = exports.TezosBTCProtocolConfig = exports.TezosFA2ProtocolConfig = exports.TezosFAProtocolConfig = exports.TezosProtocolOptions = exports.TezosProtocolConfig = exports.TezosProtocolNetwork = exports.TezblockBlockExplorer = exports.TezosProtocolNetworkExtras = exports.TezosCryptoClient = exports.TezosDelegatorAction = exports.TezosQUIPU = exports.TezosPlenty = exports.TezosCTez = exports.TezosKolibriUSD = exports.TezosWRAP = exports.TezosWrapped = exports.TezosUDEFI = exports.TezosYOU = exports.TezosUUSD = exports.TezosETH = exports.TezosUSD = exports.TezosStaker = exports.TezosBTC = exports.TezosFA2Protocol = exports.TezosFA1p2Protocol = exports.TezosFA1Protocol = void 0;
|
|
124032
|
+
exports.bufferFrom = exports.assertNever = exports.SubProtocolType = exports.TimeInterval = exports.generateIdV2 = exports.generateId = exports.addSubProtocol = exports.isCoinlibReady = exports.ProtocolVersionMismatch = exports.Domain = exports.NetworkError = exports.ProtocolNotSupported = exports.SerializerVersionMismatch = exports.TypeNotSupported = exports.isSubProtocolSymbol = exports.isMainProtocolSymbol = exports.isProtocolSymbol = exports.supportedProtocols = exports.getSubProtocolsByIdentifier = exports.getProtocolByIdentifier = exports.addSupportedProtocol = exports.getProtocolOptionsByIdentifier = exports.isNetworkEqual = exports.ImportAccountAction = exports.SimpleAction = exports.LinkedAction = exports.RepeatableAction = exports.Action = exports.Message = exports.SerializerV3 = exports.Serializer = void 0;
|
|
124033
124033
|
// tslint:disable:ordered-imports
|
|
124034
124034
|
// This needs to be imported first, otherwise the tests won't run anymore
|
|
124035
124035
|
var EthereumProtocol_1 = require("./protocols/ethereum/EthereumProtocol");
|
|
@@ -124229,8 +124229,6 @@ var TezosFA1p2Protocol_1 = require("./protocols/tezos/fa/TezosFA1p2Protocol");
|
|
|
124229
124229
|
Object.defineProperty(exports, "TezosFA1p2Protocol", { enumerable: true, get: function () { return TezosFA1p2Protocol_1.TezosFA1p2Protocol; } });
|
|
124230
124230
|
var TezosSaplingProtocol_1 = require("./protocols/tezos/sapling/TezosSaplingProtocol");
|
|
124231
124231
|
Object.defineProperty(exports, "TezosSaplingProtocol", { enumerable: true, get: function () { return TezosSaplingProtocol_1.TezosSaplingProtocol; } });
|
|
124232
|
-
var TezosSaplingTokenProtocol_1 = require("./protocols/tezos/sapling/TezosSaplingTokenProtocol");
|
|
124233
|
-
Object.defineProperty(exports, "TezosSaplingTokenProtocol", { enumerable: true, get: function () { return TezosSaplingTokenProtocol_1.TezosSaplingTokenProtocol; } });
|
|
124234
124232
|
var TezosShieldedTezProtocol_1 = require("./protocols/tezos/sapling/TezosShieldedTezProtocol");
|
|
124235
124233
|
Object.defineProperty(exports, "TezosShieldedTezProtocol", { enumerable: true, get: function () { return TezosShieldedTezProtocol_1.TezosShieldedTezProtocol; } });
|
|
124236
124234
|
var GetKtAccountsAction_1 = require("./actions/GetKtAccountsAction");
|
|
@@ -124321,7 +124319,7 @@ var TezosQUIPU_1 = require("./protocols/tezos/fa/TezosQUIPU");
|
|
|
124321
124319
|
Object.defineProperty(exports, "TezosQUIPU", { enumerable: true, get: function () { return TezosQUIPU_1.TezosQUIPU; } });
|
|
124322
124320
|
Object.defineProperty(exports, "TezosQUIPUProtocolConfig", { enumerable: true, get: function () { return TezosQUIPU_1.TezosQUIPUProtocolConfig; } });
|
|
124323
124321
|
|
|
124324
|
-
},{"./actions/Action":202,"./actions/GetKtAccountsAction":203,"./actions/LinkedAction":204,"./actions/RepeatableAction":205,"./actions/SimpleAction":206,"./errors":478,"./errors/coinlib-error":477,"./protocols/CryptoClient":481,"./protocols/ICoinSubProtocol":483,"./protocols/aeternity/AeternityAddress":487,"./protocols/aeternity/AeternityCryptoClient":488,"./protocols/aeternity/AeternityProtocol":489,"./protocols/aeternity/AeternityProtocolOptions":490,"./protocols/bitcoin/BitcoinAddress":491,"./protocols/bitcoin/BitcoinCryptoClient":492,"./protocols/bitcoin/BitcoinProtocol":493,"./protocols/bitcoin/BitcoinProtocolOptions":494,"./protocols/bitcoin/BitcoinSegwitAddress":495,"./protocols/bitcoin/BitcoinSegwitProtocol":496,"./protocols/bitcoin/BitcoinTestnetProtocol":497,"./protocols/cosmos/CosmosAddress":498,"./protocols/cosmos/CosmosCryptoClient":500,"./protocols/cosmos/CosmosProtocol":503,"./protocols/cosmos/CosmosProtocolOptions":504,"./protocols/cosmos/CosmosTransaction":505,"./protocols/ethereum/EthereumAddress":511,"./protocols/ethereum/EthereumClassicProtocol":512,"./protocols/ethereum/EthereumCryptoClient":513,"./protocols/ethereum/EthereumProtocol":514,"./protocols/ethereum/EthereumProtocolOptions":515,"./protocols/ethereum/EthereumRopstenProtocol":516,"./protocols/ethereum/erc20/GenericERC20":521,"./protocols/groestlcoin/GroestlcoinProtocol":523,"./protocols/groestlcoin/GroestlcoinProtocolOptions":524,"./protocols/groestlcoin/GroestlcoinTestnetProtocol":525,"./protocols/substrate/SubstrateCryptoClient":526,"./protocols/substrate/SubstrateDelegateProtocol":527,"./protocols/substrate/SubstrateNetwork":528,"./protocols/substrate/SubstrateProtocol":529,"./protocols/substrate/SubstrateProtocolOptions":530,"./protocols/substrate/common/data/account/SubstrateAddress":535,"./protocols/substrate/common/data/staking/SubstrateEraElectionStatus":594,"./protocols/substrate/common/data/staking/SubstrateNominationStatus":597,"./protocols/substrate/common/data/staking/SubstratePayee":599,"./protocols/substrate/common/data/staking/SubstrateStakingActionType":601,"./protocols/substrate/common/data/transaction/SubstrateTransaction":605,"./protocols/substrate/common/node/SubstrateNodeClient":609,"./protocols/substrate/kusama/KusamaProtocol":614,"./protocols/substrate/kusama/KusamaProtocolOptions":615,"./protocols/substrate/moonbeam/MoonbeamProtocol":616,"./protocols/substrate/moonbeam/moonbase/MoonbaseProtocol":
|
|
124322
|
+
},{"./actions/Action":202,"./actions/GetKtAccountsAction":203,"./actions/LinkedAction":204,"./actions/RepeatableAction":205,"./actions/SimpleAction":206,"./errors":478,"./errors/coinlib-error":477,"./protocols/CryptoClient":481,"./protocols/ICoinSubProtocol":483,"./protocols/aeternity/AeternityAddress":487,"./protocols/aeternity/AeternityCryptoClient":488,"./protocols/aeternity/AeternityProtocol":489,"./protocols/aeternity/AeternityProtocolOptions":490,"./protocols/bitcoin/BitcoinAddress":491,"./protocols/bitcoin/BitcoinCryptoClient":492,"./protocols/bitcoin/BitcoinProtocol":493,"./protocols/bitcoin/BitcoinProtocolOptions":494,"./protocols/bitcoin/BitcoinSegwitAddress":495,"./protocols/bitcoin/BitcoinSegwitProtocol":496,"./protocols/bitcoin/BitcoinTestnetProtocol":497,"./protocols/cosmos/CosmosAddress":498,"./protocols/cosmos/CosmosCryptoClient":500,"./protocols/cosmos/CosmosProtocol":503,"./protocols/cosmos/CosmosProtocolOptions":504,"./protocols/cosmos/CosmosTransaction":505,"./protocols/ethereum/EthereumAddress":511,"./protocols/ethereum/EthereumClassicProtocol":512,"./protocols/ethereum/EthereumCryptoClient":513,"./protocols/ethereum/EthereumProtocol":514,"./protocols/ethereum/EthereumProtocolOptions":515,"./protocols/ethereum/EthereumRopstenProtocol":516,"./protocols/ethereum/erc20/GenericERC20":521,"./protocols/groestlcoin/GroestlcoinProtocol":523,"./protocols/groestlcoin/GroestlcoinProtocolOptions":524,"./protocols/groestlcoin/GroestlcoinTestnetProtocol":525,"./protocols/substrate/SubstrateCryptoClient":526,"./protocols/substrate/SubstrateDelegateProtocol":527,"./protocols/substrate/SubstrateNetwork":528,"./protocols/substrate/SubstrateProtocol":529,"./protocols/substrate/SubstrateProtocolOptions":530,"./protocols/substrate/common/data/account/SubstrateAddress":535,"./protocols/substrate/common/data/staking/SubstrateEraElectionStatus":594,"./protocols/substrate/common/data/staking/SubstrateNominationStatus":597,"./protocols/substrate/common/data/staking/SubstratePayee":599,"./protocols/substrate/common/data/staking/SubstrateStakingActionType":601,"./protocols/substrate/common/data/transaction/SubstrateTransaction":605,"./protocols/substrate/common/node/SubstrateNodeClient":609,"./protocols/substrate/kusama/KusamaProtocol":614,"./protocols/substrate/kusama/KusamaProtocolOptions":615,"./protocols/substrate/moonbeam/MoonbeamProtocol":616,"./protocols/substrate/moonbeam/moonbase/MoonbaseProtocol":631,"./protocols/substrate/moonbeam/moonbase/MoonbaseProtocolOptions":632,"./protocols/substrate/moonbeam/moonriver/MoonriverProtocol":633,"./protocols/substrate/moonbeam/moonriver/MoonriverProtocolOptions":634,"./protocols/substrate/polkadot/PolkadotProtocol":637,"./protocols/substrate/polkadot/PolkadotProtocolOptions":638,"./protocols/tezos/TezosAddress":639,"./protocols/tezos/TezosCryptoClient":640,"./protocols/tezos/TezosProtocol":641,"./protocols/tezos/TezosProtocolOptions":642,"./protocols/tezos/TezosUtils":643,"./protocols/tezos/domains/TezosDomains":650,"./protocols/tezos/fa/TezosBTC":651,"./protocols/tezos/fa/TezosCTez":652,"./protocols/tezos/fa/TezosETHtz":653,"./protocols/tezos/fa/TezosFA1Protocol":654,"./protocols/tezos/fa/TezosFA1p2Protocol":655,"./protocols/tezos/fa/TezosFA2Protocol":656,"./protocols/tezos/fa/TezosFAProtocol":657,"./protocols/tezos/fa/TezosFAProtocolOptions":658,"./protocols/tezos/fa/TezosKolibriUSD":659,"./protocols/tezos/fa/TezosPlanty":660,"./protocols/tezos/fa/TezosQUIPU":661,"./protocols/tezos/fa/TezosStaker":662,"./protocols/tezos/fa/TezosUDEFI":663,"./protocols/tezos/fa/TezosUSD":664,"./protocols/tezos/fa/TezosUUSD":665,"./protocols/tezos/fa/TezosWRAP":666,"./protocols/tezos/fa/TezosWrapped":667,"./protocols/tezos/fa/TezosYOU":668,"./protocols/tezos/kt/TezosKtProtocol":670,"./protocols/tezos/sapling/TezosSaplingProtocol":676,"./protocols/tezos/sapling/TezosSaplingProtocolOptions":677,"./protocols/tezos/sapling/TezosShieldedTezProtocol":678,"./serializer-v3/serializer":726,"./serializer-v3/utils/generateId":734,"./serializer/interfaces":740,"./serializer/message":741,"./serializer/serializer":762,"./serializer/utils/generateId":770,"./utils/Network":776,"./utils/ProtocolBlockExplorer":777,"./utils/ProtocolNetwork":778,"./utils/ProtocolSymbols":779,"./utils/assert":781,"./utils/buffer":784,"./utils/coinlibReady":786,"./utils/protocolOptionsByIdentifier":791,"./utils/protocolsByIdentifier":792,"./utils/subProtocols":800,"./utils/supportedProtocols":801,"./wallet/AirGapCoinWallet":804,"./wallet/AirGapMarketWallet":805,"./wallet/AirGapNFTWallet":806,"./wallet/AirGapWallet":807}],480:[function(require,module,exports){
|
|
124325
124323
|
"use strict";
|
|
124326
124324
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
124327
124325
|
exports.AirGapTransactionWarningType = exports.AirGapTransactionStatus = exports.AirGapTransactionType = void 0;
|
|
@@ -134459,7 +134457,7 @@ var SubstrateTransactionController = /** @class */ (function () {
|
|
|
134459
134457
|
exports.SubstrateTransactionController = SubstrateTransactionController;
|
|
134460
134458
|
|
|
134461
134459
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
134462
|
-
},{"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../../dependencies/src/keccak-1.0.2/js":404,"../../../dependencies/src/secp256k1-4.0.2/elliptic":449,"../../../errors":478,"../../../errors/coinlib-error":477,"../../../utils/blake2b":783,"../compat/SubstrateCompatAddress":611,"../moonbeam/data/transaction/MoonbeamSignature":
|
|
134460
|
+
},{"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../../dependencies/src/keccak-1.0.2/js":404,"../../../dependencies/src/secp256k1-4.0.2/elliptic":449,"../../../errors":478,"../../../errors/coinlib-error":477,"../../../utils/blake2b":783,"../compat/SubstrateCompatAddress":611,"../moonbeam/data/transaction/MoonbeamSignature":630,"./data/scale/SCALEDecoder":576,"./data/scale/type/SCALEArray":578,"./data/scale/type/SCALEBytes":580,"./data/scale/type/SCALECompactInt":582,"./data/scale/type/SCALEEnum":584,"./data/scale/type/SCALEInt":587,"./data/scale/type/SCALEOptional":589,"./data/scale/type/SCALEString":590,"./data/transaction/SubstrateSignature":604,"./data/transaction/SubstrateTransaction":605,"./data/transaction/SubstrateTransactionPayload":606,"./data/transaction/method/SubstrateTransactionMethod":607,"@polkadot/wasm-crypto":960,"buffer":67}],533:[function(require,module,exports){
|
|
134463
134461
|
"use strict";
|
|
134464
134462
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
134465
134463
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -141033,7 +141031,15 @@ exports.supportedStorageEntries = {
|
|
|
141033
141031
|
Session: ['Validators'],
|
|
141034
141032
|
System: ['Account'],
|
|
141035
141033
|
// Moonbeam
|
|
141036
|
-
ParachainStaking: [
|
|
141034
|
+
ParachainStaking: [
|
|
141035
|
+
'CollatorCommission',
|
|
141036
|
+
'CandidateInfo',
|
|
141037
|
+
'DelegatorState',
|
|
141038
|
+
'Round',
|
|
141039
|
+
'SelectedCandidates',
|
|
141040
|
+
// TODO: Remove once Moonriver and Moonbeam are updated to runtime 1200.
|
|
141041
|
+
'CandidateState'
|
|
141042
|
+
]
|
|
141037
141043
|
};
|
|
141038
141044
|
exports.supportedCalls = {
|
|
141039
141045
|
Balances: ['transfer'],
|
|
@@ -141072,14 +141078,17 @@ exports.supportedConstants = {
|
|
|
141072
141078
|
// Moonbeam
|
|
141073
141079
|
ParachainStaking: [
|
|
141074
141080
|
'DefaultBlocksPerRound',
|
|
141075
|
-
'
|
|
141081
|
+
'MaxTopDelegationsPerCandidate',
|
|
141082
|
+
'MaxBottomDelegationsPerCandidate',
|
|
141076
141083
|
'MaxDelegationsPerDelegator',
|
|
141077
141084
|
'MinDelegation',
|
|
141078
141085
|
'MinDelegatorStk',
|
|
141079
141086
|
'CandidateBondLessDelay',
|
|
141080
141087
|
'LeaveDelegatorsDelay',
|
|
141081
141088
|
'RevokeDelegationDelay',
|
|
141082
|
-
'DelegationBondLessDelay'
|
|
141089
|
+
'DelegationBondLessDelay',
|
|
141090
|
+
// TODO: Remove once Moonriver and Moonbeam are updated to runtime 1200.
|
|
141091
|
+
'MaxDelegatorsPerCandidate'
|
|
141083
141092
|
]
|
|
141084
141093
|
};
|
|
141085
141094
|
exports.supportedCallEndpoints = new Map([
|
|
@@ -141179,7 +141188,7 @@ function isSubstrateCompatAddress(address) {
|
|
|
141179
141188
|
}
|
|
141180
141189
|
exports.isSubstrateCompatAddress = isSubstrateCompatAddress;
|
|
141181
141190
|
|
|
141182
|
-
},{"../SubstrateNetwork":528,"../common/data/scale/type/SCALEAccountId":577,"../common/data/scale/type/SCALEMultiAddress":588,"../kusama/KusamaAddress":613,"../moonbeam/data/account/MoonbeamAddress":620,"../polkadot/PolkadotAddress":
|
|
141191
|
+
},{"../SubstrateNetwork":528,"../common/data/scale/type/SCALEAccountId":577,"../common/data/scale/type/SCALEMultiAddress":588,"../kusama/KusamaAddress":613,"../moonbeam/data/account/MoonbeamAddress":620,"../polkadot/PolkadotAddress":636}],612:[function(require,module,exports){
|
|
141183
141192
|
"use strict";
|
|
141184
141193
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
141185
141194
|
exports.substrateSignatureFactory = void 0;
|
|
@@ -141209,7 +141218,7 @@ function substrateSignatureFactory(substrateNetwork) {
|
|
|
141209
141218
|
}
|
|
141210
141219
|
exports.substrateSignatureFactory = substrateSignatureFactory;
|
|
141211
141220
|
|
|
141212
|
-
},{"../SubstrateNetwork":528,"../common/data/transaction/SubstrateSignature":604,"../moonbeam/data/transaction/MoonbeamSignature":
|
|
141221
|
+
},{"../SubstrateNetwork":528,"../common/data/transaction/SubstrateSignature":604,"../moonbeam/data/transaction/MoonbeamSignature":630}],613:[function(require,module,exports){
|
|
141213
141222
|
"use strict";
|
|
141214
141223
|
var __extends = (this && this.__extends) || (function () {
|
|
141215
141224
|
var extendStatics = function (d, b) {
|
|
@@ -142036,7 +142045,7 @@ var MoonbeamProtocol = /** @class */ (function (_super) {
|
|
|
142036
142045
|
}(SubstrateDelegateProtocol_1.SubstrateDelegateProtocol));
|
|
142037
142046
|
exports.MoonbeamProtocol = MoonbeamProtocol;
|
|
142038
142047
|
|
|
142039
|
-
},{"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../../errors":478,"../../../errors/coinlib-error":477,"../../../utils/ProtocolSymbols":779,"../../../utils/assert":781,"../SubstrateDelegateProtocol":527,"../common/data/transaction/SubstrateTransaction":605,"./MoonbeamProtocolOptions":617,"./data/account/MoonbeamAddress":620,"./data/staking/MoonbeamStakingActionType":
|
|
142048
|
+
},{"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../../errors":478,"../../../errors/coinlib-error":477,"../../../utils/ProtocolSymbols":779,"../../../utils/assert":781,"../SubstrateDelegateProtocol":527,"../common/data/transaction/SubstrateTransaction":605,"./MoonbeamProtocolOptions":617,"./data/account/MoonbeamAddress":620,"./data/staking/MoonbeamStakingActionType":629}],617:[function(require,module,exports){
|
|
142040
142049
|
"use strict";
|
|
142041
142050
|
var __extends = (this && this.__extends) || (function () {
|
|
142042
142051
|
var extendStatics = function (d, b) {
|
|
@@ -142139,7 +142148,7 @@ var MoonbeamProtocolOptions = /** @class */ (function (_super) {
|
|
|
142139
142148
|
}(BaseMoonbeamProtocolOptions));
|
|
142140
142149
|
exports.MoonbeamProtocolOptions = MoonbeamProtocolOptions;
|
|
142141
142150
|
|
|
142142
|
-
},{"../../../utils/ProtocolNetwork":778,"../SubstrateNetwork":528,"../SubstrateProtocolOptions":530,"./controllers/MoonbeamAccountController":618,"./controllers/MoonbeamTransactionController":619,"./node/MoonbeamNodeClient":
|
|
142151
|
+
},{"../../../utils/ProtocolNetwork":778,"../SubstrateNetwork":528,"../SubstrateProtocolOptions":530,"./controllers/MoonbeamAccountController":618,"./controllers/MoonbeamTransactionController":619,"./node/MoonbeamNodeClient":635}],618:[function(require,module,exports){
|
|
142143
142152
|
(function (Buffer){(function (){
|
|
142144
142153
|
"use strict";
|
|
142145
142154
|
var __extends = (this && this.__extends) || (function () {
|
|
@@ -142223,7 +142232,7 @@ var coinlib_error_1 = require("../../../../errors/coinlib-error");
|
|
|
142223
142232
|
var array_1 = require("../../../../utils/array");
|
|
142224
142233
|
var SubstrateAccountController_1 = require("../../common/SubstrateAccountController");
|
|
142225
142234
|
var MoonbeamAddress_1 = require("../data/account/MoonbeamAddress");
|
|
142226
|
-
var
|
|
142235
|
+
var MoonbeamCandidateMetadata_1 = require("../data/staking/MoonbeamCandidateMetadata");
|
|
142227
142236
|
var MoonbeamDelegationRequest_1 = require("../data/staking/MoonbeamDelegationRequest");
|
|
142228
142237
|
var MoonbeamDelegator_1 = require("../data/staking/MoonbeamDelegator");
|
|
142229
142238
|
var MoonbeamStakingActionType_1 = require("../data/staking/MoonbeamStakingActionType");
|
|
@@ -142359,13 +142368,43 @@ var MoonbeamAccountController = /** @class */ (function (_super) {
|
|
|
142359
142368
|
};
|
|
142360
142369
|
MoonbeamAccountController.prototype.getCollatorDetails = function (accountId) {
|
|
142361
142370
|
return __awaiter(this, void 0, void 0, function () {
|
|
142362
|
-
var address, results, collatorState, commission,
|
|
142371
|
+
var runtimeVersion, address, results, candidateInfo, commission, status_1, results, collatorState, commission, status_2, topDelegations;
|
|
142363
142372
|
return __generator(this, function (_a) {
|
|
142364
142373
|
switch (_a.label) {
|
|
142365
|
-
case 0:
|
|
142366
|
-
address = MoonbeamAddress_1.MoonbeamAddress.from(accountId);
|
|
142367
|
-
return [4 /*yield*/, Promise.all([this.nodeClient.getCandidateState(address), this.nodeClient.getCollatorCommission()])];
|
|
142374
|
+
case 0: return [4 /*yield*/, this.nodeClient.getRuntimeVersion()];
|
|
142368
142375
|
case 1:
|
|
142376
|
+
runtimeVersion = _a.sent();
|
|
142377
|
+
address = MoonbeamAddress_1.MoonbeamAddress.from(accountId);
|
|
142378
|
+
if (!(runtimeVersion === null || runtimeVersion.specVersion >= 1200)) return [3 /*break*/, 3];
|
|
142379
|
+
return [4 /*yield*/, Promise.all([this.nodeClient.getCandidateInfo(address), this.nodeClient.getCollatorCommission()])];
|
|
142380
|
+
case 2:
|
|
142381
|
+
results = _a.sent();
|
|
142382
|
+
candidateInfo = results[0];
|
|
142383
|
+
commission = results[1];
|
|
142384
|
+
if (!candidateInfo || !commission) {
|
|
142385
|
+
return [2 /*return*/, Promise.reject('Could not fetch collator details.')];
|
|
142386
|
+
}
|
|
142387
|
+
switch (candidateInfo.status.value) {
|
|
142388
|
+
case MoonbeamCandidateMetadata_1.MoonbeamCollatorStatus.ACTIVE:
|
|
142389
|
+
status_1 = 'Active';
|
|
142390
|
+
break;
|
|
142391
|
+
case MoonbeamCandidateMetadata_1.MoonbeamCollatorStatus.IDLE:
|
|
142392
|
+
status_1 = 'Idle';
|
|
142393
|
+
break;
|
|
142394
|
+
case MoonbeamCandidateMetadata_1.MoonbeamCollatorStatus.LEAVING:
|
|
142395
|
+
status_1 = 'Leaving';
|
|
142396
|
+
}
|
|
142397
|
+
return [2 /*return*/, {
|
|
142398
|
+
address: address.getValue(),
|
|
142399
|
+
status: status_1,
|
|
142400
|
+
minEligibleBalance: candidateInfo.lowestTopDelegationAmount.toString(),
|
|
142401
|
+
ownStakingBalance: candidateInfo.bond.toString(),
|
|
142402
|
+
totalStakingBalance: candidateInfo.totalCounted.toString(),
|
|
142403
|
+
commission: commission.dividedBy(1000000000).toString(),
|
|
142404
|
+
delegators: candidateInfo.delegationCount.toNumber()
|
|
142405
|
+
}];
|
|
142406
|
+
case 3: return [4 /*yield*/, Promise.all([this.nodeClient.getCandidateState(address), this.nodeClient.getCollatorCommission()])];
|
|
142407
|
+
case 4:
|
|
142369
142408
|
results = _a.sent();
|
|
142370
142409
|
collatorState = results[0];
|
|
142371
142410
|
commission = results[1];
|
|
@@ -142373,19 +142412,19 @@ var MoonbeamAccountController = /** @class */ (function (_super) {
|
|
|
142373
142412
|
return [2 /*return*/, Promise.reject('Could not fetch collator details.')];
|
|
142374
142413
|
}
|
|
142375
142414
|
switch (collatorState.status.value) {
|
|
142376
|
-
case
|
|
142377
|
-
|
|
142415
|
+
case MoonbeamCandidateMetadata_1.MoonbeamCollatorStatus.ACTIVE:
|
|
142416
|
+
status_2 = 'Active';
|
|
142378
142417
|
break;
|
|
142379
|
-
case
|
|
142380
|
-
|
|
142418
|
+
case MoonbeamCandidateMetadata_1.MoonbeamCollatorStatus.IDLE:
|
|
142419
|
+
status_2 = 'Idle';
|
|
142381
142420
|
break;
|
|
142382
|
-
case
|
|
142383
|
-
|
|
142421
|
+
case MoonbeamCandidateMetadata_1.MoonbeamCollatorStatus.LEAVING:
|
|
142422
|
+
status_2 = 'Leaving';
|
|
142384
142423
|
}
|
|
142385
142424
|
topDelegations = collatorState.topDelegations.elements.map(function (bond) { return bond.amount.value; });
|
|
142386
142425
|
return [2 /*return*/, {
|
|
142387
142426
|
address: address.getValue(),
|
|
142388
|
-
status:
|
|
142427
|
+
status: status_2,
|
|
142389
142428
|
minEligibleBalance: topDelegations[topDelegations.length - 1].toString(),
|
|
142390
142429
|
ownStakingBalance: collatorState.bond.toString(),
|
|
142391
142430
|
totalStakingBalance: collatorState.totalBacking.toString(),
|
|
@@ -142639,7 +142678,7 @@ var MoonbeamAccountController = /** @class */ (function (_super) {
|
|
|
142639
142678
|
exports.MoonbeamAccountController = MoonbeamAccountController;
|
|
142640
142679
|
|
|
142641
142680
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
142642
|
-
},{"../../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../../../dependencies/src/bip39-2.5.0/index":261,"../../../../dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/index":285,"../../../../errors":478,"../../../../errors/coinlib-error":477,"../../../../utils/array":780,"../../common/SubstrateAccountController":531,"../data/account/MoonbeamAddress":620,"../data/staking/
|
|
142681
|
+
},{"../../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../../../dependencies/src/bip39-2.5.0/index":261,"../../../../dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/index":285,"../../../../errors":478,"../../../../errors/coinlib-error":477,"../../../../utils/array":780,"../../common/SubstrateAccountController":531,"../data/account/MoonbeamAddress":620,"../data/staking/MoonbeamCandidateMetadata":623,"../data/staking/MoonbeamDelegationRequest":625,"../data/staking/MoonbeamDelegator":626,"../data/staking/MoonbeamStakingActionType":629,"buffer":67}],619:[function(require,module,exports){
|
|
142643
142682
|
"use strict";
|
|
142644
142683
|
var __extends = (this && this.__extends) || (function () {
|
|
142645
142684
|
var extendStatics = function (d, b) {
|
|
@@ -142878,6 +142917,57 @@ exports.MoonbeamCandidateBondLessRequest = MoonbeamCandidateBondLessRequest;
|
|
|
142878
142917
|
},{"../../../SubstrateNetwork":528,"../../../common/data/scale/SCALEDecoder":576,"../../../common/data/scale/type/SCALEClass":581}],623:[function(require,module,exports){
|
|
142879
142918
|
"use strict";
|
|
142880
142919
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
142920
|
+
exports.MoonbeamCandidateMetadata = exports.MoonbeamCapacityStatus = exports.MoonbeamCollatorStatus = void 0;
|
|
142921
|
+
var SCALEDecoder_1 = require("../../../common/data/scale/SCALEDecoder");
|
|
142922
|
+
var SubstrateNetwork_1 = require("../../../SubstrateNetwork");
|
|
142923
|
+
var MoonbeamCandidateBondLessRequest_1 = require("./MoonbeamCandidateBondLessRequest");
|
|
142924
|
+
var MoonbeamCollatorStatus;
|
|
142925
|
+
(function (MoonbeamCollatorStatus) {
|
|
142926
|
+
MoonbeamCollatorStatus[MoonbeamCollatorStatus["ACTIVE"] = 0] = "ACTIVE";
|
|
142927
|
+
MoonbeamCollatorStatus[MoonbeamCollatorStatus["IDLE"] = 1] = "IDLE";
|
|
142928
|
+
MoonbeamCollatorStatus[MoonbeamCollatorStatus["LEAVING"] = 2] = "LEAVING";
|
|
142929
|
+
})(MoonbeamCollatorStatus = exports.MoonbeamCollatorStatus || (exports.MoonbeamCollatorStatus = {}));
|
|
142930
|
+
var MoonbeamCapacityStatus;
|
|
142931
|
+
(function (MoonbeamCapacityStatus) {
|
|
142932
|
+
MoonbeamCapacityStatus[MoonbeamCapacityStatus["FULL"] = 0] = "FULL";
|
|
142933
|
+
MoonbeamCapacityStatus[MoonbeamCapacityStatus["EMPTY"] = 1] = "EMPTY";
|
|
142934
|
+
MoonbeamCapacityStatus[MoonbeamCapacityStatus["PARTIAL"] = 2] = "PARTIAL";
|
|
142935
|
+
})(MoonbeamCapacityStatus = exports.MoonbeamCapacityStatus || (exports.MoonbeamCapacityStatus = {}));
|
|
142936
|
+
var MoonbeamCandidateMetadata = /** @class */ (function () {
|
|
142937
|
+
function MoonbeamCandidateMetadata(bond, delegationCount, totalCounted, lowestTopDelegationAmount, highestBottomDelegationAmount, lowestBottomDelegationAmount, topCapacity, bottomCapacity, request, status) {
|
|
142938
|
+
this.bond = bond;
|
|
142939
|
+
this.delegationCount = delegationCount;
|
|
142940
|
+
this.totalCounted = totalCounted;
|
|
142941
|
+
this.lowestTopDelegationAmount = lowestTopDelegationAmount;
|
|
142942
|
+
this.highestBottomDelegationAmount = highestBottomDelegationAmount;
|
|
142943
|
+
this.lowestBottomDelegationAmount = lowestBottomDelegationAmount;
|
|
142944
|
+
this.topCapacity = topCapacity;
|
|
142945
|
+
this.bottomCapacity = bottomCapacity;
|
|
142946
|
+
this.request = request;
|
|
142947
|
+
this.status = status;
|
|
142948
|
+
}
|
|
142949
|
+
MoonbeamCandidateMetadata.decode = function (runtimeVersion, raw) {
|
|
142950
|
+
var decoder = new SCALEDecoder_1.SCALEDecoder(SubstrateNetwork_1.SubstrateNetwork.MOONBEAM, runtimeVersion, raw);
|
|
142951
|
+
var bond = decoder.decodeNextInt(128);
|
|
142952
|
+
var delegationCount = decoder.decodeNextInt(32);
|
|
142953
|
+
var totalCounted = decoder.decodeNextInt(128);
|
|
142954
|
+
var lowestTopDelegationAmount = decoder.decodeNextInt(128);
|
|
142955
|
+
var highestBottomDelegationAmount = decoder.decodeNextInt(128);
|
|
142956
|
+
var lowestBottomDelegationAmount = decoder.decodeNextInt(128);
|
|
142957
|
+
var topCapacity = decoder.decodeNextEnum(function (value) { return MoonbeamCapacityStatus[MoonbeamCapacityStatus[value]]; });
|
|
142958
|
+
var bottomCapacity = decoder.decodeNextEnum(function (value) { return MoonbeamCapacityStatus[MoonbeamCapacityStatus[value]]; });
|
|
142959
|
+
var request = decoder.decodeNextOptional(function (_, runtimeVersion, hex) { return MoonbeamCandidateBondLessRequest_1.MoonbeamCandidateBondLessRequest.decode(runtimeVersion, hex); });
|
|
142960
|
+
var status = decoder.decodeNextEnum(function (value) { return MoonbeamCollatorStatus[MoonbeamCollatorStatus[value]]; });
|
|
142961
|
+
return new MoonbeamCandidateMetadata(bond.decoded, delegationCount.decoded, totalCounted.decoded, lowestTopDelegationAmount.decoded, highestBottomDelegationAmount.decoded, lowestBottomDelegationAmount.decoded, topCapacity.decoded, bottomCapacity.decoded, request.decoded, status.decoded);
|
|
142962
|
+
};
|
|
142963
|
+
return MoonbeamCandidateMetadata;
|
|
142964
|
+
}());
|
|
142965
|
+
exports.MoonbeamCandidateMetadata = MoonbeamCandidateMetadata;
|
|
142966
|
+
|
|
142967
|
+
},{"../../../SubstrateNetwork":528,"../../../common/data/scale/SCALEDecoder":576,"./MoonbeamCandidateBondLessRequest":622}],624:[function(require,module,exports){
|
|
142968
|
+
"use strict";
|
|
142969
|
+
// TODO: Remove once Moonriver and Moonbeam are updated to runtime 1200.
|
|
142970
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
142881
142971
|
exports.MoonbeamCollatorCandidate = exports.MoonbeamCollatorStatus = void 0;
|
|
142882
142972
|
var SCALEDecoder_1 = require("../../../common/data/scale/SCALEDecoder");
|
|
142883
142973
|
var SCALEAccountId_1 = require("../../../common/data/scale/type/SCALEAccountId");
|
|
@@ -142919,7 +143009,7 @@ var MoonbeamCollatorCandidate = /** @class */ (function () {
|
|
|
142919
143009
|
}());
|
|
142920
143010
|
exports.MoonbeamCollatorCandidate = MoonbeamCollatorCandidate;
|
|
142921
143011
|
|
|
142922
|
-
},{"../../../SubstrateNetwork":528,"../../../common/data/scale/SCALEDecoder":576,"../../../common/data/scale/type/SCALEAccountId":577,"./MoonbeamBond":621,"./MoonbeamCandidateBondLessRequest":622}],
|
|
143012
|
+
},{"../../../SubstrateNetwork":528,"../../../common/data/scale/SCALEDecoder":576,"../../../common/data/scale/type/SCALEAccountId":577,"./MoonbeamBond":621,"./MoonbeamCandidateBondLessRequest":622}],625:[function(require,module,exports){
|
|
142923
143013
|
"use strict";
|
|
142924
143014
|
var __extends = (this && this.__extends) || (function () {
|
|
142925
143015
|
var extendStatics = function (d, b) {
|
|
@@ -142970,7 +143060,7 @@ var MoonbeamDelegationRequest = /** @class */ (function (_super) {
|
|
|
142970
143060
|
}(SCALEClass_1.SCALEClass));
|
|
142971
143061
|
exports.MoonbeamDelegationRequest = MoonbeamDelegationRequest;
|
|
142972
143062
|
|
|
142973
|
-
},{"../../../SubstrateNetwork":528,"../../../common/data/scale/SCALEDecoder":576,"../../../common/data/scale/type/SCALEClass":581}],
|
|
143063
|
+
},{"../../../SubstrateNetwork":528,"../../../common/data/scale/SCALEDecoder":576,"../../../common/data/scale/type/SCALEClass":581}],626:[function(require,module,exports){
|
|
142974
143064
|
"use strict";
|
|
142975
143065
|
var __extends = (this && this.__extends) || (function () {
|
|
142976
143066
|
var extendStatics = function (d, b) {
|
|
@@ -143100,7 +143190,7 @@ var MoonbeamDelegator = /** @class */ (function () {
|
|
|
143100
143190
|
}());
|
|
143101
143191
|
exports.MoonbeamDelegator = MoonbeamDelegator;
|
|
143102
143192
|
|
|
143103
|
-
},{"../../../../../errors":478,"../../../../../errors/coinlib-error":477,"../../../SubstrateNetwork":528,"../../../common/data/scale/SCALEDecoder":576,"../../../common/data/scale/type/SCALEClass":581,"../../../common/data/scale/type/SCALEEnum":584,"./MoonbeamBond":621,"./MoonbeamPendingDelegationRequests":
|
|
143193
|
+
},{"../../../../../errors":478,"../../../../../errors/coinlib-error":477,"../../../SubstrateNetwork":528,"../../../common/data/scale/SCALEDecoder":576,"../../../common/data/scale/type/SCALEClass":581,"../../../common/data/scale/type/SCALEEnum":584,"./MoonbeamBond":621,"./MoonbeamPendingDelegationRequests":627}],627:[function(require,module,exports){
|
|
143104
143194
|
"use strict";
|
|
143105
143195
|
var __extends = (this && this.__extends) || (function () {
|
|
143106
143196
|
var extendStatics = function (d, b) {
|
|
@@ -143149,7 +143239,7 @@ var MoonbeamPendingDelegationRequests = /** @class */ (function (_super) {
|
|
|
143149
143239
|
}(SCALEClass_1.SCALEClass));
|
|
143150
143240
|
exports.MoonbeamPendingDelegationRequests = MoonbeamPendingDelegationRequests;
|
|
143151
143241
|
|
|
143152
|
-
},{"../../../SubstrateNetwork":528,"../../../common/data/scale/SCALEDecoder":576,"../../../common/data/scale/type/SCALEAccountId":577,"../../../common/data/scale/type/SCALEClass":581,"../../../common/data/scale/type/SCALETuple":591,"./MoonbeamDelegationRequest":
|
|
143242
|
+
},{"../../../SubstrateNetwork":528,"../../../common/data/scale/SCALEDecoder":576,"../../../common/data/scale/type/SCALEAccountId":577,"../../../common/data/scale/type/SCALEClass":581,"../../../common/data/scale/type/SCALETuple":591,"./MoonbeamDelegationRequest":625}],628:[function(require,module,exports){
|
|
143153
143243
|
"use strict";
|
|
143154
143244
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
143155
143245
|
exports.MoonbeamRoundInfo = void 0;
|
|
@@ -143172,7 +143262,7 @@ var MoonbeamRoundInfo = /** @class */ (function () {
|
|
|
143172
143262
|
}());
|
|
143173
143263
|
exports.MoonbeamRoundInfo = MoonbeamRoundInfo;
|
|
143174
143264
|
|
|
143175
|
-
},{"../../../SubstrateNetwork":528,"../../../common/data/scale/SCALEDecoder":576}],
|
|
143265
|
+
},{"../../../SubstrateNetwork":528,"../../../common/data/scale/SCALEDecoder":576}],629:[function(require,module,exports){
|
|
143176
143266
|
"use strict";
|
|
143177
143267
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
143178
143268
|
exports.MoonbeamStakingActionType = void 0;
|
|
@@ -143191,7 +143281,7 @@ var MoonbeamStakingActionType;
|
|
|
143191
143281
|
MoonbeamStakingActionType["CANCEL_BOND_LESS"] = "cancel_bond_less";
|
|
143192
143282
|
})(MoonbeamStakingActionType = exports.MoonbeamStakingActionType || (exports.MoonbeamStakingActionType = {}));
|
|
143193
143283
|
|
|
143194
|
-
},{}],
|
|
143284
|
+
},{}],630:[function(require,module,exports){
|
|
143195
143285
|
"use strict";
|
|
143196
143286
|
var __extends = (this && this.__extends) || (function () {
|
|
143197
143287
|
var extendStatics = function (d, b) {
|
|
@@ -143236,7 +143326,7 @@ var MoonbeamSignature = /** @class */ (function (_super) {
|
|
|
143236
143326
|
}(SubstrateSignature_1.SubstrateSignature));
|
|
143237
143327
|
exports.MoonbeamSignature = MoonbeamSignature;
|
|
143238
143328
|
|
|
143239
|
-
},{"../../../common/data/scale/SCALEDecoder":576,"../../../common/data/scale/type/SCALEEnum":584,"../../../common/data/scale/type/SCALEHash":586,"../../../common/data/transaction/SubstrateSignature":604}],
|
|
143329
|
+
},{"../../../common/data/scale/SCALEDecoder":576,"../../../common/data/scale/type/SCALEEnum":584,"../../../common/data/scale/type/SCALEHash":586,"../../../common/data/transaction/SubstrateSignature":604}],631:[function(require,module,exports){
|
|
143240
143330
|
"use strict";
|
|
143241
143331
|
var __extends = (this && this.__extends) || (function () {
|
|
143242
143332
|
var extendStatics = function (d, b) {
|
|
@@ -143311,7 +143401,7 @@ var MoonbaseProtocol = /** @class */ (function (_super) {
|
|
|
143311
143401
|
}(MoonbeamProtocol_1.MoonbeamProtocol));
|
|
143312
143402
|
exports.MoonbaseProtocol = MoonbaseProtocol;
|
|
143313
143403
|
|
|
143314
|
-
},{"../../../../utils/ProtocolSymbols":779,"../MoonbeamProtocol":616,"./MoonbaseProtocolOptions":
|
|
143404
|
+
},{"../../../../utils/ProtocolSymbols":779,"../MoonbeamProtocol":616,"./MoonbaseProtocolOptions":632}],632:[function(require,module,exports){
|
|
143315
143405
|
"use strict";
|
|
143316
143406
|
var __extends = (this && this.__extends) || (function () {
|
|
143317
143407
|
var extendStatics = function (d, b) {
|
|
@@ -143332,7 +143422,7 @@ var ProtocolNetwork_1 = require("../../../../utils/ProtocolNetwork");
|
|
|
143332
143422
|
var SubstrateProtocolOptions_1 = require("../../SubstrateProtocolOptions");
|
|
143333
143423
|
var MoonbeamProtocolOptions_1 = require("../MoonbeamProtocolOptions");
|
|
143334
143424
|
var MAINNET_NAME = 'Mainnet';
|
|
143335
|
-
var NODE_URL = 'https://
|
|
143425
|
+
var NODE_URL = 'https://moonbeam-alpha.api.onfinality.io/public';
|
|
143336
143426
|
var BLOCK_EXPLORER_URL = 'https://moonbase.subscan.io';
|
|
143337
143427
|
var BLOCK_EXPLORER_API = 'https://moonbase.subscan.io/api/scan';
|
|
143338
143428
|
var MoonbaseProtocolConfig = /** @class */ (function (_super) {
|
|
@@ -143390,7 +143480,7 @@ var MoonbaseProtocolOptions = /** @class */ (function (_super) {
|
|
|
143390
143480
|
}(MoonbeamProtocolOptions_1.BaseMoonbeamProtocolOptions));
|
|
143391
143481
|
exports.MoonbaseProtocolOptions = MoonbaseProtocolOptions;
|
|
143392
143482
|
|
|
143393
|
-
},{"../../../../utils/ProtocolNetwork":778,"../../SubstrateProtocolOptions":530,"../MoonbeamProtocolOptions":617}],
|
|
143483
|
+
},{"../../../../utils/ProtocolNetwork":778,"../../SubstrateProtocolOptions":530,"../MoonbeamProtocolOptions":617}],633:[function(require,module,exports){
|
|
143394
143484
|
"use strict";
|
|
143395
143485
|
var __extends = (this && this.__extends) || (function () {
|
|
143396
143486
|
var extendStatics = function (d, b) {
|
|
@@ -143465,7 +143555,7 @@ var MoonriverProtocol = /** @class */ (function (_super) {
|
|
|
143465
143555
|
}(MoonbeamProtocol_1.MoonbeamProtocol));
|
|
143466
143556
|
exports.MoonriverProtocol = MoonriverProtocol;
|
|
143467
143557
|
|
|
143468
|
-
},{"../../../../utils/ProtocolSymbols":779,"../MoonbeamProtocol":616,"./MoonriverProtocolOptions":
|
|
143558
|
+
},{"../../../../utils/ProtocolSymbols":779,"../MoonbeamProtocol":616,"./MoonriverProtocolOptions":634}],634:[function(require,module,exports){
|
|
143469
143559
|
"use strict";
|
|
143470
143560
|
var __extends = (this && this.__extends) || (function () {
|
|
143471
143561
|
var extendStatics = function (d, b) {
|
|
@@ -143544,7 +143634,7 @@ var MoonriverProtocolOptions = /** @class */ (function (_super) {
|
|
|
143544
143634
|
}(MoonbeamProtocolOptions_1.BaseMoonbeamProtocolOptions));
|
|
143545
143635
|
exports.MoonriverProtocolOptions = MoonriverProtocolOptions;
|
|
143546
143636
|
|
|
143547
|
-
},{"../../../../utils/ProtocolNetwork":778,"../../SubstrateProtocolOptions":530,"../MoonbeamProtocolOptions":617}],
|
|
143637
|
+
},{"../../../../utils/ProtocolNetwork":778,"../../SubstrateProtocolOptions":530,"../MoonbeamProtocolOptions":617}],635:[function(require,module,exports){
|
|
143548
143638
|
"use strict";
|
|
143549
143639
|
var __extends = (this && this.__extends) || (function () {
|
|
143550
143640
|
var extendStatics = function (d, b) {
|
|
@@ -143601,6 +143691,7 @@ var SCALEAccountId_1 = require("../../common/data/scale/type/SCALEAccountId");
|
|
|
143601
143691
|
var SCALEArray_1 = require("../../common/data/scale/type/SCALEArray");
|
|
143602
143692
|
var SCALEInt_1 = require("../../common/data/scale/type/SCALEInt");
|
|
143603
143693
|
var SubstrateNodeClient_1 = require("../../common/node/SubstrateNodeClient");
|
|
143694
|
+
var MoonbeamCandidateMetadata_1 = require("../data/staking/MoonbeamCandidateMetadata");
|
|
143604
143695
|
var MoonbeamCollatorCandidate_1 = require("../data/staking/MoonbeamCollatorCandidate");
|
|
143605
143696
|
var MoonbeamDelegator_1 = require("../data/staking/MoonbeamDelegator");
|
|
143606
143697
|
var MoonbeamRoundInfo_1 = require("../data/staking/MoonbeamRoundInfo");
|
|
@@ -143643,12 +143734,12 @@ var MoonbeamNodeClient = /** @class */ (function (_super) {
|
|
|
143643
143734
|
});
|
|
143644
143735
|
});
|
|
143645
143736
|
};
|
|
143646
|
-
MoonbeamNodeClient.prototype.
|
|
143737
|
+
MoonbeamNodeClient.prototype.getCandidateInfo = function (address) {
|
|
143647
143738
|
return __awaiter(this, void 0, void 0, function () {
|
|
143648
143739
|
var _this = this;
|
|
143649
143740
|
return __generator(this, function (_a) {
|
|
143650
|
-
return [2 /*return*/, this.fromStorage('ParachainStaking', '
|
|
143651
|
-
return item ?
|
|
143741
|
+
return [2 /*return*/, this.fromStorage('ParachainStaking', 'CandidateInfo', SCALEAccountId_1.SCALEAccountId.from(address, this.network)).then(function (item) {
|
|
143742
|
+
return item ? MoonbeamCandidateMetadata_1.MoonbeamCandidateMetadata.decode(_this.runtimeVersion, item) : undefined;
|
|
143652
143743
|
})];
|
|
143653
143744
|
});
|
|
143654
143745
|
});
|
|
@@ -143662,10 +143753,19 @@ var MoonbeamNodeClient = /** @class */ (function (_super) {
|
|
|
143662
143753
|
});
|
|
143663
143754
|
});
|
|
143664
143755
|
};
|
|
143665
|
-
MoonbeamNodeClient.prototype.
|
|
143756
|
+
MoonbeamNodeClient.prototype.getMaxTopDelegationsPerCandidate = function () {
|
|
143666
143757
|
return __awaiter(this, void 0, void 0, function () {
|
|
143667
143758
|
return __generator(this, function (_a) {
|
|
143668
|
-
return [2 /*return*/, this.getConstant('ParachainStaking', '
|
|
143759
|
+
return [2 /*return*/, this.getConstant('ParachainStaking', 'MaxTopDelegationsPerCandidate').then(function (item) {
|
|
143760
|
+
return item ? SCALEInt_1.SCALEInt.decode(item, 32).decoded.value : undefined;
|
|
143761
|
+
})];
|
|
143762
|
+
});
|
|
143763
|
+
});
|
|
143764
|
+
};
|
|
143765
|
+
MoonbeamNodeClient.prototype.getMaxBottomDelegationsPerCandidate = function () {
|
|
143766
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
143767
|
+
return __generator(this, function (_a) {
|
|
143768
|
+
return [2 /*return*/, this.getConstant('ParachainStaking', 'MaxBottomDelegationsPerCandidate').then(function (item) {
|
|
143669
143769
|
return item ? SCALEInt_1.SCALEInt.decode(item, 32).decoded.value : undefined;
|
|
143670
143770
|
})];
|
|
143671
143771
|
});
|
|
@@ -143739,11 +143839,31 @@ var MoonbeamNodeClient = /** @class */ (function (_super) {
|
|
|
143739
143839
|
});
|
|
143740
143840
|
});
|
|
143741
143841
|
};
|
|
143842
|
+
// TODO: Remove once Moonriver and Moonbeam are updated to runtime 1200.
|
|
143843
|
+
MoonbeamNodeClient.prototype.getCandidateState = function (address) {
|
|
143844
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
143845
|
+
var _this = this;
|
|
143846
|
+
return __generator(this, function (_a) {
|
|
143847
|
+
return [2 /*return*/, this.fromStorage('ParachainStaking', 'CandidateState', SCALEAccountId_1.SCALEAccountId.from(address, this.network)).then(function (item) {
|
|
143848
|
+
return item ? MoonbeamCollatorCandidate_1.MoonbeamCollatorCandidate.decode(_this.runtimeVersion, item) : undefined;
|
|
143849
|
+
})];
|
|
143850
|
+
});
|
|
143851
|
+
});
|
|
143852
|
+
};
|
|
143853
|
+
MoonbeamNodeClient.prototype.getMaxDelegatorsPerCandidate = function () {
|
|
143854
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
143855
|
+
return __generator(this, function (_a) {
|
|
143856
|
+
return [2 /*return*/, this.getConstant('ParachainStaking', 'MaxDelegatorsPerCandidate').then(function (item) {
|
|
143857
|
+
return item ? SCALEInt_1.SCALEInt.decode(item, 32).decoded.value : undefined;
|
|
143858
|
+
})];
|
|
143859
|
+
});
|
|
143860
|
+
});
|
|
143861
|
+
};
|
|
143742
143862
|
return MoonbeamNodeClient;
|
|
143743
143863
|
}(SubstrateNodeClient_1.SubstrateNodeClient));
|
|
143744
143864
|
exports.MoonbeamNodeClient = MoonbeamNodeClient;
|
|
143745
143865
|
|
|
143746
|
-
},{"../../common/data/scale/type/SCALEAccountId":577,"../../common/data/scale/type/SCALEArray":578,"../../common/data/scale/type/SCALEInt":587,"../../common/node/SubstrateNodeClient":609,"../data/staking/
|
|
143866
|
+
},{"../../common/data/scale/type/SCALEAccountId":577,"../../common/data/scale/type/SCALEArray":578,"../../common/data/scale/type/SCALEInt":587,"../../common/node/SubstrateNodeClient":609,"../data/staking/MoonbeamCandidateMetadata":623,"../data/staking/MoonbeamCollatorCandidate":624,"../data/staking/MoonbeamDelegator":626,"../data/staking/MoonbeamRoundInfo":628}],636:[function(require,module,exports){
|
|
143747
143867
|
"use strict";
|
|
143748
143868
|
var __extends = (this && this.__extends) || (function () {
|
|
143749
143869
|
var extendStatics = function (d, b) {
|
|
@@ -143776,7 +143896,7 @@ var PolkadotAddress = /** @class */ (function (_super) {
|
|
|
143776
143896
|
}(SubstrateAddress_1.SubstrateAddress));
|
|
143777
143897
|
exports.PolkadotAddress = PolkadotAddress;
|
|
143778
143898
|
|
|
143779
|
-
},{"../common/data/account/SubstrateAddress":535}],
|
|
143899
|
+
},{"../common/data/account/SubstrateAddress":535}],637:[function(require,module,exports){
|
|
143780
143900
|
"use strict";
|
|
143781
143901
|
var __extends = (this && this.__extends) || (function () {
|
|
143782
143902
|
var extendStatics = function (d, b) {
|
|
@@ -143847,7 +143967,7 @@ var PolkadotProtocol = /** @class */ (function (_super) {
|
|
|
143847
143967
|
}(SubstrateDelegateProtocol_1.SubstrateDelegateProtocol));
|
|
143848
143968
|
exports.PolkadotProtocol = PolkadotProtocol;
|
|
143849
143969
|
|
|
143850
|
-
},{"../../../utils/ProtocolSymbols":779,"../SubstrateDelegateProtocol":527,"./PolkadotProtocolOptions":
|
|
143970
|
+
},{"../../../utils/ProtocolSymbols":779,"../SubstrateDelegateProtocol":527,"./PolkadotProtocolOptions":638}],638:[function(require,module,exports){
|
|
143851
143971
|
"use strict";
|
|
143852
143972
|
// tslint:disable:max-classes-per-file
|
|
143853
143973
|
var __extends = (this && this.__extends) || (function () {
|
|
@@ -143931,7 +144051,7 @@ var PolkadotProtocolOptions = /** @class */ (function (_super) {
|
|
|
143931
144051
|
}(SubstrateProtocolOptions_1.SubstrateProtocolOptions));
|
|
143932
144052
|
exports.PolkadotProtocolOptions = PolkadotProtocolOptions;
|
|
143933
144053
|
|
|
143934
|
-
},{"../../../utils/ProtocolNetwork":778,"../SubstrateNetwork":528,"../SubstrateProtocolOptions":530,"../common/SubstrateAccountController":531,"../common/SubstrateTransactionController":532,"../common/node/SubstrateNodeClient":609}],
|
|
144054
|
+
},{"../../../utils/ProtocolNetwork":778,"../SubstrateNetwork":528,"../SubstrateProtocolOptions":530,"../common/SubstrateAccountController":531,"../common/SubstrateTransactionController":532,"../common/node/SubstrateNodeClient":609}],639:[function(require,module,exports){
|
|
143935
144055
|
(function (Buffer){(function (){
|
|
143936
144056
|
"use strict";
|
|
143937
144057
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -144041,7 +144161,7 @@ var TezosAddress = /** @class */ (function () {
|
|
|
144041
144161
|
exports.TezosAddress = TezosAddress;
|
|
144042
144162
|
|
|
144043
144163
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
144044
|
-
},{"../../dependencies/src/bs58check-2.1.2/index":325,"./TezosUtils":
|
|
144164
|
+
},{"../../dependencies/src/bs58check-2.1.2/index":325,"./TezosUtils":643,"buffer":67,"libsodium-wrappers":1139}],640:[function(require,module,exports){
|
|
144045
144165
|
(function (Buffer){(function (){
|
|
144046
144166
|
"use strict";
|
|
144047
144167
|
var __extends = (this && this.__extends) || (function () {
|
|
@@ -144245,7 +144365,7 @@ var TezosCryptoClient = /** @class */ (function (_super) {
|
|
|
144245
144365
|
exports.TezosCryptoClient = TezosCryptoClient;
|
|
144246
144366
|
|
|
144247
144367
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
144248
|
-
},{"../../dependencies/src/bs58-4.0.1":323,"../../dependencies/src/bs58check-2.1.2":325,"../../errors":478,"../../errors/coinlib-error":477,"../Ed25519CryptoClient":482,"./TezosUtils":
|
|
144368
|
+
},{"../../dependencies/src/bs58-4.0.1":323,"../../dependencies/src/bs58check-2.1.2":325,"../../errors":478,"../../errors/coinlib-error":477,"../Ed25519CryptoClient":482,"./TezosUtils":643,"buffer":67,"libsodium-wrappers":1139}],641:[function(require,module,exports){
|
|
144249
144369
|
(function (Buffer){(function (){
|
|
144250
144370
|
"use strict";
|
|
144251
144371
|
var __extends = (this && this.__extends) || (function () {
|
|
@@ -146354,7 +146474,7 @@ var TezosProtocol = /** @class */ (function (_super) {
|
|
|
146354
146474
|
exports.TezosProtocol = TezosProtocol;
|
|
146355
146475
|
|
|
146356
146476
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
146357
|
-
},{"../../dependencies/src/@taquito/local-forging-8.0.1-beta.1/packages/taquito-local-forging/src/taquito-local-forging":216,"../../dependencies/src/axios-0.19.0/index":222,"../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../dependencies/src/bip39-2.5.0/index":261,"../../dependencies/src/bs58check-2.1.2/index":325,"../../dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/index":395,"../../dependencies/src/validate.js-0.13.1/validate":471,"../../errors/coinlib-error":477,"../../errors/index":478,"../../interfaces/IAirGapTransaction":480,"../../utils/ErrorWithData":775,"../../utils/ProtocolSymbols":779,"../../utils/assert":781,"../../utils/subProtocols":800,"../NonExtendedProtocol":484,"./TezosAddress":
|
|
146477
|
+
},{"../../dependencies/src/@taquito/local-forging-8.0.1-beta.1/packages/taquito-local-forging/src/taquito-local-forging":216,"../../dependencies/src/axios-0.19.0/index":222,"../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../dependencies/src/bip39-2.5.0/index":261,"../../dependencies/src/bs58check-2.1.2/index":325,"../../dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/index":395,"../../dependencies/src/validate.js-0.13.1/validate":471,"../../errors/coinlib-error":477,"../../errors/index":478,"../../interfaces/IAirGapTransaction":480,"../../utils/ErrorWithData":775,"../../utils/ProtocolSymbols":779,"../../utils/assert":781,"../../utils/subProtocols":800,"../NonExtendedProtocol":484,"./TezosAddress":639,"./TezosCryptoClient":640,"./TezosProtocolOptions":642,"./TezosUtils":643,"./rewardcalculation/TezosRewardCalculation005":671,"./rewardcalculation/TezosRewardCalculation006":672,"./rewardcalculation/TezosRewardCalculationDefault":673,"./types/TezosOperationType":684,"buffer":67}],642:[function(require,module,exports){
|
|
146358
146478
|
"use strict";
|
|
146359
146479
|
var __extends = (this && this.__extends) || (function () {
|
|
146360
146480
|
var extendStatics = function (d, b) {
|
|
@@ -146483,7 +146603,7 @@ var TezosProtocolOptions = /** @class */ (function () {
|
|
|
146483
146603
|
}());
|
|
146484
146604
|
exports.TezosProtocolOptions = TezosProtocolOptions;
|
|
146485
146605
|
|
|
146486
|
-
},{"../../utils/ProtocolNetwork":778,"./TezosProtocol":
|
|
146606
|
+
},{"../../utils/ProtocolNetwork":778,"./TezosProtocol":641}],643:[function(require,module,exports){
|
|
146487
146607
|
(function (Buffer){(function (){
|
|
146488
146608
|
"use strict";
|
|
146489
146609
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -146774,7 +146894,7 @@ var TezosUtils = /** @class */ (function () {
|
|
|
146774
146894
|
exports.TezosUtils = TezosUtils;
|
|
146775
146895
|
|
|
146776
146896
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
146777
|
-
},{"../../dependencies/src/big-integer-1.6.45/BigInteger":251,"../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../dependencies/src/bs58check-2.1.2/index":325,"../../errors":478,"../../errors/coinlib-error":477,"../../utils/hex":788,"./types/michelson/MichelsonTypeUtils":688,"./types/michelson/generics/MichelsonList":689,"./types/michelson/generics/MichelsonPair":693,"./types/michelson/primitives/MichelsonBytes":696,"./types/michelson/primitives/MichelsonInt":697,"./types/michelson/primitives/MichelsonString":698,"buffer":67,"libsodium-wrappers":1139}],
|
|
146897
|
+
},{"../../dependencies/src/big-integer-1.6.45/BigInteger":251,"../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../dependencies/src/bs58check-2.1.2/index":325,"../../errors":478,"../../errors/coinlib-error":477,"../../utils/hex":788,"./types/michelson/MichelsonTypeUtils":688,"./types/michelson/generics/MichelsonList":689,"./types/michelson/generics/MichelsonPair":693,"./types/michelson/primitives/MichelsonBytes":696,"./types/michelson/primitives/MichelsonInt":697,"./types/michelson/primitives/MichelsonString":698,"buffer":67,"libsodium-wrappers":1139}],644:[function(require,module,exports){
|
|
146778
146898
|
"use strict";
|
|
146779
146899
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
146780
146900
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -147305,7 +147425,7 @@ var TezosContract = /** @class */ (function () {
|
|
|
147305
147425
|
}());
|
|
147306
147426
|
exports.TezosContract = TezosContract;
|
|
147307
147427
|
|
|
147308
|
-
},{"../../../dependencies/src/axios-0.19.0/index":222,"../../../errors":478,"../../../errors/coinlib-error":477,"../../../utils/object":789,"../../../utils/string":799,"../TezosUtils":
|
|
147428
|
+
},{"../../../dependencies/src/axios-0.19.0/index":222,"../../../errors":478,"../../../errors/coinlib-error":477,"../../../utils/object":789,"../../../utils/string":799,"../TezosUtils":643,"../types/micheline/MichelineNodeUtils":685,"../types/michelson/MichelsonType":686,"../types/michelson/MichelsonTypeMeta":687,"../types/michelson/generics/MichelsonOr":692,"../types/utils":700,"./TezosContractCall":645,"./TezosContractEntrypoint":646,"./TezosContractStorage":647,"./remote-data/TezosContractRemoteDataFactory":648}],645:[function(require,module,exports){
|
|
147309
147429
|
"use strict";
|
|
147310
147430
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
147311
147431
|
exports.TezosContractCall = void 0;
|
|
@@ -147329,7 +147449,7 @@ var TezosContractCall = /** @class */ (function () {
|
|
|
147329
147449
|
}());
|
|
147330
147450
|
exports.TezosContractCall = TezosContractCall;
|
|
147331
147451
|
|
|
147332
|
-
},{}],
|
|
147452
|
+
},{}],646:[function(require,module,exports){
|
|
147333
147453
|
"use strict";
|
|
147334
147454
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
147335
147455
|
exports.TezosContractEntrypoint = void 0;
|
|
@@ -147357,7 +147477,7 @@ var TezosContractEntrypoint = /** @class */ (function () {
|
|
|
147357
147477
|
}());
|
|
147358
147478
|
exports.TezosContractEntrypoint = TezosContractEntrypoint;
|
|
147359
147479
|
|
|
147360
|
-
},{"../types/michelson/MichelsonTypeMeta":687,"../types/utils":700}],
|
|
147480
|
+
},{"../types/michelson/MichelsonTypeMeta":687,"../types/utils":700}],647:[function(require,module,exports){
|
|
147361
147481
|
"use strict";
|
|
147362
147482
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
147363
147483
|
exports.TezosContractStorage = void 0;
|
|
@@ -147374,7 +147494,7 @@ var TezosContractStorage = /** @class */ (function () {
|
|
|
147374
147494
|
}());
|
|
147375
147495
|
exports.TezosContractStorage = TezosContractStorage;
|
|
147376
147496
|
|
|
147377
|
-
},{"../types/michelson/MichelsonTypeMeta":687}],
|
|
147497
|
+
},{"../types/michelson/MichelsonTypeMeta":687}],648:[function(require,module,exports){
|
|
147378
147498
|
"use strict";
|
|
147379
147499
|
var __extends = (this && this.__extends) || (function () {
|
|
147380
147500
|
var extendStatics = function (d, b) {
|
|
@@ -147409,7 +147529,7 @@ var TezosContractRemoteDataFactory = /** @class */ (function (_super) {
|
|
|
147409
147529
|
}(RemoteDataFactory_1.RemoteDataFactory));
|
|
147410
147530
|
exports.TezosContractRemoteDataFactory = TezosContractRemoteDataFactory;
|
|
147411
147531
|
|
|
147412
|
-
},{"../../../../utils/remote-data/RemoteDataFactory":796,"./TezosStorageRemoteData":
|
|
147532
|
+
},{"../../../../utils/remote-data/RemoteDataFactory":796,"./TezosStorageRemoteData":649}],649:[function(require,module,exports){
|
|
147413
147533
|
"use strict";
|
|
147414
147534
|
var __extends = (this && this.__extends) || (function () {
|
|
147415
147535
|
var extendStatics = function (d, b) {
|
|
@@ -147561,7 +147681,7 @@ var TezosStorageRemoteData = /** @class */ (function (_super) {
|
|
|
147561
147681
|
}(RemoteData_1.RemoteData));
|
|
147562
147682
|
exports.TezosStorageRemoteData = TezosStorageRemoteData;
|
|
147563
147683
|
|
|
147564
|
-
},{"../../../../utils/remote-data/RemoteData":795,"../../TezosProtocol":
|
|
147684
|
+
},{"../../../../utils/remote-data/RemoteData":795,"../../TezosProtocol":641}],650:[function(require,module,exports){
|
|
147565
147685
|
(function (Buffer){(function (){
|
|
147566
147686
|
"use strict";
|
|
147567
147687
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
@@ -147861,7 +147981,7 @@ var TezosDomains = /** @class */ (function () {
|
|
|
147861
147981
|
exports.TezosDomains = TezosDomains;
|
|
147862
147982
|
|
|
147863
147983
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
147864
|
-
},{"../../../dependencies/src/idna-uts46-hx-3.4.0/uts46":398,"../../../utils/cache":785,"../../../utils/hex":788,"../TezosUtils":
|
|
147984
|
+
},{"../../../dependencies/src/idna-uts46-hx-3.4.0/uts46":398,"../../../utils/cache":785,"../../../utils/hex":788,"../TezosUtils":643,"../contract/TezosContract":644,"../types/michelson/generics/MichelsonOption":691,"../types/michelson/generics/MichelsonPair":693,"../types/michelson/primitives/MichelsonAddress":694,"../types/michelson/primitives/MichelsonBytes":696,"../types/michelson/primitives/MichelsonInt":697,"../types/michelson/primitives/MichelsonString":698,"buffer":67}],651:[function(require,module,exports){
|
|
147865
147985
|
"use strict";
|
|
147866
147986
|
var __extends = (this && this.__extends) || (function () {
|
|
147867
147987
|
var extendStatics = function (d, b) {
|
|
@@ -148011,7 +148131,7 @@ var TezosBTC = /** @class */ (function (_super) {
|
|
|
148011
148131
|
}(TezosFA1p2Protocol_1.TezosFA1p2Protocol));
|
|
148012
148132
|
exports.TezosBTC = TezosBTC;
|
|
148013
148133
|
|
|
148014
|
-
},{"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../TezosProtocolOptions":
|
|
148134
|
+
},{"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../TezosProtocolOptions":642,"../TezosUtils":643,"../types/michelson/generics/MichelsonPair":693,"../types/michelson/primitives/MichelsonInt":697,"./TezosFA1p2Protocol":655,"./TezosFAProtocolOptions":658}],652:[function(require,module,exports){
|
|
148015
148135
|
"use strict";
|
|
148016
148136
|
var __extends = (this && this.__extends) || (function () {
|
|
148017
148137
|
var extendStatics = function (d, b) {
|
|
@@ -148063,7 +148183,7 @@ var TezosCTezProtocolConfig = /** @class */ (function (_super) {
|
|
|
148063
148183
|
}(TezosFAProtocolOptions_1.TezosFAProtocolConfig));
|
|
148064
148184
|
exports.TezosCTezProtocolConfig = TezosCTezProtocolConfig;
|
|
148065
148185
|
|
|
148066
|
-
},{"../../../utils/ProtocolSymbols":779,"../TezosProtocolOptions":
|
|
148186
|
+
},{"../../../utils/ProtocolSymbols":779,"../TezosProtocolOptions":642,"./TezosFA1p2Protocol":655,"./TezosFAProtocolOptions":658}],653:[function(require,module,exports){
|
|
148067
148187
|
"use strict";
|
|
148068
148188
|
var __extends = (this && this.__extends) || (function () {
|
|
148069
148189
|
var extendStatics = function (d, b) {
|
|
@@ -148177,7 +148297,7 @@ var TezosETHtz = /** @class */ (function (_super) {
|
|
|
148177
148297
|
}(TezosFA1p2Protocol_1.TezosFA1p2Protocol));
|
|
148178
148298
|
exports.TezosETHtz = TezosETHtz;
|
|
148179
148299
|
|
|
148180
|
-
},{"../TezosProtocolOptions":
|
|
148300
|
+
},{"../TezosProtocolOptions":642,"../TezosUtils":643,"./TezosFA1p2Protocol":655,"./TezosFAProtocolOptions":658}],654:[function(require,module,exports){
|
|
148181
148301
|
"use strict";
|
|
148182
148302
|
var __extends = (this && this.__extends) || (function () {
|
|
148183
148303
|
var extendStatics = function (d, b) {
|
|
@@ -148256,6 +148376,7 @@ var utils_1 = require("../types/utils");
|
|
|
148256
148376
|
var TezosFAProtocol_1 = require("./TezosFAProtocol");
|
|
148257
148377
|
var errors_1 = require("../../../errors");
|
|
148258
148378
|
var coinlib_error_1 = require("../../../errors/coinlib-error");
|
|
148379
|
+
var MichelsonString_1 = require("../types/michelson/primitives/MichelsonString");
|
|
148259
148380
|
var TezosFA1ContractEntrypoint;
|
|
148260
148381
|
(function (TezosFA1ContractEntrypoint) {
|
|
148261
148382
|
TezosFA1ContractEntrypoint["BALANCE"] = "getBalance";
|
|
@@ -148366,10 +148487,8 @@ var TezosFA1Protocol = /** @class */ (function (_super) {
|
|
|
148366
148487
|
return __generator(this, function (_a) {
|
|
148367
148488
|
switch (_a.label) {
|
|
148368
148489
|
case 0: return [4 /*yield*/, this.contract.createContractCall(TezosFA1ContractEntrypoint.BALANCE, [
|
|
148369
|
-
|
|
148370
|
-
|
|
148371
|
-
},
|
|
148372
|
-
callbackContract
|
|
148490
|
+
new MichelsonAddress_1.MichelsonAddress(new MichelsonString_1.MichelsonString(address)),
|
|
148491
|
+
new MichelsonAddress_1.MichelsonAddress(new MichelsonString_1.MichelsonString(callbackContract))
|
|
148373
148492
|
])];
|
|
148374
148493
|
case 1:
|
|
148375
148494
|
getBalanceCall = _a.sent();
|
|
@@ -148490,7 +148609,7 @@ var TezosFA1Protocol = /** @class */ (function (_super) {
|
|
|
148490
148609
|
}(TezosFAProtocol_1.TezosFAProtocol));
|
|
148491
148610
|
exports.TezosFA1Protocol = TezosFA1Protocol;
|
|
148492
148611
|
|
|
148493
|
-
},{"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../../errors":478,"../../../errors/coinlib-error":477,"../../../utils/hex":788,"../TezosProtocol":
|
|
148612
|
+
},{"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../../errors":478,"../../../errors/coinlib-error":477,"../../../utils/hex":788,"../TezosProtocol":641,"../TezosUtils":643,"../types/TezosOperationType":684,"../types/michelson/generics/MichelsonPair":693,"../types/michelson/primitives/MichelsonAddress":694,"../types/michelson/primitives/MichelsonInt":697,"../types/michelson/primitives/MichelsonString":698,"../types/utils":700,"./TezosFAProtocol":657}],655:[function(require,module,exports){
|
|
148494
148613
|
"use strict";
|
|
148495
148614
|
var __extends = (this && this.__extends) || (function () {
|
|
148496
148615
|
var extendStatics = function (d, b) {
|
|
@@ -148608,7 +148727,7 @@ var TezosFA1p2Protocol = /** @class */ (function (_super) {
|
|
|
148608
148727
|
}(TezosFA1Protocol_1.TezosFA1Protocol));
|
|
148609
148728
|
exports.TezosFA1p2Protocol = TezosFA1p2Protocol;
|
|
148610
148729
|
|
|
148611
|
-
},{"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"./TezosFA1Protocol":
|
|
148730
|
+
},{"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"./TezosFA1Protocol":654}],656:[function(require,module,exports){
|
|
148612
148731
|
"use strict";
|
|
148613
148732
|
var __extends = (this && this.__extends) || (function () {
|
|
148614
148733
|
var extendStatics = function (d, b) {
|
|
@@ -149128,7 +149247,7 @@ var TezosFA2Protocol = /** @class */ (function (_super) {
|
|
|
149128
149247
|
}(TezosFAProtocol_1.TezosFAProtocol));
|
|
149129
149248
|
exports.TezosFA2Protocol = TezosFA2Protocol;
|
|
149130
149249
|
|
|
149131
|
-
},{"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../../errors":478,"../../../errors/coinlib-error":477,"../../../utils/hex":788,"../TezosProtocol":
|
|
149250
|
+
},{"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../../errors":478,"../../../errors/coinlib-error":477,"../../../utils/hex":788,"../TezosProtocol":641,"../TezosUtils":643,"../types/TezosOperationType":684,"../types/michelson/generics/MichelsonList":689,"../types/michelson/generics/MichelsonPair":693,"../types/michelson/primitives/MichelsonAddress":694,"../types/michelson/primitives/MichelsonInt":697,"../types/michelson/primitives/MichelsonString":698,"../types/utils":700,"./TezosFAProtocol":657}],657:[function(require,module,exports){
|
|
149132
149251
|
"use strict";
|
|
149133
149252
|
var __extends = (this && this.__extends) || (function () {
|
|
149134
149253
|
var extendStatics = function (d, b) {
|
|
@@ -149746,7 +149865,7 @@ var TezosFAProtocol = /** @class */ (function (_super) {
|
|
|
149746
149865
|
}(TezosProtocol_1.TezosProtocol));
|
|
149747
149866
|
exports.TezosFAProtocol = TezosFAProtocol;
|
|
149748
149867
|
|
|
149749
|
-
},{"../../../dependencies/src/axios-0.19.0/index":222,"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../../errors":478,"../../../errors/coinlib-error":477,"../../../utils/hex":788,"../../ICoinSubProtocol":483,"../TezosProtocol":
|
|
149868
|
+
},{"../../../dependencies/src/axios-0.19.0/index":222,"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../../errors":478,"../../../errors/coinlib-error":477,"../../../utils/hex":788,"../../ICoinSubProtocol":483,"../TezosProtocol":641,"../TezosUtils":643,"../contract/TezosContract":644,"../contract/remote-data/TezosContractRemoteDataFactory":648,"../types/TezosOperationType":684,"../types/utils":700}],658:[function(require,module,exports){
|
|
149750
149869
|
"use strict";
|
|
149751
149870
|
// tslint:disable:max-classes-per-file
|
|
149752
149871
|
var __extends = (this && this.__extends) || (function () {
|
|
@@ -149975,7 +150094,7 @@ var TezosFA2ProtocolOptions = /** @class */ (function () {
|
|
|
149975
150094
|
}());
|
|
149976
150095
|
exports.TezosFA2ProtocolOptions = TezosFA2ProtocolOptions;
|
|
149977
150096
|
|
|
149978
|
-
},{"../../../serializer/constants":738,"../../../utils/ProtocolSymbols":779,"../TezosProtocolOptions":
|
|
150097
|
+
},{"../../../serializer/constants":738,"../../../utils/ProtocolSymbols":779,"../TezosProtocolOptions":642}],659:[function(require,module,exports){
|
|
149979
150098
|
"use strict";
|
|
149980
150099
|
var __extends = (this && this.__extends) || (function () {
|
|
149981
150100
|
var extendStatics = function (d, b) {
|
|
@@ -150089,7 +150208,7 @@ var TezosKolibriUSD = /** @class */ (function (_super) {
|
|
|
150089
150208
|
}(TezosFA1p2Protocol_1.TezosFA1p2Protocol));
|
|
150090
150209
|
exports.TezosKolibriUSD = TezosKolibriUSD;
|
|
150091
150210
|
|
|
150092
|
-
},{"../TezosProtocolOptions":
|
|
150211
|
+
},{"../TezosProtocolOptions":642,"../TezosUtils":643,"./TezosFA1p2Protocol":655,"./TezosFAProtocolOptions":658}],660:[function(require,module,exports){
|
|
150093
150212
|
"use strict";
|
|
150094
150213
|
var __extends = (this && this.__extends) || (function () {
|
|
150095
150214
|
var extendStatics = function (d, b) {
|
|
@@ -150141,7 +150260,7 @@ var TezosPlentyProtocolConfig = /** @class */ (function (_super) {
|
|
|
150141
150260
|
}(TezosFAProtocolOptions_1.TezosFAProtocolConfig));
|
|
150142
150261
|
exports.TezosPlentyProtocolConfig = TezosPlentyProtocolConfig;
|
|
150143
150262
|
|
|
150144
|
-
},{"../../../utils/ProtocolSymbols":779,"../TezosProtocolOptions":
|
|
150263
|
+
},{"../../../utils/ProtocolSymbols":779,"../TezosProtocolOptions":642,"./TezosFA1p2Protocol":655,"./TezosFAProtocolOptions":658}],661:[function(require,module,exports){
|
|
150145
150264
|
"use strict";
|
|
150146
150265
|
var __extends = (this && this.__extends) || (function () {
|
|
150147
150266
|
var extendStatics = function (d, b) {
|
|
@@ -150196,7 +150315,7 @@ var TezosQUIPUProtocolConfig = /** @class */ (function (_super) {
|
|
|
150196
150315
|
}(TezosFAProtocolOptions_1.TezosFA2ProtocolConfig));
|
|
150197
150316
|
exports.TezosQUIPUProtocolConfig = TezosQUIPUProtocolConfig;
|
|
150198
150317
|
|
|
150199
|
-
},{"../../../utils/ProtocolSymbols":779,"../TezosProtocolOptions":
|
|
150318
|
+
},{"../../../utils/ProtocolSymbols":779,"../TezosProtocolOptions":642,"./TezosFA2Protocol":656,"./TezosFAProtocolOptions":658}],662:[function(require,module,exports){
|
|
150200
150319
|
"use strict";
|
|
150201
150320
|
var __extends = (this && this.__extends) || (function () {
|
|
150202
150321
|
var extendStatics = function (d, b) {
|
|
@@ -150285,7 +150404,7 @@ var TezosStaker = /** @class */ (function (_super) {
|
|
|
150285
150404
|
}(TezosFA1Protocol_1.TezosFA1Protocol));
|
|
150286
150405
|
exports.TezosStaker = TezosStaker;
|
|
150287
150406
|
|
|
150288
|
-
},{"../TezosProtocolOptions":
|
|
150407
|
+
},{"../TezosProtocolOptions":642,"../TezosUtils":643,"./TezosFA1Protocol":654,"./TezosFAProtocolOptions":658}],663:[function(require,module,exports){
|
|
150289
150408
|
"use strict";
|
|
150290
150409
|
var __extends = (this && this.__extends) || (function () {
|
|
150291
150410
|
var extendStatics = function (d, b) {
|
|
@@ -150340,7 +150459,7 @@ var TezosUDEFIProtocolConfig = /** @class */ (function (_super) {
|
|
|
150340
150459
|
}(TezosFAProtocolOptions_1.TezosFA2ProtocolConfig));
|
|
150341
150460
|
exports.TezosUDEFIProtocolConfig = TezosUDEFIProtocolConfig;
|
|
150342
150461
|
|
|
150343
|
-
},{"../../../utils/ProtocolSymbols":779,"../TezosProtocolOptions":
|
|
150462
|
+
},{"../../../utils/ProtocolSymbols":779,"../TezosProtocolOptions":642,"./TezosFA2Protocol":656,"./TezosFAProtocolOptions":658}],664:[function(require,module,exports){
|
|
150344
150463
|
"use strict";
|
|
150345
150464
|
var __extends = (this && this.__extends) || (function () {
|
|
150346
150465
|
var extendStatics = function (d, b) {
|
|
@@ -150452,7 +150571,7 @@ var TezosUSD = /** @class */ (function (_super) {
|
|
|
150452
150571
|
}(TezosFA1p2Protocol_1.TezosFA1p2Protocol));
|
|
150453
150572
|
exports.TezosUSD = TezosUSD;
|
|
150454
150573
|
|
|
150455
|
-
},{"../TezosProtocolOptions":
|
|
150574
|
+
},{"../TezosProtocolOptions":642,"../TezosUtils":643,"./TezosFA1p2Protocol":655,"./TezosFAProtocolOptions":658}],665:[function(require,module,exports){
|
|
150456
150575
|
"use strict";
|
|
150457
150576
|
var __extends = (this && this.__extends) || (function () {
|
|
150458
150577
|
var extendStatics = function (d, b) {
|
|
@@ -150484,7 +150603,7 @@ var TezosUUSD = /** @class */ (function (_super) {
|
|
|
150484
150603
|
}(TezosFA2Protocol_1.TezosFA2Protocol));
|
|
150485
150604
|
exports.TezosUUSD = TezosUUSD;
|
|
150486
150605
|
|
|
150487
|
-
},{"../TezosProtocolOptions":
|
|
150606
|
+
},{"../TezosProtocolOptions":642,"./TezosFA2Protocol":656,"./TezosFAProtocolOptions":658}],666:[function(require,module,exports){
|
|
150488
150607
|
"use strict";
|
|
150489
150608
|
var __extends = (this && this.__extends) || (function () {
|
|
150490
150609
|
var extendStatics = function (d, b) {
|
|
@@ -150539,7 +150658,7 @@ var TezosWRAPProtocolConfig = /** @class */ (function (_super) {
|
|
|
150539
150658
|
}(TezosFAProtocolOptions_1.TezosFA2ProtocolConfig));
|
|
150540
150659
|
exports.TezosWRAPProtocolConfig = TezosWRAPProtocolConfig;
|
|
150541
150660
|
|
|
150542
|
-
},{"../../../utils/ProtocolSymbols":779,"../TezosProtocolOptions":
|
|
150661
|
+
},{"../../../utils/ProtocolSymbols":779,"../TezosProtocolOptions":642,"./TezosFA2Protocol":656,"./TezosFAProtocolOptions":658}],667:[function(require,module,exports){
|
|
150543
150662
|
"use strict";
|
|
150544
150663
|
var __extends = (this && this.__extends) || (function () {
|
|
150545
150664
|
var extendStatics = function (d, b) {
|
|
@@ -150649,7 +150768,7 @@ var TezosWrapped = /** @class */ (function (_super) {
|
|
|
150649
150768
|
}(TezosFA1p2Protocol_1.TezosFA1p2Protocol));
|
|
150650
150769
|
exports.TezosWrapped = TezosWrapped;
|
|
150651
150770
|
|
|
150652
|
-
},{"../TezosProtocolOptions":
|
|
150771
|
+
},{"../TezosProtocolOptions":642,"../TezosUtils":643,"./TezosFA1p2Protocol":655,"./TezosFAProtocolOptions":658}],668:[function(require,module,exports){
|
|
150653
150772
|
"use strict";
|
|
150654
150773
|
var __extends = (this && this.__extends) || (function () {
|
|
150655
150774
|
var extendStatics = function (d, b) {
|
|
@@ -150681,7 +150800,7 @@ var TezosYOU = /** @class */ (function (_super) {
|
|
|
150681
150800
|
}(TezosFA2Protocol_1.TezosFA2Protocol));
|
|
150682
150801
|
exports.TezosYOU = TezosYOU;
|
|
150683
150802
|
|
|
150684
|
-
},{"../TezosProtocolOptions":
|
|
150803
|
+
},{"../TezosProtocolOptions":642,"./TezosFA2Protocol":656,"./TezosFAProtocolOptions":658}],669:[function(require,module,exports){
|
|
150685
150804
|
"use strict";
|
|
150686
150805
|
var __extends = (this && this.__extends) || (function () {
|
|
150687
150806
|
var extendStatics = function (d, b) {
|
|
@@ -150754,7 +150873,7 @@ var TezosKtAddress = /** @class */ (function (_super) {
|
|
|
150754
150873
|
}(TezosAddress_1.TezosAddress));
|
|
150755
150874
|
exports.TezosKtAddress = TezosKtAddress;
|
|
150756
150875
|
|
|
150757
|
-
},{"../TezosAddress":
|
|
150876
|
+
},{"../TezosAddress":639}],670:[function(require,module,exports){
|
|
150758
150877
|
"use strict";
|
|
150759
150878
|
var __extends = (this && this.__extends) || (function () {
|
|
150760
150879
|
var extendStatics = function (d, b) {
|
|
@@ -151054,7 +151173,7 @@ var TezosKtProtocol = /** @class */ (function (_super) {
|
|
|
151054
151173
|
}(TezosProtocol_1.TezosProtocol));
|
|
151055
151174
|
exports.TezosKtProtocol = TezosKtProtocol;
|
|
151056
151175
|
|
|
151057
|
-
},{"../../../dependencies/src/axios-0.19.0/index":222,"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../../errors":478,"../../../errors/coinlib-error":477,"../../../utils/ProtocolSymbols":779,"../../ICoinSubProtocol":483,"../TezosProtocol":
|
|
151176
|
+
},{"../../../dependencies/src/axios-0.19.0/index":222,"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../../errors":478,"../../../errors/coinlib-error":477,"../../../utils/ProtocolSymbols":779,"../../ICoinSubProtocol":483,"../TezosProtocol":641,"../TezosUtils":643,"../types/TezosOperationType":684,"./TezosKtAddress":669}],671:[function(require,module,exports){
|
|
151058
151177
|
"use strict";
|
|
151059
151178
|
var __extends = (this && this.__extends) || (function () {
|
|
151060
151179
|
var extendStatics = function (d, b) {
|
|
@@ -151219,7 +151338,7 @@ var TezosRewardsCalculation005 = /** @class */ (function (_super) {
|
|
|
151219
151338
|
}(TezosRewardCalculationDefault_1.TezosRewardsCalculationDefault));
|
|
151220
151339
|
exports.TezosRewardsCalculation005 = TezosRewardsCalculation005;
|
|
151221
151340
|
|
|
151222
|
-
},{"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../../errors":478,"../../../errors/coinlib-error":477,"./TezosRewardCalculationDefault":
|
|
151341
|
+
},{"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../../errors":478,"../../../errors/coinlib-error":477,"./TezosRewardCalculationDefault":673}],672:[function(require,module,exports){
|
|
151223
151342
|
"use strict";
|
|
151224
151343
|
var __extends = (this && this.__extends) || (function () {
|
|
151225
151344
|
var extendStatics = function (d, b) {
|
|
@@ -151271,7 +151390,7 @@ var TezosRewardsCalculation006 = /** @class */ (function (_super) {
|
|
|
151271
151390
|
}(TezosRewardCalculation005_1.TezosRewardsCalculation005));
|
|
151272
151391
|
exports.TezosRewardsCalculation006 = TezosRewardsCalculation006;
|
|
151273
151392
|
|
|
151274
|
-
},{"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"./TezosRewardCalculation005":
|
|
151393
|
+
},{"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"./TezosRewardCalculation005":671}],673:[function(require,module,exports){
|
|
151275
151394
|
"use strict";
|
|
151276
151395
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
151277
151396
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -151914,7 +152033,7 @@ var TezosRewardsCalculationDefault = /** @class */ (function () {
|
|
|
151914
152033
|
}());
|
|
151915
152034
|
exports.TezosRewardsCalculationDefault = TezosRewardsCalculationDefault;
|
|
151916
152035
|
|
|
151917
|
-
},{"../../../dependencies/src/axios-0.19.0/index":222,"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../../errors":478,"../../../errors/coinlib-error":477}],
|
|
152036
|
+
},{"../../../dependencies/src/axios-0.19.0/index":222,"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../../errors":478,"../../../errors/coinlib-error":477}],674:[function(require,module,exports){
|
|
151918
152037
|
(function (Buffer){(function (){
|
|
151919
152038
|
"use strict";
|
|
151920
152039
|
var __extends = (this && this.__extends) || (function () {
|
|
@@ -152051,7 +152170,7 @@ var TezosSaplingAddress = /** @class */ (function (_super) {
|
|
|
152051
152170
|
exports.TezosSaplingAddress = TezosSaplingAddress;
|
|
152052
152171
|
|
|
152053
152172
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
152054
|
-
},{"../../../dependencies/src/bs58check-2.1.2/index":325,"../TezosAddress":
|
|
152173
|
+
},{"../../../dependencies/src/bs58check-2.1.2/index":325,"../TezosAddress":639,"../TezosUtils":643,"@airgap/sapling-wasm":809,"buffer":67}],675:[function(require,module,exports){
|
|
152055
152174
|
(function (Buffer){(function (){
|
|
152056
152175
|
"use strict";
|
|
152057
152176
|
var __extends = (this && this.__extends) || (function () {
|
|
@@ -152294,7 +152413,7 @@ var TezosSaplingCryptoClient = /** @class */ (function (_super) {
|
|
|
152294
152413
|
exports.TezosSaplingCryptoClient = TezosSaplingCryptoClient;
|
|
152295
152414
|
|
|
152296
152415
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
152297
|
-
},{"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../../utils/blake2b":783,"../../../utils/hex":788,"../../Ed25519CryptoClient":482,"./TezosSaplingAddress":
|
|
152416
|
+
},{"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../../utils/blake2b":783,"../../../utils/hex":788,"../../Ed25519CryptoClient":482,"./TezosSaplingAddress":674,"@airgap/sapling-wasm":809,"buffer":67,"libsodium-wrappers":1139}],676:[function(require,module,exports){
|
|
152298
152417
|
(function (Buffer){(function (){
|
|
152299
152418
|
"use strict";
|
|
152300
152419
|
var __extends = (this && this.__extends) || (function () {
|
|
@@ -152633,45 +152752,39 @@ var TezosSaplingProtocol = /** @class */ (function (_super) {
|
|
|
152633
152752
|
case 2:
|
|
152634
152753
|
forgedTransaction = _a.sent();
|
|
152635
152754
|
signed = this.encoder.encodeTransaction(forgedTransaction).toString('hex');
|
|
152636
|
-
return [2 /*return*/, transaction.callParameters
|
|
152637
|
-
? transaction.callParameters.replace(TezosSaplingProtocol.TRANSACTION_PLACEHOLDER, signed)
|
|
152638
|
-
: signed];
|
|
152755
|
+
return [2 /*return*/, transaction.callParameters.replace(TezosSaplingProtocol.TRANSACTION_PLACEHOLDER, signed)];
|
|
152639
152756
|
}
|
|
152640
152757
|
});
|
|
152641
152758
|
});
|
|
152642
152759
|
};
|
|
152643
152760
|
TezosSaplingProtocol.prototype.getTransactionDetails = function (transaction, data) {
|
|
152644
152761
|
return __awaiter(this, void 0, void 0, function () {
|
|
152645
|
-
var tx, airGapTxs, from,
|
|
152762
|
+
var tx, airGapTxs, from, parameters, wrappedTransactions, wrappedOperation, _a, _b, _c;
|
|
152646
152763
|
return __generator(this, function (_d) {
|
|
152647
152764
|
switch (_d.label) {
|
|
152648
152765
|
case 0:
|
|
152649
152766
|
tx = transaction.transaction;
|
|
152650
152767
|
airGapTxs = [];
|
|
152651
|
-
if (!this.isRawTezosSaplingTransaction(tx)) return [3 /*break*/,
|
|
152768
|
+
if (!this.isRawTezosSaplingTransaction(tx)) return [3 /*break*/, 3];
|
|
152652
152769
|
return [4 /*yield*/, this.getAddressFromPublicKey(transaction.publicKey)];
|
|
152653
152770
|
case 1:
|
|
152654
152771
|
from = _d.sent();
|
|
152655
|
-
wrappedTransactions = [];
|
|
152656
|
-
if (!tx.callParameters) return [3 /*break*/, 3];
|
|
152657
152772
|
parameters = this.contract.parseParameters(tx.callParameters);
|
|
152658
152773
|
return [4 /*yield*/, this.parseParameters(parameters)];
|
|
152659
152774
|
case 2:
|
|
152660
152775
|
wrappedTransactions = _d.sent();
|
|
152661
|
-
_d.label = 3;
|
|
152662
|
-
case 3:
|
|
152663
152776
|
airGapTxs.push.apply(airGapTxs, this.bookkeeper.getUnsignedTransactionDetails(from, tx.ins, tx.outs, wrappedTransactions));
|
|
152664
|
-
return [3 /*break*/,
|
|
152665
|
-
case
|
|
152666
|
-
case
|
|
152777
|
+
return [3 /*break*/, 6];
|
|
152778
|
+
case 3: return [4 /*yield*/, this.tezosProtocol.unforgeUnsignedTezosWrappedOperation(tx.binaryTransaction)];
|
|
152779
|
+
case 4:
|
|
152667
152780
|
wrappedOperation = _d.sent();
|
|
152668
152781
|
_b = (_a = airGapTxs.push).apply;
|
|
152669
152782
|
_c = [airGapTxs];
|
|
152670
152783
|
return [4 /*yield*/, this.getTransactionDetailsFromWrappedOperation(wrappedOperation, data === null || data === void 0 ? void 0 : data.knownViewingKeys)];
|
|
152671
|
-
case
|
|
152784
|
+
case 5:
|
|
152672
152785
|
_b.apply(_a, _c.concat([(_d.sent())]));
|
|
152673
|
-
_d.label =
|
|
152674
|
-
case
|
|
152786
|
+
_d.label = 6;
|
|
152787
|
+
case 6: return [2 /*return*/, this.filterOutPaybacks(airGapTxs)];
|
|
152675
152788
|
}
|
|
152676
152789
|
});
|
|
152677
152790
|
});
|
|
@@ -152861,12 +152974,34 @@ var TezosSaplingProtocol = /** @class */ (function (_super) {
|
|
|
152861
152974
|
};
|
|
152862
152975
|
TezosSaplingProtocol.prototype.prepareShieldTransaction = function (publicKey, recipient, value, fee, data) {
|
|
152863
152976
|
return __awaiter(this, void 0, void 0, function () {
|
|
152864
|
-
var encodedTransaction, wrappedTransaction;
|
|
152865
|
-
|
|
152866
|
-
|
|
152867
|
-
|
|
152977
|
+
var _a, saplingStateDiff, chainId, output, stateTree, forgedTransaction, encodedTransaction, wrappedTransaction;
|
|
152978
|
+
var _b;
|
|
152979
|
+
return __generator(this, function (_c) {
|
|
152980
|
+
switch (_c.label) {
|
|
152981
|
+
case 0:
|
|
152982
|
+
if (!TezosSaplingAddress_1.TezosSaplingAddress.isZetAddress(recipient)) {
|
|
152983
|
+
return [2 /*return*/, Promise.reject("Invalid recipient, expected a 'zet' address, got " + recipient)];
|
|
152984
|
+
}
|
|
152985
|
+
return [4 /*yield*/, Promise.all([
|
|
152986
|
+
this.nodeClient.getSaplingStateDiff(),
|
|
152987
|
+
this.nodeClient.getChainId()
|
|
152988
|
+
])];
|
|
152868
152989
|
case 1:
|
|
152869
|
-
|
|
152990
|
+
_a = _c.sent(), saplingStateDiff = _a[0], chainId = _a[1];
|
|
152991
|
+
_b = {};
|
|
152992
|
+
return [4 /*yield*/, TezosSaplingAddress_1.TezosSaplingAddress.fromValue(recipient)];
|
|
152993
|
+
case 2:
|
|
152994
|
+
output = (_b.address = (_c.sent()).getValue(),
|
|
152995
|
+
_b.value = value,
|
|
152996
|
+
_b.memo = Buffer.alloc(this.options.config.memoSize).toString('hex'),
|
|
152997
|
+
_b);
|
|
152998
|
+
return [4 /*yield*/, this.state.getStateTreeFromStateDiff(saplingStateDiff, true)];
|
|
152999
|
+
case 3:
|
|
153000
|
+
stateTree = _c.sent();
|
|
153001
|
+
return [4 /*yield*/, this.forger.forgeSaplingTransaction([], [output], stateTree, this.getAntiReplay(chainId))];
|
|
153002
|
+
case 4:
|
|
153003
|
+
forgedTransaction = _c.sent();
|
|
153004
|
+
encodedTransaction = this.encoder.encodeTransaction(forgedTransaction).toString('hex');
|
|
152870
153005
|
wrappedTransaction = { signed: encodedTransaction };
|
|
152871
153006
|
return [2 /*return*/, this.wrapSaplingTransactions(publicKey, [wrappedTransaction], fee, data === null || data === void 0 ? void 0 : data.overrideFees)];
|
|
152872
153007
|
}
|
|
@@ -152875,20 +153010,40 @@ var TezosSaplingProtocol = /** @class */ (function (_super) {
|
|
|
152875
153010
|
};
|
|
152876
153011
|
TezosSaplingProtocol.prototype.prepareUnshieldTransaction = function (viewingKey, recipient, value, data) {
|
|
152877
153012
|
return __awaiter(this, void 0, void 0, function () {
|
|
152878
|
-
var
|
|
152879
|
-
|
|
152880
|
-
|
|
153013
|
+
var _a, stateDiff, chainId, _b, inputs, toSpend, paybackOutput, contractCall;
|
|
153014
|
+
var _c;
|
|
153015
|
+
return __generator(this, function (_d) {
|
|
153016
|
+
switch (_d.label) {
|
|
152881
153017
|
case 0:
|
|
152882
153018
|
if (!TezosAddress_1.TezosAddress.isTzAddress(recipient)) {
|
|
152883
153019
|
return [2 /*return*/, Promise.reject("Invalid recpient, expected a 'tz' address, got " + recipient)];
|
|
152884
153020
|
}
|
|
152885
|
-
return [4 /*yield*/,
|
|
153021
|
+
return [4 /*yield*/, Promise.all([
|
|
153022
|
+
this.nodeClient.getSaplingStateDiff(),
|
|
153023
|
+
this.nodeClient.getChainId()
|
|
153024
|
+
])];
|
|
152886
153025
|
case 1:
|
|
152887
|
-
|
|
152888
|
-
return [4 /*yield*/, this.
|
|
153026
|
+
_a = _d.sent(), stateDiff = _a[0], chainId = _a[1];
|
|
153027
|
+
return [4 /*yield*/, this.chooseInputs(viewingKey, stateDiff.commitments_and_ciphertexts, stateDiff.nullifiers, value)];
|
|
152889
153028
|
case 2:
|
|
152890
|
-
|
|
152891
|
-
|
|
153029
|
+
_b = _d.sent(), inputs = _b[0], toSpend = _b[1];
|
|
153030
|
+
_c = {};
|
|
153031
|
+
return [4 /*yield*/, this.getAddressFromPublicKey(viewingKey)];
|
|
153032
|
+
case 3:
|
|
153033
|
+
paybackOutput = (_c.address = (_d.sent()).getValue(),
|
|
153034
|
+
_c.value = toSpend.minus(value).toString(),
|
|
153035
|
+
_c.memo = Buffer.alloc(this.options.config.memoSize).toString('hex'),
|
|
153036
|
+
_c);
|
|
153037
|
+
return [4 /*yield*/, this.preparePartialContractCall(recipient)];
|
|
153038
|
+
case 4:
|
|
153039
|
+
contractCall = _d.sent();
|
|
153040
|
+
return [2 /*return*/, {
|
|
153041
|
+
ins: inputs,
|
|
153042
|
+
outs: [paybackOutput],
|
|
153043
|
+
chainId: chainId,
|
|
153044
|
+
stateDiff: stateDiff,
|
|
153045
|
+
callParameters: JSON.stringify(contractCall.toJSON())
|
|
153046
|
+
}];
|
|
152892
153047
|
}
|
|
152893
153048
|
});
|
|
152894
153049
|
});
|
|
@@ -152945,74 +153100,7 @@ var TezosSaplingProtocol = /** @class */ (function (_super) {
|
|
|
152945
153100
|
outs: __spreadArrays([paymentOutput, paybackOutput], dummyOutputs),
|
|
152946
153101
|
chainId: chainId,
|
|
152947
153102
|
stateDiff: stateDiff,
|
|
152948
|
-
callParameters:
|
|
152949
|
-
}];
|
|
152950
|
-
}
|
|
152951
|
-
});
|
|
152952
|
-
});
|
|
152953
|
-
};
|
|
152954
|
-
TezosSaplingProtocol.prototype.mint = function (recipient, value) {
|
|
152955
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
152956
|
-
var _a, saplingStateDiff, chainId, output, stateTree, forgedTransaction;
|
|
152957
|
-
var _b;
|
|
152958
|
-
return __generator(this, function (_c) {
|
|
152959
|
-
switch (_c.label) {
|
|
152960
|
-
case 0:
|
|
152961
|
-
if (!TezosSaplingAddress_1.TezosSaplingAddress.isZetAddress(recipient)) {
|
|
152962
|
-
return [2 /*return*/, Promise.reject("Invalid recipient, expected a 'zet' address, got " + recipient)];
|
|
152963
|
-
}
|
|
152964
|
-
return [4 /*yield*/, Promise.all([
|
|
152965
|
-
this.nodeClient.getSaplingStateDiff(),
|
|
152966
|
-
this.nodeClient.getChainId()
|
|
152967
|
-
])];
|
|
152968
|
-
case 1:
|
|
152969
|
-
_a = _c.sent(), saplingStateDiff = _a[0], chainId = _a[1];
|
|
152970
|
-
_b = {};
|
|
152971
|
-
return [4 /*yield*/, TezosSaplingAddress_1.TezosSaplingAddress.fromValue(recipient)];
|
|
152972
|
-
case 2:
|
|
152973
|
-
output = (_b.address = (_c.sent()).getValue(),
|
|
152974
|
-
_b.value = value,
|
|
152975
|
-
_b.memo = Buffer.alloc(this.options.config.memoSize).toString('hex'),
|
|
152976
|
-
_b);
|
|
152977
|
-
return [4 /*yield*/, this.state.getStateTreeFromStateDiff(saplingStateDiff, true)];
|
|
152978
|
-
case 3:
|
|
152979
|
-
stateTree = _c.sent();
|
|
152980
|
-
return [4 /*yield*/, this.forger.forgeSaplingTransaction([], [output], stateTree, this.getAntiReplay(chainId))];
|
|
152981
|
-
case 4:
|
|
152982
|
-
forgedTransaction = _c.sent();
|
|
152983
|
-
return [2 /*return*/, this.encoder.encodeTransaction(forgedTransaction).toString('hex')];
|
|
152984
|
-
}
|
|
152985
|
-
});
|
|
152986
|
-
});
|
|
152987
|
-
};
|
|
152988
|
-
TezosSaplingProtocol.prototype.burn = function (viewingKey, value) {
|
|
152989
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
152990
|
-
var _a, stateDiff, chainId, _b, inputs, toSpend, paybackOutput;
|
|
152991
|
-
var _c;
|
|
152992
|
-
return __generator(this, function (_d) {
|
|
152993
|
-
switch (_d.label) {
|
|
152994
|
-
case 0: return [4 /*yield*/, Promise.all([
|
|
152995
|
-
this.nodeClient.getSaplingStateDiff(),
|
|
152996
|
-
this.nodeClient.getChainId()
|
|
152997
|
-
])];
|
|
152998
|
-
case 1:
|
|
152999
|
-
_a = _d.sent(), stateDiff = _a[0], chainId = _a[1];
|
|
153000
|
-
return [4 /*yield*/, this.chooseInputs(viewingKey, stateDiff.commitments_and_ciphertexts, stateDiff.nullifiers, value)];
|
|
153001
|
-
case 2:
|
|
153002
|
-
_b = _d.sent(), inputs = _b[0], toSpend = _b[1];
|
|
153003
|
-
_c = {};
|
|
153004
|
-
return [4 /*yield*/, this.getAddressFromPublicKey(viewingKey)];
|
|
153005
|
-
case 3:
|
|
153006
|
-
paybackOutput = (_c.address = (_d.sent()).getValue(),
|
|
153007
|
-
_c.value = toSpend.minus(value).toString(),
|
|
153008
|
-
_c.memo = Buffer.alloc(this.options.config.memoSize).toString('hex'),
|
|
153009
|
-
_c);
|
|
153010
|
-
return [2 /*return*/, {
|
|
153011
|
-
ins: inputs,
|
|
153012
|
-
outs: [paybackOutput],
|
|
153013
|
-
chainId: chainId,
|
|
153014
|
-
stateDiff: stateDiff,
|
|
153015
|
-
callParameters: ''
|
|
153103
|
+
callParameters: JSON.stringify(contractCall.toJSON())
|
|
153016
153104
|
}];
|
|
153017
153105
|
}
|
|
153018
153106
|
});
|
|
@@ -153229,7 +153317,8 @@ var TezosSaplingProtocol = /** @class */ (function (_super) {
|
|
|
153229
153317
|
'ins' in transaction &&
|
|
153230
153318
|
'outs' in transaction &&
|
|
153231
153319
|
'chainId' in transaction &&
|
|
153232
|
-
'stateDiff' in transaction
|
|
153320
|
+
'stateDiff' in transaction &&
|
|
153321
|
+
'callParameters' in transaction);
|
|
153233
153322
|
};
|
|
153234
153323
|
TezosSaplingProtocol.TRANSACTION_PLACEHOLDER = 'TRANSACTION_PLACEHOLDER';
|
|
153235
153324
|
return TezosSaplingProtocol;
|
|
@@ -153237,7 +153326,7 @@ var TezosSaplingProtocol = /** @class */ (function (_super) {
|
|
|
153237
153326
|
exports.TezosSaplingProtocol = TezosSaplingProtocol;
|
|
153238
153327
|
|
|
153239
153328
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
153240
|
-
},{"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../../dependencies/src/bip39-2.5.0":261,"../../../utils/array":780,"../../NonExtendedProtocol":484,"../TezosAddress":
|
|
153329
|
+
},{"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../../dependencies/src/bip39-2.5.0":261,"../../../utils/array":780,"../../NonExtendedProtocol":484,"../TezosAddress":639,"../TezosProtocol":641,"../TezosProtocolOptions":642,"../contract/TezosContract":644,"../types/TezosOperationType":684,"./TezosSaplingAddress":674,"./TezosSaplingCryptoClient":675,"./node/TezosSaplingNodeClient":679,"./utils/TezosSaplingBookkeeper":680,"./utils/TezosSaplingEncoder":681,"./utils/TezosSaplingForger":682,"./utils/TezosSaplingState":683,"@airgap/sapling-wasm":809,"buffer":67,"libsodium-wrappers":1139}],677:[function(require,module,exports){
|
|
153241
153330
|
"use strict";
|
|
153242
153331
|
var __extends = (this && this.__extends) || (function () {
|
|
153243
153332
|
var extendStatics = function (d, b) {
|
|
@@ -153253,7 +153342,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
153253
153342
|
};
|
|
153254
153343
|
})();
|
|
153255
153344
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
153256
|
-
exports.
|
|
153345
|
+
exports.TezosSaplingProtocolOptions = exports.TezosShieldedTezProtocolConfig = exports.TezosSaplingProtocolConfig = void 0;
|
|
153257
153346
|
var ProtocolNetwork_1 = require("../../../utils/ProtocolNetwork");
|
|
153258
153347
|
var ProtocolSymbols_1 = require("../../../utils/ProtocolSymbols");
|
|
153259
153348
|
var TezosProtocolOptions_1 = require("../TezosProtocolOptions");
|
|
@@ -153287,35 +153376,18 @@ var TezosShieldedTezProtocolConfig = /** @class */ (function (_super) {
|
|
|
153287
153376
|
if (contractAddress === void 0) { contractAddress = 'KT1THKUU1urnd2siSM9inxcJpsbnVQuYt2qr'; }
|
|
153288
153377
|
if (memoSize === void 0) { memoSize = 8; }
|
|
153289
153378
|
if (merkleTreeHeight === void 0) { merkleTreeHeight = 32; }
|
|
153290
|
-
|
|
153379
|
+
var _this = _super.call(this, name, identifier, contractAddress, memoSize, merkleTreeHeight, undefined, undefined, undefined, undefined, undefined, externalProvider) || this;
|
|
153380
|
+
_this.name = name;
|
|
153381
|
+
_this.identifier = identifier;
|
|
153382
|
+
_this.contractAddress = contractAddress;
|
|
153383
|
+
_this.externalProvider = externalProvider;
|
|
153384
|
+
_this.memoSize = memoSize;
|
|
153385
|
+
_this.merkleTreeHeight = merkleTreeHeight;
|
|
153386
|
+
return _this;
|
|
153291
153387
|
}
|
|
153292
153388
|
return TezosShieldedTezProtocolConfig;
|
|
153293
153389
|
}(TezosSaplingProtocolConfig));
|
|
153294
153390
|
exports.TezosShieldedTezProtocolConfig = TezosShieldedTezProtocolConfig;
|
|
153295
|
-
var TezosSaplingTokenProtocolConfig = /** @class */ (function (_super) {
|
|
153296
|
-
__extends(TezosSaplingTokenProtocolConfig, _super);
|
|
153297
|
-
function TezosSaplingTokenProtocolConfig(name, identifier, contractAddress, injectorUrl, memoSize, merkleTreeHeight, symbol, marketSymbol, feeDefaults, decimals, externalProvider) {
|
|
153298
|
-
if (name === void 0) { name = 'Sapling Token'; }
|
|
153299
|
-
if (identifier === void 0) { identifier = ProtocolSymbols_1.MainProtocolSymbols.XTZ_ST; }
|
|
153300
|
-
if (contractAddress === void 0) { contractAddress = 'KT1CsWRRG26b8drKvRzuP2QKDtMmZ2r3PuPQ'; }
|
|
153301
|
-
if (injectorUrl === void 0) { injectorUrl = 'https://sapling.nomadic-labs.com'; }
|
|
153302
|
-
if (memoSize === void 0) { memoSize = 8; }
|
|
153303
|
-
if (merkleTreeHeight === void 0) { merkleTreeHeight = 32; }
|
|
153304
|
-
if (symbol === void 0) { symbol = 'ST'; }
|
|
153305
|
-
if (marketSymbol === void 0) { marketSymbol = 'st'; }
|
|
153306
|
-
if (feeDefaults === void 0) { feeDefaults = {
|
|
153307
|
-
low: '0',
|
|
153308
|
-
medium: '0',
|
|
153309
|
-
high: '0'
|
|
153310
|
-
}; }
|
|
153311
|
-
if (decimals === void 0) { decimals = 6; }
|
|
153312
|
-
var _this = _super.call(this, name, identifier, contractAddress, memoSize, merkleTreeHeight, symbol, marketSymbol, feeDefaults, decimals, undefined, externalProvider) || this;
|
|
153313
|
-
_this.injectorUrl = injectorUrl;
|
|
153314
|
-
return _this;
|
|
153315
|
-
}
|
|
153316
|
-
return TezosSaplingTokenProtocolConfig;
|
|
153317
|
-
}(TezosSaplingProtocolConfig));
|
|
153318
|
-
exports.TezosSaplingTokenProtocolConfig = TezosSaplingTokenProtocolConfig;
|
|
153319
153391
|
var TezosSaplingProtocolOptions = /** @class */ (function () {
|
|
153320
153392
|
function TezosSaplingProtocolOptions(network, config) {
|
|
153321
153393
|
if (network === void 0) { network = new TezosProtocolOptions_1.TezosProtocolNetwork('Hangzhounet', ProtocolNetwork_1.NetworkType.TESTNET, NODE_URL); }
|
|
@@ -153326,258 +153398,8 @@ var TezosSaplingProtocolOptions = /** @class */ (function () {
|
|
|
153326
153398
|
return TezosSaplingProtocolOptions;
|
|
153327
153399
|
}());
|
|
153328
153400
|
exports.TezosSaplingProtocolOptions = TezosSaplingProtocolOptions;
|
|
153329
|
-
var TezosSaplingTokenProtocolOptions = /** @class */ (function (_super) {
|
|
153330
|
-
__extends(TezosSaplingTokenProtocolOptions, _super);
|
|
153331
|
-
function TezosSaplingTokenProtocolOptions(network, config) {
|
|
153332
|
-
if (network === void 0) { network = new TezosProtocolOptions_1.TezosProtocolNetwork('Hangzhounet', ProtocolNetwork_1.NetworkType.TESTNET, NODE_URL); }
|
|
153333
|
-
if (config === void 0) { config = new TezosSaplingTokenProtocolConfig(); }
|
|
153334
|
-
var _this = _super.call(this, network, config) || this;
|
|
153335
|
-
_this.network = network;
|
|
153336
|
-
_this.config = config;
|
|
153337
|
-
return _this;
|
|
153338
|
-
}
|
|
153339
|
-
return TezosSaplingTokenProtocolOptions;
|
|
153340
|
-
}(TezosSaplingProtocolOptions));
|
|
153341
|
-
exports.TezosSaplingTokenProtocolOptions = TezosSaplingTokenProtocolOptions;
|
|
153342
153401
|
|
|
153343
|
-
},{"../../../utils/ProtocolNetwork":778,"../../../utils/ProtocolSymbols":779,"../TezosProtocolOptions":
|
|
153344
|
-
(function (Buffer){(function (){
|
|
153345
|
-
"use strict";
|
|
153346
|
-
var __extends = (this && this.__extends) || (function () {
|
|
153347
|
-
var extendStatics = function (d, b) {
|
|
153348
|
-
extendStatics = Object.setPrototypeOf ||
|
|
153349
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
153350
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
153351
|
-
return extendStatics(d, b);
|
|
153352
|
-
};
|
|
153353
|
-
return function (d, b) {
|
|
153354
|
-
extendStatics(d, b);
|
|
153355
|
-
function __() { this.constructor = d; }
|
|
153356
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
153357
|
-
};
|
|
153358
|
-
})();
|
|
153359
|
-
var __assign = (this && this.__assign) || function () {
|
|
153360
|
-
__assign = Object.assign || function(t) {
|
|
153361
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
153362
|
-
s = arguments[i];
|
|
153363
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
153364
|
-
t[p] = s[p];
|
|
153365
|
-
}
|
|
153366
|
-
return t;
|
|
153367
|
-
};
|
|
153368
|
-
return __assign.apply(this, arguments);
|
|
153369
|
-
};
|
|
153370
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
153371
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
153372
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
153373
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
153374
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
153375
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
153376
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
153377
|
-
});
|
|
153378
|
-
};
|
|
153379
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
153380
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
153381
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
153382
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
153383
|
-
function step(op) {
|
|
153384
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
153385
|
-
while (_) try {
|
|
153386
|
-
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;
|
|
153387
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
153388
|
-
switch (op[0]) {
|
|
153389
|
-
case 0: case 1: t = op; break;
|
|
153390
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
153391
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
153392
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
153393
|
-
default:
|
|
153394
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
153395
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
153396
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
153397
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
153398
|
-
if (t[2]) _.ops.pop();
|
|
153399
|
-
_.trys.pop(); continue;
|
|
153400
|
-
}
|
|
153401
|
-
op = body.call(thisArg, _);
|
|
153402
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
153403
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
153404
|
-
}
|
|
153405
|
-
};
|
|
153406
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
153407
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
153408
|
-
};
|
|
153409
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
153410
|
-
exports.TezosSaplingTokenProtocol = void 0;
|
|
153411
|
-
var index_1 = __importDefault(require("../../../dependencies/src/axios-0.19.0/index"));
|
|
153412
|
-
var errors_1 = require("../../../errors");
|
|
153413
|
-
var coinlib_error_1 = require("../../../errors/coinlib-error");
|
|
153414
|
-
var MichelsonList_1 = require("../types/michelson/generics/MichelsonList");
|
|
153415
|
-
var MichelsonPair_1 = require("../types/michelson/generics/MichelsonPair");
|
|
153416
|
-
var MichelsonBytes_1 = require("../types/michelson/primitives/MichelsonBytes");
|
|
153417
|
-
var MichelsonString_1 = require("../types/michelson/primitives/MichelsonString");
|
|
153418
|
-
var TezosSaplingProtocol_1 = require("./TezosSaplingProtocol");
|
|
153419
|
-
var TezosSaplingProtocolOptions_1 = require("./TezosSaplingProtocolOptions");
|
|
153420
|
-
var TezosSaplingTokenProtocol = /** @class */ (function (_super) {
|
|
153421
|
-
__extends(TezosSaplingTokenProtocol, _super);
|
|
153422
|
-
function TezosSaplingTokenProtocol(options) {
|
|
153423
|
-
if (options === void 0) { options = new TezosSaplingProtocolOptions_1.TezosSaplingTokenProtocolOptions(); }
|
|
153424
|
-
var _this = _super.call(this, options) || this;
|
|
153425
|
-
_this.options = options;
|
|
153426
|
-
return _this;
|
|
153427
|
-
}
|
|
153428
|
-
TezosSaplingTokenProtocol.prototype.prepareContractCalls = function (_transactions) {
|
|
153429
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
153430
|
-
return __generator(this, function (_a) {
|
|
153431
|
-
return [2 /*return*/, []];
|
|
153432
|
-
});
|
|
153433
|
-
});
|
|
153434
|
-
};
|
|
153435
|
-
TezosSaplingTokenProtocol.prototype.parseParameters = function (parameters) {
|
|
153436
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
153437
|
-
var callArgumentsList;
|
|
153438
|
-
var _this = this;
|
|
153439
|
-
return __generator(this, function (_a) {
|
|
153440
|
-
if (parameters.entrypoint === 'default') {
|
|
153441
|
-
try {
|
|
153442
|
-
callArgumentsList = MichelsonList_1.MichelsonList.from(parameters.value, function (pairJSON) {
|
|
153443
|
-
return MichelsonPair_1.MichelsonPair.from(pairJSON, undefined, function (bytesJSON) { return MichelsonBytes_1.MichelsonBytes.from(bytesJSON, 'data'); }, function (signatureJSON) { return MichelsonString_1.MichelsonString.from(signatureJSON, 'signature'); });
|
|
153444
|
-
}).asRawValue();
|
|
153445
|
-
return [2 /*return*/, Array.isArray(callArgumentsList)
|
|
153446
|
-
? Promise.all(callArgumentsList.map(function (args) { return __awaiter(_this, void 0, void 0, function () {
|
|
153447
|
-
return __generator(this, function (_a) {
|
|
153448
|
-
return [2 /*return*/, ({
|
|
153449
|
-
signed: args.data,
|
|
153450
|
-
unshieldTarget: undefined
|
|
153451
|
-
})];
|
|
153452
|
-
});
|
|
153453
|
-
}); }))
|
|
153454
|
-
: []];
|
|
153455
|
-
}
|
|
153456
|
-
catch (error) {
|
|
153457
|
-
console.error(error);
|
|
153458
|
-
return [2 /*return*/, []];
|
|
153459
|
-
}
|
|
153460
|
-
}
|
|
153461
|
-
return [2 /*return*/, []];
|
|
153462
|
-
});
|
|
153463
|
-
});
|
|
153464
|
-
};
|
|
153465
|
-
TezosSaplingTokenProtocol.prototype.getTransactionDetails = function (transaction, data) {
|
|
153466
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
153467
|
-
var tx, from, wrappedTransactions, parameters;
|
|
153468
|
-
return __generator(this, function (_a) {
|
|
153469
|
-
switch (_a.label) {
|
|
153470
|
-
case 0:
|
|
153471
|
-
tx = transaction.transaction;
|
|
153472
|
-
return [4 /*yield*/, this.getAddressFromPublicKey(transaction.publicKey)];
|
|
153473
|
-
case 1:
|
|
153474
|
-
from = _a.sent();
|
|
153475
|
-
wrappedTransactions = [];
|
|
153476
|
-
if (!tx.callParameters) return [3 /*break*/, 3];
|
|
153477
|
-
parameters = this.contract.parseParameters(tx.callParameters);
|
|
153478
|
-
return [4 /*yield*/, this.parseParameters(parameters)];
|
|
153479
|
-
case 2:
|
|
153480
|
-
wrappedTransactions = _a.sent();
|
|
153481
|
-
_a.label = 3;
|
|
153482
|
-
case 3: return [2 /*return*/, this.filterOutPaybacks(this.bookkeeper.getUnsignedTransactionDetails(from, tx.ins, tx.outs, wrappedTransactions))];
|
|
153483
|
-
}
|
|
153484
|
-
});
|
|
153485
|
-
});
|
|
153486
|
-
};
|
|
153487
|
-
TezosSaplingTokenProtocol.prototype.getTransactionDetailsFromSigned = function (transaction, data) {
|
|
153488
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
153489
|
-
var partialDetails, _a, _b, _c, _d, _e, _f;
|
|
153490
|
-
var _this = this;
|
|
153491
|
-
return __generator(this, function (_g) {
|
|
153492
|
-
switch (_g.label) {
|
|
153493
|
-
case 0:
|
|
153494
|
-
partialDetails = [];
|
|
153495
|
-
if (!this.contract.areValidParameters(transaction.transaction)) return [3 /*break*/, 2];
|
|
153496
|
-
_b = (_a = partialDetails.push).apply;
|
|
153497
|
-
_c = [partialDetails];
|
|
153498
|
-
return [4 /*yield*/, this.getPartialDetailsFromContractParameters(transaction.transaction, data === null || data === void 0 ? void 0 : data.knownViewingKeys)];
|
|
153499
|
-
case 1:
|
|
153500
|
-
_b.apply(_a, _c.concat([(_g.sent())]));
|
|
153501
|
-
return [3 /*break*/, 4];
|
|
153502
|
-
case 2:
|
|
153503
|
-
_e = (_d = partialDetails.push).apply;
|
|
153504
|
-
_f = [partialDetails];
|
|
153505
|
-
return [4 /*yield*/, this.bookkeeper.getWrappedTransactionsPartialDetails([{ signed: transaction.transaction }], data === null || data === void 0 ? void 0 : data.knownViewingKeys)];
|
|
153506
|
-
case 3:
|
|
153507
|
-
_e.apply(_d, _f.concat([(_g.sent())]));
|
|
153508
|
-
_g.label = 4;
|
|
153509
|
-
case 4: return [2 /*return*/, this.filterOutPaybacks(partialDetails.map(function (partial) { return (__assign({ from: ['Shielded Pool'], to: ['Shielded Pool'], isInbound: false, amount: '0', fee: '0', protocolIdentifier: _this.identifier, network: _this.options.network }, partial)); }))];
|
|
153510
|
-
}
|
|
153511
|
-
});
|
|
153512
|
-
});
|
|
153513
|
-
};
|
|
153514
|
-
TezosSaplingTokenProtocol.prototype.burn = function (viewingKey, value) {
|
|
153515
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
153516
|
-
var _a, stateDiff, chainId, _b, inputs, toSpend, dummyOutput, paybackOutput;
|
|
153517
|
-
var _c, _d;
|
|
153518
|
-
return __generator(this, function (_e) {
|
|
153519
|
-
switch (_e.label) {
|
|
153520
|
-
case 0: return [4 /*yield*/, Promise.all([
|
|
153521
|
-
this.nodeClient.getSaplingStateDiff(),
|
|
153522
|
-
this.nodeClient.getChainId()
|
|
153523
|
-
])];
|
|
153524
|
-
case 1:
|
|
153525
|
-
_a = _e.sent(), stateDiff = _a[0], chainId = _a[1];
|
|
153526
|
-
return [4 /*yield*/, this.chooseInputs(viewingKey, stateDiff.commitments_and_ciphertexts, stateDiff.nullifiers, value)];
|
|
153527
|
-
case 2:
|
|
153528
|
-
_b = _e.sent(), inputs = _b[0], toSpend = _b[1];
|
|
153529
|
-
_c = {};
|
|
153530
|
-
return [4 /*yield*/, this.getDummyAddress()];
|
|
153531
|
-
case 3:
|
|
153532
|
-
dummyOutput = (_c.address = (_e.sent()).getValue(),
|
|
153533
|
-
_c.value = value,
|
|
153534
|
-
_c.memo = Buffer.from("Burn", 'utf-8').toString('hex'),
|
|
153535
|
-
_c);
|
|
153536
|
-
_d = {};
|
|
153537
|
-
return [4 /*yield*/, this.getAddressFromPublicKey(viewingKey)];
|
|
153538
|
-
case 4:
|
|
153539
|
-
paybackOutput = (_d.address = (_e.sent()).getValue(),
|
|
153540
|
-
_d.value = toSpend.minus(value).toString(),
|
|
153541
|
-
_d.memo = Buffer.alloc(this.options.config.memoSize).toString('hex'),
|
|
153542
|
-
_d);
|
|
153543
|
-
return [2 /*return*/, {
|
|
153544
|
-
ins: inputs,
|
|
153545
|
-
outs: [dummyOutput, paybackOutput],
|
|
153546
|
-
chainId: chainId,
|
|
153547
|
-
stateDiff: stateDiff,
|
|
153548
|
-
callParameters: ''
|
|
153549
|
-
}];
|
|
153550
|
-
}
|
|
153551
|
-
});
|
|
153552
|
-
});
|
|
153553
|
-
};
|
|
153554
|
-
TezosSaplingTokenProtocol.prototype.broadcastTransaction = function (rawTransaction) {
|
|
153555
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
153556
|
-
var response, error_1;
|
|
153557
|
-
return __generator(this, function (_a) {
|
|
153558
|
-
switch (_a.label) {
|
|
153559
|
-
case 0:
|
|
153560
|
-
_a.trys.push([0, 2, , 3]);
|
|
153561
|
-
return [4 /*yield*/, index_1.default.post(this.options.config.injectorUrl + "/sapling_tx", {
|
|
153562
|
-
transaction: rawTransaction
|
|
153563
|
-
})];
|
|
153564
|
-
case 1:
|
|
153565
|
-
response = _a.sent();
|
|
153566
|
-
return [2 /*return*/, response.data.hash];
|
|
153567
|
-
case 2:
|
|
153568
|
-
error_1 = _a.sent();
|
|
153569
|
-
throw new errors_1.NetworkError(coinlib_error_1.Domain.TEZOS, error_1);
|
|
153570
|
-
case 3: return [2 /*return*/];
|
|
153571
|
-
}
|
|
153572
|
-
});
|
|
153573
|
-
});
|
|
153574
|
-
};
|
|
153575
|
-
return TezosSaplingTokenProtocol;
|
|
153576
|
-
}(TezosSaplingProtocol_1.TezosSaplingProtocol));
|
|
153577
|
-
exports.TezosSaplingTokenProtocol = TezosSaplingTokenProtocol;
|
|
153578
|
-
|
|
153579
|
-
}).call(this)}).call(this,require("buffer").Buffer)
|
|
153580
|
-
},{"../../../dependencies/src/axios-0.19.0/index":222,"../../../errors":478,"../../../errors/coinlib-error":477,"../types/michelson/generics/MichelsonList":689,"../types/michelson/generics/MichelsonPair":693,"../types/michelson/primitives/MichelsonBytes":696,"../types/michelson/primitives/MichelsonString":698,"./TezosSaplingProtocol":675,"./TezosSaplingProtocolOptions":676,"buffer":67}],678:[function(require,module,exports){
|
|
153402
|
+
},{"../../../utils/ProtocolNetwork":778,"../../../utils/ProtocolSymbols":779,"../TezosProtocolOptions":642}],678:[function(require,module,exports){
|
|
153581
153403
|
(function (Buffer){(function (){
|
|
153582
153404
|
"use strict";
|
|
153583
153405
|
var __extends = (this && this.__extends) || (function () {
|
|
@@ -153740,7 +153562,7 @@ var TezosShieldedTezProtocol = /** @class */ (function (_super) {
|
|
|
153740
153562
|
exports.TezosShieldedTezProtocol = TezosShieldedTezProtocol;
|
|
153741
153563
|
|
|
153742
153564
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
153743
|
-
},{"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../../utils/hex":788,"../TezosAddress":
|
|
153565
|
+
},{"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../../utils/hex":788,"../TezosAddress":639,"../types/michelson/generics/MichelsonList":689,"../types/michelson/generics/MichelsonOption":691,"../types/michelson/generics/MichelsonPair":693,"../types/michelson/primitives/MichelsonBytes":696,"../types/michelson/primitives/MichelsonString":698,"../types/utils":700,"./TezosSaplingProtocol":676,"./TezosSaplingProtocolOptions":677,"buffer":67}],679:[function(require,module,exports){
|
|
153744
153566
|
"use strict";
|
|
153745
153567
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
153746
153568
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -153896,19 +153718,15 @@ var TezosSaplingBookkeeper = /** @class */ (function () {
|
|
|
153896
153718
|
}
|
|
153897
153719
|
TezosSaplingBookkeeper.prototype.getUnsignedTransactionDetails = function (sender, inputs, outputs, wrappedTransactions) {
|
|
153898
153720
|
var _this = this;
|
|
153899
|
-
var outputsDetails = outputs.map(function (out) {
|
|
153900
|
-
|
|
153901
|
-
|
|
153902
|
-
|
|
153903
|
-
|
|
153904
|
-
|
|
153905
|
-
|
|
153906
|
-
|
|
153907
|
-
|
|
153908
|
-
protocolIdentifier: _this.identifier,
|
|
153909
|
-
network: _this.network
|
|
153910
|
-
};
|
|
153911
|
-
});
|
|
153721
|
+
var outputsDetails = outputs.map(function (out) { return ({
|
|
153722
|
+
from: [sender.getValue()],
|
|
153723
|
+
to: [out.address],
|
|
153724
|
+
isInbound: false,
|
|
153725
|
+
amount: out.value,
|
|
153726
|
+
fee: '0',
|
|
153727
|
+
protocolIdentifier: _this.identifier,
|
|
153728
|
+
network: _this.network
|
|
153729
|
+
}); });
|
|
153912
153730
|
var unshieldDetails = wrappedTransactions
|
|
153913
153731
|
.map(function (wrappedTransaction) {
|
|
153914
153732
|
if (wrappedTransaction.unshieldTarget === undefined) {
|
|
@@ -153989,7 +153807,7 @@ var TezosSaplingBookkeeper = /** @class */ (function () {
|
|
|
153989
153807
|
case 3:
|
|
153990
153808
|
sender = _a;
|
|
153991
153809
|
return [4 /*yield*/, Promise.all(transaction.outputDescriptions.map(function (description) { return __awaiter(_this, void 0, void 0, function () {
|
|
153992
|
-
var recipient, from, _a, _b, to, amount,
|
|
153810
|
+
var recipient, from, _a, _b, to, amount, outputDetails;
|
|
153993
153811
|
return __generator(this, function (_c) {
|
|
153994
153812
|
switch (_c.label) {
|
|
153995
153813
|
case 0: return [4 /*yield*/, this.findRecipient(description, knownViewingKeys)];
|
|
@@ -154007,7 +153825,7 @@ var TezosSaplingBookkeeper = /** @class */ (function () {
|
|
|
154007
153825
|
from = _a;
|
|
154008
153826
|
return [4 /*yield*/, this.decodeDetailsFromOutputDescription(sender, recipient, description)];
|
|
154009
153827
|
case 5:
|
|
154010
|
-
_b = _c.sent(), to = _b[0], amount = _b[1]
|
|
153828
|
+
_b = _c.sent(), to = _b[0], amount = _b[1];
|
|
154011
153829
|
outputDetails = {};
|
|
154012
153830
|
if (from !== undefined) {
|
|
154013
153831
|
outputDetails = Object.assign(outputDetails, { from: [from.getValue()] });
|
|
@@ -154018,9 +153836,6 @@ var TezosSaplingBookkeeper = /** @class */ (function () {
|
|
|
154018
153836
|
if (amount !== undefined) {
|
|
154019
153837
|
outputDetails = Object.assign(outputDetails, { amount: amount.toFixed() });
|
|
154020
153838
|
}
|
|
154021
|
-
if (memo !== undefined && memo.toString('utf-8') === 'Burn') {
|
|
154022
|
-
outputDetails = Object.assign(outputDetails, { to: [memo.toString('utf-8')] });
|
|
154023
|
-
}
|
|
154024
153839
|
return [2 /*return*/, outputDetails];
|
|
154025
153840
|
}
|
|
154026
153841
|
});
|
|
@@ -154091,7 +153906,7 @@ var TezosSaplingBookkeeper = /** @class */ (function () {
|
|
|
154091
153906
|
};
|
|
154092
153907
|
TezosSaplingBookkeeper.prototype.decodeDetailsFromOutputDescription = function (sender, recipient, output) {
|
|
154093
153908
|
return __awaiter(this, void 0, void 0, function () {
|
|
154094
|
-
var viewingKey, _a, address, amount
|
|
153909
|
+
var viewingKey, _a, address, amount;
|
|
154095
153910
|
return __generator(this, function (_b) {
|
|
154096
153911
|
switch (_b.label) {
|
|
154097
153912
|
case 0:
|
|
@@ -154099,10 +153914,10 @@ var TezosSaplingBookkeeper = /** @class */ (function () {
|
|
|
154099
153914
|
if (!(viewingKey !== undefined)) return [3 /*break*/, 3];
|
|
154100
153915
|
return [4 /*yield*/, this.cryptoClient.decryptCiphertextEnc(viewingKey, output.ciphertext, viewingKey === sender ? 'sender' : 'receiver', output.cm)];
|
|
154101
153916
|
case 1:
|
|
154102
|
-
_a = _b.sent(), address = _a.address, amount = _a.amount
|
|
153917
|
+
_a = _b.sent(), address = _a.address, amount = _a.amount;
|
|
154103
153918
|
return [4 /*yield*/, TezosSaplingAddress_1.TezosSaplingAddress.fromRaw(address)];
|
|
154104
|
-
case 2: return [2 /*return*/, [_b.sent(), amount
|
|
154105
|
-
case 3: return [2 /*return*/, [undefined, undefined
|
|
153919
|
+
case 2: return [2 /*return*/, [_b.sent(), amount]];
|
|
153920
|
+
case 3: return [2 /*return*/, [undefined, undefined]];
|
|
154106
153921
|
}
|
|
154107
153922
|
});
|
|
154108
153923
|
});
|
|
@@ -154404,7 +154219,7 @@ var TezosSaplingBookkeeper = /** @class */ (function () {
|
|
|
154404
154219
|
exports.TezosSaplingBookkeeper = TezosSaplingBookkeeper;
|
|
154405
154220
|
|
|
154406
154221
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
154407
|
-
},{"../../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../../../utils/array":780,"../../../../utils/hex":788,"../TezosSaplingAddress":
|
|
154222
|
+
},{"../../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../../../utils/array":780,"../../../../utils/hex":788,"../TezosSaplingAddress":674,"@airgap/sapling-wasm":809,"buffer":67}],681:[function(require,module,exports){
|
|
154408
154223
|
(function (Buffer){(function (){
|
|
154409
154224
|
"use strict";
|
|
154410
154225
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -154826,7 +154641,7 @@ var TezosSaplingForger = /** @class */ (function () {
|
|
|
154826
154641
|
exports.TezosSaplingForger = TezosSaplingForger;
|
|
154827
154642
|
|
|
154828
154643
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
154829
|
-
},{"../../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../../../utils/blake2b":783,"../TezosSaplingAddress":
|
|
154644
|
+
},{"../../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../../../utils/blake2b":783,"../TezosSaplingAddress":674,"@airgap/sapling-wasm":809,"buffer":67}],683:[function(require,module,exports){
|
|
154830
154645
|
(function (Buffer){(function (){
|
|
154831
154646
|
"use strict";
|
|
154832
154647
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -155433,7 +155248,7 @@ var MichelsonTypeUtils = /** @class */ (function () {
|
|
|
155433
155248
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
155434
155249
|
args[_i] = arguments[_i];
|
|
155435
155250
|
}
|
|
155436
|
-
return
|
|
155251
|
+
return notSupported('signature', args);
|
|
155437
155252
|
},
|
|
155438
155253
|
option: function () {
|
|
155439
155254
|
var args = [];
|
|
@@ -157346,7 +157161,7 @@ module.exports={
|
|
|
157346
157161
|
"type": "object"
|
|
157347
157162
|
}
|
|
157348
157163
|
},
|
|
157349
|
-
"required": ["ins", "outs", "chainId", "stateDiff"],
|
|
157164
|
+
"required": ["ins", "outs", "chainId", "stateDiff", "callParameters"],
|
|
157350
157165
|
"type": "object"
|
|
157351
157166
|
}
|
|
157352
157167
|
},
|
|
@@ -157787,7 +157602,6 @@ SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { sch
|
|
|
157787
157602
|
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { schema: unsignedTransactionEthereum }, ProtocolSymbols_1.SubProtocolSymbols.ETH_ERC20);
|
|
157788
157603
|
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { schema: unsignedTransactionTezos }, ProtocolSymbols_1.MainProtocolSymbols.XTZ);
|
|
157789
157604
|
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { schema: unsignedTransactionTezosSapling }, ProtocolSymbols_1.MainProtocolSymbols.XTZ_SHIELDED);
|
|
157790
|
-
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { schema: unsignedTransactionTezosSapling }, ProtocolSymbols_1.MainProtocolSymbols.XTZ_ST);
|
|
157791
157605
|
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { schema: unsignedTransactionTezos }, ProtocolSymbols_1.SubProtocolSymbols.XTZ_BTC);
|
|
157792
157606
|
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { schema: unsignedTransactionTezos }, ProtocolSymbols_1.SubProtocolSymbols.XTZ_ETHTZ);
|
|
157793
157607
|
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { schema: unsignedTransactionTezos }, ProtocolSymbols_1.SubProtocolSymbols.XTZ_KUSD);
|
|
@@ -157809,7 +157623,6 @@ SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { sc
|
|
|
157809
157623
|
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { schema: signedTransactionEthereum }, ProtocolSymbols_1.SubProtocolSymbols.ETH_ERC20);
|
|
157810
157624
|
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { schema: signedTransactionTezos }, ProtocolSymbols_1.MainProtocolSymbols.XTZ);
|
|
157811
157625
|
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { schema: signedTransactionTezosSapling }, ProtocolSymbols_1.MainProtocolSymbols.XTZ_SHIELDED);
|
|
157812
|
-
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { schema: signedTransactionTezosSapling }, ProtocolSymbols_1.MainProtocolSymbols.XTZ_ST);
|
|
157813
157626
|
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { schema: signedTransactionTezos }, ProtocolSymbols_1.SubProtocolSymbols.XTZ_BTC);
|
|
157814
157627
|
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { schema: signedTransactionTezos }, ProtocolSymbols_1.SubProtocolSymbols.XTZ_ETHTZ);
|
|
157815
157628
|
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { schema: signedTransactionTezos }, ProtocolSymbols_1.SubProtocolSymbols.XTZ_KUSD);
|
|
@@ -158546,7 +158359,7 @@ var TezosBTCTransactionValidator = /** @class */ (function (_super) {
|
|
|
158546
158359
|
}(transactions_validator_1.TransactionValidator));
|
|
158547
158360
|
exports.TezosBTCTransactionValidator = TezosBTCTransactionValidator;
|
|
158548
158361
|
|
|
158549
|
-
},{"../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../dependencies/src/validate.js-0.13.1/validate":471,"../../protocols/tezos/fa/TezosBTC":
|
|
158362
|
+
},{"../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../dependencies/src/validate.js-0.13.1/validate":471,"../../protocols/tezos/fa/TezosBTC":651,"../validators/transactions.validator":736,"../validators/validators":737}],734:[function(require,module,exports){
|
|
158550
158363
|
"use strict";
|
|
158551
158364
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
158552
158365
|
exports.generateId = exports.ID_LENGTH = void 0;
|
|
@@ -159369,7 +159182,7 @@ function validateSerializationInput(from: string, fee: BigNumber, amount: BigNum
|
|
|
159369
159182
|
}
|
|
159370
159183
|
*/
|
|
159371
159184
|
|
|
159372
|
-
},{"../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../dependencies/src/validate.js-0.13.1/validate":471,"../../protocols/ethereum/EthereumProtocol":514,"../../protocols/substrate/kusama/KusamaProtocol":614,"../../utils/base64Check":782,"./../../protocols/aeternity/AeternityProtocol":489,"./../../protocols/bitcoin/BitcoinProtocol":493,"./../../protocols/tezos/TezosProtocol":
|
|
159185
|
+
},{"../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../dependencies/src/validate.js-0.13.1/validate":471,"../../protocols/ethereum/EthereumProtocol":514,"../../protocols/substrate/kusama/KusamaProtocol":614,"../../utils/base64Check":782,"./../../protocols/aeternity/AeternityProtocol":489,"./../../protocols/bitcoin/BitcoinProtocol":493,"./../../protocols/tezos/TezosProtocol":641}],738:[function(require,module,exports){
|
|
159373
159186
|
"use strict";
|
|
159374
159187
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
159375
159188
|
exports.TezosKolibriUSDDetails = exports.TezosWrappedDetails = exports.TezosYOUDetails = exports.TezosUUSDDetails = exports.TezosETHtzDetails = exports.TezosBTCDetails = exports.SERIALIZER_VERSION = void 0;
|
|
@@ -160764,7 +160577,6 @@ Serializer.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { schem
|
|
|
160764
160577
|
Serializer.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { schema: unsignedTransactionEthereum }, ProtocolSymbols_1.SubProtocolSymbols.ETH_ERC20);
|
|
160765
160578
|
Serializer.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { schema: unsignedTransactionTezos }, ProtocolSymbols_1.MainProtocolSymbols.XTZ);
|
|
160766
160579
|
Serializer.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { schema: unsignedTransactionTezosSapling }, ProtocolSymbols_1.MainProtocolSymbols.XTZ_SHIELDED);
|
|
160767
|
-
Serializer.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { schema: unsignedTransactionTezosSapling }, ProtocolSymbols_1.MainProtocolSymbols.XTZ_ST);
|
|
160768
160580
|
Serializer.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { schema: unsignedTransactionTezos }, ProtocolSymbols_1.SubProtocolSymbols.XTZ_BTC);
|
|
160769
160581
|
Serializer.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { schema: unsignedTransactionTezos }, ProtocolSymbols_1.SubProtocolSymbols.XTZ_ETHTZ);
|
|
160770
160582
|
Serializer.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { schema: unsignedTransactionTezos }, ProtocolSymbols_1.SubProtocolSymbols.XTZ_KUSD);
|
|
@@ -160783,7 +160595,6 @@ Serializer.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { sche
|
|
|
160783
160595
|
Serializer.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { schema: signedTransactionEthereum }, ProtocolSymbols_1.SubProtocolSymbols.ETH_ERC20);
|
|
160784
160596
|
Serializer.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { schema: signedTransactionTezos }, ProtocolSymbols_1.MainProtocolSymbols.XTZ);
|
|
160785
160597
|
Serializer.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { schema: signedTransactionTezosSapling }, ProtocolSymbols_1.MainProtocolSymbols.XTZ_SHIELDED);
|
|
160786
|
-
Serializer.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { schema: signedTransactionTezosSapling }, ProtocolSymbols_1.MainProtocolSymbols.XTZ_ST);
|
|
160787
160598
|
Serializer.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { schema: signedTransactionTezos }, ProtocolSymbols_1.SubProtocolSymbols.XTZ_BTC);
|
|
160788
160599
|
Serializer.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { schema: signedTransactionTezos }, ProtocolSymbols_1.SubProtocolSymbols.XTZ_ETHTZ);
|
|
160789
160600
|
Serializer.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { schema: signedTransactionTezos }, ProtocolSymbols_1.SubProtocolSymbols.XTZ_KUSD);
|
|
@@ -160970,7 +160781,7 @@ var TezosBTCTransactionValidator = /** @class */ (function (_super) {
|
|
|
160970
160781
|
}(transactions_validator_1.TransactionValidator));
|
|
160971
160782
|
exports.TezosBTCTransactionValidator = TezosBTCTransactionValidator;
|
|
160972
160783
|
|
|
160973
|
-
},{"../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../dependencies/src/validate.js-0.13.1/validate":471,"../../errors":478,"../../errors/coinlib-error":477,"../../protocols/tezos/fa/TezosBTC":
|
|
160784
|
+
},{"../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../dependencies/src/validate.js-0.13.1/validate":471,"../../errors":478,"../../errors/coinlib-error":477,"../../protocols/tezos/fa/TezosBTC":651,"../validators/transactions.validator":772,"../validators/validators":773}],770:[function(require,module,exports){
|
|
160974
160785
|
"use strict";
|
|
160975
160786
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
160976
160787
|
exports.generateIdV2 = void 0;
|
|
@@ -161724,7 +161535,7 @@ function validateSerializationInput(from: string, fee: BigNumber, amount: BigNum
|
|
|
161724
161535
|
}
|
|
161725
161536
|
*/
|
|
161726
161537
|
|
|
161727
|
-
},{"../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../dependencies/src/validate.js-0.13.1/validate":471,"../../errors":478,"../../errors/coinlib-error":477,"../../protocols/ethereum/EthereumProtocol":514,"../../protocols/substrate/kusama/KusamaProtocol":614,"../../utils/base64Check":782,"./../../protocols/aeternity/AeternityProtocol":489,"./../../protocols/bitcoin/BitcoinProtocol":493,"./../../protocols/tezos/TezosProtocol":
|
|
161538
|
+
},{"../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../dependencies/src/validate.js-0.13.1/validate":471,"../../errors":478,"../../errors/coinlib-error":477,"../../protocols/ethereum/EthereumProtocol":514,"../../protocols/substrate/kusama/KusamaProtocol":614,"../../utils/base64Check":782,"./../../protocols/aeternity/AeternityProtocol":489,"./../../protocols/bitcoin/BitcoinProtocol":493,"./../../protocols/tezos/TezosProtocol":641}],774:[function(require,module,exports){
|
|
161728
161539
|
(function (Buffer){(function (){
|
|
161729
161540
|
"use strict";
|
|
161730
161541
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -161983,7 +161794,6 @@ var MainProtocolSymbols;
|
|
|
161983
161794
|
MainProtocolSymbols["ETH"] = "eth";
|
|
161984
161795
|
MainProtocolSymbols["XTZ"] = "xtz";
|
|
161985
161796
|
MainProtocolSymbols["XTZ_SHIELDED"] = "xtz_shielded";
|
|
161986
|
-
MainProtocolSymbols["XTZ_ST"] = "xtz_st";
|
|
161987
161797
|
MainProtocolSymbols["GRS"] = "grs";
|
|
161988
161798
|
MainProtocolSymbols["COSMOS"] = "cosmos";
|
|
161989
161799
|
MainProtocolSymbols["POLKADOT"] = "polkadot";
|
|
@@ -162473,10 +162283,6 @@ var getProtocolOptionsByIdentifier = function (identifier, network) {
|
|
|
162473
162283
|
return network
|
|
162474
162284
|
? new TezosSaplingProtocolOptions_1.TezosSaplingProtocolOptions(network, new TezosSaplingProtocolOptions_1.TezosShieldedTezProtocolConfig())
|
|
162475
162285
|
: new TezosSaplingProtocolOptions_1.TezosSaplingProtocolOptions();
|
|
162476
|
-
case ProtocolSymbols_1.MainProtocolSymbols.XTZ_ST:
|
|
162477
|
-
return network
|
|
162478
|
-
? new TezosSaplingProtocolOptions_1.TezosSaplingTokenProtocolOptions(network, new TezosSaplingProtocolOptions_1.TezosSaplingTokenProtocolConfig())
|
|
162479
|
-
: new TezosSaplingProtocolOptions_1.TezosSaplingTokenProtocolOptions();
|
|
162480
162286
|
case ProtocolSymbols_1.SubProtocolSymbols.XTZ_BTC:
|
|
162481
162287
|
return new TezosFAProtocolOptions_1.TezosFAProtocolOptions(network ? network : new TezosProtocolOptions_1.TezosProtocolNetwork(), new TezosFAProtocolOptions_1.TezosBTCProtocolConfig());
|
|
162482
162288
|
case ProtocolSymbols_1.SubProtocolSymbols.XTZ_ETHTZ:
|
|
@@ -162514,7 +162320,7 @@ var getProtocolOptionsByIdentifier = function (identifier, network) {
|
|
|
162514
162320
|
};
|
|
162515
162321
|
exports.getProtocolOptionsByIdentifier = getProtocolOptionsByIdentifier;
|
|
162516
162322
|
|
|
162517
|
-
},{"../errors":478,"../errors/coinlib-error":477,"../protocols/aeternity/AeternityProtocolOptions":490,"../protocols/bitcoin/BitcoinProtocolOptions":494,"../protocols/cosmos/CosmosProtocolOptions":504,"../protocols/ethereum/EthereumProtocolOptions":515,"../protocols/groestlcoin/GroestlcoinProtocolOptions":524,"../protocols/substrate/kusama/KusamaProtocolOptions":615,"../protocols/substrate/moonbeam/MoonbeamProtocolOptions":617,"../protocols/substrate/moonbeam/moonbase/MoonbaseProtocolOptions":
|
|
162323
|
+
},{"../errors":478,"../errors/coinlib-error":477,"../protocols/aeternity/AeternityProtocolOptions":490,"../protocols/bitcoin/BitcoinProtocolOptions":494,"../protocols/cosmos/CosmosProtocolOptions":504,"../protocols/ethereum/EthereumProtocolOptions":515,"../protocols/groestlcoin/GroestlcoinProtocolOptions":524,"../protocols/substrate/kusama/KusamaProtocolOptions":615,"../protocols/substrate/moonbeam/MoonbeamProtocolOptions":617,"../protocols/substrate/moonbeam/moonbase/MoonbaseProtocolOptions":632,"../protocols/substrate/moonbeam/moonriver/MoonriverProtocolOptions":634,"../protocols/substrate/polkadot/PolkadotProtocolOptions":638,"../protocols/tezos/TezosProtocolOptions":642,"../protocols/tezos/fa/TezosCTez":652,"../protocols/tezos/fa/TezosFAProtocolOptions":658,"../protocols/tezos/fa/TezosPlanty":660,"../protocols/tezos/fa/TezosQUIPU":661,"../protocols/tezos/fa/TezosUDEFI":663,"../protocols/tezos/fa/TezosWRAP":666,"../protocols/tezos/sapling/TezosSaplingProtocolOptions":677,"./ProtocolSymbols":779,"./assert":781}],792:[function(require,module,exports){
|
|
162518
162324
|
"use strict";
|
|
162519
162325
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
162520
162326
|
exports.getProtocolByIdentifier = void 0;
|
|
@@ -163441,7 +163247,7 @@ var AirGapCoinWallet = /** @class */ (function (_super) {
|
|
|
163441
163247
|
}(AirGapMarketWallet_1.AirGapMarketWallet));
|
|
163442
163248
|
exports.AirGapCoinWallet = AirGapCoinWallet;
|
|
163443
163249
|
|
|
163444
|
-
},{"../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../protocols/tezos/sapling/TezosSaplingProtocol":
|
|
163250
|
+
},{"../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../protocols/tezos/sapling/TezosSaplingProtocol":676,"../utils/ProtocolNetwork":778,"../utils/ProtocolSymbols":779,"./AirGapMarketWallet":805}],805:[function(require,module,exports){
|
|
163445
163251
|
"use strict";
|
|
163446
163252
|
var __extends = (this && this.__extends) || (function () {
|
|
163447
163253
|
var extendStatics = function (d, b) {
|
|
@@ -163655,7 +163461,7 @@ var AirGapMarketWallet = /** @class */ (function (_super) {
|
|
|
163655
163461
|
}(AirGapWallet_1.AirGapWallet));
|
|
163656
163462
|
exports.AirGapMarketWallet = AirGapMarketWallet;
|
|
163657
163463
|
|
|
163658
|
-
},{"../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../protocols/tezos/sapling/TezosSaplingProtocol":
|
|
163464
|
+
},{"../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../protocols/tezos/sapling/TezosSaplingProtocol":676,"../utils/ProtocolSymbols":779,"./AirGapWallet":807}],806:[function(require,module,exports){
|
|
163659
163465
|
"use strict";
|
|
163660
163466
|
var __extends = (this && this.__extends) || (function () {
|
|
163661
163467
|
var extendStatics = function (d, b) {
|