@ottochain/sdk 2.0.0 → 2.2.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/cjs/apps/contracts/index.js +1 -1
- package/dist/cjs/apps/contracts/state-machines/contract-agreement.js +272 -0
- package/dist/cjs/apps/contracts/state-machines/contract-escrow.js +284 -0
- package/dist/cjs/apps/contracts/state-machines/contract-universal.js +93 -0
- package/dist/cjs/apps/contracts/state-machines/index.js +177 -1
- package/dist/cjs/apps/corporate/state-machines/corp-board.js +1022 -0
- package/dist/cjs/apps/corporate/state-machines/corp-entity.js +671 -0
- package/dist/cjs/apps/corporate/state-machines/corp-securities.js +998 -0
- package/dist/cjs/apps/corporate/state-machines/corp-shareholders.js +1102 -0
- package/dist/cjs/apps/corporate/state-machines/index.js +20 -4440
- package/dist/cjs/apps/governance/index.js +7 -7
- package/dist/cjs/apps/governance/state-machines/dao-multisig.js +467 -0
- package/dist/cjs/apps/governance/state-machines/dao-reputation.js +458 -0
- package/dist/cjs/apps/governance/state-machines/dao-single.js +199 -0
- package/dist/cjs/apps/governance/state-machines/dao-token.js +503 -0
- package/dist/cjs/apps/governance/state-machines/governance-simple.js +482 -0
- package/dist/cjs/apps/governance/state-machines/governance-universal.js +138 -0
- package/dist/cjs/apps/governance/state-machines/index.js +16 -2934
- package/dist/cjs/apps/identity/constants.js +28 -14
- package/dist/cjs/apps/identity/index.js +27 -12
- package/dist/cjs/apps/identity/state-machines/identity-agent.js +256 -0
- package/dist/cjs/apps/identity/state-machines/identity-oracle.js +321 -0
- package/dist/cjs/apps/identity/state-machines/identity-universal.js +106 -0
- package/dist/cjs/apps/identity/state-machines/index.js +15 -784
- package/dist/cjs/apps/markets/index.js +1 -1
- package/dist/cjs/apps/markets/state-machines/index.js +14 -2298
- package/dist/cjs/apps/markets/state-machines/market-auction.js +283 -0
- package/dist/cjs/apps/markets/state-machines/market-crowdfund.js +312 -0
- package/dist/cjs/apps/markets/state-machines/market-group-buy.js +407 -0
- package/dist/cjs/apps/markets/state-machines/market-prediction.js +485 -0
- package/dist/cjs/apps/markets/state-machines/market-universal.js +129 -0
- package/dist/cjs/apps/oracles/index.js +36 -0
- package/dist/cjs/generated/google/protobuf/struct.js +1 -1
- package/dist/cjs/generated/google/protobuf/timestamp.js +1 -1
- package/dist/cjs/generated/index.js +26 -22
- package/dist/cjs/generated/ottochain/apps/contracts/v1/contract.js +1 -1
- package/dist/cjs/generated/ottochain/apps/corporate/v1/corporate.js +1 -1
- package/dist/cjs/generated/ottochain/apps/governance/v1/governance.js +1 -1
- package/dist/cjs/generated/ottochain/apps/identity/v1/attestation.js +12 -12
- package/dist/cjs/generated/ottochain/apps/identity/v1/identity.js +1688 -0
- package/dist/cjs/generated/ottochain/apps/markets/v1/market.js +1 -1
- package/dist/cjs/generated/ottochain/v1/common.js +1 -1
- package/dist/cjs/generated/ottochain/v1/fiber.js +1 -1
- package/dist/cjs/generated/ottochain/v1/messages.js +1 -1
- package/dist/cjs/generated/ottochain/v1/records.js +1 -1
- package/dist/cjs/schema/fiber-app.js +95 -0
- package/dist/cjs/schema/index.js +20 -0
- package/dist/esm/apps/contracts/index.js +3 -3
- package/dist/esm/apps/contracts/state-machines/contract-agreement.js +269 -0
- package/dist/esm/apps/contracts/state-machines/contract-escrow.js +281 -0
- package/dist/esm/apps/contracts/state-machines/contract-universal.js +90 -0
- package/dist/esm/apps/contracts/state-machines/index.js +177 -1
- package/dist/esm/apps/corporate/index.js +3 -3
- package/dist/esm/apps/corporate/state-machines/corp-board.js +1019 -0
- package/dist/esm/apps/corporate/state-machines/corp-entity.js +668 -0
- package/dist/esm/apps/corporate/state-machines/corp-securities.js +995 -0
- package/dist/esm/apps/corporate/state-machines/corp-shareholders.js +1099 -0
- package/dist/esm/apps/corporate/state-machines/index.js +15 -4439
- package/dist/esm/apps/governance/index.js +9 -9
- package/dist/esm/apps/governance/state-machines/dao-multisig.js +464 -0
- package/dist/esm/apps/governance/state-machines/dao-reputation.js +455 -0
- package/dist/esm/apps/governance/state-machines/dao-single.js +196 -0
- package/dist/esm/apps/governance/state-machines/dao-token.js +500 -0
- package/dist/esm/apps/governance/state-machines/governance-simple.js +479 -0
- package/dist/esm/apps/governance/state-machines/governance-universal.js +135 -0
- package/dist/esm/apps/governance/state-machines/index.js +9 -2933
- package/dist/esm/apps/identity/constants.js +28 -14
- package/dist/esm/apps/identity/index.js +7 -5
- package/dist/esm/apps/identity/state-machines/identity-agent.js +253 -0
- package/dist/esm/apps/identity/state-machines/identity-oracle.js +318 -0
- package/dist/esm/apps/identity/state-machines/identity-universal.js +103 -0
- package/dist/esm/apps/identity/state-machines/index.js +11 -783
- package/dist/esm/apps/index.js +5 -5
- package/dist/esm/apps/markets/index.js +3 -3
- package/dist/esm/apps/markets/state-machines/index.js +8 -2297
- package/dist/esm/apps/markets/state-machines/market-auction.js +280 -0
- package/dist/esm/apps/markets/state-machines/market-crowdfund.js +309 -0
- package/dist/esm/apps/markets/state-machines/market-group-buy.js +404 -0
- package/dist/esm/apps/markets/state-machines/market-prediction.js +482 -0
- package/dist/esm/apps/markets/state-machines/market-universal.js +126 -0
- package/dist/esm/apps/oracles/index.js +21 -0
- package/dist/esm/generated/google/protobuf/struct.js +1 -1
- package/dist/esm/generated/google/protobuf/timestamp.js +1 -1
- package/dist/esm/generated/index.js +8 -4
- package/dist/esm/generated/ottochain/apps/contracts/v1/contract.js +1 -1
- package/dist/esm/generated/ottochain/apps/corporate/v1/corporate.js +1 -1
- package/dist/esm/generated/ottochain/apps/governance/v1/governance.js +1 -1
- package/dist/esm/generated/ottochain/apps/identity/v1/attestation.js +2 -2
- package/dist/esm/generated/ottochain/apps/identity/v1/identity.js +1676 -0
- package/dist/esm/generated/ottochain/apps/markets/v1/market.js +1 -1
- package/dist/esm/generated/ottochain/v1/common.js +1 -1
- package/dist/esm/generated/ottochain/v1/fiber.js +1 -1
- package/dist/esm/generated/ottochain/v1/messages.js +1 -1
- package/dist/esm/generated/ottochain/v1/records.js +1 -1
- package/dist/esm/schema/fiber-app.js +86 -0
- package/dist/esm/schema/index.js +4 -0
- package/dist/types/apps/contracts/index.d.ts +151 -2
- package/dist/types/apps/contracts/state-machines/contract-agreement.d.ts +462 -0
- package/dist/types/apps/contracts/state-machines/contract-escrow.d.ts +511 -0
- package/dist/types/apps/contracts/state-machines/contract-universal.d.ts +147 -0
- package/dist/types/apps/contracts/state-machines/index.d.ts +149 -0
- package/dist/types/apps/corporate/index.d.ts +5263 -3825
- package/dist/types/apps/corporate/state-machines/corp-board.d.ts +1479 -0
- package/dist/types/apps/corporate/state-machines/corp-entity.d.ts +970 -0
- package/dist/types/apps/corporate/state-machines/corp-securities.d.ts +1381 -0
- package/dist/types/apps/corporate/state-machines/corp-shareholders.d.ts +1631 -0
- package/dist/types/apps/corporate/state-machines/index.d.ts +5245 -3802
- package/dist/types/apps/governance/index.d.ts +875 -37
- package/dist/types/apps/governance/state-machines/dao-multisig.d.ts +644 -0
- package/dist/types/apps/governance/state-machines/dao-reputation.d.ts +610 -0
- package/dist/types/apps/governance/state-machines/dao-single.d.ts +276 -0
- package/dist/types/apps/governance/state-machines/dao-token.d.ts +601 -0
- package/dist/types/apps/governance/state-machines/governance-simple.d.ts +652 -0
- package/dist/types/apps/governance/state-machines/governance-universal.d.ts +181 -0
- package/dist/types/apps/governance/state-machines/index.d.ts +9 -2136
- package/dist/types/apps/identity/constants.d.ts +8 -6
- package/dist/types/apps/identity/index.d.ts +1078 -577
- package/dist/types/apps/identity/state-machines/identity-agent.d.ts +401 -0
- package/dist/types/apps/identity/state-machines/identity-oracle.d.ts +550 -0
- package/dist/types/apps/identity/state-machines/identity-universal.d.ts +151 -0
- package/dist/types/apps/identity/state-machines/index.d.ts +1069 -567
- package/dist/types/apps/index.d.ts +5 -5
- package/dist/types/apps/markets/index.d.ts +535 -7
- package/dist/types/apps/markets/state-machines/index.d.ts +8 -1678
- package/dist/types/apps/markets/state-machines/market-auction.d.ts +392 -0
- package/dist/types/apps/markets/state-machines/market-crowdfund.d.ts +443 -0
- package/dist/types/apps/markets/state-machines/market-group-buy.d.ts +539 -0
- package/dist/types/apps/markets/state-machines/market-prediction.d.ts +651 -0
- package/dist/types/apps/markets/state-machines/market-universal.d.ts +191 -0
- package/dist/types/apps/oracles/index.d.ts +18 -0
- package/dist/types/generated/index.d.ts +3 -2
- package/dist/types/generated/ottochain/apps/identity/v1/attestation.d.ts +1 -1
- package/dist/types/generated/ottochain/apps/identity/v1/identity.d.ts +187 -0
- package/dist/types/schema/fiber-app.d.ts +172 -0
- package/dist/types/schema/index.d.ts +4 -0
- package/package.json +1 -1
- package/dist/cjs/generated/ottochain/apps/identity/v1/agent.js +0 -619
- package/dist/cjs/generated/ottochain/apps/oracles/v1/oracle.js +0 -1223
- package/dist/esm/generated/ottochain/apps/identity/v1/agent.js +0 -610
- package/dist/esm/generated/ottochain/apps/oracles/v1/oracle.js +0 -1217
- package/dist/types/generated/ottochain/apps/identity/v1/agent.d.ts +0 -94
- package/dist/types/generated/ottochain/apps/oracles/v1/oracle.d.ts +0 -150
|
@@ -0,0 +1,644 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* N-of-M multisig governance. Requires threshold signatures for actions.
|
|
3
|
+
*/
|
|
4
|
+
export declare const daoMultisigDef: {
|
|
5
|
+
readonly metadata: {
|
|
6
|
+
readonly name: "MultisigDAO";
|
|
7
|
+
readonly app: "governance";
|
|
8
|
+
readonly type: "daoMultisig";
|
|
9
|
+
readonly version: "1.0.0";
|
|
10
|
+
readonly description: "N-of-M multisig governance. Requires threshold signatures for actions.";
|
|
11
|
+
readonly category: "governance/dao";
|
|
12
|
+
readonly crossReferences: {
|
|
13
|
+
readonly Identity: "signer verification";
|
|
14
|
+
readonly Contract: "action execution targets";
|
|
15
|
+
readonly Treasury: "fund management";
|
|
16
|
+
readonly Escrow: "controlled release";
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
readonly createSchema: {
|
|
20
|
+
readonly required: readonly ["signers", "threshold", "proposalTTLMs"];
|
|
21
|
+
readonly properties: {
|
|
22
|
+
readonly signers: {
|
|
23
|
+
readonly type: "array";
|
|
24
|
+
readonly description: "Authorized signer addresses";
|
|
25
|
+
readonly immutable: false;
|
|
26
|
+
};
|
|
27
|
+
readonly threshold: {
|
|
28
|
+
readonly type: "number";
|
|
29
|
+
readonly description: "Number of signatures required to execute";
|
|
30
|
+
};
|
|
31
|
+
readonly proposalTTLMs: {
|
|
32
|
+
readonly type: "number";
|
|
33
|
+
readonly description: "Proposal expiry window in milliseconds";
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
readonly stateSchema: {
|
|
38
|
+
readonly properties: {
|
|
39
|
+
readonly signers: {
|
|
40
|
+
readonly type: "array";
|
|
41
|
+
};
|
|
42
|
+
readonly threshold: {
|
|
43
|
+
readonly type: "number";
|
|
44
|
+
};
|
|
45
|
+
readonly proposalTTLMs: {
|
|
46
|
+
readonly type: "number";
|
|
47
|
+
};
|
|
48
|
+
readonly proposal: {
|
|
49
|
+
readonly type: "object";
|
|
50
|
+
};
|
|
51
|
+
readonly signatures: {
|
|
52
|
+
readonly type: "object";
|
|
53
|
+
readonly computed: true;
|
|
54
|
+
};
|
|
55
|
+
readonly actions: {
|
|
56
|
+
readonly type: "array";
|
|
57
|
+
readonly computed: true;
|
|
58
|
+
};
|
|
59
|
+
readonly cancelledProposals: {
|
|
60
|
+
readonly type: "array";
|
|
61
|
+
readonly computed: true;
|
|
62
|
+
};
|
|
63
|
+
readonly status: {
|
|
64
|
+
readonly type: "string";
|
|
65
|
+
readonly computed: true;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
readonly eventSchemas: {
|
|
70
|
+
readonly propose: {
|
|
71
|
+
readonly description: "Propose an action (signer only)";
|
|
72
|
+
readonly required: readonly ["proposalId", "actionType", "payload"];
|
|
73
|
+
readonly properties: {
|
|
74
|
+
readonly agent: {
|
|
75
|
+
readonly type: "address";
|
|
76
|
+
};
|
|
77
|
+
readonly proposalId: {
|
|
78
|
+
readonly type: "string";
|
|
79
|
+
};
|
|
80
|
+
readonly actionType: {
|
|
81
|
+
readonly type: "string";
|
|
82
|
+
};
|
|
83
|
+
readonly payload: {
|
|
84
|
+
readonly type: "object";
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
readonly sign: {
|
|
89
|
+
readonly description: "Sign the current proposal (signer only, no double-signing)";
|
|
90
|
+
readonly properties: {
|
|
91
|
+
readonly agent: {
|
|
92
|
+
readonly type: "address";
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
readonly execute: {
|
|
97
|
+
readonly description: "Execute once threshold signatures collected";
|
|
98
|
+
readonly properties: {
|
|
99
|
+
readonly agent: {
|
|
100
|
+
readonly type: "address";
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
readonly cancel: {
|
|
105
|
+
readonly description: "Cancel proposal (expired or proposer)";
|
|
106
|
+
readonly properties: {
|
|
107
|
+
readonly agent: {
|
|
108
|
+
readonly type: "address";
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
readonly propose_add_signer: {
|
|
113
|
+
readonly description: "Propose adding a new signer (signer only)";
|
|
114
|
+
readonly required: readonly ["proposalId", "newSigner"];
|
|
115
|
+
readonly properties: {
|
|
116
|
+
readonly agent: {
|
|
117
|
+
readonly type: "address";
|
|
118
|
+
};
|
|
119
|
+
readonly proposalId: {
|
|
120
|
+
readonly type: "string";
|
|
121
|
+
};
|
|
122
|
+
readonly newSigner: {
|
|
123
|
+
readonly type: "address";
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
readonly propose_remove_signer: {
|
|
128
|
+
readonly description: "Propose removing a signer (signer only, must keep > threshold signers)";
|
|
129
|
+
readonly required: readonly ["proposalId", "removeSigner"];
|
|
130
|
+
readonly properties: {
|
|
131
|
+
readonly agent: {
|
|
132
|
+
readonly type: "address";
|
|
133
|
+
};
|
|
134
|
+
readonly proposalId: {
|
|
135
|
+
readonly type: "string";
|
|
136
|
+
};
|
|
137
|
+
readonly removeSigner: {
|
|
138
|
+
readonly type: "address";
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
readonly propose_change_threshold: {
|
|
143
|
+
readonly description: "Propose changing the signature threshold";
|
|
144
|
+
readonly required: readonly ["proposalId", "newThreshold"];
|
|
145
|
+
readonly properties: {
|
|
146
|
+
readonly agent: {
|
|
147
|
+
readonly type: "address";
|
|
148
|
+
};
|
|
149
|
+
readonly proposalId: {
|
|
150
|
+
readonly type: "string";
|
|
151
|
+
};
|
|
152
|
+
readonly newThreshold: {
|
|
153
|
+
readonly type: "number";
|
|
154
|
+
readonly minimum: 1;
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
readonly apply_signer_change: {
|
|
159
|
+
readonly description: "Apply approved signer-set or threshold change";
|
|
160
|
+
readonly properties: {
|
|
161
|
+
readonly agent: {
|
|
162
|
+
readonly type: "address";
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
readonly dissolve: {
|
|
167
|
+
readonly description: "Dissolve the DAO (requires unanimous signer count)";
|
|
168
|
+
readonly properties: {
|
|
169
|
+
readonly signatureCount: {
|
|
170
|
+
readonly type: "number";
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
readonly states: {
|
|
176
|
+
readonly ACTIVE: {
|
|
177
|
+
readonly id: "ACTIVE";
|
|
178
|
+
readonly isFinal: false;
|
|
179
|
+
readonly metadata: null;
|
|
180
|
+
};
|
|
181
|
+
readonly PENDING: {
|
|
182
|
+
readonly id: "PENDING";
|
|
183
|
+
readonly isFinal: false;
|
|
184
|
+
readonly metadata: null;
|
|
185
|
+
};
|
|
186
|
+
readonly DISSOLVED: {
|
|
187
|
+
readonly id: "DISSOLVED";
|
|
188
|
+
readonly isFinal: true;
|
|
189
|
+
readonly metadata: null;
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
readonly initialState: "ACTIVE";
|
|
193
|
+
readonly transitions: readonly [{
|
|
194
|
+
readonly from: "ACTIVE";
|
|
195
|
+
readonly to: "PENDING";
|
|
196
|
+
readonly eventName: "propose";
|
|
197
|
+
readonly guard: {
|
|
198
|
+
readonly in: readonly [{
|
|
199
|
+
readonly var: "event.agent";
|
|
200
|
+
}, {
|
|
201
|
+
readonly var: "state.signers";
|
|
202
|
+
}];
|
|
203
|
+
};
|
|
204
|
+
readonly effect: {
|
|
205
|
+
readonly merge: readonly [{
|
|
206
|
+
readonly var: "state";
|
|
207
|
+
}, {
|
|
208
|
+
readonly proposal: {
|
|
209
|
+
readonly id: {
|
|
210
|
+
readonly var: "event.proposalId";
|
|
211
|
+
};
|
|
212
|
+
readonly actionType: {
|
|
213
|
+
readonly var: "event.actionType";
|
|
214
|
+
};
|
|
215
|
+
readonly payload: {
|
|
216
|
+
readonly var: "event.payload";
|
|
217
|
+
};
|
|
218
|
+
readonly proposer: {
|
|
219
|
+
readonly var: "event.agent";
|
|
220
|
+
};
|
|
221
|
+
readonly proposedAt: {
|
|
222
|
+
readonly var: "$timestamp";
|
|
223
|
+
};
|
|
224
|
+
readonly expiresAt: {
|
|
225
|
+
readonly "+": readonly [{
|
|
226
|
+
readonly var: "$timestamp";
|
|
227
|
+
}, {
|
|
228
|
+
readonly var: "state.proposalTTLMs";
|
|
229
|
+
}];
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
readonly signatures: {
|
|
233
|
+
readonly setKey: readonly [{}, {
|
|
234
|
+
readonly var: "event.agent";
|
|
235
|
+
}, {
|
|
236
|
+
readonly var: "$timestamp";
|
|
237
|
+
}];
|
|
238
|
+
};
|
|
239
|
+
}];
|
|
240
|
+
};
|
|
241
|
+
readonly dependencies: readonly [];
|
|
242
|
+
}, {
|
|
243
|
+
readonly from: "PENDING";
|
|
244
|
+
readonly to: "PENDING";
|
|
245
|
+
readonly eventName: "sign";
|
|
246
|
+
readonly guard: {
|
|
247
|
+
readonly and: readonly [{
|
|
248
|
+
readonly in: readonly [{
|
|
249
|
+
readonly var: "event.agent";
|
|
250
|
+
}, {
|
|
251
|
+
readonly var: "state.signers";
|
|
252
|
+
}];
|
|
253
|
+
}, {
|
|
254
|
+
readonly "!": readonly [{
|
|
255
|
+
readonly getKey: readonly [{
|
|
256
|
+
readonly var: "state.signatures";
|
|
257
|
+
}, {
|
|
258
|
+
readonly var: "event.agent";
|
|
259
|
+
}];
|
|
260
|
+
}];
|
|
261
|
+
}, {
|
|
262
|
+
readonly "<": readonly [{
|
|
263
|
+
readonly size: {
|
|
264
|
+
readonly var: "state.signatures";
|
|
265
|
+
};
|
|
266
|
+
}, {
|
|
267
|
+
readonly var: "state.threshold";
|
|
268
|
+
}];
|
|
269
|
+
}];
|
|
270
|
+
};
|
|
271
|
+
readonly effect: {
|
|
272
|
+
readonly merge: readonly [{
|
|
273
|
+
readonly var: "state";
|
|
274
|
+
}, {
|
|
275
|
+
readonly signatures: {
|
|
276
|
+
readonly setKey: readonly [{
|
|
277
|
+
readonly var: "state.signatures";
|
|
278
|
+
}, {
|
|
279
|
+
readonly var: "event.agent";
|
|
280
|
+
}, {
|
|
281
|
+
readonly var: "$timestamp";
|
|
282
|
+
}];
|
|
283
|
+
};
|
|
284
|
+
}];
|
|
285
|
+
};
|
|
286
|
+
readonly dependencies: readonly [];
|
|
287
|
+
}, {
|
|
288
|
+
readonly from: "PENDING";
|
|
289
|
+
readonly to: "ACTIVE";
|
|
290
|
+
readonly eventName: "execute";
|
|
291
|
+
readonly guard: {
|
|
292
|
+
readonly ">=": readonly [{
|
|
293
|
+
readonly size: {
|
|
294
|
+
readonly var: "state.signatures";
|
|
295
|
+
};
|
|
296
|
+
}, {
|
|
297
|
+
readonly var: "state.threshold";
|
|
298
|
+
}];
|
|
299
|
+
};
|
|
300
|
+
readonly effect: {
|
|
301
|
+
readonly merge: readonly [{
|
|
302
|
+
readonly var: "state";
|
|
303
|
+
}, {
|
|
304
|
+
readonly actions: {
|
|
305
|
+
readonly cat: readonly [{
|
|
306
|
+
readonly var: "state.actions";
|
|
307
|
+
}, readonly [{
|
|
308
|
+
readonly id: {
|
|
309
|
+
readonly var: "state.proposal.id";
|
|
310
|
+
};
|
|
311
|
+
readonly type: {
|
|
312
|
+
readonly var: "state.proposal.actionType";
|
|
313
|
+
};
|
|
314
|
+
readonly payload: {
|
|
315
|
+
readonly var: "state.proposal.payload";
|
|
316
|
+
};
|
|
317
|
+
readonly signatures: {
|
|
318
|
+
readonly var: "state.signatures";
|
|
319
|
+
};
|
|
320
|
+
readonly executedAt: {
|
|
321
|
+
readonly var: "$timestamp";
|
|
322
|
+
};
|
|
323
|
+
}]];
|
|
324
|
+
};
|
|
325
|
+
readonly proposal: null;
|
|
326
|
+
readonly signatures: {};
|
|
327
|
+
}];
|
|
328
|
+
};
|
|
329
|
+
readonly emits: readonly [{
|
|
330
|
+
readonly event: "multisig_executed";
|
|
331
|
+
readonly to: "external";
|
|
332
|
+
}];
|
|
333
|
+
readonly dependencies: readonly [];
|
|
334
|
+
}, {
|
|
335
|
+
readonly from: "PENDING";
|
|
336
|
+
readonly to: "ACTIVE";
|
|
337
|
+
readonly eventName: "cancel";
|
|
338
|
+
readonly guard: {
|
|
339
|
+
readonly or: readonly [{
|
|
340
|
+
readonly ">": readonly [{
|
|
341
|
+
readonly var: "$timestamp";
|
|
342
|
+
}, {
|
|
343
|
+
readonly var: "state.proposal.expiresAt";
|
|
344
|
+
}];
|
|
345
|
+
}, {
|
|
346
|
+
readonly "===": readonly [{
|
|
347
|
+
readonly var: "event.agent";
|
|
348
|
+
}, {
|
|
349
|
+
readonly var: "state.proposal.proposer";
|
|
350
|
+
}];
|
|
351
|
+
}];
|
|
352
|
+
};
|
|
353
|
+
readonly effect: {
|
|
354
|
+
readonly merge: readonly [{
|
|
355
|
+
readonly var: "state";
|
|
356
|
+
}, {
|
|
357
|
+
readonly cancelledProposals: {
|
|
358
|
+
readonly cat: readonly [{
|
|
359
|
+
readonly var: "state.cancelledProposals";
|
|
360
|
+
}, readonly [{
|
|
361
|
+
readonly merge: readonly [{
|
|
362
|
+
readonly var: "state.proposal";
|
|
363
|
+
}, {
|
|
364
|
+
readonly cancelledAt: {
|
|
365
|
+
readonly var: "$timestamp";
|
|
366
|
+
};
|
|
367
|
+
}];
|
|
368
|
+
}]];
|
|
369
|
+
};
|
|
370
|
+
readonly proposal: null;
|
|
371
|
+
readonly signatures: {};
|
|
372
|
+
}];
|
|
373
|
+
};
|
|
374
|
+
readonly dependencies: readonly [];
|
|
375
|
+
}, {
|
|
376
|
+
readonly from: "ACTIVE";
|
|
377
|
+
readonly to: "PENDING";
|
|
378
|
+
readonly eventName: "propose_add_signer";
|
|
379
|
+
readonly guard: {
|
|
380
|
+
readonly in: readonly [{
|
|
381
|
+
readonly var: "event.agent";
|
|
382
|
+
}, {
|
|
383
|
+
readonly var: "state.signers";
|
|
384
|
+
}];
|
|
385
|
+
};
|
|
386
|
+
readonly effect: {
|
|
387
|
+
readonly merge: readonly [{
|
|
388
|
+
readonly var: "state";
|
|
389
|
+
}, {
|
|
390
|
+
readonly proposal: {
|
|
391
|
+
readonly id: {
|
|
392
|
+
readonly var: "event.proposalId";
|
|
393
|
+
};
|
|
394
|
+
readonly actionType: "add_signer";
|
|
395
|
+
readonly payload: {
|
|
396
|
+
readonly newSigner: {
|
|
397
|
+
readonly var: "event.newSigner";
|
|
398
|
+
};
|
|
399
|
+
};
|
|
400
|
+
readonly proposer: {
|
|
401
|
+
readonly var: "event.agent";
|
|
402
|
+
};
|
|
403
|
+
readonly proposedAt: {
|
|
404
|
+
readonly var: "$timestamp";
|
|
405
|
+
};
|
|
406
|
+
readonly expiresAt: {
|
|
407
|
+
readonly "+": readonly [{
|
|
408
|
+
readonly var: "$timestamp";
|
|
409
|
+
}, {
|
|
410
|
+
readonly var: "state.proposalTTLMs";
|
|
411
|
+
}];
|
|
412
|
+
};
|
|
413
|
+
};
|
|
414
|
+
readonly signatures: {
|
|
415
|
+
readonly setKey: readonly [{}, {
|
|
416
|
+
readonly var: "event.agent";
|
|
417
|
+
}, {
|
|
418
|
+
readonly var: "$timestamp";
|
|
419
|
+
}];
|
|
420
|
+
};
|
|
421
|
+
}];
|
|
422
|
+
};
|
|
423
|
+
readonly dependencies: readonly [];
|
|
424
|
+
}, {
|
|
425
|
+
readonly from: "ACTIVE";
|
|
426
|
+
readonly to: "PENDING";
|
|
427
|
+
readonly eventName: "propose_remove_signer";
|
|
428
|
+
readonly guard: {
|
|
429
|
+
readonly and: readonly [{
|
|
430
|
+
readonly in: readonly [{
|
|
431
|
+
readonly var: "event.agent";
|
|
432
|
+
}, {
|
|
433
|
+
readonly var: "state.signers";
|
|
434
|
+
}];
|
|
435
|
+
}, {
|
|
436
|
+
readonly ">": readonly [{
|
|
437
|
+
readonly size: {
|
|
438
|
+
readonly var: "state.signers";
|
|
439
|
+
};
|
|
440
|
+
}, {
|
|
441
|
+
readonly var: "state.threshold";
|
|
442
|
+
}];
|
|
443
|
+
}];
|
|
444
|
+
};
|
|
445
|
+
readonly effect: {
|
|
446
|
+
readonly merge: readonly [{
|
|
447
|
+
readonly var: "state";
|
|
448
|
+
}, {
|
|
449
|
+
readonly proposal: {
|
|
450
|
+
readonly id: {
|
|
451
|
+
readonly var: "event.proposalId";
|
|
452
|
+
};
|
|
453
|
+
readonly actionType: "remove_signer";
|
|
454
|
+
readonly payload: {
|
|
455
|
+
readonly removeSigner: {
|
|
456
|
+
readonly var: "event.removeSigner";
|
|
457
|
+
};
|
|
458
|
+
};
|
|
459
|
+
readonly proposer: {
|
|
460
|
+
readonly var: "event.agent";
|
|
461
|
+
};
|
|
462
|
+
readonly proposedAt: {
|
|
463
|
+
readonly var: "$timestamp";
|
|
464
|
+
};
|
|
465
|
+
readonly expiresAt: {
|
|
466
|
+
readonly "+": readonly [{
|
|
467
|
+
readonly var: "$timestamp";
|
|
468
|
+
}, {
|
|
469
|
+
readonly var: "state.proposalTTLMs";
|
|
470
|
+
}];
|
|
471
|
+
};
|
|
472
|
+
};
|
|
473
|
+
readonly signatures: {
|
|
474
|
+
readonly setKey: readonly [{}, {
|
|
475
|
+
readonly var: "event.agent";
|
|
476
|
+
}, {
|
|
477
|
+
readonly var: "$timestamp";
|
|
478
|
+
}];
|
|
479
|
+
};
|
|
480
|
+
}];
|
|
481
|
+
};
|
|
482
|
+
readonly dependencies: readonly [];
|
|
483
|
+
}, {
|
|
484
|
+
readonly from: "ACTIVE";
|
|
485
|
+
readonly to: "PENDING";
|
|
486
|
+
readonly eventName: "propose_change_threshold";
|
|
487
|
+
readonly guard: {
|
|
488
|
+
readonly and: readonly [{
|
|
489
|
+
readonly in: readonly [{
|
|
490
|
+
readonly var: "event.agent";
|
|
491
|
+
}, {
|
|
492
|
+
readonly var: "state.signers";
|
|
493
|
+
}];
|
|
494
|
+
}, {
|
|
495
|
+
readonly ">=": readonly [{
|
|
496
|
+
readonly var: "event.newThreshold";
|
|
497
|
+
}, 1];
|
|
498
|
+
}, {
|
|
499
|
+
readonly "<=": readonly [{
|
|
500
|
+
readonly var: "event.newThreshold";
|
|
501
|
+
}, {
|
|
502
|
+
readonly size: {
|
|
503
|
+
readonly var: "state.signers";
|
|
504
|
+
};
|
|
505
|
+
}];
|
|
506
|
+
}];
|
|
507
|
+
};
|
|
508
|
+
readonly effect: {
|
|
509
|
+
readonly merge: readonly [{
|
|
510
|
+
readonly var: "state";
|
|
511
|
+
}, {
|
|
512
|
+
readonly proposal: {
|
|
513
|
+
readonly id: {
|
|
514
|
+
readonly var: "event.proposalId";
|
|
515
|
+
};
|
|
516
|
+
readonly actionType: "change_threshold";
|
|
517
|
+
readonly payload: {
|
|
518
|
+
readonly newThreshold: {
|
|
519
|
+
readonly var: "event.newThreshold";
|
|
520
|
+
};
|
|
521
|
+
};
|
|
522
|
+
readonly proposer: {
|
|
523
|
+
readonly var: "event.agent";
|
|
524
|
+
};
|
|
525
|
+
readonly proposedAt: {
|
|
526
|
+
readonly var: "$timestamp";
|
|
527
|
+
};
|
|
528
|
+
readonly expiresAt: {
|
|
529
|
+
readonly "+": readonly [{
|
|
530
|
+
readonly var: "$timestamp";
|
|
531
|
+
}, {
|
|
532
|
+
readonly var: "state.proposalTTLMs";
|
|
533
|
+
}];
|
|
534
|
+
};
|
|
535
|
+
};
|
|
536
|
+
readonly signatures: {
|
|
537
|
+
readonly setKey: readonly [{}, {
|
|
538
|
+
readonly var: "event.agent";
|
|
539
|
+
}, {
|
|
540
|
+
readonly var: "$timestamp";
|
|
541
|
+
}];
|
|
542
|
+
};
|
|
543
|
+
}];
|
|
544
|
+
};
|
|
545
|
+
readonly dependencies: readonly [];
|
|
546
|
+
}, {
|
|
547
|
+
readonly from: "PENDING";
|
|
548
|
+
readonly to: "ACTIVE";
|
|
549
|
+
readonly eventName: "apply_signer_change";
|
|
550
|
+
readonly guard: {
|
|
551
|
+
readonly and: readonly [{
|
|
552
|
+
readonly ">=": readonly [{
|
|
553
|
+
readonly size: {
|
|
554
|
+
readonly var: "state.signatures";
|
|
555
|
+
};
|
|
556
|
+
}, {
|
|
557
|
+
readonly var: "state.threshold";
|
|
558
|
+
}];
|
|
559
|
+
}, {
|
|
560
|
+
readonly in: readonly [{
|
|
561
|
+
readonly var: "state.proposal.actionType";
|
|
562
|
+
}, readonly ["add_signer", "remove_signer", "change_threshold"]];
|
|
563
|
+
}];
|
|
564
|
+
};
|
|
565
|
+
readonly effect: {
|
|
566
|
+
readonly if: readonly [{
|
|
567
|
+
readonly "===": readonly [{
|
|
568
|
+
readonly var: "state.proposal.actionType";
|
|
569
|
+
}, "add_signer"];
|
|
570
|
+
}, {
|
|
571
|
+
readonly merge: readonly [{
|
|
572
|
+
readonly var: "state";
|
|
573
|
+
}, {
|
|
574
|
+
readonly signers: {
|
|
575
|
+
readonly cat: readonly [{
|
|
576
|
+
readonly var: "state.signers";
|
|
577
|
+
}, readonly [{
|
|
578
|
+
readonly var: "state.proposal.payload.newSigner";
|
|
579
|
+
}]];
|
|
580
|
+
};
|
|
581
|
+
readonly proposal: null;
|
|
582
|
+
readonly signatures: {};
|
|
583
|
+
}];
|
|
584
|
+
}, {
|
|
585
|
+
readonly "===": readonly [{
|
|
586
|
+
readonly var: "state.proposal.actionType";
|
|
587
|
+
}, "remove_signer"];
|
|
588
|
+
}, {
|
|
589
|
+
readonly merge: readonly [{
|
|
590
|
+
readonly var: "state";
|
|
591
|
+
}, {
|
|
592
|
+
readonly signers: {
|
|
593
|
+
readonly filter: readonly [{
|
|
594
|
+
readonly var: "state.signers";
|
|
595
|
+
}, {
|
|
596
|
+
readonly "!==": readonly [{
|
|
597
|
+
readonly var: "";
|
|
598
|
+
}, {
|
|
599
|
+
readonly var: "state.proposal.payload.removeSigner";
|
|
600
|
+
}];
|
|
601
|
+
}];
|
|
602
|
+
};
|
|
603
|
+
readonly proposal: null;
|
|
604
|
+
readonly signatures: {};
|
|
605
|
+
}];
|
|
606
|
+
}, {
|
|
607
|
+
readonly merge: readonly [{
|
|
608
|
+
readonly var: "state";
|
|
609
|
+
}, {
|
|
610
|
+
readonly threshold: {
|
|
611
|
+
readonly var: "state.proposal.payload.newThreshold";
|
|
612
|
+
};
|
|
613
|
+
readonly proposal: null;
|
|
614
|
+
readonly signatures: {};
|
|
615
|
+
}];
|
|
616
|
+
}];
|
|
617
|
+
};
|
|
618
|
+
readonly dependencies: readonly [];
|
|
619
|
+
}, {
|
|
620
|
+
readonly from: "ACTIVE";
|
|
621
|
+
readonly to: "DISSOLVED";
|
|
622
|
+
readonly eventName: "dissolve";
|
|
623
|
+
readonly guard: {
|
|
624
|
+
readonly "===": readonly [{
|
|
625
|
+
readonly var: "event.signatureCount";
|
|
626
|
+
}, {
|
|
627
|
+
readonly size: {
|
|
628
|
+
readonly var: "state.signers";
|
|
629
|
+
};
|
|
630
|
+
}];
|
|
631
|
+
};
|
|
632
|
+
readonly effect: {
|
|
633
|
+
readonly merge: readonly [{
|
|
634
|
+
readonly var: "state";
|
|
635
|
+
}, {
|
|
636
|
+
readonly dissolvedAt: {
|
|
637
|
+
readonly var: "$timestamp";
|
|
638
|
+
};
|
|
639
|
+
readonly status: "DISSOLVED";
|
|
640
|
+
}];
|
|
641
|
+
};
|
|
642
|
+
readonly dependencies: readonly [];
|
|
643
|
+
}];
|
|
644
|
+
};
|