// import "@stdlib/jetton"; import "./messages"; import "./wallet"; import "./linker"; import "./jetton_trait"; message Mint { amount: Int; } contract TONB with Jetton { totalSupply: Int as coins; owner: Address; content: Cell?; mintable: Bool; first_linker: Address?; last_linker: Address?; n_linkers: Int = 0; init(owner: Address, content: Cell?) { self.totalSupply = 0; self.owner = owner; self.mintable = true; self.content = content; } receive(msg: Mint) { let ctx: Context = context(); self.mint(ctx.sender, msg.amount, ctx.sender); } receive("Mint!") { let ctx: Context = context(); self.mint(ctx.sender, 1000000000, ctx.sender); } }