@pizzaton/ton 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRACTS.md +239 -0
- package/README.md +481 -2
- package/dist/airdrop/index.d.mts +18 -0
- package/dist/airdrop/index.mjs +86 -0
- package/dist/connect/errors.d.mts +4 -0
- package/dist/connect/errors.mjs +21 -0
- package/dist/connect/index.d.mts +23 -0
- package/dist/connect/index.mjs +34 -0
- package/dist/contracts/catalog/index.d.mts +361 -0
- package/dist/contracts/catalog/index.mjs +403 -0
- package/dist/contracts/client.d.mts +18 -0
- package/dist/contracts/client.mjs +31 -0
- package/dist/contracts/codecs.d.mts +14 -0
- package/dist/contracts/codecs.mjs +61 -0
- package/dist/contracts/hipo.d.mts +138 -0
- package/dist/contracts/hipo.mjs +198 -0
- package/dist/contracts/index.d.mts +23 -0
- package/dist/contracts/index.mjs +20 -0
- package/dist/contracts/metadata.d.mts +38 -0
- package/dist/contracts/metadata.mjs +50 -0
- package/dist/contracts/module-client.d.mts +20 -0
- package/dist/contracts/module-client.mjs +34 -0
- package/dist/contracts/module.d.mts +8 -0
- package/dist/contracts/module.mjs +11 -0
- package/dist/contracts/wrappers/base.d.mts +18 -0
- package/dist/contracts/wrappers/base.mjs +31 -0
- package/dist/contracts/wrappers/index.d.mts +12 -0
- package/dist/contracts/wrappers/index.mjs +12 -0
- package/dist/contracts/wrappers/jvault-protocols.d.mts +206 -0
- package/dist/contracts/wrappers/jvault-protocols.mjs +432 -0
- package/dist/contracts/wrappers/jvault-support.d.mts +135 -0
- package/dist/contracts/wrappers/jvault-support.mjs +269 -0
- package/dist/contracts/wrappers/jvault.d.mts +123 -0
- package/dist/contracts/wrappers/jvault.mjs +258 -0
- package/dist/contracts/wrappers/memeland.d.mts +253 -0
- package/dist/contracts/wrappers/memeland.mjs +396 -0
- package/dist/contracts/wrappers/multix.d.mts +92 -0
- package/dist/contracts/wrappers/multix.mjs +156 -0
- package/dist/contracts/wrappers/pizzabox.d.mts +66 -0
- package/dist/contracts/wrappers/pizzabox.mjs +105 -0
- package/dist/contracts/wrappers/ton-raffles.d.mts +215 -0
- package/dist/contracts/wrappers/ton-raffles.mjs +398 -0
- package/dist/contracts/wrappers/tonresistor.d.mts +189 -0
- package/dist/contracts/wrappers/tonresistor.mjs +276 -0
- package/dist/core/address.d.mts +25 -0
- package/dist/core/address.mjs +45 -0
- package/dist/core/amount.d.mts +8 -0
- package/dist/core/amount.mjs +34 -0
- package/dist/core/bytes.d.mts +5 -0
- package/dist/core/bytes.mjs +18 -0
- package/dist/core/constants.d.mts +14 -0
- package/dist/core/constants.mjs +15 -0
- package/dist/core/errors.d.mts +9 -0
- package/dist/core/errors.mjs +16 -0
- package/dist/core/http.mjs +39 -0
- package/dist/core/index.d.mts +8 -0
- package/dist/core/index.mjs +8 -0
- package/dist/core/metadata.d.mts +12 -0
- package/dist/core/metadata.mjs +35 -0
- package/dist/core/network.d.mts +24 -0
- package/dist/core/network.mjs +41 -0
- package/dist/emulator/index.d.mts +20 -0
- package/dist/emulator/index.mjs +24 -0
- package/dist/index.d.mts +21 -0
- package/dist/index.mjs +19 -0
- package/dist/indexer/index.d.mts +90 -0
- package/dist/indexer/index.mjs +279 -0
- package/dist/jetton/details.d.mts +27 -0
- package/dist/jetton/details.mjs +116 -0
- package/dist/jetton/index.d.mts +54 -0
- package/dist/jetton/index.mjs +92 -0
- package/dist/jetton/versions.d.mts +12 -0
- package/dist/jetton/versions.mjs +50 -0
- package/dist/nft/collection.d.mts +57 -0
- package/dist/nft/collection.mjs +148 -0
- package/dist/nft/content.d.mts +34 -0
- package/dist/nft/content.mjs +142 -0
- package/dist/nft/index.d.mts +35 -0
- package/dist/nft/index.mjs +51 -0
- package/dist/nft/versions.d.mts +11 -0
- package/dist/nft/versions.mjs +29 -0
- package/dist/provider/index.d.mts +32 -0
- package/dist/provider/index.mjs +1 -0
- package/dist/react/index.d.mts +13 -0
- package/dist/react/index.mjs +48 -0
- package/dist/server/index.d.mts +11 -0
- package/dist/server/index.mjs +55 -0
- package/dist/simulation/index.d.mts +112 -0
- package/dist/simulation/index.mjs +310 -0
- package/dist/transactions/index.d.mts +33 -0
- package/dist/transactions/index.mjs +51 -0
- package/dist/vesting/index.d.mts +12 -0
- package/dist/vesting/index.mjs +25 -0
- package/dist/wallet/index.d.mts +23 -0
- package/dist/wallet/index.mjs +71 -0
- package/package.json +169 -5
|
@@ -0,0 +1,398 @@
|
|
|
1
|
+
import { NFT_OPCODES } from "../../nft/index.mjs";
|
|
2
|
+
import { ContractWrapper } from "./base.mjs";
|
|
3
|
+
import { Dictionary, beginCell, contractAddress } from "@ton/core";
|
|
4
|
+
//#region src/contracts/wrappers/ton-raffles.ts
|
|
5
|
+
/**
|
|
6
|
+
* Native adapters for the supplied Ton-Raffles/PizzaTon revisions. Each
|
|
7
|
+
* revision is intentionally a separate class: these contracts are not
|
|
8
|
+
* interchangeable even when their names and opcodes overlap.
|
|
9
|
+
*/
|
|
10
|
+
const TON_RAFFLES_SOURCE_REVISIONS = {
|
|
11
|
+
nftLaunchpad: "983a668dae2c5fd0b71a4c8c42c47392ecf5a9bd",
|
|
12
|
+
nftAuctionV2: "b2bc3755c79d43f6cc2b361210362d4a1672b1dd",
|
|
13
|
+
nftSwapV2: "8e262604c56f0be2753be254772df4a3fed03882",
|
|
14
|
+
scalableAirdrop: "47b8fb00163af2755b413c16cd815672c5cdeae2",
|
|
15
|
+
offchainProofsV2: "467815bdcbb58e604d6b82e22bfb1aa16ce6282a",
|
|
16
|
+
shoppingCart: "78b9b18de1fda2fb2360e10e6dd54877defc906f",
|
|
17
|
+
jettonLocker: "cd1574f52b413c2aea6255a08110c8fad3b5616e",
|
|
18
|
+
nftSaleJettons: "d65f5348a748b0c3567fa59b7594ca0b7218f368",
|
|
19
|
+
memeland: "a7e132be091585b80cb6ffc6b7b50c8f0bdc53a2",
|
|
20
|
+
bondingCurve: "5dbb20575fde5144d00c63f9d3099c0ac71bab95"
|
|
21
|
+
};
|
|
22
|
+
const header = (op, queryId = 0n) => beginCell().storeUint(op, 32).storeUint(queryId, 64);
|
|
23
|
+
function fixedBytes(value, length, field) {
|
|
24
|
+
if (value.length !== length) throw new RangeError(`${field} must be exactly ${String(length)} bytes`);
|
|
25
|
+
return value;
|
|
26
|
+
}
|
|
27
|
+
function uint(value, bits, field) {
|
|
28
|
+
if (value < 0n || value >= 1n << BigInt(bits)) throw new RangeError(`${field} must fit in an unsigned ${String(bits)}-bit integer`);
|
|
29
|
+
return value;
|
|
30
|
+
}
|
|
31
|
+
function buildNftLaunchpadSaleData(config) {
|
|
32
|
+
return beginCell().storeBuffer(config.adminPublicKey, 32).storeUint(config.available, 32).storeCoins(config.price).storeUint(config.lastIndex, 32).storeAddress(config.collection).storeUint(config.buyerLimit, 32).storeUint(config.startTime, 32).storeUint(config.endTime, 32).storeAddress(config.adminAddress).storeBit(1).storeRef(config.helperCode).storeRef(beginCell().storeCoins(0).storeUint(config.affiliatePercentage ?? 0n, 16).storeUint(0, 16).endCell()).endCell();
|
|
33
|
+
}
|
|
34
|
+
var TonRafflesNftLaunchpadSale = class TonRafflesNftLaunchpadSale extends ContractWrapper {
|
|
35
|
+
static createFromAddress(address) {
|
|
36
|
+
return new TonRafflesNftLaunchpadSale(address);
|
|
37
|
+
}
|
|
38
|
+
static createFromConfig(config, code, workchain = 0) {
|
|
39
|
+
const init = {
|
|
40
|
+
code,
|
|
41
|
+
data: buildNftLaunchpadSaleData(config)
|
|
42
|
+
};
|
|
43
|
+
return new TonRafflesNftLaunchpadSale(contractAddress(workchain, init), init);
|
|
44
|
+
}
|
|
45
|
+
async sendPurchase(provider, via, value, quantity, time, signature, queryId = 0n, referrer) {
|
|
46
|
+
await this.send(provider, via, value, header(84124148, queryId).storeUint(quantity, 16).storeUint(time, 64).storeBuffer(signature, 64).storeMaybeRef(referrer ? beginCell().storeAddress(referrer).endCell() : null).endCell());
|
|
47
|
+
}
|
|
48
|
+
async sendChangeCollectionOwner(provider, via, value, owner, collection) {
|
|
49
|
+
await this.send(provider, via, value, beginCell().storeUint(1258042478, 32).storeAddress(owner).storeBit(collection ? 1 : 0).storeAddress(collection ?? null).endCell());
|
|
50
|
+
}
|
|
51
|
+
async sendChangeAvailable(provider, via, value, available) {
|
|
52
|
+
await this.send(provider, via, value, beginCell().storeUint(662408981, 32).storeUint(available, 32).endCell());
|
|
53
|
+
}
|
|
54
|
+
async sendChangeStartTime(provider, via, value, time) {
|
|
55
|
+
await this.send(provider, via, value, beginCell().storeUint(265514284, 32).storeUint(time, 32).endCell());
|
|
56
|
+
}
|
|
57
|
+
async sendChangeEndTime(provider, via, value, time) {
|
|
58
|
+
await this.send(provider, via, value, beginCell().storeUint(1155536102, 32).storeUint(time, 32).endCell());
|
|
59
|
+
}
|
|
60
|
+
async sendEnable(provider, via, value) {
|
|
61
|
+
await this.send(provider, via, value, beginCell().storeUint(776487699, 32).endCell());
|
|
62
|
+
}
|
|
63
|
+
async sendDisable(provider, via, value) {
|
|
64
|
+
await this.send(provider, via, value, beginCell().storeUint(885007977, 32).endCell());
|
|
65
|
+
}
|
|
66
|
+
async sendCollectRemainingBalance(provider, via, value) {
|
|
67
|
+
await this.send(provider, via, value, beginCell().storeUint(1125570201, 32).endCell());
|
|
68
|
+
}
|
|
69
|
+
async getContractData(provider) {
|
|
70
|
+
return this.get(provider, "get_contract_data");
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
function buildTonRafflesModernSaleData(config) {
|
|
74
|
+
return beginCell().storeRef(beginCell().storeBit(0).storeUint(config.createdAt, 32).storeAddress(config.marketplace).storeAddress(config.nft).storeAddress(config.nftOwner).endCell()).storeCoins(config.fullPrice).storeRef(config.fees).storeBit(0).storeBuffer(config.publicKey).endCell();
|
|
75
|
+
}
|
|
76
|
+
var TonRafflesModernNftSale = class TonRafflesModernNftSale extends ContractWrapper {
|
|
77
|
+
static createFromAddress(address) {
|
|
78
|
+
return new TonRafflesModernNftSale(address);
|
|
79
|
+
}
|
|
80
|
+
static createFromConfig(config, code, workchain = 0) {
|
|
81
|
+
const init = {
|
|
82
|
+
code,
|
|
83
|
+
data: buildTonRafflesModernSaleData(config)
|
|
84
|
+
};
|
|
85
|
+
return new TonRafflesModernNftSale(contractAddress(workchain, init), init);
|
|
86
|
+
}
|
|
87
|
+
async sendDeploy(provider, via, value, signature, queryId = 0n) {
|
|
88
|
+
await this.send(provider, via, value, beginCell().storeUint(5, 32).storeUint(queryId, 64).storeBuffer(signature).endCell());
|
|
89
|
+
}
|
|
90
|
+
async sendCancel(provider, via, value, queryId = 0n) {
|
|
91
|
+
await this.send(provider, via, value, header(3, queryId).endCell());
|
|
92
|
+
}
|
|
93
|
+
async sendChangePrice(provider, via, value, newPrice, fees, queryId = 0n) {
|
|
94
|
+
await this.send(provider, via, value, header(6, queryId).storeCoins(newPrice).storeRef(fees).endCell());
|
|
95
|
+
}
|
|
96
|
+
async getSaleData(provider) {
|
|
97
|
+
return this.get(provider, "get_sale_data");
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
const JETTON_SALE_PRICES_VALUE = {
|
|
101
|
+
serialize: (prices, builder) => {
|
|
102
|
+
builder.storeCoins(prices.fullPrice).storeCoins(prices.marketplaceFee).storeCoins(prices.royaltyAmount);
|
|
103
|
+
},
|
|
104
|
+
parse: (slice) => ({
|
|
105
|
+
fullPrice: slice.loadCoins(),
|
|
106
|
+
marketplaceFee: slice.loadCoins(),
|
|
107
|
+
royaltyAmount: slice.loadCoins()
|
|
108
|
+
})
|
|
109
|
+
};
|
|
110
|
+
function buildTonRafflesJettonSalePrices(prices) {
|
|
111
|
+
const dictionary = Dictionary.empty(Dictionary.Keys.BigUint(256), JETTON_SALE_PRICES_VALUE);
|
|
112
|
+
for (const [address, value] of prices) {
|
|
113
|
+
if (value.fullPrice < 0n || value.marketplaceFee < 0n || value.royaltyAmount < 0n) throw new RangeError("jetton sale prices must be non-negative");
|
|
114
|
+
dictionary.set(BigInt(`0x${address.hash.toString("hex")}`), value);
|
|
115
|
+
}
|
|
116
|
+
return dictionary;
|
|
117
|
+
}
|
|
118
|
+
function buildTonRafflesJettonSaleData(config) {
|
|
119
|
+
const fees = beginCell().storeAddress(config.marketplaceFeeAddress).storeCoins(config.marketplaceFee).storeAddress(config.royaltyAddress).storeCoins(config.royaltyAmount).endCell();
|
|
120
|
+
const prices = config.jettonPrices ? buildTonRafflesJettonSalePrices(config.jettonPrices) : null;
|
|
121
|
+
const data = beginCell().storeRef(beginCell().storeBit(config.isComplete).storeUint(uint(config.createdAt, 32, "createdAt"), 32).storeAddress(config.marketplace).storeAddress(config.nft).storeAddress(config.nftOwner).endCell()).storeBit(0).storeCoins(config.fullPrice).storeRef(fees).storeBit(config.jettonsConfigured).storeBit(prices !== null);
|
|
122
|
+
if (prices) data.storeRef(beginCell().storeDict(prices).endCell());
|
|
123
|
+
return data.storeBuffer(fixedBytes(config.publicKey, 32, "publicKey")).endCell();
|
|
124
|
+
}
|
|
125
|
+
var TonRafflesJettonPricedNftSale = class TonRafflesJettonPricedNftSale extends ContractWrapper {
|
|
126
|
+
static createFromAddress(address) {
|
|
127
|
+
return new TonRafflesJettonPricedNftSale(address);
|
|
128
|
+
}
|
|
129
|
+
static createFromConfig(config, code, workchain = 0) {
|
|
130
|
+
const init = {
|
|
131
|
+
code,
|
|
132
|
+
data: buildTonRafflesJettonSaleData(config)
|
|
133
|
+
};
|
|
134
|
+
return new TonRafflesJettonPricedNftSale(contractAddress(workchain, init), init);
|
|
135
|
+
}
|
|
136
|
+
async sendBuy(provider, via, value) {
|
|
137
|
+
await this.send(provider, via, value);
|
|
138
|
+
}
|
|
139
|
+
async sendBuyWithReferrer(provider, via, referrer, value) {
|
|
140
|
+
await this.send(provider, via, value, beginCell().storeMaybeRef(referrer ? beginCell().storeAddress(referrer).endCell() : null).endCell());
|
|
141
|
+
}
|
|
142
|
+
async sendInitialize(provider, via, value, signature, queryId = 0n) {
|
|
143
|
+
await this.send(provider, via, value, header(5, queryId).storeBuffer(fixedBytes(signature, 64, "signature")).endCell());
|
|
144
|
+
}
|
|
145
|
+
async sendConfigureJettons(provider, via, prices, value, queryId = 0n) {
|
|
146
|
+
await this.send(provider, via, value, header(136501422, queryId).storeDict(prices).endCell());
|
|
147
|
+
}
|
|
148
|
+
async sendCancel(provider, via, value, queryId = 0n) {
|
|
149
|
+
await this.send(provider, via, value, header(3, queryId).endCell());
|
|
150
|
+
}
|
|
151
|
+
async getSaleData(provider) {
|
|
152
|
+
return this.get(provider, "get_sale_data");
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
var TonRafflesNftAuctionV2 = class TonRafflesNftAuctionV2 extends ContractWrapper {
|
|
156
|
+
static createFromAddress(address) {
|
|
157
|
+
return new TonRafflesNftAuctionV2(address);
|
|
158
|
+
}
|
|
159
|
+
async sendDeploy(provider, via, value, signature, wallet, queryId = 0n) {
|
|
160
|
+
await this.send(provider, via, value, header(1201893031, queryId).storeBuffer(signature).storeAddress(wallet).endCell());
|
|
161
|
+
}
|
|
162
|
+
async sendBid(provider, via, value, amount, queryId = 0n) {
|
|
163
|
+
await this.send(provider, via, value, header(1271600509, queryId).storeCoins(amount).endCell());
|
|
164
|
+
}
|
|
165
|
+
async sendCancellation(provider, via, value, queryId = 0n) {
|
|
166
|
+
await this.send(provider, via, value, header(1918180769, queryId).endCell());
|
|
167
|
+
}
|
|
168
|
+
async sendCheck(provider, queryId = 0n) {
|
|
169
|
+
await provider.external(header(1854740577, queryId).endCell());
|
|
170
|
+
}
|
|
171
|
+
async getContractData(provider) {
|
|
172
|
+
return this.get(provider, "get_contract_data");
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
var TonRafflesNftSwapV2 = class TonRafflesNftSwapV2 extends ContractWrapper {
|
|
176
|
+
static createFromAddress(address) {
|
|
177
|
+
return new TonRafflesNftSwapV2(address);
|
|
178
|
+
}
|
|
179
|
+
async sendDeploy(provider, via, value, signature, firstAssets, secondAssets, queryId = 0n) {
|
|
180
|
+
await this.send(provider, via, value, header(1725475106, queryId).storeBuffer(signature).storeDict(firstAssets).storeDict(secondAssets).endCell());
|
|
181
|
+
}
|
|
182
|
+
async sendReplenish(provider, via, value, queryId = 0n) {
|
|
183
|
+
await this.send(provider, via, value, header(476316250, queryId).endCell());
|
|
184
|
+
}
|
|
185
|
+
async sendCancel(provider, via, value, queryId = 0n) {
|
|
186
|
+
await this.send(provider, via, value, header(1918180769, queryId).endCell());
|
|
187
|
+
}
|
|
188
|
+
async getContractData(provider) {
|
|
189
|
+
return this.get(provider, "get_contract_data");
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
function buildTonRafflesAirdropHelperData(config) {
|
|
193
|
+
return beginCell().storeBit(0).storeAddress(config.airdrop).storeBuffer(config.proofHash, 32).storeUint(config.index, 256).endCell();
|
|
194
|
+
}
|
|
195
|
+
var TonRafflesAirdropHelper = class TonRafflesAirdropHelper extends ContractWrapper {
|
|
196
|
+
static createFromAddress(address) {
|
|
197
|
+
return new TonRafflesAirdropHelper(address);
|
|
198
|
+
}
|
|
199
|
+
static createFromConfig(config, code, workchain = 0) {
|
|
200
|
+
const init = {
|
|
201
|
+
code,
|
|
202
|
+
data: buildTonRafflesAirdropHelperData(config)
|
|
203
|
+
};
|
|
204
|
+
return new TonRafflesAirdropHelper(contractAddress(workchain, init), init);
|
|
205
|
+
}
|
|
206
|
+
async sendClaim(provider, queryId, proof) {
|
|
207
|
+
await provider.external(beginCell().storeUint(queryId, 64).storeRef(proof).endCell());
|
|
208
|
+
}
|
|
209
|
+
async getClaimed(provider) {
|
|
210
|
+
if ((await provider.getState()).state.type === "uninit") return false;
|
|
211
|
+
return this.get(provider, "get_claimed").then((stack) => stack.readBoolean());
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
const AIRDROP_ENTRY_VALUE = {
|
|
215
|
+
serialize: (entry, builder) => {
|
|
216
|
+
builder.storeAddress(entry.address).storeCoins(entry.amount);
|
|
217
|
+
},
|
|
218
|
+
parse: (slice) => ({
|
|
219
|
+
address: slice.loadAddress(),
|
|
220
|
+
amount: slice.loadCoins()
|
|
221
|
+
})
|
|
222
|
+
};
|
|
223
|
+
function buildTonRafflesAirdropEntries(entries) {
|
|
224
|
+
const dictionary = Dictionary.empty(Dictionary.Keys.BigUint(256), AIRDROP_ENTRY_VALUE);
|
|
225
|
+
for (const [index, entry] of entries.entries()) {
|
|
226
|
+
if (entry.amount < 0n || entry.amount >= 1n << 120n) throw new RangeError("airdrop amount must fit in TON coins");
|
|
227
|
+
dictionary.set(BigInt(index), entry);
|
|
228
|
+
}
|
|
229
|
+
return dictionary;
|
|
230
|
+
}
|
|
231
|
+
function buildTonRafflesScalableAirdropData(config) {
|
|
232
|
+
return beginCell().storeUint(0, 2).storeUint(uint(config.merkleRoot, 256, "merkleRoot"), 256).storeRef(config.helperCode).storeUint(uint(config.startTime, 64, "startTime"), 64).storeAddress(config.admin).storeUint(uint(config.nonce, 64, "nonce"), 64).endCell();
|
|
233
|
+
}
|
|
234
|
+
var TonRafflesScalableAirdrop = class TonRafflesScalableAirdrop extends ContractWrapper {
|
|
235
|
+
static createFromAddress(address) {
|
|
236
|
+
return new TonRafflesScalableAirdrop(address);
|
|
237
|
+
}
|
|
238
|
+
static createFromConfig(config, code, workchain = 0) {
|
|
239
|
+
const init = {
|
|
240
|
+
code,
|
|
241
|
+
data: buildTonRafflesScalableAirdropData(config)
|
|
242
|
+
};
|
|
243
|
+
return new TonRafflesScalableAirdrop(contractAddress(workchain, init), init);
|
|
244
|
+
}
|
|
245
|
+
async sendDeploy(provider, via, jettonWallet, value, queryId = 0n) {
|
|
246
|
+
await this.send(provider, via, value, header(1628218476, queryId).storeAddress(jettonWallet).endCell());
|
|
247
|
+
}
|
|
248
|
+
async sendWithdrawJettons(provider, via, amount, value, queryId = 0n) {
|
|
249
|
+
await this.send(provider, via, value, header(419795634, queryId).storeCoins(uint(amount, 120, "amount")).endCell());
|
|
250
|
+
}
|
|
251
|
+
};
|
|
252
|
+
function buildTonRafflesStakingHelperData(config) {
|
|
253
|
+
return beginCell().storeAddress(config.master).storeAddress(config.item).storeUint(0, 138).endCell();
|
|
254
|
+
}
|
|
255
|
+
var TonRafflesNftStakingHelper = class TonRafflesNftStakingHelper extends ContractWrapper {
|
|
256
|
+
static createFromAddress(address) {
|
|
257
|
+
return new TonRafflesNftStakingHelper(address);
|
|
258
|
+
}
|
|
259
|
+
static createFromConfig(config, code, workchain = 0) {
|
|
260
|
+
const init = {
|
|
261
|
+
code,
|
|
262
|
+
data: buildTonRafflesStakingHelperData(config)
|
|
263
|
+
};
|
|
264
|
+
return new TonRafflesNftStakingHelper(contractAddress(workchain, init), init);
|
|
265
|
+
}
|
|
266
|
+
async sendClaim(provider, via, value, returnItem, queryId = 0n) {
|
|
267
|
+
await this.send(provider, via, value, header(1972602775, queryId).storeBit(returnItem).endCell());
|
|
268
|
+
}
|
|
269
|
+
async getContractData(provider) {
|
|
270
|
+
return this.get(provider, "get_contract_data");
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
function buildOffchainProofDataToSign(task, user, referrer, validUntil) {
|
|
274
|
+
return beginCell().storeAddress(task).storeAddress(user).storeAddress(referrer).storeUint(validUntil, 64).endCell();
|
|
275
|
+
}
|
|
276
|
+
var TonRafflesOffchainProofTask = class TonRafflesOffchainProofTask extends ContractWrapper {
|
|
277
|
+
static createFromAddress(address) {
|
|
278
|
+
return new TonRafflesOffchainProofTask(address);
|
|
279
|
+
}
|
|
280
|
+
async sendClaim(provider, via, value, signature, signedData, queryId = 0n) {
|
|
281
|
+
await this.send(provider, via, value, header(1164612193, queryId).storeBuffer(signature).storeRef(signedData).endCell());
|
|
282
|
+
}
|
|
283
|
+
async sendServiceMessage(provider, via, value, message, mode, queryId = 0n) {
|
|
284
|
+
await this.send(provider, via, value, header(670822, queryId).storeRef(message).storeUint(mode, 8).endCell());
|
|
285
|
+
}
|
|
286
|
+
async sendWithdrawJettons(provider, via, value, amount, queryId = 0n) {
|
|
287
|
+
await this.send(provider, via, value, header(419795634, queryId).storeCoins(amount).endCell());
|
|
288
|
+
}
|
|
289
|
+
async getHelperAddress(provider, user) {
|
|
290
|
+
return (await this.get(provider, "get_stateinit_and_address_of_helper", [{
|
|
291
|
+
type: "slice",
|
|
292
|
+
cell: beginCell().storeAddress(user).endCell()
|
|
293
|
+
}])).readAddress();
|
|
294
|
+
}
|
|
295
|
+
async getContractData(provider) {
|
|
296
|
+
return this.get(provider, "get_contract_data");
|
|
297
|
+
}
|
|
298
|
+
};
|
|
299
|
+
var TonRafflesShoppingCart = class TonRafflesShoppingCart extends ContractWrapper {
|
|
300
|
+
static createFromAddress(address) {
|
|
301
|
+
return new TonRafflesShoppingCart(address);
|
|
302
|
+
}
|
|
303
|
+
async sendBuy(provider, via, value, queryId = 0n) {
|
|
304
|
+
await this.send(provider, via, value, header(1076821771, queryId).endCell());
|
|
305
|
+
}
|
|
306
|
+
};
|
|
307
|
+
var PizzaTonJettonLockerBill = class PizzaTonJettonLockerBill extends ContractWrapper {
|
|
308
|
+
static createFromAddress(address) {
|
|
309
|
+
return new PizzaTonJettonLockerBill(address);
|
|
310
|
+
}
|
|
311
|
+
async sendUnlock(provider, via, value) {
|
|
312
|
+
await this.send(provider, via, value, beginCell().storeUint(0, 32).storeStringTail("#unlock").endCell());
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
var PizzaTonJettonLockerCollection = class PizzaTonJettonLockerCollection extends ContractWrapper {
|
|
316
|
+
static createFromAddress(address) {
|
|
317
|
+
return new PizzaTonJettonLockerCollection(address);
|
|
318
|
+
}
|
|
319
|
+
async sendDeployNewNft(provider, via, value, passAmount, owner, campaignId, queryId = 0n, activeUntil = 0n) {
|
|
320
|
+
await this.send(provider, via, value, header(1, queryId).storeRef(beginCell().storeAddress(owner).storeUint(campaignId, 64).storeUint(activeUntil, 64).storeCoins(passAmount).endCell()).storeCoins(50000000n).endCell());
|
|
321
|
+
}
|
|
322
|
+
async sendChangeOwner(provider, via, owner, value, queryId = 0n) {
|
|
323
|
+
await this.send(provider, via, value, header(3, queryId).storeAddress(owner).endCell(), false);
|
|
324
|
+
}
|
|
325
|
+
async sendAddJettonWallet(provider, via, wallet, master, value, queryId = 0n) {
|
|
326
|
+
await this.send(provider, via, value, header(12, queryId).storeAddress(wallet).storeAddress(master).endCell());
|
|
327
|
+
}
|
|
328
|
+
async sendWithdrawBalance(provider, via, value, amount, queryId = 0n) {
|
|
329
|
+
await this.send(provider, via, value, header(15, queryId).storeCoins(amount).endCell());
|
|
330
|
+
}
|
|
331
|
+
async getWallets(provider) {
|
|
332
|
+
return this.get(provider, "get_wallets");
|
|
333
|
+
}
|
|
334
|
+
};
|
|
335
|
+
var TonRafflesNftItem = class TonRafflesNftItem extends ContractWrapper {
|
|
336
|
+
static createFromAddress(address) {
|
|
337
|
+
return new TonRafflesNftItem(address);
|
|
338
|
+
}
|
|
339
|
+
async sendTransfer(provider, via, value, newOwner, queryId = 0n, forwardAmount = 0n) {
|
|
340
|
+
await this.send(provider, via, value, beginCell().storeUint(NFT_OPCODES.transfer, 32).storeUint(queryId, 64).storeAddress(newOwner).storeAddress(via.address).storeBit(0).storeCoins(forwardAmount).storeBit(0).endCell());
|
|
341
|
+
}
|
|
342
|
+
async getOwner(provider) {
|
|
343
|
+
const data = await this.get(provider, "get_nft_data");
|
|
344
|
+
data.readBigNumber();
|
|
345
|
+
data.readBigNumber();
|
|
346
|
+
data.readAddress();
|
|
347
|
+
return data.readAddress();
|
|
348
|
+
}
|
|
349
|
+
};
|
|
350
|
+
var TonRafflesNftStakingMaster = class TonRafflesNftStakingMaster extends ContractWrapper {
|
|
351
|
+
static createFromAddress(address) {
|
|
352
|
+
return new TonRafflesNftStakingMaster(address);
|
|
353
|
+
}
|
|
354
|
+
async sendAdminJettonsWithdrawal(provider, via, value, amount, queryId = 0n) {
|
|
355
|
+
await this.send(provider, via, value, header(1335924424, queryId).storeCoins(amount).endCell());
|
|
356
|
+
}
|
|
357
|
+
async sendAdminAddItems(provider, via, value, items, queryId = 0n) {
|
|
358
|
+
await this.send(provider, via, value, header(39253649, queryId).storeDict(items).endCell());
|
|
359
|
+
}
|
|
360
|
+
async sendAdminRemoveItems(provider, via, value, items, queryId = 0n) {
|
|
361
|
+
await this.send(provider, via, value, header(1518001553, queryId).storeDict(items).endCell());
|
|
362
|
+
}
|
|
363
|
+
async getItems(provider) {
|
|
364
|
+
return this.get(provider, "get_items");
|
|
365
|
+
}
|
|
366
|
+
async getStakedItems(provider) {
|
|
367
|
+
return this.get(provider, "get_staked_items");
|
|
368
|
+
}
|
|
369
|
+
async getEstimatedReward(provider, item, elapsedSeconds) {
|
|
370
|
+
return (await this.get(provider, "get_estimated_reward", [{
|
|
371
|
+
type: "slice",
|
|
372
|
+
cell: beginCell().storeAddress(item).endCell()
|
|
373
|
+
}, {
|
|
374
|
+
type: "int",
|
|
375
|
+
value: elapsedSeconds
|
|
376
|
+
}])).readBigNumber();
|
|
377
|
+
}
|
|
378
|
+
};
|
|
379
|
+
var TonRafflesNftLendingMaster = class TonRafflesNftLendingMaster extends ContractWrapper {
|
|
380
|
+
static createFromAddress(address) {
|
|
381
|
+
return new TonRafflesNftLendingMaster(address);
|
|
382
|
+
}
|
|
383
|
+
async sendCancel(provider, via, value, queryId = 0n) {
|
|
384
|
+
await this.send(provider, via, value, header(1918180769, queryId).endCell());
|
|
385
|
+
}
|
|
386
|
+
async sendChangeData(provider, via, value, options, queryId = 0n) {
|
|
387
|
+
const body = header(1902174901, queryId).storeMaybeRef(options.jettonWallet ? beginCell().storeAddress(options.jettonWallet).endCell() : null).storeMaybeCoins(options.amount).storeMaybeUint(options.loanDuration, 64).storeMaybeCoins(options.aprAmount);
|
|
388
|
+
await this.send(provider, via, value, body.endCell());
|
|
389
|
+
}
|
|
390
|
+
async sendMakeOffer(provider, via, value, owner, offerAmount, aprAmount, loanDuration, queryId = 0n) {
|
|
391
|
+
await this.send(provider, via, value, header(743460397, queryId).storeAddress(owner).storeCoins(offerAmount).storeCoins(aprAmount).storeUint(loanDuration, 64).endCell());
|
|
392
|
+
}
|
|
393
|
+
async getContractData(provider) {
|
|
394
|
+
return this.get(provider, "get_contract_data");
|
|
395
|
+
}
|
|
396
|
+
};
|
|
397
|
+
//#endregion
|
|
398
|
+
export { PizzaTonJettonLockerBill, PizzaTonJettonLockerCollection, TON_RAFFLES_SOURCE_REVISIONS, TonRafflesAirdropHelper, TonRafflesJettonPricedNftSale, TonRafflesModernNftSale, TonRafflesNftAuctionV2, TonRafflesNftItem, TonRafflesNftLaunchpadSale, TonRafflesNftLendingMaster, TonRafflesNftStakingHelper, TonRafflesNftStakingMaster, TonRafflesNftSwapV2, TonRafflesOffchainProofTask, TonRafflesScalableAirdrop, TonRafflesShoppingCart, buildNftLaunchpadSaleData, buildOffchainProofDataToSign, buildTonRafflesAirdropEntries, buildTonRafflesAirdropHelperData, buildTonRafflesJettonSaleData, buildTonRafflesJettonSalePrices, buildTonRafflesModernSaleData, buildTonRafflesScalableAirdropData, buildTonRafflesStakingHelperData };
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import { buildJettonBurnBody, buildJettonTransferBody } from "../../jetton/index.mjs";
|
|
2
|
+
import { ContractWrapper } from "./base.mjs";
|
|
3
|
+
import { Address, Cell, ContractProvider, Sender } from "@ton/core";
|
|
4
|
+
//#region src/contracts/wrappers/tonresistor.d.ts
|
|
5
|
+
/** TONresistor bonding-curve source revision: https://github.com/TONresistor/bonding-curve-contracts */
|
|
6
|
+
export declare const TONRESISTOR_BONDING_CURVE_COMMIT = "5dbb20575fde5144d00c63f9d3099c0ac71bab95";
|
|
7
|
+
export declare const TONRESISTOR_OPCODES: {
|
|
8
|
+
readonly createLaunch: 2694881281;
|
|
9
|
+
readonly changeMasterAdmin: 2694881282;
|
|
10
|
+
readonly claimMasterAdmin: 2694881283;
|
|
11
|
+
readonly changeTreasury: 2694881284;
|
|
12
|
+
readonly withdrawProtocolFees: 2694881285;
|
|
13
|
+
readonly depositProtocolFees: 2694881286;
|
|
14
|
+
readonly reinitializeCurve: 2694881300;
|
|
15
|
+
readonly initializeCurve: 2694881296;
|
|
16
|
+
readonly buyJettons: 2694881297;
|
|
17
|
+
readonly graduate: 2694881298;
|
|
18
|
+
readonly flushFees: 2694881299;
|
|
19
|
+
readonly initPoolResult: 3457702871;
|
|
20
|
+
readonly transferNotification: 1935855772;
|
|
21
|
+
readonly internalTransfer: 395134233;
|
|
22
|
+
readonly askToTransfer: 260734629;
|
|
23
|
+
readonly askToBurn: 1499400124;
|
|
24
|
+
readonly mintNewJettons: 1680571655;
|
|
25
|
+
readonly dropMinterAdmin: 1949430305;
|
|
26
|
+
readonly changeMinterAdmin: 1694626644;
|
|
27
|
+
readonly claimMinterAdmin: 4220051737;
|
|
28
|
+
readonly changeMinterMetadata: 3414567170;
|
|
29
|
+
readonly upgradeMinterCode: 621336170;
|
|
30
|
+
readonly requestWalletAddress: 745978227;
|
|
31
|
+
readonly topUp: 3547469196;
|
|
32
|
+
readonly returnExcesses: 3576854235;
|
|
33
|
+
readonly jettonTransfer: 260734629;
|
|
34
|
+
readonly jettonBurn: 1499400124;
|
|
35
|
+
readonly burnNotification: 2078119902;
|
|
36
|
+
};
|
|
37
|
+
export interface TonResistorMasterConfig {
|
|
38
|
+
readonly admin: Address;
|
|
39
|
+
readonly treasury: Address;
|
|
40
|
+
readonly totalLaunches?: bigint;
|
|
41
|
+
readonly feesBalance?: bigint;
|
|
42
|
+
}
|
|
43
|
+
export declare function buildTonResistorMasterData(config: TonResistorMasterConfig): Cell;
|
|
44
|
+
export interface TonResistorMasterData {
|
|
45
|
+
readonly admin: Address;
|
|
46
|
+
readonly nextAdmin: Address | null;
|
|
47
|
+
readonly treasury: Address;
|
|
48
|
+
readonly totalLaunches: bigint;
|
|
49
|
+
readonly feesBalance: bigint;
|
|
50
|
+
}
|
|
51
|
+
export declare class TonResistorBondingCurveMaster extends ContractWrapper {
|
|
52
|
+
static createFromAddress(address: Address): TonResistorBondingCurveMaster;
|
|
53
|
+
static createFromConfig(config: TonResistorMasterConfig, code: Cell, workchain?: number): TonResistorBondingCurveMaster;
|
|
54
|
+
sendDeploy(provider: ContractProvider, via: Sender, value: bigint): Promise<void>;
|
|
55
|
+
sendCreateLaunch(provider: ContractProvider, via: Sender, value: bigint, metadata: Cell, salt: bigint, queryId?: bigint): Promise<void>;
|
|
56
|
+
sendChangeAdmin(provider: ContractProvider, via: Sender, value: bigint, newAdmin: Address, queryId?: bigint): Promise<void>;
|
|
57
|
+
sendClaimAdmin(provider: ContractProvider, via: Sender, value: bigint, queryId?: bigint): Promise<void>;
|
|
58
|
+
sendChangeTreasury(provider: ContractProvider, via: Sender, value: bigint, treasury: Address, queryId?: bigint): Promise<void>;
|
|
59
|
+
sendWithdrawProtocolFees(provider: ContractProvider, via: Sender, value: bigint, amount: bigint, queryId?: bigint): Promise<void>;
|
|
60
|
+
sendDepositProtocolFees(provider: ContractProvider, via: Sender, value: bigint, amount: bigint, creator: Address, salt: bigint, queryId?: bigint): Promise<void>;
|
|
61
|
+
sendReinitializeCurve(provider: ContractProvider, via: Sender, value: bigint, creator: Address, salt: bigint, metadata: Cell, queryId?: bigint): Promise<void>;
|
|
62
|
+
sendTopUp(provider: ContractProvider, via: Sender, value: bigint): Promise<void>;
|
|
63
|
+
getMasterData(provider: ContractProvider): Promise<TonResistorMasterData>;
|
|
64
|
+
getLaunchAddress(provider: ContractProvider, creator: Address, salt: bigint): Promise<Address>;
|
|
65
|
+
getStorageReserve(provider: ContractProvider): Promise<bigint>;
|
|
66
|
+
getVersion(provider: ContractProvider): Promise<bigint>;
|
|
67
|
+
}
|
|
68
|
+
export interface TonResistorLaunchConfig {
|
|
69
|
+
readonly master: Address;
|
|
70
|
+
readonly creator: Address;
|
|
71
|
+
readonly salt: bigint;
|
|
72
|
+
readonly curveSupply: bigint;
|
|
73
|
+
readonly dexReserveSupply: bigint;
|
|
74
|
+
readonly graduationThreshold: bigint;
|
|
75
|
+
}
|
|
76
|
+
export interface TonResistorCurveConfig {
|
|
77
|
+
readonly state: number;
|
|
78
|
+
readonly jettonMinter: Address | null;
|
|
79
|
+
readonly virtualTonReserve: bigint;
|
|
80
|
+
readonly realTonReserve?: bigint;
|
|
81
|
+
readonly curveJettonBalance?: bigint;
|
|
82
|
+
readonly feeAccrued?: bigint;
|
|
83
|
+
readonly migrationReserve?: bigint;
|
|
84
|
+
readonly config: TonResistorLaunchConfig;
|
|
85
|
+
readonly dropAdminPending?: boolean;
|
|
86
|
+
readonly pendingBuyTonInNet?: bigint;
|
|
87
|
+
}
|
|
88
|
+
export declare function buildTonResistorCurveData(config: TonResistorCurveConfig): Cell;
|
|
89
|
+
export declare function buildTonResistorLaunchConfig(config: TonResistorLaunchConfig): Cell;
|
|
90
|
+
export interface TonResistorCurveData {
|
|
91
|
+
readonly state: bigint;
|
|
92
|
+
readonly creator: Address;
|
|
93
|
+
readonly salt: bigint;
|
|
94
|
+
readonly jettonMinter: Address | null;
|
|
95
|
+
readonly virtualTonReserve: bigint;
|
|
96
|
+
readonly realTonReserve: bigint;
|
|
97
|
+
readonly curveJettonBalance: bigint;
|
|
98
|
+
readonly curveSupply: bigint;
|
|
99
|
+
readonly dexReserveSupply: bigint;
|
|
100
|
+
readonly graduationThreshold: bigint;
|
|
101
|
+
readonly feeAccrued: bigint;
|
|
102
|
+
readonly migrationReserve: bigint;
|
|
103
|
+
readonly dropAdminPending: boolean;
|
|
104
|
+
readonly pendingBuyTonInNet: bigint;
|
|
105
|
+
}
|
|
106
|
+
export type TonResistorForwardPayload = {
|
|
107
|
+
readonly type: "inline";
|
|
108
|
+
readonly cell: Cell;
|
|
109
|
+
} | {
|
|
110
|
+
readonly type: "ref";
|
|
111
|
+
readonly cell: Cell;
|
|
112
|
+
};
|
|
113
|
+
export declare class TonResistorBondingCurve extends ContractWrapper {
|
|
114
|
+
static createFromAddress(address: Address): TonResistorBondingCurve;
|
|
115
|
+
static createFromConfig(config: TonResistorCurveConfig, code: Cell, workchain?: number): TonResistorBondingCurve;
|
|
116
|
+
sendDeploy(provider: ContractProvider, via: Sender, value: bigint): Promise<void>;
|
|
117
|
+
sendInitialize(provider: ContractProvider, via: Sender, value: bigint, jettonMinter: Address, refundTo?: Address | null, queryId?: bigint): Promise<void>;
|
|
118
|
+
sendBuy(provider: ContractProvider, via: Sender, value: bigint, minJettonsOut: bigint, queryId?: bigint): Promise<void>;
|
|
119
|
+
sendFlushFees(provider: ContractProvider, via: Sender, value: bigint, queryId?: bigint): Promise<void>;
|
|
120
|
+
sendGraduate(provider: ContractProvider, via: Sender, value: bigint, queryId?: bigint): Promise<void>;
|
|
121
|
+
sendInitPoolResult(provider: ContractProvider, via: Sender, value: bigint, exitCode: bigint, customPayload?: Cell | null, queryId?: bigint): Promise<void>;
|
|
122
|
+
sendTransferNotification(provider: ContractProvider, via: Sender, value: bigint, jettonAmount: bigint, transferInitiator: Address | null, forwardPayload: TonResistorForwardPayload, queryId?: bigint): Promise<void>;
|
|
123
|
+
sendTopUp(provider: ContractProvider, via: Sender, value: bigint): Promise<void>;
|
|
124
|
+
getCurveData(provider: ContractProvider): Promise<TonResistorCurveData>;
|
|
125
|
+
}
|
|
126
|
+
export interface TonResistorJettonWalletConfig {
|
|
127
|
+
readonly balance: bigint;
|
|
128
|
+
readonly owner: Address;
|
|
129
|
+
readonly minter: Address;
|
|
130
|
+
}
|
|
131
|
+
export declare function buildTonResistorJettonWalletData(config: TonResistorJettonWalletConfig): Cell;
|
|
132
|
+
export declare class TonResistorJettonWallet extends ContractWrapper {
|
|
133
|
+
static createFromAddress(address: Address): TonResistorJettonWallet;
|
|
134
|
+
static createFromConfig(config: TonResistorJettonWalletConfig, code: Cell, workchain?: number): TonResistorJettonWallet;
|
|
135
|
+
sendAskToTransfer(provider: ContractProvider, via: Sender, value: bigint, input: {
|
|
136
|
+
readonly amount: bigint;
|
|
137
|
+
readonly recipient: Address;
|
|
138
|
+
readonly excessesTo?: Address | null;
|
|
139
|
+
readonly customPayload?: Cell | null;
|
|
140
|
+
readonly forwardAmount: bigint;
|
|
141
|
+
readonly forwardPayload: TonResistorForwardPayload;
|
|
142
|
+
readonly queryId?: bigint;
|
|
143
|
+
}): Promise<void>;
|
|
144
|
+
sendAskToBurn(provider: ContractProvider, via: Sender, value: bigint, amount: bigint, excessesTo?: Address | null, customPayload?: Cell | null, queryId?: bigint): Promise<void>;
|
|
145
|
+
sendInternalTransfer(provider: ContractProvider, via: Sender, value: bigint, input: {
|
|
146
|
+
readonly amount: bigint;
|
|
147
|
+
readonly initiator?: Address | null;
|
|
148
|
+
readonly excessesTo?: Address | null;
|
|
149
|
+
readonly forwardAmount: bigint;
|
|
150
|
+
readonly forwardPayload: TonResistorForwardPayload;
|
|
151
|
+
readonly queryId?: bigint;
|
|
152
|
+
}): Promise<void>;
|
|
153
|
+
sendTopUp(provider: ContractProvider, via: Sender, value: bigint): Promise<void>;
|
|
154
|
+
getWalletData(provider: ContractProvider): Promise<{
|
|
155
|
+
balance: bigint;
|
|
156
|
+
owner: Address;
|
|
157
|
+
minter: Address;
|
|
158
|
+
walletCode: Cell;
|
|
159
|
+
}>;
|
|
160
|
+
}
|
|
161
|
+
export declare class TonResistorJettonMinter extends ContractWrapper {
|
|
162
|
+
static createFromAddress(address: Address): TonResistorJettonMinter;
|
|
163
|
+
sendMint(provider: ContractProvider, via: Sender, value: bigint, input: {
|
|
164
|
+
readonly recipient: Address;
|
|
165
|
+
readonly tonAmount: bigint;
|
|
166
|
+
readonly internalTransfer: Cell;
|
|
167
|
+
readonly queryId?: bigint;
|
|
168
|
+
}): Promise<void>;
|
|
169
|
+
sendRequestWalletAddress(provider: ContractProvider, via: Sender, value: bigint, owner: Address, includeOwnerAddress: boolean, queryId?: bigint): Promise<void>;
|
|
170
|
+
sendChangeAdmin(provider: ContractProvider, via: Sender, value: bigint, admin: Address, queryId?: bigint): Promise<void>;
|
|
171
|
+
sendClaimAdmin(provider: ContractProvider, via: Sender, value: bigint, queryId?: bigint): Promise<void>;
|
|
172
|
+
sendDropAdmin(provider: ContractProvider, via: Sender, value: bigint, queryId?: bigint): Promise<void>;
|
|
173
|
+
sendChangeMetadata(provider: ContractProvider, via: Sender, value: bigint, metadata: Cell, queryId?: bigint): Promise<void>;
|
|
174
|
+
sendUpgradeCode(provider: ContractProvider, via: Sender, value: bigint, newData: Cell, newCode: Cell, queryId?: bigint): Promise<void>;
|
|
175
|
+
sendBurnNotification(provider: ContractProvider, via: Sender, value: bigint, amount: bigint, burnInitiator: Address, excessesTo?: Address | null, queryId?: bigint): Promise<void>;
|
|
176
|
+
sendTopUp(provider: ContractProvider, via: Sender, value: bigint): Promise<void>;
|
|
177
|
+
getJettonData(provider: ContractProvider): Promise<{
|
|
178
|
+
totalSupply: bigint;
|
|
179
|
+
mintable: boolean;
|
|
180
|
+
admin: Address | null;
|
|
181
|
+
content: Cell;
|
|
182
|
+
walletCode: Cell;
|
|
183
|
+
}>;
|
|
184
|
+
getWalletAddress(provider: ContractProvider, owner: Address): Promise<Address>;
|
|
185
|
+
getNextAdmin(provider: ContractProvider): Promise<Address | null>;
|
|
186
|
+
}
|
|
187
|
+
export declare function buildTonResistorJettonTransfer(input: Parameters<typeof buildJettonTransferBody>[0]): Cell;
|
|
188
|
+
export declare function buildTonResistorJettonBurn(input: Parameters<typeof buildJettonBurnBody>[0]): Cell;
|
|
189
|
+
//#endregion
|