@starknetfoundation/krusty-kms-wasm 0.4.3 → 0.4.5

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.
@@ -94,7 +94,7 @@ export class WasmAccountState {
94
94
  /**
95
95
  * Create a new account state.
96
96
  */
97
- constructor(balance: string, pending_balance: string, nonce: bigint);
97
+ constructor(balance: string, pending_balance: string, transaction_nonce: bigint);
98
98
  /**
99
99
  * Get total balance (available + pending).
100
100
  */
@@ -768,7 +768,7 @@ export class WasmWithdrawProofResult {
768
768
  * # Returns
769
769
  * The calculated contract address as hex string
770
770
  */
771
- export function calculateContractAddress(salt: string, class_hash: string, constructor_calldata: string[], deployer_address: string): string;
771
+ export function calculateContractAddress(address_salt: string, class_hash: string, constructor_calldata: string[], deployer_address: string): string;
772
772
 
773
773
  /**
774
774
  * Compile an array of calls into the Starknet multicall `__execute__` ABI
@@ -320,14 +320,14 @@ export class WasmAccountState {
320
320
  * Create a new account state.
321
321
  * @param {string} balance
322
322
  * @param {string} pending_balance
323
- * @param {bigint} nonce
323
+ * @param {bigint} transaction_nonce
324
324
  */
325
- constructor(balance, pending_balance, nonce) {
325
+ constructor(balance, pending_balance, transaction_nonce) {
326
326
  const ptr0 = passStringToWasm0(balance, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
327
327
  const len0 = WASM_VECTOR_LEN;
328
328
  const ptr1 = passStringToWasm0(pending_balance, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
329
329
  const len1 = WASM_VECTOR_LEN;
330
- const ret = wasm.wasmaccountstate_new(ptr0, len0, ptr1, len1, nonce);
330
+ const ret = wasm.wasmaccountstate_new(ptr0, len0, ptr1, len1, transaction_nonce);
331
331
  if (ret[2]) {
332
332
  throw takeFromExternrefTable0(ret[1]);
333
333
  }
@@ -4376,17 +4376,17 @@ if (Symbol.dispose) WasmWithdrawProofResult.prototype[Symbol.dispose] = WasmWith
4376
4376
  *
4377
4377
  * # Returns
4378
4378
  * The calculated contract address as hex string
4379
- * @param {string} salt
4379
+ * @param {string} address_salt
4380
4380
  * @param {string} class_hash
4381
4381
  * @param {string[]} constructor_calldata
4382
4382
  * @param {string} deployer_address
4383
4383
  * @returns {string}
4384
4384
  */
4385
- export function calculateContractAddress(salt, class_hash, constructor_calldata, deployer_address) {
4385
+ export function calculateContractAddress(address_salt, class_hash, constructor_calldata, deployer_address) {
4386
4386
  let deferred6_0;
4387
4387
  let deferred6_1;
4388
4388
  try {
4389
- const ptr0 = passStringToWasm0(salt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4389
+ const ptr0 = passStringToWasm0(address_salt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4390
4390
  const len0 = WASM_VECTOR_LEN;
4391
4391
  const ptr1 = passStringToWasm0(class_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4392
4392
  const len1 = WASM_VECTOR_LEN;
Binary file
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "Krusty KMS Contributors"
6
6
  ],
7
7
  "description": "WASM bindings for krusty-kms account and protocol utilities",
8
- "version": "0.4.3",
8
+ "version": "0.4.5",
9
9
  "license": "MIT OR Apache-2.0",
10
10
  "repository": {
11
11
  "type": "git",