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.
 
 

12 lines
443 B

import { Cell, beginCell, Address } from "ton";
// encode contract storage according to save_data() contract method
export function data(params: { ownerAddress: Address; counter: number }): Cell {
return beginCell().storeAddress(params.ownerAddress).storeUint(params.counter, 64).endCell();
}
// message encoders for all ops
export function increment(): Cell {
return beginCell().storeUint(0x37491f2f, 32).storeUint(0, 64).endCell();
}