@ar.io/sdk 4.0.0-solana.14 → 4.0.0-solana.16

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.
@@ -38,21 +38,17 @@ import { address } from '@solana/kit';
38
38
  */
39
39
  export const DEVNET_RPC_URL = 'https://api.devnet.solana.com';
40
40
  /**
41
- * AR.IO program IDs deployed on Solana devnet.
41
+ * AR.IO program IDs deployed on Solana devnet (staging).
42
42
  *
43
43
  * Shape matches the `programIds` argument of
44
44
  * `ARIO.init({ backend: 'solana', programIds, ... })`.
45
- *
46
- * `antEscrow` is `null` because `ario-ant-escrow` is not deployed on
47
- * devnet — the `sol_big_mod_exp` syscall it depends on is inactive on
48
- * all public clusters today.
49
45
  */
50
46
  export const DEVNET_PROGRAM_IDS = {
51
- core: address('83CQLP848zzCgnZ4LTq87g6hvxTooNLX7YXXkUUGv5ig'),
52
- gar: address('AF8QAEaR4hzsqeUDwEdeTXMYtdyFegTENBdnJro6WVLR'),
53
- arns: address('2HgSCKYjcapJPdHRKqkLrGXm7kvBmCP45ZyhWEm87oM1'),
54
- ant: address('8ZMuXhiK7DorjPUg8RB1rzu7CvsABMk38WDJRbM62y2C'),
55
- antEscrow: null,
47
+ core: address('5iU1xZ4ocy7e96kcoEipvnxs8anSoq6JGznq6iS4svKn'),
48
+ gar: address('KpZMWCMeTiyH3dW3ZH9go4TwAg5vxgUXHuFVY8JbLFS'),
49
+ arns: address('2YjqZEYTTKLD3qg4NvYwpo2wVcDQCj2p4iD2WTYymfEC'),
50
+ ant: address('9SuQQKKW1mEvdRhXrdpHR5PqBMurY3wh7vbEkxzEsngu'),
51
+ antEscrow: address('GP5A7idQQmbGeuUcihAsgkV2Kc4LSpqoKyLMWBK46sCg'),
56
52
  };
57
53
  /** ARIO SPL Token mint on devnet. */
58
54
  export const DEVNET_ARIO_MINT = address('BZ3nczDe8To3c39eN7Beq9FW34BveUcEs9sDNkbGxn4U');
@@ -90,7 +90,9 @@ class BorshReader {
90
90
  }
91
91
  readString() {
92
92
  const len = this.readU32();
93
- const str = this.data.toString('utf8', this.offset, this.offset + len);
93
+ const str = this.data
94
+ .toString('utf8', this.offset, this.offset + len)
95
+ .replace(/\0/g, '');
94
96
  this.offset += len;
95
97
  return str;
96
98
  }
@@ -14,4 +14,4 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  // AUTOMATICALLY GENERATED FILE - DO NOT TOUCH
17
- export const version = '4.0.0-solana.14';
17
+ export const version = '4.0.0-solana.16';
@@ -38,21 +38,17 @@ import { type Address } from '@solana/kit';
38
38
  */
39
39
  export declare const DEVNET_RPC_URL = "https://api.devnet.solana.com";
40
40
  /**
41
- * AR.IO program IDs deployed on Solana devnet.
41
+ * AR.IO program IDs deployed on Solana devnet (staging).
42
42
  *
43
43
  * Shape matches the `programIds` argument of
44
44
  * `ARIO.init({ backend: 'solana', programIds, ... })`.
45
- *
46
- * `antEscrow` is `null` because `ario-ant-escrow` is not deployed on
47
- * devnet — the `sol_big_mod_exp` syscall it depends on is inactive on
48
- * all public clusters today.
49
45
  */
50
46
  export declare const DEVNET_PROGRAM_IDS: {
51
- readonly core: Address<"83CQLP848zzCgnZ4LTq87g6hvxTooNLX7YXXkUUGv5ig">;
52
- readonly gar: Address<"AF8QAEaR4hzsqeUDwEdeTXMYtdyFegTENBdnJro6WVLR">;
53
- readonly arns: Address<"2HgSCKYjcapJPdHRKqkLrGXm7kvBmCP45ZyhWEm87oM1">;
54
- readonly ant: Address<"8ZMuXhiK7DorjPUg8RB1rzu7CvsABMk38WDJRbM62y2C">;
55
- readonly antEscrow: Address | null;
47
+ readonly core: Address<"5iU1xZ4ocy7e96kcoEipvnxs8anSoq6JGznq6iS4svKn">;
48
+ readonly gar: Address<"KpZMWCMeTiyH3dW3ZH9go4TwAg5vxgUXHuFVY8JbLFS">;
49
+ readonly arns: Address<"2YjqZEYTTKLD3qg4NvYwpo2wVcDQCj2p4iD2WTYymfEC">;
50
+ readonly ant: Address<"9SuQQKKW1mEvdRhXrdpHR5PqBMurY3wh7vbEkxzEsngu">;
51
+ readonly antEscrow: Address<"GP5A7idQQmbGeuUcihAsgkV2Kc4LSpqoKyLMWBK46sCg">;
56
52
  };
57
53
  /** ARIO SPL Token mint on devnet. */
58
54
  export declare const DEVNET_ARIO_MINT: Address;
@@ -20,7 +20,11 @@ import type { ILogger } from '../common/logger.js';
20
20
  import type { SolanaRpc, SolanaRpcSubscriptions } from './types.js';
21
21
  export type EscrowProtocol = 'arweave' | 'ethereum';
22
22
  export interface EscrowAntState {
23
- version: number;
23
+ version: {
24
+ major: number;
25
+ minor: number;
26
+ patch: number;
27
+ };
24
28
  bump: number;
25
29
  depositor: Address;
26
30
  antMint: Address;
@@ -164,7 +168,11 @@ export declare class ANTEscrow {
164
168
  }
165
169
  export type EscrowAssetType = 'token' | 'vault';
166
170
  export interface EscrowTokenState {
167
- version: number;
171
+ version: {
172
+ major: number;
173
+ minor: number;
174
+ patch: number;
175
+ };
168
176
  bump: number;
169
177
  depositor: Address;
170
178
  assetType: EscrowAssetType;
@@ -13,4 +13,4 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export declare const version = "4.0.0-solana.13";
16
+ export declare const version = "4.0.0-solana.15";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ar.io/sdk",
3
- "version": "4.0.0-solana.14",
3
+ "version": "4.0.0-solana.16",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ar-io/ar-io-sdk.git"
@@ -122,7 +122,7 @@
122
122
  "typescript": "^5.1.6"
123
123
  },
124
124
  "dependencies": {
125
- "@ar.io/solana-contracts": "0.1.0-devnet.0",
125
+ "@ar.io/solana-contracts": "^0.3.0",
126
126
  "@solana-program/compute-budget": "^0.15.0",
127
127
  "@solana-program/token": "^0.13.0",
128
128
  "@solana/kit": "^6.8.0",