@ocap/tx-protocols 1.29.5 → 1.29.7
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/esm/execute.d.mts +5 -0
- package/esm/execute.mjs +61 -4
- package/esm/index.d.mts +737 -73
- package/esm/index.mjs +2 -1
- package/esm/pipes/write-ledger.d.mts +73 -0
- package/esm/pipes/write-ledger.mjs +97 -0
- package/esm/protocols/account/delegate.d.mts +52 -1
- package/esm/protocols/account/migrate.d.mts +15 -1
- package/esm/protocols/account/revoke-delegate.d.mts +14 -1
- package/esm/protocols/asset/acquire-v2.d.mts +39 -1
- package/esm/protocols/asset/acquire-v3.d.mts +43 -1
- package/esm/protocols/asset/calls/transfer-token.d.mts +4 -1
- package/esm/protocols/asset/calls/transfer.d.mts +4 -1
- package/esm/protocols/asset/consume.d.mts +14 -1
- package/esm/protocols/asset/create.d.mts +23 -1
- package/esm/protocols/asset/mint.d.mts +28 -1
- package/esm/protocols/asset/update.d.mts +15 -1
- package/esm/protocols/factory/create.d.mts +23 -1
- package/esm/protocols/governance/claim-stake.d.mts +24 -1
- package/esm/protocols/governance/return-stake.d.mts +20 -1
- package/esm/protocols/governance/revoke-stake.d.mts +20 -1
- package/esm/protocols/governance/slash-stake.d.mts +30 -1
- package/esm/protocols/governance/stake.d.mts +27 -1
- package/esm/protocols/rollup/claim-reward.d.mts +57 -1
- package/esm/protocols/rollup/close.d.mts +16 -1
- package/esm/protocols/rollup/create-block.d.mts +42 -1
- package/esm/protocols/rollup/create.d.mts +28 -1
- package/esm/protocols/rollup/join.d.mts +18 -1
- package/esm/protocols/rollup/leave.d.mts +16 -1
- package/esm/protocols/rollup/migrate.d.mts +11 -1
- package/esm/protocols/rollup/pause.d.mts +11 -1
- package/esm/protocols/rollup/resume.d.mts +11 -1
- package/esm/protocols/rollup/update.d.mts +11 -1
- package/esm/protocols/token/create.d.mts +14 -1
- package/esm/protocols/token/deposit-v2.d.mts +23 -1
- package/esm/protocols/token/withdraw-v2.d.mts +33 -1
- package/esm/protocols/token-factory/burn.d.mts +29 -1
- package/esm/protocols/token-factory/create.d.mts +16 -1
- package/esm/protocols/token-factory/mint.d.mts +27 -1
- package/esm/protocols/token-factory/update.d.mts +15 -1
- package/esm/protocols/trade/exchange-v2.d.mts +40 -1
- package/esm/protocols/trade/transfer-v2.d.mts +32 -1
- package/esm/protocols/trade/transfer-v3.d.mts +31 -1
- package/esm/util.d.mts +1 -1
- package/lib/execute.cjs +61 -4
- package/lib/execute.d.cts +5 -0
- package/lib/index.cjs +2 -0
- package/lib/index.d.cts +737 -73
- package/lib/pipes/write-ledger.cjs +102 -0
- package/lib/pipes/write-ledger.d.cts +73 -0
- package/lib/protocols/account/delegate.d.cts +52 -1
- package/lib/protocols/account/migrate.d.cts +15 -1
- package/lib/protocols/account/revoke-delegate.d.cts +14 -1
- package/lib/protocols/asset/acquire-v2.d.cts +39 -1
- package/lib/protocols/asset/acquire-v3.d.cts +43 -1
- package/lib/protocols/asset/calls/transfer-token.d.cts +4 -1
- package/lib/protocols/asset/calls/transfer.d.cts +4 -1
- package/lib/protocols/asset/consume.d.cts +14 -1
- package/lib/protocols/asset/create.d.cts +23 -1
- package/lib/protocols/asset/mint.d.cts +28 -1
- package/lib/protocols/asset/update.d.cts +15 -1
- package/lib/protocols/factory/create.d.cts +23 -1
- package/lib/protocols/governance/claim-stake.d.cts +24 -1
- package/lib/protocols/governance/return-stake.d.cts +20 -1
- package/lib/protocols/governance/revoke-stake.d.cts +20 -1
- package/lib/protocols/governance/slash-stake.d.cts +30 -1
- package/lib/protocols/governance/stake.d.cts +27 -1
- package/lib/protocols/rollup/claim-reward.d.cts +57 -1
- package/lib/protocols/rollup/close.d.cts +16 -1
- package/lib/protocols/rollup/create-block.d.cts +42 -1
- package/lib/protocols/rollup/create.d.cts +28 -1
- package/lib/protocols/rollup/join.d.cts +18 -1
- package/lib/protocols/rollup/leave.d.cts +16 -1
- package/lib/protocols/rollup/migrate.d.cts +11 -1
- package/lib/protocols/rollup/pause.d.cts +11 -1
- package/lib/protocols/rollup/resume.d.cts +11 -1
- package/lib/protocols/rollup/update.d.cts +11 -1
- package/lib/protocols/token/create.d.cts +14 -1
- package/lib/protocols/token/deposit-v2.d.cts +23 -1
- package/lib/protocols/token/withdraw-v2.d.cts +33 -1
- package/lib/protocols/token-factory/burn.d.cts +29 -1
- package/lib/protocols/token-factory/create.d.cts +16 -1
- package/lib/protocols/token-factory/mint.d.cts +27 -1
- package/lib/protocols/token-factory/update.d.cts +15 -1
- package/lib/protocols/trade/exchange-v2.d.cts +40 -1
- package/lib/protocols/trade/transfer-v2.d.cts +32 -1
- package/lib/protocols/trade/transfer-v3.d.cts +31 -1
- package/lib/util.d.cts +2 -2
- package/package.json +20 -19
package/esm/index.d.mts
CHANGED
|
@@ -1,4 +1,27 @@
|
|
|
1
|
+
import { TokenInput } from "./protocols/trade/transfer-v2.mjs";
|
|
2
|
+
import { MultiInput } from "./protocols/trade/transfer-v3.mjs";
|
|
3
|
+
import { TokenInput as TokenInput$1 } from "./protocols/trade/exchange-v2.mjs";
|
|
4
|
+
import { TokenInput as TokenInput$2 } from "./protocols/asset/acquire-v2.mjs";
|
|
5
|
+
import { MultiInput as MultiInput$1, TokenInput as TokenInput$3 } from "./protocols/asset/acquire-v3.mjs";
|
|
6
|
+
import { FormattedFactoryProps } from "./protocols/factory/create.mjs";
|
|
7
|
+
import { TokenChange } from "./protocols/token/deposit-v2.mjs";
|
|
8
|
+
import { TokenInput as TokenInput$4 } from "./protocols/token/withdraw-v2.mjs";
|
|
9
|
+
import { TokenInfoForVerification } from "./protocols/token-factory/update.mjs";
|
|
10
|
+
import { MultiInput as MultiInput$2 } from "./protocols/token-factory/mint.mjs";
|
|
11
|
+
import { MultiInput as MultiInput$3 } from "./protocols/token-factory/burn.mjs";
|
|
12
|
+
import { MultiInput as MultiInput$4 } from "./protocols/governance/stake.mjs";
|
|
13
|
+
import { MultiOutput, TokenCondition } from "./protocols/governance/revoke-stake.mjs";
|
|
14
|
+
import { MultiOutput as MultiOutput$1, TokenCondition as TokenCondition$1, TokenInput as TokenInput$5 } from "./protocols/governance/claim-stake.mjs";
|
|
15
|
+
import { MultiOutput as MultiOutput$2 } from "./protocols/governance/slash-stake.mjs";
|
|
16
|
+
import { MultiInput as MultiInput$5, TokenCondition as TokenCondition$2 } from "./protocols/governance/return-stake.mjs";
|
|
17
|
+
import { TokenChange as TokenChange$1 } from "./protocols/rollup/create-block.mjs";
|
|
18
|
+
import { TokenChange as TokenChange$2 } from "./protocols/rollup/claim-reward.mjs";
|
|
19
|
+
import { WriteLedger } from "./pipes/write-ledger.mjs";
|
|
20
|
+
import * as _ocap_tx_pipeline0 from "@ocap/tx-pipeline";
|
|
1
21
|
import * as states from "@ocap/state";
|
|
22
|
+
import * as _ocap_util0 from "@ocap/util";
|
|
23
|
+
import * as _ocap_message0 from "@ocap/message";
|
|
24
|
+
import * as _ocap_types0 from "@ocap/types";
|
|
2
25
|
|
|
3
26
|
//#region src/index.d.ts
|
|
4
27
|
interface ICreateExecutorOptions {
|
|
@@ -7,6 +30,7 @@ interface ICreateExecutorOptions {
|
|
|
7
30
|
cleanWorkingSet: boolean;
|
|
8
31
|
verifyHash: boolean;
|
|
9
32
|
context: unknown;
|
|
33
|
+
onCommit?: (commitHash: string) => void | Promise<void>;
|
|
10
34
|
}) => Promise<T>;
|
|
11
35
|
}
|
|
12
36
|
declare const createExecutor: ({
|
|
@@ -14,82 +38,722 @@ declare const createExecutor: ({
|
|
|
14
38
|
runAsLambda
|
|
15
39
|
}: ICreateExecutorOptions) => {
|
|
16
40
|
execute: (context: unknown, done?: (err: Error | null, res?: unknown) => void) => any;
|
|
17
|
-
transfer:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
41
|
+
transfer: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TTransferV2Tx> & Partial<_ocap_types0.IWithSender> & Partial<_ocap_types0.IWithReceiver> & Partial<_ocap_types0.IWithDelegator> & Partial<_ocap_types0.IWithDelegation> & {
|
|
42
|
+
assets?: string[];
|
|
43
|
+
tokens?: TokenInput[];
|
|
44
|
+
tokenAddress?: string[];
|
|
45
|
+
tokenConditions?: {
|
|
46
|
+
owner: string;
|
|
47
|
+
tokens: TokenInput[];
|
|
48
|
+
};
|
|
49
|
+
tokenStates?: _ocap_types0.ITokenState[];
|
|
50
|
+
assetStates?: _ocap_types0.IAssetState[];
|
|
51
|
+
receiver?: string;
|
|
52
|
+
receiverAddr?: string;
|
|
53
|
+
isDelegationChanged?: boolean;
|
|
54
|
+
}>;
|
|
55
|
+
transferV2: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TTransferV2Tx> & Partial<_ocap_types0.IWithSender> & Partial<_ocap_types0.IWithReceiver> & Partial<_ocap_types0.IWithDelegator> & Partial<_ocap_types0.IWithDelegation> & {
|
|
56
|
+
assets?: string[];
|
|
57
|
+
tokens?: TokenInput[];
|
|
58
|
+
tokenAddress?: string[];
|
|
59
|
+
tokenConditions?: {
|
|
60
|
+
owner: string;
|
|
61
|
+
tokens: TokenInput[];
|
|
62
|
+
};
|
|
63
|
+
tokenStates?: _ocap_types0.ITokenState[];
|
|
64
|
+
assetStates?: _ocap_types0.IAssetState[];
|
|
65
|
+
receiver?: string;
|
|
66
|
+
receiverAddr?: string;
|
|
67
|
+
isDelegationChanged?: boolean;
|
|
68
|
+
}>;
|
|
69
|
+
transferV3: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TTransferV3Tx> & Partial<_ocap_types0.IWithSender> & Partial<_ocap_types0.IWithSigners> & Partial<_ocap_types0.IWithReceivers> & {
|
|
70
|
+
inputs?: MultiInput[];
|
|
71
|
+
outputs?: MultiInput[];
|
|
72
|
+
senders?: string[];
|
|
73
|
+
receivers?: string[];
|
|
74
|
+
inputTokens?: string[];
|
|
75
|
+
inputAssets?: string[];
|
|
76
|
+
outputTokens?: string[];
|
|
77
|
+
outputAssets?: string[];
|
|
78
|
+
tokenStates?: _ocap_types0.ITokenState[];
|
|
79
|
+
assetStates?: _ocap_types0.IAssetState[];
|
|
80
|
+
}>;
|
|
81
|
+
exchangeV2: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TExchangeV2Tx> & _ocap_types0.IWithSender & _ocap_types0.IWithReceiver & Partial<_ocap_types0.IWithDelegator> & Partial<_ocap_types0.IWithSigners> & Partial<_ocap_types0.IWithDelegation> & {
|
|
82
|
+
senderAssets?: string[];
|
|
83
|
+
receiverAssets?: string[];
|
|
84
|
+
senderTokens?: TokenInput$1[];
|
|
85
|
+
receiverTokens?: TokenInput$1[];
|
|
86
|
+
tokenAddress?: string[];
|
|
87
|
+
senderTokenConditions?: {
|
|
88
|
+
owner: string;
|
|
89
|
+
tokens: TokenInput$1[];
|
|
90
|
+
};
|
|
91
|
+
receiverTokenConditions?: {
|
|
92
|
+
owner: string;
|
|
93
|
+
tokens: TokenInput$1[];
|
|
94
|
+
};
|
|
95
|
+
tokenStates?: _ocap_types0.ITokenState[];
|
|
96
|
+
receiver?: string;
|
|
97
|
+
priv?: {
|
|
98
|
+
senderAssets?: _ocap_types0.IAssetState[];
|
|
99
|
+
receiverAssets?: _ocap_types0.IAssetState[];
|
|
100
|
+
};
|
|
101
|
+
}>;
|
|
102
|
+
accountMigrate: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TAccountMigrateTx> & Partial<_ocap_types0.IWithSender> & {
|
|
103
|
+
receiverState?: _ocap_types0.IAccountState;
|
|
104
|
+
}>;
|
|
105
|
+
delegate: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TDelegateTx> & Partial<_ocap_types0.IWithSender> & Partial<_ocap_types0.IWithReceiver> & Partial<_ocap_types0.IWithDelegation> & {
|
|
106
|
+
formattedItx?: {
|
|
107
|
+
ops: Array<{
|
|
108
|
+
typeUrl: string;
|
|
109
|
+
limit?: {
|
|
110
|
+
tokens?: Array<{
|
|
111
|
+
rate?: {
|
|
112
|
+
anchor?: number;
|
|
113
|
+
};
|
|
114
|
+
[key: string]: unknown;
|
|
115
|
+
}>;
|
|
116
|
+
assets?: Array<{
|
|
117
|
+
rate?: {
|
|
118
|
+
anchor?: number;
|
|
119
|
+
};
|
|
120
|
+
[key: string]: unknown;
|
|
121
|
+
}>;
|
|
122
|
+
};
|
|
123
|
+
[key: string]: unknown;
|
|
124
|
+
}>;
|
|
125
|
+
};
|
|
126
|
+
validatedItx?: {
|
|
127
|
+
opsList: Array<{
|
|
128
|
+
limit: {
|
|
129
|
+
tokensList: Array<{
|
|
130
|
+
txCount?: number;
|
|
131
|
+
txAllowance?: string;
|
|
132
|
+
totalAllowance?: string;
|
|
133
|
+
validUntil?: number;
|
|
134
|
+
rate?: unknown;
|
|
135
|
+
}>;
|
|
136
|
+
assetsList: Array<{
|
|
137
|
+
txCount?: number;
|
|
138
|
+
validUntil?: number;
|
|
139
|
+
rate?: unknown;
|
|
140
|
+
}>;
|
|
141
|
+
};
|
|
142
|
+
}>;
|
|
143
|
+
};
|
|
144
|
+
}>;
|
|
145
|
+
revokeDelegate: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TRevokeDelegateTx> & _ocap_types0.IWithSender & _ocap_types0.IWithDelegation & {
|
|
146
|
+
typeUrls?: string[];
|
|
147
|
+
}>;
|
|
148
|
+
createAsset: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TCreateAssetTx> & Partial<_ocap_types0.IWithSender> & Partial<_ocap_types0.IWithIssuer> & Partial<_ocap_types0.IWithDelegator> & Partial<_ocap_types0.IWithDelegation> & Partial<_ocap_types0.IWithAsset> & {
|
|
149
|
+
assetData?: _ocap_message0.AnyData | null;
|
|
150
|
+
signers?: string[];
|
|
151
|
+
factoryState?: _ocap_types0.IAssetFactoryState;
|
|
152
|
+
parentAsset?: _ocap_types0.IAssetState;
|
|
153
|
+
isDelegationChanged?: boolean;
|
|
154
|
+
}>;
|
|
155
|
+
updateAsset: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TUpdateAssetTx> & _ocap_types0.IWithAsset & _ocap_types0.IWithSender & Partial<_ocap_types0.IWithIssuer> & {
|
|
156
|
+
newData: _ocap_message0.AnyData | null;
|
|
157
|
+
}>;
|
|
158
|
+
consumeAsset: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TConsumeAssetTx> & _ocap_types0.IWithAsset & _ocap_types0.IWithSender & _ocap_types0.IWithIssuer & _ocap_types0.IWithOwner & _ocap_types0.IWithSigners & {
|
|
159
|
+
signers: string[];
|
|
160
|
+
}>;
|
|
161
|
+
acquireAssetV2: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TAcquireAssetV2Tx> & Partial<_ocap_types0.IWithSender> & Partial<_ocap_types0.IWithDelegator> & Partial<_ocap_types0.IWithFactory> & Partial<_ocap_types0.IWithOwner> & Partial<_ocap_types0.IWithAsset> & Partial<_ocap_types0.IWithDelegation> & {
|
|
162
|
+
duplicateAsset?: _ocap_types0.IAssetState;
|
|
163
|
+
factoryOwnerState?: _ocap_types0.IAccountState;
|
|
164
|
+
issuerStates?: _ocap_types0.IAccountState[];
|
|
165
|
+
issuerState?: _ocap_types0.IAccountState;
|
|
166
|
+
assetStates?: _ocap_types0.IAssetState[];
|
|
167
|
+
expectedFactoryStates?: _ocap_types0.IAssetFactoryState[];
|
|
168
|
+
tokenAddress?: string[];
|
|
169
|
+
tokenStates?: _ocap_types0.ITokenState[];
|
|
170
|
+
factoryTokens?: TokenInput$2[];
|
|
171
|
+
assetOwner?: _ocap_types0.IAccountState;
|
|
172
|
+
isDelegationChanged?: boolean;
|
|
173
|
+
mintedAsset?: Record<string, unknown>;
|
|
174
|
+
mintedAddress?: string;
|
|
175
|
+
tokenUpdates?: Record<string, string>;
|
|
176
|
+
}>;
|
|
177
|
+
acquireAssetV3: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TAcquireAssetV3Tx> & Partial<_ocap_types0.IWithSender> & Partial<_ocap_types0.IWithSigners> & Partial<_ocap_types0.IWithFactory> & Partial<_ocap_types0.IWithOwner> & Partial<_ocap_types0.IWithReceiver> & Partial<_ocap_types0.IWithAsset> & {
|
|
178
|
+
duplicateAsset?: _ocap_types0.IAssetState;
|
|
179
|
+
inputs?: MultiInput$1[];
|
|
180
|
+
senders?: string[];
|
|
181
|
+
tokens?: string[];
|
|
182
|
+
assets?: string[];
|
|
183
|
+
tokenAddress?: string[];
|
|
184
|
+
factoryOwnerState?: _ocap_types0.IAccountState;
|
|
185
|
+
issuerStates?: _ocap_types0.IAccountState[];
|
|
186
|
+
issuerState?: _ocap_types0.IAccountState;
|
|
187
|
+
factoryTokens?: TokenInput$3[];
|
|
188
|
+
tokenStates?: _ocap_types0.ITokenState[];
|
|
189
|
+
assetStates?: _ocap_types0.IAssetState[];
|
|
190
|
+
expectedFactoryStates?: _ocap_types0.IAssetFactoryState[];
|
|
191
|
+
mintedAsset?: Record<string, unknown>;
|
|
192
|
+
mintedAddress?: string;
|
|
193
|
+
tokenUpdates?: Record<string, string>;
|
|
194
|
+
}>;
|
|
195
|
+
mintAsset: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TMintAssetTx> & Partial<_ocap_types0.IWithSender> & Partial<_ocap_types0.IWithFactory> & Partial<_ocap_types0.IWithOwner> & Partial<_ocap_types0.IWithReceiver> & {
|
|
196
|
+
duplicateAsset?: _ocap_types0.IAssetState;
|
|
197
|
+
factoryOwnerState?: _ocap_types0.IAccountState;
|
|
198
|
+
issuerStates?: _ocap_types0.IAccountState[];
|
|
199
|
+
assetStates?: _ocap_types0.IAssetState[];
|
|
200
|
+
expectedFactoryStates?: _ocap_types0.IAssetFactoryState[];
|
|
201
|
+
mintedAsset?: Record<string, unknown>;
|
|
202
|
+
mintedAddress?: string;
|
|
203
|
+
ownerAddress?: string;
|
|
204
|
+
}>;
|
|
205
|
+
createFactory: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TCreateFactoryTx> & Partial<_ocap_types0.IWithSender> & Partial<_ocap_types0.IWithDelegator> & Partial<_ocap_types0.IWithDelegation> & Partial<_ocap_types0.IWithFactory> & {
|
|
206
|
+
factoryProps?: FormattedFactoryProps;
|
|
207
|
+
tokenStates?: _ocap_types0.ITokenState[];
|
|
208
|
+
inputAssetStates?: _ocap_types0.IAssetState[];
|
|
209
|
+
inputFactoryStates?: _ocap_types0.IAssetFactoryState[];
|
|
210
|
+
issuerStates?: _ocap_types0.IAccountState[];
|
|
211
|
+
isDelegationChanged?: boolean;
|
|
212
|
+
}>;
|
|
213
|
+
createToken: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TCreateTokenTx> & Partial<_ocap_types0.IWithSender> & Partial<_ocap_types0.IWithDelegator> & Partial<_ocap_types0.IWithDelegation> & Partial<_ocap_types0.IWithToken> & {
|
|
214
|
+
isDelegationChanged?: boolean;
|
|
215
|
+
}>;
|
|
216
|
+
depositTokenV2: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TDepositTokenV2Tx> & Partial<_ocap_types0.IWithSender> & Partial<_ocap_types0.IWithSigners> & Partial<_ocap_types0.IWithRollup> & Partial<_ocap_types0.IWithToken> & Partial<_ocap_types0.IWithStake> & Partial<_ocap_types0.IWithEvidence> & {
|
|
217
|
+
stakeAddress?: string;
|
|
218
|
+
lockerAddress?: string;
|
|
219
|
+
lockerState?: _ocap_types0.IStakeState;
|
|
220
|
+
signers?: string[];
|
|
221
|
+
stakeStates?: _ocap_types0.IStakeState[];
|
|
222
|
+
updatedAccounts?: TokenChange[];
|
|
223
|
+
}>;
|
|
224
|
+
withdrawTokenV2: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TWithdrawTokenV2Tx> & _ocap_types0.IWithSender & Partial<_ocap_types0.IWithSigners> & Partial<_ocap_types0.IWithRollup> & Partial<_ocap_types0.IWithToken> & Partial<_ocap_types0.IWithStake> & {
|
|
225
|
+
signers?: string[];
|
|
226
|
+
stakeAddress?: string;
|
|
227
|
+
lockerAddress?: string;
|
|
228
|
+
lockerState?: _ocap_types0.IStakeState;
|
|
229
|
+
tokenConditions?: {
|
|
230
|
+
owner: string;
|
|
231
|
+
tokens: TokenInput$4[];
|
|
232
|
+
};
|
|
233
|
+
stakeStates?: _ocap_types0.IStakeState[];
|
|
234
|
+
updatedAccounts?: Array<{
|
|
235
|
+
address: string;
|
|
236
|
+
token: string;
|
|
237
|
+
delta: string;
|
|
238
|
+
action: string;
|
|
239
|
+
}>;
|
|
240
|
+
}>;
|
|
241
|
+
createTokenFactory: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TCreateTokenFactoryTx> & Partial<_ocap_types0.IWithSender> & Partial<_ocap_types0.IWithDelegator> & Partial<_ocap_types0.IWithDelegation> & Partial<_ocap_types0.IWithStake> & Partial<_ocap_types0.IWithToken> & Partial<_ocap_types0.IWithTokenFactory> & {
|
|
242
|
+
stakeAddress?: string;
|
|
243
|
+
isDelegationChanged?: boolean;
|
|
244
|
+
}>;
|
|
245
|
+
updateTokenFactory: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TUpdateTokenFactoryTx> & _ocap_types0.IWithSender & _ocap_types0.IWithTokenFactory & _ocap_types0.IWithToken & Partial<_ocap_types0.IWithDelegator> & Partial<_ocap_types0.IWithDelegation> & {
|
|
246
|
+
isDelegationChanged?: boolean;
|
|
247
|
+
tokenInfoForVerification?: TokenInfoForVerification;
|
|
248
|
+
}>;
|
|
249
|
+
mintToken: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TMintTokenTx> & Partial<_ocap_types0.IWithSender> & Partial<_ocap_types0.IWithReceiver> & Partial<_ocap_types0.IWithOwner> & Partial<_ocap_types0.IWithSigners> & _ocap_types0.IWithTokenFactory & _ocap_types0.IWithToken & Partial<_ocap_types0.IWithTokens> & {
|
|
250
|
+
inputs?: MultiInput$2[];
|
|
251
|
+
senders?: string[];
|
|
252
|
+
tokens?: string[];
|
|
253
|
+
reserveAmount?: string;
|
|
254
|
+
reserveFee?: string;
|
|
255
|
+
inputChanges?: Array<{
|
|
256
|
+
address: string;
|
|
257
|
+
token: string;
|
|
258
|
+
delta: string;
|
|
259
|
+
}>;
|
|
260
|
+
}>;
|
|
261
|
+
burnToken: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TBurnTokenTx> & Partial<_ocap_types0.IWithSender> & Partial<_ocap_types0.IWithReceiver> & Partial<_ocap_types0.IWithOwner> & Partial<_ocap_types0.IWithSigners> & _ocap_types0.IWithTokenFactory & _ocap_types0.IWithToken & Partial<_ocap_types0.IWithTokens> & {
|
|
262
|
+
inputs?: MultiInput$3[];
|
|
263
|
+
senders?: string[];
|
|
264
|
+
tokens?: string[];
|
|
265
|
+
burnAmount?: string;
|
|
266
|
+
reserveAmount?: string;
|
|
267
|
+
reserveFee?: string;
|
|
268
|
+
inputChanges?: {
|
|
269
|
+
address: string;
|
|
270
|
+
token: string;
|
|
271
|
+
delta: string;
|
|
272
|
+
}[];
|
|
273
|
+
}>;
|
|
274
|
+
stake: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TStakeTx> & Partial<_ocap_types0.IWithSender> & Partial<_ocap_types0.IWithSigners> & Partial<_ocap_types0.IWithReceiver> & Partial<_ocap_types0.IWithStake> & Partial<_ocap_types0.IWithTokens> & Partial<_ocap_types0.IWithAssets> & {
|
|
275
|
+
inputs?: MultiInput$4[];
|
|
276
|
+
senders?: string[];
|
|
277
|
+
tokens?: string[];
|
|
278
|
+
assets?: string[];
|
|
279
|
+
slasherStates?: _ocap_types0.IAccountState[];
|
|
280
|
+
isGasStake?: boolean;
|
|
281
|
+
revokeWaitingPeriod?: number;
|
|
282
|
+
slashers?: string[];
|
|
283
|
+
}>;
|
|
284
|
+
revokeStake: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TRevokeStakeTx> & _ocap_types0.IWithSender & _ocap_types0.IWithStake & Partial<_ocap_types0.IWithReceivers> & Partial<_ocap_types0.IWithTokens> & Partial<_ocap_types0.IWithAssets> & {
|
|
285
|
+
outputs?: MultiOutput[];
|
|
286
|
+
receivers?: string[];
|
|
287
|
+
tokens?: string[];
|
|
288
|
+
assets?: string[];
|
|
289
|
+
tokenCondition?: TokenCondition;
|
|
290
|
+
}>;
|
|
291
|
+
claimStake: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TClaimStakeTx> & _ocap_types0.IWithSender & _ocap_types0.IWithStake & Partial<_ocap_types0.IWithEvidence> & Partial<_ocap_types0.IWithReceivers> & Partial<_ocap_types0.IWithTokens> & Partial<_ocap_types0.IWithAssets> & {
|
|
292
|
+
txState?: _ocap_types0.ITxState;
|
|
293
|
+
outputs?: MultiOutput$1[];
|
|
294
|
+
receivers?: string[];
|
|
295
|
+
tokens?: string[];
|
|
296
|
+
assets?: string[];
|
|
297
|
+
tokenCondition?: TokenCondition$1;
|
|
298
|
+
revokedTokens?: TokenInput$5[];
|
|
299
|
+
}>;
|
|
300
|
+
slashStake: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TSlashStakeTx> & _ocap_types0.IWithSender & _ocap_types0.IWithStake & Partial<_ocap_types0.IWithReceivers> & Partial<_ocap_types0.IWithTokens> & Partial<_ocap_types0.IWithAssets> & Partial<_ocap_types0.IWithLocked> & {
|
|
301
|
+
outputs?: MultiOutput$2[];
|
|
302
|
+
receivers?: string[];
|
|
303
|
+
tokens?: string[];
|
|
304
|
+
assets?: string[];
|
|
305
|
+
slasherStates?: _ocap_types0.IAccountState[];
|
|
306
|
+
tokenCondition?: {
|
|
307
|
+
owner: string;
|
|
308
|
+
tokens: Array<{
|
|
309
|
+
address: string;
|
|
310
|
+
value: _ocap_util0.BN;
|
|
311
|
+
}>;
|
|
312
|
+
};
|
|
313
|
+
}>;
|
|
314
|
+
returnStake: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TReturnStakeTx> & _ocap_types0.IWithSender & _ocap_types0.IWithStake & Partial<_ocap_types0.IWithReceivers> & Partial<_ocap_types0.IWithTokens> & Partial<_ocap_types0.IWithAssets> & Partial<_ocap_types0.IWithLocked> & {
|
|
315
|
+
outputs?: MultiInput$5[];
|
|
316
|
+
receivers?: string[];
|
|
317
|
+
tokens?: string[];
|
|
318
|
+
assets?: string[];
|
|
319
|
+
tokenCondition?: TokenCondition$2;
|
|
320
|
+
}>;
|
|
321
|
+
createRollup: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TCreateRollupTx> & _ocap_types0.IWithSender & Partial<_ocap_types0.IWithToken> & Partial<_ocap_types0.IWithDelegator> & Partial<_ocap_types0.IWithDelegation> & {
|
|
322
|
+
formattedItx?: _ocap_types0.TCreateRollupTx & {
|
|
323
|
+
seedValidators: _ocap_types0.IRollupValidator[];
|
|
324
|
+
};
|
|
325
|
+
rollupData?: unknown;
|
|
326
|
+
seedValidators?: string[];
|
|
327
|
+
validatorStates?: _ocap_types0.IAccountState[];
|
|
328
|
+
tokenState?: _ocap_types0.ITokenState;
|
|
329
|
+
rollupState?: _ocap_types0.IRollupState | null;
|
|
330
|
+
isDelegationChanged?: boolean;
|
|
331
|
+
}>;
|
|
332
|
+
updateRollup: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TUpdateRollupTx> & _ocap_types0.IWithRollup & _ocap_types0.IWithSender & _ocap_types0.IWithSigners>;
|
|
333
|
+
joinRollup: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TJoinRollupTx> & _ocap_types0.IWithRollup & _ocap_types0.IWithSender & _ocap_types0.IWithSigners & _ocap_types0.IWithStake & {
|
|
334
|
+
evidenceState?: _ocap_types0.IEvidenceState | null;
|
|
335
|
+
newValidator?: _ocap_types0.IRollupValidator;
|
|
336
|
+
validatorsHash?: string;
|
|
337
|
+
}>;
|
|
338
|
+
leaveRollup: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TLeaveRollupTx> & _ocap_types0.IWithRollup & _ocap_types0.IWithSender & _ocap_types0.IWithSigners & _ocap_types0.IWithStake & {
|
|
339
|
+
validatorsHash?: string;
|
|
340
|
+
evidenceState?: _ocap_types0.IEvidenceState | null;
|
|
341
|
+
}>;
|
|
342
|
+
pauseRollup: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TPauseRollupTx> & _ocap_types0.IWithRollup & _ocap_types0.IWithSender & _ocap_types0.IWithSigners>;
|
|
343
|
+
closeRollup: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TCloseRollupTx> & _ocap_types0.IWithRollup & _ocap_types0.IWithSender & _ocap_types0.IWithSigners & {
|
|
344
|
+
stakeAddresses?: string[];
|
|
345
|
+
stakeStates?: _ocap_types0.IStakeState[];
|
|
346
|
+
}>;
|
|
347
|
+
resumeRollup: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TResumeRollupTx> & _ocap_types0.IWithRollup & _ocap_types0.IWithSender & _ocap_types0.IWithSigners>;
|
|
348
|
+
createRollupBlock: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TCreateRollupBlockTx> & _ocap_types0.IWithRollup & _ocap_types0.IWithSender & _ocap_types0.IWithSigners & _ocap_types0.IWithStakes & {
|
|
349
|
+
formattedItx?: Record<string, unknown>;
|
|
350
|
+
previousBlock?: _ocap_types0.IRollupBlock | null;
|
|
351
|
+
newBlock?: _ocap_types0.IRollupBlock | null;
|
|
352
|
+
tokenState?: _ocap_types0.ITokenState;
|
|
353
|
+
txStates?: _ocap_types0.ITxState[];
|
|
354
|
+
stakeAddresses?: string[];
|
|
355
|
+
senders?: string[];
|
|
356
|
+
senderStates?: _ocap_types0.IAccountState[];
|
|
357
|
+
accountUpdates?: Record<string, TokenChange$1>;
|
|
358
|
+
stakeUpdates?: Record<string, TokenChange$1>;
|
|
359
|
+
rewardAmount?: _ocap_util0.BN;
|
|
360
|
+
mintedAmount?: _ocap_util0.BN;
|
|
361
|
+
burnedAmount?: _ocap_util0.BN;
|
|
362
|
+
newSenderStates?: _ocap_types0.IAccountState[];
|
|
363
|
+
createdRollupBlock?: _ocap_types0.IRollupBlock;
|
|
364
|
+
}>;
|
|
365
|
+
claimBlockReward: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TClaimBlockRewardTx> & _ocap_types0.IWithRollup & _ocap_types0.IWithSender & _ocap_types0.IWithSigners & {
|
|
366
|
+
lockerAddress?: string;
|
|
367
|
+
evidenceSeen?: _ocap_types0.IEvidenceState | null;
|
|
368
|
+
blockClaimed?: _ocap_types0.IEvidenceState | null;
|
|
369
|
+
blockState?: _ocap_types0.IRollupBlock;
|
|
370
|
+
producerStakeAddress?: string;
|
|
371
|
+
lockerState?: _ocap_types0.IStakeState;
|
|
372
|
+
stakeState?: _ocap_types0.IStakeState;
|
|
373
|
+
tokenState?: _ocap_types0.ITokenState;
|
|
374
|
+
txs?: _ocap_types0.ITxState[];
|
|
375
|
+
changes?: {
|
|
376
|
+
account: Array<{
|
|
377
|
+
address: string;
|
|
378
|
+
delta: string;
|
|
379
|
+
action: string;
|
|
380
|
+
}>;
|
|
381
|
+
stake: Array<{
|
|
382
|
+
address: string;
|
|
383
|
+
delta: string;
|
|
384
|
+
action: string;
|
|
385
|
+
}>;
|
|
386
|
+
};
|
|
387
|
+
updates?: {
|
|
388
|
+
account: Record<string, TokenChange$2>;
|
|
389
|
+
stake: Record<string, TokenChange$2>;
|
|
390
|
+
};
|
|
391
|
+
accountStates?: _ocap_types0.IAccountState[];
|
|
392
|
+
missingAccounts?: string[];
|
|
393
|
+
missingAccountStates?: _ocap_types0.IAccountState[];
|
|
394
|
+
stakeStates?: _ocap_types0.IStakeState[];
|
|
395
|
+
}>;
|
|
396
|
+
migrateRollup: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TMigrateRollupTx> & _ocap_types0.IWithRollup & _ocap_types0.IWithSender & _ocap_types0.IWithSigners>;
|
|
53
397
|
};
|
|
54
398
|
declare const defaultExecutor: {
|
|
55
399
|
execute: (context: unknown, done?: (err: Error | null, res?: unknown) => void) => any;
|
|
56
|
-
transfer:
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
400
|
+
transfer: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TTransferV2Tx> & Partial<_ocap_types0.IWithSender> & Partial<_ocap_types0.IWithReceiver> & Partial<_ocap_types0.IWithDelegator> & Partial<_ocap_types0.IWithDelegation> & {
|
|
401
|
+
assets?: string[];
|
|
402
|
+
tokens?: TokenInput[];
|
|
403
|
+
tokenAddress?: string[];
|
|
404
|
+
tokenConditions?: {
|
|
405
|
+
owner: string;
|
|
406
|
+
tokens: TokenInput[];
|
|
407
|
+
};
|
|
408
|
+
tokenStates?: _ocap_types0.ITokenState[];
|
|
409
|
+
assetStates?: _ocap_types0.IAssetState[];
|
|
410
|
+
receiver?: string;
|
|
411
|
+
receiverAddr?: string;
|
|
412
|
+
isDelegationChanged?: boolean;
|
|
413
|
+
}>;
|
|
414
|
+
transferV2: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TTransferV2Tx> & Partial<_ocap_types0.IWithSender> & Partial<_ocap_types0.IWithReceiver> & Partial<_ocap_types0.IWithDelegator> & Partial<_ocap_types0.IWithDelegation> & {
|
|
415
|
+
assets?: string[];
|
|
416
|
+
tokens?: TokenInput[];
|
|
417
|
+
tokenAddress?: string[];
|
|
418
|
+
tokenConditions?: {
|
|
419
|
+
owner: string;
|
|
420
|
+
tokens: TokenInput[];
|
|
421
|
+
};
|
|
422
|
+
tokenStates?: _ocap_types0.ITokenState[];
|
|
423
|
+
assetStates?: _ocap_types0.IAssetState[];
|
|
424
|
+
receiver?: string;
|
|
425
|
+
receiverAddr?: string;
|
|
426
|
+
isDelegationChanged?: boolean;
|
|
427
|
+
}>;
|
|
428
|
+
transferV3: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TTransferV3Tx> & Partial<_ocap_types0.IWithSender> & Partial<_ocap_types0.IWithSigners> & Partial<_ocap_types0.IWithReceivers> & {
|
|
429
|
+
inputs?: MultiInput[];
|
|
430
|
+
outputs?: MultiInput[];
|
|
431
|
+
senders?: string[];
|
|
432
|
+
receivers?: string[];
|
|
433
|
+
inputTokens?: string[];
|
|
434
|
+
inputAssets?: string[];
|
|
435
|
+
outputTokens?: string[];
|
|
436
|
+
outputAssets?: string[];
|
|
437
|
+
tokenStates?: _ocap_types0.ITokenState[];
|
|
438
|
+
assetStates?: _ocap_types0.IAssetState[];
|
|
439
|
+
}>;
|
|
440
|
+
exchangeV2: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TExchangeV2Tx> & _ocap_types0.IWithSender & _ocap_types0.IWithReceiver & Partial<_ocap_types0.IWithDelegator> & Partial<_ocap_types0.IWithSigners> & Partial<_ocap_types0.IWithDelegation> & {
|
|
441
|
+
senderAssets?: string[];
|
|
442
|
+
receiverAssets?: string[];
|
|
443
|
+
senderTokens?: TokenInput$1[];
|
|
444
|
+
receiverTokens?: TokenInput$1[];
|
|
445
|
+
tokenAddress?: string[];
|
|
446
|
+
senderTokenConditions?: {
|
|
447
|
+
owner: string;
|
|
448
|
+
tokens: TokenInput$1[];
|
|
449
|
+
};
|
|
450
|
+
receiverTokenConditions?: {
|
|
451
|
+
owner: string;
|
|
452
|
+
tokens: TokenInput$1[];
|
|
453
|
+
};
|
|
454
|
+
tokenStates?: _ocap_types0.ITokenState[];
|
|
455
|
+
receiver?: string;
|
|
456
|
+
priv?: {
|
|
457
|
+
senderAssets?: _ocap_types0.IAssetState[];
|
|
458
|
+
receiverAssets?: _ocap_types0.IAssetState[];
|
|
459
|
+
};
|
|
460
|
+
}>;
|
|
461
|
+
accountMigrate: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TAccountMigrateTx> & Partial<_ocap_types0.IWithSender> & {
|
|
462
|
+
receiverState?: _ocap_types0.IAccountState;
|
|
463
|
+
}>;
|
|
464
|
+
delegate: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TDelegateTx> & Partial<_ocap_types0.IWithSender> & Partial<_ocap_types0.IWithReceiver> & Partial<_ocap_types0.IWithDelegation> & {
|
|
465
|
+
formattedItx?: {
|
|
466
|
+
ops: Array<{
|
|
467
|
+
typeUrl: string;
|
|
468
|
+
limit?: {
|
|
469
|
+
tokens?: Array<{
|
|
470
|
+
rate?: {
|
|
471
|
+
anchor?: number;
|
|
472
|
+
};
|
|
473
|
+
[key: string]: unknown;
|
|
474
|
+
}>;
|
|
475
|
+
assets?: Array<{
|
|
476
|
+
rate?: {
|
|
477
|
+
anchor?: number;
|
|
478
|
+
};
|
|
479
|
+
[key: string]: unknown;
|
|
480
|
+
}>;
|
|
481
|
+
};
|
|
482
|
+
[key: string]: unknown;
|
|
483
|
+
}>;
|
|
484
|
+
};
|
|
485
|
+
validatedItx?: {
|
|
486
|
+
opsList: Array<{
|
|
487
|
+
limit: {
|
|
488
|
+
tokensList: Array<{
|
|
489
|
+
txCount?: number;
|
|
490
|
+
txAllowance?: string;
|
|
491
|
+
totalAllowance?: string;
|
|
492
|
+
validUntil?: number;
|
|
493
|
+
rate?: unknown;
|
|
494
|
+
}>;
|
|
495
|
+
assetsList: Array<{
|
|
496
|
+
txCount?: number;
|
|
497
|
+
validUntil?: number;
|
|
498
|
+
rate?: unknown;
|
|
499
|
+
}>;
|
|
500
|
+
};
|
|
501
|
+
}>;
|
|
502
|
+
};
|
|
503
|
+
}>;
|
|
504
|
+
revokeDelegate: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TRevokeDelegateTx> & _ocap_types0.IWithSender & _ocap_types0.IWithDelegation & {
|
|
505
|
+
typeUrls?: string[];
|
|
506
|
+
}>;
|
|
507
|
+
createAsset: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TCreateAssetTx> & Partial<_ocap_types0.IWithSender> & Partial<_ocap_types0.IWithIssuer> & Partial<_ocap_types0.IWithDelegator> & Partial<_ocap_types0.IWithDelegation> & Partial<_ocap_types0.IWithAsset> & {
|
|
508
|
+
assetData?: _ocap_message0.AnyData | null;
|
|
509
|
+
signers?: string[];
|
|
510
|
+
factoryState?: _ocap_types0.IAssetFactoryState;
|
|
511
|
+
parentAsset?: _ocap_types0.IAssetState;
|
|
512
|
+
isDelegationChanged?: boolean;
|
|
513
|
+
}>;
|
|
514
|
+
updateAsset: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TUpdateAssetTx> & _ocap_types0.IWithAsset & _ocap_types0.IWithSender & Partial<_ocap_types0.IWithIssuer> & {
|
|
515
|
+
newData: _ocap_message0.AnyData | null;
|
|
516
|
+
}>;
|
|
517
|
+
consumeAsset: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TConsumeAssetTx> & _ocap_types0.IWithAsset & _ocap_types0.IWithSender & _ocap_types0.IWithIssuer & _ocap_types0.IWithOwner & _ocap_types0.IWithSigners & {
|
|
518
|
+
signers: string[];
|
|
519
|
+
}>;
|
|
520
|
+
acquireAssetV2: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TAcquireAssetV2Tx> & Partial<_ocap_types0.IWithSender> & Partial<_ocap_types0.IWithDelegator> & Partial<_ocap_types0.IWithFactory> & Partial<_ocap_types0.IWithOwner> & Partial<_ocap_types0.IWithAsset> & Partial<_ocap_types0.IWithDelegation> & {
|
|
521
|
+
duplicateAsset?: _ocap_types0.IAssetState;
|
|
522
|
+
factoryOwnerState?: _ocap_types0.IAccountState;
|
|
523
|
+
issuerStates?: _ocap_types0.IAccountState[];
|
|
524
|
+
issuerState?: _ocap_types0.IAccountState;
|
|
525
|
+
assetStates?: _ocap_types0.IAssetState[];
|
|
526
|
+
expectedFactoryStates?: _ocap_types0.IAssetFactoryState[];
|
|
527
|
+
tokenAddress?: string[];
|
|
528
|
+
tokenStates?: _ocap_types0.ITokenState[];
|
|
529
|
+
factoryTokens?: TokenInput$2[];
|
|
530
|
+
assetOwner?: _ocap_types0.IAccountState;
|
|
531
|
+
isDelegationChanged?: boolean;
|
|
532
|
+
mintedAsset?: Record<string, unknown>;
|
|
533
|
+
mintedAddress?: string;
|
|
534
|
+
tokenUpdates?: Record<string, string>;
|
|
535
|
+
}>;
|
|
536
|
+
acquireAssetV3: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TAcquireAssetV3Tx> & Partial<_ocap_types0.IWithSender> & Partial<_ocap_types0.IWithSigners> & Partial<_ocap_types0.IWithFactory> & Partial<_ocap_types0.IWithOwner> & Partial<_ocap_types0.IWithReceiver> & Partial<_ocap_types0.IWithAsset> & {
|
|
537
|
+
duplicateAsset?: _ocap_types0.IAssetState;
|
|
538
|
+
inputs?: MultiInput$1[];
|
|
539
|
+
senders?: string[];
|
|
540
|
+
tokens?: string[];
|
|
541
|
+
assets?: string[];
|
|
542
|
+
tokenAddress?: string[];
|
|
543
|
+
factoryOwnerState?: _ocap_types0.IAccountState;
|
|
544
|
+
issuerStates?: _ocap_types0.IAccountState[];
|
|
545
|
+
issuerState?: _ocap_types0.IAccountState;
|
|
546
|
+
factoryTokens?: TokenInput$3[];
|
|
547
|
+
tokenStates?: _ocap_types0.ITokenState[];
|
|
548
|
+
assetStates?: _ocap_types0.IAssetState[];
|
|
549
|
+
expectedFactoryStates?: _ocap_types0.IAssetFactoryState[];
|
|
550
|
+
mintedAsset?: Record<string, unknown>;
|
|
551
|
+
mintedAddress?: string;
|
|
552
|
+
tokenUpdates?: Record<string, string>;
|
|
553
|
+
}>;
|
|
554
|
+
mintAsset: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TMintAssetTx> & Partial<_ocap_types0.IWithSender> & Partial<_ocap_types0.IWithFactory> & Partial<_ocap_types0.IWithOwner> & Partial<_ocap_types0.IWithReceiver> & {
|
|
555
|
+
duplicateAsset?: _ocap_types0.IAssetState;
|
|
556
|
+
factoryOwnerState?: _ocap_types0.IAccountState;
|
|
557
|
+
issuerStates?: _ocap_types0.IAccountState[];
|
|
558
|
+
assetStates?: _ocap_types0.IAssetState[];
|
|
559
|
+
expectedFactoryStates?: _ocap_types0.IAssetFactoryState[];
|
|
560
|
+
mintedAsset?: Record<string, unknown>;
|
|
561
|
+
mintedAddress?: string;
|
|
562
|
+
ownerAddress?: string;
|
|
563
|
+
}>;
|
|
564
|
+
createFactory: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TCreateFactoryTx> & Partial<_ocap_types0.IWithSender> & Partial<_ocap_types0.IWithDelegator> & Partial<_ocap_types0.IWithDelegation> & Partial<_ocap_types0.IWithFactory> & {
|
|
565
|
+
factoryProps?: FormattedFactoryProps;
|
|
566
|
+
tokenStates?: _ocap_types0.ITokenState[];
|
|
567
|
+
inputAssetStates?: _ocap_types0.IAssetState[];
|
|
568
|
+
inputFactoryStates?: _ocap_types0.IAssetFactoryState[];
|
|
569
|
+
issuerStates?: _ocap_types0.IAccountState[];
|
|
570
|
+
isDelegationChanged?: boolean;
|
|
571
|
+
}>;
|
|
572
|
+
createToken: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TCreateTokenTx> & Partial<_ocap_types0.IWithSender> & Partial<_ocap_types0.IWithDelegator> & Partial<_ocap_types0.IWithDelegation> & Partial<_ocap_types0.IWithToken> & {
|
|
573
|
+
isDelegationChanged?: boolean;
|
|
574
|
+
}>;
|
|
575
|
+
depositTokenV2: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TDepositTokenV2Tx> & Partial<_ocap_types0.IWithSender> & Partial<_ocap_types0.IWithSigners> & Partial<_ocap_types0.IWithRollup> & Partial<_ocap_types0.IWithToken> & Partial<_ocap_types0.IWithStake> & Partial<_ocap_types0.IWithEvidence> & {
|
|
576
|
+
stakeAddress?: string;
|
|
577
|
+
lockerAddress?: string;
|
|
578
|
+
lockerState?: _ocap_types0.IStakeState;
|
|
579
|
+
signers?: string[];
|
|
580
|
+
stakeStates?: _ocap_types0.IStakeState[];
|
|
581
|
+
updatedAccounts?: TokenChange[];
|
|
582
|
+
}>;
|
|
583
|
+
withdrawTokenV2: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TWithdrawTokenV2Tx> & _ocap_types0.IWithSender & Partial<_ocap_types0.IWithSigners> & Partial<_ocap_types0.IWithRollup> & Partial<_ocap_types0.IWithToken> & Partial<_ocap_types0.IWithStake> & {
|
|
584
|
+
signers?: string[];
|
|
585
|
+
stakeAddress?: string;
|
|
586
|
+
lockerAddress?: string;
|
|
587
|
+
lockerState?: _ocap_types0.IStakeState;
|
|
588
|
+
tokenConditions?: {
|
|
589
|
+
owner: string;
|
|
590
|
+
tokens: TokenInput$4[];
|
|
591
|
+
};
|
|
592
|
+
stakeStates?: _ocap_types0.IStakeState[];
|
|
593
|
+
updatedAccounts?: Array<{
|
|
594
|
+
address: string;
|
|
595
|
+
token: string;
|
|
596
|
+
delta: string;
|
|
597
|
+
action: string;
|
|
598
|
+
}>;
|
|
599
|
+
}>;
|
|
600
|
+
createTokenFactory: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TCreateTokenFactoryTx> & Partial<_ocap_types0.IWithSender> & Partial<_ocap_types0.IWithDelegator> & Partial<_ocap_types0.IWithDelegation> & Partial<_ocap_types0.IWithStake> & Partial<_ocap_types0.IWithToken> & Partial<_ocap_types0.IWithTokenFactory> & {
|
|
601
|
+
stakeAddress?: string;
|
|
602
|
+
isDelegationChanged?: boolean;
|
|
603
|
+
}>;
|
|
604
|
+
updateTokenFactory: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TUpdateTokenFactoryTx> & _ocap_types0.IWithSender & _ocap_types0.IWithTokenFactory & _ocap_types0.IWithToken & Partial<_ocap_types0.IWithDelegator> & Partial<_ocap_types0.IWithDelegation> & {
|
|
605
|
+
isDelegationChanged?: boolean;
|
|
606
|
+
tokenInfoForVerification?: TokenInfoForVerification;
|
|
607
|
+
}>;
|
|
608
|
+
mintToken: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TMintTokenTx> & Partial<_ocap_types0.IWithSender> & Partial<_ocap_types0.IWithReceiver> & Partial<_ocap_types0.IWithOwner> & Partial<_ocap_types0.IWithSigners> & _ocap_types0.IWithTokenFactory & _ocap_types0.IWithToken & Partial<_ocap_types0.IWithTokens> & {
|
|
609
|
+
inputs?: MultiInput$2[];
|
|
610
|
+
senders?: string[];
|
|
611
|
+
tokens?: string[];
|
|
612
|
+
reserveAmount?: string;
|
|
613
|
+
reserveFee?: string;
|
|
614
|
+
inputChanges?: Array<{
|
|
615
|
+
address: string;
|
|
616
|
+
token: string;
|
|
617
|
+
delta: string;
|
|
618
|
+
}>;
|
|
619
|
+
}>;
|
|
620
|
+
burnToken: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TBurnTokenTx> & Partial<_ocap_types0.IWithSender> & Partial<_ocap_types0.IWithReceiver> & Partial<_ocap_types0.IWithOwner> & Partial<_ocap_types0.IWithSigners> & _ocap_types0.IWithTokenFactory & _ocap_types0.IWithToken & Partial<_ocap_types0.IWithTokens> & {
|
|
621
|
+
inputs?: MultiInput$3[];
|
|
622
|
+
senders?: string[];
|
|
623
|
+
tokens?: string[];
|
|
624
|
+
burnAmount?: string;
|
|
625
|
+
reserveAmount?: string;
|
|
626
|
+
reserveFee?: string;
|
|
627
|
+
inputChanges?: {
|
|
628
|
+
address: string;
|
|
629
|
+
token: string;
|
|
630
|
+
delta: string;
|
|
631
|
+
}[];
|
|
632
|
+
}>;
|
|
633
|
+
stake: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TStakeTx> & Partial<_ocap_types0.IWithSender> & Partial<_ocap_types0.IWithSigners> & Partial<_ocap_types0.IWithReceiver> & Partial<_ocap_types0.IWithStake> & Partial<_ocap_types0.IWithTokens> & Partial<_ocap_types0.IWithAssets> & {
|
|
634
|
+
inputs?: MultiInput$4[];
|
|
635
|
+
senders?: string[];
|
|
636
|
+
tokens?: string[];
|
|
637
|
+
assets?: string[];
|
|
638
|
+
slasherStates?: _ocap_types0.IAccountState[];
|
|
639
|
+
isGasStake?: boolean;
|
|
640
|
+
revokeWaitingPeriod?: number;
|
|
641
|
+
slashers?: string[];
|
|
642
|
+
}>;
|
|
643
|
+
revokeStake: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TRevokeStakeTx> & _ocap_types0.IWithSender & _ocap_types0.IWithStake & Partial<_ocap_types0.IWithReceivers> & Partial<_ocap_types0.IWithTokens> & Partial<_ocap_types0.IWithAssets> & {
|
|
644
|
+
outputs?: MultiOutput[];
|
|
645
|
+
receivers?: string[];
|
|
646
|
+
tokens?: string[];
|
|
647
|
+
assets?: string[];
|
|
648
|
+
tokenCondition?: TokenCondition;
|
|
649
|
+
}>;
|
|
650
|
+
claimStake: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TClaimStakeTx> & _ocap_types0.IWithSender & _ocap_types0.IWithStake & Partial<_ocap_types0.IWithEvidence> & Partial<_ocap_types0.IWithReceivers> & Partial<_ocap_types0.IWithTokens> & Partial<_ocap_types0.IWithAssets> & {
|
|
651
|
+
txState?: _ocap_types0.ITxState;
|
|
652
|
+
outputs?: MultiOutput$1[];
|
|
653
|
+
receivers?: string[];
|
|
654
|
+
tokens?: string[];
|
|
655
|
+
assets?: string[];
|
|
656
|
+
tokenCondition?: TokenCondition$1;
|
|
657
|
+
revokedTokens?: TokenInput$5[];
|
|
658
|
+
}>;
|
|
659
|
+
slashStake: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TSlashStakeTx> & _ocap_types0.IWithSender & _ocap_types0.IWithStake & Partial<_ocap_types0.IWithReceivers> & Partial<_ocap_types0.IWithTokens> & Partial<_ocap_types0.IWithAssets> & Partial<_ocap_types0.IWithLocked> & {
|
|
660
|
+
outputs?: MultiOutput$2[];
|
|
661
|
+
receivers?: string[];
|
|
662
|
+
tokens?: string[];
|
|
663
|
+
assets?: string[];
|
|
664
|
+
slasherStates?: _ocap_types0.IAccountState[];
|
|
665
|
+
tokenCondition?: {
|
|
666
|
+
owner: string;
|
|
667
|
+
tokens: Array<{
|
|
668
|
+
address: string;
|
|
669
|
+
value: _ocap_util0.BN;
|
|
670
|
+
}>;
|
|
671
|
+
};
|
|
672
|
+
}>;
|
|
673
|
+
returnStake: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TReturnStakeTx> & _ocap_types0.IWithSender & _ocap_types0.IWithStake & Partial<_ocap_types0.IWithReceivers> & Partial<_ocap_types0.IWithTokens> & Partial<_ocap_types0.IWithAssets> & Partial<_ocap_types0.IWithLocked> & {
|
|
674
|
+
outputs?: MultiInput$5[];
|
|
675
|
+
receivers?: string[];
|
|
676
|
+
tokens?: string[];
|
|
677
|
+
assets?: string[];
|
|
678
|
+
tokenCondition?: TokenCondition$2;
|
|
679
|
+
}>;
|
|
680
|
+
createRollup: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TCreateRollupTx> & _ocap_types0.IWithSender & Partial<_ocap_types0.IWithToken> & Partial<_ocap_types0.IWithDelegator> & Partial<_ocap_types0.IWithDelegation> & {
|
|
681
|
+
formattedItx?: _ocap_types0.TCreateRollupTx & {
|
|
682
|
+
seedValidators: _ocap_types0.IRollupValidator[];
|
|
683
|
+
};
|
|
684
|
+
rollupData?: unknown;
|
|
685
|
+
seedValidators?: string[];
|
|
686
|
+
validatorStates?: _ocap_types0.IAccountState[];
|
|
687
|
+
tokenState?: _ocap_types0.ITokenState;
|
|
688
|
+
rollupState?: _ocap_types0.IRollupState | null;
|
|
689
|
+
isDelegationChanged?: boolean;
|
|
690
|
+
}>;
|
|
691
|
+
updateRollup: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TUpdateRollupTx> & _ocap_types0.IWithRollup & _ocap_types0.IWithSender & _ocap_types0.IWithSigners>;
|
|
692
|
+
joinRollup: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TJoinRollupTx> & _ocap_types0.IWithRollup & _ocap_types0.IWithSender & _ocap_types0.IWithSigners & _ocap_types0.IWithStake & {
|
|
693
|
+
evidenceState?: _ocap_types0.IEvidenceState | null;
|
|
694
|
+
newValidator?: _ocap_types0.IRollupValidator;
|
|
695
|
+
validatorsHash?: string;
|
|
696
|
+
}>;
|
|
697
|
+
leaveRollup: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TLeaveRollupTx> & _ocap_types0.IWithRollup & _ocap_types0.IWithSender & _ocap_types0.IWithSigners & _ocap_types0.IWithStake & {
|
|
698
|
+
validatorsHash?: string;
|
|
699
|
+
evidenceState?: _ocap_types0.IEvidenceState | null;
|
|
700
|
+
}>;
|
|
701
|
+
pauseRollup: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TPauseRollupTx> & _ocap_types0.IWithRollup & _ocap_types0.IWithSender & _ocap_types0.IWithSigners>;
|
|
702
|
+
closeRollup: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TCloseRollupTx> & _ocap_types0.IWithRollup & _ocap_types0.IWithSender & _ocap_types0.IWithSigners & {
|
|
703
|
+
stakeAddresses?: string[];
|
|
704
|
+
stakeStates?: _ocap_types0.IStakeState[];
|
|
705
|
+
}>;
|
|
706
|
+
resumeRollup: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TResumeRollupTx> & _ocap_types0.IWithRollup & _ocap_types0.IWithSender & _ocap_types0.IWithSigners>;
|
|
707
|
+
createRollupBlock: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TCreateRollupBlockTx> & _ocap_types0.IWithRollup & _ocap_types0.IWithSender & _ocap_types0.IWithSigners & _ocap_types0.IWithStakes & {
|
|
708
|
+
formattedItx?: Record<string, unknown>;
|
|
709
|
+
previousBlock?: _ocap_types0.IRollupBlock | null;
|
|
710
|
+
newBlock?: _ocap_types0.IRollupBlock | null;
|
|
711
|
+
tokenState?: _ocap_types0.ITokenState;
|
|
712
|
+
txStates?: _ocap_types0.ITxState[];
|
|
713
|
+
stakeAddresses?: string[];
|
|
714
|
+
senders?: string[];
|
|
715
|
+
senderStates?: _ocap_types0.IAccountState[];
|
|
716
|
+
accountUpdates?: Record<string, TokenChange$1>;
|
|
717
|
+
stakeUpdates?: Record<string, TokenChange$1>;
|
|
718
|
+
rewardAmount?: _ocap_util0.BN;
|
|
719
|
+
mintedAmount?: _ocap_util0.BN;
|
|
720
|
+
burnedAmount?: _ocap_util0.BN;
|
|
721
|
+
newSenderStates?: _ocap_types0.IAccountState[];
|
|
722
|
+
createdRollupBlock?: _ocap_types0.IRollupBlock;
|
|
723
|
+
}>;
|
|
724
|
+
claimBlockReward: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TClaimBlockRewardTx> & _ocap_types0.IWithRollup & _ocap_types0.IWithSender & _ocap_types0.IWithSigners & {
|
|
725
|
+
lockerAddress?: string;
|
|
726
|
+
evidenceSeen?: _ocap_types0.IEvidenceState | null;
|
|
727
|
+
blockClaimed?: _ocap_types0.IEvidenceState | null;
|
|
728
|
+
blockState?: _ocap_types0.IRollupBlock;
|
|
729
|
+
producerStakeAddress?: string;
|
|
730
|
+
lockerState?: _ocap_types0.IStakeState;
|
|
731
|
+
stakeState?: _ocap_types0.IStakeState;
|
|
732
|
+
tokenState?: _ocap_types0.ITokenState;
|
|
733
|
+
txs?: _ocap_types0.ITxState[];
|
|
734
|
+
changes?: {
|
|
735
|
+
account: Array<{
|
|
736
|
+
address: string;
|
|
737
|
+
delta: string;
|
|
738
|
+
action: string;
|
|
739
|
+
}>;
|
|
740
|
+
stake: Array<{
|
|
741
|
+
address: string;
|
|
742
|
+
delta: string;
|
|
743
|
+
action: string;
|
|
744
|
+
}>;
|
|
745
|
+
};
|
|
746
|
+
updates?: {
|
|
747
|
+
account: Record<string, TokenChange$2>;
|
|
748
|
+
stake: Record<string, TokenChange$2>;
|
|
749
|
+
};
|
|
750
|
+
accountStates?: _ocap_types0.IAccountState[];
|
|
751
|
+
missingAccounts?: string[];
|
|
752
|
+
missingAccountStates?: _ocap_types0.IAccountState[];
|
|
753
|
+
stakeStates?: _ocap_types0.IStakeState[];
|
|
754
|
+
}>;
|
|
755
|
+
migrateRollup: _ocap_tx_pipeline0.Runner<_ocap_types0.IReadyContext<_ocap_types0.TMigrateRollupTx> & _ocap_types0.IWithRollup & _ocap_types0.IWithSender & _ocap_types0.IWithSigners>;
|
|
92
756
|
};
|
|
93
757
|
declare const execute: (context: unknown, done?: (err: Error | null, res?: unknown) => void) => any;
|
|
94
758
|
//#endregion
|
|
95
|
-
export { createExecutor, defaultExecutor as default, execute };
|
|
759
|
+
export { WriteLedger, createExecutor, defaultExecutor as default, execute };
|