@ar.io/sdk 3.1.0 → 3.2.0-alpha.2
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 +9 -0
- package/bundles/web.bundle.min.js +2 -2
- package/lib/cjs/common/ant.js +7 -0
- package/lib/cjs/version.js +1 -1
- package/lib/esm/common/ant.js +7 -0
- package/lib/esm/version.js +1 -1
- package/lib/types/cli/commands/readCommands.d.ts +3 -0
- package/lib/types/common/ant.d.ts +4 -0
- package/lib/types/types/ant.d.ts +1 -0
- 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/ant.js
CHANGED
|
@@ -74,6 +74,13 @@ class AoANTReadable {
|
|
|
74
74
|
}
|
|
75
75
|
return info;
|
|
76
76
|
}
|
|
77
|
+
/**
|
|
78
|
+
* Returns the TX ID of the logo set for the ANT.
|
|
79
|
+
*/
|
|
80
|
+
async getLogo() {
|
|
81
|
+
const info = await this.getInfo();
|
|
82
|
+
return info.Logo;
|
|
83
|
+
}
|
|
77
84
|
/**
|
|
78
85
|
* @param undername @type {string} The domain name.
|
|
79
86
|
* @returns {Promise<ANTRecord>} The record of the undername domain.
|
package/lib/cjs/version.js
CHANGED
package/lib/esm/common/ant.js
CHANGED
|
@@ -70,6 +70,13 @@ export class AoANTReadable {
|
|
|
70
70
|
}
|
|
71
71
|
return info;
|
|
72
72
|
}
|
|
73
|
+
/**
|
|
74
|
+
* Returns the TX ID of the logo set for the ANT.
|
|
75
|
+
*/
|
|
76
|
+
async getLogo() {
|
|
77
|
+
const info = await this.getInfo();
|
|
78
|
+
return info.Logo;
|
|
79
|
+
}
|
|
73
80
|
/**
|
|
74
81
|
* @param undername @type {string} The domain name.
|
|
75
82
|
* @returns {Promise<ANTRecord>} The record of the undername domain.
|
package/lib/esm/version.js
CHANGED
|
@@ -65,6 +65,9 @@ export declare function getCostDetails(o: GlobalCLIOptions & CLIOptionsFromAoPar
|
|
|
65
65
|
message: string;
|
|
66
66
|
tokenCost: number;
|
|
67
67
|
discounts: import("../../types/io.js").CostDiscount[];
|
|
68
|
+
returnedNameDetails?: (import("../../types/io.js").AoReturnedName & {
|
|
69
|
+
basePrice: number;
|
|
70
|
+
}) | undefined;
|
|
68
71
|
fundingPlan?: import("../../types/io.js").AoFundingPlan | undefined;
|
|
69
72
|
}>;
|
|
70
73
|
export declare function getPrimaryName(o: AddressAndNameCLIOptions): Promise<import("../../types/common.js").AoPrimaryName | {
|
|
@@ -18,6 +18,10 @@ export declare class AoANTReadable implements AoANTRead {
|
|
|
18
18
|
});
|
|
19
19
|
getState({ strict }?: AntReadOptions): Promise<AoANTState>;
|
|
20
20
|
getInfo({ strict }?: AntReadOptions): Promise<AoANTInfo>;
|
|
21
|
+
/**
|
|
22
|
+
* Returns the TX ID of the logo set for the ANT.
|
|
23
|
+
*/
|
|
24
|
+
getLogo(): Promise<string>;
|
|
21
25
|
/**
|
|
22
26
|
* @param undername @type {string} The domain name.
|
|
23
27
|
* @returns {Promise<ANTRecord>} The record of the undername domain.
|
package/lib/types/types/ant.d.ts
CHANGED
|
@@ -170,6 +170,7 @@ export interface AoANTRead {
|
|
|
170
170
|
getOwner(opts?: AntReadOptions): Promise<WalletAddress>;
|
|
171
171
|
getControllers(): Promise<WalletAddress[]>;
|
|
172
172
|
getTicker(opts?: AntReadOptions): Promise<string>;
|
|
173
|
+
getLogo(opts?: AntReadOptions): Promise<string>;
|
|
173
174
|
getName(opts?: AntReadOptions): Promise<string>;
|
|
174
175
|
getBalance({ address }: {
|
|
175
176
|
address: WalletAddress;
|
package/lib/types/types/io.d.ts
CHANGED
|
@@ -293,6 +293,9 @@ export type CostDiscount = {
|
|
|
293
293
|
export type CostDetailsResult = {
|
|
294
294
|
tokenCost: number;
|
|
295
295
|
discounts: CostDiscount[];
|
|
296
|
+
returnedNameDetails?: AoReturnedName & {
|
|
297
|
+
basePrice: number;
|
|
298
|
+
};
|
|
296
299
|
fundingPlan?: AoFundingPlan;
|
|
297
300
|
};
|
|
298
301
|
export type AoGetVaultParams = {
|
package/lib/types/version.d.ts
CHANGED