@ocap/tx-protocols 1.31.9 → 1.32.1
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 +6 -1
- package/esm/execute.mjs +151 -9
- package/esm/gas-security-guard.d.mts +19 -1
- package/esm/gas-security-guard.mjs +44 -1
- package/esm/index.d.mts +8 -2
- package/esm/index.mjs +2 -2
- package/esm/pipes/ensure-cost.mjs +39 -2
- package/esm/pipes/write-ledger.mjs +18 -3
- package/esm/protocols/rollup/bridge-create.mjs +10 -4
- package/esm/protocols/rollup/bridge-governance-tx-binding.d.mts +7 -0
- package/esm/protocols/rollup/bridge-governance-tx-binding.mjs +212 -0
- package/esm/protocols/rollup/bridge-governance-vote.d.mts +49 -0
- package/esm/protocols/rollup/bridge-governance-vote.mjs +563 -0
- package/esm/protocols/rollup/bridge-migrate.mjs +9 -9
- package/esm/protocols/rollup/bridge-v2.d.mts +6 -0
- package/esm/protocols/rollup/bridge-v2.mjs +5 -0
- package/esm/protocols/rollup/create.mjs +5 -4
- package/esm/protocols/rollup/token-authority.d.mts +17 -0
- package/esm/protocols/rollup/token-authority.mjs +40 -0
- package/esm/protocols/rollup/update.d.mts +2 -0
- package/esm/protocols/rollup/update.mjs +28 -6
- package/lib/execute.cjs +151 -9
- package/lib/execute.d.cts +6 -1
- package/lib/gas-security-guard.cjs +44 -0
- package/lib/gas-security-guard.d.cts +19 -1
- package/lib/index.cjs +1 -0
- package/lib/index.d.cts +8 -2
- package/lib/pipes/ensure-cost.cjs +39 -2
- package/lib/pipes/write-ledger.cjs +18 -3
- package/lib/protocols/rollup/bridge-create.cjs +10 -4
- package/lib/protocols/rollup/bridge-governance-tx-binding.cjs +213 -0
- package/lib/protocols/rollup/bridge-governance-tx-binding.d.cts +7 -0
- package/lib/protocols/rollup/bridge-governance-vote.cjs +572 -0
- package/lib/protocols/rollup/bridge-governance-vote.d.cts +49 -0
- package/lib/protocols/rollup/bridge-migrate.cjs +9 -9
- package/lib/protocols/rollup/bridge-v2.cjs +5 -0
- package/lib/protocols/rollup/bridge-v2.d.cts +6 -0
- package/lib/protocols/rollup/create.cjs +5 -4
- package/lib/protocols/rollup/token-authority.cjs +42 -0
- package/lib/protocols/rollup/token-authority.d.cts +17 -0
- package/lib/protocols/rollup/update.cjs +28 -6
- package/lib/protocols/rollup/update.d.cts +2 -0
- package/package.json +16 -16
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_protocols_rollup_bridge_v2 = require('./bridge-v2.cjs');
|
|
3
|
+
const require_protocols_rollup_token_authority = require('./token-authority.cjs');
|
|
3
4
|
let _ocap_util_lib_error = require("@ocap/util/lib/error");
|
|
4
5
|
let _ocap_util_lib_get_list_field = require("@ocap/util/lib/get-list-field");
|
|
5
6
|
let _arcblock_did_util = require("@arcblock/did-util");
|
|
@@ -36,11 +37,7 @@ const migrateSchemaV2 = function MigrateSchemaV2(context, next) {
|
|
|
36
37
|
return next();
|
|
37
38
|
};
|
|
38
39
|
const TOKEN_AUTHORITY_ERROR = "Only the token authority can cancel a reserve migration";
|
|
39
|
-
|
|
40
|
-
function tokenAuthority(context, tokenState) {
|
|
41
|
-
const { config } = context;
|
|
42
|
-
return !!config?.token?.address && (0, _ocap_util.isSameDid)(context.rollupState.tokenAddress, config.token.address) ? config?.moderator?.address : tokenState?.issuer;
|
|
43
|
-
}
|
|
40
|
+
const ZERO_ETH_ADDRESS = "0x0000000000000000000000000000000000000000";
|
|
44
41
|
async function migrateBridgeChecks(context, next) {
|
|
45
42
|
if (!context.isBridgeV2) return next();
|
|
46
43
|
const { itx, statedb } = context;
|
|
@@ -51,8 +48,10 @@ async function migrateBridgeChecks(context, next) {
|
|
|
51
48
|
if (itx.type === "vault") {
|
|
52
49
|
if (state.closed) throw new _ocap_util_lib_error.CustomError("INVALID_TX", "The rollup is closed");
|
|
53
50
|
if (!_ocap_state.rollup.isBridgePausedAt(state, txSec)) throw new _ocap_util_lib_error.CustomError("INVALID_TX", "The rollup is not paused");
|
|
54
|
-
if (!itx.to || !_ocap_state.rollup.isValidRollupVaultAddress(itx.to, "EVM")) throw new _ocap_util_lib_error.CustomError("INVALID_TX", "Invalid itx: \"to\" Expected wallet type to be \"ethereum\"");
|
|
55
|
-
const
|
|
51
|
+
if (!itx.to || typeof itx.to !== "string" || itx.to !== itx.to.trim() || !_ocap_state.rollup.isValidRollupVaultAddress(itx.to, "EVM")) throw new _ocap_util_lib_error.CustomError("INVALID_TX", "Invalid itx: \"to\" Expected wallet type to be \"ethereum\"");
|
|
52
|
+
const nextVault = _ocap_state.rollup.bareEthAddress(itx.to);
|
|
53
|
+
if (nextVault === ZERO_ETH_ADDRESS || nextVault === _ocap_state.rollup.bareEthAddress(state.contractAddress) || nextVault === _ocap_state.rollup.bareEthAddress(body.gateway)) throw new _ocap_util_lib_error.CustomError("INVALID_TX", "vaultAddress must be a non-zero ethereum address distinct from contractAddress and gateway");
|
|
54
|
+
const same = (a) => _ocap_state.rollup.bareEthAddress(a) === nextVault;
|
|
56
55
|
if (state.vaultAddress && same(state.vaultAddress)) throw new _ocap_util_lib_error.CustomError("INVALID_TX", "can not migrate vault to self");
|
|
57
56
|
if ((state.vaultHistory || []).some(same)) throw new _ocap_util_lib_error.CustomError("INVALID_TX", "can not migrate vault to history vaults");
|
|
58
57
|
context.migratePlan = { kind: "vault" };
|
|
@@ -66,7 +65,8 @@ async function migrateBridgeChecks(context, next) {
|
|
|
66
65
|
].includes(action)) throw new _ocap_util_lib_error.CustomError("INVALID_TX", "itx.data.action must be announce, execute or cancel");
|
|
67
66
|
if (action === "cancel") {
|
|
68
67
|
if (!body.pendingMigration) throw new _ocap_util_lib_error.CustomError("INVALID_TX", "There is no pending reserve migration to cancel");
|
|
69
|
-
|
|
68
|
+
const tokenState = await statedb.token.get(state.tokenAddress, context);
|
|
69
|
+
context.tokenAuthority = await require_protocols_rollup_token_authority.resolveTokenAuthority(context, state.tokenAddress, tokenState);
|
|
70
70
|
context.migratePlan = { kind: "cancel" };
|
|
71
71
|
return next();
|
|
72
72
|
}
|
|
@@ -85,7 +85,7 @@ async function migrateBridgeChecks(context, next) {
|
|
|
85
85
|
if (_ocap_state.rollup.sameAddress(target.address, state.address)) throw new _ocap_util_lib_error.CustomError("INVALID_TX", "Can not migrate a reserve to its own bridge");
|
|
86
86
|
if (target.closed) throw new _ocap_util_lib_error.CustomError("INVALID_TX", "The migration target is closed");
|
|
87
87
|
if (target.tokenAddress !== state.tokenAddress) throw new _ocap_util_lib_error.CustomError("INVALID_TX", "The migration target bridges a different OCAP token");
|
|
88
|
-
if (tbody.ethChainId !== body.ethChainId || _ocap_state.rollup.
|
|
88
|
+
if (tbody.ethChainId !== body.ethChainId || _ocap_state.rollup.bareEthAddress(target.contractAddress) !== _ocap_state.rollup.bareEthAddress(state.contractAddress)) throw new _ocap_util_lib_error.CustomError("INVALID_TX", "The migration target bridges a different ethereum token");
|
|
89
89
|
if (_ocap_state.rollup.toSeconds(target.context?.genesisTime) < body.finalAt) throw new _ocap_util_lib_error.CustomError("INVALID_TX", "The migration target must be created after the source bridge is final");
|
|
90
90
|
context.migrateTarget = target;
|
|
91
91
|
context.migratePlan = { kind: action };
|
|
@@ -127,6 +127,11 @@ const VerifyBridgeAuthority = (rule) => function VerifyBridgeAuthorityPipe(conte
|
|
|
127
127
|
if (tx.delegator) return next(new _ocap_util_lib_error.CustomError("INVALID_SIGNATURE", "Delegation is not allowed for bridge governance"));
|
|
128
128
|
const signatures = (0, _ocap_util_lib_get_list_field.getListField)(context, "tx.signaturesList");
|
|
129
129
|
if (signatures.some((x) => Boolean(x.delegator))) return next(new _ocap_util_lib_error.CustomError("INVALID_SIGNATURE", "Delegation is not allowed for bridge governance"));
|
|
130
|
+
if (r.externalAuth) {
|
|
131
|
+
if (signatures.length > 0) return next(new _ocap_util_lib_error.CustomError("INVALID_SIGNATURE", "Outer tx.signatures are not allowed when governance proof is carried in itx.data"));
|
|
132
|
+
context.signers = [];
|
|
133
|
+
return next();
|
|
134
|
+
}
|
|
130
135
|
const signerList = signatures.map((x) => x.signer);
|
|
131
136
|
if (new Set(signerList.map(_ocap_state.rollup.lc)).size !== signerList.length) return next(new _ocap_util_lib_error.CustomError("INVALID_SIGNATURE", "Duplicate signers are not allowed"));
|
|
132
137
|
const signers = new Set([_ocap_state.rollup.lc(tx.from), ...signerList.map(_ocap_state.rollup.lc)]);
|
|
@@ -50,6 +50,12 @@ interface AuthorityRule {
|
|
|
50
50
|
owner: 'required' | 'alone' | 'none';
|
|
51
51
|
/** `threshold`: >= threshold of the active epoch; `twoThirds`: >= ceil(2n/3); `none` */
|
|
52
52
|
quorum: 'threshold' | 'twoThirds' | 'none';
|
|
53
|
+
/**
|
|
54
|
+
* When true (`evm-governance-sync` Path A and `govProposalVote`), governance authority was verified from EIP-712
|
|
55
|
+
* signatures inside `itx.data`: `tx.from` is a single gas-payer account (`tx.delegator` and outer `tx.signatures`
|
|
56
|
+
* are forbidden) and `context.signers` is set to `[]`.
|
|
57
|
+
*/
|
|
58
|
+
externalAuth?: boolean;
|
|
53
59
|
}
|
|
54
60
|
/**
|
|
55
61
|
* Governance authority of a v2 bridge. The signers are `tx.from` plus the signers of `tx.signatures` (their signatures
|
|
@@ -4,6 +4,7 @@ const require_util = require('../../util.cjs');
|
|
|
4
4
|
const require_pipes_ensure_cost = require('../../pipes/ensure-cost.cjs');
|
|
5
5
|
const require_pipes_ensure_gas = require('../../pipes/ensure-gas.cjs');
|
|
6
6
|
const require_protocols_rollup_bridge_v2 = require('./bridge-v2.cjs');
|
|
7
|
+
const require_protocols_rollup_token_authority = require('./token-authority.cjs');
|
|
7
8
|
const require_protocols_rollup_bridge_create = require('./bridge-create.cjs');
|
|
8
9
|
let _ocap_tx_pipeline = require("@ocap/tx-pipeline");
|
|
9
10
|
let _ocap_util_lib_error = require("@ocap/util/lib/error");
|
|
@@ -148,12 +149,12 @@ runner.use(_ocap_tx_pipeline.pipes.VerifyInfo([{
|
|
|
148
149
|
return (0, lodash_isEmpty.default)(ctx.tokenState?.foreignToken) === false;
|
|
149
150
|
}
|
|
150
151
|
}]));
|
|
151
|
-
runner.use((context, next) => {
|
|
152
|
+
runner.use(async (context, next) => {
|
|
152
153
|
const { tx, itx, config, tokenState } = context;
|
|
153
|
-
const
|
|
154
|
-
const authority =
|
|
154
|
+
const isOfficial = require_protocols_rollup_token_authority.isOfficialToken(config, itx.tokenAddress);
|
|
155
|
+
const authority = await require_protocols_rollup_token_authority.resolveTokenAuthority(context, itx.tokenAddress, tokenState);
|
|
155
156
|
const creators = [tx.from, tx.delegator].filter(Boolean);
|
|
156
|
-
if (!authority || !creators.some((x) => (0, _ocap_util.isSameDid)(x, authority))) return next(new _ocap_util_lib_error.CustomError("FORBIDDEN",
|
|
157
|
+
if (!authority || !creators.some((x) => (0, _ocap_util.isSameDid)(x, authority))) return next(new _ocap_util_lib_error.CustomError("FORBIDDEN", isOfficial ? "Only the chain moderator can create a rollup for the official token" : "Only the token issuer can create a rollup for the token"));
|
|
157
158
|
return next();
|
|
158
159
|
});
|
|
159
160
|
runner.use(async (context, next) => {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let _ocap_util = require("@ocap/util");
|
|
3
|
+
|
|
4
|
+
//#region src/protocols/rollup/token-authority.ts
|
|
5
|
+
/**
|
|
6
|
+
* The token authority of a rollup / bridge (#1411): the chain moderator for the official token, the token issuer for
|
|
7
|
+
* any other token. Shared by create_rollup, the v2 bridge create, and the reserve migration cancel (direct and by
|
|
8
|
+
* governance vote).
|
|
9
|
+
*/
|
|
10
|
+
/** Whether `tokenAddress` is the chain's official token. */
|
|
11
|
+
const isOfficialToken = (config, tokenAddress) => !!config?.token?.address && (0, _ocap_util.isSameDid)(tokenAddress, config.token.address);
|
|
12
|
+
/**
|
|
13
|
+
* The configured authority (`config.moderator.address` or `tokenState.issuer`) resolved along the account migration
|
|
14
|
+
* chain to its TERMINAL account (#1795). The configured address stays the old one after `account_migrate`, so only the
|
|
15
|
+
* account it migrated to (transitively) may act; the old address and any intermediate address of the chain are never
|
|
16
|
+
* an authority, and neither are the related addresses of the account.
|
|
17
|
+
*
|
|
18
|
+
* - not migrated: the configured address, unchanged;
|
|
19
|
+
* - no account at all: the configured address, unchanged (an account that does not exist was never migrated);
|
|
20
|
+
* - the chain is broken (cycle or a missing target): no authority, fail closed.
|
|
21
|
+
*/
|
|
22
|
+
async function resolveTokenAuthority(context, tokenAddress, tokenState) {
|
|
23
|
+
const { config, statedb } = context;
|
|
24
|
+
const configured = isOfficialToken(config, tokenAddress) ? config?.moderator?.address : tokenState?.issuer;
|
|
25
|
+
if (!configured) return void 0;
|
|
26
|
+
const terminal = await statedb.account.get(configured, {
|
|
27
|
+
...context,
|
|
28
|
+
traceMigration: true
|
|
29
|
+
});
|
|
30
|
+
if (terminal) {
|
|
31
|
+
if (!terminal.address) return void 0;
|
|
32
|
+
return (0, _ocap_util.isSameDid)(terminal.address, configured) ? configured : terminal.address;
|
|
33
|
+
}
|
|
34
|
+
return await statedb.account.get(configured, {
|
|
35
|
+
...context,
|
|
36
|
+
traceMigration: false
|
|
37
|
+
}) ? void 0 : configured;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
//#endregion
|
|
41
|
+
exports.isOfficialToken = isOfficialToken;
|
|
42
|
+
exports.resolveTokenAuthority = resolveTokenAuthority;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region src/protocols/rollup/token-authority.d.ts
|
|
2
|
+
type Ctx = any;
|
|
3
|
+
/** Whether `tokenAddress` is the chain's official token. */
|
|
4
|
+
declare const isOfficialToken: (config: Ctx, tokenAddress: string) => boolean;
|
|
5
|
+
/**
|
|
6
|
+
* The configured authority (`config.moderator.address` or `tokenState.issuer`) resolved along the account migration
|
|
7
|
+
* chain to its TERMINAL account (#1795). The configured address stays the old one after `account_migrate`, so only the
|
|
8
|
+
* account it migrated to (transitively) may act; the old address and any intermediate address of the chain are never
|
|
9
|
+
* an authority, and neither are the related addresses of the account.
|
|
10
|
+
*
|
|
11
|
+
* - not migrated: the configured address, unchanged;
|
|
12
|
+
* - no account at all: the configured address, unchanged (an account that does not exist was never migrated);
|
|
13
|
+
* - the chain is broken (cycle or a missing target): no authority, fail closed.
|
|
14
|
+
*/
|
|
15
|
+
declare function resolveTokenAuthority(context: Ctx, tokenAddress: string, tokenState?: Ctx): Promise<string | undefined>;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { isOfficialToken, resolveTokenAuthority };
|
|
@@ -7,6 +7,7 @@ const require_protocols_rollup_bridge_v2 = require('./bridge-v2.cjs');
|
|
|
7
7
|
const require_protocols_rollup_pipes_ensure_validator = require('./pipes/ensure-validator.cjs');
|
|
8
8
|
const require_protocols_rollup_pipes_verify_signers = require('./pipes/verify-signers.cjs');
|
|
9
9
|
const require_protocols_rollup_pipes_verify_status = require('./pipes/verify-status.cjs');
|
|
10
|
+
const require_protocols_rollup_bridge_governance_vote = require('./bridge-governance-vote.cjs');
|
|
10
11
|
let _ocap_tx_pipeline = require("@ocap/tx-pipeline");
|
|
11
12
|
let _ocap_util_lib_error = require("@ocap/util/lib/error");
|
|
12
13
|
let _ocap_state = require("@ocap/state");
|
|
@@ -67,13 +68,24 @@ runner.use(require_protocols_rollup_bridge_v2.loadBridge);
|
|
|
67
68
|
runner.use(require_protocols_rollup_bridge_v2.rejectRollupV1IfDisabled("update_rollup"));
|
|
68
69
|
runner.use(require_protocols_rollup_bridge_v2.ifV1(require_protocols_rollup_pipes_ensure_validator.default(true)));
|
|
69
70
|
runner.use(require_protocols_rollup_bridge_v2.ifV1(require_protocols_rollup_pipes_verify_status.default({ paused: false })));
|
|
70
|
-
runner.use((context, next) => {
|
|
71
|
+
runner.use(async (context, next) => {
|
|
71
72
|
if (!context.isBridgeV2) return next();
|
|
72
73
|
try {
|
|
73
74
|
_ocap_state.rollup.assertV1FieldsUnused(context.itx, "INVALID_ROLLUP_UPDATE");
|
|
74
|
-
|
|
75
|
+
const rawData = require_protocols_rollup_bridge_v2.readItxData(context.itx);
|
|
76
|
+
if (require_protocols_rollup_bridge_governance_vote.isGovProposalVotePayload(rawData)) {
|
|
77
|
+
context.govVotePlan = await require_protocols_rollup_bridge_governance_vote.planBridgeGovProposalVote(context, rawData);
|
|
78
|
+
return next();
|
|
79
|
+
}
|
|
80
|
+
context.bridgePlan = _ocap_state.rollup.planBridgePatch(context.bridgeBody, rawData, context.txSec, {
|
|
81
|
+
ocapChainId: context.config.chainId,
|
|
82
|
+
bridge: context.itx.rollup,
|
|
83
|
+
vaultAddress: context.rollupState.vaultAddress
|
|
84
|
+
});
|
|
75
85
|
} catch (err) {
|
|
76
|
-
|
|
86
|
+
const e = err;
|
|
87
|
+
if (e?.code === "INVALID_SIGNATURE") return next(new _ocap_util_lib_error.CustomError("INVALID_SIGNATURE", e.message || "Invalid governance signature"));
|
|
88
|
+
return next(new _ocap_util_lib_error.CustomError("INVALID_TX", e?.message || "Invalid rollup update"));
|
|
77
89
|
}
|
|
78
90
|
return next();
|
|
79
91
|
});
|
|
@@ -89,7 +101,13 @@ runner.use(require_protocols_rollup_bridge_v2.ifV1(require_protocols_rollup_pipe
|
|
|
89
101
|
allowSender: true
|
|
90
102
|
})));
|
|
91
103
|
runner.use(require_protocols_rollup_bridge_v2.VerifyBridgeAuthority((context) => {
|
|
92
|
-
const
|
|
104
|
+
const ctx = context;
|
|
105
|
+
if (ctx.govVotePlan || ctx.bridgePlan?.kind === "evm-governance-sync") return {
|
|
106
|
+
owner: "none",
|
|
107
|
+
quorum: "none",
|
|
108
|
+
externalAuth: true
|
|
109
|
+
};
|
|
110
|
+
const kind = ctx.bridgePlan?.kind;
|
|
93
111
|
if (kind === "propose-owner") return {
|
|
94
112
|
owner: "none",
|
|
95
113
|
quorum: "twoThirds"
|
|
@@ -121,16 +139,20 @@ runner.use(_ocap_tx_pipeline.pipes.VerifyAccountMigration({
|
|
|
121
139
|
stateKey: "senderState",
|
|
122
140
|
addressKey: "tx.from"
|
|
123
141
|
}));
|
|
124
|
-
runner.use(require_pipes_ensure_gas.default(() =>
|
|
142
|
+
runner.use(require_pipes_ensure_gas.default((context) => context.govVotePlan ? context.govVotePlan.gasEstimate : {
|
|
125
143
|
create: 0,
|
|
126
144
|
update: 2,
|
|
127
145
|
payment: 0
|
|
128
|
-
}))
|
|
146
|
+
}));
|
|
129
147
|
runner.use(require_pipes_ensure_cost.default({ attachSenderChanges: true }));
|
|
130
148
|
runner.use(_ocap_tx_pipeline.pipes.TakeStateSnapshot());
|
|
131
149
|
runner.use(async (context, next) => {
|
|
132
150
|
const { tx, itx, rollupState, statedb, senderState, senderUpdates, updateVaults } = context;
|
|
133
151
|
if (context.isBridgeV2) {
|
|
152
|
+
if (context.govVotePlan) {
|
|
153
|
+
await require_protocols_rollup_bridge_governance_vote.commitBridgeGovProposalVote(context, context.govVotePlan);
|
|
154
|
+
return next();
|
|
155
|
+
}
|
|
134
156
|
const updates = require_protocols_rollup_bridge_v2.bridgeUpdates(context, context.bridgePlan.body);
|
|
135
157
|
const [newSenderState$1, newRollupState$1] = await Promise.all([statedb.account.update(senderState.address, _ocap_state.account.update(senderState, {
|
|
136
158
|
nonce: tx.nonce,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BridgeCtxMixin } from "./bridge-v2.cjs";
|
|
2
|
+
import { BridgeGovVotePlan } from "./bridge-governance-vote.cjs";
|
|
2
3
|
import { rollup } from "@ocap/state";
|
|
3
4
|
import { IReadyContext, IWithRollup, IWithSender, IWithSigners, TUpdateRollupTx } from "@ocap/types";
|
|
4
5
|
import { Runner } from "@ocap/tx-pipeline";
|
|
@@ -12,6 +13,7 @@ import { Runner } from "@ocap/tx-pipeline";
|
|
|
12
13
|
*/
|
|
13
14
|
type Context = IReadyContext<TUpdateRollupTx> & IWithRollup & IWithSender & IWithSigners & BridgeCtxMixin & {
|
|
14
15
|
bridgePlan?: rollup.BridgePatchPlan;
|
|
16
|
+
govVotePlan?: BridgeGovVotePlan;
|
|
15
17
|
};
|
|
16
18
|
declare const runner: Runner<Context>;
|
|
17
19
|
//#endregion
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.
|
|
6
|
+
"version": "1.32.1",
|
|
7
7
|
"description": "Predefined tx pipeline sets to execute certain type of transactions",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"main": "./lib/index.cjs",
|
|
@@ -46,22 +46,22 @@
|
|
|
46
46
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
47
47
|
"license": "MIT",
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@arcblock/did": "1.
|
|
50
|
-
"@arcblock/did-util": "1.
|
|
51
|
-
"@arcblock/jwt": "1.
|
|
52
|
-
"@arcblock/validator": "1.
|
|
53
|
-
"@arcblock/vc": "1.
|
|
49
|
+
"@arcblock/did": "1.32.1",
|
|
50
|
+
"@arcblock/did-util": "1.32.1",
|
|
51
|
+
"@arcblock/jwt": "1.32.1",
|
|
52
|
+
"@arcblock/validator": "1.32.1",
|
|
53
|
+
"@arcblock/vc": "1.32.1",
|
|
54
54
|
"@blocklet/xss": "^0.3.7",
|
|
55
|
-
"@ocap/asset": "1.
|
|
56
|
-
"@ocap/client": "1.
|
|
57
|
-
"@ocap/mcrypto": "1.
|
|
58
|
-
"@ocap/merkle-tree": "1.
|
|
59
|
-
"@ocap/message": "1.
|
|
60
|
-
"@ocap/state": "1.
|
|
61
|
-
"@ocap/tx-pipeline": "1.
|
|
62
|
-
"@ocap/types": "1.
|
|
63
|
-
"@ocap/util": "1.
|
|
64
|
-
"@ocap/wallet": "1.
|
|
55
|
+
"@ocap/asset": "1.32.1",
|
|
56
|
+
"@ocap/client": "1.32.1",
|
|
57
|
+
"@ocap/mcrypto": "1.32.1",
|
|
58
|
+
"@ocap/merkle-tree": "1.32.1",
|
|
59
|
+
"@ocap/message": "1.32.1",
|
|
60
|
+
"@ocap/state": "1.32.1",
|
|
61
|
+
"@ocap/tx-pipeline": "1.32.1",
|
|
62
|
+
"@ocap/types": "1.32.1",
|
|
63
|
+
"@ocap/util": "1.32.1",
|
|
64
|
+
"@ocap/wallet": "1.32.1",
|
|
65
65
|
"debug": "^4.4.3",
|
|
66
66
|
"deep-diff": "^1.0.2",
|
|
67
67
|
"lodash": "^4.17.23",
|