@galacticcouncil/xc-cfg 2.9.1 → 2.10.0-pr384-313f87d
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/build/bridges/psm/constants.d.ts +9 -0
- package/build/bridges/psm/index.d.ts +1 -0
- package/build/builders/ContractBuilder.d.ts +4 -0
- package/build/builders/FeeAmountBuilder.d.ts +10 -0
- package/build/builders/contracts/Psm.d.ts +5 -0
- package/build/configs/evm/base/templates.d.ts +10 -0
- package/build/configs/polkadot/hydration/templates.d.ts +11 -0
- package/build/index.cjs +1 -1
- package/build/index.mjs +1 -1
- package/build/tags.d.ts +1 -0
- package/build/validations/bridge/index.d.ts +1 -0
- package/build/validations/bridge/psm.d.ts +27 -0
- package/package.json +2 -2
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** A PSM corridor: usdc locked on an evm chain backs HOLLAR on hydration. */
|
|
2
|
+
export interface PsmCorridor {
|
|
3
|
+
/** `HollarBaseVault` proxy on the evm chain. */
|
|
4
|
+
vault: string;
|
|
5
|
+
/** `HollarBaseFacilitator` proxy on hydration. */
|
|
6
|
+
facilitator: string;
|
|
7
|
+
}
|
|
8
|
+
/** Mainnet corridors, by evm chain key - deposits leave it, redeems land on it. */
|
|
9
|
+
export declare const PSM_CORRIDORS: Record<string, PsmCorridor>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './constants';
|
|
@@ -12,6 +12,10 @@ export declare function ContractBuilder(): {
|
|
|
12
12
|
};
|
|
13
13
|
Omni: typeof Omni;
|
|
14
14
|
PolkadotXcm: typeof PolkadotXcm;
|
|
15
|
+
Psm: () => {
|
|
16
|
+
deposit: () => import("@galacticcouncil/xc-core").ContractConfigBuilder;
|
|
17
|
+
redeem: () => import("@galacticcouncil/xc-core").ContractConfigBuilder;
|
|
18
|
+
};
|
|
15
19
|
Snowbridge: () => {
|
|
16
20
|
v2SendMessage: () => import("@galacticcouncil/xc-core").ContractConfigBuilder;
|
|
17
21
|
sendToken: () => import("@galacticcouncil/xc-core").ContractConfigBuilder;
|
|
@@ -41,9 +41,19 @@ declare function Omni(): {
|
|
|
41
41
|
*/
|
|
42
42
|
withdrawFee: (hub: NearChain) => FeeAmountConfigBuilder;
|
|
43
43
|
};
|
|
44
|
+
declare function Psm(): {
|
|
45
|
+
/**
|
|
46
|
+
* Vault's cut of a redeem, out of what lands.
|
|
47
|
+
*
|
|
48
|
+
* - Rated on the amount floored to usdc units, as the vault rates it
|
|
49
|
+
* - Its bps ride the breakdown as the redeem's fee cap
|
|
50
|
+
*/
|
|
51
|
+
redeemFee: () => FeeAmountConfigBuilder;
|
|
52
|
+
};
|
|
44
53
|
export declare function FeeAmountBuilder(): {
|
|
45
54
|
Basejump: typeof Basejump;
|
|
46
55
|
Omni: typeof Omni;
|
|
56
|
+
Psm: typeof Psm;
|
|
47
57
|
XcmPaymentApi: typeof XcmPaymentApi;
|
|
48
58
|
Snowbridge: typeof Snowbridge;
|
|
49
59
|
Wormhole: typeof Wormhole;
|
|
@@ -6,3 +6,13 @@ export declare function toHydrationViaNttTemplate(assetIn: Asset, assetOut: Asse
|
|
|
6
6
|
* redeem on the destination. Cost is native gas on the source chain.
|
|
7
7
|
*/
|
|
8
8
|
export declare function toHydrationViaNttExecutorTemplate(assetIn: Asset, assetOut: Asset): AssetRoute;
|
|
9
|
+
/**
|
|
10
|
+
* PSM deposit, minted 1:1 on hydration.
|
|
11
|
+
*
|
|
12
|
+
* - Usdc stays locked in the source vault
|
|
13
|
+
* - Tagged Psm only, an erc20 recipient needs no evm binding
|
|
14
|
+
*
|
|
15
|
+
* @param assetIn - usdc on the source chain
|
|
16
|
+
* @param assetOut - asset minted on hydration
|
|
17
|
+
*/
|
|
18
|
+
export declare function toHydrationViaPsmTemplate(assetIn: Asset, assetOut: Asset): AssetRoute;
|
|
@@ -15,6 +15,17 @@ export declare function toParaErc20Template(asset: Asset, destination: AnyParach
|
|
|
15
15
|
* signer takes the `contract` and signs plain evm transactions.
|
|
16
16
|
*/
|
|
17
17
|
export declare function viaNttTemplate(assetIn: Asset, assetOut: Asset, to: AnyChain): AssetRoute;
|
|
18
|
+
/**
|
|
19
|
+
* PSM redeem, paid out 1:1 on the evm chain less the vault's fee.
|
|
20
|
+
*
|
|
21
|
+
* - HOLLAR burns on hydration, the corridor's vault pays the usdc
|
|
22
|
+
* - Both signer origins are served, as with ntt
|
|
23
|
+
*
|
|
24
|
+
* @param assetIn - HOLLAR on hydration
|
|
25
|
+
* @param assetOut - usdc paid out
|
|
26
|
+
* @param to - evm chain of the corridor
|
|
27
|
+
*/
|
|
28
|
+
export declare function viaPsmTemplate(assetIn: Asset, assetOut: Asset, to: AnyChain): AssetRoute;
|
|
18
29
|
/**
|
|
19
30
|
* Withdrawal to a UTXO chain through Omni, over the NEAR hub.
|
|
20
31
|
*
|