@ar.io/sdk 3.4.0-alpha.2 → 3.4.0-alpha.3
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/bundles/web.bundle.min.js +3 -3
- package/lib/cjs/cli/cli.js +16 -19
- package/lib/cjs/cli/commands/antCommands.js +48 -0
- package/lib/cjs/cli/options.js +11 -1
- package/lib/cjs/cli/utils.js +5 -2
- package/lib/cjs/common/ant.js +11 -17
- package/lib/cjs/version.js +1 -1
- package/lib/esm/cli/cli.js +17 -20
- package/lib/esm/cli/commands/antCommands.js +42 -0
- package/lib/esm/cli/options.js +10 -0
- package/lib/esm/cli/utils.js +4 -1
- package/lib/esm/common/ant.js +11 -17
- package/lib/esm/version.js +1 -1
- package/lib/types/cli/commands/antCommands.d.ts +21 -0
- package/lib/types/cli/options.d.ts +8 -0
- package/lib/types/cli/types.d.ts +3 -0
- package/lib/types/cli/utils.d.ts +1 -0
- package/lib/types/common/ant.d.ts +5 -19
- package/lib/types/types/ant.d.ts +44 -43
- package/lib/types/version.d.ts +1 -1
- package/package.json +1 -1
package/lib/types/types/ant.d.ts
CHANGED
|
@@ -161,6 +161,7 @@ export type AntReadOptions = {
|
|
|
161
161
|
strict?: boolean;
|
|
162
162
|
};
|
|
163
163
|
export interface AoANTRead {
|
|
164
|
+
processId: string;
|
|
164
165
|
getState(opts?: AntReadOptions): Promise<AoANTState>;
|
|
165
166
|
getInfo(opts?: AntReadOptions): Promise<AoANTInfo>;
|
|
166
167
|
getRecord({ undername }: {
|
|
@@ -179,67 +180,67 @@ export interface AoANTRead {
|
|
|
179
180
|
getHandlers(): Promise<AoANTHandler[]>;
|
|
180
181
|
}
|
|
181
182
|
export interface AoANTWrite extends AoANTRead {
|
|
182
|
-
transfer
|
|
183
|
+
transfer: WriteAction<{
|
|
183
184
|
target: WalletAddress;
|
|
184
|
-
}
|
|
185
|
-
addController
|
|
185
|
+
}>;
|
|
186
|
+
addController: WriteAction<{
|
|
186
187
|
controller: WalletAddress;
|
|
187
|
-
}
|
|
188
|
-
removeController
|
|
188
|
+
}>;
|
|
189
|
+
removeController: WriteAction<{
|
|
189
190
|
controller: WalletAddress;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
ttlSeconds: number;
|
|
195
|
-
}, options?: WriteOptions): Promise<AoMessageResult>;
|
|
196
|
-
removeRecord({ undername }: {
|
|
197
|
-
undername: string;
|
|
198
|
-
}, options?: WriteOptions): Promise<AoMessageResult>;
|
|
199
|
-
setBaseNameRecord({ transactionId, ttlSeconds, }: {
|
|
200
|
-
transactionId: string;
|
|
201
|
-
ttlSeconds: number;
|
|
202
|
-
}): Promise<AoMessageResult>;
|
|
203
|
-
setUndernameRecord({ undername, transactionId, ttlSeconds, }: {
|
|
191
|
+
}>;
|
|
192
|
+
/** @deprecated Use setUndernameRecord instead for undernames, and setBaseNameRecord instead for the top level name (e.g. "@") */
|
|
193
|
+
setRecord: WriteAction<AoANTSetUndernameRecordParams>;
|
|
194
|
+
removeRecord: WriteAction<{
|
|
204
195
|
undername: string;
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
removeUndernameRecord
|
|
196
|
+
}>;
|
|
197
|
+
setBaseNameRecord: WriteAction<AoANTSetBaseNameRecordParams>;
|
|
198
|
+
setUndernameRecord: WriteAction<AoANTSetUndernameRecordParams>;
|
|
199
|
+
removeUndernameRecord: WriteAction<{
|
|
209
200
|
undername: string;
|
|
210
|
-
}
|
|
211
|
-
setTicker
|
|
201
|
+
}>;
|
|
202
|
+
setTicker: WriteAction<{
|
|
212
203
|
ticker: string;
|
|
213
|
-
}
|
|
214
|
-
setDescription
|
|
204
|
+
}>;
|
|
205
|
+
setDescription: WriteAction<{
|
|
215
206
|
description: string;
|
|
216
|
-
}
|
|
217
|
-
setKeywords
|
|
207
|
+
}>;
|
|
208
|
+
setKeywords: WriteAction<{
|
|
218
209
|
keywords: string[];
|
|
219
|
-
}
|
|
220
|
-
setName
|
|
210
|
+
}>;
|
|
211
|
+
setName: WriteAction<{
|
|
221
212
|
name: string;
|
|
222
|
-
}
|
|
223
|
-
setLogo
|
|
213
|
+
}>;
|
|
214
|
+
setLogo: WriteAction<{
|
|
224
215
|
txId: string;
|
|
225
|
-
}
|
|
226
|
-
releaseName
|
|
216
|
+
}>;
|
|
217
|
+
releaseName: WriteAction<{
|
|
227
218
|
name: string;
|
|
228
219
|
arioProcessId: string;
|
|
229
|
-
}
|
|
230
|
-
reassignName
|
|
220
|
+
}>;
|
|
221
|
+
reassignName: WriteAction<{
|
|
231
222
|
name: string;
|
|
232
223
|
arioProcessId: string;
|
|
233
224
|
antProcessId: string;
|
|
234
|
-
}
|
|
235
|
-
approvePrimaryNameRequest
|
|
225
|
+
}>;
|
|
226
|
+
approvePrimaryNameRequest: WriteAction<{
|
|
236
227
|
name: string;
|
|
237
|
-
address:
|
|
228
|
+
address: string;
|
|
238
229
|
arioProcessId: string;
|
|
239
|
-
}
|
|
240
|
-
removePrimaryNames
|
|
230
|
+
}>;
|
|
231
|
+
removePrimaryNames: WriteAction<{
|
|
241
232
|
names: string[];
|
|
242
233
|
arioProcessId: string;
|
|
243
234
|
notifyOwners?: boolean;
|
|
244
|
-
}
|
|
235
|
+
}>;
|
|
245
236
|
}
|
|
237
|
+
/** utility type to ensure WriteOptions are appended to each parameter set */
|
|
238
|
+
type WriteAction<P, R = AoMessageResult> = (params: P, options?: WriteOptions) => Promise<R>;
|
|
239
|
+
export type AoANTSetBaseNameRecordParams = {
|
|
240
|
+
transactionId: string;
|
|
241
|
+
ttlSeconds: number;
|
|
242
|
+
};
|
|
243
|
+
export type AoANTSetUndernameRecordParams = AoANTSetBaseNameRecordParams & {
|
|
244
|
+
undername: string;
|
|
245
|
+
};
|
|
246
|
+
export {};
|
package/lib/types/version.d.ts
CHANGED