You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1.1 KiB

2 years ago
import * as main from "../contracts/main";
import {Address, Cell, toNano, TupleSlice, WalletContract} from "ton";
import { hex as jettonWalletCodeCell } from "../build/jetton-wallet.compiled.json";
import { hex as minterCode } from "../build/minter.compiled.json";
2 years ago
import { sendInternalMessageWithWallet } from "../test/helpers";
import {minterParams} from "./minter.deploy";
2 years ago
// return the init Cell of the contract storage (according to load_data() contract method)
export function initData() {
let ownerAddress = Address.parse("EQD7zbEMaWC2yMgSJXmIF7HbLr1yuBo2GnZF_CJNkUiGSe32");
let minterAddress = main.getMinterAddress(minterParams(), Cell.fromBoc(minterCode)[0]);
return main.walletData({
balance: 0,
ownerAddress,
jettonMasterAddress: minterAddress,
jettonWalletCode: Cell.fromBoc(jettonWalletCodeCell)[0],
2 years ago
});
}
export function initMessage() {
return null;
2 years ago
}
// optional end-to-end sanity test for the actual on-chain contract to see it is actually working on-chain
export async function postDeployTest(walletContract: WalletContract, secretKey: Buffer, contractAddress: Address) {
}