@continuumdao/ctm-mpc-defi 0.2.48 → 0.2.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/catalog.cjs +1664 -5
- package/dist/agent/catalog.cjs.map +1 -1
- package/dist/agent/catalog.d.ts +2705 -7
- package/dist/agent/catalog.js +1599 -6
- package/dist/agent/catalog.js.map +1 -1
- package/dist/agent/skills/derive/SKILL.md +112 -0
- package/dist/agent/skills/hyperliquid/SKILL.md +22 -2
- package/dist/agent/skills/trueo/SKILL.md +64 -0
- package/dist/chains/evm/index.d.ts +118 -6
- package/dist/chains/near/index.d.ts +7 -1
- package/dist/chains/solana/index.d.ts +7 -1
- package/dist/core/index.cjs +3 -1
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.ts +138 -7
- package/dist/core/index.js +3 -1
- package/dist/core/index.js.map +1 -1
- package/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +848 -16
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/protocols/evm/aave-v4/index.d.ts +600 -6
- package/dist/protocols/evm/aerodrome/index.cjs.map +1 -1
- package/dist/protocols/evm/aerodrome/index.d.ts +125 -5
- package/dist/protocols/evm/aerodrome/index.js.map +1 -1
- package/dist/protocols/evm/arcus/index.d.ts +66 -2
- package/dist/protocols/evm/circle-cctp/index.d.ts +71 -2
- package/dist/protocols/evm/compound-v3/index.d.ts +52 -1
- package/dist/protocols/evm/continuum-dao/index.d.ts +56 -1
- package/dist/protocols/evm/curve-dao/index.d.ts +66 -2
- package/dist/protocols/evm/derive/index.cjs +2655 -0
- package/dist/protocols/evm/derive/index.cjs.map +1 -0
- package/dist/protocols/evm/derive/index.d.ts +859 -0
- package/dist/protocols/evm/derive/index.js +2536 -0
- package/dist/protocols/evm/derive/index.js.map +1 -0
- package/dist/protocols/evm/ethena/index.d.ts +52 -1
- package/dist/protocols/evm/euler-v2/index.d.ts +115 -16
- package/dist/protocols/evm/gmx/index.d.ts +66 -2
- package/dist/protocols/evm/hyperliquid/index.cjs +545 -267
- package/dist/protocols/evm/hyperliquid/index.cjs.map +1 -1
- package/dist/protocols/evm/hyperliquid/index.d.ts +152 -7
- package/dist/protocols/evm/hyperliquid/index.js +535 -269
- package/dist/protocols/evm/hyperliquid/index.js.map +1 -1
- package/dist/protocols/evm/lido/index.d.ts +52 -1
- package/dist/protocols/evm/maple/index.d.ts +52 -1
- package/dist/protocols/evm/morpho/index.d.ts +115 -4
- package/dist/protocols/evm/pendle/index.cjs +3 -1
- package/dist/protocols/evm/pendle/index.cjs.map +1 -1
- package/dist/protocols/evm/pendle/index.d.ts +125 -5
- package/dist/protocols/evm/pendle/index.js +3 -1
- package/dist/protocols/evm/pendle/index.js.map +1 -1
- package/dist/protocols/evm/permit2/index.d.ts +14 -1
- package/dist/protocols/evm/sky/index.d.ts +52 -1
- package/dist/protocols/evm/trueo/index.cjs +2308 -0
- package/dist/protocols/evm/trueo/index.cjs.map +1 -0
- package/dist/protocols/evm/trueo/index.d.ts +1254 -0
- package/dist/protocols/evm/trueo/index.js +2165 -0
- package/dist/protocols/evm/trueo/index.js.map +1 -0
- package/dist/protocols/evm/uniswap-v4/index.d.ts +78 -4
- package/dist/protocols/evm/venice/index.d.ts +52 -1
- package/package.json +12 -2
- package/dist/buildBatch-tsEUVn_a.d.ts +0 -45
- package/dist/eip712Multisign-6oNIlObj.d.ts +0 -39
- package/dist/envelope-Cm-llShH.d.ts +0 -37
- package/dist/merklDistributor-CdqtZC9N.d.ts +0 -65
- package/dist/multisign-Dr0j9fHm.d.ts +0 -489
- package/dist/registry-BvsXh0-r.d.ts +0 -8
- package/dist/types-RJpoU4Pc.d.ts +0 -34
- package/dist/types-lIfv59N1.d.ts +0 -63
|
@@ -1,6 +1,19 @@
|
|
|
1
|
-
import { b as KeyGenSubsetForPermit, M as MultisignBuildResult } from '../../../types-lIfv59N1.js';
|
|
2
1
|
import { Address } from 'viem';
|
|
3
2
|
|
|
3
|
+
type MultisignBuildResult = {
|
|
4
|
+
bodyForSign: Record<string, unknown>;
|
|
5
|
+
messageToSign: string;
|
|
6
|
+
};
|
|
7
|
+
type KeyGenSubset = {
|
|
8
|
+
pubkeyhex?: string;
|
|
9
|
+
keylist?: string[];
|
|
10
|
+
ClientKeys?: Record<string, string>;
|
|
11
|
+
groupId?: string;
|
|
12
|
+
GroupId?: string;
|
|
13
|
+
};
|
|
14
|
+
/** App-compatible alias used by multisign builders and Permit2 helpers. */
|
|
15
|
+
type KeyGenSubsetForPermit = KeyGenSubset;
|
|
16
|
+
|
|
4
17
|
declare const PERMIT_SINGLE_TYPES: {
|
|
5
18
|
readonly PermitSingle: readonly [{
|
|
6
19
|
readonly name: "details";
|
|
@@ -1,6 +1,57 @@
|
|
|
1
|
-
import { b as KeyGenSubsetForPermit, e as ProtocolModule } from '../../../types-lIfv59N1.js';
|
|
2
1
|
import { Address, createPublicClient } from 'viem';
|
|
3
2
|
|
|
3
|
+
/** Aligns with app NonEvmChainType + 'evm'. Extend as mpc-auth adds chains. */
|
|
4
|
+
type ChainCategory = 'evm' | 'solana' | 'near' | 'sui' | 'ton' | 'stellar';
|
|
5
|
+
type EvmTokenKind = 'native' | 'erc20' | 'erc721' | 'ctmerc20' | 'ctmrwa1';
|
|
6
|
+
type SolanaTokenKind = 'native' | 'spl' | 'spl2022';
|
|
7
|
+
type NearTokenKind = 'native' | 'nep141';
|
|
8
|
+
type TokenRef = {
|
|
9
|
+
category: 'evm';
|
|
10
|
+
kind: EvmTokenKind;
|
|
11
|
+
address: `0x${string}`;
|
|
12
|
+
} | {
|
|
13
|
+
category: 'solana';
|
|
14
|
+
kind: SolanaTokenKind;
|
|
15
|
+
mint: string;
|
|
16
|
+
} | {
|
|
17
|
+
category: 'near';
|
|
18
|
+
kind: NearTokenKind;
|
|
19
|
+
contractId: string;
|
|
20
|
+
};
|
|
21
|
+
type ParamDoc = {
|
|
22
|
+
type: string;
|
|
23
|
+
required: boolean;
|
|
24
|
+
description: string;
|
|
25
|
+
};
|
|
26
|
+
type ProtocolActionDescriptor = {
|
|
27
|
+
id: string;
|
|
28
|
+
protocolId: string;
|
|
29
|
+
chainCategory: ChainCategory;
|
|
30
|
+
description: string;
|
|
31
|
+
commonParams: Array<'keyGen' | 'purposeText' | 'useCustomGas' | 'useCustomFees'>;
|
|
32
|
+
params: Record<string, ParamDoc>;
|
|
33
|
+
};
|
|
34
|
+
type ChainSupportContext = {
|
|
35
|
+
chainCategory: ChainCategory;
|
|
36
|
+
chainId: string | number;
|
|
37
|
+
};
|
|
38
|
+
interface ProtocolModule {
|
|
39
|
+
id: string;
|
|
40
|
+
chainCategory: ChainCategory;
|
|
41
|
+
isChainSupported(ctx: ChainSupportContext): boolean | Promise<boolean>;
|
|
42
|
+
isTokenSupported(token: TokenRef): boolean | Promise<boolean>;
|
|
43
|
+
actions: ProtocolActionDescriptor[];
|
|
44
|
+
}
|
|
45
|
+
type KeyGenSubset = {
|
|
46
|
+
pubkeyhex?: string;
|
|
47
|
+
keylist?: string[];
|
|
48
|
+
ClientKeys?: Record<string, string>;
|
|
49
|
+
groupId?: string;
|
|
50
|
+
GroupId?: string;
|
|
51
|
+
};
|
|
52
|
+
/** App-compatible alias used by multisign builders and Permit2 helpers. */
|
|
53
|
+
type KeyGenSubsetForPermit = KeyGenSubset;
|
|
54
|
+
|
|
4
55
|
/**
|
|
5
56
|
* Sky LockStake on Ethereum mainnet.
|
|
6
57
|
* @see https://developers.skyeco.com/protocol/rewards/staking-engine/
|