@ar.io/sdk 2.3.0-alpha.5 → 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.
@@ -161,6 +161,7 @@ exports.AntStateSchema = zod_1.z
161
161
  })
162
162
  .passthrough()),
163
163
  Balances: zod_1.z.record(zod_1.z.string(), zod_1.z.number()),
164
+ ['Source-Code-TX-ID']: zod_1.z.string(),
164
165
  })
165
166
  .passthrough();
166
167
  /**
@@ -17,4 +17,4 @@
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.version = void 0;
19
19
  // AUTOMATICALLY GENERATED FILE - DO NOT TOUCH
20
- exports.version = '2.3.0-alpha.5';
20
+ exports.version = '2.3.0-alpha.6';
@@ -154,6 +154,7 @@ export const AntStateSchema = z
154
154
  })
155
155
  .passthrough()),
156
156
  Balances: z.record(z.string(), z.number()),
157
+ ['Source-Code-TX-ID']: z.string(),
157
158
  })
158
159
  .passthrough();
159
160
  /**
@@ -14,4 +14,4 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  // AUTOMATICALLY GENERATED FILE - DO NOT TOUCH
17
- export const version = '2.3.0-alpha.5';
17
+ export const version = '2.3.0-alpha.6';
@@ -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/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>;
@@ -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
@@ -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 = "2.3.0-alpha.4";
16
+ export declare const version = "2.3.0-alpha.5";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ar.io/sdk",
3
- "version": "2.3.0-alpha.5",
3
+ "version": "2.3.0-alpha.6",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ar-io/ar-io-sdk.git"