@ar.io/sdk 3.2.0-alpha.1 → 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/common/ant.d.ts +4 -0
- package/lib/types/types/ant.d.ts +1 -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
|
@@ -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/version.d.ts
CHANGED