@ember-finance/sdk 2.15.0-ccip.0 → 2.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/abis/index.d.ts +1 -3
- package/dist/src/abis/index.js +1 -4
- package/dist/src/api/v2/models/account-transaction-transaction-data.d.ts +1 -2
- package/dist/src/api/v2/models/account-transaction.d.ts +0 -2
- package/dist/src/api/v2/models/account-transaction.js +1 -3
- package/dist/src/api/v2/models/chain.d.ts +0 -6
- package/dist/src/api/v2/models/evm-contracts.d.ts +0 -9
- package/dist/src/api/v2/models/evm-oftadapter.d.ts +0 -11
- package/dist/src/api/v2/models/evm-oftadapter.js +1 -4
- package/dist/src/api/v2/models/evm-oftpeer.d.ts +0 -12
- package/dist/src/api/v2/models/index.d.ts +0 -4
- package/dist/src/api/v2/models/index.js +0 -4
- package/dist/src/evm-vaults/interfaces/index.d.ts +0 -39
- package/dist/src/evm-vaults/on-chain-calls/tx-builder.d.ts +1 -15
- package/dist/src/evm-vaults/on-chain-calls/tx-builder.js +0 -36
- package/dist/src/evm-vaults/on-chain-calls/user.d.ts +1 -40
- package/dist/src/evm-vaults/on-chain-calls/user.js +0 -75
- package/dist/src/evm-vaults/on-chain-calls/vault-reader.d.ts +1 -14
- package/dist/src/evm-vaults/on-chain-calls/vault-reader.js +0 -30
- package/dist/src/evm-vaults/utils/deployment-parser.d.ts +1 -46
- package/dist/src/evm-vaults/utils/deployment-parser.js +0 -74
- package/dist/src/evm-vaults/utils/index.d.ts +0 -1
- package/dist/src/evm-vaults/utils/index.js +0 -1
- package/dist/src/sui-vaults/on-chain-calls/atomic-liquidity.js +3 -3
- package/dist/src/sui-vaults/on-chain-calls/tx-builder.d.ts +2 -2
- package/dist/src/sui-vaults/on-chain-calls/tx-builder.js +11 -4
- package/dist/src/sui-vaults/on-chain-calls/vault-admin.d.ts +10 -2
- package/dist/src/sui-vaults/on-chain-calls/vault-admin.js +12 -7
- package/dist/src/sui-vaults/on-chain-calls/vault.js +2 -4
- package/dist/src/sui-vaults/utils/common.d.ts +20 -0
- package/dist/src/sui-vaults/utils/common.js +24 -0
- package/package.json +1 -1
- package/dist/src/abis/CcipRouter.json +0 -58
- package/dist/src/api/v2/models/bridge-transaction.d.ts +0 -50
- package/dist/src/api/v2/models/bridge-transaction.js +0 -14
- package/dist/src/api/v2/models/evm-ccip-lane.d.ts +0 -73
- package/dist/src/api/v2/models/evm-ccip-lane.js +0 -14
- package/dist/src/api/v2/models/evm-ccip-rate-limits.d.ts +0 -36
- package/dist/src/api/v2/models/evm-ccip-rate-limits.js +0 -14
- package/dist/src/api/v2/models/evm-ccip-token-pool.d.ts +0 -122
- package/dist/src/api/v2/models/evm-ccip-token-pool.js +0 -17
- package/dist/src/evm-vaults/utils/ccip.d.ts +0 -23
- package/dist/src/evm-vaults/utils/ccip.js +0 -32
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Ember Protocol Vaults API
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { EvmCcipLane } from "./evm-ccip-lane.js";
|
|
13
|
-
/**
|
|
14
|
-
* The CCIP half of a vault\'s bridge, the counterpart to EvmOFTAdapter. A vault has one active transport; different vaults use different ones.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface EvmCcipTokenPool
|
|
17
|
-
*/
|
|
18
|
-
export interface EvmCcipTokenPool {
|
|
19
|
-
/**
|
|
20
|
-
* The CCIP token pool contract address
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof EvmCcipTokenPool
|
|
23
|
-
*/
|
|
24
|
-
address?: string;
|
|
25
|
-
/**
|
|
26
|
-
* The contract name (e.g., EmberTokenPool)
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof EvmCcipTokenPool
|
|
29
|
-
*/
|
|
30
|
-
contractName?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Which bridge this entry describes. Read this rather than inferring the transport from which map the entry was found in.
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof EvmCcipTokenPool
|
|
35
|
-
*/
|
|
36
|
-
bridgeTransport?: EvmCcipTokenPoolBridgeTransportEnum;
|
|
37
|
-
/**
|
|
38
|
-
* The pool\'s on-chain typeAndVersion (e.g., EmberBurnMintTokenPool 1.0.0)
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof EvmCcipTokenPool
|
|
41
|
-
*/
|
|
42
|
-
typeAndVersion?: string;
|
|
43
|
-
/**
|
|
44
|
-
* The key of the associated vault
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof EvmCcipTokenPool
|
|
47
|
-
*/
|
|
48
|
-
vaultKey?: string;
|
|
49
|
-
/**
|
|
50
|
-
* The address of the associated vault
|
|
51
|
-
* @type {string}
|
|
52
|
-
* @memberof EvmCcipTokenPool
|
|
53
|
-
*/
|
|
54
|
-
vaultAddress?: string;
|
|
55
|
-
/**
|
|
56
|
-
* The receipt token symbol
|
|
57
|
-
* @type {string}
|
|
58
|
-
* @memberof EvmCcipTokenPool
|
|
59
|
-
*/
|
|
60
|
-
receiptTokenSymbol?: string;
|
|
61
|
-
/**
|
|
62
|
-
* The receipt token decimals
|
|
63
|
-
* @type {number}
|
|
64
|
-
* @memberof EvmCcipTokenPool
|
|
65
|
-
*/
|
|
66
|
-
decimals?: number;
|
|
67
|
-
/**
|
|
68
|
-
* The CCIP Router for this chain
|
|
69
|
-
* @type {string}
|
|
70
|
-
* @memberof EvmCcipTokenPool
|
|
71
|
-
*/
|
|
72
|
-
router?: string;
|
|
73
|
-
/**
|
|
74
|
-
* The CCIP RMN proxy for this chain
|
|
75
|
-
* @type {string}
|
|
76
|
-
* @memberof EvmCcipTokenPool
|
|
77
|
-
*/
|
|
78
|
-
rmnProxy?: string;
|
|
79
|
-
/**
|
|
80
|
-
* The CCIP token admin registry for this chain
|
|
81
|
-
* @type {string}
|
|
82
|
-
* @memberof EvmCcipTokenPool
|
|
83
|
-
*/
|
|
84
|
-
tokenAdminRegistry?: string;
|
|
85
|
-
/**
|
|
86
|
-
* This chain\'s CCIP selector. A 64-bit value, carried as a string because it exceeds what a JSON number holds exactly.
|
|
87
|
-
* @type {string}
|
|
88
|
-
* @memberof EvmCcipTokenPool
|
|
89
|
-
*/
|
|
90
|
-
chainSelector?: string;
|
|
91
|
-
/**
|
|
92
|
-
* The owner address
|
|
93
|
-
* @type {string}
|
|
94
|
-
* @memberof EvmCcipTokenPool
|
|
95
|
-
*/
|
|
96
|
-
owner?: string;
|
|
97
|
-
/**
|
|
98
|
-
* The deployment timestamp
|
|
99
|
-
* @type {string}
|
|
100
|
-
* @memberof EvmCcipTokenPool
|
|
101
|
-
*/
|
|
102
|
-
deployedAt?: string;
|
|
103
|
-
/**
|
|
104
|
-
* The block number at which the pool was deployed
|
|
105
|
-
* @type {number}
|
|
106
|
-
* @memberof EvmCcipTokenPool
|
|
107
|
-
*/
|
|
108
|
-
deploymentBlockNumber?: number;
|
|
109
|
-
/**
|
|
110
|
-
* Map of configured destinations by remote CCIP chain selector
|
|
111
|
-
* @type {{ [key: string]: EvmCcipLane; }}
|
|
112
|
-
* @memberof EvmCcipTokenPool
|
|
113
|
-
*/
|
|
114
|
-
lanes?: {
|
|
115
|
-
[key: string]: EvmCcipLane;
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
export declare const EvmCcipTokenPoolBridgeTransportEnum: {
|
|
119
|
-
readonly LayerZero: "LayerZero";
|
|
120
|
-
readonly Ccip: "CCIP";
|
|
121
|
-
};
|
|
122
|
-
export type EvmCcipTokenPoolBridgeTransportEnum = (typeof EvmCcipTokenPoolBridgeTransportEnum)[keyof typeof EvmCcipTokenPoolBridgeTransportEnum];
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Ember Protocol Vaults API
|
|
5
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 2.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
export const EvmCcipTokenPoolBridgeTransportEnum = {
|
|
15
|
-
LayerZero: "LayerZero",
|
|
16
|
-
Ccip: "CCIP"
|
|
17
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/** The native currency, as CCIP names it when no fee token is given. */
|
|
2
|
-
export declare const ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
|
|
3
|
-
/**
|
|
4
|
-
* Encodes a receiver for a CCIP message.
|
|
5
|
-
*
|
|
6
|
-
* CCIP carries the receiver as `bytes` rather than `address`, because the far
|
|
7
|
-
* end of a lane need not be an EVM chain. On an EVM destination that is the
|
|
8
|
-
* address left-padded to 32 bytes, which is why the same account looks
|
|
9
|
-
* different on the two sides of a transfer.
|
|
10
|
-
*/
|
|
11
|
-
export declare const encodeCcipReceiver: (receiver: string) => string;
|
|
12
|
-
/**
|
|
13
|
-
* Encodes CCIP extraArgs.
|
|
14
|
-
*
|
|
15
|
-
* `allowOutOfOrderExecution` is true because a token transfer carries no
|
|
16
|
-
* message the destination has to apply in sequence; requiring ordering would
|
|
17
|
-
* make one stuck message block every later one on the lane.
|
|
18
|
-
*
|
|
19
|
-
* gasLimit is 0 by default: a plain token transfer runs no code on the
|
|
20
|
-
* destination beyond the pool's own mint, and paying for gas that is never used
|
|
21
|
-
* only raises the fee.
|
|
22
|
-
*/
|
|
23
|
-
export declare const encodeCcipExtraArgs: (destinationGasLimit?: bigint) => string;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { AbiCoder, getAddress, zeroPadValue } from "ethers";
|
|
2
|
-
/** The native currency, as CCIP names it when no fee token is given. */
|
|
3
|
-
export const ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
|
|
4
|
-
/**
|
|
5
|
-
* Tag for CCIP's EVMExtraArgsV2, the first four bytes of
|
|
6
|
-
* keccak256("CCIP EVMExtraArgsV2"). Verified against a deployed ramp.
|
|
7
|
-
*/
|
|
8
|
-
const EVM_EXTRA_ARGS_V2_TAG = "0x181dcf10";
|
|
9
|
-
/**
|
|
10
|
-
* Encodes a receiver for a CCIP message.
|
|
11
|
-
*
|
|
12
|
-
* CCIP carries the receiver as `bytes` rather than `address`, because the far
|
|
13
|
-
* end of a lane need not be an EVM chain. On an EVM destination that is the
|
|
14
|
-
* address left-padded to 32 bytes, which is why the same account looks
|
|
15
|
-
* different on the two sides of a transfer.
|
|
16
|
-
*/
|
|
17
|
-
export const encodeCcipReceiver = (receiver) => zeroPadValue(getAddress(receiver), 32);
|
|
18
|
-
/**
|
|
19
|
-
* Encodes CCIP extraArgs.
|
|
20
|
-
*
|
|
21
|
-
* `allowOutOfOrderExecution` is true because a token transfer carries no
|
|
22
|
-
* message the destination has to apply in sequence; requiring ordering would
|
|
23
|
-
* make one stuck message block every later one on the lane.
|
|
24
|
-
*
|
|
25
|
-
* gasLimit is 0 by default: a plain token transfer runs no code on the
|
|
26
|
-
* destination beyond the pool's own mint, and paying for gas that is never used
|
|
27
|
-
* only raises the fee.
|
|
28
|
-
*/
|
|
29
|
-
export const encodeCcipExtraArgs = (destinationGasLimit = 0n) => {
|
|
30
|
-
const encoded = AbiCoder.defaultAbiCoder().encode(["uint256", "bool"], [destinationGasLimit, true]);
|
|
31
|
-
return EVM_EXTRA_ARGS_V2_TAG + encoded.slice(2);
|
|
32
|
-
};
|