@agoric/portfolio-api 0.1.1-dev-3a9096a.0.3a9096a → 0.1.1-dev-fac5579.0.fac5579
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/package.json +4 -4
- package/src/evm-wallet/eip712-messages.d.ts +250 -269
- package/src/evm-wallet/eip712-messages.d.ts.map +1 -1
- package/src/evm-wallet/eip712-messages.js +89 -305
- package/src/evm-wallet/message-handler-helpers.d.ts +2236 -70
- package/src/evm-wallet/message-handler-helpers.d.ts.map +1 -1
- package/src/evm-wallet/message-handler-helpers.js +46 -483
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/portfolio-api",
|
|
3
|
-
"version": "0.1.1-dev-
|
|
3
|
+
"version": "0.1.1-dev-fac5579.0.fac5579",
|
|
4
4
|
"description": "API for Portfolio management",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"generate:ymax-machine": "npx tsx scripts/gen-ymax-machine.mts"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@agoric/internal": "0.3.3-dev-
|
|
50
|
-
"@agoric/orchestration": "0.1.1-dev-
|
|
49
|
+
"@agoric/internal": "0.3.3-dev-fac5579.0.fac5579",
|
|
50
|
+
"@agoric/orchestration": "0.1.1-dev-fac5579.0.fac5579",
|
|
51
51
|
"@endo/common": "^1.4.0",
|
|
52
52
|
"@endo/errors": "^1.3.1",
|
|
53
53
|
"@endo/patterns": "^1.9.1"
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"engines": {
|
|
74
74
|
"node": "^22.11 || ^24.14"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "fac5579a29a21343a945d8985a114fd595f41385"
|
|
77
77
|
}
|
|
@@ -6,48 +6,11 @@
|
|
|
6
6
|
* In the wrapped case, we don't want to repeat stuff from the permit envelope.
|
|
7
7
|
* {@link OperationTypes}
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* The generic machinery lives in `@agoric/orchestration`; this module defines
|
|
10
|
+
* the Ymax {@link YmaxPortfolioMessageSchema} and binds the helpers to it.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
13
|
-
import type
|
|
14
|
-
import type { TypedDataParameter, TypedDataToStructType } from '@agoric/orchestration/src/utils/abitype.js';
|
|
15
|
-
import { type Witness, type getPermitWitnessTransferFromData, type getPermitBatchWitnessTransferFromData } from '@agoric/orchestration/src/utils/permit2.js';
|
|
16
|
-
declare const YMAX_DOMAIN_NAME = "Ymax";
|
|
17
|
-
declare const YMAX_DOMAIN_VERSION = "1";
|
|
18
|
-
declare const StandaloneDomainTypeParams: [{
|
|
19
|
-
readonly name: "name";
|
|
20
|
-
readonly type: "string";
|
|
21
|
-
}, {
|
|
22
|
-
readonly name: "version";
|
|
23
|
-
readonly type: "string";
|
|
24
|
-
}, {
|
|
25
|
-
readonly name: "chainId";
|
|
26
|
-
readonly type: "uint256";
|
|
27
|
-
}, {
|
|
28
|
-
readonly name: "verifyingContract";
|
|
29
|
-
readonly type: "address";
|
|
30
|
-
}];
|
|
31
|
-
declare const YmaxStandaloneDomainBase: {
|
|
32
|
-
readonly name: "Ymax";
|
|
33
|
-
readonly version: "1";
|
|
34
|
-
};
|
|
35
|
-
export type YmaxFullDomain = typeof YmaxStandaloneDomainBase & {
|
|
36
|
-
chainId: bigint;
|
|
37
|
-
verifyingContract: Address;
|
|
38
|
-
};
|
|
39
|
-
declare const SharedPortfolioTypeParams: [];
|
|
40
|
-
/**
|
|
41
|
-
* Fields included in Permit data that we don't want duplicated in witness data,
|
|
42
|
-
* so only included in standalone typed data.
|
|
43
|
-
*/
|
|
44
|
-
declare const PortfolioStandaloneTypeParams: [{
|
|
45
|
-
readonly name: "nonce";
|
|
46
|
-
readonly type: "uint256";
|
|
47
|
-
}, {
|
|
48
|
-
readonly name: "deadline";
|
|
49
|
-
readonly type: "uint256";
|
|
50
|
-
}];
|
|
12
|
+
import type { TypedDataToStructType } from '@agoric/orchestration/src/utils/abitype.js';
|
|
13
|
+
import { type EIP712MessageKit, type FullDomain, type OperationType, type PermitBatchWitnessTransferFromOperationData, type PermitWitnessTransferFromOperationData, type StandaloneOperationData, type WitnessTypeParam } from '@agoric/orchestration/src/utils/eip712-messages.js';
|
|
51
14
|
/**
|
|
52
15
|
* The set of portfolio operations supported by EVM Wallets, and their associated params
|
|
53
16
|
*/
|
|
@@ -252,236 +215,254 @@ export type TargetAllocation = TypedDataToStructType<typeof OperationSubTypes, '
|
|
|
252
215
|
export type PortfolioPermissionsEIP712 = TypedDataToStructType<typeof OperationSubTypes, 'PortfolioPermissions'>;
|
|
253
216
|
export type PortfolioAutoFeaturesEIP712 = TypedDataToStructType<typeof OperationSubTypes, 'PortfolioAutoFeatures'>;
|
|
254
217
|
/**
|
|
255
|
-
*
|
|
256
|
-
* so we put the ymax-specifc domain name and version in the type name.
|
|
218
|
+
* The schema of Ymax portfolio operation messages.
|
|
257
219
|
*/
|
|
258
|
-
declare const
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
type
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
readonly
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
readonly
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
readonly
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
readonly
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
readonly
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
readonly
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
readonly type: "string";
|
|
448
|
-
}, {
|
|
449
|
-
readonly name: "permissions";
|
|
450
|
-
readonly type: "PortfolioPermissions";
|
|
451
|
-
}];
|
|
452
|
-
/**
|
|
453
|
-
* @see {@link PortfolioAutoFeatures}
|
|
454
|
-
*
|
|
455
|
-
* Both fields are `optional` so a `SetAutoFeatures` message can flip a
|
|
456
|
-
* single feature while leaving the other at its current on-chain value.
|
|
457
|
-
*/
|
|
458
|
-
readonly PortfolioAutoFeatures: readonly [{
|
|
459
|
-
readonly name: "rebalance";
|
|
460
|
-
readonly type: "bool";
|
|
461
|
-
readonly optional: true;
|
|
462
|
-
}, {
|
|
463
|
-
readonly name: "claimRewards";
|
|
464
|
-
readonly type: "bool";
|
|
465
|
-
readonly optional: true;
|
|
466
|
-
}];
|
|
467
|
-
};
|
|
468
|
-
export declare const getYmaxWitness: <T extends OperationTypeNames>(operation: T, data: NoInfer<YmaxWitnessData<T>>) => Witness<YmaxWitnessTypes<T>, YmaxWitnessTypeParam<T>>;
|
|
469
|
-
export declare const getYmaxStandaloneDomain: (chainId: bigint | number, verifyingContract: Address) => YmaxFullDomain;
|
|
470
|
-
export declare const getYmaxStandaloneOperationData: <T extends OperationTypeNames>(data: NoInfer<YmaxStandaloneData<T>>, operation: T, chainId: bigint | number, verifyingContract: Address) => TypedDataDefinition<YmaxStandaloneTypes<T>, T, T> & {
|
|
471
|
-
domain: YmaxFullDomain;
|
|
472
|
-
};
|
|
473
|
-
export type YmaxStandaloneOperationData<T extends OperationTypeNames = OperationTypeNames> = ReturnType<typeof getYmaxStandaloneOperationData<T>>;
|
|
474
|
-
export type YmaxPermitWitnessTransferFromData<T extends OperationTypeNames = OperationTypeNames> = ReturnType<typeof getPermitWitnessTransferFromData<YmaxWitnessTypes<T>, YmaxWitnessTypeParam<T>>>;
|
|
475
|
-
export type YmaxPermitBatchWitnessTransferFromData<T extends OperationTypeNames = OperationTypeNames> = ReturnType<typeof getPermitBatchWitnessTransferFromData<YmaxWitnessTypes<T>, YmaxWitnessTypeParam<T>>>;
|
|
476
|
-
export declare function validateYmaxDomainBase(domain: TypedDataDomain): asserts domain is typeof YmaxStandaloneDomainBase;
|
|
477
|
-
export declare function validateYmaxDomain(domain: TypedDataDomain, validContractAddresses?: Partial<Record<number | string, Address>> | undefined): asserts domain is YmaxFullDomain;
|
|
478
|
-
export declare function validateYmaxOperationTypeName<T extends OperationTypeNames>(typeName: string): asserts typeName is T;
|
|
479
|
-
export declare const splitWitnessFieldType: <T extends OperationTypeNames>(fieldName: `${typeof YMAX_DOMAIN_NAME}V${typeof YMAX_DOMAIN_VERSION}${T}`) => {
|
|
480
|
-
domain: {
|
|
481
|
-
readonly name: "Ymax";
|
|
482
|
-
readonly version: "1";
|
|
220
|
+
export declare const YmaxPortfolioMessageSchema: {
|
|
221
|
+
readonly domainName: "Ymax";
|
|
222
|
+
readonly domainVersion: "1";
|
|
223
|
+
readonly witnessFieldNamePrefix: "ymax";
|
|
224
|
+
readonly operationTypes: {
|
|
225
|
+
/**
|
|
226
|
+
* Open a portfolio, optionally in the same signed message enabling
|
|
227
|
+
* auto-features and/or granting portfolio permissions to an automation
|
|
228
|
+
* agent's Agoric address, now that `features`/`grantee` can be marked
|
|
229
|
+
* `optional` in the EIP-712 type definition. This is the preferred,
|
|
230
|
+
* general form of the former separate {@link OpenPortfolioWithAutoFeatures}
|
|
231
|
+
* / {@link OpenPortfolioWithGrant} operations, which remain supported as
|
|
232
|
+
* distinct operation types for backward compatibility with existing
|
|
233
|
+
* clients/messages, but should not be needed for new callers. Granting
|
|
234
|
+
* delivers the delegation to `grantee.address`, exactly as a standalone
|
|
235
|
+
* {@link Grant} would; enabling auto-features behaves exactly as a
|
|
236
|
+
* standalone {@link SetAutoFeatures} would.
|
|
237
|
+
*
|
|
238
|
+
* - allocations: initial target allocation across instruments
|
|
239
|
+
* - features: auto-features to enable on open, if any
|
|
240
|
+
* - grantee: delegation recipient and encoded portfolio permissions, if any
|
|
241
|
+
*/
|
|
242
|
+
readonly OpenPortfolio: readonly [{
|
|
243
|
+
readonly name: "allocations";
|
|
244
|
+
readonly type: "Allocation[]";
|
|
245
|
+
}, {
|
|
246
|
+
readonly name: "features";
|
|
247
|
+
readonly type: "PortfolioAutoFeatures";
|
|
248
|
+
readonly optional: true;
|
|
249
|
+
}, {
|
|
250
|
+
readonly name: "grantee";
|
|
251
|
+
readonly type: "DelegationGrantee";
|
|
252
|
+
readonly optional: true;
|
|
253
|
+
}];
|
|
254
|
+
/**
|
|
255
|
+
* @deprecated prefer {@link OpenPortfolio} with its optional `features`
|
|
256
|
+
* field. Kept as a distinct operation type for backward compatibility.
|
|
257
|
+
*/
|
|
258
|
+
readonly OpenPortfolioWithAutoFeatures: readonly [{
|
|
259
|
+
readonly name: "allocations";
|
|
260
|
+
readonly type: "Allocation[]";
|
|
261
|
+
}, {
|
|
262
|
+
readonly name: "features";
|
|
263
|
+
readonly type: "PortfolioAutoFeatures";
|
|
264
|
+
}];
|
|
265
|
+
/**
|
|
266
|
+
* @deprecated prefer {@link OpenPortfolio} with its optional `grantee`
|
|
267
|
+
* field. Kept as a distinct operation type for backward compatibility.
|
|
268
|
+
*/
|
|
269
|
+
readonly OpenPortfolioWithGrant: readonly [{
|
|
270
|
+
readonly name: "allocations";
|
|
271
|
+
readonly type: "Allocation[]";
|
|
272
|
+
}, {
|
|
273
|
+
readonly name: "grantee";
|
|
274
|
+
readonly type: "DelegationGrantee";
|
|
275
|
+
}];
|
|
276
|
+
readonly Rebalance: readonly [{
|
|
277
|
+
readonly name: "portfolio";
|
|
278
|
+
readonly type: "uint256";
|
|
279
|
+
}];
|
|
280
|
+
readonly SetTargetAllocation: readonly [{
|
|
281
|
+
readonly name: "allocations";
|
|
282
|
+
readonly type: "Allocation[]";
|
|
283
|
+
}, {
|
|
284
|
+
readonly name: "portfolio";
|
|
285
|
+
readonly type: "uint256";
|
|
286
|
+
}];
|
|
287
|
+
readonly Deposit: readonly [{
|
|
288
|
+
readonly name: "portfolio";
|
|
289
|
+
readonly type: "uint256";
|
|
290
|
+
}];
|
|
291
|
+
/**
|
|
292
|
+
* Withdraw funds from a portfolio to the source EVM account.
|
|
293
|
+
* The signer of the message must match the portfolio's source EVM account
|
|
294
|
+
* The destination chain is determined from the domain info (chainId).
|
|
295
|
+
* - token: ERC-20 token contract address (must be USDC contract on the destination chain)
|
|
296
|
+
*/
|
|
297
|
+
readonly Withdraw: readonly [{
|
|
298
|
+
readonly name: "withdraw";
|
|
299
|
+
readonly type: "Asset";
|
|
300
|
+
}, {
|
|
301
|
+
readonly name: "portfolio";
|
|
302
|
+
readonly type: "uint256";
|
|
303
|
+
}];
|
|
304
|
+
/**
|
|
305
|
+
* Grant portfolio permissions on a portfolio to another Agoric address
|
|
306
|
+
* (e.g. an automation agent). The contract delivers an invitation whose
|
|
307
|
+
* redeemed result can be saved in the grantee's wallet store and used via
|
|
308
|
+
* wallet invocation.
|
|
309
|
+
*
|
|
310
|
+
* - accountHolder: bech32 Agoric address that will receive the invitation
|
|
311
|
+
* - permissions: encoded portfolio permissions (see PortfolioPermissions)
|
|
312
|
+
*/
|
|
313
|
+
readonly Grant: readonly [{
|
|
314
|
+
readonly name: "accountHolder";
|
|
315
|
+
readonly type: "string";
|
|
316
|
+
}, {
|
|
317
|
+
readonly name: "permissions";
|
|
318
|
+
readonly type: "PortfolioPermissions";
|
|
319
|
+
}, {
|
|
320
|
+
readonly name: "portfolio";
|
|
321
|
+
readonly type: "uint256";
|
|
322
|
+
}];
|
|
323
|
+
/** Atomically replace an external delegation's complete permissions. */
|
|
324
|
+
readonly ChangePermissions: readonly [{
|
|
325
|
+
readonly name: "agentId";
|
|
326
|
+
readonly type: "uint256";
|
|
327
|
+
}, {
|
|
328
|
+
readonly name: "permissions";
|
|
329
|
+
readonly type: "PortfolioPermissions";
|
|
330
|
+
}, {
|
|
331
|
+
readonly name: "portfolio";
|
|
332
|
+
readonly type: "uint256";
|
|
333
|
+
}];
|
|
334
|
+
/** Irreversibly revoke an external delegation. */
|
|
335
|
+
readonly Revoke: readonly [{
|
|
336
|
+
readonly name: "agentId";
|
|
337
|
+
readonly type: "uint256";
|
|
338
|
+
}, {
|
|
339
|
+
readonly name: "portfolio";
|
|
340
|
+
readonly type: "uint256";
|
|
341
|
+
}];
|
|
342
|
+
/**
|
|
343
|
+
* Update which auto-features are enabled for a portfolio. The contract will
|
|
344
|
+
* generate a permissioned delegation as necessary and deliver it to the planner.
|
|
345
|
+
*/
|
|
346
|
+
readonly SetAutoFeatures: readonly [{
|
|
347
|
+
readonly name: "features";
|
|
348
|
+
readonly type: "PortfolioAutoFeatures";
|
|
349
|
+
}, {
|
|
350
|
+
readonly name: "portfolio";
|
|
351
|
+
readonly type: "uint256";
|
|
352
|
+
}];
|
|
353
|
+
};
|
|
354
|
+
readonly subTypes: {
|
|
355
|
+
readonly Allocation: readonly [{
|
|
356
|
+
readonly name: "instrument";
|
|
357
|
+
readonly type: "string";
|
|
358
|
+
}, {
|
|
359
|
+
readonly name: "portion";
|
|
360
|
+
readonly type: "uint256";
|
|
361
|
+
}];
|
|
362
|
+
readonly Asset: [{
|
|
363
|
+
readonly name: "token";
|
|
364
|
+
readonly type: "address";
|
|
365
|
+
}, {
|
|
366
|
+
readonly name: "amount";
|
|
367
|
+
readonly type: "uint256";
|
|
368
|
+
}];
|
|
369
|
+
/** @see {@link PortfolioPermissions} */
|
|
370
|
+
readonly PortfolioPermissions: readonly [{
|
|
371
|
+
readonly name: "allocation";
|
|
372
|
+
readonly type: "bool";
|
|
373
|
+
readonly optional: true;
|
|
374
|
+
}, {
|
|
375
|
+
readonly name: "maxWeightBps";
|
|
376
|
+
readonly type: "uint256";
|
|
377
|
+
readonly optional: true;
|
|
378
|
+
}, {
|
|
379
|
+
readonly name: "minVaultTvlUsd";
|
|
380
|
+
readonly type: "uint256";
|
|
381
|
+
readonly optional: true;
|
|
382
|
+
}, {
|
|
383
|
+
readonly name: "maxVaultShareBps";
|
|
384
|
+
readonly type: "uint256";
|
|
385
|
+
readonly optional: true;
|
|
386
|
+
}];
|
|
387
|
+
readonly DelegationGrantee: readonly [{
|
|
388
|
+
readonly name: "address";
|
|
389
|
+
readonly type: "string";
|
|
390
|
+
}, {
|
|
391
|
+
readonly name: "permissions";
|
|
392
|
+
readonly type: "PortfolioPermissions";
|
|
393
|
+
}];
|
|
394
|
+
/**
|
|
395
|
+
* @see {@link PortfolioAutoFeatures}
|
|
396
|
+
*
|
|
397
|
+
* Both fields are `optional` so a `SetAutoFeatures` message can flip a
|
|
398
|
+
* single feature while leaving the other at its current on-chain value.
|
|
399
|
+
*/
|
|
400
|
+
readonly PortfolioAutoFeatures: readonly [{
|
|
401
|
+
readonly name: "rebalance";
|
|
402
|
+
readonly type: "bool";
|
|
403
|
+
readonly optional: true;
|
|
404
|
+
}, {
|
|
405
|
+
readonly name: "claimRewards";
|
|
406
|
+
readonly type: "bool";
|
|
407
|
+
readonly optional: true;
|
|
408
|
+
}];
|
|
483
409
|
};
|
|
484
|
-
primaryType: T;
|
|
485
410
|
};
|
|
411
|
+
export type YmaxPortfolioMessageSchema = typeof YmaxPortfolioMessageSchema;
|
|
412
|
+
type YmaxPortfolioMessageKit = EIP712MessageKit<YmaxPortfolioMessageSchema>;
|
|
413
|
+
export type YmaxFullDomain = FullDomain<YmaxPortfolioMessageSchema>;
|
|
414
|
+
export type YmaxWitnessTypeParam<T extends OperationTypeNames = OperationTypeNames> = WitnessTypeParam<YmaxPortfolioMessageSchema, T>;
|
|
415
|
+
export type YmaxOperationType<T extends OperationTypeNames> = OperationType<YmaxPortfolioMessageSchema, T>;
|
|
416
|
+
/**
|
|
417
|
+
* @deprecated Use `getOperationTypes` of
|
|
418
|
+
* `makeEIP712MessageKit(YmaxPortfolioMessageSchema)` from
|
|
419
|
+
* `@agoric/orchestration/src/utils/eip712-messages.js` instead.
|
|
420
|
+
*/
|
|
421
|
+
export declare const getYmaxOperationTypes: YmaxPortfolioMessageKit['getOperationTypes'];
|
|
422
|
+
/**
|
|
423
|
+
* @deprecated Use `getWitness` of
|
|
424
|
+
* `makeEIP712MessageKit(YmaxPortfolioMessageSchema)` from
|
|
425
|
+
* `@agoric/orchestration/src/utils/eip712-messages.js` instead.
|
|
426
|
+
*/
|
|
427
|
+
export declare const getYmaxWitness: YmaxPortfolioMessageKit['getWitness'];
|
|
428
|
+
/**
|
|
429
|
+
* @deprecated Use `getStandaloneDomain` of
|
|
430
|
+
* `makeEIP712MessageKit(YmaxPortfolioMessageSchema)` from
|
|
431
|
+
* `@agoric/orchestration/src/utils/eip712-messages.js` instead.
|
|
432
|
+
*/
|
|
433
|
+
export declare const getYmaxStandaloneDomain: YmaxPortfolioMessageKit['getStandaloneDomain'];
|
|
434
|
+
/**
|
|
435
|
+
* @deprecated Use `getStandaloneOperationData` of
|
|
436
|
+
* `makeEIP712MessageKit(YmaxPortfolioMessageSchema)` from
|
|
437
|
+
* `@agoric/orchestration/src/utils/eip712-messages.js` instead.
|
|
438
|
+
*/
|
|
439
|
+
export declare const getYmaxStandaloneOperationData: YmaxPortfolioMessageKit['getStandaloneOperationData'];
|
|
440
|
+
export type YmaxStandaloneOperationData<T extends OperationTypeNames = OperationTypeNames> = StandaloneOperationData<YmaxPortfolioMessageSchema, T>;
|
|
441
|
+
export type YmaxPermitWitnessTransferFromData<T extends OperationTypeNames = OperationTypeNames> = PermitWitnessTransferFromOperationData<YmaxPortfolioMessageSchema, T>;
|
|
442
|
+
export type YmaxPermitBatchWitnessTransferFromData<T extends OperationTypeNames = OperationTypeNames> = PermitBatchWitnessTransferFromOperationData<YmaxPortfolioMessageSchema, T>;
|
|
443
|
+
/**
|
|
444
|
+
* @deprecated Use `validateDomainBase` of
|
|
445
|
+
* `makeEIP712MessageKit(YmaxPortfolioMessageSchema)` from
|
|
446
|
+
* `@agoric/orchestration/src/utils/eip712-messages.js` instead.
|
|
447
|
+
*/
|
|
448
|
+
export declare const validateYmaxDomainBase: YmaxPortfolioMessageKit['validateDomainBase'];
|
|
449
|
+
/**
|
|
450
|
+
* @deprecated Use `validateDomain` of
|
|
451
|
+
* `makeEIP712MessageKit(YmaxPortfolioMessageSchema)` from
|
|
452
|
+
* `@agoric/orchestration/src/utils/eip712-messages.js` instead.
|
|
453
|
+
*/
|
|
454
|
+
export declare const validateYmaxDomain: YmaxPortfolioMessageKit['validateDomain'];
|
|
455
|
+
/**
|
|
456
|
+
* @deprecated Use `validateOperationTypeName` of
|
|
457
|
+
* `makeEIP712MessageKit(YmaxPortfolioMessageSchema)` from
|
|
458
|
+
* `@agoric/orchestration/src/utils/eip712-messages.js` instead.
|
|
459
|
+
*/
|
|
460
|
+
export declare const validateYmaxOperationTypeName: YmaxPortfolioMessageKit['validateOperationTypeName'];
|
|
461
|
+
/**
|
|
462
|
+
* @deprecated Use `splitWitnessFieldType` of
|
|
463
|
+
* `makeEIP712MessageKit(YmaxPortfolioMessageSchema)` from
|
|
464
|
+
* `@agoric/orchestration/src/utils/eip712-messages.js` instead.
|
|
465
|
+
*/
|
|
466
|
+
export declare const splitWitnessFieldType: YmaxPortfolioMessageKit['splitWitnessFieldType'];
|
|
486
467
|
export {};
|
|
487
468
|
//# sourceMappingURL=eip712-messages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eip712-messages.d.ts","sourceRoot":"","sources":["eip712-messages.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"eip712-messages.d.ts","sourceRoot":"","sources":["eip712-messages.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAEV,qBAAqB,EACtB,MAAM,4CAA4C,CAAC;AAEpD,OAAO,EAEL,KAAK,gBAAgB,EAErB,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,2CAA2C,EAChD,KAAK,sCAAsC,EAC3C,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACtB,MAAM,oDAAoD,CAAC;AAQ5D;;GAEG;AACH,QAAA,MAAM,cAAc;IAClB;;;;;;;;;;;;;;;;OAgBG;;;;;;;;;;;;;IAMH;;;OAGG;;;;;;;;IAKH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;IAWH;;;;;OAKG;;;;;;;;IAEH;;;;;;;;OAQG;;;;;;;;;;;IAMH,wEAAwE;;;;;;;;;;;IAMxE,kDAAkD;;;;;;;;IAElD;;;OAGG;;;;;;;;CAa6D,CAAC;AACnE,KAAK,cAAc,GAAG,OAAO,cAAc,CAAC;AAC5C,MAAM,MAAM,kBAAkB,GAAG,MAAM,cAAc,CAAC;AAEtD,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;IAMrB,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;IAWxC;;;;;OAKG;;;;;;;;;;CAK6D,CAAC;AAEnE;;;;;;;;GAQG;AACH,MAAM,MAAM,gBAAgB,GAAG,qBAAqB,CAClD,OAAO,iBAAiB,EACxB,YAAY,CACb,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,qBAAqB,CAC5D,OAAO,iBAAiB,EACxB,sBAAsB,CACvB,CAAC;A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