@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('
|
|
52
|
-
gar: address('
|
|
53
|
-
arns: address('
|
|
54
|
-
ant: address('
|
|
55
|
-
antEscrow:
|
|
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
|
|
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
|
}
|
package/lib/esm/version.js
CHANGED
|
@@ -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<"
|
|
52
|
-
readonly gar: Address<"
|
|
53
|
-
readonly arns: Address<"
|
|
54
|
-
readonly ant: Address<"
|
|
55
|
-
readonly antEscrow: Address
|
|
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:
|
|
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:
|
|
171
|
+
version: {
|
|
172
|
+
major: number;
|
|
173
|
+
minor: number;
|
|
174
|
+
patch: number;
|
|
175
|
+
};
|
|
168
176
|
bump: number;
|
|
169
177
|
depositor: Address;
|
|
170
178
|
assetType: EscrowAssetType;
|
package/lib/types/version.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ar.io/sdk",
|
|
3
|
-
"version": "4.0.0-solana.
|
|
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.
|
|
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",
|