@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.
@@ -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.
@@ -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 = '3.1.0';
20
+ exports.version = '3.2.0-alpha.2';
@@ -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.
@@ -14,4 +14,4 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  // AUTOMATICALLY GENERATED FILE - DO NOT TOUCH
17
- export const version = '3.1.0';
17
+ export const version = '3.2.0-alpha.2';
@@ -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.
@@ -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;
@@ -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 = {
@@ -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 = "3.1.0-alpha.11";
16
+ export declare const version = "3.2.0-alpha.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ar.io/sdk",
3
- "version": "3.1.0",
3
+ "version": "3.2.0-alpha.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ar-io/ar-io-sdk.git"