@layerzerolabs/lz-ton-sdk-v2 3.0.24 → 3.0.25
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/CHANGELOG.md +7 -0
- package/deployments/ton-sandbox-local/Dvn.json +1 -1
- package/deployments/ton-sandbox-local/DvnProxy.json +1 -1
- package/deployments/ton-testnet/Dvn.json +1 -1
- package/deployments/ton-testnet/DvnProxy.json +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -4489,7 +4489,7 @@ declare function randomQueryId(): number;
|
|
|
4489
4489
|
declare function beginMessage(opcode: number | bigint, queryId?: number | bigint): Builder;
|
|
4490
4490
|
declare function sendRequest(provider: ContractProvider, via: Sender, request: SenderArguments): Promise<void>;
|
|
4491
4491
|
declare function publicKeyToHash(publicKey: Uint8Array): bigint;
|
|
4492
|
-
declare function createVerifierDictSet(verifiers: Uint8Array[]
|
|
4492
|
+
declare function createVerifierDictSet(verifiers: Uint8Array[]): Cell;
|
|
4493
4493
|
|
|
4494
4494
|
declare class appsCounter {
|
|
4495
4495
|
static getGetBaseOAppStorage(contract: ExtendedContract<TonContractWrapper>): Promise<[Cell]>;
|
package/dist/index.d.ts
CHANGED
|
@@ -4489,7 +4489,7 @@ declare function randomQueryId(): number;
|
|
|
4489
4489
|
declare function beginMessage(opcode: number | bigint, queryId?: number | bigint): Builder;
|
|
4490
4490
|
declare function sendRequest(provider: ContractProvider, via: Sender, request: SenderArguments): Promise<void>;
|
|
4491
4491
|
declare function publicKeyToHash(publicKey: Uint8Array): bigint;
|
|
4492
|
-
declare function createVerifierDictSet(verifiers: Uint8Array[]
|
|
4492
|
+
declare function createVerifierDictSet(verifiers: Uint8Array[]): Cell;
|
|
4493
4493
|
|
|
4494
4494
|
declare class appsCounter {
|
|
4495
4495
|
static getGetBaseOAppStorage(contract: ExtendedContract<TonContractWrapper>): Promise<[Cell]>;
|
package/dist/index.mjs
CHANGED
|
@@ -10617,7 +10617,7 @@ var decodeClass = (name, cell) => {
|
|
|
10617
10617
|
fieldName,
|
|
10618
10618
|
{
|
|
10619
10619
|
getDict: (value) => {
|
|
10620
|
-
return rawCell.bits.length === 0 ? Dictionary.empty(Dictionary.Keys.
|
|
10620
|
+
return rawCell.bits.length === 0 ? Dictionary.empty(Dictionary.Keys.BigUint(256), value) : rawCell.beginParse().loadDictDirect(Dictionary.Keys.BigUint(256), value);
|
|
10621
10621
|
},
|
|
10622
10622
|
rawCell
|
|
10623
10623
|
}
|
|
@@ -16460,12 +16460,12 @@ function publicKeyToHash(publicKey) {
|
|
|
16460
16460
|
const publicKeyHash = BigInt("0x" + publicKeyCell.hash().toString("hex"));
|
|
16461
16461
|
return publicKeyHash;
|
|
16462
16462
|
}
|
|
16463
|
-
|
|
16464
|
-
const verifierDict =
|
|
16463
|
+
function createVerifierDictSet(verifiers) {
|
|
16464
|
+
const verifierDict = Dictionary.empty(Dictionary.Keys.BigUint(256), Dictionary.Values.Cell());
|
|
16465
16465
|
for (const verifier of verifiers) {
|
|
16466
|
-
|
|
16466
|
+
verifierDict.set(publicKeyToHash(verifier), beginCell().endCell());
|
|
16467
16467
|
}
|
|
16468
|
-
return verifierDict.
|
|
16468
|
+
return beginCell().storeDictDirect(verifierDict, Dictionary.Keys.BigUint(256), Dictionary.Values.Cell()).endCell();
|
|
16469
16469
|
}
|
|
16470
16470
|
/*! Bundled license information:
|
|
16471
16471
|
|