import { toNano } from "ton"; import { ContractSystem } from "ton-emulator"; import {TONB} from '../output/jetton_TONB'; import {Foundation} from '../output/jetton_Foundation'; import { default_content } from '../utils/config'; import { TONBWallet } from '../output/jetton_TONBWallet'; import { beginCell } from 'ton-core'; import { PseudoStaking } from '../output/jetton_PseudoStaking'; import { createDistribution, createAddressList } from "../utils/interactions"; describe('jetton', () => { it('should be able to create a vote', async () => { // Create jetton let system = await ContractSystem.create(); let owner = system.treasure('owner'); let tonb = system.open(await TONB.fromInit(owner.address, default_content, null)); let foundation = system.open(await Foundation.fromInit( createDistribution([owner.address], [100n]), createAddressList([]), tonb.address)); tonb.send(owner, { value: toNano('1') }, { $$type: 'SetOwner', owner: foundation.address }); let tracker = system.track(foundation.address); }); });