@ardrive/turbo-sdk 1.43.0-alpha.1 → 1.43.0
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/lib/cjs/cli/cli.js +5 -0
- package/lib/cjs/cli/commands/arns.js +64 -29
- package/lib/cjs/cli/options.js +2 -1
- package/lib/cjs/common/folderIndex.js +7 -0
- package/lib/cjs/common/http.js +9 -1
- package/lib/cjs/common/payment.js +5 -5
- package/lib/esm/cli/cli.js +7 -2
- package/lib/esm/cli/commands/arns.js +63 -29
- package/lib/esm/cli/options.js +1 -0
- package/lib/esm/common/folderIndex.js +7 -0
- package/lib/esm/common/http.js +9 -1
- package/lib/esm/common/payment.js +5 -5
- package/lib/types/cli/commands/arns.d.ts +16 -2
- package/lib/types/cli/commands/arns.d.ts.map +1 -1
- package/lib/types/cli/options.d.ts +13 -0
- package/lib/types/cli/options.d.ts.map +1 -1
- package/lib/types/cli/types.d.ts +7 -0
- package/lib/types/cli/types.d.ts.map +1 -1
- package/lib/types/common/folderIndex.d.ts.map +1 -1
- package/lib/types/common/http.d.ts.map +1 -1
- package/lib/types/common/payment.d.ts.map +1 -1
- package/package.json +1 -1
package/lib/cjs/cli/cli.js
CHANGED
|
@@ -132,6 +132,11 @@ const utils_js_1 = require("./utils.js");
|
|
|
132
132
|
.description('Get the status of an ArNS purchase by its nonce'), options_js_1.arnsPurchaseStatusOptions).action(async (_commandOptions, command) => {
|
|
133
133
|
await (0, utils_js_1.runCommand)(command, arns_js_1.arnsPurchaseStatus);
|
|
134
134
|
});
|
|
135
|
+
(0, utils_js_1.applyOptions)(commander_1.program
|
|
136
|
+
.command('arns-action-status')
|
|
137
|
+
.description('Get the status of a credit-paid ArNS action by its nonce (buy, extend, upgrade, and the non-purchase actions)'), options_js_1.arnsActionStatusOptions).action(async (_commandOptions, command) => {
|
|
138
|
+
await (0, utils_js_1.runCommand)(command, arns_js_1.arnsActionStatus);
|
|
139
|
+
});
|
|
135
140
|
(0, utils_js_1.applyOptions)(commander_1.program
|
|
136
141
|
.command('transfer-arns-ant')
|
|
137
142
|
.description('Transfer a Turbo-custodied ANT to a Solana pubkey you control'), options_js_1.transferArNSAntOptions).action(async (_commandOptions, command) => {
|
|
@@ -13,6 +13,7 @@ exports.extendArNSLease = extendArNSLease;
|
|
|
13
13
|
exports.increaseArNSUndernames = increaseArNSUndernames;
|
|
14
14
|
exports.upgradeArNSName = upgradeArNSName;
|
|
15
15
|
exports.arnsPurchaseStatus = arnsPurchaseStatus;
|
|
16
|
+
exports.arnsActionStatus = arnsActionStatus;
|
|
16
17
|
exports.transferArNSAnt = transferArNSAnt;
|
|
17
18
|
exports.setArNSRecord = setArNSRecord;
|
|
18
19
|
exports.removeArNSRecord = removeArNSRecord;
|
|
@@ -104,7 +105,13 @@ function actionFromOptions(options) {
|
|
|
104
105
|
return action;
|
|
105
106
|
}
|
|
106
107
|
/** `null` clears the field (Set-Record-Metadata's tri-state), `undefined` leaves it unchanged. */
|
|
107
|
-
function metadataFieldFromOptions(value, clear) {
|
|
108
|
+
function metadataFieldFromOptions(value, clear, flag) {
|
|
109
|
+
// Commander registers each value flag and its --clear-* partner separately, so
|
|
110
|
+
// it accepts both. Silently letting the clear win would discard a value the
|
|
111
|
+
// caller explicitly passed.
|
|
112
|
+
if (clear && value !== undefined) {
|
|
113
|
+
throw new Error(`Cannot pass both --${flag} and --clear-${flag}. Pass one: the value to set it, or the clear flag to unset it.`);
|
|
114
|
+
}
|
|
108
115
|
return clear ? null : value;
|
|
109
116
|
}
|
|
110
117
|
function paidByFromArNSOptions(paidBy) {
|
|
@@ -164,13 +171,17 @@ function creditsFromWinc(winc) {
|
|
|
164
171
|
return new bignumber_js_1.BigNumber(winc).dividedBy(constants_js_1.wincPerCredit).toFixed(12);
|
|
165
172
|
}
|
|
166
173
|
/** Rethrow a 402 as a clear, actionable "top up" message. */
|
|
167
|
-
|
|
174
|
+
/**
|
|
175
|
+
* Takes the promise rather than a thunk: wrapping the call in a closure would
|
|
176
|
+
* discard the `undefined` narrowing each handler's guard clauses establish.
|
|
177
|
+
*/
|
|
178
|
+
async function withCreditErrorMapping(promise) {
|
|
168
179
|
try {
|
|
169
|
-
return await
|
|
180
|
+
return await promise;
|
|
170
181
|
}
|
|
171
182
|
catch (error) {
|
|
172
183
|
if (error instanceof errors_js_1.InsufficientCreditsError) {
|
|
173
|
-
throw new Error('Insufficient Turbo credits to complete this ArNS
|
|
184
|
+
throw new Error('Insufficient Turbo credits to complete this ArNS action. ' +
|
|
174
185
|
'Top up your balance (e.g. `turbo top-up` or `turbo crypto-fund`) and retry.');
|
|
175
186
|
}
|
|
176
187
|
throw error;
|
|
@@ -185,7 +196,10 @@ function logPurchaseResult(action, result) {
|
|
|
185
196
|
messageId: result.messageId,
|
|
186
197
|
...(result.alreadyCompleted === true ? { alreadyCompleted: true } : {}),
|
|
187
198
|
}, null, 2));
|
|
188
|
-
|
|
199
|
+
// Credit-paid buys go through the actions API, so the nonce lives in the
|
|
200
|
+
// action namespace. `arns-purchase-status` reads `/arns/purchase/`, a
|
|
201
|
+
// separate namespace that answers "Purchase status not found" for this nonce.
|
|
202
|
+
console.log(`\nTrack this with:\n turbo arns-action-status --nonce ${result.nonce}`);
|
|
189
203
|
}
|
|
190
204
|
async function arnsPrice(options, turbo) {
|
|
191
205
|
const params = arnsPriceParamsFromOptions(options);
|
|
@@ -259,7 +273,7 @@ async function buyArNSName(options, turbo) {
|
|
|
259
273
|
// it, and there is no bring-your-own-ANT path any more.
|
|
260
274
|
const owner = ownerFromOptions(options);
|
|
261
275
|
const client = turbo ?? (await (0, utils_js_1.turboFromOptions)(options));
|
|
262
|
-
const result = await withCreditErrorMapping(
|
|
276
|
+
const result = await withCreditErrorMapping(type === 'lease'
|
|
263
277
|
? client.buyArNSName({
|
|
264
278
|
name,
|
|
265
279
|
owner,
|
|
@@ -275,7 +289,7 @@ async function extendArNSLease(options, turbo) {
|
|
|
275
289
|
const years = positiveIntFromOption(options.years, '--years');
|
|
276
290
|
const paidBy = paidByFromArNSOptions(options.paidBy);
|
|
277
291
|
const client = turbo ?? (await (0, utils_js_1.turboFromOptions)(options));
|
|
278
|
-
const result = await withCreditErrorMapping(
|
|
292
|
+
const result = await withCreditErrorMapping(client.extendArNSLease({ name, years, paidBy }));
|
|
279
293
|
logPurchaseResult('ArNS lease extension', result);
|
|
280
294
|
}
|
|
281
295
|
async function increaseArNSUndernames(options, turbo) {
|
|
@@ -283,14 +297,14 @@ async function increaseArNSUndernames(options, turbo) {
|
|
|
283
297
|
const increaseQty = positiveIntFromOption(options.increaseQty, '--increase-qty');
|
|
284
298
|
const paidBy = paidByFromArNSOptions(options.paidBy);
|
|
285
299
|
const client = turbo ?? (await (0, utils_js_1.turboFromOptions)(options));
|
|
286
|
-
const result = await withCreditErrorMapping(
|
|
300
|
+
const result = await withCreditErrorMapping(client.increaseArNSUndernameLimit({ name, increaseQty, paidBy }));
|
|
287
301
|
logPurchaseResult('ArNS undername limit increase', result);
|
|
288
302
|
}
|
|
289
303
|
async function upgradeArNSName(options, turbo) {
|
|
290
304
|
const name = requiredNameFromOptions(options);
|
|
291
305
|
const paidBy = paidByFromArNSOptions(options.paidBy);
|
|
292
306
|
const client = turbo ?? (await (0, utils_js_1.turboFromOptions)(options));
|
|
293
|
-
const result = await withCreditErrorMapping(
|
|
307
|
+
const result = await withCreditErrorMapping(client.upgradeArNSName({ name, paidBy }));
|
|
294
308
|
logPurchaseResult('ArNS name upgrade (to permabuy)', result);
|
|
295
309
|
}
|
|
296
310
|
async function arnsPurchaseStatus(options, turbo) {
|
|
@@ -306,6 +320,27 @@ async function arnsPurchaseStatus(options, turbo) {
|
|
|
306
320
|
: 'pending';
|
|
307
321
|
console.log(JSON.stringify({ state, ...status }, null, 2));
|
|
308
322
|
}
|
|
323
|
+
/**
|
|
324
|
+
* Status of a credit-paid ArNS action (buy, extend, upgrade, increase, and the
|
|
325
|
+
* eight non-purchase actions). Distinct from `arns-purchase-status`, which
|
|
326
|
+
* reads the `/arns/purchase/` namespace that fiat quotes land in.
|
|
327
|
+
*
|
|
328
|
+
* Authenticated because `getArNSActionStatus` lives on the authenticated
|
|
329
|
+
* client, though the route itself needs no signature.
|
|
330
|
+
*/
|
|
331
|
+
async function arnsActionStatus(options, turbo) {
|
|
332
|
+
if (options.nonce === undefined || options.nonce.length === 0) {
|
|
333
|
+
throw new Error('Must provide a --nonce to look up action status');
|
|
334
|
+
}
|
|
335
|
+
const client = turbo ?? (await (0, utils_js_1.turboFromOptions)(options));
|
|
336
|
+
const status = await client.getArNSActionStatus(options.nonce);
|
|
337
|
+
const state = status.failedDate !== undefined
|
|
338
|
+
? 'failed'
|
|
339
|
+
: status.messageId
|
|
340
|
+
? 'success'
|
|
341
|
+
: 'pending';
|
|
342
|
+
console.log(JSON.stringify({ state, ...status }, null, 2));
|
|
343
|
+
}
|
|
309
344
|
async function transferArNSAnt(options, turbo) {
|
|
310
345
|
if (options.antId === undefined) {
|
|
311
346
|
throw new Error('Must provide an --ant-id to transfer');
|
|
@@ -314,11 +349,11 @@ async function transferArNSAnt(options, turbo) {
|
|
|
314
349
|
throw new Error('Must provide a --target address to transfer the ANT to');
|
|
315
350
|
}
|
|
316
351
|
const client = turbo ?? (await (0, utils_js_1.turboFromOptions)(options));
|
|
317
|
-
const result = await client.transferArNSAnt({
|
|
352
|
+
const result = await withCreditErrorMapping(client.transferArNSAnt({
|
|
318
353
|
antId: options.antId,
|
|
319
354
|
owner: ownerFromOptions(options),
|
|
320
355
|
target: options.target,
|
|
321
|
-
});
|
|
356
|
+
}));
|
|
322
357
|
console.log(JSON.stringify({ message: 'ANT transfer submitted!', ...result }, null, 2));
|
|
323
358
|
}
|
|
324
359
|
async function setArNSRecord(options, turbo) {
|
|
@@ -330,13 +365,13 @@ async function setArNSRecord(options, turbo) {
|
|
|
330
365
|
}
|
|
331
366
|
const ttlSeconds = positiveIntFromOption(options.ttlSeconds, '--ttl-seconds');
|
|
332
367
|
const client = turbo ?? (await (0, utils_js_1.turboFromOptions)(options));
|
|
333
|
-
const result = await client.setArNSRecord({
|
|
368
|
+
const result = await withCreditErrorMapping(client.setArNSRecord({
|
|
334
369
|
antId: options.antId,
|
|
335
370
|
owner: ownerFromOptions(options),
|
|
336
371
|
undername: options.undername ?? '@',
|
|
337
372
|
transactionId: options.transactionId,
|
|
338
373
|
ttlSeconds,
|
|
339
|
-
});
|
|
374
|
+
}));
|
|
340
375
|
console.log(JSON.stringify({ message: 'ArNS record set!', ...result }, null, 2));
|
|
341
376
|
}
|
|
342
377
|
async function removeArNSRecord(options, turbo) {
|
|
@@ -347,11 +382,11 @@ async function removeArNSRecord(options, turbo) {
|
|
|
347
382
|
throw new Error('Must provide an --undername to remove');
|
|
348
383
|
}
|
|
349
384
|
const client = turbo ?? (await (0, utils_js_1.turboFromOptions)(options));
|
|
350
|
-
const result = await client.removeArNSRecord({
|
|
385
|
+
const result = await withCreditErrorMapping(client.removeArNSRecord({
|
|
351
386
|
antId: options.antId,
|
|
352
387
|
owner: ownerFromOptions(options),
|
|
353
388
|
undername: options.undername,
|
|
354
|
-
});
|
|
389
|
+
}));
|
|
355
390
|
console.log(JSON.stringify({ message: 'ArNS record removed!', ...result }, null, 2));
|
|
356
391
|
}
|
|
357
392
|
async function addArNSController(options, turbo) {
|
|
@@ -359,11 +394,11 @@ async function addArNSController(options, turbo) {
|
|
|
359
394
|
throw new Error('Must provide an --ant-id to add a controller to');
|
|
360
395
|
}
|
|
361
396
|
const client = turbo ?? (await (0, utils_js_1.turboFromOptions)(options));
|
|
362
|
-
const result = await client.addArNSController({
|
|
397
|
+
const result = await withCreditErrorMapping(client.addArNSController({
|
|
363
398
|
antId: options.antId,
|
|
364
399
|
owner: ownerFromOptions(options),
|
|
365
400
|
target: options.target,
|
|
366
|
-
});
|
|
401
|
+
}));
|
|
367
402
|
console.log(JSON.stringify({ message: 'ArNS controller added!', ...result }, null, 2));
|
|
368
403
|
}
|
|
369
404
|
async function removeArNSController(options, turbo) {
|
|
@@ -371,11 +406,11 @@ async function removeArNSController(options, turbo) {
|
|
|
371
406
|
throw new Error('Must provide an --ant-id to remove a controller from');
|
|
372
407
|
}
|
|
373
408
|
const client = turbo ?? (await (0, utils_js_1.turboFromOptions)(options));
|
|
374
|
-
const result = await client.removeArNSController({
|
|
409
|
+
const result = await withCreditErrorMapping(client.removeArNSController({
|
|
375
410
|
antId: options.antId,
|
|
376
411
|
owner: ownerFromOptions(options),
|
|
377
412
|
target: options.target,
|
|
378
|
-
});
|
|
413
|
+
}));
|
|
379
414
|
console.log(JSON.stringify({ message: 'ArNS controller removed!', ...result }, null, 2));
|
|
380
415
|
}
|
|
381
416
|
async function transferArNSRecord(options, turbo) {
|
|
@@ -389,12 +424,12 @@ async function transferArNSRecord(options, turbo) {
|
|
|
389
424
|
throw new Error('Must provide a --target address to transfer the record to');
|
|
390
425
|
}
|
|
391
426
|
const client = turbo ?? (await (0, utils_js_1.turboFromOptions)(options));
|
|
392
|
-
const result = await client.transferArNSRecord({
|
|
427
|
+
const result = await withCreditErrorMapping(client.transferArNSRecord({
|
|
393
428
|
antId: options.antId,
|
|
394
429
|
owner: ownerFromOptions(options),
|
|
395
430
|
undername: options.undername,
|
|
396
431
|
target: options.target,
|
|
397
|
-
});
|
|
432
|
+
}));
|
|
398
433
|
console.log(JSON.stringify({ message: 'ArNS record transferred!', ...result }, null, 2));
|
|
399
434
|
}
|
|
400
435
|
async function setArNSRecordMetadata(options, turbo) {
|
|
@@ -402,15 +437,15 @@ async function setArNSRecordMetadata(options, turbo) {
|
|
|
402
437
|
throw new Error('Must provide an --ant-id to set record metadata on');
|
|
403
438
|
}
|
|
404
439
|
const client = turbo ?? (await (0, utils_js_1.turboFromOptions)(options));
|
|
405
|
-
const result = await client.setArNSRecordMetadata({
|
|
440
|
+
const result = await withCreditErrorMapping(client.setArNSRecordMetadata({
|
|
406
441
|
antId: options.antId,
|
|
407
442
|
owner: ownerFromOptions(options),
|
|
408
443
|
undername: options.undername ?? '@',
|
|
409
|
-
displayName: metadataFieldFromOptions(options.displayName, options.clearDisplayName),
|
|
410
|
-
recordLogo: metadataFieldFromOptions(options.recordLogo, options.clearRecordLogo),
|
|
411
|
-
recordDescription: metadataFieldFromOptions(options.recordDescription, options.clearRecordDescription),
|
|
412
|
-
recordKeywords: metadataFieldFromOptions(options.recordKeywords, options.clearRecordKeywords),
|
|
413
|
-
});
|
|
444
|
+
displayName: metadataFieldFromOptions(options.displayName, options.clearDisplayName, 'display-name'),
|
|
445
|
+
recordLogo: metadataFieldFromOptions(options.recordLogo, options.clearRecordLogo, 'record-logo'),
|
|
446
|
+
recordDescription: metadataFieldFromOptions(options.recordDescription, options.clearRecordDescription, 'record-description'),
|
|
447
|
+
recordKeywords: metadataFieldFromOptions(options.recordKeywords, options.clearRecordKeywords, 'record-keywords'),
|
|
448
|
+
}));
|
|
414
449
|
console.log(JSON.stringify({ message: 'ArNS record metadata set!', ...result }, null, 2));
|
|
415
450
|
}
|
|
416
451
|
async function removeArNSRecordMetadata(options, turbo) {
|
|
@@ -421,11 +456,11 @@ async function removeArNSRecordMetadata(options, turbo) {
|
|
|
421
456
|
throw new Error('Must provide an --undername');
|
|
422
457
|
}
|
|
423
458
|
const client = turbo ?? (await (0, utils_js_1.turboFromOptions)(options));
|
|
424
|
-
const result = await client.removeArNSRecordMetadata({
|
|
459
|
+
const result = await withCreditErrorMapping(client.removeArNSRecordMetadata({
|
|
425
460
|
antId: options.antId,
|
|
426
461
|
owner: ownerFromOptions(options),
|
|
427
462
|
undername: options.undername,
|
|
428
|
-
});
|
|
463
|
+
}));
|
|
429
464
|
console.log(JSON.stringify({ message: 'ArNS record metadata removed!', ...result }, null, 2));
|
|
430
465
|
}
|
|
431
466
|
/**
|
package/lib/cjs/cli/options.js
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.arnsActionPriceOptions = exports.removeArNSRecordMetadataOptions = exports.setArNSRecordMetadataOptions = exports.transferArNSRecordOptions = exports.removeArNSControllerOptions = exports.addArNSControllerOptions = exports.removeArNSRecordOptions = exports.setArNSRecordOptions = exports.transferArNSAntOptions = exports.arnsPurchaseStatusOptions = exports.upgradeArNSNameOptions = exports.increaseArNSUndernamesOptions = exports.extendArNSLeaseOptions = exports.buyArNSNameOptions = exports.arnsFiatQuoteOptions = exports.arnsPriceOptions = exports.listSharesOptions = exports.revokeCreditsOptions = exports.shareCreditsOptions = exports.uploadFileOptions = exports.uploadFolderOptions = exports.uploadOptions = exports.globalOptions = exports.walletOptions = exports.optionMap = void 0;
|
|
18
|
+
exports.arnsActionPriceOptions = exports.removeArNSRecordMetadataOptions = exports.setArNSRecordMetadataOptions = exports.transferArNSRecordOptions = exports.removeArNSControllerOptions = exports.addArNSControllerOptions = exports.removeArNSRecordOptions = exports.setArNSRecordOptions = exports.transferArNSAntOptions = exports.arnsActionStatusOptions = exports.arnsPurchaseStatusOptions = exports.upgradeArNSNameOptions = exports.increaseArNSUndernamesOptions = exports.extendArNSLeaseOptions = exports.buyArNSNameOptions = exports.arnsFiatQuoteOptions = exports.arnsPriceOptions = exports.listSharesOptions = exports.revokeCreditsOptions = exports.shareCreditsOptions = exports.uploadFileOptions = exports.uploadFolderOptions = exports.uploadOptions = exports.globalOptions = exports.walletOptions = exports.optionMap = void 0;
|
|
19
19
|
exports.optionMap = {
|
|
20
20
|
token: {
|
|
21
21
|
alias: '-t, --token <type>',
|
|
@@ -387,6 +387,7 @@ exports.upgradeArNSNameOptions = [
|
|
|
387
387
|
exports.optionMap.paidBy,
|
|
388
388
|
];
|
|
389
389
|
exports.arnsPurchaseStatusOptions = [exports.optionMap.arnsNonce];
|
|
390
|
+
exports.arnsActionStatusOptions = [...exports.walletOptions, exports.optionMap.arnsNonce];
|
|
390
391
|
exports.transferArNSAntOptions = [
|
|
391
392
|
...exports.walletOptions,
|
|
392
393
|
exports.optionMap.arnsOwnerKey,
|
|
@@ -223,6 +223,13 @@ function createChainFolderIndex({ owner, appName, gatewayUrl = 'https://arweave.
|
|
|
223
223
|
if (typeof node?.id !== 'string' || !Array.isArray(tags)) {
|
|
224
224
|
continue;
|
|
225
225
|
}
|
|
226
|
+
// Every element is untrusted, not just the one carrying the hash.
|
|
227
|
+
// `folderIndexKey` reads `.name`/`.value` off each tag unguarded, so
|
|
228
|
+
// one malformed entry would throw out of the key encoding and take
|
|
229
|
+
// the whole sweep, and the upload awaiting it, with it.
|
|
230
|
+
if (!tags.every((tag) => typeof tag?.name === 'string' && typeof tag?.value === 'string')) {
|
|
231
|
+
continue;
|
|
232
|
+
}
|
|
226
233
|
const contentHash = tags.find((tag) => tag?.name === hashTagName)
|
|
227
234
|
?.value;
|
|
228
235
|
if (!(0, folderIndex_js_1.isValidContentHash)(contentHash)) {
|
package/lib/cjs/common/http.js
CHANGED
|
@@ -60,7 +60,15 @@ class TurboHTTPService {
|
|
|
60
60
|
const fetchWithPay = (0, x402_fetch_1.wrapFetchWithPayment)(fetch, x402Options.signer, maxMUSDCAmount);
|
|
61
61
|
return this.tryRequest(async () => fetchWithPay(this.baseURL + endpoint, {
|
|
62
62
|
method: 'GET',
|
|
63
|
-
|
|
63
|
+
// This GET is not a read: it settles a payment and returns the
|
|
64
|
+
// resulting upload id. Nothing between here and the service may
|
|
65
|
+
// store or replay that response. Sent as a header rather than the
|
|
66
|
+
// `cache` init option, which undici does not honour consistently.
|
|
67
|
+
headers: {
|
|
68
|
+
...defaultHeaders,
|
|
69
|
+
...headers,
|
|
70
|
+
'Cache-Control': 'no-store',
|
|
71
|
+
},
|
|
64
72
|
signal,
|
|
65
73
|
}), allowedStatuses);
|
|
66
74
|
}
|
|
@@ -41,7 +41,7 @@ class TurboUnauthenticatedPaymentService {
|
|
|
41
41
|
}
|
|
42
42
|
async getBalance(address) {
|
|
43
43
|
const balance = await this.httpService.get({
|
|
44
|
-
endpoint: `/account/balance/${this.token}?address=${address}`,
|
|
44
|
+
endpoint: `/account/balance/${this.token}?address=${encodeURIComponent(address)}`,
|
|
45
45
|
allowedStatuses: [200, 404],
|
|
46
46
|
});
|
|
47
47
|
return balance.winc
|
|
@@ -56,7 +56,7 @@ class TurboUnauthenticatedPaymentService {
|
|
|
56
56
|
}
|
|
57
57
|
async getFreeStatus(address) {
|
|
58
58
|
const status = await this.httpService.get({
|
|
59
|
-
endpoint: `/account/free?address=${address}`,
|
|
59
|
+
endpoint: `/account/free?address=${encodeURIComponent(address)}`,
|
|
60
60
|
allowedStatuses: [200, 404],
|
|
61
61
|
});
|
|
62
62
|
// Normalize: preserve a legitimate `0` (free tier off) or `null` (unlimited),
|
|
@@ -128,7 +128,7 @@ class TurboUnauthenticatedPaymentService {
|
|
|
128
128
|
// with `purchaseArNSName`) rather than a synchronous throw.
|
|
129
129
|
this.validateArNSPurchaseParams(params);
|
|
130
130
|
const price = await this.httpService.get({
|
|
131
|
-
endpoint: `/arns/price/${params.intent.toLowerCase()}/${params.name}${this.buildArNSPurchaseQuery(params)}`,
|
|
131
|
+
endpoint: `/arns/price/${params.intent.toLowerCase()}/${encodeURIComponent(params.name)}${this.buildArNSPurchaseQuery(params)}`,
|
|
132
132
|
});
|
|
133
133
|
// Normalize the figure to charge into ONE field. `winc` is the name only
|
|
134
134
|
// and excludes the ANT spawn surcharge — for a Buy-Name that surcharge can
|
|
@@ -210,7 +210,7 @@ class TurboUnauthenticatedPaymentService {
|
|
|
210
210
|
}
|
|
211
211
|
getArNSPurchaseStatus({ nonce, }) {
|
|
212
212
|
return this.httpService.get({
|
|
213
|
-
endpoint: `/arns/purchase/${nonce}`,
|
|
213
|
+
endpoint: `/arns/purchase/${encodeURIComponent(nonce)}`,
|
|
214
214
|
});
|
|
215
215
|
}
|
|
216
216
|
buildArNSPurchaseQuery(input) {
|
|
@@ -423,7 +423,7 @@ class TurboUnauthenticatedPaymentService {
|
|
|
423
423
|
}
|
|
424
424
|
async getCreditShareApprovals({ userAddress, }) {
|
|
425
425
|
const response = await this.httpService.get({
|
|
426
|
-
endpoint: `/account/approvals/get?userAddress=${userAddress}`,
|
|
426
|
+
endpoint: `/account/approvals/get?userAddress=${encodeURIComponent(userAddress)}`,
|
|
427
427
|
allowedStatuses: [200, 404],
|
|
428
428
|
});
|
|
429
429
|
if (response?.givenApprovals === undefined &&
|
package/lib/esm/cli/cli.js
CHANGED
|
@@ -20,7 +20,7 @@ import { DataItem } from '@dha-team/arbundles';
|
|
|
20
20
|
import { program } from 'commander';
|
|
21
21
|
import { readFileSync, readdirSync } from 'fs';
|
|
22
22
|
import { version } from '../version.js';
|
|
23
|
-
import { addArNSController, arnsActionPrice, arnsFiatQuote, arnsPrice, arnsPurchaseStatus, buyArNSName, extendArNSLease, increaseArNSUndernames, removeArNSController, removeArNSRecord, removeArNSRecordMetadata, setArNSRecord, setArNSRecordMetadata, transferArNSAnt, transferArNSRecord, upgradeArNSName, } from './commands/arns.js';
|
|
23
|
+
import { addArNSController, arnsActionPrice, arnsActionStatus, arnsFiatQuote, arnsPrice, arnsPurchaseStatus, buyArNSName, extendArNSLease, increaseArNSUndernames, removeArNSController, removeArNSRecord, removeArNSRecordMetadata, setArNSRecord, setArNSRecordMetadata, transferArNSAnt, transferArNSRecord, upgradeArNSName, } from './commands/arns.js';
|
|
24
24
|
import { fiatEstimate } from './commands/fiatEstimate.js';
|
|
25
25
|
import { balance, cryptoFund, freeStatus, paymentHistory, price, topUp, uploadFile, uploadFolder, } from './commands/index.js';
|
|
26
26
|
import { listShares } from './commands/listShares.js';
|
|
@@ -28,7 +28,7 @@ import { revokeCredits } from './commands/revokeCredits.js';
|
|
|
28
28
|
import { shareCredits } from './commands/shareCredits.js';
|
|
29
29
|
import { tokenPrice } from './commands/tokenPrice.js';
|
|
30
30
|
import { x402UploadUnsignedFile } from './commands/x402UploadUnsignedData.js';
|
|
31
|
-
import { addArNSControllerOptions, arnsActionPriceOptions, arnsFiatQuoteOptions, arnsPriceOptions, arnsPurchaseStatusOptions, buyArNSNameOptions, extendArNSLeaseOptions, globalOptions, increaseArNSUndernamesOptions, listSharesOptions, optionMap, removeArNSControllerOptions, removeArNSRecordMetadataOptions, removeArNSRecordOptions, revokeCreditsOptions, setArNSRecordMetadataOptions, setArNSRecordOptions, shareCreditsOptions, transferArNSAntOptions, transferArNSRecordOptions, upgradeArNSNameOptions, uploadFileOptions, uploadFolderOptions, walletOptions, } from './options.js';
|
|
31
|
+
import { addArNSControllerOptions, arnsActionPriceOptions, arnsActionStatusOptions, arnsFiatQuoteOptions, arnsPriceOptions, arnsPurchaseStatusOptions, buyArNSNameOptions, extendArNSLeaseOptions, globalOptions, increaseArNSUndernamesOptions, listSharesOptions, optionMap, removeArNSControllerOptions, removeArNSRecordMetadataOptions, removeArNSRecordOptions, revokeCreditsOptions, setArNSRecordMetadataOptions, setArNSRecordOptions, shareCreditsOptions, transferArNSAntOptions, transferArNSRecordOptions, upgradeArNSNameOptions, uploadFileOptions, uploadFolderOptions, walletOptions, } from './options.js';
|
|
32
32
|
import { applyOptions, runCommand } from './utils.js';
|
|
33
33
|
applyOptions(program
|
|
34
34
|
.name('turbo')
|
|
@@ -130,6 +130,11 @@ applyOptions(program
|
|
|
130
130
|
.description('Get the status of an ArNS purchase by its nonce'), arnsPurchaseStatusOptions).action(async (_commandOptions, command) => {
|
|
131
131
|
await runCommand(command, arnsPurchaseStatus);
|
|
132
132
|
});
|
|
133
|
+
applyOptions(program
|
|
134
|
+
.command('arns-action-status')
|
|
135
|
+
.description('Get the status of a credit-paid ArNS action by its nonce (buy, extend, upgrade, and the non-purchase actions)'), arnsActionStatusOptions).action(async (_commandOptions, command) => {
|
|
136
|
+
await runCommand(command, arnsActionStatus);
|
|
137
|
+
});
|
|
133
138
|
applyOptions(program
|
|
134
139
|
.command('transfer-arns-ant')
|
|
135
140
|
.description('Transfer a Turbo-custodied ANT to a Solana pubkey you control'), transferArNSAntOptions).action(async (_commandOptions, command) => {
|
|
@@ -80,7 +80,13 @@ export function actionFromOptions(options) {
|
|
|
80
80
|
return action;
|
|
81
81
|
}
|
|
82
82
|
/** `null` clears the field (Set-Record-Metadata's tri-state), `undefined` leaves it unchanged. */
|
|
83
|
-
function metadataFieldFromOptions(value, clear) {
|
|
83
|
+
function metadataFieldFromOptions(value, clear, flag) {
|
|
84
|
+
// Commander registers each value flag and its --clear-* partner separately, so
|
|
85
|
+
// it accepts both. Silently letting the clear win would discard a value the
|
|
86
|
+
// caller explicitly passed.
|
|
87
|
+
if (clear && value !== undefined) {
|
|
88
|
+
throw new Error(`Cannot pass both --${flag} and --clear-${flag}. Pass one: the value to set it, or the clear flag to unset it.`);
|
|
89
|
+
}
|
|
84
90
|
return clear ? null : value;
|
|
85
91
|
}
|
|
86
92
|
export function paidByFromArNSOptions(paidBy) {
|
|
@@ -140,13 +146,17 @@ function creditsFromWinc(winc) {
|
|
|
140
146
|
return new BigNumber(winc).dividedBy(wincPerCredit).toFixed(12);
|
|
141
147
|
}
|
|
142
148
|
/** Rethrow a 402 as a clear, actionable "top up" message. */
|
|
143
|
-
|
|
149
|
+
/**
|
|
150
|
+
* Takes the promise rather than a thunk: wrapping the call in a closure would
|
|
151
|
+
* discard the `undefined` narrowing each handler's guard clauses establish.
|
|
152
|
+
*/
|
|
153
|
+
async function withCreditErrorMapping(promise) {
|
|
144
154
|
try {
|
|
145
|
-
return await
|
|
155
|
+
return await promise;
|
|
146
156
|
}
|
|
147
157
|
catch (error) {
|
|
148
158
|
if (error instanceof InsufficientCreditsError) {
|
|
149
|
-
throw new Error('Insufficient Turbo credits to complete this ArNS
|
|
159
|
+
throw new Error('Insufficient Turbo credits to complete this ArNS action. ' +
|
|
150
160
|
'Top up your balance (e.g. `turbo top-up` or `turbo crypto-fund`) and retry.');
|
|
151
161
|
}
|
|
152
162
|
throw error;
|
|
@@ -161,7 +171,10 @@ function logPurchaseResult(action, result) {
|
|
|
161
171
|
messageId: result.messageId,
|
|
162
172
|
...(result.alreadyCompleted === true ? { alreadyCompleted: true } : {}),
|
|
163
173
|
}, null, 2));
|
|
164
|
-
|
|
174
|
+
// Credit-paid buys go through the actions API, so the nonce lives in the
|
|
175
|
+
// action namespace. `arns-purchase-status` reads `/arns/purchase/`, a
|
|
176
|
+
// separate namespace that answers "Purchase status not found" for this nonce.
|
|
177
|
+
console.log(`\nTrack this with:\n turbo arns-action-status --nonce ${result.nonce}`);
|
|
165
178
|
}
|
|
166
179
|
export async function arnsPrice(options, turbo) {
|
|
167
180
|
const params = arnsPriceParamsFromOptions(options);
|
|
@@ -235,7 +248,7 @@ export async function buyArNSName(options, turbo) {
|
|
|
235
248
|
// it, and there is no bring-your-own-ANT path any more.
|
|
236
249
|
const owner = ownerFromOptions(options);
|
|
237
250
|
const client = turbo ?? (await turboFromOptions(options));
|
|
238
|
-
const result = await withCreditErrorMapping(
|
|
251
|
+
const result = await withCreditErrorMapping(type === 'lease'
|
|
239
252
|
? client.buyArNSName({
|
|
240
253
|
name,
|
|
241
254
|
owner,
|
|
@@ -251,7 +264,7 @@ export async function extendArNSLease(options, turbo) {
|
|
|
251
264
|
const years = positiveIntFromOption(options.years, '--years');
|
|
252
265
|
const paidBy = paidByFromArNSOptions(options.paidBy);
|
|
253
266
|
const client = turbo ?? (await turboFromOptions(options));
|
|
254
|
-
const result = await withCreditErrorMapping(
|
|
267
|
+
const result = await withCreditErrorMapping(client.extendArNSLease({ name, years, paidBy }));
|
|
255
268
|
logPurchaseResult('ArNS lease extension', result);
|
|
256
269
|
}
|
|
257
270
|
export async function increaseArNSUndernames(options, turbo) {
|
|
@@ -259,14 +272,14 @@ export async function increaseArNSUndernames(options, turbo) {
|
|
|
259
272
|
const increaseQty = positiveIntFromOption(options.increaseQty, '--increase-qty');
|
|
260
273
|
const paidBy = paidByFromArNSOptions(options.paidBy);
|
|
261
274
|
const client = turbo ?? (await turboFromOptions(options));
|
|
262
|
-
const result = await withCreditErrorMapping(
|
|
275
|
+
const result = await withCreditErrorMapping(client.increaseArNSUndernameLimit({ name, increaseQty, paidBy }));
|
|
263
276
|
logPurchaseResult('ArNS undername limit increase', result);
|
|
264
277
|
}
|
|
265
278
|
export async function upgradeArNSName(options, turbo) {
|
|
266
279
|
const name = requiredNameFromOptions(options);
|
|
267
280
|
const paidBy = paidByFromArNSOptions(options.paidBy);
|
|
268
281
|
const client = turbo ?? (await turboFromOptions(options));
|
|
269
|
-
const result = await withCreditErrorMapping(
|
|
282
|
+
const result = await withCreditErrorMapping(client.upgradeArNSName({ name, paidBy }));
|
|
270
283
|
logPurchaseResult('ArNS name upgrade (to permabuy)', result);
|
|
271
284
|
}
|
|
272
285
|
export async function arnsPurchaseStatus(options, turbo) {
|
|
@@ -282,6 +295,27 @@ export async function arnsPurchaseStatus(options, turbo) {
|
|
|
282
295
|
: 'pending';
|
|
283
296
|
console.log(JSON.stringify({ state, ...status }, null, 2));
|
|
284
297
|
}
|
|
298
|
+
/**
|
|
299
|
+
* Status of a credit-paid ArNS action (buy, extend, upgrade, increase, and the
|
|
300
|
+
* eight non-purchase actions). Distinct from `arns-purchase-status`, which
|
|
301
|
+
* reads the `/arns/purchase/` namespace that fiat quotes land in.
|
|
302
|
+
*
|
|
303
|
+
* Authenticated because `getArNSActionStatus` lives on the authenticated
|
|
304
|
+
* client, though the route itself needs no signature.
|
|
305
|
+
*/
|
|
306
|
+
export async function arnsActionStatus(options, turbo) {
|
|
307
|
+
if (options.nonce === undefined || options.nonce.length === 0) {
|
|
308
|
+
throw new Error('Must provide a --nonce to look up action status');
|
|
309
|
+
}
|
|
310
|
+
const client = turbo ?? (await turboFromOptions(options));
|
|
311
|
+
const status = await client.getArNSActionStatus(options.nonce);
|
|
312
|
+
const state = status.failedDate !== undefined
|
|
313
|
+
? 'failed'
|
|
314
|
+
: status.messageId
|
|
315
|
+
? 'success'
|
|
316
|
+
: 'pending';
|
|
317
|
+
console.log(JSON.stringify({ state, ...status }, null, 2));
|
|
318
|
+
}
|
|
285
319
|
export async function transferArNSAnt(options, turbo) {
|
|
286
320
|
if (options.antId === undefined) {
|
|
287
321
|
throw new Error('Must provide an --ant-id to transfer');
|
|
@@ -290,11 +324,11 @@ export async function transferArNSAnt(options, turbo) {
|
|
|
290
324
|
throw new Error('Must provide a --target address to transfer the ANT to');
|
|
291
325
|
}
|
|
292
326
|
const client = turbo ?? (await turboFromOptions(options));
|
|
293
|
-
const result = await client.transferArNSAnt({
|
|
327
|
+
const result = await withCreditErrorMapping(client.transferArNSAnt({
|
|
294
328
|
antId: options.antId,
|
|
295
329
|
owner: ownerFromOptions(options),
|
|
296
330
|
target: options.target,
|
|
297
|
-
});
|
|
331
|
+
}));
|
|
298
332
|
console.log(JSON.stringify({ message: 'ANT transfer submitted!', ...result }, null, 2));
|
|
299
333
|
}
|
|
300
334
|
export async function setArNSRecord(options, turbo) {
|
|
@@ -306,13 +340,13 @@ export async function setArNSRecord(options, turbo) {
|
|
|
306
340
|
}
|
|
307
341
|
const ttlSeconds = positiveIntFromOption(options.ttlSeconds, '--ttl-seconds');
|
|
308
342
|
const client = turbo ?? (await turboFromOptions(options));
|
|
309
|
-
const result = await client.setArNSRecord({
|
|
343
|
+
const result = await withCreditErrorMapping(client.setArNSRecord({
|
|
310
344
|
antId: options.antId,
|
|
311
345
|
owner: ownerFromOptions(options),
|
|
312
346
|
undername: options.undername ?? '@',
|
|
313
347
|
transactionId: options.transactionId,
|
|
314
348
|
ttlSeconds,
|
|
315
|
-
});
|
|
349
|
+
}));
|
|
316
350
|
console.log(JSON.stringify({ message: 'ArNS record set!', ...result }, null, 2));
|
|
317
351
|
}
|
|
318
352
|
export async function removeArNSRecord(options, turbo) {
|
|
@@ -323,11 +357,11 @@ export async function removeArNSRecord(options, turbo) {
|
|
|
323
357
|
throw new Error('Must provide an --undername to remove');
|
|
324
358
|
}
|
|
325
359
|
const client = turbo ?? (await turboFromOptions(options));
|
|
326
|
-
const result = await client.removeArNSRecord({
|
|
360
|
+
const result = await withCreditErrorMapping(client.removeArNSRecord({
|
|
327
361
|
antId: options.antId,
|
|
328
362
|
owner: ownerFromOptions(options),
|
|
329
363
|
undername: options.undername,
|
|
330
|
-
});
|
|
364
|
+
}));
|
|
331
365
|
console.log(JSON.stringify({ message: 'ArNS record removed!', ...result }, null, 2));
|
|
332
366
|
}
|
|
333
367
|
export async function addArNSController(options, turbo) {
|
|
@@ -335,11 +369,11 @@ export async function addArNSController(options, turbo) {
|
|
|
335
369
|
throw new Error('Must provide an --ant-id to add a controller to');
|
|
336
370
|
}
|
|
337
371
|
const client = turbo ?? (await turboFromOptions(options));
|
|
338
|
-
const result = await client.addArNSController({
|
|
372
|
+
const result = await withCreditErrorMapping(client.addArNSController({
|
|
339
373
|
antId: options.antId,
|
|
340
374
|
owner: ownerFromOptions(options),
|
|
341
375
|
target: options.target,
|
|
342
|
-
});
|
|
376
|
+
}));
|
|
343
377
|
console.log(JSON.stringify({ message: 'ArNS controller added!', ...result }, null, 2));
|
|
344
378
|
}
|
|
345
379
|
export async function removeArNSController(options, turbo) {
|
|
@@ -347,11 +381,11 @@ export async function removeArNSController(options, turbo) {
|
|
|
347
381
|
throw new Error('Must provide an --ant-id to remove a controller from');
|
|
348
382
|
}
|
|
349
383
|
const client = turbo ?? (await turboFromOptions(options));
|
|
350
|
-
const result = await client.removeArNSController({
|
|
384
|
+
const result = await withCreditErrorMapping(client.removeArNSController({
|
|
351
385
|
antId: options.antId,
|
|
352
386
|
owner: ownerFromOptions(options),
|
|
353
387
|
target: options.target,
|
|
354
|
-
});
|
|
388
|
+
}));
|
|
355
389
|
console.log(JSON.stringify({ message: 'ArNS controller removed!', ...result }, null, 2));
|
|
356
390
|
}
|
|
357
391
|
export async function transferArNSRecord(options, turbo) {
|
|
@@ -365,12 +399,12 @@ export async function transferArNSRecord(options, turbo) {
|
|
|
365
399
|
throw new Error('Must provide a --target address to transfer the record to');
|
|
366
400
|
}
|
|
367
401
|
const client = turbo ?? (await turboFromOptions(options));
|
|
368
|
-
const result = await client.transferArNSRecord({
|
|
402
|
+
const result = await withCreditErrorMapping(client.transferArNSRecord({
|
|
369
403
|
antId: options.antId,
|
|
370
404
|
owner: ownerFromOptions(options),
|
|
371
405
|
undername: options.undername,
|
|
372
406
|
target: options.target,
|
|
373
|
-
});
|
|
407
|
+
}));
|
|
374
408
|
console.log(JSON.stringify({ message: 'ArNS record transferred!', ...result }, null, 2));
|
|
375
409
|
}
|
|
376
410
|
export async function setArNSRecordMetadata(options, turbo) {
|
|
@@ -378,15 +412,15 @@ export async function setArNSRecordMetadata(options, turbo) {
|
|
|
378
412
|
throw new Error('Must provide an --ant-id to set record metadata on');
|
|
379
413
|
}
|
|
380
414
|
const client = turbo ?? (await turboFromOptions(options));
|
|
381
|
-
const result = await client.setArNSRecordMetadata({
|
|
415
|
+
const result = await withCreditErrorMapping(client.setArNSRecordMetadata({
|
|
382
416
|
antId: options.antId,
|
|
383
417
|
owner: ownerFromOptions(options),
|
|
384
418
|
undername: options.undername ?? '@',
|
|
385
|
-
displayName: metadataFieldFromOptions(options.displayName, options.clearDisplayName),
|
|
386
|
-
recordLogo: metadataFieldFromOptions(options.recordLogo, options.clearRecordLogo),
|
|
387
|
-
recordDescription: metadataFieldFromOptions(options.recordDescription, options.clearRecordDescription),
|
|
388
|
-
recordKeywords: metadataFieldFromOptions(options.recordKeywords, options.clearRecordKeywords),
|
|
389
|
-
});
|
|
419
|
+
displayName: metadataFieldFromOptions(options.displayName, options.clearDisplayName, 'display-name'),
|
|
420
|
+
recordLogo: metadataFieldFromOptions(options.recordLogo, options.clearRecordLogo, 'record-logo'),
|
|
421
|
+
recordDescription: metadataFieldFromOptions(options.recordDescription, options.clearRecordDescription, 'record-description'),
|
|
422
|
+
recordKeywords: metadataFieldFromOptions(options.recordKeywords, options.clearRecordKeywords, 'record-keywords'),
|
|
423
|
+
}));
|
|
390
424
|
console.log(JSON.stringify({ message: 'ArNS record metadata set!', ...result }, null, 2));
|
|
391
425
|
}
|
|
392
426
|
export async function removeArNSRecordMetadata(options, turbo) {
|
|
@@ -397,11 +431,11 @@ export async function removeArNSRecordMetadata(options, turbo) {
|
|
|
397
431
|
throw new Error('Must provide an --undername');
|
|
398
432
|
}
|
|
399
433
|
const client = turbo ?? (await turboFromOptions(options));
|
|
400
|
-
const result = await client.removeArNSRecordMetadata({
|
|
434
|
+
const result = await withCreditErrorMapping(client.removeArNSRecordMetadata({
|
|
401
435
|
antId: options.antId,
|
|
402
436
|
owner: ownerFromOptions(options),
|
|
403
437
|
undername: options.undername,
|
|
404
|
-
});
|
|
438
|
+
}));
|
|
405
439
|
console.log(JSON.stringify({ message: 'ArNS record metadata removed!', ...result }, null, 2));
|
|
406
440
|
}
|
|
407
441
|
/**
|
package/lib/esm/cli/options.js
CHANGED
|
@@ -384,6 +384,7 @@ export const upgradeArNSNameOptions = [
|
|
|
384
384
|
optionMap.paidBy,
|
|
385
385
|
];
|
|
386
386
|
export const arnsPurchaseStatusOptions = [optionMap.arnsNonce];
|
|
387
|
+
export const arnsActionStatusOptions = [...walletOptions, optionMap.arnsNonce];
|
|
387
388
|
export const transferArNSAntOptions = [
|
|
388
389
|
...walletOptions,
|
|
389
390
|
optionMap.arnsOwnerKey,
|
|
@@ -218,6 +218,13 @@ export function createChainFolderIndex({ owner, appName, gatewayUrl = 'https://a
|
|
|
218
218
|
if (typeof node?.id !== 'string' || !Array.isArray(tags)) {
|
|
219
219
|
continue;
|
|
220
220
|
}
|
|
221
|
+
// Every element is untrusted, not just the one carrying the hash.
|
|
222
|
+
// `folderIndexKey` reads `.name`/`.value` off each tag unguarded, so
|
|
223
|
+
// one malformed entry would throw out of the key encoding and take
|
|
224
|
+
// the whole sweep, and the upload awaiting it, with it.
|
|
225
|
+
if (!tags.every((tag) => typeof tag?.name === 'string' && typeof tag?.value === 'string')) {
|
|
226
|
+
continue;
|
|
227
|
+
}
|
|
221
228
|
const contentHash = tags.find((tag) => tag?.name === hashTagName)
|
|
222
229
|
?.value;
|
|
223
230
|
if (!isValidContentHash(contentHash)) {
|
package/lib/esm/common/http.js
CHANGED
|
@@ -56,7 +56,15 @@ export class TurboHTTPService {
|
|
|
56
56
|
const fetchWithPay = wrapFetchWithPayment(fetch, x402Options.signer, maxMUSDCAmount);
|
|
57
57
|
return this.tryRequest(async () => fetchWithPay(this.baseURL + endpoint, {
|
|
58
58
|
method: 'GET',
|
|
59
|
-
|
|
59
|
+
// This GET is not a read: it settles a payment and returns the
|
|
60
|
+
// resulting upload id. Nothing between here and the service may
|
|
61
|
+
// store or replay that response. Sent as a header rather than the
|
|
62
|
+
// `cache` init option, which undici does not honour consistently.
|
|
63
|
+
headers: {
|
|
64
|
+
...defaultHeaders,
|
|
65
|
+
...headers,
|
|
66
|
+
'Cache-Control': 'no-store',
|
|
67
|
+
},
|
|
60
68
|
signal,
|
|
61
69
|
}), allowedStatuses);
|
|
62
70
|
}
|
|
@@ -38,7 +38,7 @@ export class TurboUnauthenticatedPaymentService {
|
|
|
38
38
|
}
|
|
39
39
|
async getBalance(address) {
|
|
40
40
|
const balance = await this.httpService.get({
|
|
41
|
-
endpoint: `/account/balance/${this.token}?address=${address}`,
|
|
41
|
+
endpoint: `/account/balance/${this.token}?address=${encodeURIComponent(address)}`,
|
|
42
42
|
allowedStatuses: [200, 404],
|
|
43
43
|
});
|
|
44
44
|
return balance.winc
|
|
@@ -53,7 +53,7 @@ export class TurboUnauthenticatedPaymentService {
|
|
|
53
53
|
}
|
|
54
54
|
async getFreeStatus(address) {
|
|
55
55
|
const status = await this.httpService.get({
|
|
56
|
-
endpoint: `/account/free?address=${address}`,
|
|
56
|
+
endpoint: `/account/free?address=${encodeURIComponent(address)}`,
|
|
57
57
|
allowedStatuses: [200, 404],
|
|
58
58
|
});
|
|
59
59
|
// Normalize: preserve a legitimate `0` (free tier off) or `null` (unlimited),
|
|
@@ -125,7 +125,7 @@ export class TurboUnauthenticatedPaymentService {
|
|
|
125
125
|
// with `purchaseArNSName`) rather than a synchronous throw.
|
|
126
126
|
this.validateArNSPurchaseParams(params);
|
|
127
127
|
const price = await this.httpService.get({
|
|
128
|
-
endpoint: `/arns/price/${params.intent.toLowerCase()}/${params.name}${this.buildArNSPurchaseQuery(params)}`,
|
|
128
|
+
endpoint: `/arns/price/${params.intent.toLowerCase()}/${encodeURIComponent(params.name)}${this.buildArNSPurchaseQuery(params)}`,
|
|
129
129
|
});
|
|
130
130
|
// Normalize the figure to charge into ONE field. `winc` is the name only
|
|
131
131
|
// and excludes the ANT spawn surcharge — for a Buy-Name that surcharge can
|
|
@@ -207,7 +207,7 @@ export class TurboUnauthenticatedPaymentService {
|
|
|
207
207
|
}
|
|
208
208
|
getArNSPurchaseStatus({ nonce, }) {
|
|
209
209
|
return this.httpService.get({
|
|
210
|
-
endpoint: `/arns/purchase/${nonce}`,
|
|
210
|
+
endpoint: `/arns/purchase/${encodeURIComponent(nonce)}`,
|
|
211
211
|
});
|
|
212
212
|
}
|
|
213
213
|
buildArNSPurchaseQuery(input) {
|
|
@@ -420,7 +420,7 @@ export class TurboUnauthenticatedPaymentService {
|
|
|
420
420
|
}
|
|
421
421
|
async getCreditShareApprovals({ userAddress, }) {
|
|
422
422
|
const response = await this.httpService.get({
|
|
423
|
-
endpoint: `/account/approvals/get?userAddress=${userAddress}`,
|
|
423
|
+
endpoint: `/account/approvals/get?userAddress=${encodeURIComponent(userAddress)}`,
|
|
424
424
|
allowedStatuses: [200, 404],
|
|
425
425
|
});
|
|
426
426
|
if (response?.givenApprovals === undefined &&
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ArNSAction, ArNSActionPriceResponse, ArNSFiatPurchaseQuoteParams, ArNSFiatPurchaseQuoteResponse, ArNSNameType, ArNSPriceParams, ArNSPriceResponse, ArNSPurchaseStatusResponse } from '../../types.js';
|
|
2
|
-
import { ArNSActionCompleted, ArNSOwnerSigner } from '../../types.js';
|
|
3
|
-
import { AddArNSControllerOptions, ArNSActionPriceOptions, ArNSFiatQuoteOptions, ArNSPriceOptions, ArNSPurchaseOptions, ArNSPurchaseStatusOptions, RemoveArNSControllerOptions, RemoveArNSRecordMetadataOptions, RemoveArNSRecordOptions, SetArNSRecordMetadataOptions, SetArNSRecordOptions, TransferArNSAntOptions, TransferArNSRecordOptions } from '../types.js';
|
|
2
|
+
import { ArNSActionCompleted, ArNSActionResult, ArNSOwnerSigner } from '../../types.js';
|
|
3
|
+
import { AddArNSControllerOptions, ArNSActionPriceOptions, ArNSActionStatusOptions, ArNSFiatQuoteOptions, ArNSPriceOptions, ArNSPurchaseOptions, ArNSPurchaseStatusOptions, RemoveArNSControllerOptions, RemoveArNSRecordMetadataOptions, RemoveArNSRecordOptions, SetArNSRecordMetadataOptions, SetArNSRecordOptions, TransferArNSAntOptions, TransferArNSRecordOptions } from '../types.js';
|
|
4
4
|
export type ArNSPriceClient = {
|
|
5
5
|
getArNSPriceForName(params: ArNSPriceParams): Promise<ArNSPriceResponse>;
|
|
6
6
|
};
|
|
@@ -9,6 +9,11 @@ export type ArNSStatusClient = {
|
|
|
9
9
|
nonce: string;
|
|
10
10
|
}): Promise<ArNSPurchaseStatusResponse>;
|
|
11
11
|
};
|
|
12
|
+
export type ArNSActionStatusClient = {
|
|
13
|
+
getArNSActionStatus(nonce: string): Promise<ArNSActionResult & {
|
|
14
|
+
failedDate?: string;
|
|
15
|
+
}>;
|
|
16
|
+
};
|
|
12
17
|
export type ArNSPurchaseClient = {
|
|
13
18
|
buyArNSName(params: {
|
|
14
19
|
name: string;
|
|
@@ -117,6 +122,15 @@ export declare function extendArNSLease(options: ArNSPurchaseOptions, turbo?: Ar
|
|
|
117
122
|
export declare function increaseArNSUndernames(options: ArNSPurchaseOptions, turbo?: ArNSPurchaseClient): Promise<void>;
|
|
118
123
|
export declare function upgradeArNSName(options: ArNSPurchaseOptions, turbo?: ArNSPurchaseClient): Promise<void>;
|
|
119
124
|
export declare function arnsPurchaseStatus(options: ArNSPurchaseStatusOptions, turbo?: ArNSStatusClient): Promise<void>;
|
|
125
|
+
/**
|
|
126
|
+
* Status of a credit-paid ArNS action (buy, extend, upgrade, increase, and the
|
|
127
|
+
* eight non-purchase actions). Distinct from `arns-purchase-status`, which
|
|
128
|
+
* reads the `/arns/purchase/` namespace that fiat quotes land in.
|
|
129
|
+
*
|
|
130
|
+
* Authenticated because `getArNSActionStatus` lives on the authenticated
|
|
131
|
+
* client, though the route itself needs no signature.
|
|
132
|
+
*/
|
|
133
|
+
export declare function arnsActionStatus(options: ArNSActionStatusOptions, turbo?: ArNSActionStatusClient): Promise<void>;
|
|
120
134
|
export declare function transferArNSAnt(options: TransferArNSAntOptions, turbo?: ArNSCustodyClient): Promise<void>;
|
|
121
135
|
export declare function setArNSRecord(options: SetArNSRecordOptions, turbo?: ArNSCustodyClient): Promise<void>;
|
|
122
136
|
export declare function removeArNSRecord(options: RemoveArNSRecordOptions, turbo?: ArNSCustodyClient): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arns.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/arns.ts"],"names":[],"mappings":"AAmBA,OAAO,EACL,UAAU,EACV,uBAAuB,EACvB,2BAA2B,EAC3B,6BAA6B,EAC7B,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,0BAA0B,EAG3B,MAAM,gBAAgB,CAAC;AACxB,OAAO,
|
|
1
|
+
{"version":3,"file":"arns.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/arns.ts"],"names":[],"mappings":"AAmBA,OAAO,EACL,UAAU,EACV,uBAAuB,EACvB,2BAA2B,EAC3B,6BAA6B,EAC7B,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,0BAA0B,EAG3B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EAChB,MAAM,gBAAgB,CAAC;AAMxB,OAAO,EACL,wBAAwB,EACxB,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACnB,yBAAyB,EACzB,2BAA2B,EAC3B,+BAA+B,EAC/B,uBAAuB,EACvB,4BAA4B,EAC5B,oBAAoB,EACpB,sBAAsB,EACtB,yBAAyB,EAC1B,M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E,iBAAiB,GACxB,OAAO,CAAC,IAAI,CAAC,CAuBf;AAED,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,uBAAuB,EAChC,KAAK,CAAC,EAAE,iBAAiB,GACxB,OAAO,CAAC,IAAI,CAAC,CAoBf;AAED,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,wBAAwB,EACjC,KAAK,CAAC,EAAE,iBAAiB,GACxB,OAAO,CAAC,IAAI,CAAC,CAiBf;AAED,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,2BAA2B,EACpC,KAAK,CAAC,EAAE,iBAAiB,GACxB,OAAO,CAAC,IAAI,CAAC,CAiBf;AAED,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,yBAAyB,EAClC,KAAK,CAAC,EAAE,iBAAiB,GACxB,OAAO,CAAC,IAAI,CAAC,CA0Bf;AAED,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,4BAA4B,EACrC,KAAK,CAAC,EAAE,iBAAiB,GACxB,OAAO,CAAC,IAAI,CAAC,CAyCf;AAED,wBAAsB,wBAAwB,CAC5C,OAAO,EAAE,+BAA+B,EACxC,KAAK,CAAC,EAAE,iBAAiB,GACxB,OAAO,CAAC,IAAI,CAAC,CAwBf;AAED;;;GAGG;AACH,wBAAsB,eAAe,CACnC,OAAO,EAAE,sBAAsB,EAC/B,KAAK,CAAC,EAAE,qBAAqB,GAC5B,OAAO,CAAC,IAAI,CAAC,CAaf"}
|
|
@@ -685,6 +685,19 @@ export declare const arnsPurchaseStatusOptions: {
|
|
|
685
685
|
readonly alias: "--nonce <nonce>";
|
|
686
686
|
readonly description: "ArNS purchase nonce to look up the status for";
|
|
687
687
|
}[];
|
|
688
|
+
export declare const arnsActionStatusOptions: ({
|
|
689
|
+
readonly alias: "-w, --wallet-file <filePath>";
|
|
690
|
+
readonly description: "Wallet file to use with the action. Formats accepted: JWK.json, KYVE or ETH private key as a string, or SOL Secret Key as a Uint8Array";
|
|
691
|
+
} | {
|
|
692
|
+
readonly alias: "-m, --mnemonic <phrase>";
|
|
693
|
+
readonly description: "Mnemonic to use with the action";
|
|
694
|
+
} | {
|
|
695
|
+
readonly alias: "-p, --private-key <key>";
|
|
696
|
+
readonly description: "Private key to use with the action";
|
|
697
|
+
} | {
|
|
698
|
+
readonly alias: "--nonce <nonce>";
|
|
699
|
+
readonly description: "ArNS purchase nonce to look up the status for";
|
|
700
|
+
})[];
|
|
688
701
|
export declare const transferArNSAntOptions: ({
|
|
689
702
|
readonly alias: "-w, --wallet-file <filePath>";
|
|
690
703
|
readonly description: "Wallet file to use with the action. Formats accepted: JWK.json, KYVE or ETH private key as a string, or SOL Secret Key as a Uint8Array";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/cli/options.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+RZ,CAAC;AAEX,eAAO,MAAM,aAAa;;;;;;;;;IAIzB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUzB,CAAC;AASF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAYzB,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;IAgBhC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;IAO9B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;IAKlC,CAAC;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;IAKzC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;IAIlC,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;GAAwB,CAAC;AAE/D,eAAO,MAAM,uBAAuB;;;;;;;;;;;;IAA0C,CAAC;AAE/E,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;IAKlC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;IAOhC,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;IAKnC,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;IAKpC,CAAC;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;IAA2B,CAAC;AAEpE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;IAMrC,CAAC;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAaxC,CAAC;AAEF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;IAK3C,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;GAAyB,CAAC"}
|
package/lib/types/cli/types.d.ts
CHANGED
|
@@ -116,6 +116,13 @@ export type ArNSPurchaseOptions = ArNSOwnerKeyOption & WalletOptions & ArNSPrice
|
|
|
116
116
|
export type ArNSPurchaseStatusOptions = GlobalOptions & {
|
|
117
117
|
nonce: string | undefined;
|
|
118
118
|
};
|
|
119
|
+
/**
|
|
120
|
+
* Authenticated, unlike `ArNSPurchaseStatusOptions`: `getArNSActionStatus`
|
|
121
|
+
* lives on the authenticated client even though the route needs no signature.
|
|
122
|
+
*/
|
|
123
|
+
export type ArNSActionStatusOptions = WalletOptions & {
|
|
124
|
+
nonce: string | undefined;
|
|
125
|
+
};
|
|
119
126
|
export type TransferArNSAntOptions = ArNSOwnerKeyOption & WalletOptions & {
|
|
120
127
|
antId: string | undefined;
|
|
121
128
|
target: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/cli/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,EAAE,OAAO,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,gBAAgB,EAAE,OAAO,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG;IAC1C,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,aAAa,GAAG;IAC3C,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,aAAa,GAAG;IAClD,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,cAAc,GAAG;IAC1C,KAAK,EAA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ChC,cAAc,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IACrC,mBAAmB,EAAE,OAAO,CAAC;CAC9B,CAAC;AAEJ,MAAM,MAAM,+BAA+B,GAAG,kBAAkB,GAC9D,aAAa,GAAG;IACd,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEJ,uEAAuE;AACvE,MAAM,MAAM,sBAAsB,GAAG,aAAa,GAAG;IACnD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"folderIndex.d.ts","sourceRoot":"","sources":["../../../src/common/folderIndex.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAEL,4BAA4B,EAC5B,8BAA8B,EAC9B,sBAAsB,EACvB,MAAM,aAAa,CAAC;AAkIrB;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GAChC,sBAAsB,CAmBxB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,KAAK,EACL,OAAO,EACP,UAAkC,EAClC,WAAgC,EAChC,QAAa,EACb,QAAc,EACd,SAAkB,EAClB,SAAiB,EACjB,MAAM,GACP,EAAE,4BAA4B,GAAG,sBAAsB,
|
|
1
|
+
{"version":3,"file":"folderIndex.d.ts","sourceRoot":"","sources":["../../../src/common/folderIndex.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAEL,4BAA4B,EAC5B,8BAA8B,EAC9B,sBAAsB,EACvB,MAAM,aAAa,CAAC;AAkIrB;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GAChC,sBAAsB,CAmBxB;AAED;;;;;;;;;;;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