@ocap/tx-pipeline 1.31.0 → 1.31.2
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/bridge-release-keys.d.mts +33 -0
- package/esm/bridge-release-keys.mjs +81 -0
- package/esm/bridge-reserves.d.mts +107 -0
- package/esm/bridge-reserves.mjs +242 -0
- package/esm/helpers/bridge-withdraw.d.mts +86 -0
- package/esm/helpers/bridge-withdraw.mjs +123 -0
- package/esm/helpers/replay-guard.d.mts +19 -1
- package/esm/helpers/replay-guard.mjs +39 -1
- package/esm/index.d.mts +3 -1
- package/esm/index.mjs +8 -6
- package/esm/legacy-protocol-sunset.d.mts +2 -2
- package/esm/legacy-protocol-sunset.mjs +5 -5
- package/esm/legacy-rollup-archive.d.mts +67 -0
- package/esm/legacy-rollup-archive.mjs +199 -0
- package/esm/library.d.mts +4 -4
- package/esm/library.mjs +3 -3
- package/esm/native-abt-exchange.d.mts +3 -0
- package/esm/native-abt-exchange.mjs +93 -46
- package/esm/pipes/bridge-release-gate.d.mts +30 -0
- package/esm/pipes/bridge-release-gate.mjs +143 -0
- package/esm/pipes/bridge-reserve-v2-gate.d.mts +53 -0
- package/esm/pipes/bridge-reserve-v2-gate.mjs +264 -0
- package/esm/pipes/decode-itx.mjs +3 -0
- package/esm/pipes/decode-tx.mjs +32 -4
- package/esm/pipes/extract-signer.mjs +1 -1
- package/esm/pipes/extract-state.mjs +2 -2
- package/esm/pipes/post-execution-invariant-gate.d.mts +19 -2
- package/esm/pipes/post-execution-invariant-gate.mjs +121 -6
- package/esm/pipes/pre-flight-waf.d.mts +58 -2
- package/esm/pipes/pre-flight-waf.mjs +202 -14
- package/esm/pipes/update-owner.mjs +1 -1
- package/esm/pipes/verify-account-migration.mjs +1 -1
- package/esm/pipes/verify-delegation.mjs +49 -25
- package/esm/pipes/verify-multisig-v2.mjs +5 -4
- package/esm/pipes/verify-multisig.mjs +5 -4
- package/esm/pipes/verify-signature.d.mts +7 -1
- package/esm/pipes/verify-signature.mjs +119 -16
- package/esm/pipes/verify-signer.mjs +2 -2
- package/esm/pipes/verify-token-access.mjs +1 -1
- package/esm/pipes/verify-token-balance.mjs +1 -1
- package/esm/pipes/verify-tx-input.mjs +1 -1
- package/esm/pipes/verify-tx-size.mjs +1 -1
- package/esm/pipes/verify-tx.mjs +12 -5
- package/esm/super-suites-foundation.mjs +6 -6
- package/esm/transaction-block.d.mts +6 -2
- package/esm/transaction-block.mjs +282 -40
- package/esm/uniswap-router.d.mts +247 -1
- package/esm/uniswap-router.mjs +573 -2
- package/lib/bridge-release-keys.cjs +88 -0
- package/lib/bridge-release-keys.d.cts +33 -0
- package/lib/bridge-reserves.cjs +257 -0
- package/lib/bridge-reserves.d.cts +107 -0
- package/lib/helpers/bridge-withdraw.cjs +136 -0
- package/lib/helpers/bridge-withdraw.d.cts +86 -0
- package/lib/helpers/replay-guard.cjs +39 -0
- package/lib/helpers/replay-guard.d.cts +20 -2
- package/lib/index.cjs +25 -5
- package/lib/index.d.cts +3 -1
- package/lib/legacy-protocol-sunset.cjs +7 -7
- package/lib/legacy-protocol-sunset.d.cts +2 -2
- package/lib/legacy-rollup-archive.cjs +208 -0
- package/lib/legacy-rollup-archive.d.cts +67 -0
- package/lib/library.cjs +14 -68
- package/lib/library.d.cts +4 -4
- package/lib/native-abt-exchange.cjs +93 -46
- package/lib/native-abt-exchange.d.cts +3 -0
- package/lib/pipes/bridge-release-gate.cjs +145 -0
- package/lib/pipes/bridge-release-gate.d.cts +30 -0
- package/lib/pipes/bridge-reserve-v2-gate.cjs +273 -0
- package/lib/pipes/bridge-reserve-v2-gate.d.cts +53 -0
- package/lib/pipes/decode-itx.cjs +3 -0
- package/lib/pipes/decode-itx.d.cts +1 -1
- package/lib/pipes/decode-tx.cjs +31 -3
- package/lib/pipes/decode-tx.d.cts +1 -1
- package/lib/pipes/extract-signer.cjs +1 -1
- package/lib/pipes/extract-state.cjs +3 -3
- package/lib/pipes/post-execution-invariant-gate.cjs +121 -4
- package/lib/pipes/post-execution-invariant-gate.d.cts +19 -2
- package/lib/pipes/pre-flight-waf.cjs +209 -15
- package/lib/pipes/pre-flight-waf.d.cts +58 -2
- package/lib/pipes/update-owner.cjs +1 -1
- package/lib/pipes/update-owner.d.cts +1 -1
- package/lib/pipes/verify-account-migration.cjs +1 -1
- package/lib/pipes/verify-delegation.cjs +50 -26
- package/lib/pipes/verify-multisig-v2.cjs +5 -4
- package/lib/pipes/verify-multisig.cjs +5 -4
- package/lib/pipes/verify-service-fee.d.cts +1 -1
- package/lib/pipes/verify-signature.cjs +118 -14
- package/lib/pipes/verify-signature.d.cts +8 -2
- package/lib/pipes/verify-signer.cjs +2 -2
- package/lib/pipes/verify-token-access.cjs +1 -1
- package/lib/pipes/verify-token-balance.cjs +1 -1
- package/lib/pipes/verify-tx-input.cjs +1 -1
- package/lib/pipes/verify-tx-size.cjs +1 -1
- package/lib/pipes/verify-tx-size.d.cts +1 -1
- package/lib/pipes/verify-tx.cjs +11 -5
- package/lib/pipes/verify-tx.d.cts +1 -1
- package/lib/super-suites-foundation.cjs +6 -6
- package/lib/transaction-block.cjs +282 -40
- package/lib/transaction-block.d.cts +6 -2
- package/lib/uniswap-router.cjs +576 -1
- package/lib/uniswap-router.d.cts +247 -1
- package/package.json +10 -10
- package/esm/evm-simplified-bridge.d.mts +0 -1370
- package/esm/evm-simplified-bridge.mjs +0 -3875
- package/lib/evm-simplified-bridge.cjs +0 -3943
- package/lib/evm-simplified-bridge.d.cts +0 -1370
|
@@ -11,5 +11,23 @@ import { parseNonceBn } from "@ocap/state";
|
|
|
11
11
|
* deduplication and `nonce > 0` for replay protection.
|
|
12
12
|
*/
|
|
13
13
|
declare function isCanonicalPasskeyExtra(extra: string): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Clear-signing expectation for a wallet envelope (#1465, bridge/docs/ocap-protocols.md §2, §v2.4).
|
|
16
|
+
*
|
|
17
|
+
* Returns the decoded `{ bridge, amount, token, ethRecipient }` when the tx is a `transfer_v2` whose `itx.to` has the bridge
|
|
18
|
+
* reserve role, and `null` for every other tx. `token` is the TOKEN OF THE BRIDGE that owns the reserve. A withdraw whose
|
|
19
|
+
* itx is not even shaped like one (other tokens, assets, missing recipient), or whose reserve maps to no bridge, returns
|
|
20
|
+
* empty fields, which no envelope can match: the withdraw rule rejects it anyway, this keeps the signature stage from
|
|
21
|
+
* blessing it first.
|
|
22
|
+
*/
|
|
23
|
+
declare function getBridgeWithdrawEnvelopeContext(context: {
|
|
24
|
+
txType?: string;
|
|
25
|
+
itx?: unknown;
|
|
26
|
+
}): Promise<{
|
|
27
|
+
bridge: string;
|
|
28
|
+
amount: string;
|
|
29
|
+
token: string;
|
|
30
|
+
ethRecipient: string;
|
|
31
|
+
} | null>;
|
|
14
32
|
//#endregion
|
|
15
|
-
export { assertEnvelopeMatchesTxContext, isCanonicalPasskeyExtra, isCanonicalWalletEnvelopeExtra, parseNonceBn };
|
|
33
|
+
export { assertEnvelopeMatchesTxContext, getBridgeWithdrawEnvelopeContext, isCanonicalPasskeyExtra, isCanonicalWalletEnvelopeExtra, parseNonceBn };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { isBridgeReserveRole, resolveBridgeForReserve } from "../bridge-reserves.mjs";
|
|
2
|
+
import { decodeBridgeWithdrawFields } from "./bridge-withdraw.mjs";
|
|
1
3
|
import { assertEnvelopeMatchesTxContext, isCanonicalWalletEnvelopeExtra } from "@ocap/mcrypto";
|
|
2
4
|
import { parseNonceBn } from "@ocap/state";
|
|
3
5
|
|
|
@@ -18,6 +20,42 @@ function isCanonicalPasskeyExtra(extra) {
|
|
|
18
20
|
return false;
|
|
19
21
|
}
|
|
20
22
|
}
|
|
23
|
+
const WITHDRAW_NONE = {
|
|
24
|
+
bridge: "",
|
|
25
|
+
amount: "",
|
|
26
|
+
token: "",
|
|
27
|
+
ethRecipient: ""
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Clear-signing expectation for a wallet envelope (#1465, bridge/docs/ocap-protocols.md §2, §v2.4).
|
|
31
|
+
*
|
|
32
|
+
* Returns the decoded `{ bridge, amount, token, ethRecipient }` when the tx is a `transfer_v2` whose `itx.to` has the bridge
|
|
33
|
+
* reserve role, and `null` for every other tx. `token` is the TOKEN OF THE BRIDGE that owns the reserve. A withdraw whose
|
|
34
|
+
* itx is not even shaped like one (other tokens, assets, missing recipient), or whose reserve maps to no bridge, returns
|
|
35
|
+
* empty fields, which no envelope can match: the withdraw rule rejects it anyway, this keeps the signature stage from
|
|
36
|
+
* blessing it first.
|
|
37
|
+
*/
|
|
38
|
+
async function getBridgeWithdrawEnvelopeContext(context) {
|
|
39
|
+
if (String(context.txType || "").replace(/^fg:t:/, "") !== "transfer_v2") return null;
|
|
40
|
+
const itx = context.itx || {};
|
|
41
|
+
if (!itx.to || !isBridgeReserveRole(itx.to)) return null;
|
|
42
|
+
try {
|
|
43
|
+
const bridge = await resolveBridgeForReserve(context, itx.to);
|
|
44
|
+
if (!bridge?.token) return { ...WITHDRAW_NONE };
|
|
45
|
+
const official = context.config?.token?.address;
|
|
46
|
+
const fields = decodeBridgeWithdrawFields(itx, bridge.token, official);
|
|
47
|
+
if (!fields) return { ...WITHDRAW_NONE };
|
|
48
|
+
return {
|
|
49
|
+
bridge: bridge.address,
|
|
50
|
+
amount: fields.amount,
|
|
51
|
+
token: bridge.token,
|
|
52
|
+
ethRecipient: fields.ethRecipient
|
|
53
|
+
};
|
|
54
|
+
} catch (err) {
|
|
55
|
+
console.warn(`bridge withdraw envelope expectation failed for ${String(itx.to).slice(0, 12)}...: ${String(err?.message || err).slice(0, 120)}`);
|
|
56
|
+
return { ...WITHDRAW_NONE };
|
|
57
|
+
}
|
|
58
|
+
}
|
|
21
59
|
|
|
22
60
|
//#endregion
|
|
23
|
-
export { assertEnvelopeMatchesTxContext, isCanonicalPasskeyExtra, isCanonicalWalletEnvelopeExtra, parseNonceBn };
|
|
61
|
+
export { assertEnvelopeMatchesTxContext, getBridgeWithdrawEnvelopeContext, isCanonicalPasskeyExtra, isCanonicalWalletEnvelopeExtra, parseNonceBn };
|
package/esm/index.d.mts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { RELEASE_RING_SLOTS, ReleaseRing, formatBucketData, getReleaseBucketKey, getReleaseTombstoneKey, parseBucketData } from "./bridge-release-keys.mjs";
|
|
2
|
+
import { BRIDGE_MAX_MIGRATION_HOPS, BRIDGE_RECONCILE_TX_TYPES, BRIDGE_RELEASE_TX_TYPE, BRIDGE_RESERVE_CREDIT_TX_TYPES, BRIDGE_RESERVE_DEBIT_TX_TYPES, BRIDGE_WITHDRAW_TX_TYPE, BridgeReserveResolution, ReleaseResolution, ResolvedBridge, describeBridge, isBridgeReserveRole, prepareBridgeReserveGate, reserveIndexKey, resolveBridge, resolveBridgeForRelease, resolveBridgeForReserve } from "./bridge-reserves.mjs";
|
|
1
3
|
import { ENCRYPTED_NFT_SCHEMA_VERSION, EncryptedAssetEnvelope, EncryptedNftAlgorithm, EncryptedNftOwnerCipherEnvelope, EncryptedNftPrivateMetadata, EncryptedNftPublicDiscoveryHeader, MAX_ENCRYPTED_NFT_CATEGORY_LENGTH, MAX_ENCRYPTED_NFT_CIPHERTEXT_HEX_CHARS, MAX_ENCRYPTED_NFT_SUMMARY_LENGTH, MAX_ENCRYPTED_NFT_TAGS, MAX_ENCRYPTED_NFT_TAG_LENGTH, MAX_ENCRYPTED_NFT_URI_LENGTH, OpenEncryptedNftAsOwnerInput, OpenEncryptedNftAsOwnerResult, RewrapEncryptedNftForNewOwnerInput, SealEncryptedNftForOwnerInput, VALID_ENCRYPTED_NFT_ALGORITHMS, VerifyEncryptedNftHandoverInput, canonicalizeEncryptedNftMetadata, computeEncryptedNftCekCommitmentHash, computeEncryptedNftPlaintextHash, computeEncryptedNftPublicHeaderAad, deriveOwnerPublicKeyHexFromSecretKey, openEncryptedNftAsOwner, rewrapEncryptedNftForNewOwner, sealEncryptedNftForOwner, validateEncryptedAssetEnvelope, verifyEncryptedNftHandover } from "./encrypted-nft-envelope.mjs";
|
|
2
4
|
import { isCanonicalPasskeyExtra, parseNonceBn } from "./helpers/replay-guard.mjs";
|
|
3
5
|
import PipelineRunner, { ErrorPipeFunction, PipeFunction, PipeNext, PipeOptions } from "./runner.mjs";
|
|
@@ -99,4 +101,4 @@ declare const _default: {
|
|
|
99
101
|
};
|
|
100
102
|
};
|
|
101
103
|
//#endregion
|
|
102
|
-
export { CreateAntiLandAttackPipe as AntiLandAttack, DecodeItx, DecodeTx, ENCRYPTED_NFT_SCHEMA_VERSION, type EncryptedAssetEnvelope, type EncryptedNftAlgorithm, type EncryptedNftOwnerCipherEnvelope, type EncryptedNftPrivateMetadata, type EncryptedNftPublicDiscoveryHeader, type ErrorPipeFunction, CreateExtractReceiverPipe as ExtractReceiver, CreateExtractSignerPipe as ExtractSigner, CreateExtractStatePipe as ExtractState, type IAccountUpdate, type IBaseContext, type IDecodedContext, type IDecodedTransaction, type IExecutedContext, type IGasContext, type IReadyContext, type IStateWriteTracker, type ITxOnlyContext, type IWithAsset, type IWithAssets, type IWithDelegation, type IWithDelegator, type IWithEvidence, type IWithFactory, type IWithLocked, type IWithOwner, type IWithReceiver, type IWithRollup, type IWithRollupBlock, type IWithSender, type IWithStake, type IWithStakes, type IWithToken, type IWithTokenFactory, type IWithTokens, MAX_DELEGATE_TYPE_URLS_LIST_SIZE, MAX_ENCRYPTED_NFT_CATEGORY_LENGTH, MAX_ENCRYPTED_NFT_CIPHERTEXT_HEX_CHARS, MAX_ENCRYPTED_NFT_SUMMARY_LENGTH, MAX_ENCRYPTED_NFT_TAGS, MAX_ENCRYPTED_NFT_TAG_LENGTH, MAX_ENCRYPTED_NFT_URI_LENGTH, MAX_POST_EXECUTION_WRITE_SET_ENTRIES, MAX_PREFLIGHT_JSON_DEPTH, MAX_PREFLIGHT_JSON_KEYS, MAX_PREFLIGHT_STRING_FIELD_BYTES, MAX_PREFLIGHT_WIRE_BYTES_FALLBACK, MAX_ROLLUP_TXS_LIST_SIZE, type OpenEncryptedNftAsOwnerInput, type OpenEncryptedNftAsOwnerResult, type PipeFunction, type PipeNext, type PipeOptions, CreatePostExecutionInvariantGatePipe as PostExecutionInvariantGate, PreFlightWaf, type RewrapEncryptedNftForNewOwnerInput, PipelineRunner as Runner, type SealEncryptedNftForOwnerInput, TRACKED_STATE_TABLES, type TTransactionReceipt, CreateTakeStateSnapshotPipe as TakeStateSnapshot, type TrackedStateTable, CreateUpdateOwnerPipe as UpdateOwner, VALID_ENCRYPTED_NFT_ALGORITHMS, CreateVerifyAccountMigrationPipe as VerifyAccountMigration, CreatedVerifyBlockedPipe as VerifyBlocked, CreateVerifyDelegationPipe as VerifyDelegation, type VerifyEncryptedNftHandoverInput, CreateVerifyInfoPipe as VerifyInfo, CreateVerifyListSizePipe as VerifyListSize, CreateVerifyMultiSigPipe as VerifyMultiSig, CreateVerifyMultiSigV2Pipe as VerifyMultiSigV2, CreateVerifySenderPipe as VerifySender, VerifyServiceFee, VerifySignature, CreateVerifySignerPipe as VerifySigner, CreateVerifyStateDiffPipe as VerifyStateDiff, CreateVerifyTokenBalancePipe as VerifyTokenBalance, CreateVerifyTransferrablePipe as VerifyTransferrable, VerifyTx, CreateVerifyTxInputPipe as VerifyTxInput, VerifyTxSize, CreateVerifyUpdaterPipe as VerifyUpdater, assertKnownItxFields, assertRawWireEnvelope, canonicalizeEncryptedNftMetadata, computeEncryptedNftCekCommitmentHash, computeEncryptedNftPlaintextHash, computeEncryptedNftPublicHeaderAad, _default as default, deriveOwnerPublicKeyHexFromSecretKey, groupStatesByAddress, inspectPostExecutionInvariants, inspectTransactionPreFlight, installStateWriteInterceptor, isCanonicalPasskeyExtra, isDelegationSufficient, normalizeEntityKey, openEncryptedNftAsOwner, parseNonceBn, pipes, rewrapEncryptedNftForNewOwner, rollbackTrackedStateWrites, scanItxPayloadAnomalies, sealEncryptedNftForOwner, validateEncryptedAssetEnvelope, verifyAssetHierarchy, verifyEncryptedNftHandover, verifyImplicitAssetOwnership, CreateVerifyTokenAccessPipe as verifyTokenAccess };
|
|
104
|
+
export { CreateAntiLandAttackPipe as AntiLandAttack, BRIDGE_MAX_MIGRATION_HOPS, BRIDGE_RECONCILE_TX_TYPES, BRIDGE_RELEASE_TX_TYPE, BRIDGE_RESERVE_CREDIT_TX_TYPES, BRIDGE_RESERVE_DEBIT_TX_TYPES, BRIDGE_WITHDRAW_TX_TYPE, type BridgeReserveResolution, DecodeItx, DecodeTx, ENCRYPTED_NFT_SCHEMA_VERSION, type EncryptedAssetEnvelope, type EncryptedNftAlgorithm, type EncryptedNftOwnerCipherEnvelope, type EncryptedNftPrivateMetadata, type EncryptedNftPublicDiscoveryHeader, type ErrorPipeFunction, CreateExtractReceiverPipe as ExtractReceiver, CreateExtractSignerPipe as ExtractSigner, CreateExtractStatePipe as ExtractState, type IAccountUpdate, type IBaseContext, type IDecodedContext, type IDecodedTransaction, type IExecutedContext, type IGasContext, type IReadyContext, type IStateWriteTracker, type ITxOnlyContext, type IWithAsset, type IWithAssets, type IWithDelegation, type IWithDelegator, type IWithEvidence, type IWithFactory, type IWithLocked, type IWithOwner, type IWithReceiver, type IWithRollup, type IWithRollupBlock, type IWithSender, type IWithStake, type IWithStakes, type IWithToken, type IWithTokenFactory, type IWithTokens, MAX_DELEGATE_TYPE_URLS_LIST_SIZE, MAX_ENCRYPTED_NFT_CATEGORY_LENGTH, MAX_ENCRYPTED_NFT_CIPHERTEXT_HEX_CHARS, MAX_ENCRYPTED_NFT_SUMMARY_LENGTH, MAX_ENCRYPTED_NFT_TAGS, MAX_ENCRYPTED_NFT_TAG_LENGTH, MAX_ENCRYPTED_NFT_URI_LENGTH, MAX_POST_EXECUTION_WRITE_SET_ENTRIES, MAX_PREFLIGHT_JSON_DEPTH, MAX_PREFLIGHT_JSON_KEYS, MAX_PREFLIGHT_STRING_FIELD_BYTES, MAX_PREFLIGHT_WIRE_BYTES_FALLBACK, MAX_ROLLUP_TXS_LIST_SIZE, type OpenEncryptedNftAsOwnerInput, type OpenEncryptedNftAsOwnerResult, type PipeFunction, type PipeNext, type PipeOptions, CreatePostExecutionInvariantGatePipe as PostExecutionInvariantGate, PreFlightWaf, RELEASE_RING_SLOTS, type ReleaseResolution, type ReleaseRing, type ResolvedBridge, type RewrapEncryptedNftForNewOwnerInput, PipelineRunner as Runner, type SealEncryptedNftForOwnerInput, TRACKED_STATE_TABLES, type TTransactionReceipt, CreateTakeStateSnapshotPipe as TakeStateSnapshot, type TrackedStateTable, CreateUpdateOwnerPipe as UpdateOwner, VALID_ENCRYPTED_NFT_ALGORITHMS, CreateVerifyAccountMigrationPipe as VerifyAccountMigration, CreatedVerifyBlockedPipe as VerifyBlocked, CreateVerifyDelegationPipe as VerifyDelegation, type VerifyEncryptedNftHandoverInput, CreateVerifyInfoPipe as VerifyInfo, CreateVerifyListSizePipe as VerifyListSize, CreateVerifyMultiSigPipe as VerifyMultiSig, CreateVerifyMultiSigV2Pipe as VerifyMultiSigV2, CreateVerifySenderPipe as VerifySender, VerifyServiceFee, VerifySignature, CreateVerifySignerPipe as VerifySigner, CreateVerifyStateDiffPipe as VerifyStateDiff, CreateVerifyTokenBalancePipe as VerifyTokenBalance, CreateVerifyTransferrablePipe as VerifyTransferrable, VerifyTx, CreateVerifyTxInputPipe as VerifyTxInput, VerifyTxSize, CreateVerifyUpdaterPipe as VerifyUpdater, assertKnownItxFields, assertRawWireEnvelope, canonicalizeEncryptedNftMetadata, computeEncryptedNftCekCommitmentHash, computeEncryptedNftPlaintextHash, computeEncryptedNftPublicHeaderAad, _default as default, deriveOwnerPublicKeyHexFromSecretKey, describeBridge, formatBucketData, getReleaseBucketKey, getReleaseTombstoneKey, groupStatesByAddress, inspectPostExecutionInvariants, inspectTransactionPreFlight, installStateWriteInterceptor, isBridgeReserveRole, isCanonicalPasskeyExtra, isDelegationSufficient, normalizeEntityKey, openEncryptedNftAsOwner, parseBucketData, parseNonceBn, pipes, prepareBridgeReserveGate, reserveIndexKey, resolveBridge, resolveBridgeForRelease, resolveBridgeForReserve, rewrapEncryptedNftForNewOwner, rollbackTrackedStateWrites, scanItxPayloadAnomalies, sealEncryptedNftForOwner, validateEncryptedAssetEnvelope, verifyAssetHierarchy, verifyEncryptedNftHandover, verifyImplicitAssetOwnership, CreateVerifyTokenAccessPipe as verifyTokenAccess };
|
package/esm/index.mjs
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
+
import { RELEASE_RING_SLOTS, formatBucketData, getReleaseBucketKey, getReleaseTombstoneKey, parseBucketData } from "./bridge-release-keys.mjs";
|
|
2
|
+
import { BRIDGE_MAX_MIGRATION_HOPS, BRIDGE_RECONCILE_TX_TYPES, BRIDGE_RELEASE_TX_TYPE, BRIDGE_RESERVE_CREDIT_TX_TYPES, BRIDGE_RESERVE_DEBIT_TX_TYPES, BRIDGE_WITHDRAW_TX_TYPE, describeBridge, isBridgeReserveRole, prepareBridgeReserveGate, reserveIndexKey, resolveBridge, resolveBridgeForRelease, resolveBridgeForReserve } from "./bridge-reserves.mjs";
|
|
1
3
|
import { ENCRYPTED_NFT_SCHEMA_VERSION, MAX_ENCRYPTED_NFT_CATEGORY_LENGTH, MAX_ENCRYPTED_NFT_CIPHERTEXT_HEX_CHARS, MAX_ENCRYPTED_NFT_SUMMARY_LENGTH, MAX_ENCRYPTED_NFT_TAGS, MAX_ENCRYPTED_NFT_TAG_LENGTH, MAX_ENCRYPTED_NFT_URI_LENGTH, VALID_ENCRYPTED_NFT_ALGORITHMS, canonicalizeEncryptedNftMetadata, computeEncryptedNftCekCommitmentHash, computeEncryptedNftPlaintextHash, computeEncryptedNftPublicHeaderAad, deriveOwnerPublicKeyHexFromSecretKey, openEncryptedNftAsOwner, rewrapEncryptedNftForNewOwner, sealEncryptedNftForOwner, validateEncryptedAssetEnvelope, verifyEncryptedNftHandover } from "./encrypted-nft-envelope.mjs";
|
|
2
4
|
import { isCanonicalPasskeyExtra, parseNonceBn } from "./helpers/replay-guard.mjs";
|
|
3
5
|
import CreateAntiLandAttackPipe from "./pipes/anti-land-attack.mjs";
|
|
4
6
|
import DecodeItx from "./pipes/decode-itx.mjs";
|
|
5
|
-
import DecodeTx from "./pipes/decode-tx.mjs";
|
|
6
|
-
import CreateExtractReceiverPipe from "./pipes/extract-receiver.mjs";
|
|
7
|
-
import CreateExtractSignerPipe from "./pipes/extract-signer.mjs";
|
|
8
|
-
import CreateExtractStatePipe from "./pipes/extract-state.mjs";
|
|
9
|
-
import post_execution_invariant_gate_default, { MAX_POST_EXECUTION_WRITE_SET_ENTRIES, TRACKED_STATE_TABLES, inspectPostExecutionInvariants, installStateWriteInterceptor, normalizeEntityKey, rollbackTrackedStateWrites } from "./pipes/post-execution-invariant-gate.mjs";
|
|
10
7
|
import runner_default from "./runner.mjs";
|
|
11
8
|
import CreatedVerifyBlockedPipe from "./pipes/verify-blocked.mjs";
|
|
12
9
|
import VerifyServiceFee from "./pipes/verify-service-fee.mjs";
|
|
@@ -14,6 +11,11 @@ import VerifySignature from "./pipes/verify-signature.mjs";
|
|
|
14
11
|
import VerifyTx from "./pipes/verify-tx.mjs";
|
|
15
12
|
import VerifyTxSize from "./pipes/verify-tx-size.mjs";
|
|
16
13
|
import PreFlightWaf, { MAX_DELEGATE_TYPE_URLS_LIST_SIZE, MAX_PREFLIGHT_JSON_DEPTH, MAX_PREFLIGHT_JSON_KEYS, MAX_PREFLIGHT_STRING_FIELD_BYTES, MAX_PREFLIGHT_WIRE_BYTES_FALLBACK, MAX_ROLLUP_TXS_LIST_SIZE, assertKnownItxFields, assertRawWireEnvelope, inspectTransactionPreFlight, scanItxPayloadAnomalies } from "./pipes/pre-flight-waf.mjs";
|
|
14
|
+
import DecodeTx from "./pipes/decode-tx.mjs";
|
|
15
|
+
import CreateExtractReceiverPipe from "./pipes/extract-receiver.mjs";
|
|
16
|
+
import CreateExtractSignerPipe from "./pipes/extract-signer.mjs";
|
|
17
|
+
import CreateExtractStatePipe from "./pipes/extract-state.mjs";
|
|
18
|
+
import post_execution_invariant_gate_default, { MAX_POST_EXECUTION_WRITE_SET_ENTRIES, TRACKED_STATE_TABLES, inspectPostExecutionInvariants, installStateWriteInterceptor, normalizeEntityKey, rollbackTrackedStateWrites } from "./pipes/post-execution-invariant-gate.mjs";
|
|
17
19
|
import CreateVerifyStateDiffPipe, { groupStatesByAddress } from "./pipes/verify-state-diff.mjs";
|
|
18
20
|
import CreateTakeStateSnapshotPipe from "./pipes/take-state-snapshot.mjs";
|
|
19
21
|
import CreateUpdateOwnerPipe, { verifyAssetHierarchy } from "./pipes/update-owner.mjs";
|
|
@@ -69,4 +71,4 @@ var src_default = {
|
|
|
69
71
|
};
|
|
70
72
|
|
|
71
73
|
//#endregion
|
|
72
|
-
export { CreateAntiLandAttackPipe as AntiLandAttack, DecodeItx, DecodeTx, ENCRYPTED_NFT_SCHEMA_VERSION, CreateExtractReceiverPipe as ExtractReceiver, CreateExtractSignerPipe as ExtractSigner, CreateExtractStatePipe as ExtractState, MAX_DELEGATE_TYPE_URLS_LIST_SIZE, MAX_ENCRYPTED_NFT_CATEGORY_LENGTH, MAX_ENCRYPTED_NFT_CIPHERTEXT_HEX_CHARS, MAX_ENCRYPTED_NFT_SUMMARY_LENGTH, MAX_ENCRYPTED_NFT_TAGS, MAX_ENCRYPTED_NFT_TAG_LENGTH, MAX_ENCRYPTED_NFT_URI_LENGTH, MAX_POST_EXECUTION_WRITE_SET_ENTRIES, MAX_PREFLIGHT_JSON_DEPTH, MAX_PREFLIGHT_JSON_KEYS, MAX_PREFLIGHT_STRING_FIELD_BYTES, MAX_PREFLIGHT_WIRE_BYTES_FALLBACK, MAX_ROLLUP_TXS_LIST_SIZE, post_execution_invariant_gate_default as PostExecutionInvariantGate, PreFlightWaf, runner_default as Runner, TRACKED_STATE_TABLES, CreateTakeStateSnapshotPipe as TakeStateSnapshot, CreateUpdateOwnerPipe as UpdateOwner, VALID_ENCRYPTED_NFT_ALGORITHMS, CreateVerifyAccountMigrationPipe as VerifyAccountMigration, CreatedVerifyBlockedPipe as VerifyBlocked, CreateVerifyDelegationPipe as VerifyDelegation, CreateVerifyInfoPipe as VerifyInfo, CreateVerifyListSizePipe as VerifyListSize, CreateVerifyMultiSigPipe as VerifyMultiSig, CreateVerifyMultiSigV2Pipe as VerifyMultiSigV2, CreateVerifySenderPipe as VerifySender, VerifyServiceFee, VerifySignature, CreateVerifySignerPipe as VerifySigner, CreateVerifyStateDiffPipe as VerifyStateDiff, CreateVerifyTokenBalancePipe as VerifyTokenBalance, CreateVerifyTransferrablePipe as VerifyTransferrable, VerifyTx, CreateVerifyTxInputPipe as VerifyTxInput, VerifyTxSize, CreateVerifyUpdaterPipe as VerifyUpdater, assertKnownItxFields, assertRawWireEnvelope, canonicalizeEncryptedNftMetadata, computeEncryptedNftCekCommitmentHash, computeEncryptedNftPlaintextHash, computeEncryptedNftPublicHeaderAad, src_default as default, deriveOwnerPublicKeyHexFromSecretKey, groupStatesByAddress, inspectPostExecutionInvariants, inspectTransactionPreFlight, installStateWriteInterceptor, isCanonicalPasskeyExtra, isDelegationSufficient, normalizeEntityKey, openEncryptedNftAsOwner, parseNonceBn, pipes, rewrapEncryptedNftForNewOwner, rollbackTrackedStateWrites, scanItxPayloadAnomalies, sealEncryptedNftForOwner, validateEncryptedAssetEnvelope, verifyAssetHierarchy, verifyEncryptedNftHandover, verifyImplicitAssetOwnership, CreateVerifyTokenAccessPipe as verifyTokenAccess };
|
|
74
|
+
export { CreateAntiLandAttackPipe as AntiLandAttack, BRIDGE_MAX_MIGRATION_HOPS, BRIDGE_RECONCILE_TX_TYPES, BRIDGE_RELEASE_TX_TYPE, BRIDGE_RESERVE_CREDIT_TX_TYPES, BRIDGE_RESERVE_DEBIT_TX_TYPES, BRIDGE_WITHDRAW_TX_TYPE, DecodeItx, DecodeTx, ENCRYPTED_NFT_SCHEMA_VERSION, CreateExtractReceiverPipe as ExtractReceiver, CreateExtractSignerPipe as ExtractSigner, CreateExtractStatePipe as ExtractState, MAX_DELEGATE_TYPE_URLS_LIST_SIZE, MAX_ENCRYPTED_NFT_CATEGORY_LENGTH, MAX_ENCRYPTED_NFT_CIPHERTEXT_HEX_CHARS, MAX_ENCRYPTED_NFT_SUMMARY_LENGTH, MAX_ENCRYPTED_NFT_TAGS, MAX_ENCRYPTED_NFT_TAG_LENGTH, MAX_ENCRYPTED_NFT_URI_LENGTH, MAX_POST_EXECUTION_WRITE_SET_ENTRIES, MAX_PREFLIGHT_JSON_DEPTH, MAX_PREFLIGHT_JSON_KEYS, MAX_PREFLIGHT_STRING_FIELD_BYTES, MAX_PREFLIGHT_WIRE_BYTES_FALLBACK, MAX_ROLLUP_TXS_LIST_SIZE, post_execution_invariant_gate_default as PostExecutionInvariantGate, PreFlightWaf, RELEASE_RING_SLOTS, runner_default as Runner, TRACKED_STATE_TABLES, CreateTakeStateSnapshotPipe as TakeStateSnapshot, CreateUpdateOwnerPipe as UpdateOwner, VALID_ENCRYPTED_NFT_ALGORITHMS, CreateVerifyAccountMigrationPipe as VerifyAccountMigration, CreatedVerifyBlockedPipe as VerifyBlocked, CreateVerifyDelegationPipe as VerifyDelegation, CreateVerifyInfoPipe as VerifyInfo, CreateVerifyListSizePipe as VerifyListSize, CreateVerifyMultiSigPipe as VerifyMultiSig, CreateVerifyMultiSigV2Pipe as VerifyMultiSigV2, CreateVerifySenderPipe as VerifySender, VerifyServiceFee, VerifySignature, CreateVerifySignerPipe as VerifySigner, CreateVerifyStateDiffPipe as VerifyStateDiff, CreateVerifyTokenBalancePipe as VerifyTokenBalance, CreateVerifyTransferrablePipe as VerifyTransferrable, VerifyTx, CreateVerifyTxInputPipe as VerifyTxInput, VerifyTxSize, CreateVerifyUpdaterPipe as VerifyUpdater, assertKnownItxFields, assertRawWireEnvelope, canonicalizeEncryptedNftMetadata, computeEncryptedNftCekCommitmentHash, computeEncryptedNftPlaintextHash, computeEncryptedNftPublicHeaderAad, src_default as default, deriveOwnerPublicKeyHexFromSecretKey, describeBridge, formatBucketData, getReleaseBucketKey, getReleaseTombstoneKey, groupStatesByAddress, inspectPostExecutionInvariants, inspectTransactionPreFlight, installStateWriteInterceptor, isBridgeReserveRole, isCanonicalPasskeyExtra, isDelegationSufficient, normalizeEntityKey, openEncryptedNftAsOwner, parseBucketData, parseNonceBn, pipes, prepareBridgeReserveGate, reserveIndexKey, resolveBridge, resolveBridgeForRelease, resolveBridgeForReserve, rewrapEncryptedNftForNewOwner, rollbackTrackedStateWrites, scanItxPayloadAnomalies, sealEncryptedNftForOwner, validateEncryptedAssetEnvelope, verifyAssetHierarchy, verifyEncryptedNftHandover, verifyImplicitAssetOwnership, CreateVerifyTokenAccessPipe as verifyTokenAccess };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { LegacyRollupReadOnlySummary } from "./legacy-rollup-archive.mjs";
|
|
1
2
|
import { StatementExecutor, TransactionBlockInput, TransactionBlockResult } from "./transaction-block.mjs";
|
|
2
|
-
import { LegacyRollupReadOnlySummary } from "./evm-simplified-bridge.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/legacy-protocol-sunset.d.ts
|
|
5
5
|
declare const DEFAULT_LEGACY_PROTOCOL_SUNSET_HEIGHT = 1;
|
|
@@ -18,7 +18,7 @@ declare const DEPRECATED_MIOTX_AND_TRADE_TYPE_URLS: readonly ["fg:t:transfer_v2"
|
|
|
18
18
|
declare const DEPRECATED_VERSIONED_ASSET_TYPE_URLS: readonly ["fg:t:acquire_asset_v2", "fg:t:acquire_asset_v3", "fg:t:mint_asset_v2", "fg:t:update_asset_v2", "fg:t:create_factory_v2"];
|
|
19
19
|
/**
|
|
20
20
|
* Category 3: Deprecated Rollup & legacy versioned token bridge write protocols.
|
|
21
|
-
* Replaced by
|
|
21
|
+
* Replaced by the new ABT bridge (ArcBlock/ArcBridge).
|
|
22
22
|
*/
|
|
23
23
|
declare const DEPRECATED_ROLLUP_AND_BRIDGE_TYPE_URLS: readonly ["fg:t:create_rollup", "fg:t:update_rollup", "fg:t:join_rollup", "fg:t:leave_rollup", "fg:t:create_rollup_block", "fg:t:claim_block_reward", "fg:t:pause_rollup", "fg:t:resume_rollup", "fg:t:close_rollup", "fg:t:migrate_rollup", "fg:t:deposit_token", "fg:t:deposit_token_v2", "fg:t:withdraw_token", "fg:t:withdraw_token_v2", "fg:t:revoke_withdraw"];
|
|
24
24
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DEFAULT_ROLLUP_SUNSET_ACTIVATION_HEIGHT, parseLegacyRollupReadOnlyRecord } from "./
|
|
1
|
+
import { DEFAULT_ROLLUP_SUNSET_ACTIVATION_HEIGHT, parseLegacyRollupReadOnlyRecord } from "./legacy-rollup-archive.mjs";
|
|
2
2
|
import { executeTransactionBlock, extractStateFootprint } from "./transaction-block.mjs";
|
|
3
3
|
import { CustomError } from "@ocap/util/lib/error";
|
|
4
4
|
|
|
@@ -43,7 +43,7 @@ const DEPRECATED_VERSIONED_ASSET_TYPE_URLS = Object.freeze([
|
|
|
43
43
|
]);
|
|
44
44
|
/**
|
|
45
45
|
* Category 3: Deprecated Rollup & legacy versioned token bridge write protocols.
|
|
46
|
-
* Replaced by
|
|
46
|
+
* Replaced by the new ABT bridge (ArcBlock/ArcBridge).
|
|
47
47
|
*/
|
|
48
48
|
const DEPRECATED_ROLLUP_AND_BRIDGE_TYPE_URLS = Object.freeze([
|
|
49
49
|
"fg:t:create_rollup",
|
|
@@ -252,14 +252,14 @@ const LEGACY_REPLACEMENT_MAP = Object.freeze({
|
|
|
252
252
|
category: "LEGACY_ROLLUP_AND_BRIDGE",
|
|
253
253
|
isMiotx: false,
|
|
254
254
|
vnextReplacementTypeUrl: "fg:t:settle_attestation",
|
|
255
|
-
migrationGuidance: "Legacy Rollup is retired; use
|
|
255
|
+
migrationGuidance: "Legacy Rollup is retired; use the pause / sentinel controls of the new ABT bridge (ArcBlock/ArcBridge)"
|
|
256
256
|
},
|
|
257
257
|
"fg:t:resume_rollup": {
|
|
258
258
|
legacyTypeUrl: "fg:t:resume_rollup",
|
|
259
259
|
category: "LEGACY_ROLLUP_AND_BRIDGE",
|
|
260
260
|
isMiotx: false,
|
|
261
261
|
vnextReplacementTypeUrl: "fg:t:settle_attestation",
|
|
262
|
-
migrationGuidance: "Legacy Rollup is retired; use
|
|
262
|
+
migrationGuidance: "Legacy Rollup is retired; use the pause / sentinel controls of the new ABT bridge (ArcBlock/ArcBridge)"
|
|
263
263
|
},
|
|
264
264
|
"fg:t:close_rollup": {
|
|
265
265
|
legacyTypeUrl: "fg:t:close_rollup",
|
|
@@ -1168,7 +1168,7 @@ function compileLegacyTxToVNextTransactionBlock(rawRecord) {
|
|
|
1168
1168
|
transactionBlock
|
|
1169
1169
|
};
|
|
1170
1170
|
}
|
|
1171
|
-
throw new CustomError(ErrorCode.ForbiddenSunset, `LegacyProtocolSunset: legacy Rollup/Bridge record ${summary.recordKind} cannot be compiled to an L1 TransactionBlock; use
|
|
1171
|
+
throw new CustomError(ErrorCode.ForbiddenSunset, `LegacyProtocolSunset: legacy Rollup/Bridge record ${summary.recordKind} cannot be compiled to an L1 TransactionBlock; use the new ABT bridge (ArcBlock/ArcBridge) instead`);
|
|
1172
1172
|
}
|
|
1173
1173
|
/**
|
|
1174
1174
|
* Executes a VNext `TransactionBlockInput` after enforcing `assertTransactionBlockVNextPure`
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
//#region src/legacy-rollup-archive.d.ts
|
|
2
|
+
declare const DEFAULT_MAX_ROLLUP_BLOCK_SIZE = 256;
|
|
3
|
+
declare const DEFAULT_ROLLUP_SUNSET_ACTIVATION_HEIGHT = 1;
|
|
4
|
+
declare const DEPRECATED_ROLLUP_PROTOCOL_TYPE_URLS: readonly ["fg:t:create_rollup", "fg:t:update_rollup", "fg:t:join_rollup", "fg:t:leave_rollup", "fg:t:create_rollup_block", "fg:t:claim_block_reward", "fg:t:pause_rollup", "fg:t:resume_rollup"];
|
|
5
|
+
declare const ZERO_BYTES32_HASH = "0x0000000000000000000000000000000000000000000000000000000000000000";
|
|
6
|
+
type DeprecatedRollupProtocolTypeUrl = (typeof DEPRECATED_ROLLUP_PROTOCOL_TYPE_URLS)[number];
|
|
7
|
+
type LegacyRollupRecordKind = 'RollupState' | 'RollupBlock' | 'deposit_token_v2' | 'withdraw_token_v2';
|
|
8
|
+
interface LegacyRollupReadOnlySummary {
|
|
9
|
+
readonly recordKind: LegacyRollupRecordKind;
|
|
10
|
+
readonly mode: 'READ_ONLY_LEGACY_ARCHIVE';
|
|
11
|
+
readonly rollupAddress: string;
|
|
12
|
+
readonly tokenAddress?: string;
|
|
13
|
+
readonly blockHeight?: number;
|
|
14
|
+
readonly blockHash?: string;
|
|
15
|
+
readonly previousHash?: string;
|
|
16
|
+
readonly merkleRoot?: string;
|
|
17
|
+
readonly txsHash?: string;
|
|
18
|
+
readonly txHashes?: readonly string[];
|
|
19
|
+
readonly proposerDid?: string;
|
|
20
|
+
readonly validatorDids?: readonly string[];
|
|
21
|
+
readonly fromDid?: string;
|
|
22
|
+
readonly recipientAddress?: string;
|
|
23
|
+
readonly amount?: bigint;
|
|
24
|
+
readonly evidenceHash?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Computes the `@ocap/merkle-tree` compatible `getListHash(txHashes)`.
|
|
28
|
+
*/
|
|
29
|
+
declare function computeEvmBridgeTxsHash(txHashes: string[]): string;
|
|
30
|
+
/**
|
|
31
|
+
* Computes the `@ocap/merkle-tree` compatible `getBlockHash`:
|
|
32
|
+
* `keccak256(encodePacked(uint256 height, bytes32 previousHash, bytes32 merkleRoot, bytes32 txsHash))`
|
|
33
|
+
*/
|
|
34
|
+
declare function computeEvmBridgeBlockHash(block: {
|
|
35
|
+
height: number;
|
|
36
|
+
previousHash: string;
|
|
37
|
+
merkleRoot: string;
|
|
38
|
+
txsHash: string;
|
|
39
|
+
}): string;
|
|
40
|
+
/**
|
|
41
|
+
* Issue #1245:
|
|
42
|
+
* Returns true if `typeUrl` belongs to the 8 deprecated Rollup write protocols
|
|
43
|
+
* (`create_rollup`, `update_rollup`, `join_rollup`, `leave_rollup`, `create_rollup_block`,
|
|
44
|
+
* `claim_block_reward`, `pause_rollup`, `resume_rollup`).
|
|
45
|
+
* Normalizes case, whitespace, camelCase/PascalCase, protobuf type URLs, and bare protocol names (`RT-1245-3`).
|
|
46
|
+
*/
|
|
47
|
+
declare function isDeprecatedRollupWriteProtocol(typeUrl: string): boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Issue #1245:
|
|
50
|
+
* Sunset guard for active transaction pipeline execution:
|
|
51
|
+
* - Blocks all 8 deprecated Rollup write protocols when `currentBlockHeight >= rollupSunsetActivationHeight`.
|
|
52
|
+
* - Allows historical block replay when `currentBlockHeight < rollupSunsetActivationHeight`.
|
|
53
|
+
*/
|
|
54
|
+
declare function assertRollupProtocolNotSunset(params: {
|
|
55
|
+
typeUrl: string;
|
|
56
|
+
currentBlockHeight: number;
|
|
57
|
+
rollupSunsetActivationHeight?: number;
|
|
58
|
+
}): void;
|
|
59
|
+
/**
|
|
60
|
+
* Issue #1245:
|
|
61
|
+
* Strictly read-only historical parser for legacy `RollupState`, `RollupBlock`, `deposit_token_v2`,
|
|
62
|
+
* and `withdraw_token_v2` records so block explorers, indexers, and audit tools can inspect historical
|
|
63
|
+
* chain data after the active Rollup write protocols are removed.
|
|
64
|
+
*/
|
|
65
|
+
declare function parseLegacyRollupReadOnlyRecord(rawRecord: Record<string, unknown>): LegacyRollupReadOnlySummary;
|
|
66
|
+
//#endregion
|
|
67
|
+
export { DEFAULT_MAX_ROLLUP_BLOCK_SIZE, DEFAULT_ROLLUP_SUNSET_ACTIVATION_HEIGHT, DEPRECATED_ROLLUP_PROTOCOL_TYPE_URLS, DeprecatedRollupProtocolTypeUrl, LegacyRollupReadOnlySummary, LegacyRollupRecordKind, ZERO_BYTES32_HASH, assertRollupProtocolNotSunset, computeEvmBridgeBlockHash, computeEvmBridgeTxsHash, isDeprecatedRollupWriteProtocol, parseLegacyRollupReadOnlyRecord };
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { Hasher } from "@ocap/mcrypto";
|
|
2
|
+
import { CustomError } from "@ocap/util/lib/error";
|
|
3
|
+
|
|
4
|
+
//#region src/legacy-rollup-archive.ts
|
|
5
|
+
/**
|
|
6
|
+
* Read-only access to legacy Rollup records and the guard for the retired Rollup write protocols.
|
|
7
|
+
* Extracted unchanged from the removed `evm-simplified-bridge.ts` simulation (ArcBlock/ArcBridge#16):
|
|
8
|
+
* this part is an OCAP-side legacy concern and is used by `legacy-protocol-sunset.ts`.
|
|
9
|
+
*/
|
|
10
|
+
const keccak256 = Hasher.Keccak.hash256;
|
|
11
|
+
const ErrorCode = {
|
|
12
|
+
InvalidBridge: "INVALID_EVM_SIMPLIFIED_BRIDGE",
|
|
13
|
+
ForbiddenBridge: "FORBIDDEN_EVM_SIMPLIFIED_BRIDGE"
|
|
14
|
+
};
|
|
15
|
+
const DEFAULT_MAX_ROLLUP_BLOCK_SIZE = 256;
|
|
16
|
+
const DEFAULT_ROLLUP_SUNSET_ACTIVATION_HEIGHT = 1;
|
|
17
|
+
const DEPRECATED_ROLLUP_PROTOCOL_TYPE_URLS = Object.freeze([
|
|
18
|
+
"fg:t:create_rollup",
|
|
19
|
+
"fg:t:update_rollup",
|
|
20
|
+
"fg:t:join_rollup",
|
|
21
|
+
"fg:t:leave_rollup",
|
|
22
|
+
"fg:t:create_rollup_block",
|
|
23
|
+
"fg:t:claim_block_reward",
|
|
24
|
+
"fg:t:pause_rollup",
|
|
25
|
+
"fg:t:resume_rollup"
|
|
26
|
+
]);
|
|
27
|
+
const ZERO_BYTES32_HASH = "0x0000000000000000000000000000000000000000000000000000000000000000";
|
|
28
|
+
const BYTES32_HEX_REGEX = /^0x[0-9a-fA-F]{64}$/;
|
|
29
|
+
const CANONICAL_UINT256_DECIMAL_REGEX = /^(0|[1-9]\d{0,77})$/;
|
|
30
|
+
function assertCleanString(value, label) {
|
|
31
|
+
if (typeof value !== "string" || value.trim().length === 0) throw new CustomError(ErrorCode.InvalidBridge, `SimplifiedEvmBridge: ${label} must be a non-empty string`);
|
|
32
|
+
const trimmed = value.trim();
|
|
33
|
+
if (trimmed !== value || /[\s/\\?#%]|::|->/.test(trimmed)) throw new CustomError(ErrorCode.InvalidBridge, `SimplifiedEvmBridge: ${label} contains invalid characters`);
|
|
34
|
+
return trimmed;
|
|
35
|
+
}
|
|
36
|
+
function assertBytes32Hex(value, label) {
|
|
37
|
+
if (typeof value !== "string" || !BYTES32_HEX_REGEX.test(value)) throw new CustomError(ErrorCode.InvalidBridge, `SimplifiedEvmBridge: ${label} must be a 32-byte 0x-prefixed hex string`);
|
|
38
|
+
return value.toLowerCase();
|
|
39
|
+
}
|
|
40
|
+
function uint256ToHex64(value) {
|
|
41
|
+
const big = typeof value === "number" ? BigInt(value) : value;
|
|
42
|
+
if (big < 0n || big >= 1n << 256n) throw new CustomError(ErrorCode.InvalidBridge, "SimplifiedEvmBridge: uint256 out of range");
|
|
43
|
+
return big.toString(16).padStart(64, "0");
|
|
44
|
+
}
|
|
45
|
+
function parseStrictUint256JsonValue(value, label) {
|
|
46
|
+
if (typeof value === "bigint") {
|
|
47
|
+
if (value < 0n || value >= 1n << 256n) throw new CustomError(ErrorCode.InvalidBridge, `SimplifiedEvmBridge: ${label} out of uint256 range`);
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
if (typeof value === "string" && CANONICAL_UINT256_DECIMAL_REGEX.test(value)) {
|
|
51
|
+
const big = BigInt(value);
|
|
52
|
+
if (big < 0n || big >= 1n << 256n) throw new CustomError(ErrorCode.InvalidBridge, `SimplifiedEvmBridge: ${label} out of uint256 range`);
|
|
53
|
+
return big;
|
|
54
|
+
}
|
|
55
|
+
throw new CustomError(ErrorCode.InvalidBridge, `SimplifiedEvmBridge: ${label} must be a canonical base-10 uint256 string`);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Computes the `@ocap/merkle-tree` compatible `getListHash(txHashes)`.
|
|
59
|
+
*/
|
|
60
|
+
function computeEvmBridgeTxsHash(txHashes) {
|
|
61
|
+
if (txHashes.length === 0) return ZERO_BYTES32_HASH;
|
|
62
|
+
return keccak256(`0x${txHashes.map((h) => assertBytes32Hex(h, "txHash").slice(2)).join("")}`).toLowerCase();
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Computes the `@ocap/merkle-tree` compatible `getBlockHash`:
|
|
66
|
+
* `keccak256(encodePacked(uint256 height, bytes32 previousHash, bytes32 merkleRoot, bytes32 txsHash))`
|
|
67
|
+
*/
|
|
68
|
+
function computeEvmBridgeBlockHash(block) {
|
|
69
|
+
if (!Number.isSafeInteger(block.height) || block.height <= 0) throw new CustomError(ErrorCode.InvalidBridge, "SimplifiedEvmBridge: block height must be a positive safe integer");
|
|
70
|
+
return keccak256(`0x${uint256ToHex64(block.height)}${assertBytes32Hex(block.previousHash, "previousHash").slice(2)}${assertBytes32Hex(block.merkleRoot, "merkleRoot").slice(2)}${assertBytes32Hex(block.txsHash, "txsHash").slice(2)}`).toLowerCase();
|
|
71
|
+
}
|
|
72
|
+
const DEPRECATED_ROLLUP_PROTOCOL_SET = new Set(DEPRECATED_ROLLUP_PROTOCOL_TYPE_URLS);
|
|
73
|
+
function normalizeRollupProtocolTypeUrl(rawTypeUrl) {
|
|
74
|
+
if (typeof rawTypeUrl !== "string") return "";
|
|
75
|
+
const trimmed = rawTypeUrl.trim();
|
|
76
|
+
if (!trimmed) return "";
|
|
77
|
+
const snakeCased = trimmed.replace(/^(?:type\.googleapis\.com\/)?(?:forge_abi\.)?(?:fg:t:|fg:x:tx:)?/i, "").replace(/([a-z0-9])([A-Z])/g, "$1_$2").toLowerCase().replace(/_tx$/, "");
|
|
78
|
+
if (!snakeCased) return "";
|
|
79
|
+
return `fg:t:${snakeCased}`;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Issue #1245:
|
|
83
|
+
* Returns true if `typeUrl` belongs to the 8 deprecated Rollup write protocols
|
|
84
|
+
* (`create_rollup`, `update_rollup`, `join_rollup`, `leave_rollup`, `create_rollup_block`,
|
|
85
|
+
* `claim_block_reward`, `pause_rollup`, `resume_rollup`).
|
|
86
|
+
* Normalizes case, whitespace, camelCase/PascalCase, protobuf type URLs, and bare protocol names (`RT-1245-3`).
|
|
87
|
+
*/
|
|
88
|
+
function isDeprecatedRollupWriteProtocol(typeUrl) {
|
|
89
|
+
const normalized = normalizeRollupProtocolTypeUrl(typeUrl);
|
|
90
|
+
return DEPRECATED_ROLLUP_PROTOCOL_SET.has(normalized);
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Issue #1245:
|
|
94
|
+
* Sunset guard for active transaction pipeline execution:
|
|
95
|
+
* - Blocks all 8 deprecated Rollup write protocols when `currentBlockHeight >= rollupSunsetActivationHeight`.
|
|
96
|
+
* - Allows historical block replay when `currentBlockHeight < rollupSunsetActivationHeight`.
|
|
97
|
+
*/
|
|
98
|
+
function assertRollupProtocolNotSunset(params) {
|
|
99
|
+
if (!params || typeof params !== "object") throw new CustomError(ErrorCode.InvalidBridge, "SimplifiedEvmBridge: sunset guard params must be an object");
|
|
100
|
+
if (typeof params.typeUrl !== "string" || params.typeUrl.trim().length === 0) throw new CustomError(ErrorCode.InvalidBridge, "SimplifiedEvmBridge: typeUrl must be a non-empty string");
|
|
101
|
+
if (!Number.isSafeInteger(params.currentBlockHeight) || params.currentBlockHeight < 0) throw new CustomError(ErrorCode.InvalidBridge, "SimplifiedEvmBridge: currentBlockHeight must be a non-negative safe integer");
|
|
102
|
+
const activationHeight = params.rollupSunsetActivationHeight ?? DEFAULT_ROLLUP_SUNSET_ACTIVATION_HEIGHT;
|
|
103
|
+
if (!Number.isSafeInteger(activationHeight) || activationHeight < 1) throw new CustomError(ErrorCode.InvalidBridge, "SimplifiedEvmBridge: rollupSunsetActivationHeight must be a positive safe integer (>= 1)");
|
|
104
|
+
if (isDeprecatedRollupWriteProtocol(params.typeUrl)) {
|
|
105
|
+
if (params.currentBlockHeight >= activationHeight) {
|
|
106
|
+
const canonicalTypeUrl = normalizeRollupProtocolTypeUrl(params.typeUrl);
|
|
107
|
+
throw new CustomError(ErrorCode.ForbiddenBridge, `SimplifiedEvmBridge: legacy Rollup write protocol ${canonicalTypeUrl} is deprecated and disabled at block height ${params.currentBlockHeight} (>= sunset height ${activationHeight}); use Zero-Rollup-Block EIP-712 DirectWithdrawVoucher instead`);
|
|
108
|
+
}
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
assertCleanString(params.typeUrl, "typeUrl");
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Issue #1245:
|
|
115
|
+
* Strictly read-only historical parser for legacy `RollupState`, `RollupBlock`, `deposit_token_v2`,
|
|
116
|
+
* and `withdraw_token_v2` records so block explorers, indexers, and audit tools can inspect historical
|
|
117
|
+
* chain data after the active Rollup write protocols are removed.
|
|
118
|
+
*/
|
|
119
|
+
function parseLegacyRollupReadOnlyRecord(rawRecord) {
|
|
120
|
+
if (!rawRecord || typeof rawRecord !== "object" || Array.isArray(rawRecord)) throw new CustomError(ErrorCode.InvalidBridge, "SimplifiedEvmBridge: legacy Rollup record must be a plain object");
|
|
121
|
+
if (Object.prototype.hasOwnProperty.call(rawRecord, "__proto__") || Object.prototype.hasOwnProperty.call(rawRecord, "constructor") || Object.prototype.hasOwnProperty.call(rawRecord, "prototype")) throw new CustomError(ErrorCode.ForbiddenBridge, "SimplifiedEvmBridge: prototype pollution keys rejected in legacy Rollup record");
|
|
122
|
+
const rawKind = String(rawRecord.recordKind ?? rawRecord.typeUrl ?? "").trim();
|
|
123
|
+
const normalizedKind = rawKind.startsWith("fg:t:") ? rawKind.slice(5) : rawKind;
|
|
124
|
+
if (normalizedKind === "RollupState") {
|
|
125
|
+
const rollupAddress = assertCleanString(String(rawRecord.rollupAddress ?? rawRecord.address ?? ""), "rollupAddress");
|
|
126
|
+
const tokenAddress = assertCleanString(String(rawRecord.tokenAddress ?? ""), "tokenAddress");
|
|
127
|
+
const rawValidators = Array.isArray(rawRecord.validatorDids ?? rawRecord.validators) ? rawRecord.validatorDids ?? rawRecord.validators : [];
|
|
128
|
+
if (rawValidators.length > 64) throw new CustomError(ErrorCode.InvalidBridge, "SimplifiedEvmBridge: legacy RollupState validator list too large");
|
|
129
|
+
const validatorDids = Object.freeze(rawValidators.map((v) => assertCleanString(String(v ?? ""), "validatorDid")));
|
|
130
|
+
const latestHeight = rawRecord.blockHeight !== void 0 ? Number(rawRecord.blockHeight) : Number(rawRecord.latestBlockHeight ?? 0);
|
|
131
|
+
if (!Number.isSafeInteger(latestHeight) || latestHeight < 0) throw new CustomError(ErrorCode.InvalidBridge, "SimplifiedEvmBridge: invalid legacy RollupState blockHeight");
|
|
132
|
+
return Object.freeze({
|
|
133
|
+
recordKind: "RollupState",
|
|
134
|
+
mode: "READ_ONLY_LEGACY_ARCHIVE",
|
|
135
|
+
rollupAddress,
|
|
136
|
+
tokenAddress,
|
|
137
|
+
blockHeight: latestHeight,
|
|
138
|
+
validatorDids
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
if (normalizedKind === "RollupBlock" || normalizedKind === "create_rollup_block") {
|
|
142
|
+
const rollupAddress = assertCleanString(String(rawRecord.rollupAddress ?? rawRecord.rollup ?? ""), "rollupAddress");
|
|
143
|
+
const blockHeight = Number(rawRecord.blockHeight ?? rawRecord.height);
|
|
144
|
+
if (!Number.isSafeInteger(blockHeight) || blockHeight <= 0) throw new CustomError(ErrorCode.InvalidBridge, "SimplifiedEvmBridge: legacy RollupBlock height must be >= 1");
|
|
145
|
+
const previousHash = rawRecord.previousHash ? assertBytes32Hex(String(rawRecord.previousHash), "previousHash") : ZERO_BYTES32_HASH;
|
|
146
|
+
const merkleRoot = assertBytes32Hex(String(rawRecord.merkleRoot ?? ""), "merkleRoot");
|
|
147
|
+
const hasExplicitTxArray = rawRecord.txHashes !== void 0 || rawRecord.txs !== void 0;
|
|
148
|
+
const rawTxs = Array.isArray(rawRecord.txHashes ?? rawRecord.txs) ? rawRecord.txHashes ?? rawRecord.txs : [];
|
|
149
|
+
if (rawTxs.length > DEFAULT_MAX_ROLLUP_BLOCK_SIZE) throw new CustomError(ErrorCode.InvalidBridge, "SimplifiedEvmBridge: legacy RollupBlock txHashes exceeds max size");
|
|
150
|
+
const txHashes = Object.freeze(rawTxs.map((h) => assertBytes32Hex(String(h ?? ""), "txHash")));
|
|
151
|
+
const computedTxsHash = computeEvmBridgeTxsHash([...txHashes]);
|
|
152
|
+
const txsHash = rawRecord.txsHash ? assertBytes32Hex(String(rawRecord.txsHash), "txsHash") : computedTxsHash;
|
|
153
|
+
if (rawRecord.txsHash && hasExplicitTxArray && txsHash !== computedTxsHash) throw new CustomError(ErrorCode.ForbiddenBridge, `SimplifiedEvmBridge: legacy RollupBlock #${blockHeight} txsHash mismatch against txHashes`);
|
|
154
|
+
const computedBlockHash = computeEvmBridgeBlockHash({
|
|
155
|
+
height: blockHeight,
|
|
156
|
+
previousHash,
|
|
157
|
+
merkleRoot,
|
|
158
|
+
txsHash
|
|
159
|
+
});
|
|
160
|
+
const blockHash = rawRecord.blockHash ? assertBytes32Hex(String(rawRecord.blockHash), "blockHash") : computedBlockHash;
|
|
161
|
+
if (blockHash !== computedBlockHash) throw new CustomError(ErrorCode.ForbiddenBridge, `SimplifiedEvmBridge: legacy RollupBlock #${blockHeight} blockHash mismatch`);
|
|
162
|
+
const proposerDid = rawRecord.proposerDid ? assertCleanString(String(rawRecord.proposerDid), "proposerDid") : void 0;
|
|
163
|
+
return Object.freeze({
|
|
164
|
+
recordKind: "RollupBlock",
|
|
165
|
+
mode: "READ_ONLY_LEGACY_ARCHIVE",
|
|
166
|
+
rollupAddress,
|
|
167
|
+
blockHeight,
|
|
168
|
+
previousHash,
|
|
169
|
+
merkleRoot,
|
|
170
|
+
txsHash,
|
|
171
|
+
blockHash,
|
|
172
|
+
txHashes,
|
|
173
|
+
proposerDid
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
if (normalizedKind === "deposit_token_v2" || normalizedKind === "withdraw_token_v2") {
|
|
177
|
+
const rollupAddress = assertCleanString(String(rawRecord.rollupAddress ?? rawRecord.rollup ?? ""), "rollupAddress");
|
|
178
|
+
const tokenAddress = assertCleanString(String(rawRecord.tokenAddress ?? ""), "tokenAddress");
|
|
179
|
+
const fromDid = rawRecord.fromDid ? assertCleanString(String(rawRecord.fromDid), "fromDid") : void 0;
|
|
180
|
+
const recipientAddress = assertCleanString(String(rawRecord.recipientAddress ?? rawRecord.to ?? ""), "recipientAddress");
|
|
181
|
+
const amount = parseStrictUint256JsonValue(rawRecord.amount ?? rawRecord.value, "amount");
|
|
182
|
+
if (amount <= 0n) throw new CustomError(ErrorCode.InvalidBridge, "SimplifiedEvmBridge: legacy transfer amount must be > 0n");
|
|
183
|
+
const evidenceHash = rawRecord.evidenceHash ? assertBytes32Hex(String(rawRecord.evidenceHash), "evidenceHash") : void 0;
|
|
184
|
+
return Object.freeze({
|
|
185
|
+
recordKind: normalizedKind,
|
|
186
|
+
mode: "READ_ONLY_LEGACY_ARCHIVE",
|
|
187
|
+
rollupAddress,
|
|
188
|
+
tokenAddress,
|
|
189
|
+
fromDid,
|
|
190
|
+
recipientAddress,
|
|
191
|
+
amount,
|
|
192
|
+
evidenceHash
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
throw new CustomError(ErrorCode.InvalidBridge, `SimplifiedEvmBridge: unsupported legacy Rollup record kind (${rawKind || "empty"})`);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
//#endregion
|
|
199
|
+
export { DEFAULT_MAX_ROLLUP_BLOCK_SIZE, DEFAULT_ROLLUP_SUNSET_ACTIVATION_HEIGHT, DEPRECATED_ROLLUP_PROTOCOL_TYPE_URLS, ZERO_BYTES32_HASH, assertRollupProtocolNotSunset, computeEvmBridgeBlockHash, computeEvmBridgeTxsHash, isDeprecatedRollupWriteProtocol, parseLegacyRollupReadOnlyRecord };
|
package/esm/library.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CrowdloanContributorPosition, MAX_FREE_RELAY_CREDITS_PER_EPOCH, OcapSovereignAppChainHubEngine, PfmCrossSpokePacketInput, SovereignReserveState, SpokeCrowdloanState, VLedgerCheckpointInput, computeVLedgerCheckpointStateRoot, deriveSovereignVaultDid } from "./appchain-sovereign-hub.mjs";
|
|
2
2
|
import { ArcVaultLiquidityState, ArcVaultShareholderPosition, ExternalSwapHookInput, ExternalSwapHookResult, FORBIDDEN_EXTERNAL_CALL_SELECTORS, MAX_HARVEST_YIELD_BPS, MAX_VAULT_STRATEGY_DEPLOYED_BPS, MAX_ZAP_ABT_PER_SETTLEMENT_SCALAR, MAX_ZAP_PRICE_IMPACT_BPS, MIN_VAULT_LIQUID_BUFFER_BPS, OcapArcVaultExternalAdapterEngine, UniversalAbtZapInInput, UniversalAbtZapInResult } from "./arcvault-external-adapter.mjs";
|
|
3
|
-
import { CONTRACT_NFT_KIND, ContractGuardPredicate, ContractNftPayload, CrossChainDepositSpec, CrossChainPurchaseInput, DEFAULT_MAX_STATEMENTS_PER_HOT_KEY_PER_BLOCK, HARD_MAX_TX_BLOCK_STATEMENTS, MAX_CONTRACT_ARGS_BYTES, MAX_CONTRACT_FOOTPRINT_KEYS, MAX_CONTRACT_NFT_STATEMENTS, MAX_EXECUTE_ASSET_CALLS_PER_BLOCK, MAX_EXECUTE_ASSET_DEPTH, MAX_TX_BLOCK_BYTES, MAX_TX_BLOCK_READ_KEYS, MAX_TX_BLOCK_STATE_DIFF_ENTRIES, MAX_TX_BLOCK_TOP_LEVEL_STATEMENTS, MAX_TX_BLOCK_TOTAL_EXPANDED_STATEMENTS, MAX_TX_BLOCK_WRITE_KEYS, OverlayStateDB, PendingTransferRecord, PreparedTransactionBlock, ResolvedTransactionBlockBudget, StagedSyncPipeline, StateDiffEntry, StateFootprint, StatementExecutor, SyncStage, TransactionBlockInput, TransactionBlockPostConditions, TransactionBlockResourceBudget, TransactionBlockResult, TransactionStatement, TwoPhaseCommitCoordinator, TwoPhaseTransferLedger, WalletClearSigningPreview, assertLeafStatementTemplateOnly, assertTransactionBlockResourceBudget, buildWalletClearSigningPreview, computeAccountAndAssetNetEffects, createOverlayStateDB, executeContractNft, executeCrossChainPurchaseBlock, executeTransactionBlock, extractStateFootprint, hasStateConflict, isExecuteAssetStatement, resolveEffectiveResourceBudget, resolveStatementReferences, scheduleParallelBatches, verifyTransactionBlockPostConditions } from "./transaction-block.mjs";
|
|
4
|
-
import { ARC_EVM_BRIDGE_GATEWAY_SOLIDITY_SPEC, BRIDGE_CHARTER_KIND, BridgeDurableStateSnapshot, BridgeValidatorSignature, BridgeWebPortalActionBundle, BridgeWebPortalActionInput, BridgeWebPortalConfig, CloudflareBridgeEdgeRequest, CloudflareBridgeEdgeResponse, DEFAULT_MAX_ROLLUP_BLOCK_SIZE, DEFAULT_MIN_EVM_CONFIRMATIONS, DEFAULT_MIN_MULTISIG_COOLDOWN_SECONDS, DEFAULT_MULTISIG_CERT_TTL_SECONDS, DEFAULT_ROLLUP_SUNSET_ACTIVATION_HEIGHT, DEFAULT_VERIFYING_CONTRACT_ADDRESS, DEFAULT_WITHDRAW_TIMELOCK_DELAY_SECONDS, DEPRECATED_ROLLUP_PROTOCOL_TYPE_URLS, DIRECT_WITHDRAW_TYPEHASH, DeprecatedRollupProtocolTypeUrl, DirectWithdrawVoucher, EIP712_BRIDGE_DOMAIN_NAME, EIP712_BRIDGE_DOMAIN_VERSION, EIP712_DOMAIN_TYPEHASH, EMPTY_ROLLUP_MERKLE_ROOT, EXPECTED_CATEGORY_BY_OPERATION, Eip1193TransactionStep, EvmAbtDepositEventInput, EvmChallengeSentinelCoSignature, EvmPendingTwoPhaseChallenge, EvmServicePaymentEventInput, EvmWithdrawClaimProofBundle, HARD_FLOOR_MULTISIG_COOLDOWN_SECONDS, HOLDER_RELEASE_INTENT_TYPEHASH, HardenedMultiSigSignerManagerV2, LegacyRollupReadOnlySummary, LegacyRollupRecordKind, LocalEvmTxExecutionReceipt, LocalEvmValidatorKeySpec, MAX_DIRECT_VOUCHER_TTL_SECONDS, MAX_EDGE_WEBHOOK_BODY_BYTES, MAX_EDGE_WEBHOOK_SKEW_SECONDS, MAX_MULTISIG_CERT_TTL_SECONDS, MAX_MULTISIG_VOTES_PER_CERT, MAX_PUBLISHED_MULTISIG_PROPOSALS, MAX_TRACKED_WEBHOOK_NONCES, MIN_DIRECT_VOUCHER_TTL_SECONDS, MIN_MULTISIG_CERT_TTL_SECONDS, MULTISIG_OP_TYPEHASH, MULTISIG_VETO_ATTESTATION_TYPEHASH, MultiSigDecodedParams, MultiSigProposalIntentInput, MultiSigVoteRecord, OcapAbtWithdrawItem, OcapLocalEvmBridgeTestnetHarness, OcapOnChainBridgeGovernanceRegistry, OcapPublishedMultiSigCertificate, OcapPublishedMultiSigEngine, OcapRelayerDepositTxInstruction, OcapServiceDeliveryInstruction, OcapSimplifiedEvmBridgeNode, PUBLISHED_MULTISIG_CERT_OP_TYPEHASH, PublishedMultiSigClearSigningPreview, PublishedMultiSigLedgerMode, SealedRollupWithdrawBlock, SimplifiedEvmBridgeConfig, TWO_PHASE_CHALLENGE_TYPEHASH, ZERO_BYTES32_HASH, ZERO_EVM_ADDRESS, assertRollupProtocolNotSunset, buildEvmBridgeMerkleTree, buildPublishedMultiSigClearSigningPreview, computeBridgeGovernanceCharterHash, computeDirectWithdrawVoucherDigest, computeEdgeWebhookHmac, computeEip712BridgeDomainSeparator, computeEip712WithdrawStructHash, computeEvmBridgeBlockHash, computeEvmBridgeTxsHash, computeEvmBridgeWithdrawLeafHash, computeEvmTwoPhaseChallengeHash, computeHardenedMultiSigOpDigest, computeHolderFinalReleaseDigest, computeMultiSigOperationParamsHash, computeMultiSigVetoAttestationDigest, computePublishedMultiSigCertificateHash, computePublishedMultiSigVoteDigest, computeVLedgerMultiSigProposalHash, computeValidatorBlockSignatureDigest, computeValidatorVoucherSignatureDigest, deriveEvmAddressFromPrivateKeyHex, ecrecoverEvmAddress, encodeEvmBridgeWithdrawPackedPreimage, isDeprecatedRollupWriteProtocol, parseLegacyRollupReadOnlyRecord, signDigestWithSecp256k1PrivateKey, verifyDirectWithdrawVoucher, verifyEvmBridgeMerkleProof } from "./evm-simplified-bridge.mjs";
|
|
5
3
|
import { AcknowledgeNftPayloadCustodyInput, AppreciationMedalKind, ArcSpaceKarmaCheckpointInput, ArcSpaceKarmaCheckpointResult, ArcSpaceKarmaVoucherItem, CompanionAppreciationMedalNft, ConfigureNftPayloadVisibilityInput, CreateGiveToMintTokenInput, CreationSocialObject, CreatorThankYouBadge, DEFAULT_EPOCH_KARMA_ALLOWANCE, DEFAULT_KARMA_TOKEN_ADDRESS, DEFAULT_MAX_HISTORICAL_KARMA_CLAIM, DEFAULT_SPONSORED_BADGE_MINT_QUOTA, DidKarmaIdentityState, GIVE_TO_MINT_TOKEN_TYPE, GiveToMintDistributionEntry, GiveToMintRequest, GiveToMintResult, GiveToMintTokenConfig, HISTORICAL_CLAIM_TRUST_BOOST_BPS, HistoricalKarmaClaimInput, HistoricalKarmaClaimResult, HistoricalSourcePlatform, KarmaCitationShare, KarmaIndexedPoolSettlementInput, KarmaIndexedPoolSettlementResult, KarmaStakeLock, MAX_ACTIVE_SPONSORED_BADGE_MINT_QUOTA, MAX_CHECKPOINT_VOUCHERS_PER_BATCH, MAX_CUSTOM_TOKEN_EPOCH_ALLOWANCE, MAX_CUSTOM_TOKEN_HISTORICAL_CLAIM_CAP, MAX_EPOCH_FORWARD_DRIFT, MAX_HISTORICAL_KARMA_PER_VERIFIED_ITEM, MAX_SPONSORED_BADGE_MINT_QUOTA_PER_GRANT, MAX_TOTAL_CITATION_SHARE_BPS, MAX_UPSTREAM_CITATIONS, MIN_GIVE_TO_MINT_DUST_FLOOR, MIN_GIVE_TO_MINT_TOKEN_CREATION_FEE, MIN_KARMA_FOR_THANK_YOU_BADGE, NftPayloadAccessResolution, NftPayloadCustodyState, NftPayloadVisibility, OcapGiveToMintEngine, PerTokenAccountKarmaState, RECIPROCAL_RING_DAMPING_BPS, VerifiableEpochArchiveCheckpoint, computeArcSpaceCheckpointRoot, computeArcSpaceVoucherDigest, computeHistoricalClaimNullifier, computeNftPayloadCommitmentDigest, deriveCompanionMedalDid, deriveThankYouBadgeDid } from "./give-to-mint-karma.mjs";
|
|
4
|
+
import { DEFAULT_MAX_ROLLUP_BLOCK_SIZE, DEFAULT_ROLLUP_SUNSET_ACTIVATION_HEIGHT, DEPRECATED_ROLLUP_PROTOCOL_TYPE_URLS, DeprecatedRollupProtocolTypeUrl, LegacyRollupReadOnlySummary, LegacyRollupRecordKind, ZERO_BYTES32_HASH, assertRollupProtocolNotSunset, computeEvmBridgeBlockHash, computeEvmBridgeTxsHash, isDeprecatedRollupWriteProtocol, parseLegacyRollupReadOnlyRecord } from "./legacy-rollup-archive.mjs";
|
|
5
|
+
import { CONTRACT_NFT_KIND, ContractGuardPredicate, ContractNftPayload, CrossChainDepositSpec, CrossChainPurchaseInput, DEFAULT_MAX_STATEMENTS_PER_HOT_KEY_PER_BLOCK, HARD_MAX_TX_BLOCK_STATEMENTS, MAX_CONTRACT_ARGS_BYTES, MAX_CONTRACT_FOOTPRINT_KEYS, MAX_CONTRACT_NFT_STATEMENTS, MAX_EXECUTE_ASSET_CALLS_PER_BLOCK, MAX_EXECUTE_ASSET_DEPTH, MAX_TX_BLOCK_BYTES, MAX_TX_BLOCK_READ_KEYS, MAX_TX_BLOCK_STATE_DIFF_ENTRIES, MAX_TX_BLOCK_TOP_LEVEL_STATEMENTS, MAX_TX_BLOCK_TOTAL_EXPANDED_STATEMENTS, MAX_TX_BLOCK_WRITE_KEYS, OverlayStateDB, PendingTransferRecord, PreparedTransactionBlock, ResolvedTransactionBlockBudget, StagedSyncPipeline, StateDiffEntry, StateFootprint, StatementExecutor, SyncStage, TransactionBlockInput, TransactionBlockPostConditions, TransactionBlockResourceBudget, TransactionBlockResult, TransactionStatement, TwoPhaseCommitCoordinator, TwoPhaseTransferLedger, WalletClearSigningPreview, assertLeafStatementTemplateOnly, assertTransactionBlockResourceBudget, buildWalletClearSigningPreview, computeAccountAndAssetNetEffects, createOverlayStateDB, executeContractNft, executeCrossChainPurchaseBlock, executeTransactionBlock, extractStateFootprint, hasStateConflict, isExecuteAssetStatement, resolveEffectiveResourceBudget, resolveStatementReferences, scheduleParallelBatches, verifyTransactionBlockPostConditions } from "./transaction-block.mjs";
|
|
6
6
|
import { CompatibilityAddonMetrics, CompatibilityAddonMode, CompatibilityDeprecationWarning, CompatibilityTranslationResult, DEFAULT_LEGACY_PROTOCOL_SUNSET_HEIGHT, DEPRECATED_LEGACY_PROTOCOL_TYPE_URLS, DEPRECATED_MIOTX_AND_TRADE_TYPE_URLS, DEPRECATED_MIOTX_PROTOCOL_TYPE_URLS, DEPRECATED_ROLLUP_AND_BRIDGE_TYPE_URLS, DEPRECATED_VERSIONED_ASSET_TYPE_URLS, DOMAIN_COUPLED_PROTOCOL_ALIAS_MAP, DeprecatedLegacyProtocolTypeUrl, DomainCoupledProtocolAliasTypeUrl, LegacyMiotxParticipantEntry, LegacyProtocolCompatibilityAddon, LegacyProtocolReplacementSpec, LegacyProtocolSunsetCategory, LegacyTokenAmountEntry, LegacyTxReadOnlyArchiveSummary, MAX_LEGACY_MIOTX_ASSETS_PER_ENTRY, MAX_LEGACY_MIOTX_PARTICIPANTS, MAX_LEGACY_MIOTX_TOKENS_PER_ENTRY, VNEXT_CANONICAL_WRITE_PROTOCOL_TYPE_URLS, VNextCanonicalWriteProtocolTypeUrl, assertLegacyProtocolNotSunset, assertTransactionBlockVNextPure, compileLegacyTxToVNextTransactionBlock, executeVNextTransactionBlock, getLegacyProtocolReplacementSpec, isDeprecatedLegacyWriteProtocol, isDomainCoupledProtocolAlias, isMiotxLegacyProtocol, isVNextCanonicalWriteProtocol, normalizeProtocolTypeUrl, parseLegacyTxReadOnlyArchiveRecord, resolveDomainAgnosticVNextProtocol } from "./legacy-protocol-sunset.mjs";
|
|
7
7
|
import { AcceptNftBuyOfferInput, AddAmmLiquidityInput, AttributionHopSplit, AuthorizeValueCardSpenderInput, BundleComponentAllocationInput, BurnCirculatingUserTokenInput, CANONICAL_ABT_EXCHANGE_BURN_SINK_DID, CANONICAL_SELF_BRIDGE_LIABILITY_DISCLAIMER, CategoryDemandBountyRecord, CategorySupplyDemandMetrics, ChallengeDefectiveSkuInput, ChallengeDefectiveSkuResult, ClawbackUnmaturedCardSettlementInput, ClawbackUnmaturedDistributorRebateInput, ClosePostpaidCreditCardInput, ComposePermissionlessBundleValueCardInput, ComposePermissionlessBundleValueCardResult, ConfigureEscalatingPromoterPolicyInput, CreateBondingCurveFactoryInput, CreateConstantProductPoolInput, CreateNativeNftListingInput, CreateNftBuyOfferInput, DEFAULT_ANTI_SNIPE_WINDOW_SECONDS, DEFAULT_BASELINE_TOKEN_ISSUANCE_STAKE_ABT, DEFAULT_EXCHANGE_ABT_TOKEN_ADDRESS, DEFAULT_EXCHANGE_SWAP_FEE_BPS, DEFAULT_FISHERMAN_DEFECT_BOUNTY_BPS, DEFAULT_FT_ISSUANCE_FEE_ABT, DEFAULT_GRADUATION_FEE_ABT, DEFAULT_MAX_SWAP_PRICE_IMPACT_BPS, DEFAULT_MIN_ENGLISH_BID_INCREMENT_BPS, DEFAULT_MIN_GRADUATION_RESERVE_ABT, DEFAULT_MIN_GRADUATION_UNIQUE_HOLDERS, DEFAULT_MIN_SELF_BRIDGE_SECURITY_BOND_ABT, DEFAULT_MIN_VALUE_CARD_DISTRIBUTOR_STAKE_ABT, DEFAULT_NFT_PROTOCOL_FEE_BPS, DEFAULT_NFT_UI_REFERRER_FEE_BPS, DEFAULT_OFFICIAL_TOKEN_ADDRESS, DEFAULT_PROTOCOL_FEE_SHARE_BPS, DEFAULT_SELF_BRIDGE_REGISTRATION_FEE_ABT, DEFAULT_SKU_ALPHA_PROTECTION_WINDOW_SECONDS, DEFAULT_SKU_QUALITY_BASE_STAKE_ABT, DEFAULT_VALUE_CARD_PROTOCOL_FEE_BPS, DynamicCategoryStakeFloorResult, EscalatingPromoterTier, ExchangeFactoryMode, ExecuteProgrammaticPolRebalanceInput, ExecuteProgrammaticPolRebalanceResult, ExecuteUnifiedSkuCheckoutInput, FulfillNativeNftListingInput, GovernanceExchangePolicy, HARD_MAX_SWAP_PRICE_IMPACT_BPS, IssuePermissionlessTokenInput, IssuePostpaidCreditCardInput, IssuePrepaidValueCardInput, LiquidateDefaultedPostpaidCardInput, MAX_ACTIVE_MATURING_REBATES_PER_DISTRIBUTOR, MAX_BASELINE_TOKEN_ISSUANCE_STAKE_ABT, MAX_DISTRIBUTOR_STAKE_COOLDOWN_SECONDS, MAX_ESCALATING_PROMOTER_REBATE_BPS, MAX_ESCALATING_PROMOTER_TIERS, MAX_EXCHANGE_SWAP_FEE_BPS, MAX_FT_ISSUANCE_FEE_ABT, MAX_GRADUATION_RESERVE_ABT_CEILING, MAX_GRADUATION_UNIQUE_HOLDERS_CEILING, MAX_NFT_CREATOR_ROYALTY_BPS, MAX_NFT_OFFER_PREDICATES, MAX_PROTOCOL_FEE_SHARE_BPS, MAX_SKU_ALPHA_PROTECTION_WINDOW_SECONDS, MAX_SKU_QUALITY_DYNAMIC_STAKE_ABT, MAX_TRACKED_CURVE_HOLDERS, MAX_VALUE_CARD_ALLOWED_MERCHANTS, MAX_VALUE_CARD_ALLOWED_SERVICE_TAGS, MAX_VALUE_CARD_ATTRIBUTION_HOPS, MAX_VALUE_CARD_ATTRIBUTION_TOTAL_BPS, MAX_VALUE_CARD_DISTRIBUTOR_STAKE_ABT, MINIMUM_LOCKED_AMM_LIQUIDITY, MIN_BASELINE_TOKEN_ISSUANCE_STAKE_ABT, MIN_FT_ISSUANCE_FEE_ABT, MIN_GRADUATION_HOLDER_SHARE_BPS, MIN_GRADUATION_RESERVE_ABT_FLOOR, MaturingCardSettlementRecord, MaturingDistributorRebateRecord, MinerRevenueTier, MinerShopPersonaPublicRecord, NativeNftBuyOfferRecord, NativeNftListingMode, NativeNftListingRecord, NativeNftOfferSettlementResult, NativeNftSettlementResult, NativeSwapExecutionResult, NftAttributePredicate, NftAttributePredicateOperator, OcapNativeAbtExchangeEngine, OcapNativeExchangeEngine, OpenComposingRuleClaims, PathPaymentCheckoutInput, PlaceEnglishNftBidInput, PostCategoryDemandBountyInput, PurchaseDedicatedValueCardInput, PurchaseDedicatedValueCardResult, RecalibrateDynamicStakeFloorInput, RecalibrateDynamicStakeFloorResult, RedeemPrepaidValueCardInput, RegisterMinerShopPersonaInput, RegisterSelfOperatedBridgeInput, RegisterSkuFactoryListingInput, ReleaseMaturedCardSettlementInput, ReleaseMaturedDistributorRebateInput, RemoveAmmLiquidityInput, RetireDestroyedTokenInput, RewardCoalitionValueCardInput, RewardCoalitionValueCardResult, SelfOperatedSubTokenBridgeRecord, SettlePostpaidValueCardInput, SignedOpenComposingRuleVc, SingleHopAbtSwapInput, SkuFactoryListingRecord, SkuGranularMetricsView, SkuOrderSettlementRecord, SpendValueCardInput, SpendValueCardResult, StakeForValueCardDistributorInput, StakeForValueCardDistributorResult, TopUpPrepaidValueCardInput, TwoHopTokenSwapInput, UnifiedAbtExchangePoolState, UnstakeValueCardDistributorInput, UnstakeValueCardDistributorResult, UpdateGovernanceExchangePolicyInput, UserIssuedTokenRecord, ValueCardDistributorStakeRecord, ValueCardFundingLineage, ValueCardMode, ValueCardPolicyEnvelope, ValueCardRecord, VerifiableMinerRevenueBadge, computeOpenComposingRuleVcDigest, computeSelfBridgeDisclaimerDigest, computeStakeAddress, deriveSkuQualityStakeAddress, deriveValueCardDistributorStakeAddress, evaluateNftAttributePredicates, integerSqrtBn, issueOpenComposingRuleVc, resolveEscalatingPromoterBps, verifyOpenComposingRuleVc } from "./native-abt-exchange.mjs";
|
|
8
8
|
import { DEFAULT_ISSUER_STAGING_TTL_EPOCHS, FactoryBlueprintRolloutResult, FactoryBlueprintSafetyReport, FactorySafetyInvariant, KarmaSettlementPoolFactoryRecord, KarmaSettlementPoolFactorySpec, MAX_ISSUER_STAGING_TTL_EPOCHS, MAX_SOVEREIGN_NFT_FACTORY_SUPPLY, MintSovereignNftInput, OcapSocialEconomyFactoryRegistry, PilotPrivateCircleDeliveryInput, PilotPrivateCircleDeliveryResult, PilotPublicContentAppreciationInput, PilotPublicContentAppreciationResult, ReputationTokenFactoryInput, ReputationTokenFactoryRecord, SocialEconomyFactoryBlueprint, SocialEconomyFactoryKind, SovereignNftAccessResolution, SovereignNftCategory, SovereignNftFactoryRecord, SovereignNftFactorySpec, SovereignNftInstance, deriveSovereignNftDid } from "./social-economy-factories.mjs";
|
|
@@ -10,7 +10,7 @@ import { AcceptStickerOfferInput, AcceptStickerOfferResult, AnchorSpaceManifestI
|
|
|
10
10
|
import { CrossChainSettlementProof, DEFAULT_MAX_SWEEP_BATCH_SIZE, Erc7683FillInstruction, Erc7683Output, Erc7683ResolvedCrossChainOrder, MAX_ACTIVE_INTENTS_PER_USER, MAX_INTENT_TIMEOUT_BLOCKS, MIN_RECOMMENDED_SOLVER_SHARDS, ManagedIntentRecord, OcapErc7683SolverEngine, OriginEscrowProof, SolverEngineConfig, SolverExecutionMode, selectSolverSubVaultShard } from "./uniswap-erc7683-solver.mjs";
|
|
11
11
|
import { DEFAULT_LP_JITTER_WINDOW_BLOCKS, DEFAULT_LP_REBALANCE_COOLDOWN_BLOCKS, LpRebalanceProposalInput, MAX_LP_REBALANCE_SLIPPAGE_BPS, MAX_UNISWAP_TICK, MIN_UNISWAP_TICK, NonCustodialLpContractNftAsset, NonCustodialLpGuardSpec, buildNonCustodialLpContractNft, computeDeterministicRebalanceSlot, executeNonCustodialLpRebalance } from "./uniswap-lp-copilot.mjs";
|
|
12
12
|
import { CHAINALYSIS_OFAC_ORACLE_ADDRESS, assertNotOfacSanctioned, normalizeScreeningAddress } from "./ofac-screening.mjs";
|
|
13
|
-
import { ABT_DECIMALS_SCALE, AbtUtilityPassThroughInput, AbtUtilityPassThroughPlan, DEFAULT_OCAP_INTEGRATOR_ID, DEFAULT_USD_QUOTE_TTL_SECONDS, MAX_ALLOWED_ZAP_SLIPPAGE_BPS, MAX_ROUTE_PATH_LENGTH, MAX_USD_QUOTE_TTL_SECONDS, OutboundWithdrawAndSwapInput, OutboundWithdrawAndSwapPlan, Permit2SingleSpec, UNIVERSAL_ROUTER_COMMANDS, UniversalRouterCrossChainZapInput, UniversalRouterCrossChainZapPayload, UsdAnchoredAbtQuote, UsdAnchoredAbtQuoteInput, VerifyUsdAnchoredAbtQuoteInput, buildAbtUtilityPassThroughPlan, buildOutboundWithdrawAndSwapPlan, buildUniversalRouterCrossChainPayload, createUsdAnchoredAbtQuote, verifyUsdAnchoredAbtQuote } from "./uniswap-router.mjs";
|
|
13
|
+
import { ABT_DECIMALS_SCALE, AbtUtilityPassThroughInput, AbtUtilityPassThroughPlan, DEFAULT_OCAP_INTEGRATOR_ID, DEFAULT_SELECTED_TREASURY_CURRENCY_SYMBOLS, DEFAULT_USD_QUOTE_TTL_SECONDS, DirectBuyExternalSettlementMode, DirectBuyOcapFulfillmentMode, DirectBuyPricingPolicyMode, DirectBuyTreasuryCashier, DirectBuyTreasuryCashierConfig, DirectBuyTreasuryCashierInput, DirectBuyTreasuryCashierPlan, ExternalPaymentChainFamily, MAX_ALLOWED_ZAP_SLIPPAGE_BPS, MAX_ROUTE_PATH_LENGTH, MAX_TRACKED_DIRECT_BUY_EVIDENCES, MAX_USD_QUOTE_TTL_SECONDS, OutboundWithdrawAndSwapInput, OutboundWithdrawAndSwapPlan, Permit2SingleSpec, SelectedTreasuryCurrencySpec, SelectedTreasuryCurrencySymbol, UNIVERSAL_ROUTER_COMMANDS, UniversalRouterCrossChainZapInput, UniversalRouterCrossChainZapPayload, UnlistedTokenExternalSwapSpec, UsdAnchoredAbtQuote, UsdAnchoredAbtQuoteInput, VerifyUsdAnchoredAbtQuoteInput, buildAbtUtilityPassThroughPlan, buildDirectBuyTreasuryCashierPlan, buildOutboundWithdrawAndSwapPlan, buildUniversalRouterCrossChainPayload, createUsdAnchoredAbtQuote, verifyUsdAnchoredAbtQuote } from "./uniswap-router.mjs";
|
|
14
14
|
import { BaseV4GraduationMigrationProof, CANONICAL_LP_BURN_DEAD_ADDRESS, FunctionalUtilityCategory, FunctionalUtilityCharter, IncubatedTokenFactoryRecord, IncubatedTokenFactorySpec, MAX_MINT_RATIO_PER_RESERVE_UNIT, MIN_CREATOR_VESTING_CLIFF_BLOCKS, OcapTokenFactoryGraduationEngine, TokenFactoryGraduationStatus, VerifiedCreatorCredential, computeDeterministicV4GraduationPoolId } from "./uniswap-token-factory-graduation.mjs";
|
|
15
15
|
import { BeforeSwapEvaluationResult, DEFAULT_MIN_HOLDING_BLOCKS, HookFeeTierName, MAX_HOOK_TICKET_TTL_SECONDS, MAX_V4_DYNAMIC_FEE_BPS, MIN_LP_MEV_REBATE_SHARE_BPS, OCAP_VERIFIED_HOOK_SOLIDITY_SPEC, OcapHookTicketClaims, OcapVerifiedHookEngine, SignedOcapHookTicket, V4PoolComplianceMode, V4PoolHookConfig, assertZeroPiiInHookData, computeOcapHookTicketDigest, issueOcapHookTicket, verifyOcapHookTicketSignature } from "./uniswap-v4-hook.mjs";
|
|
16
|
-
export { ABT_DECIMALS_SCALE, ARC_EVM_BRIDGE_GATEWAY_SOLIDITY_SPEC, type AbtUtilityPassThroughInput, type AbtUtilityPassThroughPlan, type AcceptNftBuyOfferInput, type AcceptStickerOfferInput, type AcceptStickerOfferResult, type AcknowledgeNftPayloadCustodyInput, type AddAmmLiquidityInput, type AnchorSpaceManifestInput, type AppreciationMedalKind, type ArcSpaceKarmaCheckpointInput, type ArcSpaceKarmaCheckpointResult, type ArcSpaceKarmaVoucherItem, type ArcVaultLiquidityState, type ArcVaultShareholderPosition, type ArcadeMachineState, type ArcadeSettlementMode, type AttentionStampRecord, type AttentionStampResolutionMode, type AttributionHopSplit, type AuthorizeValueCardSpenderInput, BPS_DENOMINATOR, BRIDGE_CHARTER_KIND, type BaseV4GraduationMigrationProof, type BeforeSwapEvaluationResult, type BridgeDurableStateSnapshot, type BridgeValidatorSignature, type BridgeWebPortalActionBundle, type BridgeWebPortalActionInput, type BridgeWebPortalConfig, type BundleComponentAllocationInput, type BurnCirculatingUserTokenInput, CANONICAL_ABT_EXCHANGE_BURN_SINK_DID, CANONICAL_LP_BURN_DEAD_ADDRESS, CANONICAL_SELF_BRIDGE_LIABILITY_DISCLAIMER, CHAINALYSIS_OFAC_ORACLE_ADDRESS, CONTRACT_NFT_KIND, type CategoryDemandBountyRecord, type CategorySupplyDemandMetrics, type ChallengeDefectiveSkuInput, type ChallengeDefectiveSkuResult, type ClawbackUnmaturedCardSettlementInput, type ClawbackUnmaturedDistributorRebateInput, type ClosePostpaidCreditCardInput, type CloudflareBridgeEdgeRequest, type CloudflareBridgeEdgeResponse, type CompanionAppreciationMedalNft, type CompatibilityAddonMetrics, type CompatibilityAddonMode, type CompatibilityDeprecationWarning, type CompatibilityTranslationResult, type ComposePermissionlessBundleValueCardInput, type ComposePermissionlessBundleValueCardResult, type ConfigureEscalatingPromoterPolicyInput, type ConfigureNftPayloadVisibilityInput, type ContractGuardPredicate, type ContractNftPayload, type CreateBondingCurveFactoryInput, type CreateConstantProductPoolInput, type CreateGiveToMintTokenInput, type CreateNativeNftListingInput, type CreateNftBuyOfferInput, type CreateSponsorBudgetPoolInput, type CreationSocialObject, type CreatorThankYouBadge, type CrossChainDepositSpec, type CrossChainPurchaseInput, type CrossChainSettlementProof, type CrowdloanContributorPosition, DEFAULT_ABT_TOKEN_ADDRESS, DEFAULT_ANTI_SNIPE_WINDOW_SECONDS, DEFAULT_BASELINE_TOKEN_ISSUANCE_STAKE_ABT, DEFAULT_EPOCH_KARMA_ALLOWANCE, DEFAULT_EXCHANGE_ABT_TOKEN_ADDRESS, DEFAULT_EXCHANGE_SWAP_FEE_BPS, DEFAULT_FISHERMAN_DEFECT_BOUNTY_BPS, DEFAULT_FT_ISSUANCE_FEE_ABT, DEFAULT_GRADUATION_FEE_ABT, DEFAULT_ISSUER_STAGING_TTL_EPOCHS, DEFAULT_KARMA_TOKEN_ADDRESS, DEFAULT_LEGACY_PROTOCOL_SUNSET_HEIGHT, DEFAULT_LP_JITTER_WINDOW_BLOCKS, DEFAULT_LP_REBALANCE_COOLDOWN_BLOCKS, DEFAULT_MAX_HISTORICAL_KARMA_CLAIM, DEFAULT_MAX_ROLLUP_BLOCK_SIZE, DEFAULT_MAX_STATEMENTS_PER_HOT_KEY_PER_BLOCK, DEFAULT_MAX_SWAP_PRICE_IMPACT_BPS, DEFAULT_MAX_SWEEP_BATCH_SIZE, DEFAULT_MIN_ENGLISH_BID_INCREMENT_BPS, DEFAULT_MIN_EVM_CONFIRMATIONS, DEFAULT_MIN_GRADUATION_RESERVE_ABT, DEFAULT_MIN_GRADUATION_UNIQUE_HOLDERS, DEFAULT_MIN_HOLDING_BLOCKS, DEFAULT_MIN_MULTISIG_COOLDOWN_SECONDS, DEFAULT_MIN_SELF_BRIDGE_SECURITY_BOND_ABT, DEFAULT_MIN_VALUE_CARD_DISTRIBUTOR_STAKE_ABT, DEFAULT_MULTISIG_CERT_TTL_SECONDS, DEFAULT_NFT_PROTOCOL_FEE_BPS, DEFAULT_NFT_UI_REFERRER_FEE_BPS, DEFAULT_OCAP_INTEGRATOR_ID, DEFAULT_OFFICIAL_TOKEN_ADDRESS, DEFAULT_PROTOCOL_FEE_SHARE_BPS, DEFAULT_ROLLUP_SUNSET_ACTIVATION_HEIGHT, DEFAULT_SELF_BRIDGE_REGISTRATION_FEE_ABT, DEFAULT_SKU_ALPHA_PROTECTION_WINDOW_SECONDS, DEFAULT_SKU_QUALITY_BASE_STAKE_ABT, DEFAULT_SPONSORED_BADGE_MINT_QUOTA, DEFAULT_USD_QUOTE_TTL_SECONDS, DEFAULT_VALUE_CARD_PROTOCOL_FEE_BPS, DEFAULT_VERIFYING_CONTRACT_ADDRESS, DEFAULT_WITHDRAW_TIMELOCK_DELAY_SECONDS, DEPRECATED_LEGACY_PROTOCOL_TYPE_URLS, DEPRECATED_MIOTX_AND_TRADE_TYPE_URLS, DEPRECATED_MIOTX_PROTOCOL_TYPE_URLS, DEPRECATED_ROLLUP_AND_BRIDGE_TYPE_URLS, DEPRECATED_ROLLUP_PROTOCOL_TYPE_URLS, DEPRECATED_VERSIONED_ASSET_TYPE_URLS, DIRECT_WITHDRAW_TYPEHASH, DOMAIN_COUPLED_PROTOCOL_ALIAS_MAP, type DeprecatedLegacyProtocolTypeUrl, type DeprecatedRollupProtocolTypeUrl, type DidKarmaIdentityState, type DirectWithdrawVoucher, type DomainCoupledProtocolAliasTypeUrl, type DynamicCategoryStakeFloorResult, EIP712_BRIDGE_DOMAIN_NAME, EIP712_BRIDGE_DOMAIN_VERSION, EIP712_DOMAIN_TYPEHASH, EMPTY_ROLLUP_MERKLE_ROOT, EXPECTED_CATEGORY_BY_OPERATION, type Eip1193TransactionStep, type Erc7683FillInstruction, type Erc7683Output, type Erc7683ResolvedCrossChainOrder, type EscalatingPromoterTier, type EvmAbtDepositEventInput, type EvmChallengeSentinelCoSignature, type EvmPendingTwoPhaseChallenge, type EvmServicePaymentEventInput, type EvmWithdrawClaimProofBundle, type ExchangeFactoryMode, type ExecuteProgrammaticPolRebalanceInput, type ExecuteProgrammaticPolRebalanceResult, type ExecuteUnifiedSkuCheckoutInput, type ExternalSwapHookInput, type ExternalSwapHookResult, FORBIDDEN_EXTERNAL_CALL_SELECTORS, type FactoryBlueprintRolloutResult, type FactoryBlueprintSafetyReport, type FactorySafetyInvariant, type FulfillNativeNftListingInput, type FunctionalUtilityCategory, type FunctionalUtilityCharter, GIVE_TO_MINT_TOKEN_TYPE, type GiveToMintDistributionEntry, type GiveToMintRequest, type GiveToMintResult, type GiveToMintTokenConfig, type GovernanceExchangePolicy, type GrantSpaceAssetDelegationInput, HARD_FLOOR_MULTISIG_COOLDOWN_SECONDS, HARD_MAX_SWAP_PRICE_IMPACT_BPS, HARD_MAX_TX_BLOCK_STATEMENTS, HISTORICAL_CLAIM_TRUST_BOOST_BPS, HOLDER_RELEASE_INTENT_TYPEHASH, HardenedMultiSigSignerManagerV2, type HistoricalKarmaClaimInput, type HistoricalKarmaClaimResult, type HistoricalSourcePlatform, type HookFeeTierName, IBO_DIVIDEND_PRECISION, type IboOrganizationState, type IboPartnerPosition, type IncubatedTokenFactoryRecord, type IncubatedTokenFactorySpec, type IssuePermissionlessTokenInput, type IssuePostpaidCreditCardInput, type IssuePrepaidBudgetCardInput, type IssuePrepaidValueCardInput, type KarmaCitationShare, type KarmaIndexedPoolSettlementInput, type KarmaIndexedPoolSettlementResult, type KarmaSettlementPoolFactoryRecord, type KarmaSettlementPoolFactorySpec, type KarmaStakeLock, type LegacyMiotxParticipantEntry, LegacyProtocolCompatibilityAddon, type LegacyProtocolReplacementSpec, type LegacyProtocolSunsetCategory, type LegacyRollupReadOnlySummary, type LegacyRollupRecordKind, type LegacyTokenAmountEntry, type LegacyTxReadOnlyArchiveSummary, type LiquidateDefaultedPostpaidCardInput, type LocalEvmTxExecutionReceipt, type LocalEvmValidatorKeySpec, type LockAttentionStampInput, type LpRebalanceProposalInput, MAX_ACTIVE_INTENTS_PER_USER, MAX_ACTIVE_MATURING_REBATES_PER_DISTRIBUTOR, MAX_ACTIVE_SPONSORED_BADGE_MINT_QUOTA, MAX_ALLOWED_ZAP_SLIPPAGE_BPS, MAX_ARCADE_HOUSE_SPLIT_BPS, MAX_ARCADE_WINNERS_PER_ROUND, MAX_ATTENTION_STAMP_TTL_EPOCHS, MAX_BASELINE_TOKEN_ISSUANCE_STAKE_ABT, MAX_CHECKPOINT_VOUCHERS_PER_BATCH, MAX_CONTRACT_ARGS_BYTES, MAX_CONTRACT_FOOTPRINT_KEYS, MAX_CONTRACT_NFT_STATEMENTS, MAX_CUSTOM_TOKEN_EPOCH_ALLOWANCE, MAX_CUSTOM_TOKEN_HISTORICAL_CLAIM_CAP, MAX_DIRECT_VOUCHER_TTL_SECONDS, MAX_DISTRIBUTOR_STAKE_COOLDOWN_SECONDS, MAX_EDGE_WEBHOOK_BODY_BYTES, MAX_EDGE_WEBHOOK_SKEW_SECONDS, MAX_EPOCH_FORWARD_DRIFT, MAX_ESCALATING_PROMOTER_REBATE_BPS, MAX_ESCALATING_PROMOTER_TIERS, MAX_EXCHANGE_SWAP_FEE_BPS, MAX_EXECUTE_ASSET_CALLS_PER_BLOCK, MAX_EXECUTE_ASSET_DEPTH, MAX_FREE_RELAY_CREDITS_PER_EPOCH, MAX_FT_ISSUANCE_FEE_ABT, MAX_GRADUATION_RESERVE_ABT_CEILING, MAX_GRADUATION_UNIQUE_HOLDERS_CEILING, MAX_HARVEST_YIELD_BPS, MAX_HISTORICAL_KARMA_PER_VERIFIED_ITEM, MAX_HOOK_TICKET_TTL_SECONDS, MAX_IBO_TOTAL_FEE_SPLIT_BPS, MAX_INTENT_TIMEOUT_BLOCKS, MAX_ISSUER_STAGING_TTL_EPOCHS, MAX_LEGACY_MIOTX_ASSETS_PER_ENTRY, MAX_LEGACY_MIOTX_PARTICIPANTS, MAX_LEGACY_MIOTX_TOKENS_PER_ENTRY, MAX_LP_REBALANCE_SLIPPAGE_BPS, MAX_MINT_RATIO_PER_RESERVE_UNIT, MAX_MULTISIG_CERT_TTL_SECONDS, MAX_MULTISIG_VOTES_PER_CERT, MAX_NFT_CREATOR_ROYALTY_BPS, MAX_NFT_OFFER_PREDICATES, MAX_PREPAID_CARD_ALLOWED_PROVIDERS, MAX_PROTOCOL_FEE_SHARE_BPS, MAX_PUBLISHED_MULTISIG_PROPOSALS, MAX_ROUTE_PATH_LENGTH, MAX_SKU_ALPHA_PROTECTION_WINDOW_SECONDS, MAX_SKU_QUALITY_DYNAMIC_STAKE_ABT, MAX_SOVEREIGN_NFT_FACTORY_SUPPLY, MAX_SPACE_DISPLAYED_STICKERS, MAX_SPACE_PLACED_MACHINES, MAX_SPONSORED_BADGE_MINT_QUOTA_PER_GRANT, MAX_STICKER_ROYALTY_BPS, MAX_TOTAL_CITATION_SHARE_BPS, MAX_TRACKED_CURVE_HOLDERS, MAX_TRACKED_WEBHOOK_NONCES, MAX_TX_BLOCK_BYTES, MAX_TX_BLOCK_READ_KEYS, MAX_TX_BLOCK_STATE_DIFF_ENTRIES, MAX_TX_BLOCK_TOP_LEVEL_STATEMENTS, MAX_TX_BLOCK_TOTAL_EXPANDED_STATEMENTS, MAX_TX_BLOCK_WRITE_KEYS, MAX_UNISWAP_TICK, MAX_UPSTREAM_CITATIONS, MAX_USD_QUOTE_TTL_SECONDS, MAX_V4_DYNAMIC_FEE_BPS, MAX_VALUE_CARD_ALLOWED_MERCHANTS, MAX_VALUE_CARD_ALLOWED_SERVICE_TAGS, MAX_VALUE_CARD_ATTRIBUTION_HOPS, MAX_VALUE_CARD_ATTRIBUTION_TOTAL_BPS, MAX_VALUE_CARD_DISTRIBUTOR_STAKE_ABT, MAX_VAULT_STRATEGY_DEPLOYED_BPS, MAX_ZAP_ABT_PER_SETTLEMENT_SCALAR, MAX_ZAP_PRICE_IMPACT_BPS, MINIMUM_LOCKED_AMM_LIQUIDITY, MIN_ARCADE_HOUSE_SPLIT_BPS, MIN_ATTENTION_STAMP_ABT, MIN_BASELINE_TOKEN_ISSUANCE_STAKE_ABT, MIN_CREATOR_VESTING_CLIFF_BLOCKS, MIN_DIRECT_VOUCHER_TTL_SECONDS, MIN_FT_ISSUANCE_FEE_ABT, MIN_GIVE_TO_MINT_DUST_FLOOR, MIN_GIVE_TO_MINT_TOKEN_CREATION_FEE, MIN_GRADUATION_HOLDER_SHARE_BPS, MIN_GRADUATION_RESERVE_ABT_FLOOR, MIN_KARMA_FOR_THANK_YOU_BADGE, MIN_LP_MEV_REBATE_SHARE_BPS, MIN_MULTISIG_CERT_TTL_SECONDS, MIN_RECOMMENDED_SOLVER_SHARDS, MIN_UNISWAP_TICK, MIN_VAULT_LIQUID_BUFFER_BPS, MULTISIG_OP_TYPEHASH, MULTISIG_VETO_ATTESTATION_TYPEHASH, type MakeStickerOfferInput, type ManagedIntentRecord, type MaturingCardSettlementRecord, type MaturingDistributorRebateRecord, type MinerRevenueTier, type MinerShopPersonaPublicRecord, type MintSovereignNftInput, type MultiSigDecodedParams, type MultiSigProposalIntentInput, type MultiSigVoteRecord, type NativeNftBuyOfferRecord, type NativeNftListingMode, type NativeNftListingRecord, type NativeNftOfferSettlementResult, type NativeNftSettlementResult, type NativeSwapExecutionResult, type NftAttributePredicate, type NftAttributePredicateOperator, type NftPayloadAccessResolution, type NftPayloadCustodyState, type NftPayloadVisibility, type NonCustodialLpContractNftAsset, type NonCustodialLpGuardSpec, OCAP_VERIFIED_HOOK_SOLIDITY_SPEC, type OcapAbtWithdrawItem, OcapArcVaultExternalAdapterEngine, OcapErc7683SolverEngine, OcapGiveToMintEngine, type OcapHookTicketClaims, OcapLocalEvmBridgeTestnetHarness, OcapNativeAbtExchangeEngine, OcapNativeExchangeEngine, OcapOnChainBridgeGovernanceRegistry, type OcapPublishedMultiSigCertificate, OcapPublishedMultiSigEngine, type OcapRelayerDepositTxInstruction, type OcapServiceDeliveryInstruction, OcapSimplifiedEvmBridgeNode, OcapSocialEconomyFactoryRegistry, OcapSovereignAppChainHubEngine, OcapSuperSuitesFoundationEngine, OcapTokenFactoryGraduationEngine, OcapVerifiedHookEngine, type OpenComposingRuleClaims, type OriginEscrowProof, type OutboundWithdrawAndSwapInput, type OutboundWithdrawAndSwapPlan, OverlayStateDB, PUBLISHED_MULTISIG_CERT_OP_TYPEHASH, type PathPaymentCheckoutInput, type PendingTransferRecord, type PerTokenAccountKarmaState, type Permit2SingleSpec, type PfmCrossSpokePacketInput, type PilotPrivateCircleDeliveryInput, type PilotPrivateCircleDeliveryResult, type PilotPublicContentAppreciationInput, type PilotPublicContentAppreciationResult, type PlaceEnglishNftBidInput, type PlayArcadeMachineTicketInput, type PlayArcadeMachineTicketResult, type PostCategoryDemandBountyInput, type PrepaidBudgetCardNft, type PreparedTransactionBlock, type PublishedMultiSigClearSigningPreview, type PublishedMultiSigLedgerMode, type PurchaseDedicatedValueCardInput, type PurchaseDedicatedValueCardResult, RECIPROCAL_RING_DAMPING_BPS, type RecalibrateDynamicStakeFloorInput, type RecalibrateDynamicStakeFloorResult, type RedeemPrepaidBudgetCardInput, type RedeemPrepaidBudgetCardResult, type RedeemPrepaidValueCardInput, type RegisterArcadeMachineInput, type RegisterIboOrganizationInput, type RegisterMinerShopPersonaInput, type RegisterSelfOperatedBridgeInput, type RegisterSkuFactoryListingInput, type RegisterStickerNftInput, type ReleaseMaturedCardSettlementInput, type ReleaseMaturedDistributorRebateInput, type RemoveAmmLiquidityInput, type ReputationTokenFactoryInput, type ReputationTokenFactoryRecord, type ResolveAttentionStampInput, type ResolveAttentionStampResult, type ResolvedTransactionBlockBudget, type RetireDestroyedTokenInput, type RewardCoalitionValueCardInput, type RewardCoalitionValueCardResult, type SealedRollupWithdrawBlock, type SelfOperatedSubTokenBridgeRecord, type SettleArcadeMachineWinnersInput, type SettleArcadeMachineWinnersResult, type SettleIboServiceCheckoutInput, type SettleIboServiceCheckoutResult, type SettlePostpaidValueCardInput, type SignedOcapHookTicket, type SignedOpenComposingRuleVc, type SimplifiedEvmBridgeConfig, type SingleHopAbtSwapInput, type SkuFactoryListingRecord, type SkuGranularMetricsView, type SkuOrderSettlementRecord, type SocialEconomyFactoryBlueprint, type SocialEconomyFactoryKind, type SolverEngineConfig, type SolverExecutionMode, type SovereignNftAccessResolution, type SovereignNftCategory, type SovereignNftFactoryRecord, type SovereignNftFactorySpec, type SovereignNftInstance, type SovereignReserveState, type SpaceAssetDelegationGrant, type SpaceManifestAnchorRecord, type SpendValueCardInput, type SpendValueCardResult, type SpokeCrowdloanState, type SponsorBudgetPoolState, StagedSyncPipeline, type StakeForValueCardDistributorInput, type StakeForValueCardDistributorResult, type StateDiffEntry, type StateFootprint, type StatementExecutor, type StickerNftRecord, type StickerOfferRecord, type SyncStage, TWO_PHASE_CHALLENGE_TYPEHASH, type TokenFactoryGraduationStatus, type TopUpPrepaidValueCardInput, type TransactionBlockInput, type TransactionBlockPostConditions, type TransactionBlockResourceBudget, type TransactionBlockResult, type TransactionStatement, type TwoHopTokenSwapInput, TwoPhaseCommitCoordinator, TwoPhaseTransferLedger, UNIVERSAL_ROUTER_COMMANDS, type UnifiedAbtExchangePoolState, type UniversalAbtZapInInput, type UniversalAbtZapInResult, type UniversalRouterCrossChainZapInput, type UniversalRouterCrossChainZapPayload, type UnstakeValueCardDistributorInput, type UnstakeValueCardDistributorResult, type UpdateGovernanceExchangePolicyInput, type UsdAnchoredAbtQuote, type UsdAnchoredAbtQuoteInput, type UserIssuedTokenRecord, type V4PoolComplianceMode, type V4PoolHookConfig, type VLedgerCheckpointInput, VNEXT_CANONICAL_WRITE_PROTOCOL_TYPE_URLS, type VNextCanonicalWriteProtocolTypeUrl, type ValueCardDistributorStakeRecord, type ValueCardFundingLineage, type ValueCardMode, type ValueCardPolicyEnvelope, type ValueCardRecord, type VerifiableEpochArchiveCheckpoint, type VerifiableMinerRevenueBadge, type VerifiedCreatorCredential, type VerifyUsdAnchoredAbtQuoteInput, type WalletClearSigningPreview, ZERO_BYTES32_HASH, ZERO_EVM_ADDRESS, assertLeafStatementTemplateOnly, assertLegacyProtocolNotSunset, assertNotOfacSanctioned, assertRollupProtocolNotSunset, assertTransactionBlockResourceBudget, assertTransactionBlockVNextPure, assertZeroPiiInHookData, buildAbtUtilityPassThroughPlan, buildEvmBridgeMerkleTree, buildNonCustodialLpContractNft, buildOutboundWithdrawAndSwapPlan, buildPublishedMultiSigClearSigningPreview, buildUniversalRouterCrossChainPayload, buildWalletClearSigningPreview, compileLegacyTxToVNextTransactionBlock, computeAccountAndAssetNetEffects, computeArcSpaceCheckpointRoot, computeArcSpaceVoucherDigest, computeArcadeCommitDigest, computeBridgeGovernanceCharterHash, computeDeterministicRebalanceSlot, computeDeterministicV4GraduationPoolId, computeDirectWithdrawVoucherDigest, computeEdgeWebhookHmac, computeEip712BridgeDomainSeparator, computeEip712WithdrawStructHash, computeEvmBridgeBlockHash, computeEvmBridgeTxsHash, computeEvmBridgeWithdrawLeafHash, computeEvmTwoPhaseChallengeHash, computeHardenedMultiSigOpDigest, computeHistoricalClaimNullifier, computeHolderFinalReleaseDigest, computeMultiSigOperationParamsHash, computeMultiSigVetoAttestationDigest, computeNftPayloadCommitmentDigest, computeOcapHookTicketDigest, computeOpenComposingRuleVcDigest, computePublishedMultiSigCertificateHash, computePublishedMultiSigVoteDigest, computeSelfBridgeDisclaimerDigest, computeSpaceManifestRootDigest, computeStakeAddress, computeVLedgerCheckpointStateRoot, computeVLedgerMultiSigProposalHash, computeValidatorBlockSignatureDigest, computeValidatorVoucherSignatureDigest, createOverlayStateDB, createUsdAnchoredAbtQuote, deriveCompanionMedalDid, deriveEvmAddressFromPrivateKeyHex, deriveSkuQualityStakeAddress, deriveSovereignNftDid, deriveSovereignVaultDid, deriveThankYouBadgeDid, deriveValueCardDistributorStakeAddress, ecrecoverEvmAddress, encodeEvmBridgeWithdrawPackedPreimage, evaluateNftAttributePredicates, executeContractNft, executeCrossChainPurchaseBlock, executeNonCustodialLpRebalance, executeTransactionBlock, executeVNextTransactionBlock, extractStateFootprint, getLegacyProtocolReplacementSpec, hasStateConflict, integerSqrtBn, isDeprecatedLegacyWriteProtocol, isDeprecatedRollupWriteProtocol, isDomainCoupledProtocolAlias, isExecuteAssetStatement, isMiotxLegacyProtocol, isVNextCanonicalWriteProtocol, issueOcapHookTicket, issueOpenComposingRuleVc, normalizeProtocolTypeUrl, normalizeScreeningAddress, parseLegacyRollupReadOnlyRecord, parseLegacyTxReadOnlyArchiveRecord, resolveDomainAgnosticVNextProtocol, resolveEffectiveResourceBudget, resolveEscalatingPromoterBps, resolveStatementReferences, scheduleParallelBatches, selectSolverSubVaultShard, signDigestWithSecp256k1PrivateKey, verifyDirectWithdrawVoucher, verifyEvmBridgeMerkleProof, verifyOcapHookTicketSignature, verifyOpenComposingRuleVc, verifyTransactionBlockPostConditions, verifyUsdAnchoredAbtQuote };
|
|
16
|
+
export { ABT_DECIMALS_SCALE, type AbtUtilityPassThroughInput, type AbtUtilityPassThroughPlan, type AcceptNftBuyOfferInput, type AcceptStickerOfferInput, type AcceptStickerOfferResult, type AcknowledgeNftPayloadCustodyInput, type AddAmmLiquidityInput, type AnchorSpaceManifestInput, type AppreciationMedalKind, type ArcSpaceKarmaCheckpointInput, type ArcSpaceKarmaCheckpointResult, type ArcSpaceKarmaVoucherItem, type ArcVaultLiquidityState, type ArcVaultShareholderPosition, type ArcadeMachineState, type ArcadeSettlementMode, type AttentionStampRecord, type AttentionStampResolutionMode, type AttributionHopSplit, type AuthorizeValueCardSpenderInput, BPS_DENOMINATOR, type BaseV4GraduationMigrationProof, type BeforeSwapEvaluationResult, type BundleComponentAllocationInput, type BurnCirculatingUserTokenInput, CANONICAL_ABT_EXCHANGE_BURN_SINK_DID, CANONICAL_LP_BURN_DEAD_ADDRESS, CANONICAL_SELF_BRIDGE_LIABILITY_DISCLAIMER, CHAINALYSIS_OFAC_ORACLE_ADDRESS, CONTRACT_NFT_KIND, type CategoryDemandBountyRecord, type CategorySupplyDemandMetrics, type ChallengeDefectiveSkuInput, type ChallengeDefectiveSkuResult, type ClawbackUnmaturedCardSettlementInput, type ClawbackUnmaturedDistributorRebateInput, type ClosePostpaidCreditCardInput, type CompanionAppreciationMedalNft, type CompatibilityAddonMetrics, type CompatibilityAddonMode, type CompatibilityDeprecationWarning, type CompatibilityTranslationResult, type ComposePermissionlessBundleValueCardInput, type ComposePermissionlessBundleValueCardResult, type ConfigureEscalatingPromoterPolicyInput, type ConfigureNftPayloadVisibilityInput, type ContractGuardPredicate, type ContractNftPayload, type CreateBondingCurveFactoryInput, type CreateConstantProductPoolInput, type CreateGiveToMintTokenInput, type CreateNativeNftListingInput, type CreateNftBuyOfferInput, type CreateSponsorBudgetPoolInput, type CreationSocialObject, type CreatorThankYouBadge, type CrossChainDepositSpec, type CrossChainPurchaseInput, type CrossChainSettlementProof, type CrowdloanContributorPosition, DEFAULT_ABT_TOKEN_ADDRESS, DEFAULT_ANTI_SNIPE_WINDOW_SECONDS, DEFAULT_BASELINE_TOKEN_ISSUANCE_STAKE_ABT, DEFAULT_EPOCH_KARMA_ALLOWANCE, DEFAULT_EXCHANGE_ABT_TOKEN_ADDRESS, DEFAULT_EXCHANGE_SWAP_FEE_BPS, DEFAULT_FISHERMAN_DEFECT_BOUNTY_BPS, DEFAULT_FT_ISSUANCE_FEE_ABT, DEFAULT_GRADUATION_FEE_ABT, DEFAULT_ISSUER_STAGING_TTL_EPOCHS, DEFAULT_KARMA_TOKEN_ADDRESS, DEFAULT_LEGACY_PROTOCOL_SUNSET_HEIGHT, DEFAULT_LP_JITTER_WINDOW_BLOCKS, DEFAULT_LP_REBALANCE_COOLDOWN_BLOCKS, DEFAULT_MAX_HISTORICAL_KARMA_CLAIM, DEFAULT_MAX_ROLLUP_BLOCK_SIZE, DEFAULT_MAX_STATEMENTS_PER_HOT_KEY_PER_BLOCK, DEFAULT_MAX_SWAP_PRICE_IMPACT_BPS, DEFAULT_MAX_SWEEP_BATCH_SIZE, DEFAULT_MIN_ENGLISH_BID_INCREMENT_BPS, DEFAULT_MIN_GRADUATION_RESERVE_ABT, DEFAULT_MIN_GRADUATION_UNIQUE_HOLDERS, DEFAULT_MIN_HOLDING_BLOCKS, DEFAULT_MIN_SELF_BRIDGE_SECURITY_BOND_ABT, DEFAULT_MIN_VALUE_CARD_DISTRIBUTOR_STAKE_ABT, DEFAULT_NFT_PROTOCOL_FEE_BPS, DEFAULT_NFT_UI_REFERRER_FEE_BPS, DEFAULT_OCAP_INTEGRATOR_ID, DEFAULT_OFFICIAL_TOKEN_ADDRESS, DEFAULT_PROTOCOL_FEE_SHARE_BPS, DEFAULT_ROLLUP_SUNSET_ACTIVATION_HEIGHT, DEFAULT_SELECTED_TREASURY_CURRENCY_SYMBOLS, DEFAULT_SELF_BRIDGE_REGISTRATION_FEE_ABT, DEFAULT_SKU_ALPHA_PROTECTION_WINDOW_SECONDS, DEFAULT_SKU_QUALITY_BASE_STAKE_ABT, DEFAULT_SPONSORED_BADGE_MINT_QUOTA, DEFAULT_USD_QUOTE_TTL_SECONDS, DEFAULT_VALUE_CARD_PROTOCOL_FEE_BPS, DEPRECATED_LEGACY_PROTOCOL_TYPE_URLS, DEPRECATED_MIOTX_AND_TRADE_TYPE_URLS, DEPRECATED_MIOTX_PROTOCOL_TYPE_URLS, DEPRECATED_ROLLUP_AND_BRIDGE_TYPE_URLS, DEPRECATED_ROLLUP_PROTOCOL_TYPE_URLS, DEPRECATED_VERSIONED_ASSET_TYPE_URLS, DOMAIN_COUPLED_PROTOCOL_ALIAS_MAP, type DeprecatedLegacyProtocolTypeUrl, type DeprecatedRollupProtocolTypeUrl, type DidKarmaIdentityState, type DirectBuyExternalSettlementMode, type DirectBuyOcapFulfillmentMode, type DirectBuyPricingPolicyMode, DirectBuyTreasuryCashier, type DirectBuyTreasuryCashierConfig, type DirectBuyTreasuryCashierInput, type DirectBuyTreasuryCashierPlan, type DomainCoupledProtocolAliasTypeUrl, type DynamicCategoryStakeFloorResult, type Erc7683FillInstruction, type Erc7683Output, type Erc7683ResolvedCrossChainOrder, type EscalatingPromoterTier, type ExchangeFactoryMode, type ExecuteProgrammaticPolRebalanceInput, type ExecuteProgrammaticPolRebalanceResult, type ExecuteUnifiedSkuCheckoutInput, type ExternalPaymentChainFamily, type ExternalSwapHookInput, type ExternalSwapHookResult, FORBIDDEN_EXTERNAL_CALL_SELECTORS, type FactoryBlueprintRolloutResult, type FactoryBlueprintSafetyReport, type FactorySafetyInvariant, type FulfillNativeNftListingInput, type FunctionalUtilityCategory, type FunctionalUtilityCharter, GIVE_TO_MINT_TOKEN_TYPE, type GiveToMintDistributionEntry, type GiveToMintRequest, type GiveToMintResult, type GiveToMintTokenConfig, type GovernanceExchangePolicy, type GrantSpaceAssetDelegationInput, HARD_MAX_SWAP_PRICE_IMPACT_BPS, HARD_MAX_TX_BLOCK_STATEMENTS, HISTORICAL_CLAIM_TRUST_BOOST_BPS, type HistoricalKarmaClaimInput, type HistoricalKarmaClaimResult, type HistoricalSourcePlatform, type HookFeeTierName, IBO_DIVIDEND_PRECISION, type IboOrganizationState, type IboPartnerPosition, type IncubatedTokenFactoryRecord, type IncubatedTokenFactorySpec, type IssuePermissionlessTokenInput, type IssuePostpaidCreditCardInput, type IssuePrepaidBudgetCardInput, type IssuePrepaidValueCardInput, type KarmaCitationShare, type KarmaIndexedPoolSettlementInput, type KarmaIndexedPoolSettlementResult, type KarmaSettlementPoolFactoryRecord, type KarmaSettlementPoolFactorySpec, type KarmaStakeLock, type LegacyMiotxParticipantEntry, LegacyProtocolCompatibilityAddon, type LegacyProtocolReplacementSpec, type LegacyProtocolSunsetCategory, type LegacyRollupReadOnlySummary, type LegacyRollupRecordKind, type LegacyTokenAmountEntry, type LegacyTxReadOnlyArchiveSummary, type LiquidateDefaultedPostpaidCardInput, type LockAttentionStampInput, type LpRebalanceProposalInput, MAX_ACTIVE_INTENTS_PER_USER, MAX_ACTIVE_MATURING_REBATES_PER_DISTRIBUTOR, MAX_ACTIVE_SPONSORED_BADGE_MINT_QUOTA, MAX_ALLOWED_ZAP_SLIPPAGE_BPS, MAX_ARCADE_HOUSE_SPLIT_BPS, MAX_ARCADE_WINNERS_PER_ROUND, MAX_ATTENTION_STAMP_TTL_EPOCHS, MAX_BASELINE_TOKEN_ISSUANCE_STAKE_ABT, MAX_CHECKPOINT_VOUCHERS_PER_BATCH, MAX_CONTRACT_ARGS_BYTES, MAX_CONTRACT_FOOTPRINT_KEYS, MAX_CONTRACT_NFT_STATEMENTS, MAX_CUSTOM_TOKEN_EPOCH_ALLOWANCE, MAX_CUSTOM_TOKEN_HISTORICAL_CLAIM_CAP, MAX_DISTRIBUTOR_STAKE_COOLDOWN_SECONDS, MAX_EPOCH_FORWARD_DRIFT, MAX_ESCALATING_PROMOTER_REBATE_BPS, MAX_ESCALATING_PROMOTER_TIERS, MAX_EXCHANGE_SWAP_FEE_BPS, MAX_EXECUTE_ASSET_CALLS_PER_BLOCK, MAX_EXECUTE_ASSET_DEPTH, MAX_FREE_RELAY_CREDITS_PER_EPOCH, MAX_FT_ISSUANCE_FEE_ABT, MAX_GRADUATION_RESERVE_ABT_CEILING, MAX_GRADUATION_UNIQUE_HOLDERS_CEILING, MAX_HARVEST_YIELD_BPS, MAX_HISTORICAL_KARMA_PER_VERIFIED_ITEM, MAX_HOOK_TICKET_TTL_SECONDS, MAX_IBO_TOTAL_FEE_SPLIT_BPS, MAX_INTENT_TIMEOUT_BLOCKS, MAX_ISSUER_STAGING_TTL_EPOCHS, MAX_LEGACY_MIOTX_ASSETS_PER_ENTRY, MAX_LEGACY_MIOTX_PARTICIPANTS, MAX_LEGACY_MIOTX_TOKENS_PER_ENTRY, MAX_LP_REBALANCE_SLIPPAGE_BPS, MAX_MINT_RATIO_PER_RESERVE_UNIT, MAX_NFT_CREATOR_ROYALTY_BPS, MAX_NFT_OFFER_PREDICATES, MAX_PREPAID_CARD_ALLOWED_PROVIDERS, MAX_PROTOCOL_FEE_SHARE_BPS, MAX_ROUTE_PATH_LENGTH, MAX_SKU_ALPHA_PROTECTION_WINDOW_SECONDS, MAX_SKU_QUALITY_DYNAMIC_STAKE_ABT, MAX_SOVEREIGN_NFT_FACTORY_SUPPLY, MAX_SPACE_DISPLAYED_STICKERS, MAX_SPACE_PLACED_MACHINES, MAX_SPONSORED_BADGE_MINT_QUOTA_PER_GRANT, MAX_STICKER_ROYALTY_BPS, MAX_TOTAL_CITATION_SHARE_BPS, MAX_TRACKED_CURVE_HOLDERS, MAX_TRACKED_DIRECT_BUY_EVIDENCES, MAX_TX_BLOCK_BYTES, MAX_TX_BLOCK_READ_KEYS, MAX_TX_BLOCK_STATE_DIFF_ENTRIES, MAX_TX_BLOCK_TOP_LEVEL_STATEMENTS, MAX_TX_BLOCK_TOTAL_EXPANDED_STATEMENTS, MAX_TX_BLOCK_WRITE_KEYS, MAX_UNISWAP_TICK, MAX_UPSTREAM_CITATIONS, MAX_USD_QUOTE_TTL_SECONDS, MAX_V4_DYNAMIC_FEE_BPS, MAX_VALUE_CARD_ALLOWED_MERCHANTS, MAX_VALUE_CARD_ALLOWED_SERVICE_TAGS, MAX_VALUE_CARD_ATTRIBUTION_HOPS, MAX_VALUE_CARD_ATTRIBUTION_TOTAL_BPS, MAX_VALUE_CARD_DISTRIBUTOR_STAKE_ABT, MAX_VAULT_STRATEGY_DEPLOYED_BPS, MAX_ZAP_ABT_PER_SETTLEMENT_SCALAR, MAX_ZAP_PRICE_IMPACT_BPS, MINIMUM_LOCKED_AMM_LIQUIDITY, MIN_ARCADE_HOUSE_SPLIT_BPS, MIN_ATTENTION_STAMP_ABT, MIN_BASELINE_TOKEN_ISSUANCE_STAKE_ABT, MIN_CREATOR_VESTING_CLIFF_BLOCKS, MIN_FT_ISSUANCE_FEE_ABT, MIN_GIVE_TO_MINT_DUST_FLOOR, MIN_GIVE_TO_MINT_TOKEN_CREATION_FEE, MIN_GRADUATION_HOLDER_SHARE_BPS, MIN_GRADUATION_RESERVE_ABT_FLOOR, MIN_KARMA_FOR_THANK_YOU_BADGE, MIN_LP_MEV_REBATE_SHARE_BPS, MIN_RECOMMENDED_SOLVER_SHARDS, MIN_UNISWAP_TICK, MIN_VAULT_LIQUID_BUFFER_BPS, type MakeStickerOfferInput, type ManagedIntentRecord, type MaturingCardSettlementRecord, type MaturingDistributorRebateRecord, type MinerRevenueTier, type MinerShopPersonaPublicRecord, type MintSovereignNftInput, type NativeNftBuyOfferRecord, type NativeNftListingMode, type NativeNftListingRecord, type NativeNftOfferSettlementResult, type NativeNftSettlementResult, type NativeSwapExecutionResult, type NftAttributePredicate, type NftAttributePredicateOperator, type NftPayloadAccessResolution, type NftPayloadCustodyState, type NftPayloadVisibility, type NonCustodialLpContractNftAsset, type NonCustodialLpGuardSpec, OCAP_VERIFIED_HOOK_SOLIDITY_SPEC, OcapArcVaultExternalAdapterEngine, OcapErc7683SolverEngine, OcapGiveToMintEngine, type OcapHookTicketClaims, OcapNativeAbtExchangeEngine, OcapNativeExchangeEngine, OcapSocialEconomyFactoryRegistry, OcapSovereignAppChainHubEngine, OcapSuperSuitesFoundationEngine, OcapTokenFactoryGraduationEngine, OcapVerifiedHookEngine, type OpenComposingRuleClaims, type OriginEscrowProof, type OutboundWithdrawAndSwapInput, type OutboundWithdrawAndSwapPlan, OverlayStateDB, type PathPaymentCheckoutInput, type PendingTransferRecord, type PerTokenAccountKarmaState, type Permit2SingleSpec, type PfmCrossSpokePacketInput, type PilotPrivateCircleDeliveryInput, type PilotPrivateCircleDeliveryResult, type PilotPublicContentAppreciationInput, type PilotPublicContentAppreciationResult, type PlaceEnglishNftBidInput, type PlayArcadeMachineTicketInput, type PlayArcadeMachineTicketResult, type PostCategoryDemandBountyInput, type PrepaidBudgetCardNft, type PreparedTransactionBlock, type PurchaseDedicatedValueCardInput, type PurchaseDedicatedValueCardResult, RECIPROCAL_RING_DAMPING_BPS, type RecalibrateDynamicStakeFloorInput, type RecalibrateDynamicStakeFloorResult, type RedeemPrepaidBudgetCardInput, type RedeemPrepaidBudgetCardResult, type RedeemPrepaidValueCardInput, type RegisterArcadeMachineInput, type RegisterIboOrganizationInput, type RegisterMinerShopPersonaInput, type RegisterSelfOperatedBridgeInput, type RegisterSkuFactoryListingInput, type RegisterStickerNftInput, type ReleaseMaturedCardSettlementInput, type ReleaseMaturedDistributorRebateInput, type RemoveAmmLiquidityInput, type ReputationTokenFactoryInput, type ReputationTokenFactoryRecord, type ResolveAttentionStampInput, type ResolveAttentionStampResult, type ResolvedTransactionBlockBudget, type RetireDestroyedTokenInput, type RewardCoalitionValueCardInput, type RewardCoalitionValueCardResult, type SelectedTreasuryCurrencySpec, type SelectedTreasuryCurrencySymbol, type SelfOperatedSubTokenBridgeRecord, type SettleArcadeMachineWinnersInput, type SettleArcadeMachineWinnersResult, type SettleIboServiceCheckoutInput, type SettleIboServiceCheckoutResult, type SettlePostpaidValueCardInput, type SignedOcapHookTicket, type SignedOpenComposingRuleVc, type SingleHopAbtSwapInput, type SkuFactoryListingRecord, type SkuGranularMetricsView, type SkuOrderSettlementRecord, type SocialEconomyFactoryBlueprint, type SocialEconomyFactoryKind, type SolverEngineConfig, type SolverExecutionMode, type SovereignNftAccessResolution, type SovereignNftCategory, type SovereignNftFactoryRecord, type SovereignNftFactorySpec, type SovereignNftInstance, type SovereignReserveState, type SpaceAssetDelegationGrant, type SpaceManifestAnchorRecord, type SpendValueCardInput, type SpendValueCardResult, type SpokeCrowdloanState, type SponsorBudgetPoolState, StagedSyncPipeline, type StakeForValueCardDistributorInput, type StakeForValueCardDistributorResult, type StateDiffEntry, type StateFootprint, type StatementExecutor, type StickerNftRecord, type StickerOfferRecord, type SyncStage, type TokenFactoryGraduationStatus, type TopUpPrepaidValueCardInput, type TransactionBlockInput, type TransactionBlockPostConditions, type TransactionBlockResourceBudget, type TransactionBlockResult, type TransactionStatement, type TwoHopTokenSwapInput, TwoPhaseCommitCoordinator, TwoPhaseTransferLedger, UNIVERSAL_ROUTER_COMMANDS, type UnifiedAbtExchangePoolState, type UniversalAbtZapInInput, type UniversalAbtZapInResult, type UniversalRouterCrossChainZapInput, type UniversalRouterCrossChainZapPayload, type UnlistedTokenExternalSwapSpec, type UnstakeValueCardDistributorInput, type UnstakeValueCardDistributorResult, type UpdateGovernanceExchangePolicyInput, type UsdAnchoredAbtQuote, type UsdAnchoredAbtQuoteInput, type UserIssuedTokenRecord, type V4PoolComplianceMode, type V4PoolHookConfig, type VLedgerCheckpointInput, VNEXT_CANONICAL_WRITE_PROTOCOL_TYPE_URLS, type VNextCanonicalWriteProtocolTypeUrl, type ValueCardDistributorStakeRecord, type ValueCardFundingLineage, type ValueCardMode, type ValueCardPolicyEnvelope, type ValueCardRecord, type VerifiableEpochArchiveCheckpoint, type VerifiableMinerRevenueBadge, type VerifiedCreatorCredential, type VerifyUsdAnchoredAbtQuoteInput, type WalletClearSigningPreview, ZERO_BYTES32_HASH, assertLeafStatementTemplateOnly, assertLegacyProtocolNotSunset, assertNotOfacSanctioned, assertRollupProtocolNotSunset, assertTransactionBlockResourceBudget, assertTransactionBlockVNextPure, assertZeroPiiInHookData, buildAbtUtilityPassThroughPlan, buildDirectBuyTreasuryCashierPlan, buildNonCustodialLpContractNft, buildOutboundWithdrawAndSwapPlan, buildUniversalRouterCrossChainPayload, buildWalletClearSigningPreview, compileLegacyTxToVNextTransactionBlock, computeAccountAndAssetNetEffects, computeArcSpaceCheckpointRoot, computeArcSpaceVoucherDigest, computeArcadeCommitDigest, computeDeterministicRebalanceSlot, computeDeterministicV4GraduationPoolId, computeEvmBridgeBlockHash, computeEvmBridgeTxsHash, computeHistoricalClaimNullifier, computeNftPayloadCommitmentDigest, computeOcapHookTicketDigest, computeOpenComposingRuleVcDigest, computeSelfBridgeDisclaimerDigest, computeSpaceManifestRootDigest, computeStakeAddress, computeVLedgerCheckpointStateRoot, createOverlayStateDB, createUsdAnchoredAbtQuote, deriveCompanionMedalDid, deriveSkuQualityStakeAddress, deriveSovereignNftDid, deriveSovereignVaultDid, deriveThankYouBadgeDid, deriveValueCardDistributorStakeAddress, evaluateNftAttributePredicates, executeContractNft, executeCrossChainPurchaseBlock, executeNonCustodialLpRebalance, executeTransactionBlock, executeVNextTransactionBlock, extractStateFootprint, getLegacyProtocolReplacementSpec, hasStateConflict, integerSqrtBn, isDeprecatedLegacyWriteProtocol, isDeprecatedRollupWriteProtocol, isDomainCoupledProtocolAlias, isExecuteAssetStatement, isMiotxLegacyProtocol, isVNextCanonicalWriteProtocol, issueOcapHookTicket, issueOpenComposingRuleVc, normalizeProtocolTypeUrl, normalizeScreeningAddress, parseLegacyRollupReadOnlyRecord, parseLegacyTxReadOnlyArchiveRecord, resolveDomainAgnosticVNextProtocol, resolveEffectiveResourceBudget, resolveEscalatingPromoterBps, resolveStatementReferences, scheduleParallelBatches, selectSolverSubVaultShard, verifyOcapHookTicketSignature, verifyOpenComposingRuleVc, verifyTransactionBlockPostConditions, verifyUsdAnchoredAbtQuote };
|