@galacticcouncil/xc-cfg 2.9.1 → 2.10.0-pr384-e35d64f
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 +28 -0
- package/package.json +2 -2
package/build/tags.d.ts
CHANGED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { TransferCtx, TransferValidation } from '@galacticcouncil/xc-core';
|
|
2
|
+
/**
|
|
3
|
+
* Checks PSM deposits before anything is signed.
|
|
4
|
+
*
|
|
5
|
+
* - Paused or over-allowance deposits revert on the vault
|
|
6
|
+
* - A paused or over-headroom mint queues on hydration
|
|
7
|
+
* - Both limits are in usdc units, like the amount
|
|
8
|
+
* - Fails closed when either chain can't be read
|
|
9
|
+
*/
|
|
10
|
+
export declare class PsmDepositValidation extends TransferValidation {
|
|
11
|
+
protected skipFor(ctx: TransferCtx): boolean;
|
|
12
|
+
validate(ctx: TransferCtx): Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Checks PSM redeems before anything is signed.
|
|
16
|
+
*
|
|
17
|
+
* - Paused or over-limit redeems revert on the facilitator
|
|
18
|
+
* - Below one usdc unit the HOLLAR burn reverts
|
|
19
|
+
* - Paused or over-allowance payouts wait in the vault's queue
|
|
20
|
+
* - The allowance is net of queued credits, the payout net of the fee
|
|
21
|
+
* - Recipients a payout would strand are refused, blacklisted ones too
|
|
22
|
+
* - Both limits are in usdc units, the amount floored to them
|
|
23
|
+
* - Fails closed when either chain can't be read
|
|
24
|
+
*/
|
|
25
|
+
export declare class PsmRedeemValidation extends TransferValidation {
|
|
26
|
+
protected skipFor(ctx: TransferCtx): boolean;
|
|
27
|
+
validate(ctx: TransferCtx): Promise<void>;
|
|
28
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacticcouncil/xc-cfg",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0-pr384-e35d64f",
|
|
4
4
|
"description": "Cross-chain hydradx & basilisk dapp configuration",
|
|
5
5
|
"author": "GalacticCouncil",
|
|
6
6
|
"repository": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"test": "NODE_NO_WARNINGS=1 NODE_OPTIONS=--experimental-vm-modules jest --silent"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@galacticcouncil/xc-core": "
|
|
34
|
+
"@galacticcouncil/xc-core": "2.9.0-pr384-e35d64f",
|
|
35
35
|
"@thi.ng/memoize": "^4.0.2"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|