@ar.io/sdk 2.5.0-alpha.10 → 2.5.0-alpha.12
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.
- package/README.md +32 -0
- package/bundles/web.bundle.min.js +23 -23
- package/lib/cjs/common/io.js +9 -0
- package/lib/cjs/constants.js +1 -1
- package/lib/cjs/version.js +1 -1
- package/lib/esm/common/io.js +9 -0
- package/lib/esm/constants.js +1 -1
- package/lib/esm/version.js +1 -1
- package/lib/types/common/io.d.ts +3 -0
- package/lib/types/constants.d.ts +1 -1
- package/lib/types/types/io.d.ts +3 -0
- package/lib/types/version.d.ts +1 -1
- package/package.json +1 -1
package/lib/cjs/common/io.js
CHANGED
|
@@ -378,6 +378,15 @@ class IOReadable {
|
|
|
378
378
|
tags: (0, arweave_js_1.pruneTags)(allTags),
|
|
379
379
|
});
|
|
380
380
|
}
|
|
381
|
+
async getAllowedDelegates(params) {
|
|
382
|
+
return this.process.read({
|
|
383
|
+
tags: [
|
|
384
|
+
{ name: 'Action', value: 'Paginated-Allowed-Delegates' },
|
|
385
|
+
{ name: 'Address', value: params.address },
|
|
386
|
+
...(0, arweave_js_1.paginationParamsToTags)(params),
|
|
387
|
+
],
|
|
388
|
+
});
|
|
389
|
+
}
|
|
381
390
|
async getGatewayVaults(params) {
|
|
382
391
|
return this.process.read({
|
|
383
392
|
tags: [
|
package/lib/cjs/constants.js
CHANGED
|
@@ -30,5 +30,5 @@ exports.IO_TESTNET_PROCESS_ID = 'agYcCFJtrMG6cqMuZfskIkFTGvUPddICmtQSBIoPdiA';
|
|
|
30
30
|
exports.ANT_REGISTRY_ID = 'i_le_yKKPVstLTDSmkHRqf-wYphMnwB9OhleiTgMkWc';
|
|
31
31
|
exports.MIO_PER_IO = 1_000_000;
|
|
32
32
|
exports.AOS_MODULE_ID = 'cbn0KKrBZH7hdNkNokuXLtGryrWM--PjSTBqIzw9Kkk';
|
|
33
|
-
exports.ANT_LUA_ID = '
|
|
33
|
+
exports.ANT_LUA_ID = 'pOh2yupSaQCrLI_-ah8tVTiusUdVNTxxeWTQQHNdf30';
|
|
34
34
|
exports.DEFAULT_SCHEDULER_ID = '_GQ33BkPtZrqxA84vM8Zk-N2aO0toNNu_C-l-rawrBA';
|
package/lib/cjs/version.js
CHANGED
package/lib/esm/common/io.js
CHANGED
|
@@ -374,6 +374,15 @@ export class IOReadable {
|
|
|
374
374
|
tags: pruneTags(allTags),
|
|
375
375
|
});
|
|
376
376
|
}
|
|
377
|
+
async getAllowedDelegates(params) {
|
|
378
|
+
return this.process.read({
|
|
379
|
+
tags: [
|
|
380
|
+
{ name: 'Action', value: 'Paginated-Allowed-Delegates' },
|
|
381
|
+
{ name: 'Address', value: params.address },
|
|
382
|
+
...paginationParamsToTags(params),
|
|
383
|
+
],
|
|
384
|
+
});
|
|
385
|
+
}
|
|
377
386
|
async getGatewayVaults(params) {
|
|
378
387
|
return this.process.read({
|
|
379
388
|
tags: [
|
package/lib/esm/constants.js
CHANGED
|
@@ -27,5 +27,5 @@ export const IO_TESTNET_PROCESS_ID = 'agYcCFJtrMG6cqMuZfskIkFTGvUPddICmtQSBIoPdi
|
|
|
27
27
|
export const ANT_REGISTRY_ID = 'i_le_yKKPVstLTDSmkHRqf-wYphMnwB9OhleiTgMkWc';
|
|
28
28
|
export const MIO_PER_IO = 1_000_000;
|
|
29
29
|
export const AOS_MODULE_ID = 'cbn0KKrBZH7hdNkNokuXLtGryrWM--PjSTBqIzw9Kkk';
|
|
30
|
-
export const ANT_LUA_ID = '
|
|
30
|
+
export const ANT_LUA_ID = 'pOh2yupSaQCrLI_-ah8tVTiusUdVNTxxeWTQQHNdf30';
|
|
31
31
|
export const DEFAULT_SCHEDULER_ID = '_GQ33BkPtZrqxA84vM8Zk-N2aO0toNNu_C-l-rawrBA';
|
package/lib/esm/version.js
CHANGED
package/lib/types/common/io.d.ts
CHANGED
|
@@ -128,6 +128,9 @@ export declare class IOReadable implements AoIORead {
|
|
|
128
128
|
getDelegations(params: PaginationParams<AoDelegation> & {
|
|
129
129
|
address: WalletAddress;
|
|
130
130
|
}): Promise<PaginationResult<AoDelegation>>;
|
|
131
|
+
getAllowedDelegates(params: PaginationParams & {
|
|
132
|
+
address: WalletAddress;
|
|
133
|
+
}): Promise<PaginationResult<WalletAddress>>;
|
|
131
134
|
getGatewayVaults(params: PaginationParams<AoGatewayVault> & {
|
|
132
135
|
address: WalletAddress;
|
|
133
136
|
}): Promise<PaginationResult<AoGatewayVault>>;
|
package/lib/types/constants.d.ts
CHANGED
|
@@ -25,5 +25,5 @@ export declare const IO_TESTNET_PROCESS_ID = "agYcCFJtrMG6cqMuZfskIkFTGvUPddICmt
|
|
|
25
25
|
export declare const ANT_REGISTRY_ID = "i_le_yKKPVstLTDSmkHRqf-wYphMnwB9OhleiTgMkWc";
|
|
26
26
|
export declare const MIO_PER_IO = 1000000;
|
|
27
27
|
export declare const AOS_MODULE_ID = "cbn0KKrBZH7hdNkNokuXLtGryrWM--PjSTBqIzw9Kkk";
|
|
28
|
-
export declare const ANT_LUA_ID = "
|
|
28
|
+
export declare const ANT_LUA_ID = "pOh2yupSaQCrLI_-ah8tVTiusUdVNTxxeWTQQHNdf30";
|
|
29
29
|
export declare const DEFAULT_SCHEDULER_ID = "_GQ33BkPtZrqxA84vM8Zk-N2aO0toNNu_C-l-rawrBA";
|
package/lib/types/types/io.d.ts
CHANGED
|
@@ -268,6 +268,9 @@ export interface AoIORead {
|
|
|
268
268
|
getDelegations(params: PaginationParams<AoDelegation> & {
|
|
269
269
|
address: WalletAddress;
|
|
270
270
|
}): Promise<PaginationResult<AoDelegation>>;
|
|
271
|
+
getAllowedDelegates(params: PaginationParams & {
|
|
272
|
+
address: WalletAddress;
|
|
273
|
+
}): Promise<PaginationResult<WalletAddress>>;
|
|
271
274
|
getGatewayVaults(params: PaginationParams<AoGatewayVault> & {
|
|
272
275
|
address: WalletAddress;
|
|
273
276
|
}): Promise<PaginationResult<AoGatewayVault>>;
|
package/lib/types/version.d.ts
CHANGED