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.
23 lines
1.1 KiB
23 lines
1.1 KiB
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); |
|
}); |
|
}); |