@ar.io/sdk 2.3.0-alpha.4 → 2.3.0-alpha.6
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/bundles/web.bundle.min.js +11 -11
- package/lib/cjs/constants.js +1 -1
- package/lib/cjs/utils/ao.js +1 -0
- package/lib/cjs/version.js +1 -1
- package/lib/esm/constants.js +1 -1
- package/lib/esm/utils/ao.js +1 -0
- package/lib/esm/version.js +1 -1
- package/lib/types/common/ant.d.ts +2 -8
- package/lib/types/constants.d.ts +1 -1
- package/lib/types/io.d.ts +12 -7
- package/lib/types/utils/ao.d.ts +3 -0
- package/lib/types/version.d.ts +1 -1
- package/package.json +1 -1
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/utils/ao.js
CHANGED
package/lib/cjs/version.js
CHANGED
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/utils/ao.js
CHANGED
package/lib/esm/version.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { AoANTRead, AoANTRecord, AoANTState, AoANTWrite, AoMessageResult, ProcessConfiguration, WalletAddress, WithSigner, WriteOptions } from '../types.js';
|
|
16
|
+
import { AoANTInfo, AoANTRead, AoANTRecord, AoANTState, AoANTWrite, AoMessageResult, ProcessConfiguration, WalletAddress, WithSigner, WriteOptions } from '../types.js';
|
|
17
17
|
import { AOProcess } from './index.js';
|
|
18
18
|
export declare class ANT {
|
|
19
19
|
static init(config: Required<ProcessConfiguration> & {
|
|
@@ -25,13 +25,7 @@ export declare class AoANTReadable implements AoANTRead {
|
|
|
25
25
|
protected process: AOProcess;
|
|
26
26
|
constructor(config: Required<ProcessConfiguration>);
|
|
27
27
|
getState(): Promise<AoANTState>;
|
|
28
|
-
getInfo(): Promise<
|
|
29
|
-
Name: string;
|
|
30
|
-
Ticker: string;
|
|
31
|
-
Denomination: number;
|
|
32
|
-
Owner: string;
|
|
33
|
-
['Source-Code-TX-ID']?: string;
|
|
34
|
-
}>;
|
|
28
|
+
getInfo(): Promise<AoANTInfo>;
|
|
35
29
|
/**
|
|
36
30
|
* @param undername @type {string} The domain name.
|
|
37
31
|
* @returns {Promise<ANTRecord>} The record of the undername domain.
|
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/io.d.ts
CHANGED
|
@@ -195,6 +195,17 @@ export type AoANTState = {
|
|
|
195
195
|
Logo: string;
|
|
196
196
|
TotalSupply: number;
|
|
197
197
|
Initialized: boolean;
|
|
198
|
+
['Source-Code-TX-ID']: string;
|
|
199
|
+
};
|
|
200
|
+
export type AoANTInfo = {
|
|
201
|
+
Name: string;
|
|
202
|
+
Owner: string;
|
|
203
|
+
Handlers: string[];
|
|
204
|
+
['Source-Code-TX-ID']: string;
|
|
205
|
+
Ticker: string;
|
|
206
|
+
['Total-Supply']: string;
|
|
207
|
+
Logo: string;
|
|
208
|
+
Denomination: string;
|
|
198
209
|
};
|
|
199
210
|
export type AoANTRecord = {
|
|
200
211
|
transactionId: string;
|
|
@@ -307,13 +318,7 @@ export interface AoIOWrite extends AoIORead {
|
|
|
307
318
|
}
|
|
308
319
|
export interface AoANTRead {
|
|
309
320
|
getState(): Promise<AoANTState>;
|
|
310
|
-
getInfo(): Promise<
|
|
311
|
-
Name: string;
|
|
312
|
-
Ticker: string;
|
|
313
|
-
Denomination: number;
|
|
314
|
-
Owner: string;
|
|
315
|
-
['Source-Code-TX-ID']?: string;
|
|
316
|
-
}>;
|
|
321
|
+
getInfo(): Promise<AoANTInfo>;
|
|
317
322
|
getRecord({ undername }: {
|
|
318
323
|
undername: any;
|
|
319
324
|
}): Promise<AoANTRecord | undefined>;
|
package/lib/types/utils/ao.d.ts
CHANGED
|
@@ -42,6 +42,7 @@ export declare const AntStateSchema: z.ZodObject<{
|
|
|
42
42
|
ttlSeconds: z.ZodNumber;
|
|
43
43
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
44
44
|
Balances: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
45
|
+
"Source-Code-TX-ID": z.ZodString;
|
|
45
46
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
46
47
|
Name: z.ZodString;
|
|
47
48
|
Ticker: z.ZodString;
|
|
@@ -58,6 +59,7 @@ export declare const AntStateSchema: z.ZodObject<{
|
|
|
58
59
|
ttlSeconds: z.ZodNumber;
|
|
59
60
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
60
61
|
Balances: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
62
|
+
"Source-Code-TX-ID": z.ZodString;
|
|
61
63
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
62
64
|
Name: z.ZodString;
|
|
63
65
|
Ticker: z.ZodString;
|
|
@@ -74,6 +76,7 @@ export declare const AntStateSchema: z.ZodObject<{
|
|
|
74
76
|
ttlSeconds: z.ZodNumber;
|
|
75
77
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
76
78
|
Balances: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
79
|
+
"Source-Code-TX-ID": z.ZodString;
|
|
77
80
|
}, z.ZodTypeAny, "passthrough">>;
|
|
78
81
|
/**
|
|
79
82
|
* @param state
|
package/lib/types/version.d.ts
CHANGED