@esseyonsui/sui-sdk-v3 0.3.2 → 0.4.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/dist/config.d.ts +3 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +1 -0
- package/dist/errors.d.ts +3 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +5 -0
- package/dist/essey.d.ts +157 -131
- package/dist/essey.d.ts.map +1 -1
- package/dist/essey.js +641 -823
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/network.d.ts +2 -0
- package/dist/network.d.ts.map +1 -1
- package/dist/network.js +17 -3
- package/dist/v3/collateral/bodies.d.ts +23 -14
- package/dist/v3/collateral/bodies.d.ts.map +1 -1
- package/dist/v3/collateral/bodies.js +42 -35
- package/dist/v3/collateral/ext.d.ts +18 -13
- package/dist/v3/collateral/ext.d.ts.map +1 -1
- package/dist/v3/collateral/ext.js +5 -6
- package/dist/v3/collateral/health.d.ts +16 -10
- package/dist/v3/collateral/health.d.ts.map +1 -1
- package/dist/v3/collateral/health.js +55 -30
- package/dist/v3/collateral/math.d.ts +0 -2
- package/dist/v3/collateral/math.d.ts.map +1 -1
- package/dist/v3/collateral/math.js +0 -5
- package/dist/v3/collateral/openings.d.ts +5 -1
- package/dist/v3/collateral/openings.d.ts.map +1 -1
- package/dist/v3/collateral/openings.js +7 -12
- package/dist/v3/credential/membership.d.ts +16 -2
- package/dist/v3/credential/membership.d.ts.map +1 -1
- package/dist/v3/credential/membership.js +36 -3
- package/dist/v3/domains.d.ts +9 -0
- package/dist/v3/domains.d.ts.map +1 -1
- package/dist/v3/domains.js +5 -0
- package/dist/v3/fees.d.ts +13 -1
- package/dist/v3/fees.d.ts.map +1 -1
- package/dist/v3/fees.js +32 -2
- package/dist/v3/funds.d.ts +34 -0
- package/dist/v3/funds.d.ts.map +1 -0
- package/dist/v3/funds.js +60 -0
- package/dist/v3/keeper-payload.d.ts +29 -7
- package/dist/v3/keeper-payload.d.ts.map +1 -1
- package/dist/v3/keeper-payload.js +33 -22
- package/dist/v3/kinds.d.ts +6 -6
- package/dist/v3/kinds.d.ts.map +1 -1
- package/dist/v3/kinds.js +5 -13
- package/dist/v3/loans/bodies.d.ts +40 -68
- package/dist/v3/loans/bodies.d.ts.map +1 -1
- package/dist/v3/loans/bodies.js +50 -73
- package/dist/v3/loans/offer-payload.d.ts +109 -0
- package/dist/v3/loans/offer-payload.d.ts.map +1 -0
- package/dist/v3/loans/offer-payload.js +207 -0
- package/dist/v3/loans/offer-plan.d.ts +8 -60
- package/dist/v3/loans/offer-plan.d.ts.map +1 -1
- package/dist/v3/loans/offer-plan.js +19 -95
- package/dist/v3/loans/open-plan.d.ts +15 -5
- package/dist/v3/loans/open-plan.d.ts.map +1 -1
- package/dist/v3/loans/open-plan.js +18 -7
- package/dist/v3/loans/reclaim-plan.d.ts +31 -15
- package/dist/v3/loans/reclaim-plan.d.ts.map +1 -1
- package/dist/v3/loans/reclaim-plan.js +63 -32
- package/dist/v3/loans/refi-plan.d.ts +8 -34
- package/dist/v3/loans/refi-plan.d.ts.map +1 -1
- package/dist/v3/loans/refi-plan.js +30 -111
- package/dist/v3/loans/repay-plan.d.ts.map +1 -1
- package/dist/v3/loans/repay-plan.js +2 -2
- package/dist/v3/loans/settle-plan.d.ts +88 -53
- package/dist/v3/loans/settle-plan.d.ts.map +1 -1
- package/dist/v3/loans/settle-plan.js +141 -150
- package/dist/v3/locks.d.ts +21 -0
- package/dist/v3/locks.d.ts.map +1 -0
- package/dist/v3/locks.js +15 -0
- package/dist/v3/memo.d.ts +14 -4
- package/dist/v3/memo.d.ts.map +1 -1
- package/dist/v3/memo.js +14 -7
- package/dist/v3/notes/derive.d.ts +5 -0
- package/dist/v3/notes/derive.d.ts.map +1 -1
- package/dist/v3/notes/derive.js +5 -0
- package/dist/v3/pace.d.ts +0 -1
- package/dist/v3/pace.d.ts.map +1 -1
- package/dist/v3/pace.js +0 -1
- package/dist/v3/pads.d.ts +15 -0
- package/dist/v3/pads.d.ts.map +1 -0
- package/dist/v3/pads.js +25 -0
- package/dist/v3/prover.d.ts +1 -1
- package/dist/v3/prover.d.ts.map +1 -1
- package/dist/v3/prover.js +1 -0
- package/dist/v3/relay/client.d.ts.map +1 -1
- package/dist/v3/relay/client.js +2 -2
- package/dist/v3/sales/auctioneer.d.ts +32 -27
- package/dist/v3/sales/auctioneer.d.ts.map +1 -1
- package/dist/v3/sales/auctioneer.js +67 -108
- package/dist/v3/sales/bid.d.ts +20 -49
- package/dist/v3/sales/bid.d.ts.map +1 -1
- package/dist/v3/sales/bid.js +28 -83
- package/dist/v3/sales/bodies.d.ts +4 -54
- package/dist/v3/sales/bodies.d.ts.map +1 -1
- package/dist/v3/sales/bodies.js +10 -52
- package/dist/v3/sales/claim.d.ts +0 -2
- package/dist/v3/sales/claim.d.ts.map +1 -1
- package/dist/v3/sales/claim.js +6 -8
- package/dist/v3/sales/index.d.ts +0 -1
- package/dist/v3/sales/index.d.ts.map +1 -1
- package/dist/v3/sales/index.js +0 -1
- package/dist/v3/sales/listing.d.ts +8 -6
- package/dist/v3/sales/listing.d.ts.map +1 -1
- package/dist/v3/sales/listing.js +27 -9
- package/dist/v3/sales/open-kind.d.ts +1 -3
- package/dist/v3/sales/open-kind.d.ts.map +1 -1
- package/dist/v3/sales/open-kind.js +2 -3
- package/dist/v3/sales/outcome.d.ts +5 -8
- package/dist/v3/sales/outcome.d.ts.map +1 -1
- package/dist/v3/sales/outcome.js +5 -9
- package/dist/v3/sales/package-gate.d.ts +3 -4
- package/dist/v3/sales/package-gate.d.ts.map +1 -1
- package/dist/v3/sales/package-gate.js +9 -7
- package/dist/v3/sales/rows.d.ts +9 -49
- package/dist/v3/sales/rows.d.ts.map +1 -1
- package/dist/v3/sales/rows.js +17 -91
- package/dist/v3/sales/seller.d.ts +2 -6
- package/dist/v3/sales/seller.d.ts.map +1 -1
- package/dist/v3/sales/seller.js +4 -11
- package/dist/v3/stage1.d.ts +8 -21
- package/dist/v3/stage1.d.ts.map +1 -1
- package/dist/v3/stage1.js +8 -76
- package/package.json +1 -1
- package/dist/v3/loans/lock-round.d.ts +0 -22
- package/dist/v3/loans/lock-round.d.ts.map +0 -1
- package/dist/v3/loans/lock-round.js +0 -20
- package/dist/v3/sales/reclaim.d.ts +0 -46
- package/dist/v3/sales/reclaim.d.ts.map +0 -1
- package/dist/v3/sales/reclaim.js +0 -57
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export declare const KEEPER_FIELDS_LEN =
|
|
1
|
+
export declare const KEEPER_FIELDS_LEN = 194;
|
|
2
2
|
export declare const KEEPER_PLAIN_LEN = 288;
|
|
3
3
|
export declare const FLAG_TERMS = 1;
|
|
4
|
+
/** The whole terms: what the borrower and the lender hold, never a keeper. */
|
|
4
5
|
export type KeeperTerms = {
|
|
5
6
|
principal: bigint;
|
|
6
7
|
rateBps: bigint;
|
|
@@ -11,9 +12,26 @@ export type KeeperTerms = {
|
|
|
11
12
|
lenderEncY: bigint;
|
|
12
13
|
salt: bigint;
|
|
13
14
|
};
|
|
14
|
-
/**
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
/**
|
|
16
|
+
* PRV-25 (c), Z1 D18: what a seizure folds of the terms. `hRest` stands for the principal, the rate, the lender's
|
|
17
|
+
* enc point and the salt (`circuits/v3/lib/terms2.circom` TermsRest), so a keeper never learns them.
|
|
18
|
+
*/
|
|
19
|
+
export type KeeperView = {
|
|
20
|
+
owed: bigint;
|
|
21
|
+
maturityS: bigint;
|
|
22
|
+
lenderPk: bigint;
|
|
23
|
+
hRest: bigint;
|
|
24
|
+
};
|
|
25
|
+
/** A clear terms flag: `keeper.move` opens rebuilds the commit from the zero block, hRest 0 included. */
|
|
26
|
+
export declare const NO_VIEW: KeeperView;
|
|
27
|
+
export declare const keeperView: (t: KeeperTerms) => KeeperView;
|
|
28
|
+
/** The terms commit a keeper rebuilds from its view alone, as `keeper.move` opens does. */
|
|
29
|
+
export declare const viewCommit: (v: KeeperView, borrowerPk: bigint) => bigint;
|
|
30
|
+
/** What a seizure's witness takes as terms: the view's fields, and 0 for every field `hRest` stands for. */
|
|
31
|
+
export declare const viewTerms: (v: KeeperView) => KeeperTerms;
|
|
32
|
+
/** The plaintext layout version (B §7.3), `keeper.move` LAYOUT. It is not the on-chain `keeper_ct_version`, which counts rewrites. */
|
|
33
|
+
export declare const KEEPER_LAYOUT_VERSION = 2;
|
|
34
|
+
/** `terms` absent means the flag is clear and the 80-byte terms block is zero. */
|
|
17
35
|
export type KeeperPayload = {
|
|
18
36
|
version: number;
|
|
19
37
|
loanKey: bigint;
|
|
@@ -21,7 +39,11 @@ export type KeeperPayload = {
|
|
|
21
39
|
collAmt: bigint;
|
|
22
40
|
collBlind: bigint;
|
|
23
41
|
nonceAtCt: bigint;
|
|
24
|
-
terms?:
|
|
42
|
+
terms?: KeeperView;
|
|
43
|
+
};
|
|
44
|
+
/** A writer holds the whole terms; only their keeper view is written. */
|
|
45
|
+
export type KeeperPayloadInput = Omit<KeeperPayload, "terms"> & {
|
|
46
|
+
terms?: KeeperTerms | KeeperView;
|
|
25
47
|
};
|
|
26
48
|
export type DecodedKeeperPayload = {
|
|
27
49
|
ok: true;
|
|
@@ -30,7 +52,7 @@ export type DecodedKeeperPayload = {
|
|
|
30
52
|
ok: false;
|
|
31
53
|
error: string;
|
|
32
54
|
};
|
|
33
|
-
/** Field elements and u64 are big-endian. Always 288 bytes:
|
|
34
|
-
export declare function encodeKeeperPayload(p:
|
|
55
|
+
/** Field elements and u64 are big-endian. Always 288 bytes: 194 of fields, 94 of zero pad (`keeper.move` opens). */
|
|
56
|
+
export declare function encodeKeeperPayload(p: KeeperPayloadInput): Uint8Array;
|
|
35
57
|
export declare function decodeKeeperPayload(bytes: Uint8Array): DecodedKeeperPayload;
|
|
36
58
|
//# sourceMappingURL=keeper-payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keeper-payload.d.ts","sourceRoot":"","sources":["../../src/v3/keeper-payload.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"keeper-payload.d.ts","sourceRoot":"","sources":["../../src/v3/keeper-payload.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB,MAAM,CAAC;AACrC,eAAO,MAAM,gBAAgB,MAAM,CAAC;AACpC,eAAO,MAAM,UAAU,IAAI,CAAC;AAK5B,8EAA8E;AAC9E,MAAM,MAAM,WAAW,GAAG;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9F,yGAAyG;AACzG,eAAO,MAAM,OAAO,EAAE,UAAiE,CAAC;AAExF,eAAO,MAAM,UAAU,GAAI,GAAG,WAAW,KAAG,UAK1C,CAAC;AAEH,2FAA2F;AAC3F,eAAO,MAAM,UAAU,GAAI,GAAG,UAAU,EAAE,YAAY,MAAM,WAAuC,CAAC;AAEpG,4GAA4G;AAC5G,eAAO,MAAM,SAAS,GAAI,GAAG,UAAU,KAAG,WASxC,CAAC;AAEH,sIAAsI;AACtI,eAAO,MAAM,qBAAqB,IAAI,CAAC;AAEvC,kFAAkF;AAClF,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,UAAU,CAAC;CACpB,CAAC;AAEF,yEAAyE;AACzE,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC,GAAG;IAAE,KAAK,CAAC,EAAE,WAAW,GAAG,UAAU,CAAA;CAAE,CAAC;AAErG,MAAM,MAAM,oBAAoB,GAAG;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,OAAO,EAAE,aAAa,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAgDvG,oHAAoH;AACpH,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,kBAAkB,GAAG,UAAU,CAgBrE;AAQD,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,UAAU,GAAG,oBAAoB,CAyB3E"}
|
|
@@ -1,11 +1,33 @@
|
|
|
1
|
+
import { termsOuter, termsRest } from "./collateral/openings.js";
|
|
1
2
|
import { R } from "./domains.js";
|
|
2
|
-
export const KEEPER_FIELDS_LEN =
|
|
3
|
+
export const KEEPER_FIELDS_LEN = 194;
|
|
3
4
|
export const KEEPER_PLAIN_LEN = 288;
|
|
4
5
|
export const FLAG_TERMS = 1;
|
|
5
6
|
const TERMS_AT = 114;
|
|
6
7
|
const U64_MAX = (1n << 64n) - 1n;
|
|
7
|
-
/**
|
|
8
|
-
export const
|
|
8
|
+
/** A clear terms flag: `keeper.move` opens rebuilds the commit from the zero block, hRest 0 included. */
|
|
9
|
+
export const NO_VIEW = { owed: 0n, maturityS: 0n, lenderPk: 0n, hRest: 0n };
|
|
10
|
+
export const keeperView = (t) => ({
|
|
11
|
+
owed: t.owed,
|
|
12
|
+
maturityS: t.maturityS,
|
|
13
|
+
lenderPk: t.lenderPk,
|
|
14
|
+
hRest: termsRest(t),
|
|
15
|
+
});
|
|
16
|
+
/** The terms commit a keeper rebuilds from its view alone, as `keeper.move` opens does. */
|
|
17
|
+
export const viewCommit = (v, borrowerPk) => termsOuter(v, borrowerPk, v.hRest);
|
|
18
|
+
/** What a seizure's witness takes as terms: the view's fields, and 0 for every field `hRest` stands for. */
|
|
19
|
+
export const viewTerms = (v) => ({
|
|
20
|
+
principal: 0n,
|
|
21
|
+
rateBps: 0n,
|
|
22
|
+
owed: v.owed,
|
|
23
|
+
maturityS: v.maturityS,
|
|
24
|
+
lenderPk: v.lenderPk,
|
|
25
|
+
lenderEncX: 0n,
|
|
26
|
+
lenderEncY: 0n,
|
|
27
|
+
salt: 0n,
|
|
28
|
+
});
|
|
29
|
+
/** The plaintext layout version (B §7.3), `keeper.move` LAYOUT. It is not the on-chain `keeper_ct_version`, which counts rewrites. */
|
|
30
|
+
export const KEEPER_LAYOUT_VERSION = 2;
|
|
9
31
|
class Writer {
|
|
10
32
|
out = new Uint8Array(KEEPER_PLAIN_LEN);
|
|
11
33
|
at = 0;
|
|
@@ -50,7 +72,8 @@ class Reader {
|
|
|
50
72
|
return value;
|
|
51
73
|
}
|
|
52
74
|
}
|
|
53
|
-
|
|
75
|
+
const viewOf = (t) => ("hRest" in t ? t : keeperView(t));
|
|
76
|
+
/** Field elements and u64 are big-endian. Always 288 bytes: 194 of fields, 94 of zero pad (`keeper.move` opens). */
|
|
54
77
|
export function encodeKeeperPayload(p) {
|
|
55
78
|
const w = new Writer();
|
|
56
79
|
w.u8(p.version, "version");
|
|
@@ -62,27 +85,15 @@ export function encodeKeeperPayload(p) {
|
|
|
62
85
|
w.u64(p.nonceAtCt, "nonceAtCt");
|
|
63
86
|
if (!p.terms)
|
|
64
87
|
return w.out;
|
|
65
|
-
|
|
66
|
-
w.u64(
|
|
67
|
-
w.u64(
|
|
68
|
-
w.
|
|
69
|
-
w.field(
|
|
70
|
-
w.field(p.terms.lenderEncX, "lenderEncX");
|
|
71
|
-
w.field(p.terms.lenderEncY, "lenderEncY");
|
|
72
|
-
w.field(p.terms.salt, "salt");
|
|
88
|
+
const t = viewOf(p.terms);
|
|
89
|
+
w.u64(t.owed, "owed");
|
|
90
|
+
w.u64(t.maturityS, "maturityS");
|
|
91
|
+
w.field(t.lenderPk, "lenderPk");
|
|
92
|
+
w.field(t.hRest, "hRest");
|
|
73
93
|
return w.out;
|
|
74
94
|
}
|
|
75
95
|
function readTerms(r) {
|
|
76
|
-
return {
|
|
77
|
-
principal: r.u64(),
|
|
78
|
-
rateBps: r.u64(),
|
|
79
|
-
owed: r.u64(),
|
|
80
|
-
maturityS: r.u64(),
|
|
81
|
-
lenderPk: r.field("lenderPk"),
|
|
82
|
-
lenderEncX: r.field("lenderEncX"),
|
|
83
|
-
lenderEncY: r.field("lenderEncY"),
|
|
84
|
-
salt: r.field("salt"),
|
|
85
|
-
};
|
|
96
|
+
return { owed: r.u64(), maturityS: r.u64(), lenderPk: r.field("lenderPk"), hRest: r.field("hRest") };
|
|
86
97
|
}
|
|
87
98
|
const allZero = (bytes) => bytes.every((byte) => byte === 0);
|
|
88
99
|
export function decodeKeeperPayload(bytes) {
|
package/dist/v3/kinds.d.ts
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
/** Verifier kind ids, the global namespace of master §2.3. */
|
|
1
|
+
/** Verifier kind ids, the global namespace of master §2.3. Z1 retired 1 (lock_bid) and 12 (loan_offer). */
|
|
2
2
|
export declare const VK: {
|
|
3
|
-
readonly lockBid: 1;
|
|
4
3
|
readonly saleSettle: 2;
|
|
5
4
|
readonly reclaim: 3;
|
|
6
5
|
readonly itemClaim: 4;
|
|
7
6
|
readonly js4: 10;
|
|
8
7
|
readonly deposit: 11;
|
|
9
|
-
readonly loanOffer: 12;
|
|
10
8
|
readonly loanSettle: 13;
|
|
11
9
|
readonly loanRepay: 14;
|
|
12
10
|
readonly loanRefi: 15;
|
|
@@ -14,12 +12,14 @@ export declare const VK: {
|
|
|
14
12
|
readonly reclaimColl: 17;
|
|
15
13
|
readonly health: 20;
|
|
16
14
|
readonly membership: 30;
|
|
15
|
+
readonly fundsRead: 31;
|
|
17
16
|
};
|
|
18
17
|
/**
|
|
19
|
-
* The relayed kinds of master §2.6
|
|
20
|
-
*
|
|
18
|
+
* The relayed kinds of master §2.6 that target the current packages; the relayer's `_previous` twins drain the
|
|
19
|
+
* R1 packages and are not built here. Deposit and sale open are sponsored edges, not relay kinds. Z1: an offer or a
|
|
20
|
+
* bid is a `transfer`, and `loan_reclaim` is the one reclaim for both.
|
|
21
21
|
*/
|
|
22
|
-
export declare const RELAY_KINDS: readonly ["transfer", "withdraw", "loan_open", "
|
|
22
|
+
export declare const RELAY_KINDS: readonly ["transfer", "withdraw", "loan_open", "loan_settle", "loan_repay", "loan_reclaim", "loan_reclaim_coll", "loan_cancel", "loan_cancel_refi", "loan_refinance", "loan_settle_refi", "loan_ct_fault", "loan_heartbeat", "loan_topup", "loan_topup_borrower", "loan_liquidate", "loan_claim_default", "loan_release", "loan_fault_liquidate", "sale_finish", "sale_expire", "sale_claim_item", "sale_cancel"];
|
|
23
23
|
export type RelayKind = (typeof RELAY_KINDS)[number];
|
|
24
24
|
/** E-27: every note ciphertext is exactly 128 bytes. */
|
|
25
25
|
export declare const ENC_BYTES = 128;
|
package/dist/v3/kinds.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kinds.d.ts","sourceRoot":"","sources":["../../src/v3/kinds.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"kinds.d.ts","sourceRoot":"","sources":["../../src/v3/kinds.ts"],"names":[],"mappings":"AAAA,2GAA2G;AAC3G,eAAO,MAAM,EAAE;;;;;;;;;;;;;;CAcL,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,WAAW,mZAwBd,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAErD,wDAAwD;AACxD,eAAO,MAAM,SAAS,MAAM,CAAC"}
|
package/dist/v3/kinds.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
/** Verifier kind ids, the global namespace of master §2.3. */
|
|
1
|
+
/** Verifier kind ids, the global namespace of master §2.3. Z1 retired 1 (lock_bid) and 12 (loan_offer). */
|
|
2
2
|
export const VK = {
|
|
3
|
-
lockBid: 1,
|
|
4
3
|
saleSettle: 2,
|
|
5
4
|
reclaim: 3,
|
|
6
5
|
itemClaim: 4,
|
|
7
6
|
js4: 10,
|
|
8
7
|
deposit: 11,
|
|
9
|
-
loanOffer: 12,
|
|
10
8
|
loanSettle: 13,
|
|
11
9
|
loanRepay: 14,
|
|
12
10
|
loanRefi: 15,
|
|
@@ -14,41 +12,35 @@ export const VK = {
|
|
|
14
12
|
reclaimColl: 17,
|
|
15
13
|
health: 20,
|
|
16
14
|
membership: 30,
|
|
15
|
+
fundsRead: 31,
|
|
17
16
|
};
|
|
18
17
|
/**
|
|
19
|
-
* The relayed kinds of master §2.6
|
|
20
|
-
*
|
|
18
|
+
* The relayed kinds of master §2.6 that target the current packages; the relayer's `_previous` twins drain the
|
|
19
|
+
* R1 packages and are not built here. Deposit and sale open are sponsored edges, not relay kinds. Z1: an offer or a
|
|
20
|
+
* bid is a `transfer`, and `loan_reclaim` is the one reclaim for both.
|
|
21
21
|
*/
|
|
22
22
|
export const RELAY_KINDS = [
|
|
23
23
|
"transfer",
|
|
24
24
|
"withdraw",
|
|
25
25
|
"loan_open",
|
|
26
|
-
"loan_offer",
|
|
27
26
|
"loan_settle",
|
|
28
27
|
"loan_repay",
|
|
29
28
|
"loan_reclaim",
|
|
30
29
|
"loan_reclaim_coll",
|
|
31
30
|
"loan_cancel",
|
|
32
31
|
"loan_cancel_refi",
|
|
33
|
-
"loan_slash",
|
|
34
32
|
"loan_refinance",
|
|
35
33
|
"loan_settle_refi",
|
|
36
34
|
"loan_ct_fault",
|
|
37
35
|
"loan_heartbeat",
|
|
38
|
-
"loan_heartbeat_previous",
|
|
39
36
|
"loan_topup",
|
|
40
37
|
"loan_topup_borrower",
|
|
41
38
|
"loan_liquidate",
|
|
42
39
|
"loan_claim_default",
|
|
43
40
|
"loan_release",
|
|
44
41
|
"loan_fault_liquidate",
|
|
45
|
-
"loan_pick",
|
|
46
|
-
"sale_pick",
|
|
47
|
-
"sale_bid",
|
|
48
42
|
"sale_finish",
|
|
49
|
-
"sale_slash",
|
|
50
43
|
"sale_expire",
|
|
51
|
-
"sale_reclaim",
|
|
52
44
|
"sale_claim_item",
|
|
53
45
|
"sale_cancel",
|
|
54
46
|
];
|
|
@@ -3,6 +3,7 @@ import type { Proved, RelayBody } from "../bodies.ts";
|
|
|
3
3
|
import { type DerivedKeys, type Pass } from "../body-args.ts";
|
|
4
4
|
import { claimDefault as claimDefaultBody, type CollLockSpend } from "../collateral/bodies.ts";
|
|
5
5
|
import type { HealthStatement } from "../collateral/health.ts";
|
|
6
|
+
import type { Encs4 } from "../collateral/ext.ts";
|
|
6
7
|
export type { DerivedKeys, Pass };
|
|
7
8
|
export type OpenBody = {
|
|
8
9
|
pool: CoinKey;
|
|
@@ -21,7 +22,8 @@ export type OpenBody = {
|
|
|
21
22
|
closeMs: bigint;
|
|
22
23
|
collateralCommit: bigint;
|
|
23
24
|
lock: CollLockSpend;
|
|
24
|
-
|
|
25
|
+
/** `[change, fee_note, pad0, pad1]`, the order `lock_collateral` inserts them (Z1-LEAF-MAP.md). */
|
|
26
|
+
encs: Encs4;
|
|
25
27
|
keeperCt: Uint8Array;
|
|
26
28
|
pClaim: bigint;
|
|
27
29
|
statement: HealthStatement;
|
|
@@ -29,61 +31,41 @@ export type OpenBody = {
|
|
|
29
31
|
};
|
|
30
32
|
/** `loan_open`: membership, CollLock, Health, then the request rows plus `openLockArgs`. */
|
|
31
33
|
export declare function open(p: OpenBody): RelayBody;
|
|
32
|
-
export type OfferBody = {
|
|
33
|
-
pool: CoinKey;
|
|
34
|
-
loan: string;
|
|
35
|
-
wait: boolean;
|
|
36
|
-
relayerFee: bigint;
|
|
37
|
-
membership: Proved;
|
|
38
|
-
offer: Proved;
|
|
39
|
-
tag: bigint;
|
|
40
|
-
expiryMs: bigint;
|
|
41
|
-
passRoom: string;
|
|
42
|
-
root: bigint;
|
|
43
|
-
nullifier0: bigint;
|
|
44
|
-
nullifier1: bigint;
|
|
45
|
-
lock: bigint;
|
|
46
|
-
change: bigint;
|
|
47
|
-
feeNote: bigint;
|
|
48
|
-
ephX: bigint;
|
|
49
|
-
ephY: bigint;
|
|
50
|
-
feeCt: bigint;
|
|
51
|
-
commit: bigint;
|
|
52
|
-
sealed: Uint8Array;
|
|
53
|
-
/** PRV-36 (c): the lender's record memo; the offer ext hashes `sealed ‖ memo` (`offer.move:70-72`). */
|
|
54
|
-
memo: Uint8Array;
|
|
55
|
-
encChange: Uint8Array;
|
|
56
|
-
encFee: Uint8Array;
|
|
57
|
-
};
|
|
58
|
-
/** `loan_offer`: a lender pass, then the offer spend. `passRoom` is `loan::offer_room`. */
|
|
59
|
-
export declare function offer(p: OfferBody): RelayBody;
|
|
60
34
|
export type SettleBody = {
|
|
61
35
|
pool: CoinKey;
|
|
62
36
|
loan: string;
|
|
37
|
+
market: string;
|
|
63
38
|
wait: boolean;
|
|
64
39
|
settle: Proved;
|
|
65
40
|
pass: Pass;
|
|
41
|
+
root: bigint;
|
|
42
|
+
nLock: bigint;
|
|
43
|
+
nDummy: bigint;
|
|
66
44
|
termsCommit: bigint;
|
|
67
45
|
principalNote: bigint;
|
|
68
46
|
feeNote: bigint;
|
|
69
|
-
|
|
47
|
+
pad0: bigint;
|
|
48
|
+
pad1: bigint;
|
|
70
49
|
d: [bigint, bigint, bigint, bigint];
|
|
71
50
|
ephX: bigint;
|
|
72
51
|
ephY: bigint;
|
|
73
52
|
feeCt: bigint;
|
|
53
|
+
pClaim: bigint;
|
|
74
54
|
keeperCt: Uint8Array;
|
|
75
|
-
|
|
76
|
-
|
|
55
|
+
/** principal_note, fee_note, pad0, pad1. */
|
|
56
|
+
encs: Encs4;
|
|
77
57
|
nowS: bigint;
|
|
78
58
|
memo: Uint8Array;
|
|
59
|
+
priceUpdate: Uint8Array;
|
|
79
60
|
};
|
|
80
|
-
/** `loan_settle` pays no relayer (`payload.ts` `FEE_FREE`). */
|
|
61
|
+
/** `loan_settle` pays no relayer (`payload.ts` `FEE_FREE`). Arguments of Z1 `settle::settle`, by name. */
|
|
81
62
|
export declare function settle(p: SettleBody): RelayBody;
|
|
82
63
|
export type RepayRelease = {
|
|
83
64
|
proved: Proved;
|
|
84
65
|
market: string;
|
|
85
66
|
statement: HealthStatement;
|
|
86
|
-
|
|
67
|
+
/** `[out0, fee_note, out1, out2]`, the order `liquidation::release` inserts them. */
|
|
68
|
+
encs: Encs4;
|
|
87
69
|
};
|
|
88
70
|
export type RepayBody = {
|
|
89
71
|
pool: CoinKey;
|
|
@@ -111,22 +93,25 @@ export type RepayBody = {
|
|
|
111
93
|
export declare function repay(p: RepayBody): RelayBody;
|
|
112
94
|
export type ReclaimBody = {
|
|
113
95
|
pool: CoinKey;
|
|
114
|
-
loan: string;
|
|
115
96
|
wait: boolean;
|
|
116
97
|
relayerFee: bigint;
|
|
117
98
|
proved: Proved;
|
|
118
|
-
|
|
119
|
-
|
|
99
|
+
root: bigint;
|
|
100
|
+
nLock: bigint;
|
|
101
|
+
nDummy: bigint;
|
|
120
102
|
refund: bigint;
|
|
121
|
-
|
|
103
|
+
feeNote: bigint;
|
|
104
|
+
pad0: bigint;
|
|
105
|
+
pad1: bigint;
|
|
122
106
|
ephX: bigint;
|
|
123
107
|
ephY: bigint;
|
|
124
108
|
feeCt: bigint;
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
109
|
+
feeCommit: bigint;
|
|
110
|
+
nowS: bigint;
|
|
111
|
+
/** Leaf order: refund, fee note, pad0, pad1. */
|
|
112
|
+
encs: Encs4;
|
|
128
113
|
};
|
|
129
|
-
/** `
|
|
114
|
+
/** `reclaim::reclaim`, one entry for offer and bid locks: the pool only, no loan or room. Pays the pool constant. */
|
|
130
115
|
export declare function reclaim(p: ReclaimBody): RelayBody;
|
|
131
116
|
export type ReclaimCollBody = {
|
|
132
117
|
pool: CoinKey;
|
|
@@ -134,15 +119,18 @@ export type ReclaimCollBody = {
|
|
|
134
119
|
wait: boolean;
|
|
135
120
|
proved: Proved;
|
|
136
121
|
nullifier: bigint;
|
|
122
|
+
nDummy: bigint;
|
|
137
123
|
outNote: bigint;
|
|
138
124
|
feeNote: bigint;
|
|
125
|
+
pad0: bigint;
|
|
126
|
+
pad1: bigint;
|
|
139
127
|
ephX: bigint;
|
|
140
128
|
ephY: bigint;
|
|
141
129
|
feeCt: bigint;
|
|
142
|
-
|
|
143
|
-
|
|
130
|
+
/** Leaf order: out note, fee note, pad0, pad1. */
|
|
131
|
+
encs: Encs4;
|
|
144
132
|
};
|
|
145
|
-
/** `
|
|
133
|
+
/** `reclaim_coll::reclaim_coll` pays no relayer (`FEE_FREE`). */
|
|
146
134
|
export declare function reclaimColl(p: ReclaimCollBody): RelayBody;
|
|
147
135
|
export type CancelBody = {
|
|
148
136
|
pool: CoinKey;
|
|
@@ -153,26 +141,6 @@ export type CancelBody = {
|
|
|
153
141
|
};
|
|
154
142
|
/** `loan_cancel` pays no relayer. */
|
|
155
143
|
export declare function cancel(p: CancelBody): RelayBody;
|
|
156
|
-
export type SlashBody = {
|
|
157
|
-
pool: CoinKey;
|
|
158
|
-
loan: string;
|
|
159
|
-
wait: boolean;
|
|
160
|
-
round: bigint;
|
|
161
|
-
seq: bigint;
|
|
162
|
-
keys: DerivedKeys;
|
|
163
|
-
};
|
|
164
|
-
/** `loan_slash` (`offer::slash`) takes no proof and pays no relayer: the derived keys are the authorization. */
|
|
165
|
-
export declare function slash(p: SlashBody): RelayBody;
|
|
166
|
-
export type PickBody = {
|
|
167
|
-
pool: CoinKey;
|
|
168
|
-
loan: string;
|
|
169
|
-
wait: boolean;
|
|
170
|
-
};
|
|
171
|
-
/**
|
|
172
|
-
* `loan_pick` (`pick::pick`): no proof, no pass, no relayer fee. It takes `Random` (0x8), so it is the last call of
|
|
173
|
-
* its PTB and the relayer sends it alone (`move/v3/loan/sources/pick.move:1-3`).
|
|
174
|
-
*/
|
|
175
|
-
export declare function pick(p: PickBody): RelayBody;
|
|
176
144
|
export type CtFaultBody = {
|
|
177
145
|
pool: CoinKey;
|
|
178
146
|
loan: string;
|
|
@@ -188,6 +156,8 @@ export type RefinanceBody = {
|
|
|
188
156
|
pass: Pass;
|
|
189
157
|
reqCommit: bigint;
|
|
190
158
|
reqSealed: Uint8Array;
|
|
159
|
+
/** K1: the refi round's 384-byte request memo (`refi::open_refi`, `loan::check_memo`). */
|
|
160
|
+
memo: Uint8Array;
|
|
191
161
|
closeMs: bigint;
|
|
192
162
|
};
|
|
193
163
|
/** `loan_refinance` (`refi::open_refi`) pays no relayer. */
|
|
@@ -201,10 +171,12 @@ export type SettleRefiBody = {
|
|
|
201
171
|
wait: boolean;
|
|
202
172
|
pass: Pass;
|
|
203
173
|
refi: Proved;
|
|
174
|
+
root: bigint;
|
|
175
|
+
nLock: bigint;
|
|
176
|
+
nDummy: bigint;
|
|
204
177
|
termsCommit: bigint;
|
|
205
178
|
borrowerNote: bigint;
|
|
206
179
|
feeNote: bigint;
|
|
207
|
-
winNull: bigint;
|
|
208
180
|
d: bigint[];
|
|
209
181
|
ephX: bigint;
|
|
210
182
|
ephY: bigint;
|
|
@@ -214,8 +186,8 @@ export type SettleRefiBody = {
|
|
|
214
186
|
ephP: bigint[];
|
|
215
187
|
pClaim: bigint;
|
|
216
188
|
keeperCt: Uint8Array;
|
|
217
|
-
|
|
218
|
-
|
|
189
|
+
/** borrower_note, fee_note, payoff_note, pad. */
|
|
190
|
+
encs: Encs4;
|
|
219
191
|
nowS: bigint;
|
|
220
192
|
memo: Uint8Array;
|
|
221
193
|
priceUpdate: Uint8Array;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bodies.d.ts","sourceRoot":"","sources":["../../../src/v3/loans/bodies.ts"],"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