@airgap/coinlib-core 0.12.7-beta.1 → 0.12.8-beta.0
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 +352 -583
- package/index.d.ts +2 -3
- package/index.js +2 -4
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/protocols/cosmos/CosmosCoin.d.ts +3 -0
- package/protocols/cosmos/CosmosCoin.js +19 -0
- package/protocols/cosmos/CosmosCoin.js.map +1 -1
- package/protocols/cosmos/CosmosNodeClient.d.ts +1 -150
- package/protocols/cosmos/CosmosNodeClient.js +7 -7
- package/protocols/cosmos/CosmosNodeClient.js.map +1 -1
- package/protocols/cosmos/CosmosProtocol.d.ts +2 -1
- package/protocols/cosmos/CosmosTypes.d.ts +150 -0
- 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/TezosSaplingCryptoClient.js +2 -3
- package/protocols/tezos/sapling/TezosSaplingCryptoClient.js.map +1 -1
- package/protocols/tezos/sapling/TezosSaplingProtocol.d.ts +5 -10
- package/protocols/tezos/sapling/TezosSaplingProtocol.js +71 -105
- package/protocols/tezos/sapling/TezosSaplingProtocol.js.map +1 -1
- package/protocols/tezos/sapling/TezosSaplingProtocolOptions.d.ts +7 -10
- package/protocols/tezos/sapling/TezosSaplingProtocolOptions.js +12 -42
- package/protocols/tezos/sapling/TezosSaplingProtocolOptions.js.map +1 -1
- package/protocols/tezos/sapling/utils/TezosSaplingBookkeeper.d.ts +2 -6
- package/protocols/tezos/sapling/utils/TezosSaplingBookkeeper.js +17 -39
- 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 -24
- package/protocols/tezos/sapling/TezosSaplingTokenProtocol.js +0 -270
- 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;
|
|
@@ -127437,8 +127435,12 @@ exports.CosmosAddress = CosmosAddress;
|
|
|
127437
127435
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
127438
127436
|
},{"../../dependencies/src/bech32-1.1.3/index":250,"../../dependencies/src/ripemd160-2.0.2/index":440,"../../dependencies/src/sha.js-2.4.11/index":453,"buffer":67}],499:[function(require,module,exports){
|
|
127439
127437
|
"use strict";
|
|
127438
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
127439
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
127440
|
+
};
|
|
127440
127441
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
127441
127442
|
exports.CosmosCoin = void 0;
|
|
127443
|
+
var bignumber_1 = __importDefault(require("../../dependencies/src/bignumber.js-9.0.0/bignumber"));
|
|
127442
127444
|
var errors_1 = require("../../errors");
|
|
127443
127445
|
var coinlib_error_1 = require("../../errors/coinlib-error");
|
|
127444
127446
|
var CosmosCoin = /** @class */ (function () {
|
|
@@ -127458,6 +127460,21 @@ var CosmosCoin = /** @class */ (function () {
|
|
|
127458
127460
|
}
|
|
127459
127461
|
return new CosmosCoin(json.denom, json.amount);
|
|
127460
127462
|
};
|
|
127463
|
+
CosmosCoin.fromCoins = function (json) {
|
|
127464
|
+
return json
|
|
127465
|
+
.map(function (coinJSON) {
|
|
127466
|
+
try {
|
|
127467
|
+
return CosmosCoin.fromJSON(coinJSON);
|
|
127468
|
+
}
|
|
127469
|
+
catch (_a) {
|
|
127470
|
+
return undefined;
|
|
127471
|
+
}
|
|
127472
|
+
})
|
|
127473
|
+
.filter(function (value) { return value !== undefined; });
|
|
127474
|
+
};
|
|
127475
|
+
CosmosCoin.sum = function (coins) {
|
|
127476
|
+
return coins.reduce(function (current, next) { return current.plus(new bignumber_1.default(next.amount)); }, new bignumber_1.default(0));
|
|
127477
|
+
};
|
|
127461
127478
|
CosmosCoin.prototype.toRPCBody = function () {
|
|
127462
127479
|
return {
|
|
127463
127480
|
amount: this.amount,
|
|
@@ -127472,7 +127489,7 @@ var CosmosCoin = /** @class */ (function () {
|
|
|
127472
127489
|
}());
|
|
127473
127490
|
exports.CosmosCoin = CosmosCoin;
|
|
127474
127491
|
|
|
127475
|
-
},{"../../errors":478,"../../errors/coinlib-error":477}],500:[function(require,module,exports){
|
|
127492
|
+
},{"../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../errors":478,"../../errors/coinlib-error":477}],500:[function(require,module,exports){
|
|
127476
127493
|
(function (Buffer){(function (){
|
|
127477
127494
|
"use strict";
|
|
127478
127495
|
var __extends = (this && this.__extends) || (function () {
|
|
@@ -127649,6 +127666,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
127649
127666
|
exports.CosmosNodeClient = void 0;
|
|
127650
127667
|
var index_1 = __importDefault(require("../../dependencies/src/axios-0.19.0/index"));
|
|
127651
127668
|
var bignumber_1 = __importDefault(require("../../dependencies/src/bignumber.js-9.0.0/bignumber"));
|
|
127669
|
+
var CosmosCoin_1 = require("./CosmosCoin");
|
|
127652
127670
|
var CosmosNodeClient = /** @class */ (function () {
|
|
127653
127671
|
function CosmosNodeClient(baseURL, useCORSProxy) {
|
|
127654
127672
|
if (useCORSProxy === void 0) { useCORSProxy = false; }
|
|
@@ -127665,7 +127683,7 @@ var CosmosNodeClient = /** @class */ (function () {
|
|
|
127665
127683
|
response = _a.sent();
|
|
127666
127684
|
data = response.data.result;
|
|
127667
127685
|
if (!(data.length > 0)) return [3 /*break*/, 5];
|
|
127668
|
-
availableBalance = data
|
|
127686
|
+
availableBalance = CosmosCoin_1.CosmosCoin.sum(CosmosCoin_1.CosmosCoin.fromCoins(data));
|
|
127669
127687
|
if (!totalBalance) return [3 /*break*/, 3];
|
|
127670
127688
|
return [4 /*yield*/, Promise.all([
|
|
127671
127689
|
this.fetchTotalReward(address),
|
|
@@ -127770,15 +127788,14 @@ var CosmosNodeClient = /** @class */ (function () {
|
|
|
127770
127788
|
};
|
|
127771
127789
|
CosmosNodeClient.prototype.fetchTotalDelegatedAmount = function (address) {
|
|
127772
127790
|
return __awaiter(this, void 0, void 0, function () {
|
|
127773
|
-
var delegations;
|
|
127791
|
+
var delegations, balances;
|
|
127774
127792
|
return __generator(this, function (_a) {
|
|
127775
127793
|
switch (_a.label) {
|
|
127776
127794
|
case 0: return [4 /*yield*/, this.fetchDelegations(address)];
|
|
127777
127795
|
case 1:
|
|
127778
127796
|
delegations = _a.sent();
|
|
127779
|
-
|
|
127780
|
-
|
|
127781
|
-
.decimalPlaces(0, bignumber_1.default.ROUND_FLOOR)];
|
|
127797
|
+
balances = delegations.map(function (delegation) { return delegation.balance; });
|
|
127798
|
+
return [2 /*return*/, CosmosCoin_1.CosmosCoin.sum(CosmosCoin_1.CosmosCoin.fromCoins(balances)).decimalPlaces(0, bignumber_1.default.ROUND_FLOOR)];
|
|
127782
127799
|
}
|
|
127783
127800
|
});
|
|
127784
127801
|
});
|
|
@@ -127882,7 +127899,7 @@ var CosmosNodeClient = /** @class */ (function () {
|
|
|
127882
127899
|
case 1:
|
|
127883
127900
|
totalRewards = _a.sent();
|
|
127884
127901
|
if ((totalRewards === null || totalRewards === void 0 ? void 0 : totalRewards.length) > 0) {
|
|
127885
|
-
return [2 /*return*/,
|
|
127902
|
+
return [2 /*return*/, CosmosCoin_1.CosmosCoin.sum(CosmosCoin_1.CosmosCoin.fromCoins(totalRewards)).decimalPlaces(0, bignumber_1.default.ROUND_FLOOR)];
|
|
127886
127903
|
}
|
|
127887
127904
|
return [2 /*return*/, new bignumber_1.default(0)];
|
|
127888
127905
|
}
|
|
@@ -127900,7 +127917,7 @@ var CosmosNodeClient = /** @class */ (function () {
|
|
|
127900
127917
|
case 1:
|
|
127901
127918
|
totalRewards = _a.sent();
|
|
127902
127919
|
if ((totalRewards === null || totalRewards === void 0 ? void 0 : totalRewards.length) > 0) {
|
|
127903
|
-
return [2 /*return*/,
|
|
127920
|
+
return [2 /*return*/, CosmosCoin_1.CosmosCoin.sum(CosmosCoin_1.CosmosCoin.fromCoins(totalRewards)).decimalPlaces(0, bignumber_1.default.ROUND_FLOOR)];
|
|
127904
127921
|
}
|
|
127905
127922
|
return [2 /*return*/, new bignumber_1.default(0)];
|
|
127906
127923
|
}
|
|
@@ -127992,7 +128009,7 @@ var CosmosNodeClient = /** @class */ (function () {
|
|
|
127992
128009
|
}());
|
|
127993
128010
|
exports.CosmosNodeClient = CosmosNodeClient;
|
|
127994
128011
|
|
|
127995
|
-
},{"../../dependencies/src/axios-0.19.0/index":222,"../../dependencies/src/bignumber.js-9.0.0/bignumber":256}],503:[function(require,module,exports){
|
|
128012
|
+
},{"../../dependencies/src/axios-0.19.0/index":222,"../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"./CosmosCoin":499}],503:[function(require,module,exports){
|
|
127996
128013
|
(function (Buffer){(function (){
|
|
127997
128014
|
"use strict";
|
|
127998
128015
|
var __extends = (this && this.__extends) || (function () {
|
|
@@ -134459,7 +134476,7 @@ var SubstrateTransactionController = /** @class */ (function () {
|
|
|
134459
134476
|
exports.SubstrateTransactionController = SubstrateTransactionController;
|
|
134460
134477
|
|
|
134461
134478
|
}).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":
|
|
134479
|
+
},{"../../../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
134480
|
"use strict";
|
|
134464
134481
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
134465
134482
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -141033,7 +141050,15 @@ exports.supportedStorageEntries = {
|
|
|
141033
141050
|
Session: ['Validators'],
|
|
141034
141051
|
System: ['Account'],
|
|
141035
141052
|
// Moonbeam
|
|
141036
|
-
ParachainStaking: [
|
|
141053
|
+
ParachainStaking: [
|
|
141054
|
+
'CollatorCommission',
|
|
141055
|
+
'CandidateInfo',
|
|
141056
|
+
'DelegatorState',
|
|
141057
|
+
'Round',
|
|
141058
|
+
'SelectedCandidates',
|
|
141059
|
+
// TODO: Remove once Moonriver and Moonbeam are updated to runtime 1200.
|
|
141060
|
+
'CandidateState'
|
|
141061
|
+
]
|
|
141037
141062
|
};
|
|
141038
141063
|
exports.supportedCalls = {
|
|
141039
141064
|
Balances: ['transfer'],
|
|
@@ -141072,14 +141097,17 @@ exports.supportedConstants = {
|
|
|
141072
141097
|
// Moonbeam
|
|
141073
141098
|
ParachainStaking: [
|
|
141074
141099
|
'DefaultBlocksPerRound',
|
|
141075
|
-
'
|
|
141100
|
+
'MaxTopDelegationsPerCandidate',
|
|
141101
|
+
'MaxBottomDelegationsPerCandidate',
|
|
141076
141102
|
'MaxDelegationsPerDelegator',
|
|
141077
141103
|
'MinDelegation',
|
|
141078
141104
|
'MinDelegatorStk',
|
|
141079
141105
|
'CandidateBondLessDelay',
|
|
141080
141106
|
'LeaveDelegatorsDelay',
|
|
141081
141107
|
'RevokeDelegationDelay',
|
|
141082
|
-
'DelegationBondLessDelay'
|
|
141108
|
+
'DelegationBondLessDelay',
|
|
141109
|
+
// TODO: Remove once Moonriver and Moonbeam are updated to runtime 1200.
|
|
141110
|
+
'MaxDelegatorsPerCandidate'
|
|
141083
141111
|
]
|
|
141084
141112
|
};
|
|
141085
141113
|
exports.supportedCallEndpoints = new Map([
|
|
@@ -141179,7 +141207,7 @@ function isSubstrateCompatAddress(address) {
|
|
|
141179
141207
|
}
|
|
141180
141208
|
exports.isSubstrateCompatAddress = isSubstrateCompatAddress;
|
|
141181
141209
|
|
|
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":
|
|
141210
|
+
},{"../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
141211
|
"use strict";
|
|
141184
141212
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
141185
141213
|
exports.substrateSignatureFactory = void 0;
|
|
@@ -141209,7 +141237,7 @@ function substrateSignatureFactory(substrateNetwork) {
|
|
|
141209
141237
|
}
|
|
141210
141238
|
exports.substrateSignatureFactory = substrateSignatureFactory;
|
|
141211
141239
|
|
|
141212
|
-
},{"../SubstrateNetwork":528,"../common/data/transaction/SubstrateSignature":604,"../moonbeam/data/transaction/MoonbeamSignature":
|
|
141240
|
+
},{"../SubstrateNetwork":528,"../common/data/transaction/SubstrateSignature":604,"../moonbeam/data/transaction/MoonbeamSignature":630}],613:[function(require,module,exports){
|
|
141213
141241
|
"use strict";
|
|
141214
141242
|
var __extends = (this && this.__extends) || (function () {
|
|
141215
141243
|
var extendStatics = function (d, b) {
|
|
@@ -142036,7 +142064,7 @@ var MoonbeamProtocol = /** @class */ (function (_super) {
|
|
|
142036
142064
|
}(SubstrateDelegateProtocol_1.SubstrateDelegateProtocol));
|
|
142037
142065
|
exports.MoonbeamProtocol = MoonbeamProtocol;
|
|
142038
142066
|
|
|
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":
|
|
142067
|
+
},{"../../../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
142068
|
"use strict";
|
|
142041
142069
|
var __extends = (this && this.__extends) || (function () {
|
|
142042
142070
|
var extendStatics = function (d, b) {
|
|
@@ -142139,7 +142167,7 @@ var MoonbeamProtocolOptions = /** @class */ (function (_super) {
|
|
|
142139
142167
|
}(BaseMoonbeamProtocolOptions));
|
|
142140
142168
|
exports.MoonbeamProtocolOptions = MoonbeamProtocolOptions;
|
|
142141
142169
|
|
|
142142
|
-
},{"../../../utils/ProtocolNetwork":778,"../SubstrateNetwork":528,"../SubstrateProtocolOptions":530,"./controllers/MoonbeamAccountController":618,"./controllers/MoonbeamTransactionController":619,"./node/MoonbeamNodeClient":
|
|
142170
|
+
},{"../../../utils/ProtocolNetwork":778,"../SubstrateNetwork":528,"../SubstrateProtocolOptions":530,"./controllers/MoonbeamAccountController":618,"./controllers/MoonbeamTransactionController":619,"./node/MoonbeamNodeClient":635}],618:[function(require,module,exports){
|
|
142143
142171
|
(function (Buffer){(function (){
|
|
142144
142172
|
"use strict";
|
|
142145
142173
|
var __extends = (this && this.__extends) || (function () {
|
|
@@ -142223,7 +142251,7 @@ var coinlib_error_1 = require("../../../../errors/coinlib-error");
|
|
|
142223
142251
|
var array_1 = require("../../../../utils/array");
|
|
142224
142252
|
var SubstrateAccountController_1 = require("../../common/SubstrateAccountController");
|
|
142225
142253
|
var MoonbeamAddress_1 = require("../data/account/MoonbeamAddress");
|
|
142226
|
-
var
|
|
142254
|
+
var MoonbeamCandidateMetadata_1 = require("../data/staking/MoonbeamCandidateMetadata");
|
|
142227
142255
|
var MoonbeamDelegationRequest_1 = require("../data/staking/MoonbeamDelegationRequest");
|
|
142228
142256
|
var MoonbeamDelegator_1 = require("../data/staking/MoonbeamDelegator");
|
|
142229
142257
|
var MoonbeamStakingActionType_1 = require("../data/staking/MoonbeamStakingActionType");
|
|
@@ -142359,13 +142387,43 @@ var MoonbeamAccountController = /** @class */ (function (_super) {
|
|
|
142359
142387
|
};
|
|
142360
142388
|
MoonbeamAccountController.prototype.getCollatorDetails = function (accountId) {
|
|
142361
142389
|
return __awaiter(this, void 0, void 0, function () {
|
|
142362
|
-
var address, results, collatorState, commission,
|
|
142390
|
+
var runtimeVersion, address, results, candidateInfo, commission, status_1, results, collatorState, commission, status_2, topDelegations;
|
|
142363
142391
|
return __generator(this, function (_a) {
|
|
142364
142392
|
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()])];
|
|
142393
|
+
case 0: return [4 /*yield*/, this.nodeClient.getRuntimeVersion()];
|
|
142368
142394
|
case 1:
|
|
142395
|
+
runtimeVersion = _a.sent();
|
|
142396
|
+
address = MoonbeamAddress_1.MoonbeamAddress.from(accountId);
|
|
142397
|
+
if (!(runtimeVersion === null || runtimeVersion.specVersion >= 1200)) return [3 /*break*/, 3];
|
|
142398
|
+
return [4 /*yield*/, Promise.all([this.nodeClient.getCandidateInfo(address), this.nodeClient.getCollatorCommission()])];
|
|
142399
|
+
case 2:
|
|
142400
|
+
results = _a.sent();
|
|
142401
|
+
candidateInfo = results[0];
|
|
142402
|
+
commission = results[1];
|
|
142403
|
+
if (!candidateInfo || !commission) {
|
|
142404
|
+
return [2 /*return*/, Promise.reject('Could not fetch collator details.')];
|
|
142405
|
+
}
|
|
142406
|
+
switch (candidateInfo.status.value) {
|
|
142407
|
+
case MoonbeamCandidateMetadata_1.MoonbeamCollatorStatus.ACTIVE:
|
|
142408
|
+
status_1 = 'Active';
|
|
142409
|
+
break;
|
|
142410
|
+
case MoonbeamCandidateMetadata_1.MoonbeamCollatorStatus.IDLE:
|
|
142411
|
+
status_1 = 'Idle';
|
|
142412
|
+
break;
|
|
142413
|
+
case MoonbeamCandidateMetadata_1.MoonbeamCollatorStatus.LEAVING:
|
|
142414
|
+
status_1 = 'Leaving';
|
|
142415
|
+
}
|
|
142416
|
+
return [2 /*return*/, {
|
|
142417
|
+
address: address.getValue(),
|
|
142418
|
+
status: status_1,
|
|
142419
|
+
minEligibleBalance: candidateInfo.lowestTopDelegationAmount.toString(),
|
|
142420
|
+
ownStakingBalance: candidateInfo.bond.toString(),
|
|
142421
|
+
totalStakingBalance: candidateInfo.totalCounted.toString(),
|
|
142422
|
+
commission: commission.dividedBy(1000000000).toString(),
|
|
142423
|
+
delegators: candidateInfo.delegationCount.toNumber()
|
|
142424
|
+
}];
|
|
142425
|
+
case 3: return [4 /*yield*/, Promise.all([this.nodeClient.getCandidateState(address), this.nodeClient.getCollatorCommission()])];
|
|
142426
|
+
case 4:
|
|
142369
142427
|
results = _a.sent();
|
|
142370
142428
|
collatorState = results[0];
|
|
142371
142429
|
commission = results[1];
|
|
@@ -142373,19 +142431,19 @@ var MoonbeamAccountController = /** @class */ (function (_super) {
|
|
|
142373
142431
|
return [2 /*return*/, Promise.reject('Could not fetch collator details.')];
|
|
142374
142432
|
}
|
|
142375
142433
|
switch (collatorState.status.value) {
|
|
142376
|
-
case
|
|
142377
|
-
|
|
142434
|
+
case MoonbeamCandidateMetadata_1.MoonbeamCollatorStatus.ACTIVE:
|
|
142435
|
+
status_2 = 'Active';
|
|
142378
142436
|
break;
|
|
142379
|
-
case
|
|
142380
|
-
|
|
142437
|
+
case MoonbeamCandidateMetadata_1.MoonbeamCollatorStatus.IDLE:
|
|
142438
|
+
status_2 = 'Idle';
|
|
142381
142439
|
break;
|
|
142382
|
-
case
|
|
142383
|
-
|
|
142440
|
+
case MoonbeamCandidateMetadata_1.MoonbeamCollatorStatus.LEAVING:
|
|
142441
|
+
status_2 = 'Leaving';
|
|
142384
142442
|
}
|
|
142385
142443
|
topDelegations = collatorState.topDelegations.elements.map(function (bond) { return bond.amount.value; });
|
|
142386
142444
|
return [2 /*return*/, {
|
|
142387
142445
|
address: address.getValue(),
|
|
142388
|
-
status:
|
|
142446
|
+
status: status_2,
|
|
142389
142447
|
minEligibleBalance: topDelegations[topDelegations.length - 1].toString(),
|
|
142390
142448
|
ownStakingBalance: collatorState.bond.toString(),
|
|
142391
142449
|
totalStakingBalance: collatorState.totalBacking.toString(),
|
|
@@ -142639,7 +142697,7 @@ var MoonbeamAccountController = /** @class */ (function (_super) {
|
|
|
142639
142697
|
exports.MoonbeamAccountController = MoonbeamAccountController;
|
|
142640
142698
|
|
|
142641
142699
|
}).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/
|
|
142700
|
+
},{"../../../../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
142701
|
"use strict";
|
|
142644
142702
|
var __extends = (this && this.__extends) || (function () {
|
|
142645
142703
|
var extendStatics = function (d, b) {
|
|
@@ -142878,6 +142936,57 @@ exports.MoonbeamCandidateBondLessRequest = MoonbeamCandidateBondLessRequest;
|
|
|
142878
142936
|
},{"../../../SubstrateNetwork":528,"../../../common/data/scale/SCALEDecoder":576,"../../../common/data/scale/type/SCALEClass":581}],623:[function(require,module,exports){
|
|
142879
142937
|
"use strict";
|
|
142880
142938
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
142939
|
+
exports.MoonbeamCandidateMetadata = exports.MoonbeamCapacityStatus = exports.MoonbeamCollatorStatus = void 0;
|
|
142940
|
+
var SCALEDecoder_1 = require("../../../common/data/scale/SCALEDecoder");
|
|
142941
|
+
var SubstrateNetwork_1 = require("../../../SubstrateNetwork");
|
|
142942
|
+
var MoonbeamCandidateBondLessRequest_1 = require("./MoonbeamCandidateBondLessRequest");
|
|
142943
|
+
var MoonbeamCollatorStatus;
|
|
142944
|
+
(function (MoonbeamCollatorStatus) {
|
|
142945
|
+
MoonbeamCollatorStatus[MoonbeamCollatorStatus["ACTIVE"] = 0] = "ACTIVE";
|
|
142946
|
+
MoonbeamCollatorStatus[MoonbeamCollatorStatus["IDLE"] = 1] = "IDLE";
|
|
142947
|
+
MoonbeamCollatorStatus[MoonbeamCollatorStatus["LEAVING"] = 2] = "LEAVING";
|
|
142948
|
+
})(MoonbeamCollatorStatus = exports.MoonbeamCollatorStatus || (exports.MoonbeamCollatorStatus = {}));
|
|
142949
|
+
var MoonbeamCapacityStatus;
|
|
142950
|
+
(function (MoonbeamCapacityStatus) {
|
|
142951
|
+
MoonbeamCapacityStatus[MoonbeamCapacityStatus["FULL"] = 0] = "FULL";
|
|
142952
|
+
MoonbeamCapacityStatus[MoonbeamCapacityStatus["EMPTY"] = 1] = "EMPTY";
|
|
142953
|
+
MoonbeamCapacityStatus[MoonbeamCapacityStatus["PARTIAL"] = 2] = "PARTIAL";
|
|
142954
|
+
})(MoonbeamCapacityStatus = exports.MoonbeamCapacityStatus || (exports.MoonbeamCapacityStatus = {}));
|
|
142955
|
+
var MoonbeamCandidateMetadata = /** @class */ (function () {
|
|
142956
|
+
function MoonbeamCandidateMetadata(bond, delegationCount, totalCounted, lowestTopDelegationAmount, highestBottomDelegationAmount, lowestBottomDelegationAmount, topCapacity, bottomCapacity, request, status) {
|
|
142957
|
+
this.bond = bond;
|
|
142958
|
+
this.delegationCount = delegationCount;
|
|
142959
|
+
this.totalCounted = totalCounted;
|
|
142960
|
+
this.lowestTopDelegationAmount = lowestTopDelegationAmount;
|
|
142961
|
+
this.highestBottomDelegationAmount = highestBottomDelegationAmount;
|
|
142962
|
+
this.lowestBottomDelegationAmount = lowestBottomDelegationAmount;
|
|
142963
|
+
this.topCapacity = topCapacity;
|
|
142964
|
+
this.bottomCapacity = bottomCapacity;
|
|
142965
|
+
this.request = request;
|
|
142966
|
+
this.status = status;
|
|
142967
|
+
}
|
|
142968
|
+
MoonbeamCandidateMetadata.decode = function (runtimeVersion, raw) {
|
|
142969
|
+
var decoder = new SCALEDecoder_1.SCALEDecoder(SubstrateNetwork_1.SubstrateNetwork.MOONBEAM, runtimeVersion, raw);
|
|
142970
|
+
var bond = decoder.decodeNextInt(128);
|
|
142971
|
+
var delegationCount = decoder.decodeNextInt(32);
|
|
142972
|
+
var totalCounted = decoder.decodeNextInt(128);
|
|
142973
|
+
var lowestTopDelegationAmount = decoder.decodeNextInt(128);
|
|
142974
|
+
var highestBottomDelegationAmount = decoder.decodeNextInt(128);
|
|
142975
|
+
var lowestBottomDelegationAmount = decoder.decodeNextInt(128);
|
|
142976
|
+
var topCapacity = decoder.decodeNextEnum(function (value) { return MoonbeamCapacityStatus[MoonbeamCapacityStatus[value]]; });
|
|
142977
|
+
var bottomCapacity = decoder.decodeNextEnum(function (value) { return MoonbeamCapacityStatus[MoonbeamCapacityStatus[value]]; });
|
|
142978
|
+
var request = decoder.decodeNextOptional(function (_, runtimeVersion, hex) { return MoonbeamCandidateBondLessRequest_1.MoonbeamCandidateBondLessRequest.decode(runtimeVersion, hex); });
|
|
142979
|
+
var status = decoder.decodeNextEnum(function (value) { return MoonbeamCollatorStatus[MoonbeamCollatorStatus[value]]; });
|
|
142980
|
+
return new MoonbeamCandidateMetadata(bond.decoded, delegationCount.decoded, totalCounted.decoded, lowestTopDelegationAmount.decoded, highestBottomDelegationAmount.decoded, lowestBottomDelegationAmount.decoded, topCapacity.decoded, bottomCapacity.decoded, request.decoded, status.decoded);
|
|
142981
|
+
};
|
|
142982
|
+
return MoonbeamCandidateMetadata;
|
|
142983
|
+
}());
|
|
142984
|
+
exports.MoonbeamCandidateMetadata = MoonbeamCandidateMetadata;
|
|
142985
|
+
|
|
142986
|
+
},{"../../../SubstrateNetwork":528,"../../../common/data/scale/SCALEDecoder":576,"./MoonbeamCandidateBondLessRequest":622}],624:[function(require,module,exports){
|
|
142987
|
+
"use strict";
|
|
142988
|
+
// TODO: Remove once Moonriver and Moonbeam are updated to runtime 1200.
|
|
142989
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
142881
142990
|
exports.MoonbeamCollatorCandidate = exports.MoonbeamCollatorStatus = void 0;
|
|
142882
142991
|
var SCALEDecoder_1 = require("../../../common/data/scale/SCALEDecoder");
|
|
142883
142992
|
var SCALEAccountId_1 = require("../../../common/data/scale/type/SCALEAccountId");
|
|
@@ -142919,7 +143028,7 @@ var MoonbeamCollatorCandidate = /** @class */ (function () {
|
|
|
142919
143028
|
}());
|
|
142920
143029
|
exports.MoonbeamCollatorCandidate = MoonbeamCollatorCandidate;
|
|
142921
143030
|
|
|
142922
|
-
},{"../../../SubstrateNetwork":528,"../../../common/data/scale/SCALEDecoder":576,"../../../common/data/scale/type/SCALEAccountId":577,"./MoonbeamBond":621,"./MoonbeamCandidateBondLessRequest":622}],
|
|
143031
|
+
},{"../../../SubstrateNetwork":528,"../../../common/data/scale/SCALEDecoder":576,"../../../common/data/scale/type/SCALEAccountId":577,"./MoonbeamBond":621,"./MoonbeamCandidateBondLessRequest":622}],625:[function(require,module,exports){
|
|
142923
143032
|
"use strict";
|
|
142924
143033
|
var __extends = (this && this.__extends) || (function () {
|
|
142925
143034
|
var extendStatics = function (d, b) {
|
|
@@ -142970,7 +143079,7 @@ var MoonbeamDelegationRequest = /** @class */ (function (_super) {
|
|
|
142970
143079
|
}(SCALEClass_1.SCALEClass));
|
|
142971
143080
|
exports.MoonbeamDelegationRequest = MoonbeamDelegationRequest;
|
|
142972
143081
|
|
|
142973
|
-
},{"../../../SubstrateNetwork":528,"../../../common/data/scale/SCALEDecoder":576,"../../../common/data/scale/type/SCALEClass":581}],
|
|
143082
|
+
},{"../../../SubstrateNetwork":528,"../../../common/data/scale/SCALEDecoder":576,"../../../common/data/scale/type/SCALEClass":581}],626:[function(require,module,exports){
|
|
142974
143083
|
"use strict";
|
|
142975
143084
|
var __extends = (this && this.__extends) || (function () {
|
|
142976
143085
|
var extendStatics = function (d, b) {
|
|
@@ -143100,7 +143209,7 @@ var MoonbeamDelegator = /** @class */ (function () {
|
|
|
143100
143209
|
}());
|
|
143101
143210
|
exports.MoonbeamDelegator = MoonbeamDelegator;
|
|
143102
143211
|
|
|
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":
|
|
143212
|
+
},{"../../../../../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
143213
|
"use strict";
|
|
143105
143214
|
var __extends = (this && this.__extends) || (function () {
|
|
143106
143215
|
var extendStatics = function (d, b) {
|
|
@@ -143149,7 +143258,7 @@ var MoonbeamPendingDelegationRequests = /** @class */ (function (_super) {
|
|
|
143149
143258
|
}(SCALEClass_1.SCALEClass));
|
|
143150
143259
|
exports.MoonbeamPendingDelegationRequests = MoonbeamPendingDelegationRequests;
|
|
143151
143260
|
|
|
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":
|
|
143261
|
+
},{"../../../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
143262
|
"use strict";
|
|
143154
143263
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
143155
143264
|
exports.MoonbeamRoundInfo = void 0;
|
|
@@ -143172,7 +143281,7 @@ var MoonbeamRoundInfo = /** @class */ (function () {
|
|
|
143172
143281
|
}());
|
|
143173
143282
|
exports.MoonbeamRoundInfo = MoonbeamRoundInfo;
|
|
143174
143283
|
|
|
143175
|
-
},{"../../../SubstrateNetwork":528,"../../../common/data/scale/SCALEDecoder":576}],
|
|
143284
|
+
},{"../../../SubstrateNetwork":528,"../../../common/data/scale/SCALEDecoder":576}],629:[function(require,module,exports){
|
|
143176
143285
|
"use strict";
|
|
143177
143286
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
143178
143287
|
exports.MoonbeamStakingActionType = void 0;
|
|
@@ -143191,7 +143300,7 @@ var MoonbeamStakingActionType;
|
|
|
143191
143300
|
MoonbeamStakingActionType["CANCEL_BOND_LESS"] = "cancel_bond_less";
|
|
143192
143301
|
})(MoonbeamStakingActionType = exports.MoonbeamStakingActionType || (exports.MoonbeamStakingActionType = {}));
|
|
143193
143302
|
|
|
143194
|
-
},{}],
|
|
143303
|
+
},{}],630:[function(require,module,exports){
|
|
143195
143304
|
"use strict";
|
|
143196
143305
|
var __extends = (this && this.__extends) || (function () {
|
|
143197
143306
|
var extendStatics = function (d, b) {
|
|
@@ -143236,7 +143345,7 @@ var MoonbeamSignature = /** @class */ (function (_super) {
|
|
|
143236
143345
|
}(SubstrateSignature_1.SubstrateSignature));
|
|
143237
143346
|
exports.MoonbeamSignature = MoonbeamSignature;
|
|
143238
143347
|
|
|
143239
|
-
},{"../../../common/data/scale/SCALEDecoder":576,"../../../common/data/scale/type/SCALEEnum":584,"../../../common/data/scale/type/SCALEHash":586,"../../../common/data/transaction/SubstrateSignature":604}],
|
|
143348
|
+
},{"../../../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
143349
|
"use strict";
|
|
143241
143350
|
var __extends = (this && this.__extends) || (function () {
|
|
143242
143351
|
var extendStatics = function (d, b) {
|
|
@@ -143311,7 +143420,7 @@ var MoonbaseProtocol = /** @class */ (function (_super) {
|
|
|
143311
143420
|
}(MoonbeamProtocol_1.MoonbeamProtocol));
|
|
143312
143421
|
exports.MoonbaseProtocol = MoonbaseProtocol;
|
|
143313
143422
|
|
|
143314
|
-
},{"../../../../utils/ProtocolSymbols":779,"../MoonbeamProtocol":616,"./MoonbaseProtocolOptions":
|
|
143423
|
+
},{"../../../../utils/ProtocolSymbols":779,"../MoonbeamProtocol":616,"./MoonbaseProtocolOptions":632}],632:[function(require,module,exports){
|
|
143315
143424
|
"use strict";
|
|
143316
143425
|
var __extends = (this && this.__extends) || (function () {
|
|
143317
143426
|
var extendStatics = function (d, b) {
|
|
@@ -143332,7 +143441,7 @@ var ProtocolNetwork_1 = require("../../../../utils/ProtocolNetwork");
|
|
|
143332
143441
|
var SubstrateProtocolOptions_1 = require("../../SubstrateProtocolOptions");
|
|
143333
143442
|
var MoonbeamProtocolOptions_1 = require("../MoonbeamProtocolOptions");
|
|
143334
143443
|
var MAINNET_NAME = 'Mainnet';
|
|
143335
|
-
var NODE_URL = 'https://
|
|
143444
|
+
var NODE_URL = 'https://moonbeam-alpha.api.onfinality.io/public';
|
|
143336
143445
|
var BLOCK_EXPLORER_URL = 'https://moonbase.subscan.io';
|
|
143337
143446
|
var BLOCK_EXPLORER_API = 'https://moonbase.subscan.io/api/scan';
|
|
143338
143447
|
var MoonbaseProtocolConfig = /** @class */ (function (_super) {
|
|
@@ -143390,7 +143499,7 @@ var MoonbaseProtocolOptions = /** @class */ (function (_super) {
|
|
|
143390
143499
|
}(MoonbeamProtocolOptions_1.BaseMoonbeamProtocolOptions));
|
|
143391
143500
|
exports.MoonbaseProtocolOptions = MoonbaseProtocolOptions;
|
|
143392
143501
|
|
|
143393
|
-
},{"../../../../utils/ProtocolNetwork":778,"../../SubstrateProtocolOptions":530,"../MoonbeamProtocolOptions":617}],
|
|
143502
|
+
},{"../../../../utils/ProtocolNetwork":778,"../../SubstrateProtocolOptions":530,"../MoonbeamProtocolOptions":617}],633:[function(require,module,exports){
|
|
143394
143503
|
"use strict";
|
|
143395
143504
|
var __extends = (this && this.__extends) || (function () {
|
|
143396
143505
|
var extendStatics = function (d, b) {
|
|
@@ -143465,7 +143574,7 @@ var MoonriverProtocol = /** @class */ (function (_super) {
|
|
|
143465
143574
|
}(MoonbeamProtocol_1.MoonbeamProtocol));
|
|
143466
143575
|
exports.MoonriverProtocol = MoonriverProtocol;
|
|
143467
143576
|
|
|
143468
|
-
},{"../../../../utils/ProtocolSymbols":779,"../MoonbeamProtocol":616,"./MoonriverProtocolOptions":
|
|
143577
|
+
},{"../../../../utils/ProtocolSymbols":779,"../MoonbeamProtocol":616,"./MoonriverProtocolOptions":634}],634:[function(require,module,exports){
|
|
143469
143578
|
"use strict";
|
|
143470
143579
|
var __extends = (this && this.__extends) || (function () {
|
|
143471
143580
|
var extendStatics = function (d, b) {
|
|
@@ -143544,7 +143653,7 @@ var MoonriverProtocolOptions = /** @class */ (function (_super) {
|
|
|
143544
143653
|
}(MoonbeamProtocolOptions_1.BaseMoonbeamProtocolOptions));
|
|
143545
143654
|
exports.MoonriverProtocolOptions = MoonriverProtocolOptions;
|
|
143546
143655
|
|
|
143547
|
-
},{"../../../../utils/ProtocolNetwork":778,"../../SubstrateProtocolOptions":530,"../MoonbeamProtocolOptions":617}],
|
|
143656
|
+
},{"../../../../utils/ProtocolNetwork":778,"../../SubstrateProtocolOptions":530,"../MoonbeamProtocolOptions":617}],635:[function(require,module,exports){
|
|
143548
143657
|
"use strict";
|
|
143549
143658
|
var __extends = (this && this.__extends) || (function () {
|
|
143550
143659
|
var extendStatics = function (d, b) {
|
|
@@ -143601,6 +143710,7 @@ var SCALEAccountId_1 = require("../../common/data/scale/type/SCALEAccountId");
|
|
|
143601
143710
|
var SCALEArray_1 = require("../../common/data/scale/type/SCALEArray");
|
|
143602
143711
|
var SCALEInt_1 = require("../../common/data/scale/type/SCALEInt");
|
|
143603
143712
|
var SubstrateNodeClient_1 = require("../../common/node/SubstrateNodeClient");
|
|
143713
|
+
var MoonbeamCandidateMetadata_1 = require("../data/staking/MoonbeamCandidateMetadata");
|
|
143604
143714
|
var MoonbeamCollatorCandidate_1 = require("../data/staking/MoonbeamCollatorCandidate");
|
|
143605
143715
|
var MoonbeamDelegator_1 = require("../data/staking/MoonbeamDelegator");
|
|
143606
143716
|
var MoonbeamRoundInfo_1 = require("../data/staking/MoonbeamRoundInfo");
|
|
@@ -143643,12 +143753,12 @@ var MoonbeamNodeClient = /** @class */ (function (_super) {
|
|
|
143643
143753
|
});
|
|
143644
143754
|
});
|
|
143645
143755
|
};
|
|
143646
|
-
MoonbeamNodeClient.prototype.
|
|
143756
|
+
MoonbeamNodeClient.prototype.getCandidateInfo = function (address) {
|
|
143647
143757
|
return __awaiter(this, void 0, void 0, function () {
|
|
143648
143758
|
var _this = this;
|
|
143649
143759
|
return __generator(this, function (_a) {
|
|
143650
|
-
return [2 /*return*/, this.fromStorage('ParachainStaking', '
|
|
143651
|
-
return item ?
|
|
143760
|
+
return [2 /*return*/, this.fromStorage('ParachainStaking', 'CandidateInfo', SCALEAccountId_1.SCALEAccountId.from(address, this.network)).then(function (item) {
|
|
143761
|
+
return item ? MoonbeamCandidateMetadata_1.MoonbeamCandidateMetadata.decode(_this.runtimeVersion, item) : undefined;
|
|
143652
143762
|
})];
|
|
143653
143763
|
});
|
|
143654
143764
|
});
|
|
@@ -143662,10 +143772,19 @@ var MoonbeamNodeClient = /** @class */ (function (_super) {
|
|
|
143662
143772
|
});
|
|
143663
143773
|
});
|
|
143664
143774
|
};
|
|
143665
|
-
MoonbeamNodeClient.prototype.
|
|
143775
|
+
MoonbeamNodeClient.prototype.getMaxTopDelegationsPerCandidate = function () {
|
|
143666
143776
|
return __awaiter(this, void 0, void 0, function () {
|
|
143667
143777
|
return __generator(this, function (_a) {
|
|
143668
|
-
return [2 /*return*/, this.getConstant('ParachainStaking', '
|
|
143778
|
+
return [2 /*return*/, this.getConstant('ParachainStaking', 'MaxTopDelegationsPerCandidate').then(function (item) {
|
|
143779
|
+
return item ? SCALEInt_1.SCALEInt.decode(item, 32).decoded.value : undefined;
|
|
143780
|
+
})];
|
|
143781
|
+
});
|
|
143782
|
+
});
|
|
143783
|
+
};
|
|
143784
|
+
MoonbeamNodeClient.prototype.getMaxBottomDelegationsPerCandidate = function () {
|
|
143785
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
143786
|
+
return __generator(this, function (_a) {
|
|
143787
|
+
return [2 /*return*/, this.getConstant('ParachainStaking', 'MaxBottomDelegationsPerCandidate').then(function (item) {
|
|
143669
143788
|
return item ? SCALEInt_1.SCALEInt.decode(item, 32).decoded.value : undefined;
|
|
143670
143789
|
})];
|
|
143671
143790
|
});
|
|
@@ -143739,11 +143858,31 @@ var MoonbeamNodeClient = /** @class */ (function (_super) {
|
|
|
143739
143858
|
});
|
|
143740
143859
|
});
|
|
143741
143860
|
};
|
|
143861
|
+
// TODO: Remove once Moonriver and Moonbeam are updated to runtime 1200.
|
|
143862
|
+
MoonbeamNodeClient.prototype.getCandidateState = function (address) {
|
|
143863
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
143864
|
+
var _this = this;
|
|
143865
|
+
return __generator(this, function (_a) {
|
|
143866
|
+
return [2 /*return*/, this.fromStorage('ParachainStaking', 'CandidateState', SCALEAccountId_1.SCALEAccountId.from(address, this.network)).then(function (item) {
|
|
143867
|
+
return item ? MoonbeamCollatorCandidate_1.MoonbeamCollatorCandidate.decode(_this.runtimeVersion, item) : undefined;
|
|
143868
|
+
})];
|
|
143869
|
+
});
|
|
143870
|
+
});
|
|
143871
|
+
};
|
|
143872
|
+
MoonbeamNodeClient.prototype.getMaxDelegatorsPerCandidate = function () {
|
|
143873
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
143874
|
+
return __generator(this, function (_a) {
|
|
143875
|
+
return [2 /*return*/, this.getConstant('ParachainStaking', 'MaxDelegatorsPerCandidate').then(function (item) {
|
|
143876
|
+
return item ? SCALEInt_1.SCALEInt.decode(item, 32).decoded.value : undefined;
|
|
143877
|
+
})];
|
|
143878
|
+
});
|
|
143879
|
+
});
|
|
143880
|
+
};
|
|
143742
143881
|
return MoonbeamNodeClient;
|
|
143743
143882
|
}(SubstrateNodeClient_1.SubstrateNodeClient));
|
|
143744
143883
|
exports.MoonbeamNodeClient = MoonbeamNodeClient;
|
|
143745
143884
|
|
|
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/
|
|
143885
|
+
},{"../../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
143886
|
"use strict";
|
|
143748
143887
|
var __extends = (this && this.__extends) || (function () {
|
|
143749
143888
|
var extendStatics = function (d, b) {
|
|
@@ -143776,7 +143915,7 @@ var PolkadotAddress = /** @class */ (function (_super) {
|
|
|
143776
143915
|
}(SubstrateAddress_1.SubstrateAddress));
|
|
143777
143916
|
exports.PolkadotAddress = PolkadotAddress;
|
|
143778
143917
|
|
|
143779
|
-
},{"../common/data/account/SubstrateAddress":535}],
|
|
143918
|
+
},{"../common/data/account/SubstrateAddress":535}],637:[function(require,module,exports){
|
|
143780
143919
|
"use strict";
|
|
143781
143920
|
var __extends = (this && this.__extends) || (function () {
|
|
143782
143921
|
var extendStatics = function (d, b) {
|
|
@@ -143847,7 +143986,7 @@ var PolkadotProtocol = /** @class */ (function (_super) {
|
|
|
143847
143986
|
}(SubstrateDelegateProtocol_1.SubstrateDelegateProtocol));
|
|
143848
143987
|
exports.PolkadotProtocol = PolkadotProtocol;
|
|
143849
143988
|
|
|
143850
|
-
},{"../../../utils/ProtocolSymbols":779,"../SubstrateDelegateProtocol":527,"./PolkadotProtocolOptions":
|
|
143989
|
+
},{"../../../utils/ProtocolSymbols":779,"../SubstrateDelegateProtocol":527,"./PolkadotProtocolOptions":638}],638:[function(require,module,exports){
|
|
143851
143990
|
"use strict";
|
|
143852
143991
|
// tslint:disable:max-classes-per-file
|
|
143853
143992
|
var __extends = (this && this.__extends) || (function () {
|
|
@@ -143931,7 +144070,7 @@ var PolkadotProtocolOptions = /** @class */ (function (_super) {
|
|
|
143931
144070
|
}(SubstrateProtocolOptions_1.SubstrateProtocolOptions));
|
|
143932
144071
|
exports.PolkadotProtocolOptions = PolkadotProtocolOptions;
|
|
143933
144072
|
|
|
143934
|
-
},{"../../../utils/ProtocolNetwork":778,"../SubstrateNetwork":528,"../SubstrateProtocolOptions":530,"../common/SubstrateAccountController":531,"../common/SubstrateTransactionController":532,"../common/node/SubstrateNodeClient":609}],
|
|
144073
|
+
},{"../../../utils/ProtocolNetwork":778,"../SubstrateNetwork":528,"../SubstrateProtocolOptions":530,"../common/SubstrateAccountController":531,"../common/SubstrateTransactionController":532,"../common/node/SubstrateNodeClient":609}],639:[function(require,module,exports){
|
|
143935
144074
|
(function (Buffer){(function (){
|
|
143936
144075
|
"use strict";
|
|
143937
144076
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -144041,7 +144180,7 @@ var TezosAddress = /** @class */ (function () {
|
|
|
144041
144180
|
exports.TezosAddress = TezosAddress;
|
|
144042
144181
|
|
|
144043
144182
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
144044
|
-
},{"../../dependencies/src/bs58check-2.1.2/index":325,"./TezosUtils":
|
|
144183
|
+
},{"../../dependencies/src/bs58check-2.1.2/index":325,"./TezosUtils":643,"buffer":67,"libsodium-wrappers":1139}],640:[function(require,module,exports){
|
|
144045
144184
|
(function (Buffer){(function (){
|
|
144046
144185
|
"use strict";
|
|
144047
144186
|
var __extends = (this && this.__extends) || (function () {
|
|
@@ -144245,7 +144384,7 @@ var TezosCryptoClient = /** @class */ (function (_super) {
|
|
|
144245
144384
|
exports.TezosCryptoClient = TezosCryptoClient;
|
|
144246
144385
|
|
|
144247
144386
|
}).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":
|
|
144387
|
+
},{"../../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
144388
|
(function (Buffer){(function (){
|
|
144250
144389
|
"use strict";
|
|
144251
144390
|
var __extends = (this && this.__extends) || (function () {
|
|
@@ -146354,7 +146493,7 @@ var TezosProtocol = /** @class */ (function (_super) {
|
|
|
146354
146493
|
exports.TezosProtocol = TezosProtocol;
|
|
146355
146494
|
|
|
146356
146495
|
}).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":
|
|
146496
|
+
},{"../../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
146497
|
"use strict";
|
|
146359
146498
|
var __extends = (this && this.__extends) || (function () {
|
|
146360
146499
|
var extendStatics = function (d, b) {
|
|
@@ -146483,7 +146622,7 @@ var TezosProtocolOptions = /** @class */ (function () {
|
|
|
146483
146622
|
}());
|
|
146484
146623
|
exports.TezosProtocolOptions = TezosProtocolOptions;
|
|
146485
146624
|
|
|
146486
|
-
},{"../../utils/ProtocolNetwork":778,"./TezosProtocol":
|
|
146625
|
+
},{"../../utils/ProtocolNetwork":778,"./TezosProtocol":641}],643:[function(require,module,exports){
|
|
146487
146626
|
(function (Buffer){(function (){
|
|
146488
146627
|
"use strict";
|
|
146489
146628
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -146774,7 +146913,7 @@ var TezosUtils = /** @class */ (function () {
|
|
|
146774
146913
|
exports.TezosUtils = TezosUtils;
|
|
146775
146914
|
|
|
146776
146915
|
}).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}],
|
|
146916
|
+
},{"../../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
146917
|
"use strict";
|
|
146779
146918
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
146780
146919
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -147305,7 +147444,7 @@ var TezosContract = /** @class */ (function () {
|
|
|
147305
147444
|
}());
|
|
147306
147445
|
exports.TezosContract = TezosContract;
|
|
147307
147446
|
|
|
147308
|
-
},{"../../../dependencies/src/axios-0.19.0/index":222,"../../../errors":478,"../../../errors/coinlib-error":477,"../../../utils/object":789,"../../../utils/string":799,"../TezosUtils":
|
|
147447
|
+
},{"../../../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
147448
|
"use strict";
|
|
147310
147449
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
147311
147450
|
exports.TezosContractCall = void 0;
|
|
@@ -147329,7 +147468,7 @@ var TezosContractCall = /** @class */ (function () {
|
|
|
147329
147468
|
}());
|
|
147330
147469
|
exports.TezosContractCall = TezosContractCall;
|
|
147331
147470
|
|
|
147332
|
-
},{}],
|
|
147471
|
+
},{}],646:[function(require,module,exports){
|
|
147333
147472
|
"use strict";
|
|
147334
147473
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
147335
147474
|
exports.TezosContractEntrypoint = void 0;
|
|
@@ -147357,7 +147496,7 @@ var TezosContractEntrypoint = /** @class */ (function () {
|
|
|
147357
147496
|
}());
|
|
147358
147497
|
exports.TezosContractEntrypoint = TezosContractEntrypoint;
|
|
147359
147498
|
|
|
147360
|
-
},{"../types/michelson/MichelsonTypeMeta":687,"../types/utils":700}],
|
|
147499
|
+
},{"../types/michelson/MichelsonTypeMeta":687,"../types/utils":700}],647:[function(require,module,exports){
|
|
147361
147500
|
"use strict";
|
|
147362
147501
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
147363
147502
|
exports.TezosContractStorage = void 0;
|
|
@@ -147374,7 +147513,7 @@ var TezosContractStorage = /** @class */ (function () {
|
|
|
147374
147513
|
}());
|
|
147375
147514
|
exports.TezosContractStorage = TezosContractStorage;
|
|
147376
147515
|
|
|
147377
|
-
},{"../types/michelson/MichelsonTypeMeta":687}],
|
|
147516
|
+
},{"../types/michelson/MichelsonTypeMeta":687}],648:[function(require,module,exports){
|
|
147378
147517
|
"use strict";
|
|
147379
147518
|
var __extends = (this && this.__extends) || (function () {
|
|
147380
147519
|
var extendStatics = function (d, b) {
|
|
@@ -147409,7 +147548,7 @@ var TezosContractRemoteDataFactory = /** @class */ (function (_super) {
|
|
|
147409
147548
|
}(RemoteDataFactory_1.RemoteDataFactory));
|
|
147410
147549
|
exports.TezosContractRemoteDataFactory = TezosContractRemoteDataFactory;
|
|
147411
147550
|
|
|
147412
|
-
},{"../../../../utils/remote-data/RemoteDataFactory":796,"./TezosStorageRemoteData":
|
|
147551
|
+
},{"../../../../utils/remote-data/RemoteDataFactory":796,"./TezosStorageRemoteData":649}],649:[function(require,module,exports){
|
|
147413
147552
|
"use strict";
|
|
147414
147553
|
var __extends = (this && this.__extends) || (function () {
|
|
147415
147554
|
var extendStatics = function (d, b) {
|
|
@@ -147561,7 +147700,7 @@ var TezosStorageRemoteData = /** @class */ (function (_super) {
|
|
|
147561
147700
|
}(RemoteData_1.RemoteData));
|
|
147562
147701
|
exports.TezosStorageRemoteData = TezosStorageRemoteData;
|
|
147563
147702
|
|
|
147564
|
-
},{"../../../../utils/remote-data/RemoteData":795,"../../TezosProtocol":
|
|
147703
|
+
},{"../../../../utils/remote-data/RemoteData":795,"../../TezosProtocol":641}],650:[function(require,module,exports){
|
|
147565
147704
|
(function (Buffer){(function (){
|
|
147566
147705
|
"use strict";
|
|
147567
147706
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
@@ -147861,7 +148000,7 @@ var TezosDomains = /** @class */ (function () {
|
|
|
147861
148000
|
exports.TezosDomains = TezosDomains;
|
|
147862
148001
|
|
|
147863
148002
|
}).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":
|
|
148003
|
+
},{"../../../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
148004
|
"use strict";
|
|
147866
148005
|
var __extends = (this && this.__extends) || (function () {
|
|
147867
148006
|
var extendStatics = function (d, b) {
|
|
@@ -148011,7 +148150,7 @@ var TezosBTC = /** @class */ (function (_super) {
|
|
|
148011
148150
|
}(TezosFA1p2Protocol_1.TezosFA1p2Protocol));
|
|
148012
148151
|
exports.TezosBTC = TezosBTC;
|
|
148013
148152
|
|
|
148014
|
-
},{"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../TezosProtocolOptions":
|
|
148153
|
+
},{"../../../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
148154
|
"use strict";
|
|
148016
148155
|
var __extends = (this && this.__extends) || (function () {
|
|
148017
148156
|
var extendStatics = function (d, b) {
|
|
@@ -148063,7 +148202,7 @@ var TezosCTezProtocolConfig = /** @class */ (function (_super) {
|
|
|
148063
148202
|
}(TezosFAProtocolOptions_1.TezosFAProtocolConfig));
|
|
148064
148203
|
exports.TezosCTezProtocolConfig = TezosCTezProtocolConfig;
|
|
148065
148204
|
|
|
148066
|
-
},{"../../../utils/ProtocolSymbols":779,"../TezosProtocolOptions":
|
|
148205
|
+
},{"../../../utils/ProtocolSymbols":779,"../TezosProtocolOptions":642,"./TezosFA1p2Protocol":655,"./TezosFAProtocolOptions":658}],653:[function(require,module,exports){
|
|
148067
148206
|
"use strict";
|
|
148068
148207
|
var __extends = (this && this.__extends) || (function () {
|
|
148069
148208
|
var extendStatics = function (d, b) {
|
|
@@ -148177,7 +148316,7 @@ var TezosETHtz = /** @class */ (function (_super) {
|
|
|
148177
148316
|
}(TezosFA1p2Protocol_1.TezosFA1p2Protocol));
|
|
148178
148317
|
exports.TezosETHtz = TezosETHtz;
|
|
148179
148318
|
|
|
148180
|
-
},{"../TezosProtocolOptions":
|
|
148319
|
+
},{"../TezosProtocolOptions":642,"../TezosUtils":643,"./TezosFA1p2Protocol":655,"./TezosFAProtocolOptions":658}],654:[function(require,module,exports){
|
|
148181
148320
|
"use strict";
|
|
148182
148321
|
var __extends = (this && this.__extends) || (function () {
|
|
148183
148322
|
var extendStatics = function (d, b) {
|
|
@@ -148256,6 +148395,7 @@ var utils_1 = require("../types/utils");
|
|
|
148256
148395
|
var TezosFAProtocol_1 = require("./TezosFAProtocol");
|
|
148257
148396
|
var errors_1 = require("../../../errors");
|
|
148258
148397
|
var coinlib_error_1 = require("../../../errors/coinlib-error");
|
|
148398
|
+
var MichelsonString_1 = require("../types/michelson/primitives/MichelsonString");
|
|
148259
148399
|
var TezosFA1ContractEntrypoint;
|
|
148260
148400
|
(function (TezosFA1ContractEntrypoint) {
|
|
148261
148401
|
TezosFA1ContractEntrypoint["BALANCE"] = "getBalance";
|
|
@@ -148366,10 +148506,8 @@ var TezosFA1Protocol = /** @class */ (function (_super) {
|
|
|
148366
148506
|
return __generator(this, function (_a) {
|
|
148367
148507
|
switch (_a.label) {
|
|
148368
148508
|
case 0: return [4 /*yield*/, this.contract.createContractCall(TezosFA1ContractEntrypoint.BALANCE, [
|
|
148369
|
-
|
|
148370
|
-
|
|
148371
|
-
},
|
|
148372
|
-
callbackContract
|
|
148509
|
+
new MichelsonAddress_1.MichelsonAddress(new MichelsonString_1.MichelsonString(address)),
|
|
148510
|
+
new MichelsonAddress_1.MichelsonAddress(new MichelsonString_1.MichelsonString(callbackContract))
|
|
148373
148511
|
])];
|
|
148374
148512
|
case 1:
|
|
148375
148513
|
getBalanceCall = _a.sent();
|
|
@@ -148490,7 +148628,7 @@ var TezosFA1Protocol = /** @class */ (function (_super) {
|
|
|
148490
148628
|
}(TezosFAProtocol_1.TezosFAProtocol));
|
|
148491
148629
|
exports.TezosFA1Protocol = TezosFA1Protocol;
|
|
148492
148630
|
|
|
148493
|
-
},{"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../../errors":478,"../../../errors/coinlib-error":477,"../../../utils/hex":788,"../TezosProtocol":
|
|
148631
|
+
},{"../../../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
148632
|
"use strict";
|
|
148495
148633
|
var __extends = (this && this.__extends) || (function () {
|
|
148496
148634
|
var extendStatics = function (d, b) {
|
|
@@ -148608,7 +148746,7 @@ var TezosFA1p2Protocol = /** @class */ (function (_super) {
|
|
|
148608
148746
|
}(TezosFA1Protocol_1.TezosFA1Protocol));
|
|
148609
148747
|
exports.TezosFA1p2Protocol = TezosFA1p2Protocol;
|
|
148610
148748
|
|
|
148611
|
-
},{"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"./TezosFA1Protocol":
|
|
148749
|
+
},{"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"./TezosFA1Protocol":654}],656:[function(require,module,exports){
|
|
148612
148750
|
"use strict";
|
|
148613
148751
|
var __extends = (this && this.__extends) || (function () {
|
|
148614
148752
|
var extendStatics = function (d, b) {
|
|
@@ -149128,7 +149266,7 @@ var TezosFA2Protocol = /** @class */ (function (_super) {
|
|
|
149128
149266
|
}(TezosFAProtocol_1.TezosFAProtocol));
|
|
149129
149267
|
exports.TezosFA2Protocol = TezosFA2Protocol;
|
|
149130
149268
|
|
|
149131
|
-
},{"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../../errors":478,"../../../errors/coinlib-error":477,"../../../utils/hex":788,"../TezosProtocol":
|
|
149269
|
+
},{"../../../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
149270
|
"use strict";
|
|
149133
149271
|
var __extends = (this && this.__extends) || (function () {
|
|
149134
149272
|
var extendStatics = function (d, b) {
|
|
@@ -149746,7 +149884,7 @@ var TezosFAProtocol = /** @class */ (function (_super) {
|
|
|
149746
149884
|
}(TezosProtocol_1.TezosProtocol));
|
|
149747
149885
|
exports.TezosFAProtocol = TezosFAProtocol;
|
|
149748
149886
|
|
|
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":
|
|
149887
|
+
},{"../../../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
149888
|
"use strict";
|
|
149751
149889
|
// tslint:disable:max-classes-per-file
|
|
149752
149890
|
var __extends = (this && this.__extends) || (function () {
|
|
@@ -149975,7 +150113,7 @@ var TezosFA2ProtocolOptions = /** @class */ (function () {
|
|
|
149975
150113
|
}());
|
|
149976
150114
|
exports.TezosFA2ProtocolOptions = TezosFA2ProtocolOptions;
|
|
149977
150115
|
|
|
149978
|
-
},{"../../../serializer/constants":738,"../../../utils/ProtocolSymbols":779,"../TezosProtocolOptions":
|
|
150116
|
+
},{"../../../serializer/constants":738,"../../../utils/ProtocolSymbols":779,"../TezosProtocolOptions":642}],659:[function(require,module,exports){
|
|
149979
150117
|
"use strict";
|
|
149980
150118
|
var __extends = (this && this.__extends) || (function () {
|
|
149981
150119
|
var extendStatics = function (d, b) {
|
|
@@ -150089,7 +150227,7 @@ var TezosKolibriUSD = /** @class */ (function (_super) {
|
|
|
150089
150227
|
}(TezosFA1p2Protocol_1.TezosFA1p2Protocol));
|
|
150090
150228
|
exports.TezosKolibriUSD = TezosKolibriUSD;
|
|
150091
150229
|
|
|
150092
|
-
},{"../TezosProtocolOptions":
|
|
150230
|
+
},{"../TezosProtocolOptions":642,"../TezosUtils":643,"./TezosFA1p2Protocol":655,"./TezosFAProtocolOptions":658}],660:[function(require,module,exports){
|
|
150093
150231
|
"use strict";
|
|
150094
150232
|
var __extends = (this && this.__extends) || (function () {
|
|
150095
150233
|
var extendStatics = function (d, b) {
|
|
@@ -150141,7 +150279,7 @@ var TezosPlentyProtocolConfig = /** @class */ (function (_super) {
|
|
|
150141
150279
|
}(TezosFAProtocolOptions_1.TezosFAProtocolConfig));
|
|
150142
150280
|
exports.TezosPlentyProtocolConfig = TezosPlentyProtocolConfig;
|
|
150143
150281
|
|
|
150144
|
-
},{"../../../utils/ProtocolSymbols":779,"../TezosProtocolOptions":
|
|
150282
|
+
},{"../../../utils/ProtocolSymbols":779,"../TezosProtocolOptions":642,"./TezosFA1p2Protocol":655,"./TezosFAProtocolOptions":658}],661:[function(require,module,exports){
|
|
150145
150283
|
"use strict";
|
|
150146
150284
|
var __extends = (this && this.__extends) || (function () {
|
|
150147
150285
|
var extendStatics = function (d, b) {
|
|
@@ -150196,7 +150334,7 @@ var TezosQUIPUProtocolConfig = /** @class */ (function (_super) {
|
|
|
150196
150334
|
}(TezosFAProtocolOptions_1.TezosFA2ProtocolConfig));
|
|
150197
150335
|
exports.TezosQUIPUProtocolConfig = TezosQUIPUProtocolConfig;
|
|
150198
150336
|
|
|
150199
|
-
},{"../../../utils/ProtocolSymbols":779,"../TezosProtocolOptions":
|
|
150337
|
+
},{"../../../utils/ProtocolSymbols":779,"../TezosProtocolOptions":642,"./TezosFA2Protocol":656,"./TezosFAProtocolOptions":658}],662:[function(require,module,exports){
|
|
150200
150338
|
"use strict";
|
|
150201
150339
|
var __extends = (this && this.__extends) || (function () {
|
|
150202
150340
|
var extendStatics = function (d, b) {
|
|
@@ -150285,7 +150423,7 @@ var TezosStaker = /** @class */ (function (_super) {
|
|
|
150285
150423
|
}(TezosFA1Protocol_1.TezosFA1Protocol));
|
|
150286
150424
|
exports.TezosStaker = TezosStaker;
|
|
150287
150425
|
|
|
150288
|
-
},{"../TezosProtocolOptions":
|
|
150426
|
+
},{"../TezosProtocolOptions":642,"../TezosUtils":643,"./TezosFA1Protocol":654,"./TezosFAProtocolOptions":658}],663:[function(require,module,exports){
|
|
150289
150427
|
"use strict";
|
|
150290
150428
|
var __extends = (this && this.__extends) || (function () {
|
|
150291
150429
|
var extendStatics = function (d, b) {
|
|
@@ -150340,7 +150478,7 @@ var TezosUDEFIProtocolConfig = /** @class */ (function (_super) {
|
|
|
150340
150478
|
}(TezosFAProtocolOptions_1.TezosFA2ProtocolConfig));
|
|
150341
150479
|
exports.TezosUDEFIProtocolConfig = TezosUDEFIProtocolConfig;
|
|
150342
150480
|
|
|
150343
|
-
},{"../../../utils/ProtocolSymbols":779,"../TezosProtocolOptions":
|
|
150481
|
+
},{"../../../utils/ProtocolSymbols":779,"../TezosProtocolOptions":642,"./TezosFA2Protocol":656,"./TezosFAProtocolOptions":658}],664:[function(require,module,exports){
|
|
150344
150482
|
"use strict";
|
|
150345
150483
|
var __extends = (this && this.__extends) || (function () {
|
|
150346
150484
|
var extendStatics = function (d, b) {
|
|
@@ -150452,7 +150590,7 @@ var TezosUSD = /** @class */ (function (_super) {
|
|
|
150452
150590
|
}(TezosFA1p2Protocol_1.TezosFA1p2Protocol));
|
|
150453
150591
|
exports.TezosUSD = TezosUSD;
|
|
150454
150592
|
|
|
150455
|
-
},{"../TezosProtocolOptions":
|
|
150593
|
+
},{"../TezosProtocolOptions":642,"../TezosUtils":643,"./TezosFA1p2Protocol":655,"./TezosFAProtocolOptions":658}],665:[function(require,module,exports){
|
|
150456
150594
|
"use strict";
|
|
150457
150595
|
var __extends = (this && this.__extends) || (function () {
|
|
150458
150596
|
var extendStatics = function (d, b) {
|
|
@@ -150484,7 +150622,7 @@ var TezosUUSD = /** @class */ (function (_super) {
|
|
|
150484
150622
|
}(TezosFA2Protocol_1.TezosFA2Protocol));
|
|
150485
150623
|
exports.TezosUUSD = TezosUUSD;
|
|
150486
150624
|
|
|
150487
|
-
},{"../TezosProtocolOptions":
|
|
150625
|
+
},{"../TezosProtocolOptions":642,"./TezosFA2Protocol":656,"./TezosFAProtocolOptions":658}],666:[function(require,module,exports){
|
|
150488
150626
|
"use strict";
|
|
150489
150627
|
var __extends = (this && this.__extends) || (function () {
|
|
150490
150628
|
var extendStatics = function (d, b) {
|
|
@@ -150539,7 +150677,7 @@ var TezosWRAPProtocolConfig = /** @class */ (function (_super) {
|
|
|
150539
150677
|
}(TezosFAProtocolOptions_1.TezosFA2ProtocolConfig));
|
|
150540
150678
|
exports.TezosWRAPProtocolConfig = TezosWRAPProtocolConfig;
|
|
150541
150679
|
|
|
150542
|
-
},{"../../../utils/ProtocolSymbols":779,"../TezosProtocolOptions":
|
|
150680
|
+
},{"../../../utils/ProtocolSymbols":779,"../TezosProtocolOptions":642,"./TezosFA2Protocol":656,"./TezosFAProtocolOptions":658}],667:[function(require,module,exports){
|
|
150543
150681
|
"use strict";
|
|
150544
150682
|
var __extends = (this && this.__extends) || (function () {
|
|
150545
150683
|
var extendStatics = function (d, b) {
|
|
@@ -150649,7 +150787,7 @@ var TezosWrapped = /** @class */ (function (_super) {
|
|
|
150649
150787
|
}(TezosFA1p2Protocol_1.TezosFA1p2Protocol));
|
|
150650
150788
|
exports.TezosWrapped = TezosWrapped;
|
|
150651
150789
|
|
|
150652
|
-
},{"../TezosProtocolOptions":
|
|
150790
|
+
},{"../TezosProtocolOptions":642,"../TezosUtils":643,"./TezosFA1p2Protocol":655,"./TezosFAProtocolOptions":658}],668:[function(require,module,exports){
|
|
150653
150791
|
"use strict";
|
|
150654
150792
|
var __extends = (this && this.__extends) || (function () {
|
|
150655
150793
|
var extendStatics = function (d, b) {
|
|
@@ -150681,7 +150819,7 @@ var TezosYOU = /** @class */ (function (_super) {
|
|
|
150681
150819
|
}(TezosFA2Protocol_1.TezosFA2Protocol));
|
|
150682
150820
|
exports.TezosYOU = TezosYOU;
|
|
150683
150821
|
|
|
150684
|
-
},{"../TezosProtocolOptions":
|
|
150822
|
+
},{"../TezosProtocolOptions":642,"./TezosFA2Protocol":656,"./TezosFAProtocolOptions":658}],669:[function(require,module,exports){
|
|
150685
150823
|
"use strict";
|
|
150686
150824
|
var __extends = (this && this.__extends) || (function () {
|
|
150687
150825
|
var extendStatics = function (d, b) {
|
|
@@ -150754,7 +150892,7 @@ var TezosKtAddress = /** @class */ (function (_super) {
|
|
|
150754
150892
|
}(TezosAddress_1.TezosAddress));
|
|
150755
150893
|
exports.TezosKtAddress = TezosKtAddress;
|
|
150756
150894
|
|
|
150757
|
-
},{"../TezosAddress":
|
|
150895
|
+
},{"../TezosAddress":639}],670:[function(require,module,exports){
|
|
150758
150896
|
"use strict";
|
|
150759
150897
|
var __extends = (this && this.__extends) || (function () {
|
|
150760
150898
|
var extendStatics = function (d, b) {
|
|
@@ -151054,7 +151192,7 @@ var TezosKtProtocol = /** @class */ (function (_super) {
|
|
|
151054
151192
|
}(TezosProtocol_1.TezosProtocol));
|
|
151055
151193
|
exports.TezosKtProtocol = TezosKtProtocol;
|
|
151056
151194
|
|
|
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":
|
|
151195
|
+
},{"../../../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
151196
|
"use strict";
|
|
151059
151197
|
var __extends = (this && this.__extends) || (function () {
|
|
151060
151198
|
var extendStatics = function (d, b) {
|
|
@@ -151219,7 +151357,7 @@ var TezosRewardsCalculation005 = /** @class */ (function (_super) {
|
|
|
151219
151357
|
}(TezosRewardCalculationDefault_1.TezosRewardsCalculationDefault));
|
|
151220
151358
|
exports.TezosRewardsCalculation005 = TezosRewardsCalculation005;
|
|
151221
151359
|
|
|
151222
|
-
},{"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../../errors":478,"../../../errors/coinlib-error":477,"./TezosRewardCalculationDefault":
|
|
151360
|
+
},{"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../../errors":478,"../../../errors/coinlib-error":477,"./TezosRewardCalculationDefault":673}],672:[function(require,module,exports){
|
|
151223
151361
|
"use strict";
|
|
151224
151362
|
var __extends = (this && this.__extends) || (function () {
|
|
151225
151363
|
var extendStatics = function (d, b) {
|
|
@@ -151271,7 +151409,7 @@ var TezosRewardsCalculation006 = /** @class */ (function (_super) {
|
|
|
151271
151409
|
}(TezosRewardCalculation005_1.TezosRewardsCalculation005));
|
|
151272
151410
|
exports.TezosRewardsCalculation006 = TezosRewardsCalculation006;
|
|
151273
151411
|
|
|
151274
|
-
},{"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"./TezosRewardCalculation005":
|
|
151412
|
+
},{"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"./TezosRewardCalculation005":671}],673:[function(require,module,exports){
|
|
151275
151413
|
"use strict";
|
|
151276
151414
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
151277
151415
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -151914,7 +152052,7 @@ var TezosRewardsCalculationDefault = /** @class */ (function () {
|
|
|
151914
152052
|
}());
|
|
151915
152053
|
exports.TezosRewardsCalculationDefault = TezosRewardsCalculationDefault;
|
|
151916
152054
|
|
|
151917
|
-
},{"../../../dependencies/src/axios-0.19.0/index":222,"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../../errors":478,"../../../errors/coinlib-error":477}],
|
|
152055
|
+
},{"../../../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
152056
|
(function (Buffer){(function (){
|
|
151919
152057
|
"use strict";
|
|
151920
152058
|
var __extends = (this && this.__extends) || (function () {
|
|
@@ -152051,7 +152189,7 @@ var TezosSaplingAddress = /** @class */ (function (_super) {
|
|
|
152051
152189
|
exports.TezosSaplingAddress = TezosSaplingAddress;
|
|
152052
152190
|
|
|
152053
152191
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
152054
|
-
},{"../../../dependencies/src/bs58check-2.1.2/index":325,"../TezosAddress":
|
|
152192
|
+
},{"../../../dependencies/src/bs58check-2.1.2/index":325,"../TezosAddress":639,"../TezosUtils":643,"@airgap/sapling-wasm":809,"buffer":67}],675:[function(require,module,exports){
|
|
152055
152193
|
(function (Buffer){(function (){
|
|
152056
152194
|
"use strict";
|
|
152057
152195
|
var __extends = (this && this.__extends) || (function () {
|
|
@@ -152205,7 +152343,7 @@ var TezosSaplingCryptoClient = /** @class */ (function (_super) {
|
|
|
152205
152343
|
TezosSaplingCryptoClient.prototype.decryptCiphertextEnc = function (viewingKey, ciphertext, mode, commitment) {
|
|
152206
152344
|
if (mode === void 0) { mode = 'receiver'; }
|
|
152207
152345
|
return __awaiter(this, void 0, void 0, function () {
|
|
152208
|
-
var symKey, rawAddressFromDiversifier, ivk_1, _a, pkd_1, esk, decrypted, diversifier, amount, rcm,
|
|
152346
|
+
var symKey, rawAddressFromDiversifier, ivk_1, _a, pkd_1, esk, decrypted, diversifier, amount, rcm, memo;
|
|
152209
152347
|
var _b;
|
|
152210
152348
|
return __generator(this, function (_c) {
|
|
152211
152349
|
switch (_c.label) {
|
|
@@ -152237,8 +152375,7 @@ var TezosSaplingCryptoClient = /** @class */ (function (_super) {
|
|
|
152237
152375
|
diversifier = decrypted.slice(0, 11);
|
|
152238
152376
|
amount = new bignumber_1.default(decrypted.slice(11, 19).toString('hex'), 16);
|
|
152239
152377
|
rcm = decrypted.slice(19, 51);
|
|
152240
|
-
|
|
152241
|
-
memo = decrypted.slice(55, 55 + memoLength.toNumber());
|
|
152378
|
+
memo = decrypted.slice(51);
|
|
152242
152379
|
_b = {
|
|
152243
152380
|
diversifier: diversifier
|
|
152244
152381
|
};
|
|
@@ -152295,7 +152432,7 @@ var TezosSaplingCryptoClient = /** @class */ (function (_super) {
|
|
|
152295
152432
|
exports.TezosSaplingCryptoClient = TezosSaplingCryptoClient;
|
|
152296
152433
|
|
|
152297
152434
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
152298
|
-
},{"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../../utils/blake2b":783,"../../../utils/hex":788,"../../Ed25519CryptoClient":482,"./TezosSaplingAddress":
|
|
152435
|
+
},{"../../../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){
|
|
152299
152436
|
(function (Buffer){(function (){
|
|
152300
152437
|
"use strict";
|
|
152301
152438
|
var __extends = (this && this.__extends) || (function () {
|
|
@@ -152580,33 +152717,29 @@ var TezosSaplingProtocol = /** @class */ (function (_super) {
|
|
|
152580
152717
|
pageEnd += limit;
|
|
152581
152718
|
return [3 /*break*/, 2];
|
|
152582
152719
|
case 4: return [4 /*yield*/, Promise.all(incoming.map(function (input) { return __awaiter(_this, void 0, void 0, function () {
|
|
152583
|
-
var from;
|
|
152584
152720
|
return __generator(this, function (_a) {
|
|
152585
|
-
|
|
152586
|
-
|
|
152587
|
-
from: [from],
|
|
152721
|
+
return [2 /*return*/, ({
|
|
152722
|
+
from: ['Shielded Pool'],
|
|
152588
152723
|
to: [input.address],
|
|
152589
152724
|
isInbound: true,
|
|
152590
152725
|
amount: input.value,
|
|
152591
152726
|
fee: '0',
|
|
152592
152727
|
protocolIdentifier: this.identifier,
|
|
152593
152728
|
network: this.options.network
|
|
152594
|
-
}];
|
|
152729
|
+
})];
|
|
152595
152730
|
});
|
|
152596
152731
|
}); }))];
|
|
152597
152732
|
case 5:
|
|
152598
152733
|
airGapIncoming = _b.sent();
|
|
152599
152734
|
return [4 /*yield*/, Promise.all(outgoing.map(function (input) { return __awaiter(_this, void 0, void 0, function () {
|
|
152600
|
-
var to;
|
|
152601
152735
|
var _a;
|
|
152602
152736
|
return __generator(this, function (_b) {
|
|
152603
152737
|
switch (_b.label) {
|
|
152604
152738
|
case 0:
|
|
152605
|
-
to = input.memo.toString('utf-8').replace(/\0/g, '') === 'Burn' ? input.memo.toString('utf-8').replace(/\0/g, '') : input.address;
|
|
152606
152739
|
_a = {};
|
|
152607
152740
|
return [4 /*yield*/, this.getAddressFromPublicKey(publicKey)];
|
|
152608
152741
|
case 1: return [2 /*return*/, (_a.from = [(_b.sent()).getValue()],
|
|
152609
|
-
_a.to = [
|
|
152742
|
+
_a.to = [input.address],
|
|
152610
152743
|
_a.isInbound = false,
|
|
152611
152744
|
_a.amount = input.value,
|
|
152612
152745
|
_a.fee = '0',
|
|
@@ -152638,45 +152771,39 @@ var TezosSaplingProtocol = /** @class */ (function (_super) {
|
|
|
152638
152771
|
case 2:
|
|
152639
152772
|
forgedTransaction = _a.sent();
|
|
152640
152773
|
signed = this.encoder.encodeTransaction(forgedTransaction).toString('hex');
|
|
152641
|
-
return [2 /*return*/, transaction.callParameters
|
|
152642
|
-
? transaction.callParameters.replace(TezosSaplingProtocol.TRANSACTION_PLACEHOLDER, signed)
|
|
152643
|
-
: signed];
|
|
152774
|
+
return [2 /*return*/, transaction.callParameters.replace(TezosSaplingProtocol.TRANSACTION_PLACEHOLDER, signed)];
|
|
152644
152775
|
}
|
|
152645
152776
|
});
|
|
152646
152777
|
});
|
|
152647
152778
|
};
|
|
152648
152779
|
TezosSaplingProtocol.prototype.getTransactionDetails = function (transaction, data) {
|
|
152649
152780
|
return __awaiter(this, void 0, void 0, function () {
|
|
152650
|
-
var tx, airGapTxs, from,
|
|
152781
|
+
var tx, airGapTxs, from, parameters, wrappedTransactions, wrappedOperation, _a, _b, _c;
|
|
152651
152782
|
return __generator(this, function (_d) {
|
|
152652
152783
|
switch (_d.label) {
|
|
152653
152784
|
case 0:
|
|
152654
152785
|
tx = transaction.transaction;
|
|
152655
152786
|
airGapTxs = [];
|
|
152656
|
-
if (!this.isRawTezosSaplingTransaction(tx)) return [3 /*break*/,
|
|
152787
|
+
if (!this.isRawTezosSaplingTransaction(tx)) return [3 /*break*/, 3];
|
|
152657
152788
|
return [4 /*yield*/, this.getAddressFromPublicKey(transaction.publicKey)];
|
|
152658
152789
|
case 1:
|
|
152659
152790
|
from = _d.sent();
|
|
152660
|
-
wrappedTransactions = [];
|
|
152661
|
-
if (!tx.callParameters) return [3 /*break*/, 3];
|
|
152662
152791
|
parameters = this.contract.parseParameters(tx.callParameters);
|
|
152663
152792
|
return [4 /*yield*/, this.parseParameters(parameters)];
|
|
152664
152793
|
case 2:
|
|
152665
152794
|
wrappedTransactions = _d.sent();
|
|
152666
|
-
_d.label = 3;
|
|
152667
|
-
case 3:
|
|
152668
152795
|
airGapTxs.push.apply(airGapTxs, this.bookkeeper.getUnsignedTransactionDetails(from, tx.ins, tx.outs, wrappedTransactions));
|
|
152669
|
-
return [3 /*break*/,
|
|
152670
|
-
case
|
|
152671
|
-
case
|
|
152796
|
+
return [3 /*break*/, 6];
|
|
152797
|
+
case 3: return [4 /*yield*/, this.tezosProtocol.unforgeUnsignedTezosWrappedOperation(tx.binaryTransaction)];
|
|
152798
|
+
case 4:
|
|
152672
152799
|
wrappedOperation = _d.sent();
|
|
152673
152800
|
_b = (_a = airGapTxs.push).apply;
|
|
152674
152801
|
_c = [airGapTxs];
|
|
152675
152802
|
return [4 /*yield*/, this.getTransactionDetailsFromWrappedOperation(wrappedOperation, data === null || data === void 0 ? void 0 : data.knownViewingKeys)];
|
|
152676
|
-
case
|
|
152803
|
+
case 5:
|
|
152677
152804
|
_b.apply(_a, _c.concat([(_d.sent())]));
|
|
152678
|
-
_d.label =
|
|
152679
|
-
case
|
|
152805
|
+
_d.label = 6;
|
|
152806
|
+
case 6: return [2 /*return*/, this.filterOutPaybacks(airGapTxs)];
|
|
152680
152807
|
}
|
|
152681
152808
|
});
|
|
152682
152809
|
});
|
|
@@ -152866,12 +152993,34 @@ var TezosSaplingProtocol = /** @class */ (function (_super) {
|
|
|
152866
152993
|
};
|
|
152867
152994
|
TezosSaplingProtocol.prototype.prepareShieldTransaction = function (publicKey, recipient, value, fee, data) {
|
|
152868
152995
|
return __awaiter(this, void 0, void 0, function () {
|
|
152869
|
-
var encodedTransaction, wrappedTransaction;
|
|
152870
|
-
|
|
152871
|
-
|
|
152872
|
-
|
|
152996
|
+
var _a, saplingStateDiff, chainId, output, stateTree, forgedTransaction, encodedTransaction, wrappedTransaction;
|
|
152997
|
+
var _b;
|
|
152998
|
+
return __generator(this, function (_c) {
|
|
152999
|
+
switch (_c.label) {
|
|
153000
|
+
case 0:
|
|
153001
|
+
if (!TezosSaplingAddress_1.TezosSaplingAddress.isZetAddress(recipient)) {
|
|
153002
|
+
return [2 /*return*/, Promise.reject("Invalid recipient, expected a 'zet' address, got " + recipient)];
|
|
153003
|
+
}
|
|
153004
|
+
return [4 /*yield*/, Promise.all([
|
|
153005
|
+
this.nodeClient.getSaplingStateDiff(),
|
|
153006
|
+
this.nodeClient.getChainId()
|
|
153007
|
+
])];
|
|
152873
153008
|
case 1:
|
|
152874
|
-
|
|
153009
|
+
_a = _c.sent(), saplingStateDiff = _a[0], chainId = _a[1];
|
|
153010
|
+
_b = {};
|
|
153011
|
+
return [4 /*yield*/, TezosSaplingAddress_1.TezosSaplingAddress.fromValue(recipient)];
|
|
153012
|
+
case 2:
|
|
153013
|
+
output = (_b.address = (_c.sent()).getValue(),
|
|
153014
|
+
_b.value = value,
|
|
153015
|
+
_b.memo = Buffer.alloc(this.options.config.memoSize).toString('hex'),
|
|
153016
|
+
_b);
|
|
153017
|
+
return [4 /*yield*/, this.state.getStateTreeFromStateDiff(saplingStateDiff, true)];
|
|
153018
|
+
case 3:
|
|
153019
|
+
stateTree = _c.sent();
|
|
153020
|
+
return [4 /*yield*/, this.forger.forgeSaplingTransaction([], [output], stateTree, this.getAntiReplay(chainId))];
|
|
153021
|
+
case 4:
|
|
153022
|
+
forgedTransaction = _c.sent();
|
|
153023
|
+
encodedTransaction = this.encoder.encodeTransaction(forgedTransaction).toString('hex');
|
|
152875
153024
|
wrappedTransaction = { signed: encodedTransaction };
|
|
152876
153025
|
return [2 /*return*/, this.wrapSaplingTransactions(publicKey, [wrappedTransaction], fee, data === null || data === void 0 ? void 0 : data.overrideFees)];
|
|
152877
153026
|
}
|
|
@@ -152880,20 +153029,40 @@ var TezosSaplingProtocol = /** @class */ (function (_super) {
|
|
|
152880
153029
|
};
|
|
152881
153030
|
TezosSaplingProtocol.prototype.prepareUnshieldTransaction = function (viewingKey, recipient, value, data) {
|
|
152882
153031
|
return __awaiter(this, void 0, void 0, function () {
|
|
152883
|
-
var
|
|
152884
|
-
|
|
152885
|
-
|
|
153032
|
+
var _a, stateDiff, chainId, _b, inputs, toSpend, paybackOutput, contractCall;
|
|
153033
|
+
var _c;
|
|
153034
|
+
return __generator(this, function (_d) {
|
|
153035
|
+
switch (_d.label) {
|
|
152886
153036
|
case 0:
|
|
152887
153037
|
if (!TezosAddress_1.TezosAddress.isTzAddress(recipient)) {
|
|
152888
153038
|
return [2 /*return*/, Promise.reject("Invalid recpient, expected a 'tz' address, got " + recipient)];
|
|
152889
153039
|
}
|
|
152890
|
-
return [4 /*yield*/,
|
|
153040
|
+
return [4 /*yield*/, Promise.all([
|
|
153041
|
+
this.nodeClient.getSaplingStateDiff(),
|
|
153042
|
+
this.nodeClient.getChainId()
|
|
153043
|
+
])];
|
|
152891
153044
|
case 1:
|
|
152892
|
-
|
|
152893
|
-
return [4 /*yield*/, this.
|
|
153045
|
+
_a = _d.sent(), stateDiff = _a[0], chainId = _a[1];
|
|
153046
|
+
return [4 /*yield*/, this.chooseInputs(viewingKey, stateDiff.commitments_and_ciphertexts, stateDiff.nullifiers, value)];
|
|
152894
153047
|
case 2:
|
|
152895
|
-
|
|
152896
|
-
|
|
153048
|
+
_b = _d.sent(), inputs = _b[0], toSpend = _b[1];
|
|
153049
|
+
_c = {};
|
|
153050
|
+
return [4 /*yield*/, this.getAddressFromPublicKey(viewingKey)];
|
|
153051
|
+
case 3:
|
|
153052
|
+
paybackOutput = (_c.address = (_d.sent()).getValue(),
|
|
153053
|
+
_c.value = toSpend.minus(value).toString(),
|
|
153054
|
+
_c.memo = Buffer.alloc(this.options.config.memoSize).toString('hex'),
|
|
153055
|
+
_c);
|
|
153056
|
+
return [4 /*yield*/, this.preparePartialContractCall(recipient)];
|
|
153057
|
+
case 4:
|
|
153058
|
+
contractCall = _d.sent();
|
|
153059
|
+
return [2 /*return*/, {
|
|
153060
|
+
ins: inputs,
|
|
153061
|
+
outs: [paybackOutput],
|
|
153062
|
+
chainId: chainId,
|
|
153063
|
+
stateDiff: stateDiff,
|
|
153064
|
+
callParameters: JSON.stringify(contractCall.toJSON())
|
|
153065
|
+
}];
|
|
152897
153066
|
}
|
|
152898
153067
|
});
|
|
152899
153068
|
});
|
|
@@ -152950,74 +153119,7 @@ var TezosSaplingProtocol = /** @class */ (function (_super) {
|
|
|
152950
153119
|
outs: __spreadArrays([paymentOutput, paybackOutput], dummyOutputs),
|
|
152951
153120
|
chainId: chainId,
|
|
152952
153121
|
stateDiff: stateDiff,
|
|
152953
|
-
callParameters:
|
|
152954
|
-
}];
|
|
152955
|
-
}
|
|
152956
|
-
});
|
|
152957
|
-
});
|
|
152958
|
-
};
|
|
152959
|
-
TezosSaplingProtocol.prototype.mint = function (recipient, value) {
|
|
152960
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
152961
|
-
var _a, saplingStateDiff, chainId, output, stateTree, forgedTransaction;
|
|
152962
|
-
var _b;
|
|
152963
|
-
return __generator(this, function (_c) {
|
|
152964
|
-
switch (_c.label) {
|
|
152965
|
-
case 0:
|
|
152966
|
-
if (!TezosSaplingAddress_1.TezosSaplingAddress.isZetAddress(recipient)) {
|
|
152967
|
-
return [2 /*return*/, Promise.reject("Invalid recipient, expected a 'zet' address, got " + recipient)];
|
|
152968
|
-
}
|
|
152969
|
-
return [4 /*yield*/, Promise.all([
|
|
152970
|
-
this.nodeClient.getSaplingStateDiff(),
|
|
152971
|
-
this.nodeClient.getChainId()
|
|
152972
|
-
])];
|
|
152973
|
-
case 1:
|
|
152974
|
-
_a = _c.sent(), saplingStateDiff = _a[0], chainId = _a[1];
|
|
152975
|
-
_b = {};
|
|
152976
|
-
return [4 /*yield*/, TezosSaplingAddress_1.TezosSaplingAddress.fromValue(recipient)];
|
|
152977
|
-
case 2:
|
|
152978
|
-
output = (_b.address = (_c.sent()).getValue(),
|
|
152979
|
-
_b.value = value,
|
|
152980
|
-
_b.memo = Buffer.alloc(this.options.config.memoSize).toString('hex'),
|
|
152981
|
-
_b);
|
|
152982
|
-
return [4 /*yield*/, this.state.getStateTreeFromStateDiff(saplingStateDiff, true)];
|
|
152983
|
-
case 3:
|
|
152984
|
-
stateTree = _c.sent();
|
|
152985
|
-
return [4 /*yield*/, this.forger.forgeSaplingTransaction([], [output], stateTree, this.getAntiReplay(chainId))];
|
|
152986
|
-
case 4:
|
|
152987
|
-
forgedTransaction = _c.sent();
|
|
152988
|
-
return [2 /*return*/, this.encoder.encodeTransaction(forgedTransaction).toString('hex')];
|
|
152989
|
-
}
|
|
152990
|
-
});
|
|
152991
|
-
});
|
|
152992
|
-
};
|
|
152993
|
-
TezosSaplingProtocol.prototype.burn = function (viewingKey, value) {
|
|
152994
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
152995
|
-
var _a, stateDiff, chainId, _b, inputs, toSpend, paybackOutput;
|
|
152996
|
-
var _c;
|
|
152997
|
-
return __generator(this, function (_d) {
|
|
152998
|
-
switch (_d.label) {
|
|
152999
|
-
case 0: return [4 /*yield*/, Promise.all([
|
|
153000
|
-
this.nodeClient.getSaplingStateDiff(),
|
|
153001
|
-
this.nodeClient.getChainId()
|
|
153002
|
-
])];
|
|
153003
|
-
case 1:
|
|
153004
|
-
_a = _d.sent(), stateDiff = _a[0], chainId = _a[1];
|
|
153005
|
-
return [4 /*yield*/, this.chooseInputs(viewingKey, stateDiff.commitments_and_ciphertexts, stateDiff.nullifiers, value)];
|
|
153006
|
-
case 2:
|
|
153007
|
-
_b = _d.sent(), inputs = _b[0], toSpend = _b[1];
|
|
153008
|
-
_c = {};
|
|
153009
|
-
return [4 /*yield*/, this.getAddressFromPublicKey(viewingKey)];
|
|
153010
|
-
case 3:
|
|
153011
|
-
paybackOutput = (_c.address = (_d.sent()).getValue(),
|
|
153012
|
-
_c.value = toSpend.minus(value).toString(),
|
|
153013
|
-
_c.memo = Buffer.alloc(this.options.config.memoSize).toString('hex'),
|
|
153014
|
-
_c);
|
|
153015
|
-
return [2 /*return*/, {
|
|
153016
|
-
ins: inputs,
|
|
153017
|
-
outs: [paybackOutput],
|
|
153018
|
-
chainId: chainId,
|
|
153019
|
-
stateDiff: stateDiff,
|
|
153020
|
-
callParameters: ''
|
|
153122
|
+
callParameters: JSON.stringify(contractCall.toJSON())
|
|
153021
153123
|
}];
|
|
153022
153124
|
}
|
|
153023
153125
|
});
|
|
@@ -153234,7 +153336,8 @@ var TezosSaplingProtocol = /** @class */ (function (_super) {
|
|
|
153234
153336
|
'ins' in transaction &&
|
|
153235
153337
|
'outs' in transaction &&
|
|
153236
153338
|
'chainId' in transaction &&
|
|
153237
|
-
'stateDiff' in transaction
|
|
153339
|
+
'stateDiff' in transaction &&
|
|
153340
|
+
'callParameters' in transaction);
|
|
153238
153341
|
};
|
|
153239
153342
|
TezosSaplingProtocol.TRANSACTION_PLACEHOLDER = 'TRANSACTION_PLACEHOLDER';
|
|
153240
153343
|
return TezosSaplingProtocol;
|
|
@@ -153242,7 +153345,7 @@ var TezosSaplingProtocol = /** @class */ (function (_super) {
|
|
|
153242
153345
|
exports.TezosSaplingProtocol = TezosSaplingProtocol;
|
|
153243
153346
|
|
|
153244
153347
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
153245
|
-
},{"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../../dependencies/src/bip39-2.5.0":261,"../../../utils/array":780,"../../NonExtendedProtocol":484,"../TezosAddress":
|
|
153348
|
+
},{"../../../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){
|
|
153246
153349
|
"use strict";
|
|
153247
153350
|
var __extends = (this && this.__extends) || (function () {
|
|
153248
153351
|
var extendStatics = function (d, b) {
|
|
@@ -153258,11 +153361,11 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
153258
153361
|
};
|
|
153259
153362
|
})();
|
|
153260
153363
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
153261
|
-
exports.
|
|
153364
|
+
exports.TezosSaplingProtocolOptions = exports.TezosShieldedTezProtocolConfig = exports.TezosSaplingProtocolConfig = void 0;
|
|
153262
153365
|
var ProtocolNetwork_1 = require("../../../utils/ProtocolNetwork");
|
|
153263
153366
|
var ProtocolSymbols_1 = require("../../../utils/ProtocolSymbols");
|
|
153264
153367
|
var TezosProtocolOptions_1 = require("../TezosProtocolOptions");
|
|
153265
|
-
var NODE_URL = 'https://tezos-
|
|
153368
|
+
var NODE_URL = 'https://tezos-mainnet-node.prod.gke.papers.tech';
|
|
153266
153369
|
var TezosSaplingProtocolConfig = /** @class */ (function (_super) {
|
|
153267
153370
|
__extends(TezosSaplingProtocolConfig, _super);
|
|
153268
153371
|
function TezosSaplingProtocolConfig(name, identifier, contractAddress, memoSize, merkleTreeHeight, symbol, marketSymbol, feeDefaults, decimals, units, externalProvider) {
|
|
@@ -153289,41 +153392,24 @@ var TezosShieldedTezProtocolConfig = /** @class */ (function (_super) {
|
|
|
153289
153392
|
function TezosShieldedTezProtocolConfig(name, identifier, contractAddress, externalProvider, memoSize, merkleTreeHeight) {
|
|
153290
153393
|
if (name === void 0) { name = 'Shielded Tez'; }
|
|
153291
153394
|
if (identifier === void 0) { identifier = ProtocolSymbols_1.MainProtocolSymbols.XTZ_SHIELDED; }
|
|
153292
|
-
if (contractAddress === void 0) { contractAddress = '
|
|
153395
|
+
if (contractAddress === void 0) { contractAddress = 'KT1BUZy6xNbmo5ogfD7nDRMBspfG1EEFfDFW'; }
|
|
153293
153396
|
if (memoSize === void 0) { memoSize = 8; }
|
|
153294
153397
|
if (merkleTreeHeight === void 0) { merkleTreeHeight = 32; }
|
|
153295
|
-
|
|
153398
|
+
var _this = _super.call(this, name, identifier, contractAddress, memoSize, merkleTreeHeight, undefined, undefined, undefined, undefined, undefined, externalProvider) || this;
|
|
153399
|
+
_this.name = name;
|
|
153400
|
+
_this.identifier = identifier;
|
|
153401
|
+
_this.contractAddress = contractAddress;
|
|
153402
|
+
_this.externalProvider = externalProvider;
|
|
153403
|
+
_this.memoSize = memoSize;
|
|
153404
|
+
_this.merkleTreeHeight = merkleTreeHeight;
|
|
153405
|
+
return _this;
|
|
153296
153406
|
}
|
|
153297
153407
|
return TezosShieldedTezProtocolConfig;
|
|
153298
153408
|
}(TezosSaplingProtocolConfig));
|
|
153299
153409
|
exports.TezosShieldedTezProtocolConfig = TezosShieldedTezProtocolConfig;
|
|
153300
|
-
var TezosSaplingTokenProtocolConfig = /** @class */ (function (_super) {
|
|
153301
|
-
__extends(TezosSaplingTokenProtocolConfig, _super);
|
|
153302
|
-
function TezosSaplingTokenProtocolConfig(name, identifier, contractAddress, injectorUrl, memoSize, merkleTreeHeight, symbol, marketSymbol, feeDefaults, decimals, externalProvider) {
|
|
153303
|
-
if (name === void 0) { name = 'Sapling Token'; }
|
|
153304
|
-
if (identifier === void 0) { identifier = ProtocolSymbols_1.MainProtocolSymbols.XTZ_ST; }
|
|
153305
|
-
if (contractAddress === void 0) { contractAddress = 'KT1CsWRRG26b8drKvRzuP2QKDtMmZ2r3PuPQ'; }
|
|
153306
|
-
if (injectorUrl === void 0) { injectorUrl = 'https://sapling.nomadic-labs.com'; }
|
|
153307
|
-
if (memoSize === void 0) { memoSize = 8; }
|
|
153308
|
-
if (merkleTreeHeight === void 0) { merkleTreeHeight = 32; }
|
|
153309
|
-
if (symbol === void 0) { symbol = 'ST'; }
|
|
153310
|
-
if (marketSymbol === void 0) { marketSymbol = 'st'; }
|
|
153311
|
-
if (feeDefaults === void 0) { feeDefaults = {
|
|
153312
|
-
low: '0',
|
|
153313
|
-
medium: '0',
|
|
153314
|
-
high: '0'
|
|
153315
|
-
}; }
|
|
153316
|
-
if (decimals === void 0) { decimals = 6; }
|
|
153317
|
-
var _this = _super.call(this, name, identifier, contractAddress, memoSize, merkleTreeHeight, symbol, marketSymbol, feeDefaults, decimals, undefined, externalProvider) || this;
|
|
153318
|
-
_this.injectorUrl = injectorUrl;
|
|
153319
|
-
return _this;
|
|
153320
|
-
}
|
|
153321
|
-
return TezosSaplingTokenProtocolConfig;
|
|
153322
|
-
}(TezosSaplingProtocolConfig));
|
|
153323
|
-
exports.TezosSaplingTokenProtocolConfig = TezosSaplingTokenProtocolConfig;
|
|
153324
153410
|
var TezosSaplingProtocolOptions = /** @class */ (function () {
|
|
153325
153411
|
function TezosSaplingProtocolOptions(network, config) {
|
|
153326
|
-
if (network === void 0) { network = new TezosProtocolOptions_1.TezosProtocolNetwork('
|
|
153412
|
+
if (network === void 0) { network = new TezosProtocolOptions_1.TezosProtocolNetwork('Mainnet', ProtocolNetwork_1.NetworkType.MAINNET, NODE_URL); }
|
|
153327
153413
|
if (config === void 0) { config = new TezosShieldedTezProtocolConfig(); }
|
|
153328
153414
|
this.network = network;
|
|
153329
153415
|
this.config = config;
|
|
@@ -153331,294 +153417,8 @@ var TezosSaplingProtocolOptions = /** @class */ (function () {
|
|
|
153331
153417
|
return TezosSaplingProtocolOptions;
|
|
153332
153418
|
}());
|
|
153333
153419
|
exports.TezosSaplingProtocolOptions = TezosSaplingProtocolOptions;
|
|
153334
|
-
var TezosSaplingTokenProtocolOptions = /** @class */ (function (_super) {
|
|
153335
|
-
__extends(TezosSaplingTokenProtocolOptions, _super);
|
|
153336
|
-
function TezosSaplingTokenProtocolOptions(network, config) {
|
|
153337
|
-
if (network === void 0) { network = new TezosProtocolOptions_1.TezosProtocolNetwork('Hangzhounet', ProtocolNetwork_1.NetworkType.TESTNET, NODE_URL); }
|
|
153338
|
-
if (config === void 0) { config = new TezosSaplingTokenProtocolConfig(); }
|
|
153339
|
-
var _this = _super.call(this, network, config) || this;
|
|
153340
|
-
_this.network = network;
|
|
153341
|
-
_this.config = config;
|
|
153342
|
-
return _this;
|
|
153343
|
-
}
|
|
153344
|
-
return TezosSaplingTokenProtocolOptions;
|
|
153345
|
-
}(TezosSaplingProtocolOptions));
|
|
153346
|
-
exports.TezosSaplingTokenProtocolOptions = TezosSaplingTokenProtocolOptions;
|
|
153347
153420
|
|
|
153348
|
-
},{"../../../utils/ProtocolNetwork":778,"../../../utils/ProtocolSymbols":779,"../TezosProtocolOptions":
|
|
153349
|
-
(function (Buffer){(function (){
|
|
153350
|
-
"use strict";
|
|
153351
|
-
var __extends = (this && this.__extends) || (function () {
|
|
153352
|
-
var extendStatics = function (d, b) {
|
|
153353
|
-
extendStatics = Object.setPrototypeOf ||
|
|
153354
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
153355
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
153356
|
-
return extendStatics(d, b);
|
|
153357
|
-
};
|
|
153358
|
-
return function (d, b) {
|
|
153359
|
-
extendStatics(d, b);
|
|
153360
|
-
function __() { this.constructor = d; }
|
|
153361
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
153362
|
-
};
|
|
153363
|
-
})();
|
|
153364
|
-
var __assign = (this && this.__assign) || function () {
|
|
153365
|
-
__assign = Object.assign || function(t) {
|
|
153366
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
153367
|
-
s = arguments[i];
|
|
153368
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
153369
|
-
t[p] = s[p];
|
|
153370
|
-
}
|
|
153371
|
-
return t;
|
|
153372
|
-
};
|
|
153373
|
-
return __assign.apply(this, arguments);
|
|
153374
|
-
};
|
|
153375
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
153376
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
153377
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
153378
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
153379
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
153380
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
153381
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
153382
|
-
});
|
|
153383
|
-
};
|
|
153384
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
153385
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
153386
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
153387
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
153388
|
-
function step(op) {
|
|
153389
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
153390
|
-
while (_) try {
|
|
153391
|
-
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;
|
|
153392
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
153393
|
-
switch (op[0]) {
|
|
153394
|
-
case 0: case 1: t = op; break;
|
|
153395
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
153396
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
153397
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
153398
|
-
default:
|
|
153399
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
153400
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
153401
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
153402
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
153403
|
-
if (t[2]) _.ops.pop();
|
|
153404
|
-
_.trys.pop(); continue;
|
|
153405
|
-
}
|
|
153406
|
-
op = body.call(thisArg, _);
|
|
153407
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
153408
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
153409
|
-
}
|
|
153410
|
-
};
|
|
153411
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
153412
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
153413
|
-
};
|
|
153414
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
153415
|
-
exports.TezosSaplingTokenProtocol = void 0;
|
|
153416
|
-
var index_1 = __importDefault(require("../../../dependencies/src/axios-0.19.0/index"));
|
|
153417
|
-
var errors_1 = require("../../../errors");
|
|
153418
|
-
var coinlib_error_1 = require("../../../errors/coinlib-error");
|
|
153419
|
-
var padStart_1 = require("../../../utils/padStart");
|
|
153420
|
-
var MichelsonList_1 = require("../types/michelson/generics/MichelsonList");
|
|
153421
|
-
var MichelsonPair_1 = require("../types/michelson/generics/MichelsonPair");
|
|
153422
|
-
var MichelsonBytes_1 = require("../types/michelson/primitives/MichelsonBytes");
|
|
153423
|
-
var MichelsonString_1 = require("../types/michelson/primitives/MichelsonString");
|
|
153424
|
-
var TezosSaplingAddress_1 = require("./TezosSaplingAddress");
|
|
153425
|
-
var TezosSaplingProtocol_1 = require("./TezosSaplingProtocol");
|
|
153426
|
-
var TezosSaplingProtocolOptions_1 = require("./TezosSaplingProtocolOptions");
|
|
153427
|
-
var TezosSaplingTokenProtocol = /** @class */ (function (_super) {
|
|
153428
|
-
__extends(TezosSaplingTokenProtocol, _super);
|
|
153429
|
-
function TezosSaplingTokenProtocol(options) {
|
|
153430
|
-
if (options === void 0) { options = new TezosSaplingProtocolOptions_1.TezosSaplingTokenProtocolOptions(); }
|
|
153431
|
-
var _this = _super.call(this, options) || this;
|
|
153432
|
-
_this.options = options;
|
|
153433
|
-
return _this;
|
|
153434
|
-
}
|
|
153435
|
-
TezosSaplingTokenProtocol.prototype.prepareContractCalls = function (_transactions) {
|
|
153436
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
153437
|
-
return __generator(this, function (_a) {
|
|
153438
|
-
return [2 /*return*/, []];
|
|
153439
|
-
});
|
|
153440
|
-
});
|
|
153441
|
-
};
|
|
153442
|
-
TezosSaplingTokenProtocol.prototype.parseParameters = function (parameters) {
|
|
153443
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
153444
|
-
var callArgumentsList;
|
|
153445
|
-
var _this = this;
|
|
153446
|
-
return __generator(this, function (_a) {
|
|
153447
|
-
if (parameters.entrypoint === 'default') {
|
|
153448
|
-
try {
|
|
153449
|
-
callArgumentsList = MichelsonList_1.MichelsonList.from(parameters.value, function (pairJSON) {
|
|
153450
|
-
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'); });
|
|
153451
|
-
}).asRawValue();
|
|
153452
|
-
return [2 /*return*/, Array.isArray(callArgumentsList)
|
|
153453
|
-
? Promise.all(callArgumentsList.map(function (args) { return __awaiter(_this, void 0, void 0, function () {
|
|
153454
|
-
return __generator(this, function (_a) {
|
|
153455
|
-
return [2 /*return*/, ({
|
|
153456
|
-
signed: args.data,
|
|
153457
|
-
unshieldTarget: undefined
|
|
153458
|
-
})];
|
|
153459
|
-
});
|
|
153460
|
-
}); }))
|
|
153461
|
-
: []];
|
|
153462
|
-
}
|
|
153463
|
-
catch (error) {
|
|
153464
|
-
console.error(error);
|
|
153465
|
-
return [2 /*return*/, []];
|
|
153466
|
-
}
|
|
153467
|
-
}
|
|
153468
|
-
return [2 /*return*/, []];
|
|
153469
|
-
});
|
|
153470
|
-
});
|
|
153471
|
-
};
|
|
153472
|
-
TezosSaplingTokenProtocol.prototype.getTransactionDetails = function (transaction, data) {
|
|
153473
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
153474
|
-
var tx, from, wrappedTransactions, parameters;
|
|
153475
|
-
return __generator(this, function (_a) {
|
|
153476
|
-
switch (_a.label) {
|
|
153477
|
-
case 0:
|
|
153478
|
-
tx = transaction.transaction;
|
|
153479
|
-
return [4 /*yield*/, this.getAddressFromPublicKey(transaction.publicKey)];
|
|
153480
|
-
case 1:
|
|
153481
|
-
from = _a.sent();
|
|
153482
|
-
wrappedTransactions = [];
|
|
153483
|
-
if (!tx.callParameters) return [3 /*break*/, 3];
|
|
153484
|
-
parameters = this.contract.parseParameters(tx.callParameters);
|
|
153485
|
-
return [4 /*yield*/, this.parseParameters(parameters)];
|
|
153486
|
-
case 2:
|
|
153487
|
-
wrappedTransactions = _a.sent();
|
|
153488
|
-
_a.label = 3;
|
|
153489
|
-
case 3: return [2 /*return*/, this.filterOutPaybacks(this.bookkeeper.getUnsignedTransactionDetails(from, tx.ins, tx.outs, wrappedTransactions))];
|
|
153490
|
-
}
|
|
153491
|
-
});
|
|
153492
|
-
});
|
|
153493
|
-
};
|
|
153494
|
-
TezosSaplingTokenProtocol.prototype.getTransactionDetailsFromSigned = function (transaction, data) {
|
|
153495
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
153496
|
-
var partialDetails, _a, _b, _c, _d, _e, _f;
|
|
153497
|
-
var _this = this;
|
|
153498
|
-
return __generator(this, function (_g) {
|
|
153499
|
-
switch (_g.label) {
|
|
153500
|
-
case 0:
|
|
153501
|
-
partialDetails = [];
|
|
153502
|
-
if (!this.contract.areValidParameters(transaction.transaction)) return [3 /*break*/, 2];
|
|
153503
|
-
_b = (_a = partialDetails.push).apply;
|
|
153504
|
-
_c = [partialDetails];
|
|
153505
|
-
return [4 /*yield*/, this.getPartialDetailsFromContractParameters(transaction.transaction, data === null || data === void 0 ? void 0 : data.knownViewingKeys)];
|
|
153506
|
-
case 1:
|
|
153507
|
-
_b.apply(_a, _c.concat([(_g.sent())]));
|
|
153508
|
-
return [3 /*break*/, 4];
|
|
153509
|
-
case 2:
|
|
153510
|
-
_e = (_d = partialDetails.push).apply;
|
|
153511
|
-
_f = [partialDetails];
|
|
153512
|
-
return [4 /*yield*/, this.bookkeeper.getWrappedTransactionsPartialDetails([{ signed: transaction.transaction }], data === null || data === void 0 ? void 0 : data.knownViewingKeys)];
|
|
153513
|
-
case 3:
|
|
153514
|
-
_e.apply(_d, _f.concat([(_g.sent())]));
|
|
153515
|
-
_g.label = 4;
|
|
153516
|
-
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)); }))];
|
|
153517
|
-
}
|
|
153518
|
-
});
|
|
153519
|
-
});
|
|
153520
|
-
};
|
|
153521
|
-
TezosSaplingTokenProtocol.prototype.mint = function (recipient, value) {
|
|
153522
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
153523
|
-
var _a, saplingStateDiff, chainId, output, stateTree, forgedTransaction;
|
|
153524
|
-
var _b;
|
|
153525
|
-
return __generator(this, function (_c) {
|
|
153526
|
-
switch (_c.label) {
|
|
153527
|
-
case 0:
|
|
153528
|
-
if (!TezosSaplingAddress_1.TezosSaplingAddress.isZetAddress(recipient)) {
|
|
153529
|
-
return [2 /*return*/, Promise.reject("Invalid recipient, expected a 'zet' address, got " + recipient)];
|
|
153530
|
-
}
|
|
153531
|
-
return [4 /*yield*/, Promise.all([
|
|
153532
|
-
this.nodeClient.getSaplingStateDiff(),
|
|
153533
|
-
this.nodeClient.getChainId()
|
|
153534
|
-
])];
|
|
153535
|
-
case 1:
|
|
153536
|
-
_a = _c.sent(), saplingStateDiff = _a[0], chainId = _a[1];
|
|
153537
|
-
_b = {};
|
|
153538
|
-
return [4 /*yield*/, TezosSaplingAddress_1.TezosSaplingAddress.fromValue(recipient)];
|
|
153539
|
-
case 2:
|
|
153540
|
-
output = (_b.address = (_c.sent()).getValue(),
|
|
153541
|
-
_b.value = value,
|
|
153542
|
-
_b.memo = padStart_1.padStart(Buffer.from("Mint", 'utf-8').toString('hex'), 16, '0'),
|
|
153543
|
-
_b);
|
|
153544
|
-
return [4 /*yield*/, this.state.getStateTreeFromStateDiff(saplingStateDiff, true)];
|
|
153545
|
-
case 3:
|
|
153546
|
-
stateTree = _c.sent();
|
|
153547
|
-
return [4 /*yield*/, this.forger.forgeSaplingTransaction([], [output], stateTree, this.getAntiReplay(chainId))];
|
|
153548
|
-
case 4:
|
|
153549
|
-
forgedTransaction = _c.sent();
|
|
153550
|
-
return [2 /*return*/, this.encoder.encodeTransaction(forgedTransaction).toString('hex')];
|
|
153551
|
-
}
|
|
153552
|
-
});
|
|
153553
|
-
});
|
|
153554
|
-
};
|
|
153555
|
-
TezosSaplingTokenProtocol.prototype.burn = function (viewingKey, value) {
|
|
153556
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
153557
|
-
var _a, stateDiff, chainId, _b, inputs, toSpend, dummyOutput, paybackOutput;
|
|
153558
|
-
var _c, _d;
|
|
153559
|
-
return __generator(this, function (_e) {
|
|
153560
|
-
switch (_e.label) {
|
|
153561
|
-
case 0: return [4 /*yield*/, Promise.all([
|
|
153562
|
-
this.nodeClient.getSaplingStateDiff(),
|
|
153563
|
-
this.nodeClient.getChainId()
|
|
153564
|
-
])];
|
|
153565
|
-
case 1:
|
|
153566
|
-
_a = _e.sent(), stateDiff = _a[0], chainId = _a[1];
|
|
153567
|
-
return [4 /*yield*/, this.chooseInputs(viewingKey, stateDiff.commitments_and_ciphertexts, stateDiff.nullifiers, value)];
|
|
153568
|
-
case 2:
|
|
153569
|
-
_b = _e.sent(), inputs = _b[0], toSpend = _b[1];
|
|
153570
|
-
_c = {};
|
|
153571
|
-
return [4 /*yield*/, this.getDummyAddress()];
|
|
153572
|
-
case 3:
|
|
153573
|
-
dummyOutput = (_c.address = (_e.sent()).getValue(),
|
|
153574
|
-
_c.value = value,
|
|
153575
|
-
_c.memo = padStart_1.padStart(Buffer.from("Burn", 'utf-8').toString('hex'), 16, '0'),
|
|
153576
|
-
_c);
|
|
153577
|
-
_d = {};
|
|
153578
|
-
return [4 /*yield*/, this.getAddressFromPublicKey(viewingKey)];
|
|
153579
|
-
case 4:
|
|
153580
|
-
paybackOutput = (_d.address = (_e.sent()).getValue(),
|
|
153581
|
-
_d.value = toSpend.minus(value).toString(),
|
|
153582
|
-
_d.memo = Buffer.alloc(this.options.config.memoSize).toString('hex'),
|
|
153583
|
-
_d);
|
|
153584
|
-
return [2 /*return*/, {
|
|
153585
|
-
ins: inputs,
|
|
153586
|
-
outs: [dummyOutput, paybackOutput],
|
|
153587
|
-
chainId: chainId,
|
|
153588
|
-
stateDiff: stateDiff,
|
|
153589
|
-
callParameters: ''
|
|
153590
|
-
}];
|
|
153591
|
-
}
|
|
153592
|
-
});
|
|
153593
|
-
});
|
|
153594
|
-
};
|
|
153595
|
-
TezosSaplingTokenProtocol.prototype.broadcastTransaction = function (rawTransaction) {
|
|
153596
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
153597
|
-
var response, error_1;
|
|
153598
|
-
return __generator(this, function (_a) {
|
|
153599
|
-
switch (_a.label) {
|
|
153600
|
-
case 0:
|
|
153601
|
-
_a.trys.push([0, 2, , 3]);
|
|
153602
|
-
return [4 /*yield*/, index_1.default.post(this.options.config.injectorUrl + "/sapling_tx", {
|
|
153603
|
-
transaction: rawTransaction
|
|
153604
|
-
})];
|
|
153605
|
-
case 1:
|
|
153606
|
-
response = _a.sent();
|
|
153607
|
-
return [2 /*return*/, response.data.hash];
|
|
153608
|
-
case 2:
|
|
153609
|
-
error_1 = _a.sent();
|
|
153610
|
-
throw new errors_1.NetworkError(coinlib_error_1.Domain.TEZOS, error_1);
|
|
153611
|
-
case 3: return [2 /*return*/];
|
|
153612
|
-
}
|
|
153613
|
-
});
|
|
153614
|
-
});
|
|
153615
|
-
};
|
|
153616
|
-
return TezosSaplingTokenProtocol;
|
|
153617
|
-
}(TezosSaplingProtocol_1.TezosSaplingProtocol));
|
|
153618
|
-
exports.TezosSaplingTokenProtocol = TezosSaplingTokenProtocol;
|
|
153619
|
-
|
|
153620
|
-
}).call(this)}).call(this,require("buffer").Buffer)
|
|
153621
|
-
},{"../../../dependencies/src/axios-0.19.0/index":222,"../../../errors":478,"../../../errors/coinlib-error":477,"../../../utils/padStart":790,"../types/michelson/generics/MichelsonList":689,"../types/michelson/generics/MichelsonPair":693,"../types/michelson/primitives/MichelsonBytes":696,"../types/michelson/primitives/MichelsonString":698,"./TezosSaplingAddress":673,"./TezosSaplingProtocol":675,"./TezosSaplingProtocolOptions":676,"buffer":67}],678:[function(require,module,exports){
|
|
153421
|
+
},{"../../../utils/ProtocolNetwork":778,"../../../utils/ProtocolSymbols":779,"../TezosProtocolOptions":642}],678:[function(require,module,exports){
|
|
153622
153422
|
(function (Buffer){(function (){
|
|
153623
153423
|
"use strict";
|
|
153624
153424
|
var __extends = (this && this.__extends) || (function () {
|
|
@@ -153781,7 +153581,7 @@ var TezosShieldedTezProtocol = /** @class */ (function (_super) {
|
|
|
153781
153581
|
exports.TezosShieldedTezProtocol = TezosShieldedTezProtocol;
|
|
153782
153582
|
|
|
153783
153583
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
153784
|
-
},{"../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../../utils/hex":788,"../TezosAddress":
|
|
153584
|
+
},{"../../../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){
|
|
153785
153585
|
"use strict";
|
|
153786
153586
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
153787
153587
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -153863,17 +153663,6 @@ exports.TezosSaplingNodeClient = TezosSaplingNodeClient;
|
|
|
153863
153663
|
},{"../../../../dependencies/src/axios-0.19.0":222}],680:[function(require,module,exports){
|
|
153864
153664
|
(function (Buffer){(function (){
|
|
153865
153665
|
"use strict";
|
|
153866
|
-
var __assign = (this && this.__assign) || function () {
|
|
153867
|
-
__assign = Object.assign || function(t) {
|
|
153868
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
153869
|
-
s = arguments[i];
|
|
153870
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
153871
|
-
t[p] = s[p];
|
|
153872
|
-
}
|
|
153873
|
-
return t;
|
|
153874
|
-
};
|
|
153875
|
-
return __assign.apply(this, arguments);
|
|
153876
|
-
};
|
|
153877
153666
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
153878
153667
|
if (k2 === undefined) k2 = k;
|
|
153879
153668
|
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
@@ -153948,20 +153737,15 @@ var TezosSaplingBookkeeper = /** @class */ (function () {
|
|
|
153948
153737
|
}
|
|
153949
153738
|
TezosSaplingBookkeeper.prototype.getUnsignedTransactionDetails = function (sender, inputs, outputs, wrappedTransactions) {
|
|
153950
153739
|
var _this = this;
|
|
153951
|
-
var outputsDetails = outputs.map(function (out) {
|
|
153952
|
-
|
|
153953
|
-
|
|
153954
|
-
|
|
153955
|
-
|
|
153956
|
-
|
|
153957
|
-
|
|
153958
|
-
|
|
153959
|
-
|
|
153960
|
-
fee: '0',
|
|
153961
|
-
protocolIdentifier: _this.identifier,
|
|
153962
|
-
network: _this.network
|
|
153963
|
-
};
|
|
153964
|
-
});
|
|
153740
|
+
var outputsDetails = outputs.map(function (out) { return ({
|
|
153741
|
+
from: [sender.getValue()],
|
|
153742
|
+
to: [out.address],
|
|
153743
|
+
isInbound: false,
|
|
153744
|
+
amount: out.value,
|
|
153745
|
+
fee: '0',
|
|
153746
|
+
protocolIdentifier: _this.identifier,
|
|
153747
|
+
network: _this.network
|
|
153748
|
+
}); });
|
|
153965
153749
|
var unshieldDetails = wrappedTransactions
|
|
153966
153750
|
.map(function (wrappedTransaction) {
|
|
153967
153751
|
if (wrappedTransaction.unshieldTarget === undefined) {
|
|
@@ -154042,7 +153826,7 @@ var TezosSaplingBookkeeper = /** @class */ (function () {
|
|
|
154042
153826
|
case 3:
|
|
154043
153827
|
sender = _a;
|
|
154044
153828
|
return [4 /*yield*/, Promise.all(transaction.outputDescriptions.map(function (description) { return __awaiter(_this, void 0, void 0, function () {
|
|
154045
|
-
var recipient, from, _a, _b, to, amount,
|
|
153829
|
+
var recipient, from, _a, _b, to, amount, outputDetails;
|
|
154046
153830
|
return __generator(this, function (_c) {
|
|
154047
153831
|
switch (_c.label) {
|
|
154048
153832
|
case 0: return [4 /*yield*/, this.findRecipient(description, knownViewingKeys)];
|
|
@@ -154060,7 +153844,7 @@ var TezosSaplingBookkeeper = /** @class */ (function () {
|
|
|
154060
153844
|
from = _a;
|
|
154061
153845
|
return [4 /*yield*/, this.decodeDetailsFromOutputDescription(sender, recipient, description)];
|
|
154062
153846
|
case 5:
|
|
154063
|
-
_b = _c.sent(), to = _b[0], amount = _b[1]
|
|
153847
|
+
_b = _c.sent(), to = _b[0], amount = _b[1];
|
|
154064
153848
|
outputDetails = {};
|
|
154065
153849
|
if (from !== undefined) {
|
|
154066
153850
|
outputDetails = Object.assign(outputDetails, { from: [from.getValue()] });
|
|
@@ -154071,12 +153855,6 @@ var TezosSaplingBookkeeper = /** @class */ (function () {
|
|
|
154071
153855
|
if (amount !== undefined) {
|
|
154072
153856
|
outputDetails = Object.assign(outputDetails, { amount: amount.toFixed() });
|
|
154073
153857
|
}
|
|
154074
|
-
if (memo !== undefined && memo.toString('utf-8').replace(/\0/g, '') === 'Mint') {
|
|
154075
|
-
outputDetails = Object.assign(outputDetails, { from: [memo.toString('utf-8').replace(/\0/g, '')] });
|
|
154076
|
-
}
|
|
154077
|
-
if (memo !== undefined && memo.toString('utf-8').replace(/\0/g, '') === 'Burn') {
|
|
154078
|
-
outputDetails = Object.assign(outputDetails, { to: [memo.toString('utf-8').replace(/\0/g, '')] });
|
|
154079
|
-
}
|
|
154080
153858
|
return [2 /*return*/, outputDetails];
|
|
154081
153859
|
}
|
|
154082
153860
|
});
|
|
@@ -154147,7 +153925,7 @@ var TezosSaplingBookkeeper = /** @class */ (function () {
|
|
|
154147
153925
|
};
|
|
154148
153926
|
TezosSaplingBookkeeper.prototype.decodeDetailsFromOutputDescription = function (sender, recipient, output) {
|
|
154149
153927
|
return __awaiter(this, void 0, void 0, function () {
|
|
154150
|
-
var viewingKey, _a, address, amount
|
|
153928
|
+
var viewingKey, _a, address, amount;
|
|
154151
153929
|
return __generator(this, function (_b) {
|
|
154152
153930
|
switch (_b.label) {
|
|
154153
153931
|
case 0:
|
|
@@ -154155,10 +153933,10 @@ var TezosSaplingBookkeeper = /** @class */ (function () {
|
|
|
154155
153933
|
if (!(viewingKey !== undefined)) return [3 /*break*/, 3];
|
|
154156
153934
|
return [4 /*yield*/, this.cryptoClient.decryptCiphertextEnc(viewingKey, output.ciphertext, viewingKey === sender ? 'sender' : 'receiver', output.cm)];
|
|
154157
153935
|
case 1:
|
|
154158
|
-
_a = _b.sent(), address = _a.address, amount = _a.amount
|
|
153936
|
+
_a = _b.sent(), address = _a.address, amount = _a.amount;
|
|
154159
153937
|
return [4 /*yield*/, TezosSaplingAddress_1.TezosSaplingAddress.fromRaw(address)];
|
|
154160
|
-
case 2: return [2 /*return*/, [_b.sent(), amount
|
|
154161
|
-
case 3: return [2 /*return*/, [undefined, undefined
|
|
153938
|
+
case 2: return [2 /*return*/, [_b.sent(), amount]];
|
|
153939
|
+
case 3: return [2 /*return*/, [undefined, undefined]];
|
|
154162
153940
|
}
|
|
154163
153941
|
});
|
|
154164
153942
|
});
|
|
@@ -154191,7 +153969,7 @@ var TezosSaplingBookkeeper = /** @class */ (function () {
|
|
|
154191
153969
|
if (_b) {
|
|
154192
153970
|
return [2 /*return*/, undefined];
|
|
154193
153971
|
}
|
|
154194
|
-
return [2 /*return*/,
|
|
153972
|
+
return [2 /*return*/, decrypted[1]];
|
|
154195
153973
|
}
|
|
154196
153974
|
});
|
|
154197
153975
|
});
|
|
@@ -154233,7 +154011,7 @@ var TezosSaplingBookkeeper = /** @class */ (function () {
|
|
|
154233
154011
|
if (_b) {
|
|
154234
154012
|
return [2 /*return*/, undefined];
|
|
154235
154013
|
}
|
|
154236
|
-
return [2 /*return*/,
|
|
154014
|
+
return [2 /*return*/, decrypted[1]];
|
|
154237
154015
|
}
|
|
154238
154016
|
});
|
|
154239
154017
|
});
|
|
@@ -154460,7 +154238,7 @@ var TezosSaplingBookkeeper = /** @class */ (function () {
|
|
|
154460
154238
|
exports.TezosSaplingBookkeeper = TezosSaplingBookkeeper;
|
|
154461
154239
|
|
|
154462
154240
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
154463
|
-
},{"../../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../../../utils/array":780,"../../../../utils/hex":788,"../TezosSaplingAddress":
|
|
154241
|
+
},{"../../../../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){
|
|
154464
154242
|
(function (Buffer){(function (){
|
|
154465
154243
|
"use strict";
|
|
154466
154244
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -154882,7 +154660,7 @@ var TezosSaplingForger = /** @class */ (function () {
|
|
|
154882
154660
|
exports.TezosSaplingForger = TezosSaplingForger;
|
|
154883
154661
|
|
|
154884
154662
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
154885
|
-
},{"../../../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../../../utils/blake2b":783,"../TezosSaplingAddress":
|
|
154663
|
+
},{"../../../../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){
|
|
154886
154664
|
(function (Buffer){(function (){
|
|
154887
154665
|
"use strict";
|
|
154888
154666
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -155489,7 +155267,7 @@ var MichelsonTypeUtils = /** @class */ (function () {
|
|
|
155489
155267
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
155490
155268
|
args[_i] = arguments[_i];
|
|
155491
155269
|
}
|
|
155492
|
-
return
|
|
155270
|
+
return notSupported('signature', args);
|
|
155493
155271
|
},
|
|
155494
155272
|
option: function () {
|
|
155495
155273
|
var args = [];
|
|
@@ -157402,7 +157180,7 @@ module.exports={
|
|
|
157402
157180
|
"type": "object"
|
|
157403
157181
|
}
|
|
157404
157182
|
},
|
|
157405
|
-
"required": ["ins", "outs", "chainId", "stateDiff"],
|
|
157183
|
+
"required": ["ins", "outs", "chainId", "stateDiff", "callParameters"],
|
|
157406
157184
|
"type": "object"
|
|
157407
157185
|
}
|
|
157408
157186
|
},
|
|
@@ -157843,7 +157621,6 @@ SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { sch
|
|
|
157843
157621
|
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { schema: unsignedTransactionEthereum }, ProtocolSymbols_1.SubProtocolSymbols.ETH_ERC20);
|
|
157844
157622
|
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { schema: unsignedTransactionTezos }, ProtocolSymbols_1.MainProtocolSymbols.XTZ);
|
|
157845
157623
|
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { schema: unsignedTransactionTezosSapling }, ProtocolSymbols_1.MainProtocolSymbols.XTZ_SHIELDED);
|
|
157846
|
-
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { schema: unsignedTransactionTezosSapling }, ProtocolSymbols_1.MainProtocolSymbols.XTZ_ST);
|
|
157847
157624
|
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { schema: unsignedTransactionTezos }, ProtocolSymbols_1.SubProtocolSymbols.XTZ_BTC);
|
|
157848
157625
|
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { schema: unsignedTransactionTezos }, ProtocolSymbols_1.SubProtocolSymbols.XTZ_ETHTZ);
|
|
157849
157626
|
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { schema: unsignedTransactionTezos }, ProtocolSymbols_1.SubProtocolSymbols.XTZ_KUSD);
|
|
@@ -157865,7 +157642,6 @@ SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { sc
|
|
|
157865
157642
|
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { schema: signedTransactionEthereum }, ProtocolSymbols_1.SubProtocolSymbols.ETH_ERC20);
|
|
157866
157643
|
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { schema: signedTransactionTezos }, ProtocolSymbols_1.MainProtocolSymbols.XTZ);
|
|
157867
157644
|
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { schema: signedTransactionTezosSapling }, ProtocolSymbols_1.MainProtocolSymbols.XTZ_SHIELDED);
|
|
157868
|
-
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { schema: signedTransactionTezosSapling }, ProtocolSymbols_1.MainProtocolSymbols.XTZ_ST);
|
|
157869
157645
|
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { schema: signedTransactionTezos }, ProtocolSymbols_1.SubProtocolSymbols.XTZ_BTC);
|
|
157870
157646
|
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { schema: signedTransactionTezos }, ProtocolSymbols_1.SubProtocolSymbols.XTZ_ETHTZ);
|
|
157871
157647
|
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { schema: signedTransactionTezos }, ProtocolSymbols_1.SubProtocolSymbols.XTZ_KUSD);
|
|
@@ -158602,7 +158378,7 @@ var TezosBTCTransactionValidator = /** @class */ (function (_super) {
|
|
|
158602
158378
|
}(transactions_validator_1.TransactionValidator));
|
|
158603
158379
|
exports.TezosBTCTransactionValidator = TezosBTCTransactionValidator;
|
|
158604
158380
|
|
|
158605
|
-
},{"../../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../../dependencies/src/validate.js-0.13.1/validate":471,"../../protocols/tezos/fa/TezosBTC":
|
|
158381
|
+
},{"../../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){
|
|
158606
158382
|
"use strict";
|
|
158607
158383
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
158608
158384
|
exports.generateId = exports.ID_LENGTH = void 0;
|
|
@@ -159425,7 +159201,7 @@ function validateSerializationInput(from: string, fee: BigNumber, amount: BigNum
|
|
|
159425
159201
|
}
|
|
159426
159202
|
*/
|
|
159427
159203
|
|
|
159428
|
-
},{"../../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":
|
|
159204
|
+
},{"../../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){
|
|
159429
159205
|
"use strict";
|
|
159430
159206
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
159431
159207
|
exports.TezosKolibriUSDDetails = exports.TezosWrappedDetails = exports.TezosYOUDetails = exports.TezosUUSDDetails = exports.TezosETHtzDetails = exports.TezosBTCDetails = exports.SERIALIZER_VERSION = void 0;
|
|
@@ -160820,7 +160596,6 @@ Serializer.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { schem
|
|
|
160820
160596
|
Serializer.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { schema: unsignedTransactionEthereum }, ProtocolSymbols_1.SubProtocolSymbols.ETH_ERC20);
|
|
160821
160597
|
Serializer.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { schema: unsignedTransactionTezos }, ProtocolSymbols_1.MainProtocolSymbols.XTZ);
|
|
160822
160598
|
Serializer.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { schema: unsignedTransactionTezosSapling }, ProtocolSymbols_1.MainProtocolSymbols.XTZ_SHIELDED);
|
|
160823
|
-
Serializer.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { schema: unsignedTransactionTezosSapling }, ProtocolSymbols_1.MainProtocolSymbols.XTZ_ST);
|
|
160824
160599
|
Serializer.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { schema: unsignedTransactionTezos }, ProtocolSymbols_1.SubProtocolSymbols.XTZ_BTC);
|
|
160825
160600
|
Serializer.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { schema: unsignedTransactionTezos }, ProtocolSymbols_1.SubProtocolSymbols.XTZ_ETHTZ);
|
|
160826
160601
|
Serializer.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { schema: unsignedTransactionTezos }, ProtocolSymbols_1.SubProtocolSymbols.XTZ_KUSD);
|
|
@@ -160839,7 +160614,6 @@ Serializer.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { sche
|
|
|
160839
160614
|
Serializer.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { schema: signedTransactionEthereum }, ProtocolSymbols_1.SubProtocolSymbols.ETH_ERC20);
|
|
160840
160615
|
Serializer.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { schema: signedTransactionTezos }, ProtocolSymbols_1.MainProtocolSymbols.XTZ);
|
|
160841
160616
|
Serializer.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { schema: signedTransactionTezosSapling }, ProtocolSymbols_1.MainProtocolSymbols.XTZ_SHIELDED);
|
|
160842
|
-
Serializer.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { schema: signedTransactionTezosSapling }, ProtocolSymbols_1.MainProtocolSymbols.XTZ_ST);
|
|
160843
160617
|
Serializer.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { schema: signedTransactionTezos }, ProtocolSymbols_1.SubProtocolSymbols.XTZ_BTC);
|
|
160844
160618
|
Serializer.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { schema: signedTransactionTezos }, ProtocolSymbols_1.SubProtocolSymbols.XTZ_ETHTZ);
|
|
160845
160619
|
Serializer.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { schema: signedTransactionTezos }, ProtocolSymbols_1.SubProtocolSymbols.XTZ_KUSD);
|
|
@@ -161026,7 +160800,7 @@ var TezosBTCTransactionValidator = /** @class */ (function (_super) {
|
|
|
161026
160800
|
}(transactions_validator_1.TransactionValidator));
|
|
161027
160801
|
exports.TezosBTCTransactionValidator = TezosBTCTransactionValidator;
|
|
161028
160802
|
|
|
161029
|
-
},{"../../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":
|
|
160803
|
+
},{"../../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){
|
|
161030
160804
|
"use strict";
|
|
161031
160805
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
161032
160806
|
exports.generateIdV2 = void 0;
|
|
@@ -161780,7 +161554,7 @@ function validateSerializationInput(from: string, fee: BigNumber, amount: BigNum
|
|
|
161780
161554
|
}
|
|
161781
161555
|
*/
|
|
161782
161556
|
|
|
161783
|
-
},{"../../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":
|
|
161557
|
+
},{"../../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){
|
|
161784
161558
|
(function (Buffer){(function (){
|
|
161785
161559
|
"use strict";
|
|
161786
161560
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -162039,7 +161813,6 @@ var MainProtocolSymbols;
|
|
|
162039
161813
|
MainProtocolSymbols["ETH"] = "eth";
|
|
162040
161814
|
MainProtocolSymbols["XTZ"] = "xtz";
|
|
162041
161815
|
MainProtocolSymbols["XTZ_SHIELDED"] = "xtz_shielded";
|
|
162042
|
-
MainProtocolSymbols["XTZ_ST"] = "xtz_st";
|
|
162043
161816
|
MainProtocolSymbols["GRS"] = "grs";
|
|
162044
161817
|
MainProtocolSymbols["COSMOS"] = "cosmos";
|
|
162045
161818
|
MainProtocolSymbols["POLKADOT"] = "polkadot";
|
|
@@ -162529,10 +162302,6 @@ var getProtocolOptionsByIdentifier = function (identifier, network) {
|
|
|
162529
162302
|
return network
|
|
162530
162303
|
? new TezosSaplingProtocolOptions_1.TezosSaplingProtocolOptions(network, new TezosSaplingProtocolOptions_1.TezosShieldedTezProtocolConfig())
|
|
162531
162304
|
: new TezosSaplingProtocolOptions_1.TezosSaplingProtocolOptions();
|
|
162532
|
-
case ProtocolSymbols_1.MainProtocolSymbols.XTZ_ST:
|
|
162533
|
-
return network
|
|
162534
|
-
? new TezosSaplingProtocolOptions_1.TezosSaplingTokenProtocolOptions(network, new TezosSaplingProtocolOptions_1.TezosSaplingTokenProtocolConfig())
|
|
162535
|
-
: new TezosSaplingProtocolOptions_1.TezosSaplingTokenProtocolOptions();
|
|
162536
162305
|
case ProtocolSymbols_1.SubProtocolSymbols.XTZ_BTC:
|
|
162537
162306
|
return new TezosFAProtocolOptions_1.TezosFAProtocolOptions(network ? network : new TezosProtocolOptions_1.TezosProtocolNetwork(), new TezosFAProtocolOptions_1.TezosBTCProtocolConfig());
|
|
162538
162307
|
case ProtocolSymbols_1.SubProtocolSymbols.XTZ_ETHTZ:
|
|
@@ -162570,7 +162339,7 @@ var getProtocolOptionsByIdentifier = function (identifier, network) {
|
|
|
162570
162339
|
};
|
|
162571
162340
|
exports.getProtocolOptionsByIdentifier = getProtocolOptionsByIdentifier;
|
|
162572
162341
|
|
|
162573
|
-
},{"../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":
|
|
162342
|
+
},{"../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){
|
|
162574
162343
|
"use strict";
|
|
162575
162344
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
162576
162345
|
exports.getProtocolByIdentifier = void 0;
|
|
@@ -163497,7 +163266,7 @@ var AirGapCoinWallet = /** @class */ (function (_super) {
|
|
|
163497
163266
|
}(AirGapMarketWallet_1.AirGapMarketWallet));
|
|
163498
163267
|
exports.AirGapCoinWallet = AirGapCoinWallet;
|
|
163499
163268
|
|
|
163500
|
-
},{"../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../protocols/tezos/sapling/TezosSaplingProtocol":
|
|
163269
|
+
},{"../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){
|
|
163501
163270
|
"use strict";
|
|
163502
163271
|
var __extends = (this && this.__extends) || (function () {
|
|
163503
163272
|
var extendStatics = function (d, b) {
|
|
@@ -163711,7 +163480,7 @@ var AirGapMarketWallet = /** @class */ (function (_super) {
|
|
|
163711
163480
|
}(AirGapWallet_1.AirGapWallet));
|
|
163712
163481
|
exports.AirGapMarketWallet = AirGapMarketWallet;
|
|
163713
163482
|
|
|
163714
|
-
},{"../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../protocols/tezos/sapling/TezosSaplingProtocol":
|
|
163483
|
+
},{"../dependencies/src/bignumber.js-9.0.0/bignumber":256,"../protocols/tezos/sapling/TezosSaplingProtocol":676,"../utils/ProtocolSymbols":779,"./AirGapWallet":807}],806:[function(require,module,exports){
|
|
163715
163484
|
"use strict";
|
|
163716
163485
|
var __extends = (this && this.__extends) || (function () {
|
|
163717
163486
|
var extendStatics = function (d, b) {
|