@bitgo/wasm-solana 1.4.2 → 1.5.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
@@ -62,6 +62,22 @@ class Transaction {
62
62
  get numSignatures() {
63
63
  return this._wasm.num_signatures;
64
64
  }
65
+ /**
66
+ * Get the transaction ID (first signature as base58).
67
+ *
68
+ * For Solana, the transaction ID is the first signature.
69
+ * Returns "UNSIGNED" if the transaction has no valid signatures.
70
+ *
71
+ * @example
72
+ * ```typescript
73
+ * const tx = Transaction.fromBytes(txBytes);
74
+ * tx.addSignature(pubkey, signature);
75
+ * console.log(tx.id); // Base58 encoded signature
76
+ * ```
77
+ */
78
+ get id() {
79
+ return this._wasm.id;
80
+ }
65
81
  /**
66
82
  * Get the signable message payload (what gets signed)
67
83
  * This is the serialized message that signers sign
@@ -86,6 +102,13 @@ class Transaction {
86
102
  toBytes() {
87
103
  return this._wasm.to_bytes();
88
104
  }
105
+ /**
106
+ * Serialize to network broadcast format.
107
+ * @returns The transaction as bytes ready for broadcast
108
+ */
109
+ toBroadcastFormat() {
110
+ return this.toBytes();
111
+ }
89
112
  /**
90
113
  * Get all account keys as Pubkey instances
91
114
  * @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.
@@ -115,6 +115,15 @@ class VersionedTransaction {
115
115
  get numSignatures() {
116
116
  return this.inner.num_signatures;
117
117
  }
118
+ /**
119
+ * Get the transaction ID (first signature as base58).
120
+ *
121
+ * For Solana, the transaction ID is the first signature.
122
+ * Returns "UNSIGNED" if the transaction has no valid signatures.
123
+ */
124
+ get id() {
125
+ return this.inner.id;
126
+ }
118
127
  /**
119
128
  * Get the signable message payload.
120
129
  */
@@ -142,6 +151,13 @@ class VersionedTransaction {
142
151
  toBase64() {
143
152
  return Buffer.from(this.toBytes()).toString("base64");
144
153
  }
154
+ /**
155
+ * Serialize to network broadcast format.
156
+ * @returns The transaction as bytes ready for broadcast
157
+ */
158
+ toBroadcastFormat() {
159
+ return this.toBytes();
160
+ }
145
161
  /**
146
162
  * Get static account keys (accounts stored directly in the message).
147
163
  * For versioned transactions, additional accounts may be referenced via ALTs.
@@ -804,6 +804,13 @@ export class WasmTransaction {
804
804
  * Get the recent blockhash as a base58 string.
805
805
  */
806
806
  readonly recent_blockhash: string;
807
+ /**
808
+ * Get the transaction ID (first signature as base58).
809
+ *
810
+ * For Solana, the transaction ID is the first signature.
811
+ * Returns "UNSIGNED" if the first signature is all zeros (unsigned transaction).
812
+ */
813
+ readonly id: string;
807
814
  /**
808
815
  * Get the fee payer address as a base58 string.
809
816
  *
@@ -891,6 +898,13 @@ export class WasmVersionedTransaction {
891
898
  * Get the recent blockhash as a base58 string.
892
899
  */
893
900
  readonly recent_blockhash: string;
901
+ /**
902
+ * Get the transaction ID (first signature as base58).
903
+ *
904
+ * For Solana, the transaction ID is the first signature.
905
+ * Returns "UNSIGNED" if the first signature is all zeros (unsigned transaction).
906
+ */
907
+ readonly id: string;
894
908
  /**
895
909
  * Get the fee payer address as a base58 string.
896
910
  */
@@ -4942,6 +4942,29 @@ class WasmTransaction {
4942
4942
  const ret = wasm.wasmtransaction_signable_payload(this.__wbg_ptr);
4943
4943
  return takeObject(ret);
4944
4944
  }
4945
+ /**
4946
+ * Get the transaction ID (first signature as base58).
4947
+ *
4948
+ * For Solana, the transaction ID is the first signature.
4949
+ * Returns "UNSIGNED" if the first signature is all zeros (unsigned transaction).
4950
+ * @returns {string}
4951
+ */
4952
+ get id() {
4953
+ let deferred1_0;
4954
+ let deferred1_1;
4955
+ try {
4956
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4957
+ wasm.wasmtransaction_id(retptr, this.__wbg_ptr);
4958
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
4959
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
4960
+ deferred1_0 = r0;
4961
+ deferred1_1 = r1;
4962
+ return getStringFromWasm0(r0, r1);
4963
+ } finally {
4964
+ wasm.__wbindgen_add_to_stack_pointer(16);
4965
+ wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
4966
+ }
4967
+ }
4945
4968
  /**
4946
4969
  * Serialize the transaction to bytes.
4947
4970
  * @returns {Uint8Array}
@@ -5173,6 +5196,29 @@ class WasmVersionedTransaction {
5173
5196
  const ret = wasm.wasmversionedtransaction_address_lookup_tables(this.__wbg_ptr);
5174
5197
  return takeObject(ret);
5175
5198
  }
5199
+ /**
5200
+ * Get the transaction ID (first signature as base58).
5201
+ *
5202
+ * For Solana, the transaction ID is the first signature.
5203
+ * Returns "UNSIGNED" if the first signature is all zeros (unsigned transaction).
5204
+ * @returns {string}
5205
+ */
5206
+ get id() {
5207
+ let deferred1_0;
5208
+ let deferred1_1;
5209
+ try {
5210
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
5211
+ wasm.wasmversionedtransaction_id(retptr, this.__wbg_ptr);
5212
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
5213
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
5214
+ deferred1_0 = r0;
5215
+ deferred1_1 = r1;
5216
+ return getStringFromWasm0(r0, r1);
5217
+ } finally {
5218
+ wasm.__wbindgen_add_to_stack_pointer(16);
5219
+ wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
5220
+ }
5221
+ }
5176
5222
  /**
5177
5223
  * Serialize the transaction to bytes.
5178
5224
  * @returns {Uint8Array}
@@ -1,39 +1,32 @@
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;
17
- export const __wbg_wasmkeypair_free: (a: number, b: number) => void;
4
+ export const __wbg_buildernamespace_free: (a: number, b: number) => void;
18
5
  export const __wbg_wasmpubkey_free: (a: number, b: number) => void;
6
+ export const buildernamespace_build_from_versioned_data: (a: number, b: number) => void;
7
+ export const buildernamespace_build_transaction: (a: number, b: number) => void;
8
+ export const wasmpubkey_equals: (a: number, b: number) => number;
9
+ export const wasmpubkey_from_base58: (a: number, b: number, c: number) => void;
10
+ export const wasmpubkey_from_bytes: (a: number, b: number, c: number) => void;
11
+ export const wasmpubkey_is_on_curve: (a: number) => number;
12
+ export const wasmpubkey_to_base58: (a: number, b: number) => void;
13
+ export const wasmpubkey_to_bytes: (a: number) => number;
14
+ export const __wbg_parsernamespace_free: (a: number, b: number) => void;
15
+ export const __wbg_wasmkeypair_free: (a: number, b: number) => void;
19
16
  export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
20
17
  export const __wbg_wasmversionedtransaction_free: (a: number, b: number) => void;
21
18
  export const is_versioned_transaction: (a: number, b: number) => number;
19
+ export const parsernamespace_parse_transaction: (a: number, b: number, c: number) => void;
22
20
  export const wasmkeypair_address: (a: number, b: number) => void;
23
21
  export const wasmkeypair_from_secret_key: (a: number, b: number, c: number) => void;
24
22
  export const wasmkeypair_from_solana_secret_key: (a: number, b: number, c: number) => void;
25
23
  export const wasmkeypair_public_key: (a: number) => number;
26
24
  export const wasmkeypair_secret_key: (a: number) => number;
27
- export const wasmpubkey_equals: (a: number, b: number) => number;
28
- export const wasmpubkey_from_base58: (a: number, b: number, c: number) => void;
29
- export const wasmpubkey_from_bytes: (a: number, b: number, c: number) => void;
30
- export const wasmpubkey_is_on_curve: (a: number) => number;
31
- export const wasmpubkey_to_base58: (a: number, b: number) => void;
32
- export const wasmpubkey_to_bytes: (a: number) => number;
33
25
  export const wasmtransaction_account_keys: (a: number) => number;
34
26
  export const wasmtransaction_add_signature: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
35
27
  export const wasmtransaction_fee_payer: (a: number, b: number) => void;
36
28
  export const wasmtransaction_from_bytes: (a: number, b: number, c: number) => void;
29
+ export const wasmtransaction_id: (a: number, b: number) => void;
37
30
  export const wasmtransaction_instructions: (a: number) => number;
38
31
  export const wasmtransaction_num_instructions: (a: number) => number;
39
32
  export const wasmtransaction_num_signatures: (a: number) => number;
@@ -46,6 +39,7 @@ export const wasmversionedtransaction_add_signature: (a: number, b: number, c: n
46
39
  export const wasmversionedtransaction_address_lookup_tables: (a: number) => number;
47
40
  export const wasmversionedtransaction_fee_payer: (a: number, b: number) => void;
48
41
  export const wasmversionedtransaction_from_bytes: (a: number, b: number, c: number) => void;
42
+ export const wasmversionedtransaction_id: (a: number, b: number) => void;
49
43
  export const wasmversionedtransaction_instructions: (a: number) => number;
50
44
  export const wasmversionedtransaction_is_versioned: (a: number) => number;
51
45
  export const wasmversionedtransaction_num_instructions: (a: number) => number;
@@ -57,11 +51,19 @@ export const wasmversionedtransaction_static_account_keys: (a: number) => number
57
51
  export const wasmversionedtransaction_to_bytes: (a: number, b: number) => void;
58
52
  export const wasmkeypair_to_base58: (a: number, b: number) => void;
59
53
  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;
54
+ export const ata_program_id: (a: number) => void;
55
+ export const compute_budget_program_id: (a: number) => void;
56
+ export const find_withdraw_authority_program_address: (a: number, b: number, c: number) => void;
57
+ export const get_associated_token_address: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
58
+ export const memo_program_id: (a: number) => void;
59
+ export const nonce_account_space: () => bigint;
60
+ export const stake_account_space: () => bigint;
61
+ export const stake_pool_program_id: (a: number) => void;
62
+ export const stake_program_id: (a: number) => void;
63
+ export const system_program_id: (a: number) => void;
64
+ export const sysvar_recent_blockhashes: (a: number) => void;
65
+ export const token_2022_program_id: (a: number) => void;
66
+ export const token_program_id: (a: number) => void;
65
67
  export const __wbg_keypair_free: (a: number, b: number) => void;
66
68
  export const keypair_constructor: () => number;
67
69
  export const keypair_fromBytes: (a: number, b: number, c: number) => void;
@@ -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.
@@ -804,6 +804,13 @@ export class WasmTransaction {
804
804
  * Get the recent blockhash as a base58 string.
805
805
  */
806
806
  readonly recent_blockhash: string;
807
+ /**
808
+ * Get the transaction ID (first signature as base58).
809
+ *
810
+ * For Solana, the transaction ID is the first signature.
811
+ * Returns "UNSIGNED" if the first signature is all zeros (unsigned transaction).
812
+ */
813
+ readonly id: string;
807
814
  /**
808
815
  * Get the fee payer address as a base58 string.
809
816
  *
@@ -891,6 +898,13 @@ export class WasmVersionedTransaction {
891
898
  * Get the recent blockhash as a base58 string.
892
899
  */
893
900
  readonly recent_blockhash: string;
901
+ /**
902
+ * Get the transaction ID (first signature as base58).
903
+ *
904
+ * For Solana, the transaction ID is the first signature.
905
+ * Returns "UNSIGNED" if the first signature is all zeros (unsigned transaction).
906
+ */
907
+ readonly id: string;
894
908
  /**
895
909
  * Get the fee payer address as a base58 string.
896
910
  */
@@ -4889,6 +4889,29 @@ export class WasmTransaction {
4889
4889
  const ret = wasm.wasmtransaction_signable_payload(this.__wbg_ptr);
4890
4890
  return takeObject(ret);
4891
4891
  }
4892
+ /**
4893
+ * Get the transaction ID (first signature as base58).
4894
+ *
4895
+ * For Solana, the transaction ID is the first signature.
4896
+ * Returns "UNSIGNED" if the first signature is all zeros (unsigned transaction).
4897
+ * @returns {string}
4898
+ */
4899
+ get id() {
4900
+ let deferred1_0;
4901
+ let deferred1_1;
4902
+ try {
4903
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4904
+ wasm.wasmtransaction_id(retptr, this.__wbg_ptr);
4905
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
4906
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
4907
+ deferred1_0 = r0;
4908
+ deferred1_1 = r1;
4909
+ return getStringFromWasm0(r0, r1);
4910
+ } finally {
4911
+ wasm.__wbindgen_add_to_stack_pointer(16);
4912
+ wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
4913
+ }
4914
+ }
4892
4915
  /**
4893
4916
  * Serialize the transaction to bytes.
4894
4917
  * @returns {Uint8Array}
@@ -5119,6 +5142,29 @@ export class WasmVersionedTransaction {
5119
5142
  const ret = wasm.wasmversionedtransaction_address_lookup_tables(this.__wbg_ptr);
5120
5143
  return takeObject(ret);
5121
5144
  }
5145
+ /**
5146
+ * Get the transaction ID (first signature as base58).
5147
+ *
5148
+ * For Solana, the transaction ID is the first signature.
5149
+ * Returns "UNSIGNED" if the first signature is all zeros (unsigned transaction).
5150
+ * @returns {string}
5151
+ */
5152
+ get id() {
5153
+ let deferred1_0;
5154
+ let deferred1_1;
5155
+ try {
5156
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
5157
+ wasm.wasmversionedtransaction_id(retptr, this.__wbg_ptr);
5158
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
5159
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
5160
+ deferred1_0 = r0;
5161
+ deferred1_1 = r1;
5162
+ return getStringFromWasm0(r0, r1);
5163
+ } finally {
5164
+ wasm.__wbindgen_add_to_stack_pointer(16);
5165
+ wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
5166
+ }
5167
+ }
5122
5168
  /**
5123
5169
  * Serialize the transaction to bytes.
5124
5170
  * @returns {Uint8Array}
@@ -1,39 +1,32 @@
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;
17
- export const __wbg_wasmkeypair_free: (a: number, b: number) => void;
4
+ export const __wbg_buildernamespace_free: (a: number, b: number) => void;
18
5
  export const __wbg_wasmpubkey_free: (a: number, b: number) => void;
6
+ export const buildernamespace_build_from_versioned_data: (a: number, b: number) => void;
7
+ export const buildernamespace_build_transaction: (a: number, b: number) => void;
8
+ export const wasmpubkey_equals: (a: number, b: number) => number;
9
+ export const wasmpubkey_from_base58: (a: number, b: number, c: number) => void;
10
+ export const wasmpubkey_from_bytes: (a: number, b: number, c: number) => void;
11
+ export const wasmpubkey_is_on_curve: (a: number) => number;
12
+ export const wasmpubkey_to_base58: (a: number, b: number) => void;
13
+ export const wasmpubkey_to_bytes: (a: number) => number;
14
+ export const __wbg_parsernamespace_free: (a: number, b: number) => void;
15
+ export const __wbg_wasmkeypair_free: (a: number, b: number) => void;
19
16
  export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
20
17
  export const __wbg_wasmversionedtransaction_free: (a: number, b: number) => void;
21
18
  export const is_versioned_transaction: (a: number, b: number) => number;
19
+ export const parsernamespace_parse_transaction: (a: number, b: number, c: number) => void;
22
20
  export const wasmkeypair_address: (a: number, b: number) => void;
23
21
  export const wasmkeypair_from_secret_key: (a: number, b: number, c: number) => void;
24
22
  export const wasmkeypair_from_solana_secret_key: (a: number, b: number, c: number) => void;
25
23
  export const wasmkeypair_public_key: (a: number) => number;
26
24
  export const wasmkeypair_secret_key: (a: number) => number;
27
- export const wasmpubkey_equals: (a: number, b: number) => number;
28
- export const wasmpubkey_from_base58: (a: number, b: number, c: number) => void;
29
- export const wasmpubkey_from_bytes: (a: number, b: number, c: number) => void;
30
- export const wasmpubkey_is_on_curve: (a: number) => number;
31
- export const wasmpubkey_to_base58: (a: number, b: number) => void;
32
- export const wasmpubkey_to_bytes: (a: number) => number;
33
25
  export const wasmtransaction_account_keys: (a: number) => number;
34
26
  export const wasmtransaction_add_signature: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
35
27
  export const wasmtransaction_fee_payer: (a: number, b: number) => void;
36
28
  export const wasmtransaction_from_bytes: (a: number, b: number, c: number) => void;
29
+ export const wasmtransaction_id: (a: number, b: number) => void;
37
30
  export const wasmtransaction_instructions: (a: number) => number;
38
31
  export const wasmtransaction_num_instructions: (a: number) => number;
39
32
  export const wasmtransaction_num_signatures: (a: number) => number;
@@ -46,6 +39,7 @@ export const wasmversionedtransaction_add_signature: (a: number, b: number, c: n
46
39
  export const wasmversionedtransaction_address_lookup_tables: (a: number) => number;
47
40
  export const wasmversionedtransaction_fee_payer: (a: number, b: number) => void;
48
41
  export const wasmversionedtransaction_from_bytes: (a: number, b: number, c: number) => void;
42
+ export const wasmversionedtransaction_id: (a: number, b: number) => void;
49
43
  export const wasmversionedtransaction_instructions: (a: number) => number;
50
44
  export const wasmversionedtransaction_is_versioned: (a: number) => number;
51
45
  export const wasmversionedtransaction_num_instructions: (a: number) => number;
@@ -57,11 +51,19 @@ export const wasmversionedtransaction_static_account_keys: (a: number) => number
57
51
  export const wasmversionedtransaction_to_bytes: (a: number, b: number) => void;
58
52
  export const wasmkeypair_to_base58: (a: number, b: number) => void;
59
53
  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;
54
+ export const ata_program_id: (a: number) => void;
55
+ export const compute_budget_program_id: (a: number) => void;
56
+ export const find_withdraw_authority_program_address: (a: number, b: number, c: number) => void;
57
+ export const get_associated_token_address: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
58
+ export const memo_program_id: (a: number) => void;
59
+ export const nonce_account_space: () => bigint;
60
+ export const stake_account_space: () => bigint;
61
+ export const stake_pool_program_id: (a: number) => void;
62
+ export const stake_program_id: (a: number) => void;
63
+ export const system_program_id: (a: number) => void;
64
+ export const sysvar_recent_blockhashes: (a: number) => void;
65
+ export const token_2022_program_id: (a: number) => void;
66
+ export const token_program_id: (a: number) => void;
65
67
  export const __wbg_keypair_free: (a: number, b: number) => void;
66
68
  export const keypair_constructor: () => number;
67
69
  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.5.0",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",