@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/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[], wrapper: ExtendedContract<TonContractWrapper>): Promise<Cell>;
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[], wrapper: ExtendedContract<TonContractWrapper>): Promise<Cell>;
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.BigInt(256), value) : rawCell.beginParse().loadDictDirect(Dictionary.Keys.BigInt(256), value);
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
- async function createVerifierDictSet(verifiers, wrapper) {
16464
- const verifierDict = LzDict.empty();
16463
+ function createVerifierDictSet(verifiers) {
16464
+ const verifierDict = Dictionary.empty(Dictionary.Keys.BigUint(256), Dictionary.Values.Cell());
16465
16465
  for (const verifier of verifiers) {
16466
- await verifierDict.set(publicKeyToHash(verifier), beginCell().endCell(), wrapper);
16466
+ verifierDict.set(publicKeyToHash(verifier), beginCell().endCell());
16467
16467
  }
16468
- return verifierDict.asCell();
16468
+ return beginCell().storeDictDirect(verifierDict, Dictionary.Keys.BigUint(256), Dictionary.Values.Cell()).endCell();
16469
16469
  }
16470
16470
  /*! Bundled license information:
16471
16471