@ton.js/core
Version:
TonWeb - JavaScript API for TON blockchain
50 lines • 2.22 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Wallets = void 0;
const simple_wallet_contract_r1_1 = require("./simple/simple-wallet-contract-r1");
const simple_wallet_contract_r2_1 = require("./simple/simple-wallet-contract-r2");
const simple_wallet_contract_r3_1 = require("./simple/simple-wallet-contract-r3");
const wallet_v4_contract_r1_1 = require("./v4/wallet-v4-contract-r1");
const wallet_v4_contract_r2_1 = require("./v4/wallet-v4-contract-r2");
const wallet_v2_contract_r1_1 = require("./v2/wallet-v2-contract-r1");
const wallet_v2_contract_r2_1 = require("./v2/wallet-v2-contract-r2");
const wallet_v3_contract_r1_1 = require("./v3/wallet-v3-contract-r1");
const wallet_v3_contract_r2_1 = require("./v3/wallet-v3-contract-r2");
const ALL = {
'simpleR1': simple_wallet_contract_r1_1.SimpleWalletContractR1,
'simpleR2': simple_wallet_contract_r2_1.SimpleWalletContractR2,
'simpleR3': simple_wallet_contract_r3_1.SimpleWalletContractR3,
'v2R1': wallet_v2_contract_r1_1.WalletV2ContractR1,
'v2R2': wallet_v2_contract_r2_1.WalletV2ContractR2,
'v3R1': wallet_v3_contract_r1_1.WalletV3ContractR1,
'v3R2': wallet_v3_contract_r2_1.WalletV3ContractR2,
'v4R1': wallet_v4_contract_r1_1.WalletV4ContractR1,
'v4R2': wallet_v4_contract_r2_1.WalletV4ContractR2
};
const LIST = [
simple_wallet_contract_r1_1.SimpleWalletContractR1,
simple_wallet_contract_r2_1.SimpleWalletContractR2,
simple_wallet_contract_r3_1.SimpleWalletContractR3,
wallet_v2_contract_r1_1.WalletV2ContractR1,
wallet_v2_contract_r2_1.WalletV2ContractR2,
wallet_v3_contract_r1_1.WalletV3ContractR1,
wallet_v3_contract_r2_1.WalletV3ContractR2,
wallet_v4_contract_r1_1.WalletV4ContractR1,
wallet_v4_contract_r2_1.WalletV4ContractR2,
];
class Wallets {
constructor(provider) {
this.provider = provider;
this.all = ALL;
this.list = LIST;
this.defaultVersion = 'v3R1';
this.default = ALL[this.defaultVersion];
}
create(options) {
return new this.default(this.provider, options);
}
}
exports.Wallets = Wallets;
Wallets.all = ALL;
Wallets.list = LIST;
//# sourceMappingURL=wallets.js.map