From 66f6ef6c387e561d4c0c0b75a470ca625442d582 Mon Sep 17 00:00:00 2001 From: alan890104 Date: Thu, 2 May 2024 20:48:52 +0800 Subject: [PATCH 1/2] Update JettonWallet gas consumption and min tons for storage --- .../packages/token/jetton/JettonWallet.tact | 4 ++-- scripts/deployJetton.ts | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/contracts/packages/token/jetton/JettonWallet.tact b/contracts/packages/token/jetton/JettonWallet.tact index dcf5f4f..b416a9d 100644 --- a/contracts/packages/token/jetton/JettonWallet.tact +++ b/contracts/packages/token/jetton/JettonWallet.tact @@ -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 // diff --git a/scripts/deployJetton.ts b/scripts/deployJetton.ts index 787ffaf..bb8ac24 100644 --- a/scripts/deployJetton.ts +++ b/scripts/deployJetton.ts @@ -8,16 +8,16 @@ 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', - image: 'https://avatars.githubusercontent.com/u/144251015?s=400&u=a25dfca41bdc6467d9783f5225c93f60e1513630&v=4', + name: 'AlanKingdom', + description: 'Alankingdom is a decentralized kingdom, where you can create your own kingdom and become a king.', + symbol: 'ALL', + decimals: '9', }); - 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', @@ -25,5 +25,5 @@ export async function run(provider: NetworkProvider) { } ); - await provider.waitForDeploy(nFTCollection.address); + await provider.waitForDeploy(jettonMaster.address); } From 70af46f70db7d895c5837558f07760e923bd56b7 Mon Sep 17 00:00:00 2001 From: alan890104 Date: Thu, 2 May 2024 20:52:58 +0800 Subject: [PATCH 2/2] Update JettonWallet image URL --- scripts/deployJetton.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/deployJetton.ts b/scripts/deployJetton.ts index bb8ac24..c7671ef 100644 --- a/scripts/deployJetton.ts +++ b/scripts/deployJetton.ts @@ -12,6 +12,7 @@ export async function run(provider: NetworkProvider) { 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 jettonMaster = provider.open(await ExampleJettonMaster.fromInit(deployer.address!, jettonContent)); await jettonMaster.send(