@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/tags.d.ts CHANGED
@@ -3,6 +3,7 @@ export declare enum Tag {
3
3
  Ntt = "Ntt",
4
4
  NttExecutor = "NttExecutor",
5
5
  Omni = "Omni",
6
+ Psm = "Psm",
6
7
  Wormhole = "Wormhole",
7
8
  Relayer = "Relayer",
8
9
  Snowbridge = "Snowbridge",
@@ -1,2 +1,3 @@
1
1
  export * from './ntt';
2
2
  export * from './omni';
3
+ export * from './psm';
@@ -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.9.1",
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": "^2.8.0",
34
+ "@galacticcouncil/xc-core": "2.9.0-pr384-e35d64f",
35
35
  "@thi.ng/memoize": "^4.0.2"
36
36
  },
37
37
  "peerDependencies": {