@alephium/web3-test
Version:
Utility functions for Alephium test
49 lines (45 loc) • 2.79 kB
JavaScript
;
/*
Copyright 2018 - 2022 The Alephium Authors
This file is part of the alephium project.
The library is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
The library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with the library. If not, see <http://www.gnu.org/licenses/>.
*/
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.mintToken = exports.testPassword = exports.testPrivateKeyWallet = exports.testPrivateKey = exports.testAddress = exports.testWalletName = exports.testMnemonic = void 0;
const web3_1 = require("@alephium/web3");
var const_1 = require("./const");
Object.defineProperty(exports, "testMnemonic", { enumerable: true, get: function () { return const_1.testMnemonic; } });
Object.defineProperty(exports, "testWalletName", { enumerable: true, get: function () { return const_1.testWalletName; } });
Object.defineProperty(exports, "testAddress", { enumerable: true, get: function () { return const_1.testAddress; } });
Object.defineProperty(exports, "testPrivateKey", { enumerable: true, get: function () { return const_1.testPrivateKey; } });
Object.defineProperty(exports, "testPrivateKeyWallet", { enumerable: true, get: function () { return const_1.testPrivateKeyWallet; } });
Object.defineProperty(exports, "testPassword", { enumerable: true, get: function () { return const_1.testPassword; } });
var token_1 = require("./token");
Object.defineProperty(exports, "mintToken", { enumerable: true, get: function () { return token_1.mintToken; } });
__exportStar(require("./test-wallet"), exports);
if (process.env.ALEPHIUM_CONTRACT_DEBUG_MESSAGE === 'false') {
(0, web3_1.disableContractDebugMessage)();
}