@ar.io/sdk 3.24.0 → 4.0.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 +757 -589
- package/lib/esm/cli/cli.js +188 -152
- package/lib/esm/cli/commands/antCommands.js +23 -58
- package/lib/esm/cli/commands/arnsPurchaseCommands.js +48 -30
- package/lib/esm/cli/commands/escrowCommands.js +227 -0
- package/lib/esm/cli/commands/gatewayWriteCommands.js +140 -23
- package/lib/esm/cli/commands/pruneCommands.js +154 -0
- package/lib/esm/cli/commands/readCommands.js +22 -3
- package/lib/esm/cli/commands/transfer.js +6 -6
- package/lib/esm/cli/options.js +124 -58
- package/lib/esm/cli/utils.js +303 -175
- package/lib/esm/common/ant-registry.js +17 -143
- package/lib/esm/common/ant.js +44 -1167
- package/lib/esm/common/faucet.js +17 -6
- package/lib/esm/common/index.js +0 -4
- package/lib/esm/common/io.js +25 -1412
- package/lib/esm/constants.js +13 -19
- package/lib/esm/solana/ant-readable.js +724 -0
- package/lib/esm/solana/ant-registry-readable.js +133 -0
- package/lib/esm/solana/ant-registry-writeable.js +472 -0
- package/lib/esm/solana/ant-writeable.js +384 -0
- package/lib/esm/solana/ata.js +70 -0
- package/lib/esm/solana/canonical-message.js +128 -0
- package/lib/esm/solana/clusters.js +111 -0
- package/lib/esm/solana/constants.js +146 -0
- package/lib/esm/solana/delegation-math.js +112 -0
- package/lib/esm/solana/deserialize.js +711 -0
- package/lib/esm/solana/escrow.js +839 -0
- package/lib/{cjs/utils/json.js → esm/solana/events.js} +15 -10
- package/lib/esm/solana/funding-plan.js +699 -0
- package/lib/esm/solana/index.js +126 -0
- package/lib/esm/solana/instruction.js +39 -0
- package/lib/esm/solana/io-readable.js +2182 -0
- package/lib/esm/solana/io-writeable.js +3196 -0
- package/lib/esm/solana/json-rpc.js +90 -0
- package/lib/esm/solana/metadata.js +81 -0
- package/lib/esm/solana/mpl-core.js +192 -0
- package/lib/esm/solana/pda.js +332 -0
- package/lib/esm/solana/predict-prescribed-observers.js +110 -0
- package/lib/esm/solana/retry.js +117 -0
- package/lib/esm/solana/rpc-circuit-breaker.js +258 -0
- package/lib/esm/solana/send.js +372 -0
- package/lib/esm/solana/spawn-ant.js +224 -0
- package/lib/esm/solana/types.js +1 -0
- package/lib/esm/types/ant.js +27 -15
- package/lib/esm/types/io.js +8 -11
- package/lib/esm/utils/ant.js +0 -63
- package/lib/esm/utils/index.js +0 -3
- package/lib/esm/version.js +1 -1
- package/lib/types/cli/commands/antCommands.d.ts +5 -13
- package/lib/types/cli/commands/arnsPurchaseCommands.d.ts +33 -7
- package/lib/types/cli/commands/escrowCommands.d.ts +68 -0
- package/lib/types/cli/commands/gatewayWriteCommands.d.ts +12 -11
- package/lib/types/cli/commands/pruneCommands.d.ts +31 -0
- package/lib/types/cli/commands/readCommands.d.ts +27 -22
- package/lib/types/cli/commands/transfer.d.ts +9 -9
- package/lib/types/cli/options.d.ts +76 -21
- package/lib/types/cli/types.d.ts +11 -13
- package/lib/types/cli/utils.d.ts +71 -31
- package/lib/types/common/ant-registry.d.ts +49 -47
- package/lib/types/common/ant.d.ts +54 -539
- package/lib/types/common/faucet.d.ts +20 -8
- package/lib/types/common/index.d.ts +0 -3
- package/lib/types/common/io.d.ts +66 -258
- package/lib/types/constants.d.ts +11 -18
- package/lib/types/solana/ant-readable.d.ts +180 -0
- package/lib/types/solana/ant-registry-readable.d.ts +105 -0
- package/lib/types/solana/ant-registry-writeable.d.ts +249 -0
- package/lib/types/solana/ant-writeable.d.ts +177 -0
- package/lib/types/solana/ata.d.ts +44 -0
- package/lib/types/solana/canonical-message.d.ts +121 -0
- package/lib/types/solana/clusters.d.ts +109 -0
- package/lib/types/solana/constants.d.ts +119 -0
- package/lib/types/solana/delegation-math.d.ts +45 -0
- package/lib/types/solana/deserialize.d.ts +262 -0
- package/lib/types/solana/escrow.d.ts +480 -0
- package/lib/types/solana/events.d.ts +38 -0
- package/lib/types/solana/funding-plan.d.ts +225 -0
- package/lib/types/solana/index.d.ts +87 -0
- package/lib/types/solana/instruction.d.ts +39 -0
- package/lib/types/solana/io-readable.d.ts +499 -0
- package/lib/types/solana/io-writeable.d.ts +893 -0
- package/lib/types/solana/json-rpc.d.ts +47 -0
- package/lib/types/solana/metadata.d.ts +84 -0
- package/lib/types/solana/mpl-core.d.ts +120 -0
- package/lib/types/solana/pda.d.ts +95 -0
- package/lib/types/solana/predict-prescribed-observers.d.ts +28 -0
- package/lib/types/solana/retry.d.ts +62 -0
- package/lib/types/solana/rpc-circuit-breaker.d.ts +78 -0
- package/lib/types/solana/send.d.ts +94 -0
- package/lib/types/solana/spawn-ant.d.ts +145 -0
- package/lib/types/solana/types.d.ts +82 -0
- package/lib/types/types/ant-registry.d.ts +43 -4
- package/lib/types/types/ant.d.ts +114 -96
- package/lib/types/types/common.d.ts +18 -74
- package/lib/types/types/faucet.d.ts +2 -2
- package/lib/types/types/io.d.ts +244 -158
- package/lib/types/types/token.d.ts +0 -12
- package/lib/types/utils/ant.d.ts +1 -12
- package/lib/types/utils/index.d.ts +0 -3
- package/lib/types/version.d.ts +1 -1
- package/package.json +36 -33
- package/lib/cjs/cli/cli.js +0 -822
- package/lib/cjs/cli/commands/antCommands.js +0 -113
- package/lib/cjs/cli/commands/arnsPurchaseCommands.js +0 -212
- package/lib/cjs/cli/commands/gatewayWriteCommands.js +0 -210
- package/lib/cjs/cli/commands/readCommands.js +0 -215
- package/lib/cjs/cli/commands/transfer.js +0 -159
- package/lib/cjs/cli/options.js +0 -470
- package/lib/cjs/cli/types.js +0 -2
- package/lib/cjs/cli/utils.js +0 -639
- package/lib/cjs/common/ant-registry.js +0 -155
- package/lib/cjs/common/ant-versions.js +0 -93
- package/lib/cjs/common/ant.js +0 -1182
- package/lib/cjs/common/arweave.js +0 -27
- package/lib/cjs/common/contracts/ao-process.js +0 -224
- package/lib/cjs/common/error.js +0 -64
- package/lib/cjs/common/faucet.js +0 -150
- package/lib/cjs/common/hyperbeam/hb.js +0 -173
- package/lib/cjs/common/index.js +0 -42
- package/lib/cjs/common/io.js +0 -1423
- package/lib/cjs/common/logger.js +0 -83
- package/lib/cjs/common/loggers/winston.js +0 -68
- package/lib/cjs/common/marketplace.js +0 -731
- package/lib/cjs/common/turbo.js +0 -223
- package/lib/cjs/constants.js +0 -41
- package/lib/cjs/node/index.js +0 -39
- package/lib/cjs/package.json +0 -1
- package/lib/cjs/types/ant-registry.js +0 -2
- package/lib/cjs/types/ant.js +0 -168
- package/lib/cjs/types/common.js +0 -2
- package/lib/cjs/types/faucet.js +0 -2
- package/lib/cjs/types/index.js +0 -37
- package/lib/cjs/types/io.js +0 -51
- package/lib/cjs/types/token.js +0 -116
- package/lib/cjs/utils/ant.js +0 -108
- package/lib/cjs/utils/ao.js +0 -432
- package/lib/cjs/utils/arweave.js +0 -285
- package/lib/cjs/utils/base64.js +0 -62
- package/lib/cjs/utils/hash.js +0 -56
- package/lib/cjs/utils/index.js +0 -38
- package/lib/cjs/utils/processes.js +0 -173
- package/lib/cjs/utils/random.js +0 -30
- package/lib/cjs/utils/schema.js +0 -15
- package/lib/cjs/utils/url.js +0 -37
- package/lib/cjs/version.js +0 -20
- package/lib/cjs/web/index.js +0 -41
- package/lib/esm/common/ant-versions.js +0 -87
- package/lib/esm/common/arweave.js +0 -21
- package/lib/esm/common/contracts/ao-process.js +0 -220
- package/lib/esm/common/hyperbeam/hb.js +0 -169
- package/lib/esm/common/marketplace.js +0 -724
- package/lib/esm/common/turbo.js +0 -215
- package/lib/esm/node/index.js +0 -20
- package/lib/esm/utils/ao.js +0 -420
- package/lib/esm/utils/arweave.js +0 -271
- package/lib/esm/utils/processes.js +0 -167
- package/lib/esm/web/index.js +0 -20
- package/lib/types/common/ant-versions.d.ts +0 -39
- package/lib/types/common/arweave.d.ts +0 -17
- package/lib/types/common/contracts/ao-process.d.ts +0 -47
- package/lib/types/common/hyperbeam/hb.d.ts +0 -88
- package/lib/types/common/marketplace.d.ts +0 -568
- package/lib/types/common/turbo.d.ts +0 -61
- package/lib/types/node/index.d.ts +0 -20
- package/lib/types/utils/ao.d.ts +0 -80
- package/lib/types/utils/arweave.d.ts +0 -79
- package/lib/types/utils/processes.d.ts +0 -39
- package/lib/types/web/index.d.ts +0 -20
package/lib/cjs/cli/options.js
DELETED
|
@@ -1,470 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Copyright (C) 2022-2024 Permanent Data Solutions, Inc.
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.transferRecordOwnershipOptions = exports.upgradeAntOptions = exports.setAntUndernameOptions = exports.setAntBaseNameOptions = exports.antStateOptions = exports.buyRecordOptions = exports.joinNetworkOptions = exports.updateGatewaySettingsOptions = exports.decreaseDelegateStakeOptions = exports.delegateStakeOptions = exports.redelegateStakeOptions = exports.operatorStakeOptions = exports.vaultedTransferOptions = exports.transferOptions = exports.tokenCostOptions = exports.getVaultOptions = exports.paginationAddressOptions = exports.paginationOptions = exports.nameWriteOptions = exports.addressAndVaultIdOptions = exports.epochOptions = exports.arnsPurchaseOptions = exports.writeActionOptions = exports.globalOptions = exports.walletOptions = exports.optionMap = void 0;
|
|
19
|
-
exports.optionMap = {
|
|
20
|
-
walletFile: {
|
|
21
|
-
alias: '-w, --wallet-file <walletFilePath>',
|
|
22
|
-
description: 'The file path to the wallet to use for the interaction',
|
|
23
|
-
},
|
|
24
|
-
// mnemonic: {
|
|
25
|
-
// alias: '-m, --mnemonic <phrase>',
|
|
26
|
-
// description: 'Mnemonic to use with the action',
|
|
27
|
-
// },
|
|
28
|
-
privateKey: {
|
|
29
|
-
alias: '--private-key <key>',
|
|
30
|
-
description: 'Stringified private key to use with the action',
|
|
31
|
-
},
|
|
32
|
-
mainnet: {
|
|
33
|
-
alias: '--mainnet',
|
|
34
|
-
description: 'Run against the AR.IO mainnet process',
|
|
35
|
-
type: 'boolean',
|
|
36
|
-
},
|
|
37
|
-
testnet: {
|
|
38
|
-
alias: '--testnet',
|
|
39
|
-
description: 'Run against the AR.IO testnet process',
|
|
40
|
-
type: 'boolean',
|
|
41
|
-
},
|
|
42
|
-
devnet: {
|
|
43
|
-
alias: '--dev, --devnet',
|
|
44
|
-
description: 'Run against the AR.IO devnet process',
|
|
45
|
-
type: 'boolean',
|
|
46
|
-
},
|
|
47
|
-
arioProcessId: {
|
|
48
|
-
alias: '--ario-process-id <arioProcessId>',
|
|
49
|
-
description: 'Run against a custom AR.IO process id',
|
|
50
|
-
},
|
|
51
|
-
antRegistryProcessId: {
|
|
52
|
-
alias: '--ant-registry-process-id <antRegistryProcessId>',
|
|
53
|
-
description: 'Run against a custom ANT registry process id',
|
|
54
|
-
},
|
|
55
|
-
hyperbeamUrl: {
|
|
56
|
-
alias: '--hyperbeam-url <hyperbeamUrl>',
|
|
57
|
-
description: 'The URL for a custom hyperbeam node',
|
|
58
|
-
},
|
|
59
|
-
cuUrl: {
|
|
60
|
-
alias: '--cu-url <cuUrl>',
|
|
61
|
-
description: 'The URL for a custom compute unit',
|
|
62
|
-
},
|
|
63
|
-
paymentUrl: {
|
|
64
|
-
alias: '--payment-url <paymentUrl>',
|
|
65
|
-
description: 'The URL for a custom turbo payment service',
|
|
66
|
-
},
|
|
67
|
-
processId: {
|
|
68
|
-
alias: '--process-id <processId>',
|
|
69
|
-
description: 'The process ID to interact with',
|
|
70
|
-
},
|
|
71
|
-
debug: {
|
|
72
|
-
alias: '--debug',
|
|
73
|
-
description: 'Enable debug log output',
|
|
74
|
-
type: 'boolean',
|
|
75
|
-
},
|
|
76
|
-
address: {
|
|
77
|
-
alias: '-a, --address <address>',
|
|
78
|
-
description: 'The address to interact with',
|
|
79
|
-
},
|
|
80
|
-
target: {
|
|
81
|
-
alias: '--target <target>',
|
|
82
|
-
description: 'The target address to interact with',
|
|
83
|
-
},
|
|
84
|
-
source: {
|
|
85
|
-
alias: '--source <source>',
|
|
86
|
-
description: 'The source address to interact with',
|
|
87
|
-
},
|
|
88
|
-
quantity: {
|
|
89
|
-
alias: '-q, --quantity <quantity>',
|
|
90
|
-
description: 'The quantity of ARIO to interact with',
|
|
91
|
-
},
|
|
92
|
-
autoStake: {
|
|
93
|
-
alias: '--auto-stake',
|
|
94
|
-
description: 'Enable auto-staking of operator rewards',
|
|
95
|
-
type: 'boolean',
|
|
96
|
-
},
|
|
97
|
-
allowDelegatedStaking: {
|
|
98
|
-
alias: '--allow-delegated-staking',
|
|
99
|
-
description: 'Allow delegating stake to the gateway',
|
|
100
|
-
type: 'boolean',
|
|
101
|
-
},
|
|
102
|
-
minDelegatedStake: {
|
|
103
|
-
alias: '--min-delegated-stake <minDelegatedStake>',
|
|
104
|
-
description: 'The minimum delegated stake allowed',
|
|
105
|
-
},
|
|
106
|
-
delegateRewardShareRatio: {
|
|
107
|
-
alias: '--delegate-reward-share-ratio <delegateRewardShareRatio>',
|
|
108
|
-
description: 'The percentage of rewards to share with delegates',
|
|
109
|
-
},
|
|
110
|
-
label: {
|
|
111
|
-
alias: '--label <label>',
|
|
112
|
-
description: 'The label for the gateway',
|
|
113
|
-
},
|
|
114
|
-
note: {
|
|
115
|
-
alias: '--note <note>',
|
|
116
|
-
description: 'The note for the gateway',
|
|
117
|
-
},
|
|
118
|
-
properties: {
|
|
119
|
-
alias: '--properties <properties>',
|
|
120
|
-
description: 'The properties for the gateway',
|
|
121
|
-
},
|
|
122
|
-
observerAddress: {
|
|
123
|
-
alias: '--observer-address <observerAddress>',
|
|
124
|
-
description: 'The observer wallet address for the gateway',
|
|
125
|
-
},
|
|
126
|
-
fqdn: {
|
|
127
|
-
alias: '--fqdn <fqdn>',
|
|
128
|
-
description: 'The fully qualified domain name for the gateway',
|
|
129
|
-
},
|
|
130
|
-
port: {
|
|
131
|
-
alias: '--port <port>',
|
|
132
|
-
description: 'The port for the gateway',
|
|
133
|
-
},
|
|
134
|
-
protocol: {
|
|
135
|
-
alias: '--protocol <protocol>',
|
|
136
|
-
description: 'The protocol for the gateway',
|
|
137
|
-
},
|
|
138
|
-
allowedDelegates: {
|
|
139
|
-
alias: '--allowed-delegates <allowedDelegates...>',
|
|
140
|
-
description: 'The allowed delegates for the gateway. By default this is empty, meaning all are allowed delegate stake unless delegating is explicitly disallowed by the gateway',
|
|
141
|
-
type: 'array',
|
|
142
|
-
},
|
|
143
|
-
services: {
|
|
144
|
-
alias: '--services <services>',
|
|
145
|
-
description: 'JSON string of gateway services configuration (e.g., \'{"bundlers":[{"fqdn":"bundler.example.com","port":443,"protocol":"https","path":"/bundler"}]}\')',
|
|
146
|
-
},
|
|
147
|
-
skipConfirmation: {
|
|
148
|
-
alias: '--skip-confirmation',
|
|
149
|
-
description: 'Skip confirmation prompts',
|
|
150
|
-
type: 'boolean',
|
|
151
|
-
},
|
|
152
|
-
vaultId: {
|
|
153
|
-
alias: '--vault-id <vaultId>',
|
|
154
|
-
description: 'The vault ID to interact with',
|
|
155
|
-
},
|
|
156
|
-
operatorStake: {
|
|
157
|
-
alias: '--operator-stake <operatorStake>',
|
|
158
|
-
description: 'The operator stake to interact with',
|
|
159
|
-
},
|
|
160
|
-
name: {
|
|
161
|
-
alias: '--name <name>',
|
|
162
|
-
description: 'The ArNS name to interact with',
|
|
163
|
-
},
|
|
164
|
-
epochIndex: {
|
|
165
|
-
alias: '--epoch-index <epochIndex>',
|
|
166
|
-
description: 'The epoch index to interact with',
|
|
167
|
-
},
|
|
168
|
-
timestamp: {
|
|
169
|
-
alias: '--timestamp <timestamp>',
|
|
170
|
-
description: 'The timestamp to interact with',
|
|
171
|
-
},
|
|
172
|
-
initiator: {
|
|
173
|
-
alias: '--initiator <initiator>',
|
|
174
|
-
description: 'The initiator of the action',
|
|
175
|
-
},
|
|
176
|
-
intent: {
|
|
177
|
-
alias: '--intent <intent>',
|
|
178
|
-
description: 'The intent for the cost details action',
|
|
179
|
-
},
|
|
180
|
-
type: {
|
|
181
|
-
alias: '--type <type>',
|
|
182
|
-
description: 'The type for the cost details action. Either "lease" or "permabuy"',
|
|
183
|
-
},
|
|
184
|
-
years: {
|
|
185
|
-
alias: '--years <years>',
|
|
186
|
-
description: 'The number of years for the cost details action',
|
|
187
|
-
},
|
|
188
|
-
intervalMs: {
|
|
189
|
-
alias: '--interval-ms <intervalMs>',
|
|
190
|
-
description: 'The interval in milliseconds for the action',
|
|
191
|
-
},
|
|
192
|
-
cursor: {
|
|
193
|
-
alias: '--cursor <cursor>',
|
|
194
|
-
description: 'The cursor for pagination',
|
|
195
|
-
},
|
|
196
|
-
limit: {
|
|
197
|
-
alias: '--limit <limit>',
|
|
198
|
-
description: 'The limit for pagination',
|
|
199
|
-
},
|
|
200
|
-
sortBy: {
|
|
201
|
-
alias: '--sort-by <sortBy>',
|
|
202
|
-
description: 'The field to sort by',
|
|
203
|
-
},
|
|
204
|
-
sortOrder: {
|
|
205
|
-
alias: '--sort-order <sortOrder>',
|
|
206
|
-
description: 'The order to sort by, either "asc" or "desc"',
|
|
207
|
-
},
|
|
208
|
-
filters: {
|
|
209
|
-
alias: '--filters <filters...>',
|
|
210
|
-
description: 'The filters to apply for pagination. Format: --filters key1 value1,value2 key2 value3,value4 key3 value5',
|
|
211
|
-
type: 'array',
|
|
212
|
-
},
|
|
213
|
-
tags: {
|
|
214
|
-
description: 'An array of additional tags for the write action, in "--tags name1 value1 name2 value2" format',
|
|
215
|
-
alias: '--tags <tags...>',
|
|
216
|
-
type: 'array',
|
|
217
|
-
},
|
|
218
|
-
instant: {
|
|
219
|
-
alias: '--instant',
|
|
220
|
-
description: 'Use the instant transaction method',
|
|
221
|
-
type: 'boolean',
|
|
222
|
-
},
|
|
223
|
-
increaseCount: {
|
|
224
|
-
alias: '--increase-count <increaseCount>',
|
|
225
|
-
description: 'Amount to increase the undername count of the record by',
|
|
226
|
-
},
|
|
227
|
-
undername: {
|
|
228
|
-
alias: '--undername <undername>',
|
|
229
|
-
description: 'The undername to interact with',
|
|
230
|
-
},
|
|
231
|
-
controller: {
|
|
232
|
-
alias: '--controller <controller>',
|
|
233
|
-
description: 'The controller to interact with',
|
|
234
|
-
},
|
|
235
|
-
controllers: {
|
|
236
|
-
alias: '--controllers <controllers...>',
|
|
237
|
-
description: 'The controller to interact with',
|
|
238
|
-
type: 'array',
|
|
239
|
-
},
|
|
240
|
-
transactionId: {
|
|
241
|
-
alias: '--transaction-id <transactionId>',
|
|
242
|
-
description: 'The transaction ID to interact with',
|
|
243
|
-
},
|
|
244
|
-
ttlSeconds: {
|
|
245
|
-
alias: '--ttl-seconds <ttlSeconds>',
|
|
246
|
-
description: 'The TTL in seconds for the record',
|
|
247
|
-
},
|
|
248
|
-
ticker: {
|
|
249
|
-
alias: '--ticker <ticker>',
|
|
250
|
-
description: 'The ticker for the ANT',
|
|
251
|
-
},
|
|
252
|
-
description: {
|
|
253
|
-
alias: '--description <description>',
|
|
254
|
-
description: 'The description for the ANT',
|
|
255
|
-
},
|
|
256
|
-
keywords: {
|
|
257
|
-
alias: '--keywords <keywords...>',
|
|
258
|
-
description: 'The keywords for the ANT',
|
|
259
|
-
type: 'array',
|
|
260
|
-
},
|
|
261
|
-
owner: {
|
|
262
|
-
alias: '--owner <owner>',
|
|
263
|
-
description: 'The owner address for the record',
|
|
264
|
-
},
|
|
265
|
-
displayName: {
|
|
266
|
-
alias: '--display-name <displayName>',
|
|
267
|
-
description: 'The display name for the record',
|
|
268
|
-
},
|
|
269
|
-
names: {
|
|
270
|
-
alias: '--names <names...>',
|
|
271
|
-
description: 'The names to interact with',
|
|
272
|
-
type: 'array',
|
|
273
|
-
},
|
|
274
|
-
failedGateways: {
|
|
275
|
-
alias: '--failed-gateways <failedGateways...>',
|
|
276
|
-
description: 'Include failed gateways in the list',
|
|
277
|
-
type: 'array',
|
|
278
|
-
},
|
|
279
|
-
fundFrom: {
|
|
280
|
-
alias: '--fund-from <fundFrom>',
|
|
281
|
-
description: 'Where to fund the action from. e.g. "balance", "stakes", or "any',
|
|
282
|
-
},
|
|
283
|
-
revokable: {
|
|
284
|
-
alias: '--revokable',
|
|
285
|
-
description: 'Whether the vaulted transfer is revokable by the sender. Defaults to false',
|
|
286
|
-
type: 'boolean',
|
|
287
|
-
},
|
|
288
|
-
removeControllers: {
|
|
289
|
-
alias: '--remove-controllers',
|
|
290
|
-
description: 'Whether to remove controllers when transferring ANT ownership. Defaults to true',
|
|
291
|
-
type: 'boolean',
|
|
292
|
-
},
|
|
293
|
-
lockLengthMs: {
|
|
294
|
-
alias: '--lock-length-ms <lockLengthMs>',
|
|
295
|
-
description: 'The length of time in milliseconds to lock the vault for',
|
|
296
|
-
},
|
|
297
|
-
extendLengthMs: {
|
|
298
|
-
alias: '--extend-length-ms <extendLengthMs>',
|
|
299
|
-
description: 'The length of time in milliseconds to extend the vault for',
|
|
300
|
-
},
|
|
301
|
-
recipient: {
|
|
302
|
-
alias: '--recipient <recipient>',
|
|
303
|
-
description: 'The recipient to interact with',
|
|
304
|
-
},
|
|
305
|
-
logo: {
|
|
306
|
-
alias: '--logo <logo>',
|
|
307
|
-
description: 'The ANT logo',
|
|
308
|
-
},
|
|
309
|
-
module: {
|
|
310
|
-
alias: '--module <module>',
|
|
311
|
-
description: 'The module ID to use for spawning the ANT process',
|
|
312
|
-
},
|
|
313
|
-
token: {
|
|
314
|
-
alias: '-t, --token <type>',
|
|
315
|
-
description: 'Crypto token type for wallet or action',
|
|
316
|
-
default: 'arweave',
|
|
317
|
-
},
|
|
318
|
-
paidBy: {
|
|
319
|
-
alias: '--paid-by <paidBy...>',
|
|
320
|
-
description: 'Addresses to pay for the interaction',
|
|
321
|
-
type: 'array',
|
|
322
|
-
},
|
|
323
|
-
referrer: {
|
|
324
|
-
alias: '--referrer <referrer>',
|
|
325
|
-
description: 'The referrer for ArNS purchase tracking',
|
|
326
|
-
},
|
|
327
|
-
reassignAffiliatedNames: {
|
|
328
|
-
alias: '--reassign-affiliated-names',
|
|
329
|
-
description: 'Reassign all affiliated names to the new process',
|
|
330
|
-
type: 'boolean',
|
|
331
|
-
},
|
|
332
|
-
};
|
|
333
|
-
exports.walletOptions = [
|
|
334
|
-
exports.optionMap.walletFile,
|
|
335
|
-
exports.optionMap.token,
|
|
336
|
-
// optionMap.mnemonic,
|
|
337
|
-
exports.optionMap.privateKey,
|
|
338
|
-
];
|
|
339
|
-
exports.globalOptions = [
|
|
340
|
-
...exports.walletOptions,
|
|
341
|
-
exports.optionMap.devnet,
|
|
342
|
-
exports.optionMap.testnet,
|
|
343
|
-
exports.optionMap.mainnet,
|
|
344
|
-
exports.optionMap.debug,
|
|
345
|
-
exports.optionMap.arioProcessId,
|
|
346
|
-
exports.optionMap.cuUrl,
|
|
347
|
-
exports.optionMap.hyperbeamUrl,
|
|
348
|
-
];
|
|
349
|
-
exports.writeActionOptions = [exports.optionMap.skipConfirmation, exports.optionMap.tags];
|
|
350
|
-
exports.arnsPurchaseOptions = [
|
|
351
|
-
...exports.writeActionOptions,
|
|
352
|
-
exports.optionMap.name,
|
|
353
|
-
exports.optionMap.fundFrom,
|
|
354
|
-
exports.optionMap.paidBy,
|
|
355
|
-
exports.optionMap.paymentUrl,
|
|
356
|
-
exports.optionMap.referrer,
|
|
357
|
-
];
|
|
358
|
-
exports.epochOptions = [exports.optionMap.epochIndex, exports.optionMap.timestamp];
|
|
359
|
-
exports.addressAndVaultIdOptions = [exports.optionMap.address, exports.optionMap.vaultId];
|
|
360
|
-
exports.nameWriteOptions = [...exports.writeActionOptions, exports.optionMap.name];
|
|
361
|
-
exports.paginationOptions = [
|
|
362
|
-
exports.optionMap.cursor,
|
|
363
|
-
exports.optionMap.limit,
|
|
364
|
-
exports.optionMap.sortBy,
|
|
365
|
-
exports.optionMap.sortOrder,
|
|
366
|
-
exports.optionMap.filters,
|
|
367
|
-
];
|
|
368
|
-
exports.paginationAddressOptions = [
|
|
369
|
-
exports.optionMap.address,
|
|
370
|
-
...exports.paginationOptions,
|
|
371
|
-
];
|
|
372
|
-
exports.getVaultOptions = exports.addressAndVaultIdOptions;
|
|
373
|
-
exports.tokenCostOptions = [
|
|
374
|
-
exports.optionMap.name,
|
|
375
|
-
exports.optionMap.intent,
|
|
376
|
-
exports.optionMap.type,
|
|
377
|
-
exports.optionMap.years,
|
|
378
|
-
exports.optionMap.quantity,
|
|
379
|
-
exports.optionMap.address,
|
|
380
|
-
exports.optionMap.fundFrom,
|
|
381
|
-
exports.optionMap.paymentUrl,
|
|
382
|
-
];
|
|
383
|
-
exports.transferOptions = [
|
|
384
|
-
...exports.writeActionOptions,
|
|
385
|
-
exports.optionMap.quantity,
|
|
386
|
-
exports.optionMap.target,
|
|
387
|
-
];
|
|
388
|
-
exports.vaultedTransferOptions = [
|
|
389
|
-
...exports.writeActionOptions,
|
|
390
|
-
exports.optionMap.quantity,
|
|
391
|
-
exports.optionMap.recipient,
|
|
392
|
-
exports.optionMap.lockLengthMs,
|
|
393
|
-
exports.optionMap.revokable,
|
|
394
|
-
];
|
|
395
|
-
exports.operatorStakeOptions = [
|
|
396
|
-
...exports.writeActionOptions,
|
|
397
|
-
exports.optionMap.operatorStake,
|
|
398
|
-
];
|
|
399
|
-
exports.redelegateStakeOptions = [...exports.transferOptions, exports.optionMap.source];
|
|
400
|
-
exports.delegateStakeOptions = exports.transferOptions;
|
|
401
|
-
exports.decreaseDelegateStakeOptions = [
|
|
402
|
-
...exports.delegateStakeOptions,
|
|
403
|
-
exports.optionMap.instant,
|
|
404
|
-
];
|
|
405
|
-
exports.updateGatewaySettingsOptions = [
|
|
406
|
-
...exports.writeActionOptions,
|
|
407
|
-
exports.optionMap.autoStake,
|
|
408
|
-
exports.optionMap.allowDelegatedStaking,
|
|
409
|
-
exports.optionMap.allowedDelegates,
|
|
410
|
-
exports.optionMap.minDelegatedStake,
|
|
411
|
-
exports.optionMap.delegateRewardShareRatio,
|
|
412
|
-
exports.optionMap.label,
|
|
413
|
-
exports.optionMap.note,
|
|
414
|
-
exports.optionMap.properties,
|
|
415
|
-
exports.optionMap.observerAddress,
|
|
416
|
-
exports.optionMap.fqdn,
|
|
417
|
-
exports.optionMap.port,
|
|
418
|
-
exports.optionMap.protocol,
|
|
419
|
-
exports.optionMap.services,
|
|
420
|
-
];
|
|
421
|
-
exports.joinNetworkOptions = [
|
|
422
|
-
...exports.updateGatewaySettingsOptions,
|
|
423
|
-
exports.optionMap.operatorStake,
|
|
424
|
-
];
|
|
425
|
-
exports.buyRecordOptions = [
|
|
426
|
-
...exports.arnsPurchaseOptions,
|
|
427
|
-
exports.optionMap.quantity,
|
|
428
|
-
exports.optionMap.type,
|
|
429
|
-
exports.optionMap.years,
|
|
430
|
-
exports.optionMap.processId,
|
|
431
|
-
];
|
|
432
|
-
exports.antStateOptions = [
|
|
433
|
-
...exports.writeActionOptions,
|
|
434
|
-
exports.optionMap.target,
|
|
435
|
-
exports.optionMap.keywords,
|
|
436
|
-
exports.optionMap.ticker,
|
|
437
|
-
exports.optionMap.name,
|
|
438
|
-
exports.optionMap.description,
|
|
439
|
-
exports.optionMap.controllers,
|
|
440
|
-
exports.optionMap.ttlSeconds,
|
|
441
|
-
exports.optionMap.logo,
|
|
442
|
-
exports.optionMap.module,
|
|
443
|
-
];
|
|
444
|
-
exports.setAntBaseNameOptions = [
|
|
445
|
-
exports.optionMap.processId,
|
|
446
|
-
exports.optionMap.transactionId,
|
|
447
|
-
exports.optionMap.ttlSeconds,
|
|
448
|
-
exports.optionMap.owner,
|
|
449
|
-
exports.optionMap.displayName,
|
|
450
|
-
exports.optionMap.logo,
|
|
451
|
-
exports.optionMap.description,
|
|
452
|
-
exports.optionMap.keywords,
|
|
453
|
-
...exports.writeActionOptions,
|
|
454
|
-
];
|
|
455
|
-
exports.setAntUndernameOptions = [
|
|
456
|
-
...exports.setAntBaseNameOptions,
|
|
457
|
-
exports.optionMap.undername,
|
|
458
|
-
];
|
|
459
|
-
exports.upgradeAntOptions = [
|
|
460
|
-
exports.optionMap.processId,
|
|
461
|
-
exports.optionMap.names,
|
|
462
|
-
exports.optionMap.reassignAffiliatedNames,
|
|
463
|
-
...exports.writeActionOptions,
|
|
464
|
-
];
|
|
465
|
-
exports.transferRecordOwnershipOptions = [
|
|
466
|
-
exports.optionMap.processId,
|
|
467
|
-
exports.optionMap.undername,
|
|
468
|
-
exports.optionMap.recipient,
|
|
469
|
-
...exports.writeActionOptions,
|
|
470
|
-
];
|
package/lib/cjs/cli/types.js
DELETED