@bitgo/wasm-solana 1.4.2 → 1.6.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.
@@ -68,6 +68,20 @@ export declare class Transaction {
68
68
  * Get the number of signatures in the transaction
69
69
  */
70
70
  get numSignatures(): number;
71
+ /**
72
+ * Get the transaction ID (first signature as base58).
73
+ *
74
+ * For Solana, the transaction ID is the first signature.
75
+ * Returns "UNSIGNED" if the transaction has no valid signatures.
76
+ *
77
+ * @example
78
+ * ```typescript
79
+ * const tx = Transaction.fromBytes(txBytes);
80
+ * tx.addSignature(pubkey, signature);
81
+ * console.log(tx.id); // Base58 encoded signature
82
+ * ```
83
+ */
84
+ get id(): string;
71
85
  /**
72
86
  * Get the signable message payload (what gets signed)
73
87
  * This is the serialized message that signers sign
@@ -86,6 +100,11 @@ export declare class Transaction {
86
100
  * @returns The serialized transaction bytes
87
101
  */
88
102
  toBytes(): Uint8Array;
103
+ /**
104
+ * Serialize to network broadcast format.
105
+ * @returns The transaction as bytes ready for broadcast
106
+ */
107
+ toBroadcastFormat(): Uint8Array;
89
108
  /**
90
109
  * Get all account keys as Pubkey instances
91
110
  * @returns Array of account public keys
@@ -59,6 +59,22 @@ export class Transaction {
59
59
  get numSignatures() {
60
60
  return this._wasm.num_signatures;
61
61
  }
62
+ /**
63
+ * Get the transaction ID (first signature as base58).
64
+ *
65
+ * For Solana, the transaction ID is the first signature.
66
+ * Returns "UNSIGNED" if the transaction has no valid signatures.
67
+ *
68
+ * @example
69
+ * ```typescript
70
+ * const tx = Transaction.fromBytes(txBytes);
71
+ * tx.addSignature(pubkey, signature);
72
+ * console.log(tx.id); // Base58 encoded signature
73
+ * ```
74
+ */
75
+ get id() {
76
+ return this._wasm.id;
77
+ }
62
78
  /**
63
79
  * Get the signable message payload (what gets signed)
64
80
  * This is the serialized message that signers sign
@@ -83,6 +99,13 @@ export class Transaction {
83
99
  toBytes() {
84
100
  return this._wasm.to_bytes();
85
101
  }
102
+ /**
103
+ * Serialize to network broadcast format.
104
+ * @returns The transaction as bytes ready for broadcast
105
+ */
106
+ toBroadcastFormat() {
107
+ return this.toBytes();
108
+ }
86
109
  /**
87
110
  * Get all account keys as Pubkey instances
88
111
  * @returns Array of account public keys
@@ -122,6 +122,13 @@ export declare class VersionedTransaction {
122
122
  * Get the number of signatures.
123
123
  */
124
124
  get numSignatures(): number;
125
+ /**
126
+ * Get the transaction ID (first signature as base58).
127
+ *
128
+ * For Solana, the transaction ID is the first signature.
129
+ * Returns "UNSIGNED" if the transaction has no valid signatures.
130
+ */
131
+ get id(): string;
125
132
  /**
126
133
  * Get the signable message payload.
127
134
  */
@@ -141,6 +148,11 @@ export declare class VersionedTransaction {
141
148
  * Serialize the transaction to base64.
142
149
  */
143
150
  toBase64(): string;
151
+ /**
152
+ * Serialize to network broadcast format.
153
+ * @returns The transaction as bytes ready for broadcast
154
+ */
155
+ toBroadcastFormat(): Uint8Array;
144
156
  /**
145
157
  * Get static account keys (accounts stored directly in the message).
146
158
  * For versioned transactions, additional accounts may be referenced via ALTs.
@@ -111,6 +111,15 @@ export class VersionedTransaction {
111
111
  get numSignatures() {
112
112
  return this.inner.num_signatures;
113
113
  }
114
+ /**
115
+ * Get the transaction ID (first signature as base58).
116
+ *
117
+ * For Solana, the transaction ID is the first signature.
118
+ * Returns "UNSIGNED" if the transaction has no valid signatures.
119
+ */
120
+ get id() {
121
+ return this.inner.id;
122
+ }
114
123
  /**
115
124
  * Get the signable message payload.
116
125
  */
@@ -138,6 +147,13 @@ export class VersionedTransaction {
138
147
  toBase64() {
139
148
  return Buffer.from(this.toBytes()).toString("base64");
140
149
  }
150
+ /**
151
+ * Serialize to network broadcast format.
152
+ * @returns The transaction as bytes ready for broadcast
153
+ */
154
+ toBroadcastFormat() {
155
+ return this.toBytes();
156
+ }
141
157
  /**
142
158
  * Get static account keys (accounts stored directly in the message).
143
159
  * For versioned transactions, additional accounts may be referenced via ALTs.
@@ -372,6 +372,48 @@ export class Instructions {
372
372
  push(instruction: Instruction): void;
373
373
  }
374
374
 
375
+ export class IntentNamespace {
376
+ private constructor();
377
+ free(): void;
378
+ [Symbol.dispose](): void;
379
+ /**
380
+ * Build a transaction directly from a BitGo intent.
381
+ *
382
+ * This function takes the full intent as-is and builds the transaction
383
+ * without requiring the caller to construct instructions.
384
+ *
385
+ * # Arguments
386
+ *
387
+ * * `intent` - The full BitGo intent object (with intentType, etc.)
388
+ * * `params` - Build parameters: { feePayer, nonce }
389
+ *
390
+ * # Returns
391
+ *
392
+ * An object with:
393
+ * * `transaction` - WasmTransaction object
394
+ * * `generatedKeypairs` - Array of keypairs generated (for stake accounts, etc.)
395
+ *
396
+ * # Example
397
+ *
398
+ * ```javascript
399
+ * const result = IntentNamespace.build_from_intent(
400
+ * {
401
+ * intentType: 'stake',
402
+ * validatorAddress: '...',
403
+ * amount: { value: 1000000000n }
404
+ * },
405
+ * {
406
+ * feePayer: 'DgT9...',
407
+ * nonce: { type: 'blockhash', value: 'GWaQ...' }
408
+ * }
409
+ * );
410
+ * // result.transaction - WasmTransaction object
411
+ * // result.generatedKeypairs - [{ purpose, address, secretKey }]
412
+ * ```
413
+ */
414
+ static build_from_intent(intent: any, params: any): any;
415
+ }
416
+
375
417
  export class Keypair {
376
418
  free(): void;
377
419
  [Symbol.dispose](): void;
@@ -697,6 +739,10 @@ export class WasmKeypair {
697
739
  * Get the address as a base58 string.
698
740
  */
699
741
  address(): string;
742
+ /**
743
+ * Generate a new random keypair.
744
+ */
745
+ static generate(): WasmKeypair;
700
746
  /**
701
747
  * Get the public key as a base58 string.
702
748
  */
@@ -804,6 +850,13 @@ export class WasmTransaction {
804
850
  * Get the recent blockhash as a base58 string.
805
851
  */
806
852
  readonly recent_blockhash: string;
853
+ /**
854
+ * Get the transaction ID (first signature as base58).
855
+ *
856
+ * For Solana, the transaction ID is the first signature.
857
+ * Returns "UNSIGNED" if the first signature is all zeros (unsigned transaction).
858
+ */
859
+ readonly id: string;
807
860
  /**
808
861
  * Get the fee payer address as a base58 string.
809
862
  *
@@ -891,6 +944,13 @@ export class WasmVersionedTransaction {
891
944
  * Get the recent blockhash as a base58 string.
892
945
  */
893
946
  readonly recent_blockhash: string;
947
+ /**
948
+ * Get the transaction ID (first signature as base58).
949
+ *
950
+ * For Solana, the transaction ID is the first signature.
951
+ * Returns "UNSIGNED" if the first signature is all zeros (unsigned transaction).
952
+ */
953
+ readonly id: string;
894
954
  /**
895
955
  * Get the fee payer address as a base58 string.
896
956
  */
@@ -343,6 +343,10 @@ const InstructionsFinalization = (typeof FinalizationRegistry === 'undefined')
343
343
  ? { register: () => {}, unregister: () => {} }
344
344
  : new FinalizationRegistry(ptr => wasm.__wbg_instructions_free(ptr >>> 0, 1));
345
345
 
346
+ const IntentNamespaceFinalization = (typeof FinalizationRegistry === 'undefined')
347
+ ? { register: () => {}, unregister: () => {} }
348
+ : new FinalizationRegistry(ptr => wasm.__wbg_intentnamespace_free(ptr >>> 0, 1));
349
+
346
350
  const KeypairFinalization = (typeof FinalizationRegistry === 'undefined')
347
351
  ? { register: () => {}, unregister: () => {} }
348
352
  : new FinalizationRegistry(ptr => wasm.__wbg_keypair_free(ptr >>> 0, 1));
@@ -2679,6 +2683,76 @@ export class Instructions {
2679
2683
  }
2680
2684
  if (Symbol.dispose) Instructions.prototype[Symbol.dispose] = Instructions.prototype.free;
2681
2685
 
2686
+ /**
2687
+ * Namespace for intent-based building operations.
2688
+ */
2689
+ export class IntentNamespace {
2690
+ __destroy_into_raw() {
2691
+ const ptr = this.__wbg_ptr;
2692
+ this.__wbg_ptr = 0;
2693
+ IntentNamespaceFinalization.unregister(this);
2694
+ return ptr;
2695
+ }
2696
+ free() {
2697
+ const ptr = this.__destroy_into_raw();
2698
+ wasm.__wbg_intentnamespace_free(ptr, 0);
2699
+ }
2700
+ /**
2701
+ * Build a transaction directly from a BitGo intent.
2702
+ *
2703
+ * This function takes the full intent as-is and builds the transaction
2704
+ * without requiring the caller to construct instructions.
2705
+ *
2706
+ * # Arguments
2707
+ *
2708
+ * * `intent` - The full BitGo intent object (with intentType, etc.)
2709
+ * * `params` - Build parameters: { feePayer, nonce }
2710
+ *
2711
+ * # Returns
2712
+ *
2713
+ * An object with:
2714
+ * * `transaction` - WasmTransaction object
2715
+ * * `generatedKeypairs` - Array of keypairs generated (for stake accounts, etc.)
2716
+ *
2717
+ * # Example
2718
+ *
2719
+ * ```javascript
2720
+ * const result = IntentNamespace.build_from_intent(
2721
+ * {
2722
+ * intentType: 'stake',
2723
+ * validatorAddress: '...',
2724
+ * amount: { value: 1000000000n }
2725
+ * },
2726
+ * {
2727
+ * feePayer: 'DgT9...',
2728
+ * nonce: { type: 'blockhash', value: 'GWaQ...' }
2729
+ * }
2730
+ * );
2731
+ * // result.transaction - WasmTransaction object
2732
+ * // result.generatedKeypairs - [{ purpose, address, secretKey }]
2733
+ * ```
2734
+ * @param {any} intent
2735
+ * @param {any} params
2736
+ * @returns {any}
2737
+ */
2738
+ static build_from_intent(intent, params) {
2739
+ try {
2740
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2741
+ wasm.intentnamespace_build_from_intent(retptr, addHeapObject(intent), addHeapObject(params));
2742
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2743
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2744
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
2745
+ if (r2) {
2746
+ throw takeObject(r1);
2747
+ }
2748
+ return takeObject(r0);
2749
+ } finally {
2750
+ wasm.__wbindgen_add_to_stack_pointer(16);
2751
+ }
2752
+ }
2753
+ }
2754
+ if (Symbol.dispose) IntentNamespace.prototype[Symbol.dispose] = IntentNamespace.prototype.free;
2755
+
2682
2756
  /**
2683
2757
  * A vanilla Ed25519 key pair
2684
2758
  */
@@ -4589,6 +4663,14 @@ export class WasmKeypair {
4589
4663
  wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
4590
4664
  }
4591
4665
  }
4666
+ /**
4667
+ * Generate a new random keypair.
4668
+ * @returns {WasmKeypair}
4669
+ */
4670
+ static generate() {
4671
+ const ret = wasm.wasmkeypair_generate();
4672
+ return WasmKeypair.__wrap(ret);
4673
+ }
4592
4674
  /**
4593
4675
  * Get the public key as a base58 string.
4594
4676
  * @returns {string}
@@ -4889,6 +4971,29 @@ export class WasmTransaction {
4889
4971
  const ret = wasm.wasmtransaction_signable_payload(this.__wbg_ptr);
4890
4972
  return takeObject(ret);
4891
4973
  }
4974
+ /**
4975
+ * Get the transaction ID (first signature as base58).
4976
+ *
4977
+ * For Solana, the transaction ID is the first signature.
4978
+ * Returns "UNSIGNED" if the first signature is all zeros (unsigned transaction).
4979
+ * @returns {string}
4980
+ */
4981
+ get id() {
4982
+ let deferred1_0;
4983
+ let deferred1_1;
4984
+ try {
4985
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4986
+ wasm.wasmtransaction_id(retptr, this.__wbg_ptr);
4987
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
4988
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
4989
+ deferred1_0 = r0;
4990
+ deferred1_1 = r1;
4991
+ return getStringFromWasm0(r0, r1);
4992
+ } finally {
4993
+ wasm.__wbindgen_add_to_stack_pointer(16);
4994
+ wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
4995
+ }
4996
+ }
4892
4997
  /**
4893
4998
  * Serialize the transaction to bytes.
4894
4999
  * @returns {Uint8Array}
@@ -5119,6 +5224,29 @@ export class WasmVersionedTransaction {
5119
5224
  const ret = wasm.wasmversionedtransaction_address_lookup_tables(this.__wbg_ptr);
5120
5225
  return takeObject(ret);
5121
5226
  }
5227
+ /**
5228
+ * Get the transaction ID (first signature as base58).
5229
+ *
5230
+ * For Solana, the transaction ID is the first signature.
5231
+ * Returns "UNSIGNED" if the first signature is all zeros (unsigned transaction).
5232
+ * @returns {string}
5233
+ */
5234
+ get id() {
5235
+ let deferred1_0;
5236
+ let deferred1_1;
5237
+ try {
5238
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
5239
+ wasm.wasmversionedtransaction_id(retptr, this.__wbg_ptr);
5240
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
5241
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
5242
+ deferred1_0 = r0;
5243
+ deferred1_1 = r1;
5244
+ return getStringFromWasm0(r0, r1);
5245
+ } finally {
5246
+ wasm.__wbindgen_add_to_stack_pointer(16);
5247
+ wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
5248
+ }
5249
+ }
5122
5250
  /**
5123
5251
  * Serialize the transaction to bytes.
5124
5252
  * @returns {Uint8Array}
@@ -5819,6 +5947,11 @@ export function __wbg_call_abb4ff46ce38be40() { return handleError(function (arg
5819
5947
  return addHeapObject(ret);
5820
5948
  }, arguments) };
5821
5949
 
5950
+ export function __wbg_crypto_038798f665f985e2(arg0) {
5951
+ const ret = getObject(arg0).crypto;
5952
+ return addHeapObject(ret);
5953
+ };
5954
+
5822
5955
  export function __wbg_crypto_86f2631e91b51511(arg0) {
5823
5956
  const ret = getObject(arg0).crypto;
5824
5957
  return addHeapObject(ret);
@@ -5854,6 +5987,15 @@ export function __wbg_error_7bc7d576a6aaf855(arg0) {
5854
5987
  console.error(getObject(arg0));
5855
5988
  };
5856
5989
 
5990
+ export function __wbg_getRandomValues_371e7ade8bd92088(arg0, arg1) {
5991
+ getObject(arg0).getRandomValues(getObject(arg1));
5992
+ };
5993
+
5994
+ export function __wbg_getRandomValues_7dfe5bd1b67c9ca1(arg0) {
5995
+ const ret = getObject(arg0).getRandomValues;
5996
+ return addHeapObject(ret);
5997
+ };
5998
+
5857
5999
  export function __wbg_getRandomValues_b3f15fcbfabb0f8b() { return handleError(function (arg0, arg1) {
5858
6000
  getObject(arg0).getRandomValues(getObject(arg1));
5859
6001
  }, arguments) };
@@ -5949,6 +6091,11 @@ export function __wbg_msCrypto_d562bbe83e0d4b91(arg0) {
5949
6091
  return addHeapObject(ret);
5950
6092
  };
5951
6093
 
6094
+ export function __wbg_msCrypto_ff35fce085fab2a3(arg0) {
6095
+ const ret = getObject(arg0).msCrypto;
6096
+ return addHeapObject(ret);
6097
+ };
6098
+
5952
6099
  export function __wbg_new_1ba21ce319a06297() {
5953
6100
  const ret = new Object();
5954
6101
  return addHeapObject(ret);
@@ -6028,15 +6175,33 @@ export function __wbg_push_7d9be8f38fc13975(arg0, arg1) {
6028
6175
  return ret;
6029
6176
  };
6030
6177
 
6178
+ export function __wbg_randomFillSync_994ac6d9ade7a695(arg0, arg1, arg2) {
6179
+ getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
6180
+ };
6181
+
6031
6182
  export function __wbg_randomFillSync_f8c153b79f285817() { return handleError(function (arg0, arg1) {
6032
6183
  getObject(arg0).randomFillSync(takeObject(arg1));
6033
6184
  }, arguments) };
6034
6185
 
6186
+ export function __wbg_require_0d6aeaec3c042c88(arg0, arg1, arg2) {
6187
+ const ret = getObject(arg0).require(getStringFromWasm0(arg1, arg2));
6188
+ return addHeapObject(ret);
6189
+ };
6190
+
6035
6191
  export function __wbg_require_b74f47fc2d022fd6() { return handleError(function () {
6036
6192
  const ret = module.require;
6037
6193
  return addHeapObject(ret);
6038
6194
  }, arguments) };
6039
6195
 
6196
+ export function __wbg_self_25aabeb5a7b41685() { return handleError(function () {
6197
+ const ret = self.self;
6198
+ return addHeapObject(ret);
6199
+ }, arguments) };
6200
+
6201
+ export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
6202
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
6203
+ };
6204
+
6040
6205
  export function __wbg_set_781438a03c0c3c81() { return handleError(function (arg0, arg1, arg2) {
6041
6206
  const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
6042
6207
  return ret;
@@ -6064,6 +6229,11 @@ export function __wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1() {
6064
6229
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
6065
6230
  };
6066
6231
 
6232
+ export function __wbg_static_accessor_MODULE_ef3aa2eb251158a5() {
6233
+ const ret = module;
6234
+ return addHeapObject(ret);
6235
+ };
6236
+
6067
6237
  export function __wbg_static_accessor_SELF_08f5a74c69739274() {
6068
6238
  const ret = typeof self === 'undefined' ? null : self;
6069
6239
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
@@ -6098,6 +6268,11 @@ export function __wbg_warn_6e567d0d926ff881(arg0) {
6098
6268
  console.warn(getObject(arg0));
6099
6269
  };
6100
6270
 
6271
+ export function __wbg_wasmtransaction_new(arg0) {
6272
+ const ret = WasmTransaction.__wrap(arg0);
6273
+ return addHeapObject(ret);
6274
+ };
6275
+
6101
6276
  export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
6102
6277
  // Cast intrinsic for `Ref(String) -> Externref`.
6103
6278
  const ret = getStringFromWasm0(arg0, arg1);
@@ -1,29 +1,25 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export const ata_program_id: (a: number) => void;
5
- export const compute_budget_program_id: (a: number) => void;
6
- export const find_withdraw_authority_program_address: (a: number, b: number, c: number) => void;
7
- export const get_associated_token_address: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
8
- export const memo_program_id: (a: number) => void;
9
- export const nonce_account_space: () => bigint;
10
- export const stake_account_space: () => bigint;
11
- export const stake_pool_program_id: (a: number) => void;
12
- export const stake_program_id: (a: number) => void;
13
- export const system_program_id: (a: number) => void;
14
- export const sysvar_recent_blockhashes: (a: number) => void;
15
- export const token_2022_program_id: (a: number) => void;
16
- export const token_program_id: (a: number) => void;
4
+ export const __wbg_buildernamespace_free: (a: number, b: number) => void;
17
5
  export const __wbg_wasmkeypair_free: (a: number, b: number) => void;
18
- export const __wbg_wasmpubkey_free: (a: number, b: number) => void;
19
- export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
20
- export const __wbg_wasmversionedtransaction_free: (a: number, b: number) => void;
21
- export const is_versioned_transaction: (a: number, b: number) => number;
6
+ export const buildernamespace_build_from_versioned_data: (a: number, b: number) => void;
7
+ export const buildernamespace_build_transaction: (a: number, b: number) => void;
22
8
  export const wasmkeypair_address: (a: number, b: number) => void;
23
9
  export const wasmkeypair_from_secret_key: (a: number, b: number, c: number) => void;
24
10
  export const wasmkeypair_from_solana_secret_key: (a: number, b: number, c: number) => void;
11
+ export const wasmkeypair_generate: () => number;
25
12
  export const wasmkeypair_public_key: (a: number) => number;
26
13
  export const wasmkeypair_secret_key: (a: number) => number;
14
+ export const wasmkeypair_to_base58: (a: number, b: number) => void;
15
+ export const __wbg_intentnamespace_free: (a: number, b: number) => void;
16
+ export const __wbg_parsernamespace_free: (a: number, b: number) => void;
17
+ export const __wbg_wasmpubkey_free: (a: number, b: number) => void;
18
+ export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
19
+ export const __wbg_wasmversionedtransaction_free: (a: number, b: number) => void;
20
+ export const intentnamespace_build_from_intent: (a: number, b: number, c: number) => void;
21
+ export const is_versioned_transaction: (a: number, b: number) => number;
22
+ export const parsernamespace_parse_transaction: (a: number, b: number, c: number) => void;
27
23
  export const wasmpubkey_equals: (a: number, b: number) => number;
28
24
  export const wasmpubkey_from_base58: (a: number, b: number, c: number) => void;
29
25
  export const wasmpubkey_from_bytes: (a: number, b: number, c: number) => void;
@@ -34,6 +30,7 @@ export const wasmtransaction_account_keys: (a: number) => number;
34
30
  export const wasmtransaction_add_signature: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
35
31
  export const wasmtransaction_fee_payer: (a: number, b: number) => void;
36
32
  export const wasmtransaction_from_bytes: (a: number, b: number, c: number) => void;
33
+ export const wasmtransaction_id: (a: number, b: number) => void;
37
34
  export const wasmtransaction_instructions: (a: number) => number;
38
35
  export const wasmtransaction_num_instructions: (a: number) => number;
39
36
  export const wasmtransaction_num_signatures: (a: number) => number;
@@ -46,6 +43,7 @@ export const wasmversionedtransaction_add_signature: (a: number, b: number, c: n
46
43
  export const wasmversionedtransaction_address_lookup_tables: (a: number) => number;
47
44
  export const wasmversionedtransaction_fee_payer: (a: number, b: number) => void;
48
45
  export const wasmversionedtransaction_from_bytes: (a: number, b: number, c: number) => void;
46
+ export const wasmversionedtransaction_id: (a: number, b: number) => void;
49
47
  export const wasmversionedtransaction_instructions: (a: number) => number;
50
48
  export const wasmversionedtransaction_is_versioned: (a: number) => number;
51
49
  export const wasmversionedtransaction_num_instructions: (a: number) => number;
@@ -55,13 +53,20 @@ export const wasmversionedtransaction_signatures: (a: number) => number;
55
53
  export const wasmversionedtransaction_signer_index: (a: number, b: number, c: number) => number;
56
54
  export const wasmversionedtransaction_static_account_keys: (a: number) => number;
57
55
  export const wasmversionedtransaction_to_bytes: (a: number, b: number) => void;
58
- export const wasmkeypair_to_base58: (a: number, b: number) => void;
59
56
  export const wasmversionedtransaction_num_signatures: (a: number) => number;
60
- export const __wbg_buildernamespace_free: (a: number, b: number) => void;
61
- export const __wbg_parsernamespace_free: (a: number, b: number) => void;
62
- export const buildernamespace_build_from_versioned_data: (a: number, b: number) => void;
63
- export const buildernamespace_build_transaction: (a: number, b: number) => void;
64
- export const parsernamespace_parse_transaction: (a: number, b: number, c: number) => void;
57
+ export const ata_program_id: (a: number) => void;
58
+ export const compute_budget_program_id: (a: number) => void;
59
+ export const find_withdraw_authority_program_address: (a: number, b: number, c: number) => void;
60
+ export const get_associated_token_address: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
61
+ export const memo_program_id: (a: number) => void;
62
+ export const nonce_account_space: () => bigint;
63
+ export const stake_account_space: () => bigint;
64
+ export const stake_pool_program_id: (a: number) => void;
65
+ export const stake_program_id: (a: number) => void;
66
+ export const system_program_id: (a: number) => void;
67
+ export const sysvar_recent_blockhashes: (a: number) => void;
68
+ export const token_2022_program_id: (a: number) => void;
69
+ export const token_program_id: (a: number) => void;
65
70
  export const __wbg_keypair_free: (a: number, b: number) => void;
66
71
  export const keypair_constructor: () => number;
67
72
  export const keypair_fromBytes: (a: number, b: number, c: number) => void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitgo/wasm-solana",
3
3
  "description": "WebAssembly wrapper for Solana cryptographic operations",
4
- "version": "1.4.2",
4
+ "version": "1.6.0",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",