@ar.io/sdk 3.5.1-alpha.4 → 3.5.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.
@@ -24,7 +24,7 @@ async function buyRecordCLICommand(o) {
24
24
  ario,
25
25
  address: signerAddress,
26
26
  costDetailsParams: {
27
- intent: 'Buy-Record',
27
+ intent: 'Buy-Name',
28
28
  type,
29
29
  name,
30
30
  years,
@@ -436,7 +436,7 @@ function getANTStateFromOptions(options) {
436
436
  }
437
437
  exports.getANTStateFromOptions = getANTStateFromOptions;
438
438
  function getTokenCostParamsFromOptions(o) {
439
- o.intent ??= 'Buy-Record';
439
+ o.intent ??= 'Buy-Name';
440
440
  o.type ??= 'lease';
441
441
  o.years ??= '1';
442
442
  if (!(0, index_js_1.isValidIntent)(o.intent)) {
@@ -299,11 +299,12 @@ class ARIOReadable {
299
299
  });
300
300
  }
301
301
  async getTokenCost({ intent, type, years, name, quantity, fromAddress, }) {
302
+ const replacedBuyRecordWithBuyName = intent === 'Buy-Record' ? 'Buy-Name' : intent;
302
303
  const allTags = [
303
304
  { name: 'Action', value: 'Token-Cost' },
304
305
  {
305
306
  name: 'Intent',
306
- value: intent,
307
+ value: replacedBuyRecordWithBuyName,
307
308
  },
308
309
  {
309
310
  name: 'Name',
@@ -29,7 +29,7 @@ exports.arioDevnetProcessId = exports.ARIO_DEVNET_PROCESS_ID;
29
29
  exports.ARIO_TESTNET_PROCESS_ID = 'agYcCFJtrMG6cqMuZfskIkFTGvUPddICmtQSBIoPdiA';
30
30
  exports.ANT_REGISTRY_ID = 'i_le_yKKPVstLTDSmkHRqf-wYphMnwB9OhleiTgMkWc';
31
31
  exports.MARIO_PER_ARIO = 1_000_000;
32
- exports.AOS_MODULE_ID = '4uMwpOuU-YF9pKbqC73tmMCf2OLFUY8U0gCWEUCy-4M';
33
- exports.ANT_LUA_ID = 's9drxRd-ylbJVtAi14tGmF7e42kA69PgfKUtgtmvAmU';
32
+ exports.AOS_MODULE_ID = 'gFNGk70U9iwof9MyDqqKeizGa98w66-qCyFxupzXUnU';
33
+ exports.ANT_LUA_ID = 'W2sHFPAZ86BJLrU-HPp2P7twdlmbFJbckbCe42ETX-4';
34
34
  exports.AO_AUTHORITY = 'fcoN_xJeisVsPXA-trzVAuIiqO3ydLQxM-L4XbrQKzY';
35
35
  exports.DEFAULT_SCHEDULER_ID = '_GQ33BkPtZrqxA84vM8Zk-N2aO0toNNu_C-l-rawrBA';
@@ -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.5.1-alpha.4';
20
+ exports.version = '3.5.2';
@@ -21,7 +21,7 @@ export async function buyRecordCLICommand(o) {
21
21
  ario,
22
22
  address: signerAddress,
23
23
  costDetailsParams: {
24
- intent: 'Buy-Record',
24
+ intent: 'Buy-Name',
25
25
  type,
26
26
  name,
27
27
  years,
@@ -392,7 +392,7 @@ export function getANTStateFromOptions(options) {
392
392
  });
393
393
  }
394
394
  export function getTokenCostParamsFromOptions(o) {
395
- o.intent ??= 'Buy-Record';
395
+ o.intent ??= 'Buy-Name';
396
396
  o.type ??= 'lease';
397
397
  o.years ??= '1';
398
398
  if (!isValidIntent(o.intent)) {
@@ -295,11 +295,12 @@ export class ARIOReadable {
295
295
  });
296
296
  }
297
297
  async getTokenCost({ intent, type, years, name, quantity, fromAddress, }) {
298
+ const replacedBuyRecordWithBuyName = intent === 'Buy-Record' ? 'Buy-Name' : intent;
298
299
  const allTags = [
299
300
  { name: 'Action', value: 'Token-Cost' },
300
301
  {
301
302
  name: 'Intent',
302
- value: intent,
303
+ value: replacedBuyRecordWithBuyName,
303
304
  },
304
305
  {
305
306
  name: 'Name',
@@ -26,7 +26,7 @@ export const arioDevnetProcessId = ARIO_DEVNET_PROCESS_ID;
26
26
  export const ARIO_TESTNET_PROCESS_ID = 'agYcCFJtrMG6cqMuZfskIkFTGvUPddICmtQSBIoPdiA';
27
27
  export const ANT_REGISTRY_ID = 'i_le_yKKPVstLTDSmkHRqf-wYphMnwB9OhleiTgMkWc';
28
28
  export const MARIO_PER_ARIO = 1_000_000;
29
- export const AOS_MODULE_ID = '4uMwpOuU-YF9pKbqC73tmMCf2OLFUY8U0gCWEUCy-4M';
30
- export const ANT_LUA_ID = 's9drxRd-ylbJVtAi14tGmF7e42kA69PgfKUtgtmvAmU';
29
+ export const AOS_MODULE_ID = 'gFNGk70U9iwof9MyDqqKeizGa98w66-qCyFxupzXUnU';
30
+ export const ANT_LUA_ID = 'W2sHFPAZ86BJLrU-HPp2P7twdlmbFJbckbCe42ETX-4';
31
31
  export const AO_AUTHORITY = 'fcoN_xJeisVsPXA-trzVAuIiqO3ydLQxM-L4XbrQKzY';
32
32
  export const DEFAULT_SCHEDULER_ID = '_GQ33BkPtZrqxA84vM8Zk-N2aO0toNNu_C-l-rawrBA';
@@ -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.5.1-alpha.4';
17
+ export const version = '3.5.2';
@@ -77,7 +77,7 @@ export declare class ARIOReadable implements AoARIORead {
77
77
  getObservations(epoch?: EpochInput): Promise<AoEpochObservationData | undefined>;
78
78
  getDistributions(epoch?: EpochInput): Promise<AoEpochDistributionData | undefined>;
79
79
  getTokenCost(params: {
80
- intent: 'Buy-Record';
80
+ intent: 'Buy-Record' | 'Buy-Name';
81
81
  type: 'permabuy' | 'lease';
82
82
  years: number;
83
83
  name: string;
@@ -24,7 +24,7 @@ export declare const arioDevnetProcessId = "GaQrvEMKBpkjofgnBi_B3IgIDmY_XYelVLB6
24
24
  export declare const ARIO_TESTNET_PROCESS_ID = "agYcCFJtrMG6cqMuZfskIkFTGvUPddICmtQSBIoPdiA";
25
25
  export declare const ANT_REGISTRY_ID = "i_le_yKKPVstLTDSmkHRqf-wYphMnwB9OhleiTgMkWc";
26
26
  export declare const MARIO_PER_ARIO = 1000000;
27
- export declare const AOS_MODULE_ID = "4uMwpOuU-YF9pKbqC73tmMCf2OLFUY8U0gCWEUCy-4M";
28
- export declare const ANT_LUA_ID = "s9drxRd-ylbJVtAi14tGmF7e42kA69PgfKUtgtmvAmU";
27
+ export declare const AOS_MODULE_ID = "gFNGk70U9iwof9MyDqqKeizGa98w66-qCyFxupzXUnU";
28
+ export declare const ANT_LUA_ID = "W2sHFPAZ86BJLrU-HPp2P7twdlmbFJbckbCe42ETX-4";
29
29
  export declare const AO_AUTHORITY = "fcoN_xJeisVsPXA-trzVAuIiqO3ydLQxM-L4XbrQKzY";
30
30
  export declare const DEFAULT_SCHEDULER_ID = "_GQ33BkPtZrqxA84vM8Zk-N2aO0toNNu_C-l-rawrBA";
@@ -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.5.1-alpha.3";
16
+ export declare const version = "3.5.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ar.io/sdk",
3
- "version": "3.5.1-alpha.4",
3
+ "version": "3.5.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ar-io/ar-io-sdk.git"