@tonappchain/sdk 0.7.3-rc8 → 0.8.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/dist/artifacts/dev/tac/internal/artifacts/contracts/interfaces/ICrossChainLayer.sol/ICrossChainLayer.json +0 -7
- package/dist/artifacts/dev/tac/internal/artifacts/contracts/interfaces/ISettings.sol/ISettings.json +0 -7
- package/dist/artifacts/dev/tac/internal/artifacts/contracts/interfaces/ITokenUtils.sol/ITokenUtils.json +0 -7
- package/dist/artifacts/dev/tac/internal/artifacts/contracts/smart-account/interfaces/ISAFactory.sol/ISAFactory.json +0 -7
- package/dist/artifacts/dev/tac/internal/typechain-types/contracts/interfaces/ICrossChainLayer.d.ts +1 -5
- package/dist/artifacts/dev/tac/internal/typechain-types/contracts/interfaces/ISettings.d.ts +1 -5
- package/dist/artifacts/dev/tac/internal/typechain-types/contracts/interfaces/ITokenUtils.d.ts +1 -5
- package/dist/artifacts/dev/tac/internal/typechain-types/contracts/smart-account/interfaces/ISAFactory.d.ts +1 -5
- package/dist/artifacts/dev/ton/internal/build/Settings.compiled.json +1 -1
- package/dist/artifacts/dev/ton/internal/wrappers/Settings.d.ts +1 -0
- package/dist/artifacts/dev/ton/internal/wrappers/Settings.js +11 -7
- package/dist/artifacts/index.d.ts +5 -3
- package/dist/artifacts/index.js +6 -3
- package/dist/artifacts/mainnet/tac/internal/artifacts/contracts/interfaces/ICrossChainLayer.sol/ICrossChainLayer.json +0 -7
- package/dist/artifacts/mainnet/tac/internal/artifacts/contracts/interfaces/ISettings.sol/ISettings.json +0 -7
- package/dist/artifacts/mainnet/tac/internal/artifacts/contracts/interfaces/ITokenUtils.sol/ITokenUtils.json +0 -7
- package/dist/artifacts/mainnet/tac/internal/artifacts/contracts/smart-account/interfaces/ISAFactory.sol/ISAFactory.json +0 -7
- package/dist/artifacts/mainnet/tac/internal/typechain-types/contracts/interfaces/ICrossChainLayer.d.ts +1 -5
- package/dist/artifacts/mainnet/tac/internal/typechain-types/contracts/interfaces/ISettings.d.ts +1 -5
- package/dist/artifacts/mainnet/tac/internal/typechain-types/contracts/interfaces/ITokenUtils.d.ts +1 -5
- package/dist/artifacts/mainnet/tac/internal/typechain-types/contracts/smart-account/interfaces/ISAFactory.d.ts +1 -5
- package/dist/artifacts/mainnet/ton/internal/build/CrossChainLayer.compiled.json +1 -1
- package/dist/artifacts/mainnet/ton/internal/build/Executor.compiled.json +1 -1
- package/dist/artifacts/mainnet/ton/internal/build/JettonMinter.compiled.json +1 -1
- package/dist/artifacts/mainnet/ton/internal/build/JettonProxy.compiled.json +1 -1
- package/dist/artifacts/mainnet/ton/internal/build/JettonWallet.compiled.json +1 -1
- package/dist/artifacts/mainnet/ton/internal/build/NFTCollection.compiled.json +1 -1
- package/dist/artifacts/mainnet/ton/internal/build/NFTItem.compiled.json +1 -1
- package/dist/artifacts/mainnet/ton/internal/build/NFTProxy.compiled.json +1 -1
- package/dist/artifacts/mainnet/ton/internal/build/Settings.compiled.json +1 -1
- package/dist/artifacts/mainnet/ton/internal/wrappers/CrossChainLayer.d.ts +65 -6
- package/dist/artifacts/mainnet/ton/internal/wrappers/CrossChainLayer.js +169 -18
- package/dist/artifacts/mainnet/ton/internal/wrappers/JettonMinter.d.ts +4 -2
- package/dist/artifacts/mainnet/ton/internal/wrappers/JettonMinter.js +5 -3
- package/dist/artifacts/mainnet/ton/internal/wrappers/JettonProxy.d.ts +9 -0
- package/dist/artifacts/mainnet/ton/internal/wrappers/JettonProxy.js +11 -2
- package/dist/artifacts/mainnet/ton/internal/wrappers/JettonWallet.d.ts +7 -0
- package/dist/artifacts/mainnet/ton/internal/wrappers/JettonWallet.js +9 -2
- package/dist/artifacts/mainnet/ton/internal/wrappers/NFTCollection.d.ts +11 -1
- package/dist/artifacts/mainnet/ton/internal/wrappers/NFTCollection.js +17 -5
- package/dist/artifacts/mainnet/ton/internal/wrappers/NFTItem.d.ts +9 -1
- package/dist/artifacts/mainnet/ton/internal/wrappers/NFTItem.js +15 -5
- package/dist/artifacts/mainnet/ton/internal/wrappers/NFTProxy.d.ts +9 -1
- package/dist/artifacts/mainnet/ton/internal/wrappers/NFTProxy.js +16 -6
- package/dist/artifacts/mainnet/ton/internal/wrappers/Settings.d.ts +2 -0
- package/dist/artifacts/mainnet/ton/internal/wrappers/Settings.js +11 -6
- package/dist/artifacts/mainnet/ton/internal/wrappers/utils/CrossChainLayerPayload.d.ts +10 -0
- package/dist/artifacts/mainnet/ton/internal/wrappers/utils/CrossChainLayerPayload.js +24 -0
- package/dist/artifacts/mainnet/ton/internal/wrappers/utils/MerkleRoots.d.ts +2 -1
- package/dist/artifacts/mainnet/ton/internal/wrappers/utils/MerkleRoots.js +9 -1
- package/dist/artifacts/testnet/tac/internal/artifacts/contracts/interfaces/ICrossChainLayer.sol/ICrossChainLayer.json +0 -7
- package/dist/artifacts/testnet/tac/internal/artifacts/contracts/interfaces/ISettings.sol/ISettings.json +0 -7
- package/dist/artifacts/testnet/tac/internal/artifacts/contracts/interfaces/ITokenUtils.sol/ITokenUtils.json +0 -7
- package/dist/artifacts/testnet/tac/internal/artifacts/contracts/smart-account/interfaces/ISAFactory.sol/ISAFactory.json +0 -7
- package/dist/artifacts/testnet/tac/internal/typechain-types/contracts/interfaces/ICrossChainLayer.d.ts +1 -5
- package/dist/artifacts/testnet/tac/internal/typechain-types/contracts/interfaces/ISettings.d.ts +1 -5
- package/dist/artifacts/testnet/tac/internal/typechain-types/contracts/interfaces/ITokenUtils.d.ts +1 -5
- package/dist/artifacts/testnet/tac/internal/typechain-types/contracts/smart-account/interfaces/ISAFactory.d.ts +1 -5
- package/dist/artifacts/testnet/ton/internal/build/Settings.compiled.json +1 -1
- package/dist/artifacts/testnet/ton/internal/wrappers/Settings.d.ts +1 -0
- package/dist/artifacts/testnet/ton/internal/wrappers/Settings.js +11 -7
- package/dist/src/adapters/RetryableContractOpener.js +5 -2
- package/dist/src/adapters/ToncenterV3Indexer.js +1 -1
- package/dist/src/assets/AssetCache.d.ts +4 -4
- package/dist/src/assets/AssetCache.js +11 -6
- package/dist/src/assets/AssetFactory.js +2 -2
- package/dist/src/errors/index.d.ts +1 -1
- package/dist/src/errors/index.js +2 -1
- package/dist/src/errors/instances.d.ts +1 -0
- package/dist/src/errors/instances.js +3 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +3 -1
- package/dist/src/interfaces/IConfiguration.d.ts +2 -2
- package/dist/src/sdk/Artifacts.d.ts +3 -0
- package/dist/src/sdk/Artifacts.js +17 -0
- package/dist/src/sdk/Configuration.d.ts +4 -4
- package/dist/src/sdk/Configuration.js +3 -3
- package/dist/src/sdk/Consts.d.ts +0 -1
- package/dist/src/sdk/Consts.js +1 -2
- package/dist/src/sdk/LiteSequencerClient.js +2 -1
- package/dist/src/sdk/StartTracking.js +2 -2
- package/dist/src/sdk/TACTransactionManager.js +5 -5
- package/dist/src/sdk/TONTransactionManager.js +23 -21
- package/dist/src/sdk/TacExplorerClient.js +4 -3
- package/dist/src/sdk/TacSdk.js +2 -15
- package/dist/src/sdk/TxFinalizer.js +1 -1
- package/dist/src/sdk/Utils.js +37 -4
- package/dist/src/structs/Struct.d.ts +4 -4
- package/package.json +1 -1
|
@@ -189,5 +189,12 @@ class JettonWallet {
|
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
exports.JettonWallet = JettonWallet;
|
|
192
|
-
JettonWallet.
|
|
193
|
-
JettonWallet.
|
|
192
|
+
JettonWallet.mintAfterErrorGasConsumption = 9654n;
|
|
193
|
+
JettonWallet.burnNotificationGasConsumption = 10357n;
|
|
194
|
+
JettonWallet.nftBurnGasConsumption = 11552n;
|
|
195
|
+
JettonWallet.receiveTransferGasConsumption = 11427n;
|
|
196
|
+
JettonWallet.sendTransferGasConsumption = 10669n;
|
|
197
|
+
JettonWallet.burnGasConsumption = 8653n;
|
|
198
|
+
JettonWallet.storageStats = new GasUtils_1.StorageStats(949n, 3n);
|
|
199
|
+
JettonWallet.stateInitStats = new GasUtils_1.StorageStats(847n, 3n);
|
|
200
|
+
JettonWallet.storageDuration = 5n * 365n * 24n * 3600n;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Address, Cell, Contract, ContractProvider, Sender } from '@ton/core';
|
|
2
|
+
import { StorageStats } from './utils/GasUtils';
|
|
2
3
|
export declare const NFTCollectionOpCodes: {
|
|
3
4
|
admin_deployNFTItem: number;
|
|
4
5
|
admin_batchDeployNFTItems: number;
|
|
@@ -33,6 +34,14 @@ export declare class NFTCollection implements Contract {
|
|
|
33
34
|
code: Cell;
|
|
34
35
|
data: Cell;
|
|
35
36
|
} | undefined;
|
|
37
|
+
static stateInitStats: StorageStats;
|
|
38
|
+
static handleErrorNotificationGasConsumption: bigint;
|
|
39
|
+
static transferGasConsumption: bigint;
|
|
40
|
+
static burnGasConsumption: bigint;
|
|
41
|
+
static storageStats: StorageStats;
|
|
42
|
+
static initGasConsumption: bigint;
|
|
43
|
+
static nftHandleErrorNotificationGasConsumption: bigint;
|
|
44
|
+
static nftTransferGasConsumption: bigint;
|
|
36
45
|
constructor(address: Address, init?: {
|
|
37
46
|
code: Cell;
|
|
38
47
|
data: Cell;
|
|
@@ -40,13 +49,14 @@ export declare class NFTCollection implements Contract {
|
|
|
40
49
|
static createFromAddress(address: Address): NFTCollection;
|
|
41
50
|
static createFromConfig(config: NFTCollectionConfig, code: Cell, workchain?: number): NFTCollection;
|
|
42
51
|
sendDeploy(provider: ContractProvider, via: Sender, value: bigint): Promise<void>;
|
|
43
|
-
static deployNFTItemMessage(queryId: number | bigint, itemIndex: number, itemOwner: Address, nftContent: Cell, maybeNewContent?: Cell): Cell;
|
|
52
|
+
static deployNFTItemMessage(queryId: number | bigint, itemIndex: number, itemOwner: Address, nftContent: Cell, maybeNewContent?: Cell, forwardPayload?: Cell): Cell;
|
|
44
53
|
sendDeployNFTItem(provider: ContractProvider, via: Sender, value: bigint, params: {
|
|
45
54
|
queryId?: number | bigint;
|
|
46
55
|
itemIndex: number;
|
|
47
56
|
itemOwner: Address;
|
|
48
57
|
nftContent: Cell;
|
|
49
58
|
maybeNewContent?: Cell;
|
|
59
|
+
forwardPayload?: Cell;
|
|
50
60
|
}): Promise<void>;
|
|
51
61
|
static changeAdminMessage(newAdmin: Address | null, queryId: number | bigint): Cell;
|
|
52
62
|
sendChangeAdmin(provider: ContractProvider, via: Sender, value: bigint, params: {
|
|
@@ -4,6 +4,7 @@ exports.NFTCollection = exports.NFTCollectionErrors = exports.NFTCollectionOpCod
|
|
|
4
4
|
exports.nftCollectionConfigToCell = nftCollectionConfigToCell;
|
|
5
5
|
const core_1 = require("@ton/core");
|
|
6
6
|
const Constants_1 = require("./Constants");
|
|
7
|
+
const GasUtils_1 = require("./utils/GasUtils");
|
|
7
8
|
exports.NFTCollectionOpCodes = {
|
|
8
9
|
admin_deployNFTItem: 0xfdba5d5f,
|
|
9
10
|
admin_batchDeployNFTItems: 0x909d579b,
|
|
@@ -47,20 +48,23 @@ class NFTCollection {
|
|
|
47
48
|
body: (0, core_1.beginCell)().endCell(),
|
|
48
49
|
});
|
|
49
50
|
}
|
|
50
|
-
static deployNFTItemMessage(queryId, itemIndex, itemOwner, nftContent, maybeNewContent) {
|
|
51
|
-
|
|
51
|
+
static deployNFTItemMessage(queryId, itemIndex, itemOwner, nftContent, maybeNewContent, forwardPayload) {
|
|
52
|
+
const msg = (0, core_1.beginCell)()
|
|
52
53
|
.storeUint(exports.NFTCollectionOpCodes.admin_deployNFTItem, 32)
|
|
53
54
|
.storeUint(queryId, 64)
|
|
54
55
|
.storeUint(itemIndex, 256)
|
|
55
56
|
.storeAddress(itemOwner)
|
|
56
57
|
.storeRef(nftContent)
|
|
57
|
-
.storeMaybeRef(maybeNewContent)
|
|
58
|
-
|
|
58
|
+
.storeMaybeRef(maybeNewContent);
|
|
59
|
+
if (forwardPayload) {
|
|
60
|
+
msg.storeMaybeRef(forwardPayload);
|
|
61
|
+
}
|
|
62
|
+
return msg.endCell();
|
|
59
63
|
}
|
|
60
64
|
async sendDeployNFTItem(provider, via, value, params) {
|
|
61
65
|
await provider.internal(via, {
|
|
62
66
|
sendMode: core_1.SendMode.PAY_GAS_SEPARATELY,
|
|
63
|
-
body: NFTCollection.deployNFTItemMessage(params.queryId ?? 0, params.itemIndex, params.itemOwner, params.nftContent, params.maybeNewContent),
|
|
67
|
+
body: NFTCollection.deployNFTItemMessage(params.queryId ?? 0, params.itemIndex, params.itemOwner, params.nftContent, params.maybeNewContent, params.forwardPayload),
|
|
64
68
|
value,
|
|
65
69
|
});
|
|
66
70
|
}
|
|
@@ -149,3 +153,11 @@ class NFTCollection {
|
|
|
149
153
|
}
|
|
150
154
|
}
|
|
151
155
|
exports.NFTCollection = NFTCollection;
|
|
156
|
+
NFTCollection.stateInitStats = new GasUtils_1.StorageStats(1328n, 5n);
|
|
157
|
+
NFTCollection.handleErrorNotificationGasConsumption = 4638n;
|
|
158
|
+
NFTCollection.transferGasConsumption = 11722n;
|
|
159
|
+
NFTCollection.burnGasConsumption = 11552n;
|
|
160
|
+
NFTCollection.storageStats = new GasUtils_1.StorageStats(7432n, 24n);
|
|
161
|
+
NFTCollection.initGasConsumption = 7546n;
|
|
162
|
+
NFTCollection.nftHandleErrorNotificationGasConsumption = 4638n;
|
|
163
|
+
NFTCollection.nftTransferGasConsumption = 11722n;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Address, Cell, Contract, ContractProvider, Sender } from '@ton/core';
|
|
2
|
+
import { StorageStats } from './utils/GasUtils';
|
|
2
3
|
export declare const NFTItemOpCodes: {
|
|
3
4
|
owner_transfer: number;
|
|
4
5
|
owner_burn: number;
|
|
@@ -41,6 +42,12 @@ export declare class NFTItem implements Contract {
|
|
|
41
42
|
code: Cell;
|
|
42
43
|
data: Cell;
|
|
43
44
|
} | undefined;
|
|
45
|
+
static stateInitStats: StorageStats;
|
|
46
|
+
static storageStats: StorageStats;
|
|
47
|
+
static handleErrorNotificationGasConsumption: bigint;
|
|
48
|
+
static transferGasConsumption: bigint;
|
|
49
|
+
static burnGasConsumption: bigint;
|
|
50
|
+
static initGasConsumption: bigint;
|
|
44
51
|
constructor(address: Address, init?: {
|
|
45
52
|
code: Cell;
|
|
46
53
|
data: Cell;
|
|
@@ -64,11 +71,12 @@ export declare class NFTItem implements Contract {
|
|
|
64
71
|
crosschainPayload?: Cell;
|
|
65
72
|
feeData?: Cell;
|
|
66
73
|
}): Promise<void>;
|
|
67
|
-
static initMessage(queryId: number | bigint, ownerAddress: Address, content: Cell): Cell;
|
|
74
|
+
static initMessage(queryId: number | bigint, ownerAddress: Address, content: Cell, forwardPayload?: Cell): Cell;
|
|
68
75
|
sendInit(provider: ContractProvider, via: Sender, value: bigint, params: {
|
|
69
76
|
queryId?: number | bigint;
|
|
70
77
|
ownerAddress: Address;
|
|
71
78
|
content: Cell;
|
|
79
|
+
forwardPayload?: Cell;
|
|
72
80
|
}): Promise<void>;
|
|
73
81
|
static getStaticDataMessage(queryId: number | bigint): Cell;
|
|
74
82
|
sendGetStaticData(provider: ContractProvider, via: Sender, value: bigint, params: {
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.NFTItem = exports.NFTItemErrors = exports.NFTItemOpCodes = void 0;
|
|
4
4
|
exports.nftItemConfigToCell = nftItemConfigToCell;
|
|
5
5
|
const core_1 = require("@ton/core");
|
|
6
|
+
const GasUtils_1 = require("./utils/GasUtils");
|
|
6
7
|
exports.NFTItemOpCodes = {
|
|
7
8
|
owner_transfer: 0x5fcc3d14,
|
|
8
9
|
owner_burn: 0x3b390ce,
|
|
@@ -94,18 +95,21 @@ class NFTItem {
|
|
|
94
95
|
value,
|
|
95
96
|
});
|
|
96
97
|
}
|
|
97
|
-
static initMessage(queryId, ownerAddress, content) {
|
|
98
|
-
|
|
98
|
+
static initMessage(queryId, ownerAddress, content, forwardPayload) {
|
|
99
|
+
const msg = (0, core_1.beginCell)()
|
|
99
100
|
.storeUint(exports.NFTItemOpCodes.collection_init, 32)
|
|
100
101
|
.storeUint(queryId, 64)
|
|
101
102
|
.storeAddress(ownerAddress)
|
|
102
|
-
.storeRef(content)
|
|
103
|
-
|
|
103
|
+
.storeRef(content);
|
|
104
|
+
if (forwardPayload) {
|
|
105
|
+
msg.storeMaybeRef(forwardPayload);
|
|
106
|
+
}
|
|
107
|
+
return msg.endCell();
|
|
104
108
|
}
|
|
105
109
|
async sendInit(provider, via, value, params) {
|
|
106
110
|
await provider.internal(via, {
|
|
107
111
|
sendMode: core_1.SendMode.PAY_GAS_SEPARATELY,
|
|
108
|
-
body: NFTItem.initMessage(params.queryId ?? 0, params.ownerAddress, params.content),
|
|
112
|
+
body: NFTItem.initMessage(params.queryId ?? 0, params.ownerAddress, params.content, params.forwardPayload),
|
|
109
113
|
value,
|
|
110
114
|
});
|
|
111
115
|
}
|
|
@@ -146,3 +150,9 @@ class NFTItem {
|
|
|
146
150
|
}
|
|
147
151
|
}
|
|
148
152
|
exports.NFTItem = NFTItem;
|
|
153
|
+
NFTItem.stateInitStats = new GasUtils_1.StorageStats(1328n, 5n);
|
|
154
|
+
NFTItem.storageStats = new GasUtils_1.StorageStats(1422n, 5n);
|
|
155
|
+
NFTItem.handleErrorNotificationGasConsumption = 4638n;
|
|
156
|
+
NFTItem.transferGasConsumption = 11722n;
|
|
157
|
+
NFTItem.burnGasConsumption = 11552n;
|
|
158
|
+
NFTItem.initGasConsumption = 7546n;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Address, Cell, Contract, ContractProvider, Sender } from '@ton/core';
|
|
2
|
+
import { StorageStats } from './utils/GasUtils';
|
|
2
3
|
export declare const NFTItemTransferOperation = 2332633442;
|
|
3
4
|
export declare const NFTProxyOpCodes: {
|
|
4
5
|
admin_changeAdmin: number;
|
|
@@ -32,6 +33,12 @@ export declare class NFTProxy implements Contract {
|
|
|
32
33
|
code: Cell;
|
|
33
34
|
data: Cell;
|
|
34
35
|
} | undefined;
|
|
36
|
+
static estimatedNftItemCells: bigint;
|
|
37
|
+
static estimatedNftItemBits: bigint;
|
|
38
|
+
static storageStats: StorageStats;
|
|
39
|
+
static ownershipAssignedGasConsumption: bigint;
|
|
40
|
+
static errorNotificationGasConsumption: bigint;
|
|
41
|
+
static msgToTvmGasConsumption: bigint;
|
|
35
42
|
constructor(address: Address, init?: {
|
|
36
43
|
code: Cell;
|
|
37
44
|
data: Cell;
|
|
@@ -46,12 +53,13 @@ export declare class NFTProxy implements Contract {
|
|
|
46
53
|
itemAddress: Address;
|
|
47
54
|
owner: Address;
|
|
48
55
|
}): Promise<void>;
|
|
49
|
-
static evmMsgToTVMProxyMessage(queryId: number | bigint, itemAddress: Address, newOwner: Address, forwardAmount: bigint): Cell;
|
|
56
|
+
static evmMsgToTVMProxyMessage(queryId: number | bigint, itemAddress: Address, newOwner: Address, forwardAmount: bigint, forwardPayload?: Cell): Cell;
|
|
50
57
|
sendEVMMsgToTVMProxy(provider: ContractProvider, via: Sender, value: bigint, params: {
|
|
51
58
|
queryId?: number | bigint;
|
|
52
59
|
itemAddress: Address;
|
|
53
60
|
newOwner: Address;
|
|
54
61
|
forwardAmount: bigint;
|
|
62
|
+
forwardPayload?: Cell;
|
|
55
63
|
}): Promise<void>;
|
|
56
64
|
static ownershipAssignedMessage(queryId: number | bigint, itemOwner: Address, crosschainTonAmount: bigint, evmData?: Cell, feeData?: Cell): Cell;
|
|
57
65
|
sendOwnershipAssigned(provider: ContractProvider, via: Sender, value: bigint, params: {
|
|
@@ -4,10 +4,11 @@ exports.NFTProxy = exports.NFTProxyErrors = exports.NFTProxyOpCodes = exports.NF
|
|
|
4
4
|
exports.nftProxyConfigToCell = nftProxyConfigToCell;
|
|
5
5
|
const core_1 = require("@ton/core");
|
|
6
6
|
const Constants_1 = require("./Constants");
|
|
7
|
+
const GasUtils_1 = require("./utils/GasUtils");
|
|
7
8
|
exports.NFTItemTransferOperation = 0x8b092962;
|
|
8
9
|
exports.NFTProxyOpCodes = {
|
|
9
10
|
admin_changeAdmin: 0x581879bc,
|
|
10
|
-
admin_updateCode:
|
|
11
|
+
admin_updateCode: 0x6e7145f9,
|
|
11
12
|
ccl_evmMsgToTVMProxy: 0x7817b330,
|
|
12
13
|
ccl_errorNotification: 0xae7df95b,
|
|
13
14
|
ccl_tvmMsgToEVM: 0x6c582059,
|
|
@@ -68,19 +69,22 @@ class NFTProxy {
|
|
|
68
69
|
value,
|
|
69
70
|
});
|
|
70
71
|
}
|
|
71
|
-
static evmMsgToTVMProxyMessage(queryId, itemAddress, newOwner, forwardAmount) {
|
|
72
|
-
|
|
72
|
+
static evmMsgToTVMProxyMessage(queryId, itemAddress, newOwner, forwardAmount, forwardPayload) {
|
|
73
|
+
const msg = (0, core_1.beginCell)()
|
|
73
74
|
.storeUint(exports.NFTProxyOpCodes.ccl_evmMsgToTVMProxy, Constants_1.Params.bitsize.op)
|
|
74
75
|
.storeUint(queryId, Constants_1.Params.bitsize.queryId)
|
|
75
76
|
.storeAddress(itemAddress)
|
|
76
77
|
.storeAddress(newOwner)
|
|
77
|
-
.storeCoins(forwardAmount)
|
|
78
|
-
|
|
78
|
+
.storeCoins(forwardAmount);
|
|
79
|
+
if (forwardPayload) {
|
|
80
|
+
msg.storeMaybeRef(forwardPayload);
|
|
81
|
+
}
|
|
82
|
+
return msg.endCell();
|
|
79
83
|
}
|
|
80
84
|
async sendEVMMsgToTVMProxy(provider, via, value, params) {
|
|
81
85
|
await provider.internal(via, {
|
|
82
86
|
sendMode: core_1.SendMode.PAY_GAS_SEPARATELY,
|
|
83
|
-
body: NFTProxy.evmMsgToTVMProxyMessage(params.queryId ?? 0, params.itemAddress, params.newOwner, params.forwardAmount),
|
|
87
|
+
body: NFTProxy.evmMsgToTVMProxyMessage(params.queryId ?? 0, params.itemAddress, params.newOwner, params.forwardAmount, params.forwardPayload),
|
|
84
88
|
value,
|
|
85
89
|
});
|
|
86
90
|
}
|
|
@@ -155,3 +159,9 @@ class NFTProxy {
|
|
|
155
159
|
}
|
|
156
160
|
}
|
|
157
161
|
exports.NFTProxy = NFTProxy;
|
|
162
|
+
NFTProxy.estimatedNftItemCells = 25n;
|
|
163
|
+
NFTProxy.estimatedNftItemBits = 9877n;
|
|
164
|
+
NFTProxy.storageStats = new GasUtils_1.StorageStats(7680n, 15n);
|
|
165
|
+
NFTProxy.ownershipAssignedGasConsumption = 7688n;
|
|
166
|
+
NFTProxy.errorNotificationGasConsumption = 4737n;
|
|
167
|
+
NFTProxy.msgToTvmGasConsumption = 5610n;
|
|
@@ -45,6 +45,7 @@ export declare const SettingsErrors: {
|
|
|
45
45
|
notEnoughTon: number;
|
|
46
46
|
};
|
|
47
47
|
export declare function settingsConfigToCell(config: SettingsConfig): Cell;
|
|
48
|
+
export declare function createSettingsSetValueBody(params: SendValueParams): Cell;
|
|
48
49
|
export declare class Settings implements Contract {
|
|
49
50
|
readonly address: Address;
|
|
50
51
|
readonly init?: {
|
|
@@ -52,6 +53,7 @@ export declare class Settings implements Contract {
|
|
|
52
53
|
data: Cell;
|
|
53
54
|
} | undefined;
|
|
54
55
|
readonly configuration?: SettingsConfig | undefined;
|
|
56
|
+
static storageStats: StorageStats;
|
|
55
57
|
constructor(address: Address, init?: {
|
|
56
58
|
code: Cell;
|
|
57
59
|
data: Cell;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Settings = exports.SettingsErrors = exports.SettingsOpCodes = void 0;
|
|
4
4
|
exports.settingsConfigToCell = settingsConfigToCell;
|
|
5
|
+
exports.createSettingsSetValueBody = createSettingsSetValueBody;
|
|
5
6
|
const core_1 = require("@ton/core");
|
|
6
7
|
const GasUtils_1 = require("./utils/GasUtils");
|
|
7
8
|
exports.SettingsOpCodes = {
|
|
@@ -29,6 +30,14 @@ function settingsConfigToCell(config) {
|
|
|
29
30
|
.storeDict(config.settings)
|
|
30
31
|
.endCell();
|
|
31
32
|
}
|
|
33
|
+
function createSettingsSetValueBody(params) {
|
|
34
|
+
return (0, core_1.beginCell)()
|
|
35
|
+
.storeUint(exports.SettingsOpCodes.admin_setValue, 32)
|
|
36
|
+
.storeUint(params.queryId ?? 0, 64)
|
|
37
|
+
.storeUint(params.key, 256)
|
|
38
|
+
.storeRef(params.value)
|
|
39
|
+
.endCell();
|
|
40
|
+
}
|
|
32
41
|
class Settings {
|
|
33
42
|
constructor(address, init, configuration) {
|
|
34
43
|
this.address = address;
|
|
@@ -54,12 +63,7 @@ class Settings {
|
|
|
54
63
|
await provider.internal(via, {
|
|
55
64
|
value,
|
|
56
65
|
sendMode: core_1.SendMode.PAY_GAS_SEPARATELY,
|
|
57
|
-
body: (
|
|
58
|
-
.storeUint(exports.SettingsOpCodes.admin_setValue, 32)
|
|
59
|
-
.storeUint(params.queryId ?? 0, 64)
|
|
60
|
-
.storeUint(params.key, 256)
|
|
61
|
-
.storeRef(params.value)
|
|
62
|
-
.endCell(),
|
|
66
|
+
body: createSettingsSetValueBody(params),
|
|
63
67
|
});
|
|
64
68
|
}
|
|
65
69
|
async sendGetValue(provider, via, value, params) {
|
|
@@ -148,5 +152,6 @@ class Settings {
|
|
|
148
152
|
}
|
|
149
153
|
}
|
|
150
154
|
exports.Settings = Settings;
|
|
155
|
+
Settings.storageStats = new GasUtils_1.StorageStats(39175n, 118n);
|
|
151
156
|
Settings.minStorageDuration = 10 * 365 * 24 * 3600; // 10 years
|
|
152
157
|
Settings.minStorageStats = new GasUtils_1.StorageStats(29557n, 104n);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Address, Cell } from '@ton/core';
|
|
2
|
+
export type CrossChainLayerPayload = {
|
|
3
|
+
operationId: bigint;
|
|
4
|
+
destinationAddress: Address;
|
|
5
|
+
destinationMsgValue: bigint;
|
|
6
|
+
payload: Cell;
|
|
7
|
+
maybeStateInit?: Cell;
|
|
8
|
+
};
|
|
9
|
+
export declare function CrossChainLayerPayloadToCell(payload: CrossChainLayerPayload): Cell;
|
|
10
|
+
export declare function CrossChainLayerPayloadFromCell(cell: Cell): CrossChainLayerPayload;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CrossChainLayerPayloadToCell = CrossChainLayerPayloadToCell;
|
|
4
|
+
exports.CrossChainLayerPayloadFromCell = CrossChainLayerPayloadFromCell;
|
|
5
|
+
const core_1 = require("@ton/core");
|
|
6
|
+
function CrossChainLayerPayloadToCell(payload) {
|
|
7
|
+
return (0, core_1.beginCell)()
|
|
8
|
+
.storeUint(payload.operationId, 256)
|
|
9
|
+
.storeAddress(payload.destinationAddress)
|
|
10
|
+
.storeCoins(payload.destinationMsgValue)
|
|
11
|
+
.storeRef(payload.payload)
|
|
12
|
+
.storeMaybeRef(payload.maybeStateInit)
|
|
13
|
+
.endCell();
|
|
14
|
+
}
|
|
15
|
+
function CrossChainLayerPayloadFromCell(cell) {
|
|
16
|
+
const slice = cell.beginParse();
|
|
17
|
+
return {
|
|
18
|
+
operationId: slice.loadUintBig(256),
|
|
19
|
+
destinationAddress: slice.loadAddress(),
|
|
20
|
+
destinationMsgValue: slice.loadCoins(),
|
|
21
|
+
payload: slice.loadRef(),
|
|
22
|
+
maybeStateInit: slice.loadMaybeRef() ?? undefined,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
@@ -4,4 +4,5 @@ export type MerkleRoot = {
|
|
|
4
4
|
validTimestamp: number;
|
|
5
5
|
};
|
|
6
6
|
export declare function cellToArray(addrDict: Cell | null): Array<MerkleRoot>;
|
|
7
|
-
export declare function
|
|
7
|
+
export declare function arrayToDict(arr: Array<MerkleRoot>): Dictionary<bigint, number>;
|
|
8
|
+
export declare function arrayToCell(arr: Array<MerkleRoot>): Cell;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.cellToArray = cellToArray;
|
|
4
|
+
exports.arrayToDict = arrayToDict;
|
|
4
5
|
exports.arrayToCell = arrayToCell;
|
|
5
6
|
const core_1 = require("@ton/core");
|
|
6
7
|
const Constants_1 = require("../Constants");
|
|
@@ -18,10 +19,17 @@ function cellToArray(addrDict) {
|
|
|
18
19
|
}
|
|
19
20
|
return resArr;
|
|
20
21
|
}
|
|
21
|
-
function
|
|
22
|
+
function arrayToDict(arr) {
|
|
22
23
|
let dict = core_1.Dictionary.empty(core_1.Dictionary.Keys.BigUint(Constants_1.Params.bitsize.hash), core_1.Dictionary.Values.Uint(Constants_1.Params.bitsize.time));
|
|
23
24
|
for (let i = 0; i < arr.length; i++) {
|
|
24
25
|
dict.set(arr[i].root, arr[i].validTimestamp);
|
|
25
26
|
}
|
|
26
27
|
return dict;
|
|
27
28
|
}
|
|
29
|
+
function arrayToCell(arr) {
|
|
30
|
+
let dict = core_1.Dictionary.empty(core_1.Dictionary.Keys.BigUint(Constants_1.Params.bitsize.hash), core_1.Dictionary.Values.Uint(Constants_1.Params.bitsize.time));
|
|
31
|
+
for (let i = 0; i < arr.length; i++) {
|
|
32
|
+
dict.set(arr[i].root, arr[i].validTimestamp);
|
|
33
|
+
}
|
|
34
|
+
return (0, core_1.beginCell)().storeDictDirect(dict).endCell();
|
|
35
|
+
}
|
|
@@ -3,13 +3,6 @@
|
|
|
3
3
|
"contractName": "ISAFactory",
|
|
4
4
|
"sourceName": "contracts/smart-account/interfaces/ISAFactory.sol",
|
|
5
5
|
"abi": [
|
|
6
|
-
{
|
|
7
|
-
"inputs": [],
|
|
8
|
-
"name": "disableInitializers",
|
|
9
|
-
"outputs": [],
|
|
10
|
-
"stateMutability": "nonpayable",
|
|
11
|
-
"type": "function"
|
|
12
|
-
},
|
|
13
6
|
{
|
|
14
7
|
"inputs": [
|
|
15
8
|
{
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../common";
|
|
3
3
|
export interface ICrossChainLayerInterface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "NATIVE_TOKEN_ADDRESS" | "
|
|
4
|
+
getFunction(nameOrSignature: "NATIVE_TOKEN_ADDRESS" | "getInMessageState" | "getProtocolFee" | "receiveMessage" | "sendMessage"): FunctionFragment;
|
|
5
5
|
encodeFunctionData(functionFragment: "NATIVE_TOKEN_ADDRESS", values?: undefined): string;
|
|
6
|
-
encodeFunctionData(functionFragment: "disableInitializers", values?: undefined): string;
|
|
7
6
|
encodeFunctionData(functionFragment: "getInMessageState", values: [BytesLike]): string;
|
|
8
7
|
encodeFunctionData(functionFragment: "getProtocolFee", values?: undefined): string;
|
|
9
8
|
encodeFunctionData(functionFragment: "receiveMessage", values: [BigNumberish, BytesLike, BytesLike[], AddressLike, BytesLike]): string;
|
|
10
9
|
encodeFunctionData(functionFragment: "sendMessage", values: [BigNumberish, BytesLike]): string;
|
|
11
10
|
decodeFunctionResult(functionFragment: "NATIVE_TOKEN_ADDRESS", data: BytesLike): Result;
|
|
12
|
-
decodeFunctionResult(functionFragment: "disableInitializers", data: BytesLike): Result;
|
|
13
11
|
decodeFunctionResult(functionFragment: "getInMessageState", data: BytesLike): Result;
|
|
14
12
|
decodeFunctionResult(functionFragment: "getProtocolFee", data: BytesLike): Result;
|
|
15
13
|
decodeFunctionResult(functionFragment: "receiveMessage", data: BytesLike): Result;
|
|
@@ -29,7 +27,6 @@ export interface ICrossChainLayer extends BaseContract {
|
|
|
29
27
|
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
30
28
|
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
31
29
|
NATIVE_TOKEN_ADDRESS: TypedContractMethod<[], [string], "view">;
|
|
32
|
-
disableInitializers: TypedContractMethod<[], [void], "nonpayable">;
|
|
33
30
|
getInMessageState: TypedContractMethod<[
|
|
34
31
|
messageHash: BytesLike
|
|
35
32
|
], [
|
|
@@ -53,7 +50,6 @@ export interface ICrossChainLayer extends BaseContract {
|
|
|
53
50
|
], "payable">;
|
|
54
51
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
55
52
|
getFunction(nameOrSignature: "NATIVE_TOKEN_ADDRESS"): TypedContractMethod<[], [string], "view">;
|
|
56
|
-
getFunction(nameOrSignature: "disableInitializers"): TypedContractMethod<[], [void], "nonpayable">;
|
|
57
53
|
getFunction(nameOrSignature: "getInMessageState"): TypedContractMethod<[messageHash: BytesLike], [boolean], "view">;
|
|
58
54
|
getFunction(nameOrSignature: "getProtocolFee"): TypedContractMethod<[], [bigint], "view">;
|
|
59
55
|
getFunction(nameOrSignature: "receiveMessage"): TypedContractMethod<[
|
package/dist/artifacts/testnet/tac/internal/typechain-types/contracts/interfaces/ISettings.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../common";
|
|
3
3
|
export interface ISettingsInterface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "
|
|
4
|
+
getFunction(nameOrSignature: "getAddressSetting" | "getBoolSetting" | "getTrustedEVMExecutors" | "getTrustedTVMExecutors" | "getUintSetting" | "setAddressSetting" | "setBoolSetting" | "setTrustedEVMExecutors" | "setTrustedTVMExecutors" | "setUintSetting"): FunctionFragment;
|
|
5
5
|
getEvent(nameOrSignatureOrTopic: "SettingsUpdated"): EventFragment;
|
|
6
|
-
encodeFunctionData(functionFragment: "disableInitializers", values?: undefined): string;
|
|
7
6
|
encodeFunctionData(functionFragment: "getAddressSetting", values: [BytesLike]): string;
|
|
8
7
|
encodeFunctionData(functionFragment: "getBoolSetting", values: [BytesLike]): string;
|
|
9
8
|
encodeFunctionData(functionFragment: "getTrustedEVMExecutors", values?: undefined): string;
|
|
@@ -14,7 +13,6 @@ export interface ISettingsInterface extends Interface {
|
|
|
14
13
|
encodeFunctionData(functionFragment: "setTrustedEVMExecutors", values: [AddressLike[]]): string;
|
|
15
14
|
encodeFunctionData(functionFragment: "setTrustedTVMExecutors", values: [string[]]): string;
|
|
16
15
|
encodeFunctionData(functionFragment: "setUintSetting", values: [BytesLike, BigNumberish]): string;
|
|
17
|
-
decodeFunctionResult(functionFragment: "disableInitializers", data: BytesLike): Result;
|
|
18
16
|
decodeFunctionResult(functionFragment: "getAddressSetting", data: BytesLike): Result;
|
|
19
17
|
decodeFunctionResult(functionFragment: "getBoolSetting", data: BytesLike): Result;
|
|
20
18
|
decodeFunctionResult(functionFragment: "getTrustedEVMExecutors", data: BytesLike): Result;
|
|
@@ -50,7 +48,6 @@ export interface ISettings extends BaseContract {
|
|
|
50
48
|
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
51
49
|
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
52
50
|
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
53
|
-
disableInitializers: TypedContractMethod<[], [void], "nonpayable">;
|
|
54
51
|
getAddressSetting: TypedContractMethod<[key: BytesLike], [string], "view">;
|
|
55
52
|
getBoolSetting: TypedContractMethod<[key: BytesLike], [boolean], "view">;
|
|
56
53
|
getTrustedEVMExecutors: TypedContractMethod<[], [string[]], "view">;
|
|
@@ -85,7 +82,6 @@ export interface ISettings extends BaseContract {
|
|
|
85
82
|
void
|
|
86
83
|
], "nonpayable">;
|
|
87
84
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
88
|
-
getFunction(nameOrSignature: "disableInitializers"): TypedContractMethod<[], [void], "nonpayable">;
|
|
89
85
|
getFunction(nameOrSignature: "getAddressSetting"): TypedContractMethod<[key: BytesLike], [string], "view">;
|
|
90
86
|
getFunction(nameOrSignature: "getBoolSetting"): TypedContractMethod<[key: BytesLike], [boolean], "view">;
|
|
91
87
|
getFunction(nameOrSignature: "getTrustedEVMExecutors"): TypedContractMethod<[], [string[]], "view">;
|
package/dist/artifacts/testnet/tac/internal/typechain-types/contracts/interfaces/ITokenUtils.d.ts
CHANGED
|
@@ -35,19 +35,17 @@ export type NFTInfoStructOutput = [
|
|
|
35
35
|
tvmAddress: string;
|
|
36
36
|
};
|
|
37
37
|
export interface ITokenUtilsInterface extends Interface {
|
|
38
|
-
getFunction(nameOrSignature: "computeAddress" | "computeAddressERC721" | "create" | "createERC721" | "
|
|
38
|
+
getFunction(nameOrSignature: "computeAddress" | "computeAddressERC721" | "create" | "createERC721" | "exists(string)" | "exists(address)"): FunctionFragment;
|
|
39
39
|
encodeFunctionData(functionFragment: "computeAddress", values: [string]): string;
|
|
40
40
|
encodeFunctionData(functionFragment: "computeAddressERC721", values: [string]): string;
|
|
41
41
|
encodeFunctionData(functionFragment: "create", values: [TokenInfoStruct]): string;
|
|
42
42
|
encodeFunctionData(functionFragment: "createERC721", values: [NFTInfoStruct]): string;
|
|
43
|
-
encodeFunctionData(functionFragment: "disableInitializers", values?: undefined): string;
|
|
44
43
|
encodeFunctionData(functionFragment: "exists(string)", values: [string]): string;
|
|
45
44
|
encodeFunctionData(functionFragment: "exists(address)", values: [AddressLike]): string;
|
|
46
45
|
decodeFunctionResult(functionFragment: "computeAddress", data: BytesLike): Result;
|
|
47
46
|
decodeFunctionResult(functionFragment: "computeAddressERC721", data: BytesLike): Result;
|
|
48
47
|
decodeFunctionResult(functionFragment: "create", data: BytesLike): Result;
|
|
49
48
|
decodeFunctionResult(functionFragment: "createERC721", data: BytesLike): Result;
|
|
50
|
-
decodeFunctionResult(functionFragment: "disableInitializers", data: BytesLike): Result;
|
|
51
49
|
decodeFunctionResult(functionFragment: "exists(string)", data: BytesLike): Result;
|
|
52
50
|
decodeFunctionResult(functionFragment: "exists(address)", data: BytesLike): Result;
|
|
53
51
|
}
|
|
@@ -76,7 +74,6 @@ export interface ITokenUtils extends BaseContract {
|
|
|
76
74
|
], [
|
|
77
75
|
void
|
|
78
76
|
], "nonpayable">;
|
|
79
|
-
disableInitializers: TypedContractMethod<[], [void], "nonpayable">;
|
|
80
77
|
"exists(string)": TypedContractMethod<[
|
|
81
78
|
tvmAddress: string
|
|
82
79
|
], [
|
|
@@ -92,7 +89,6 @@ export interface ITokenUtils extends BaseContract {
|
|
|
92
89
|
getFunction(nameOrSignature: "computeAddressERC721"): TypedContractMethod<[tvmAddress: string], [string], "view">;
|
|
93
90
|
getFunction(nameOrSignature: "create"): TypedContractMethod<[info: TokenInfoStruct], [void], "nonpayable">;
|
|
94
91
|
getFunction(nameOrSignature: "createERC721"): TypedContractMethod<[info: NFTInfoStruct], [void], "nonpayable">;
|
|
95
|
-
getFunction(nameOrSignature: "disableInitializers"): TypedContractMethod<[], [void], "nonpayable">;
|
|
96
92
|
getFunction(nameOrSignature: "exists(string)"): TypedContractMethod<[tvmAddress: string], [boolean], "view">;
|
|
97
93
|
getFunction(nameOrSignature: "exists(address)"): TypedContractMethod<[evmAddress: AddressLike], [boolean], "view">;
|
|
98
94
|
filters: {};
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import type { BaseContract, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../../common";
|
|
3
3
|
export interface ISAFactoryInterface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "
|
|
5
|
-
encodeFunctionData(functionFragment: "disableInitializers", values?: undefined): string;
|
|
4
|
+
getFunction(nameOrSignature: "getOrCreateSmartAccount" | "getSmartAccountForApplication" | "predictSmartAccountAddress" | "updateBlueprint"): FunctionFragment;
|
|
6
5
|
encodeFunctionData(functionFragment: "getOrCreateSmartAccount", values: [string]): string;
|
|
7
6
|
encodeFunctionData(functionFragment: "getSmartAccountForApplication", values: [string, AddressLike]): string;
|
|
8
7
|
encodeFunctionData(functionFragment: "predictSmartAccountAddress", values: [string, AddressLike]): string;
|
|
9
8
|
encodeFunctionData(functionFragment: "updateBlueprint", values: [AddressLike]): string;
|
|
10
|
-
decodeFunctionResult(functionFragment: "disableInitializers", data: BytesLike): Result;
|
|
11
9
|
decodeFunctionResult(functionFragment: "getOrCreateSmartAccount", data: BytesLike): Result;
|
|
12
10
|
decodeFunctionResult(functionFragment: "getSmartAccountForApplication", data: BytesLike): Result;
|
|
13
11
|
decodeFunctionResult(functionFragment: "predictSmartAccountAddress", data: BytesLike): Result;
|
|
@@ -26,7 +24,6 @@ export interface ISAFactory extends BaseContract {
|
|
|
26
24
|
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
27
25
|
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
28
26
|
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
29
|
-
disableInitializers: TypedContractMethod<[], [void], "nonpayable">;
|
|
30
27
|
getOrCreateSmartAccount: TypedContractMethod<[
|
|
31
28
|
tvmWallet: string
|
|
32
29
|
], [
|
|
@@ -52,7 +49,6 @@ export interface ISAFactory extends BaseContract {
|
|
|
52
49
|
void
|
|
53
50
|
], "nonpayable">;
|
|
54
51
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
55
|
-
getFunction(nameOrSignature: "disableInitializers"): TypedContractMethod<[], [void], "nonpayable">;
|
|
56
52
|
getFunction(nameOrSignature: "getOrCreateSmartAccount"): TypedContractMethod<[
|
|
57
53
|
tvmWallet: string
|
|
58
54
|
], [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "hash": "
|
|
1
|
+
{ "hash": "655d70f72671db7999b6b72c2bac3577f8cba999456d33087de10fb2f970345e", "hashBase64": "ZV1w9yZx23mZtrcsK6w1d/jLqZlFbTMIfeEPsvlwNF4=", "hex": "b5ee9c72410210010002a6000114ff00f4a413f4bcf2c80b01020162020902f8d020c700925f04e001d0d3030171b0925f04e0fa403001d31f0101d33f0112ed44d0d30701f861fa4001f862fa4001f863f40430f8645154a1f844f80701830cf94130f8075003a170f83601a676820099075003a012821012cc030070f837a066b608a114a1c200f2e064228210245e9406bae302228210581879bc0304005a6c22f84212c705f2e046d3ff0101d430f844128307f417f864f844f841c8cb07f842cf16f843cf16f400c9ed5404feba8e2c6c22f84212c705f2e046fa4030f863f8438b02c705f2d050f844f841c8cb07f842cf16f843cf16f400c9ed54e022821060094a1bba8e22135f03f842c705f2e0468b02f863f844f841c8cb07f842cf16f843cf16f400c9ed54e02282106a4fbe34bae302228210399685b8bae3023001821040148d4abae3025b840f05060708005e135f03f843c705f2e047f8438b02c705f2d050f843f8628b02f863f844f841c8cb07f842cf16f843cf16f400c9ed5400a46c12d3ff013120f8448307f40f6fa130c88210707a28d2580502cb1fcb3f0101cbff12f400c9700180108042226eb32091719170e2c8500401cb055006cf165004fa02cb6a039358cc019130e201c901fb000080f844c88210cf03b318580402cb1fcb3f12f400c9700180108042226eb32091719170e2c8500401cb055006cf165004fa02cb6a039358cc019130e201c901fb000004f2f00201200a0d0201580b0c0043b444bda89a1a60e03f0c3f48003f0c5f48003f0c7e80861f0c9f083f085f087f0890003bb4fffda89a1a60e03f0c3f48003f0c5f48003f0c7e80861f0c9f085f087002016a0e0f0037b3093b513434c1c07e187e90007e18be90007e18fd010c3e193e11200043b10dfb513434c1c07e187e90007e18be90007e18fd010c3e193e1120c1fd03dbe860ab10d848" }
|
|
@@ -45,6 +45,7 @@ export declare const SettingsErrors: {
|
|
|
45
45
|
notEnoughTon: number;
|
|
46
46
|
};
|
|
47
47
|
export declare function settingsConfigToCell(config: SettingsConfig): Cell;
|
|
48
|
+
export declare function createSettingsSetValueBody(params: SendValueParams): Cell;
|
|
48
49
|
export declare class Settings implements Contract {
|
|
49
50
|
readonly address: Address;
|
|
50
51
|
readonly init?: {
|