@ardrive/turbo-sdk 1.20.0-alpha.1 → 1.20.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 +66 -38
- package/bundles/web.bundle.min.js +38 -33
- package/lib/cjs/cli/cli.js +12 -12
- package/lib/cjs/cli/commands/{listApprovals.js → listShares.js} +6 -6
- package/lib/cjs/cli/commands/{revokeApprovals.js → revokeCredits.js} +4 -4
- package/lib/cjs/cli/commands/{createApproval.js → shareCredits.js} +4 -4
- package/lib/cjs/cli/options.js +6 -6
- package/lib/cjs/common/payment.js +3 -3
- package/lib/cjs/common/turbo.js +13 -13
- package/lib/cjs/common/upload.js +21 -13
- package/lib/cjs/version.js +1 -1
- package/lib/esm/cli/cli.js +13 -13
- package/lib/esm/cli/commands/{listApprovals.js → listShares.js} +5 -5
- package/lib/esm/cli/commands/{revokeApprovals.js → revokeCredits.js} +3 -3
- package/lib/esm/cli/commands/{createApproval.js → shareCredits.js} +3 -3
- package/lib/esm/cli/options.js +5 -5
- package/lib/esm/common/payment.js +3 -3
- package/lib/esm/common/turbo.js +13 -13
- package/lib/esm/common/upload.js +20 -12
- package/lib/esm/version.js +1 -1
- package/lib/types/cli/commands/listShares.d.ts +3 -0
- package/lib/types/cli/commands/listShares.d.ts.map +1 -0
- package/lib/types/cli/commands/{revokeApprovals.d.ts → revokeCredits.d.ts} +3 -3
- package/lib/types/cli/commands/revokeCredits.d.ts.map +1 -0
- package/lib/types/cli/commands/shareCredits.d.ts +3 -0
- package/lib/types/cli/commands/shareCredits.d.ts.map +1 -0
- package/lib/types/cli/options.d.ts +11 -11
- package/lib/types/cli/options.d.ts.map +1 -1
- package/lib/types/cli/types.d.ts +3 -3
- package/lib/types/cli/types.d.ts.map +1 -1
- package/lib/types/common/payment.d.ts +5 -5
- package/lib/types/common/payment.d.ts.map +1 -1
- package/lib/types/common/turbo.d.ts +12 -12
- package/lib/types/common/turbo.d.ts.map +1 -1
- package/lib/types/common/upload.d.ts +9 -7
- package/lib/types/common/upload.d.ts.map +1 -1
- package/lib/types/types.d.ts +16 -16
- package/lib/types/types.d.ts.map +1 -1
- package/lib/types/utils/axiosClient.d.ts.map +1 -1
- package/lib/types/version.d.ts +1 -1
- package/lib/types/version.d.ts.map +1 -1
- package/package.json +1 -1
- package/lib/types/cli/commands/createApproval.d.ts +0 -3
- package/lib/types/cli/commands/createApproval.d.ts.map +0 -1
- package/lib/types/cli/commands/listApprovals.d.ts +0 -3
- package/lib/types/cli/commands/listApprovals.d.ts.map +0 -1
- package/lib/types/cli/commands/revokeApprovals.d.ts.map +0 -1
package/lib/cjs/common/upload.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.TurboAuthenticatedBaseUploadService = exports.TurboUnauthenticatedUploadService = exports.defaultUploadServiceURL = exports.developmentUploadServiceURL = exports.
|
3
|
+
exports.TurboAuthenticatedBaseUploadService = exports.TurboUnauthenticatedUploadService = exports.defaultUploadServiceURL = exports.developmentUploadServiceURL = exports.creditSharingTagNames = void 0;
|
4
4
|
/**
|
5
5
|
* Copyright (C) 2022-2024 Permanent Data Solutions, Inc.
|
6
6
|
*
|
@@ -21,10 +21,12 @@ const node_stream_1 = require("node:stream");
|
|
21
21
|
const plimit_lit_1 = require("plimit-lit");
|
22
22
|
const http_js_1 = require("./http.js");
|
23
23
|
const logger_js_1 = require("./logger.js");
|
24
|
-
exports.
|
25
|
-
|
26
|
-
|
27
|
-
|
24
|
+
exports.creditSharingTagNames = {
|
25
|
+
shareCredits: 'x-approve-payment',
|
26
|
+
sharedWincAmount: 'x-amount',
|
27
|
+
approvalExpiresBySeconds: 'x-expires-seconds',
|
28
|
+
revokeCredits: 'x-delete-payment-approval',
|
29
|
+
};
|
28
30
|
exports.developmentUploadServiceURL = 'https://upload.ardrive.dev';
|
29
31
|
exports.defaultUploadServiceURL = 'https://upload.ardrive.io';
|
30
32
|
class TurboUnauthenticatedUploadService {
|
@@ -195,16 +197,22 @@ class TurboAuthenticatedBaseUploadService extends TurboUnauthenticatedUploadServ
|
|
195
197
|
manifestResponse,
|
196
198
|
};
|
197
199
|
}
|
198
|
-
async
|
200
|
+
async shareCredits({ approvedAddress, approvedWincAmount, expiresBySeconds, }) {
|
199
201
|
const dataItemOpts = {
|
200
202
|
tags: [
|
201
|
-
{
|
202
|
-
|
203
|
+
{
|
204
|
+
name: exports.creditSharingTagNames.shareCredits,
|
205
|
+
value: approvedAddress,
|
206
|
+
},
|
207
|
+
{
|
208
|
+
name: exports.creditSharingTagNames.sharedWincAmount,
|
209
|
+
value: approvedWincAmount.toString(),
|
210
|
+
},
|
203
211
|
],
|
204
212
|
};
|
205
213
|
if (expiresBySeconds !== undefined) {
|
206
214
|
dataItemOpts.tags.push({
|
207
|
-
name: exports.
|
215
|
+
name: exports.creditSharingTagNames.approvalExpiresBySeconds,
|
208
216
|
value: expiresBySeconds.toString(),
|
209
217
|
});
|
210
218
|
}
|
@@ -215,16 +223,16 @@ class TurboAuthenticatedBaseUploadService extends TurboUnauthenticatedUploadServ
|
|
215
223
|
dataItemOpts,
|
216
224
|
});
|
217
225
|
if (!createdApproval) {
|
218
|
-
throw new Error('Failed to create
|
226
|
+
throw new Error('Failed to create credit share approval but upload has succeeded\n' +
|
219
227
|
JSON.stringify(uploadResponse));
|
220
228
|
}
|
221
229
|
return createdApproval;
|
222
230
|
}
|
223
|
-
async
|
231
|
+
async revokeCredits({ revokedAddress, }) {
|
224
232
|
const dataItemOpts = {
|
225
233
|
tags: [
|
226
234
|
{
|
227
|
-
name: exports.
|
235
|
+
name: exports.creditSharingTagNames.revokeCredits,
|
228
236
|
value: revokedAddress,
|
229
237
|
},
|
230
238
|
],
|
@@ -236,7 +244,7 @@ class TurboAuthenticatedBaseUploadService extends TurboUnauthenticatedUploadServ
|
|
236
244
|
dataItemOpts,
|
237
245
|
});
|
238
246
|
if (!revokedApprovals) {
|
239
|
-
throw new Error('Failed to revoke
|
247
|
+
throw new Error('Failed to revoke credit share approvals but upload has succeeded\n' +
|
240
248
|
JSON.stringify(uploadResponse));
|
241
249
|
}
|
242
250
|
return revokedApprovals;
|
package/lib/cjs/version.js
CHANGED
package/lib/esm/cli/cli.js
CHANGED
@@ -18,11 +18,11 @@
|
|
18
18
|
// eslint-disable-next-line header/header -- This is a CLI file
|
19
19
|
import { program } from 'commander';
|
20
20
|
import { version } from '../version.js';
|
21
|
-
import { createApproval } from './commands/createApproval.js';
|
22
21
|
import { balance, cryptoFund, price, topUp, uploadFile, uploadFolder, } from './commands/index.js';
|
23
|
-
import {
|
24
|
-
import {
|
25
|
-
import {
|
22
|
+
import { listShares } from './commands/listShares.js';
|
23
|
+
import { revokeCredits } from './commands/revokeCredits.js';
|
24
|
+
import { shareCredits } from './commands/shareCredits.js';
|
25
|
+
import { globalOptions, listSharesOptions, optionMap, revokeCreditsOptions, shareCreditsOptions, uploadFileOptions, uploadFolderOptions, walletOptions, } from './options.js';
|
26
26
|
import { applyOptions, runCommand } from './utils.js';
|
27
27
|
applyOptions(program
|
28
28
|
.name('turbo')
|
@@ -50,19 +50,19 @@ applyOptions(program
|
|
50
50
|
await runCommand(command, price);
|
51
51
|
});
|
52
52
|
applyOptions(program
|
53
|
-
.command('
|
54
|
-
.description('Create a Turbo
|
55
|
-
await runCommand(command,
|
53
|
+
.command('share-credits')
|
54
|
+
.description('Create a Turbo credit share approval'), shareCreditsOptions).action(async (_commandOptions, command) => {
|
55
|
+
await runCommand(command, shareCredits);
|
56
56
|
});
|
57
57
|
applyOptions(program
|
58
|
-
.command('revoke-
|
59
|
-
.description('Revokes all Turbo
|
60
|
-
await runCommand(command,
|
58
|
+
.command('revoke-credits')
|
59
|
+
.description('Revokes all Turbo credit share approvals for given address'), revokeCreditsOptions).action(async (_commandOptions, command) => {
|
60
|
+
await runCommand(command, revokeCredits);
|
61
61
|
});
|
62
62
|
applyOptions(program
|
63
|
-
.command('list-
|
64
|
-
.description('Lists all Turbo
|
65
|
-
await runCommand(command,
|
63
|
+
.command('list-shares')
|
64
|
+
.description('Lists all given or received Turbo credit share approvals for specified address or connected wallet'), listSharesOptions).action(async (_commandOptions, command) => {
|
65
|
+
await runCommand(command, listShares);
|
66
66
|
});
|
67
67
|
if (process.argv[1].includes('bin/turbo') || // Running from global .bin
|
68
68
|
process.argv[1].includes('cli/cli') // Running from source
|
@@ -15,12 +15,12 @@
|
|
15
15
|
*/
|
16
16
|
import { TurboFactory } from '../../node/factory.js';
|
17
17
|
import { addressOrPrivateKeyFromOptions, configFromOptions } from '../utils.js';
|
18
|
-
export async function
|
18
|
+
export async function listShares(options) {
|
19
19
|
const config = configFromOptions(options);
|
20
20
|
const { address, privateKey } = await addressOrPrivateKeyFromOptions(options);
|
21
21
|
const { givenApprovals, receivedApprovals, nativeAddress } = await (async () => {
|
22
22
|
if (address !== undefined) {
|
23
|
-
const approvals = await TurboFactory.unauthenticated(config).
|
23
|
+
const approvals = await TurboFactory.unauthenticated(config).getCreditShareApprovals({
|
24
24
|
userAddress: address,
|
25
25
|
});
|
26
26
|
return { ...approvals, nativeAddress: address };
|
@@ -32,7 +32,7 @@ export async function listApprovals(options) {
|
|
32
32
|
...config,
|
33
33
|
privateKey,
|
34
34
|
});
|
35
|
-
const approvals = await turbo.
|
35
|
+
const approvals = await turbo.getCreditShareApprovals();
|
36
36
|
return {
|
37
37
|
...approvals,
|
38
38
|
nativeAddress: await turbo.signer.getNativeAddress(),
|
@@ -40,8 +40,8 @@ export async function listApprovals(options) {
|
|
40
40
|
})();
|
41
41
|
const hasApprovals = givenApprovals?.length === 0 && receivedApprovals?.length === 0;
|
42
42
|
const body = {
|
43
|
-
message: `${hasApprovals ? 'No
|
44
|
-
` for native address '${nativeAddress}'`,
|
43
|
+
message: `${hasApprovals ? 'No ' : ''}` +
|
44
|
+
`Credit Share Approvals found for native address '${nativeAddress}'`,
|
45
45
|
givenApprovals,
|
46
46
|
receivedApprovals,
|
47
47
|
};
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { turboFromOptions } from '../utils.js';
|
2
|
-
export async function
|
2
|
+
export async function revokeCredits(options) {
|
3
3
|
const { address: revokedAddress } = options;
|
4
4
|
if (revokedAddress === undefined) {
|
5
5
|
throw new Error('Must provide an approved --address to revoke approvals for');
|
6
6
|
}
|
7
7
|
const turbo = await turboFromOptions(options);
|
8
|
-
const revokedApprovals = await turbo.
|
8
|
+
const revokedApprovals = await turbo.revokeCredits({
|
9
9
|
revokedAddress,
|
10
10
|
});
|
11
|
-
console.log(JSON.stringify({ message: 'Revoked approvals', revokedApprovals }, null, 2));
|
11
|
+
console.log(JSON.stringify({ message: 'Revoked credit share approvals!', revokedApprovals }, null, 2));
|
12
12
|
}
|
@@ -15,7 +15,7 @@
|
|
15
15
|
*/
|
16
16
|
import { BigNumber } from 'bignumber.js';
|
17
17
|
import { turboFromOptions } from '../utils.js';
|
18
|
-
export async function
|
18
|
+
export async function shareCredits(options) {
|
19
19
|
const { address: approvedAddress, value: creditAmount, expiresBySeconds, } = options;
|
20
20
|
if (approvedAddress === undefined) {
|
21
21
|
throw new Error('Must provide an approved --address to create approval for');
|
@@ -27,10 +27,10 @@ export async function createApproval(options) {
|
|
27
27
|
const approvedWincAmount = new BigNumber(creditAmount)
|
28
28
|
.shiftedBy(12)
|
29
29
|
.toFixed(0);
|
30
|
-
const result = await turbo.
|
30
|
+
const result = await turbo.shareCredits({
|
31
31
|
approvedAddress,
|
32
32
|
approvedWincAmount,
|
33
33
|
expiresBySeconds,
|
34
34
|
});
|
35
|
-
console.log(JSON.stringify({ message: 'Created approval
|
35
|
+
console.log(JSON.stringify({ message: 'Created credit share approval!', ...result }, null, 2));
|
36
36
|
}
|
package/lib/esm/cli/options.js
CHANGED
@@ -131,12 +131,12 @@ export const optionMap = {
|
|
131
131
|
},
|
132
132
|
ignoreApprovals: {
|
133
133
|
alias: '--ignore-approvals',
|
134
|
-
description: "Ignore all
|
134
|
+
description: "Ignore all credit share approvals, only use signing wallet's balance",
|
135
135
|
default: false,
|
136
136
|
},
|
137
137
|
useSignerBalanceFirst: {
|
138
138
|
alias: '--use-signer-balance-first',
|
139
|
-
description: 'Use the signer balance first before using
|
139
|
+
description: 'Use the signer balance first before using credit share approvals',
|
140
140
|
default: false,
|
141
141
|
},
|
142
142
|
};
|
@@ -171,11 +171,11 @@ export const uploadFolderOptions = [
|
|
171
171
|
optionMap.maxConcurrency,
|
172
172
|
];
|
173
173
|
export const uploadFileOptions = [...uploadOptions, optionMap.filePath];
|
174
|
-
export const
|
174
|
+
export const shareCreditsOptions = [
|
175
175
|
...walletOptions,
|
176
176
|
optionMap.value,
|
177
177
|
optionMap.address,
|
178
178
|
optionMap.expiresBySeconds,
|
179
179
|
];
|
180
|
-
export const
|
181
|
-
export const
|
180
|
+
export const revokeCreditsOptions = [...walletOptions, optionMap.address];
|
181
|
+
export const listSharesOptions = revokeCreditsOptions;
|
@@ -161,7 +161,7 @@ export class TurboUnauthenticatedPaymentService {
|
|
161
161
|
}
|
162
162
|
throw new Error('Unknown response from payment service: ' + response);
|
163
163
|
}
|
164
|
-
async
|
164
|
+
async getCreditShareApprovals({ userAddress, }) {
|
165
165
|
const response = await this.httpService.get({
|
166
166
|
endpoint: `/account/approvals/get?userAddress=${userAddress}`,
|
167
167
|
allowedStatuses: [200, 404],
|
@@ -187,9 +187,9 @@ export class TurboAuthenticatedPaymentService extends TurboUnauthenticatedPaymen
|
|
187
187
|
userAddress ??= await this.signer.getNativeAddress();
|
188
188
|
return super.getBalance(userAddress);
|
189
189
|
}
|
190
|
-
async
|
190
|
+
async getCreditShareApprovals({ userAddress, }) {
|
191
191
|
userAddress ??= await this.signer.getNativeAddress();
|
192
|
-
return super.
|
192
|
+
return super.getCreditShareApprovals({ userAddress });
|
193
193
|
}
|
194
194
|
async getWincForFiat({ amount, promoCodes = [], }) {
|
195
195
|
return super.getWincForFiat({
|
package/lib/esm/common/turbo.js
CHANGED
@@ -106,10 +106,10 @@ export class TurboUnauthenticatedClient {
|
|
106
106
|
return wallets;
|
107
107
|
}
|
108
108
|
/**
|
109
|
-
* Returns a list of all
|
109
|
+
* Returns a list of all credit share approvals for the user.
|
110
110
|
*/
|
111
|
-
|
112
|
-
return this.paymentService.
|
111
|
+
getCreditShareApprovals(p) {
|
112
|
+
return this.paymentService.getCreditShareApprovals(p);
|
113
113
|
}
|
114
114
|
}
|
115
115
|
export class TurboAuthenticatedClient extends TurboUnauthenticatedClient {
|
@@ -124,10 +124,10 @@ export class TurboAuthenticatedClient extends TurboUnauthenticatedClient {
|
|
124
124
|
return this.paymentService.getBalance(userAddress);
|
125
125
|
}
|
126
126
|
/**
|
127
|
-
* Returns a list of all
|
127
|
+
* Returns a list of all credit share approvals for the user.
|
128
128
|
*/
|
129
|
-
|
130
|
-
return this.paymentService.
|
129
|
+
getCreditShareApprovals(p = {}) {
|
130
|
+
return this.paymentService.getCreditShareApprovals(p);
|
131
131
|
}
|
132
132
|
/**
|
133
133
|
* Signs and uploads raw data to the Turbo Upload Service.
|
@@ -151,20 +151,20 @@ export class TurboAuthenticatedClient extends TurboUnauthenticatedClient {
|
|
151
151
|
return this.paymentService.topUpWithTokens(p);
|
152
152
|
}
|
153
153
|
/**
|
154
|
-
* Creates a data item with tags that designate it as a
|
154
|
+
* Creates a data item with tags that designate it as a credit share approval.
|
155
155
|
* Signs the data item and sends it to the Turbo Upload Service, which will verify
|
156
156
|
* the signature and forward the admin action towards the Turbo Payment Service.
|
157
157
|
*/
|
158
|
-
|
159
|
-
return this.uploadService.
|
158
|
+
shareCredits(p) {
|
159
|
+
return this.uploadService.shareCredits(p);
|
160
160
|
}
|
161
161
|
/**
|
162
|
-
* Creates a data item with tags that designate it as a revoke action for
|
163
|
-
*
|
162
|
+
* Creates a data item with tags that designate it as a revoke action for credit
|
163
|
+
* share approvals for target revokedAddress. Signs the data item and sends it to
|
164
164
|
* the Turbo Upload Service, which will verify the signature and forward the admin
|
165
165
|
* action towards the Turbo Payment Service.
|
166
166
|
*/
|
167
|
-
|
168
|
-
return this.uploadService.
|
167
|
+
revokeCredits(p) {
|
168
|
+
return this.uploadService.revokeCredits(p);
|
169
169
|
}
|
170
170
|
}
|
package/lib/esm/common/upload.js
CHANGED
@@ -18,10 +18,12 @@ import { Readable } from 'node:stream';
|
|
18
18
|
import { pLimit } from 'plimit-lit';
|
19
19
|
import { TurboHTTPService } from './http.js';
|
20
20
|
import { TurboWinstonLogger } from './logger.js';
|
21
|
-
export const
|
22
|
-
|
23
|
-
|
24
|
-
|
21
|
+
export const creditSharingTagNames = {
|
22
|
+
shareCredits: 'x-approve-payment',
|
23
|
+
sharedWincAmount: 'x-amount',
|
24
|
+
approvalExpiresBySeconds: 'x-expires-seconds',
|
25
|
+
revokeCredits: 'x-delete-payment-approval',
|
26
|
+
};
|
25
27
|
export const developmentUploadServiceURL = 'https://upload.ardrive.dev';
|
26
28
|
export const defaultUploadServiceURL = 'https://upload.ardrive.io';
|
27
29
|
export class TurboUnauthenticatedUploadService {
|
@@ -191,16 +193,22 @@ export class TurboAuthenticatedBaseUploadService extends TurboUnauthenticatedUpl
|
|
191
193
|
manifestResponse,
|
192
194
|
};
|
193
195
|
}
|
194
|
-
async
|
196
|
+
async shareCredits({ approvedAddress, approvedWincAmount, expiresBySeconds, }) {
|
195
197
|
const dataItemOpts = {
|
196
198
|
tags: [
|
197
|
-
{
|
198
|
-
|
199
|
+
{
|
200
|
+
name: creditSharingTagNames.shareCredits,
|
201
|
+
value: approvedAddress,
|
202
|
+
},
|
203
|
+
{
|
204
|
+
name: creditSharingTagNames.sharedWincAmount,
|
205
|
+
value: approvedWincAmount.toString(),
|
206
|
+
},
|
199
207
|
],
|
200
208
|
};
|
201
209
|
if (expiresBySeconds !== undefined) {
|
202
210
|
dataItemOpts.tags.push({
|
203
|
-
name:
|
211
|
+
name: creditSharingTagNames.approvalExpiresBySeconds,
|
204
212
|
value: expiresBySeconds.toString(),
|
205
213
|
});
|
206
214
|
}
|
@@ -211,16 +219,16 @@ export class TurboAuthenticatedBaseUploadService extends TurboUnauthenticatedUpl
|
|
211
219
|
dataItemOpts,
|
212
220
|
});
|
213
221
|
if (!createdApproval) {
|
214
|
-
throw new Error('Failed to create
|
222
|
+
throw new Error('Failed to create credit share approval but upload has succeeded\n' +
|
215
223
|
JSON.stringify(uploadResponse));
|
216
224
|
}
|
217
225
|
return createdApproval;
|
218
226
|
}
|
219
|
-
async
|
227
|
+
async revokeCredits({ revokedAddress, }) {
|
220
228
|
const dataItemOpts = {
|
221
229
|
tags: [
|
222
230
|
{
|
223
|
-
name:
|
231
|
+
name: creditSharingTagNames.revokeCredits,
|
224
232
|
value: revokedAddress,
|
225
233
|
},
|
226
234
|
],
|
@@ -232,7 +240,7 @@ export class TurboAuthenticatedBaseUploadService extends TurboUnauthenticatedUpl
|
|
232
240
|
dataItemOpts,
|
233
241
|
});
|
234
242
|
if (!revokedApprovals) {
|
235
|
-
throw new Error('Failed to revoke
|
243
|
+
throw new Error('Failed to revoke credit share approvals but upload has succeeded\n' +
|
236
244
|
JSON.stringify(uploadResponse));
|
237
245
|
}
|
238
246
|
return revokedApprovals;
|
package/lib/esm/version.js
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"listShares.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/listShares.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGhD,wBAAsB,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CA6C1E"}
|
@@ -13,6 +13,6 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import {
|
17
|
-
export declare function
|
18
|
-
//# sourceMappingURL=
|
16
|
+
import { RevokeCreditsOptions } from '../types.js';
|
17
|
+
export declare function revokeCredits(options: RevokeCreditsOptions): Promise<void>;
|
18
|
+
//# sourceMappingURL=revokeCredits.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"revokeCredits.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/revokeCredits.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAGnD,wBAAsB,aAAa,CACjC,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,IAAI,CAAC,CAqBf"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"shareCredits.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/shareCredits.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAGlD,wBAAsB,YAAY,CAChC,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,IAAI,CAAC,CAiCf"}
|
@@ -129,12 +129,12 @@ export declare const optionMap: {
|
|
129
129
|
};
|
130
130
|
readonly ignoreApprovals: {
|
131
131
|
readonly alias: "--ignore-approvals";
|
132
|
-
readonly description: "Ignore all
|
132
|
+
readonly description: "Ignore all credit share approvals, only use signing wallet's balance";
|
133
133
|
readonly default: false;
|
134
134
|
};
|
135
135
|
readonly useSignerBalanceFirst: {
|
136
136
|
readonly alias: "--use-signer-balance-first";
|
137
|
-
readonly description: "Use the signer balance first before using
|
137
|
+
readonly description: "Use the signer balance first before using credit share approvals";
|
138
138
|
readonly default: false;
|
139
139
|
};
|
140
140
|
};
|
@@ -200,11 +200,11 @@ export declare const uploadOptions: ({
|
|
200
200
|
readonly type: "array";
|
201
201
|
} | {
|
202
202
|
readonly alias: "--ignore-approvals";
|
203
|
-
readonly description: "Ignore all
|
203
|
+
readonly description: "Ignore all credit share approvals, only use signing wallet's balance";
|
204
204
|
readonly default: false;
|
205
205
|
} | {
|
206
206
|
readonly alias: "--use-signer-balance-first";
|
207
|
-
readonly description: "Use the signer balance first before using
|
207
|
+
readonly description: "Use the signer balance first before using credit share approvals";
|
208
208
|
readonly default: false;
|
209
209
|
})[];
|
210
210
|
export declare const uploadFolderOptions: ({
|
@@ -238,11 +238,11 @@ export declare const uploadFolderOptions: ({
|
|
238
238
|
readonly type: "array";
|
239
239
|
} | {
|
240
240
|
readonly alias: "--ignore-approvals";
|
241
|
-
readonly description: "Ignore all
|
241
|
+
readonly description: "Ignore all credit share approvals, only use signing wallet's balance";
|
242
242
|
readonly default: false;
|
243
243
|
} | {
|
244
244
|
readonly alias: "--use-signer-balance-first";
|
245
|
-
readonly description: "Use the signer balance first before using
|
245
|
+
readonly description: "Use the signer balance first before using credit share approvals";
|
246
246
|
readonly default: false;
|
247
247
|
})[];
|
248
248
|
export declare const uploadFileOptions: ({
|
@@ -263,14 +263,14 @@ export declare const uploadFileOptions: ({
|
|
263
263
|
readonly type: "array";
|
264
264
|
} | {
|
265
265
|
readonly alias: "--ignore-approvals";
|
266
|
-
readonly description: "Ignore all
|
266
|
+
readonly description: "Ignore all credit share approvals, only use signing wallet's balance";
|
267
267
|
readonly default: false;
|
268
268
|
} | {
|
269
269
|
readonly alias: "--use-signer-balance-first";
|
270
|
-
readonly description: "Use the signer balance first before using
|
270
|
+
readonly description: "Use the signer balance first before using credit share approvals";
|
271
271
|
readonly default: false;
|
272
272
|
})[];
|
273
|
-
export declare const
|
273
|
+
export declare const shareCreditsOptions: ({
|
274
274
|
readonly alias: "-a, --address <nativeAddress>";
|
275
275
|
readonly description: "Native address to use for action";
|
276
276
|
} | {
|
@@ -289,7 +289,7 @@ export declare const createApprovalOptions: ({
|
|
289
289
|
readonly alias: "--expires-by-seconds <expiresBySeconds>";
|
290
290
|
readonly description: "Expiration time in seconds";
|
291
291
|
})[];
|
292
|
-
export declare const
|
292
|
+
export declare const revokeCreditsOptions: ({
|
293
293
|
readonly alias: "-a, --address <nativeAddress>";
|
294
294
|
readonly description: "Native address to use for action";
|
295
295
|
} | {
|
@@ -302,7 +302,7 @@ export declare const revokeApprovalsOptions: ({
|
|
302
302
|
readonly alias: "-p, --private-key <key>";
|
303
303
|
readonly description: "Private key to use with the action";
|
304
304
|
})[];
|
305
|
-
export declare const
|
305
|
+
export declare const listSharesOptions: ({
|
306
306
|
readonly alias: "-a, --address <nativeAddress>";
|
307
307
|
readonly description: "Native address to use for action";
|
308
308
|
} | {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/cli/options.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoIZ,CAAC;AAEX,eAAO,MAAM,aAAa;;;;;;;;;IAIzB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUzB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;IAKzB,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAO/B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;IAAyC,CAAC;AAExE,eAAO,MAAM,
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/cli/options.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoIZ,CAAC;AAEX,eAAO,MAAM,aAAa;;;;;;;;;IAIzB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUzB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;IAKzB,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAO/B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;IAAyC,CAAC;AAExE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;IAK/B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;IAAwC,CAAC;AAE1E,eAAO,MAAM,iBAAiB;;;;;;;;;;;;IAAuB,CAAC"}
|
package/lib/types/cli/types.d.ts
CHANGED
@@ -59,13 +59,13 @@ export type CryptoFundOptions = WalletOptions & {
|
|
59
59
|
value: string | undefined;
|
60
60
|
txId: string | undefined;
|
61
61
|
};
|
62
|
-
export type
|
62
|
+
export type ShareCreditsOptions = WalletOptions & {
|
63
63
|
address: string | undefined;
|
64
64
|
value: string | undefined;
|
65
65
|
expiresBySeconds: number | undefined;
|
66
66
|
};
|
67
|
-
export type
|
67
|
+
export type RevokeCreditsOptions = WalletOptions & {
|
68
68
|
address: string | undefined;
|
69
69
|
};
|
70
|
-
export type
|
70
|
+
export type ListSharesOptions = RevokeCreditsOptions;
|
71
71
|
//# sourceMappingURL=types.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/cli/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,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,GA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M,GAAG,SAAS,CAAC;IAC9B,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,QAAQ,EAAE,OAAO,CAAC;IAClB,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG;IAC9C,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,aAAa,GAAG;IACzC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG;IAC9C,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,aAAa,GAAG;IAChD,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,aAAa,GAAG;IACjD,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,oBAAoB,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Currency,
|
1
|
+
import { Currency, GetCreditShareApprovalsResponse, TokenTools, TokenType, TurboAuthenticatedPaymentServiceConfiguration, TurboAuthenticatedPaymentServiceInterface, TurboBalanceResponse, TurboCheckoutSessionParams, TurboCheckoutSessionResponse, TurboCountriesResponse, TurboCryptoFundResponse, TurboCurrenciesResponse, TurboDataItemSigner, TurboFiatToArResponse, TurboFundWithTokensParams, TurboLogger, TurboPriceResponse, TurboRatesResponse, TurboSignedRequestHeaders, TurboSubmitFundTxResponse, TurboUnauthenticatedPaymentServiceConfiguration, TurboUnauthenticatedPaymentServiceInterface, TurboWincForFiatParams, TurboWincForFiatResponse, TurboWincForTokenParams, TurboWincForTokenResponse, UserAddress } from '../types.js';
|
2
2
|
import { TurboHTTPService } from './http.js';
|
3
3
|
export declare const developmentPaymentServiceURL = "https://payment.ardrive.dev";
|
4
4
|
export declare const defaultPaymentServiceURL = "https://payment.ardrive.io";
|
@@ -26,18 +26,18 @@ export declare class TurboUnauthenticatedPaymentService implements TurboUnauthen
|
|
26
26
|
submitFundTransaction({ txId, }: {
|
27
27
|
txId: string;
|
28
28
|
}): Promise<TurboSubmitFundTxResponse>;
|
29
|
-
|
29
|
+
getCreditShareApprovals({ userAddress, }: {
|
30
30
|
userAddress: UserAddress;
|
31
|
-
}): Promise<
|
31
|
+
}): Promise<GetCreditShareApprovalsResponse>;
|
32
32
|
}
|
33
33
|
export declare class TurboAuthenticatedPaymentService extends TurboUnauthenticatedPaymentService implements TurboAuthenticatedPaymentServiceInterface {
|
34
34
|
protected readonly signer: TurboDataItemSigner;
|
35
35
|
protected readonly tokenTools: TokenTools | undefined;
|
36
36
|
constructor({ url, retryConfig, signer, logger, token, tokenTools, }: TurboAuthenticatedPaymentServiceConfiguration);
|
37
37
|
getBalance(userAddress?: string): Promise<TurboBalanceResponse>;
|
38
|
-
|
38
|
+
getCreditShareApprovals({ userAddress, }: {
|
39
39
|
userAddress?: string;
|
40
|
-
}): Promise<
|
40
|
+
}): Promise<GetCreditShareApprovalsResponse>;
|
41
41
|
getWincForFiat({ amount, promoCodes, }: TurboWincForFiatParams): Promise<TurboWincForFiatResponse>;
|
42
42
|
createCheckoutSession(params: TurboCheckoutSessionParams): Promise<TurboCheckoutSessionResponse>;
|
43
43
|
private getTargetWalletForFund;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"payment.d.ts","sourceRoot":"","sources":["../../../src/common/payment.ts"],"names":[],"mappings":"AAkBA,OAAO,EACL,QAAQ,EACR,
|
1
|
+
{"version":3,"file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