Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update JettonWallet gas consumption and min tons for storage #10

Merged
merged 2 commits into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions contracts/packages/token/jetton/JettonWallet.tact
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ trait JettonWallet {
balance: Int;
owner: Address;
jetton_master: Address;
virtual const gasConsumption: Int = ton("0.05");
virtual const minTonsForStorage: Int = ton("0.05");
virtual const gasConsumption: Int = ton("0.01");
virtual const minTonsForStorage: Int = ton("0.01");

//********************************************//
// Messages //
Expand Down
15 changes: 8 additions & 7 deletions scripts/deployJetton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,23 @@ export async function run(provider: NetworkProvider) {
const deployer = provider.sender();
console.log('Deploying contract with deployer address', deployer.address);
const jettonContent = buildJettonContent({
name: 'TonDynasty',
description: 'TonDynasty Co-Founder Certificate - Tact',
symbol: 'TDT',
name: 'AlanKingdom',
description: 'Alankingdom is a decentralized kingdom, where you can create your own kingdom and become a king.',
symbol: 'ALL',
decimals: '9',
image: 'https://avatars.githubusercontent.com/u/144251015?s=400&u=a25dfca41bdc6467d9783f5225c93f60e1513630&v=4',
});
const nFTCollection = provider.open(await ExampleJettonMaster.fromInit(deployer.address!, jettonContent));
await nFTCollection.send(
const jettonMaster = provider.open(await ExampleJettonMaster.fromInit(deployer.address!, jettonContent));
await jettonMaster.send(
provider.sender(),
{
value: toNano('0.03'),
value: toNano('0.1'),
},
{
$$type: 'Deploy',
queryId: 0n,
}
);

await provider.waitForDeploy(nFTCollection.address);
await provider.waitForDeploy(jettonMaster.address);
}