@ember-finance/sdk 2.19.0 → 2.21.0-ccip.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.
Files changed (41) hide show
  1. package/dist/src/abis/CcipRouter.json +58 -0
  2. package/dist/src/abis/index.d.ts +3 -1
  3. package/dist/src/abis/index.js +4 -1
  4. package/dist/src/api/v2/models/account-transaction-transaction-data.d.ts +2 -1
  5. package/dist/src/api/v2/models/account-transaction.d.ts +2 -0
  6. package/dist/src/api/v2/models/account-transaction.js +3 -1
  7. package/dist/src/api/v2/models/bridge-transaction.d.ts +50 -0
  8. package/dist/src/api/v2/models/bridge-transaction.js +14 -0
  9. package/dist/src/api/v2/models/chain.d.ts +6 -0
  10. package/dist/src/api/v2/models/evm-ccip-lane.d.ts +73 -0
  11. package/dist/src/api/v2/models/evm-ccip-lane.js +14 -0
  12. package/dist/src/api/v2/models/evm-ccip-rate-limits.d.ts +36 -0
  13. package/dist/src/api/v2/models/evm-ccip-rate-limits.js +14 -0
  14. package/dist/src/api/v2/models/evm-ccip-token-pool.d.ts +122 -0
  15. package/dist/src/api/v2/models/evm-ccip-token-pool.js +17 -0
  16. package/dist/src/api/v2/models/evm-contracts.d.ts +9 -0
  17. package/dist/src/api/v2/models/evm-oftadapter.d.ts +11 -0
  18. package/dist/src/api/v2/models/evm-oftadapter.js +4 -1
  19. package/dist/src/api/v2/models/evm-oftpeer.d.ts +12 -0
  20. package/dist/src/api/v2/models/index.d.ts +4 -0
  21. package/dist/src/api/v2/models/index.js +4 -0
  22. package/dist/src/evm-vaults/interfaces/index.d.ts +39 -0
  23. package/dist/src/evm-vaults/on-chain-calls/tx-builder.d.ts +15 -1
  24. package/dist/src/evm-vaults/on-chain-calls/tx-builder.js +36 -0
  25. package/dist/src/evm-vaults/on-chain-calls/user.d.ts +40 -1
  26. package/dist/src/evm-vaults/on-chain-calls/user.js +75 -0
  27. package/dist/src/evm-vaults/on-chain-calls/vault-reader.d.ts +14 -1
  28. package/dist/src/evm-vaults/on-chain-calls/vault-reader.js +30 -0
  29. package/dist/src/evm-vaults/utils/ccip.d.ts +23 -0
  30. package/dist/src/evm-vaults/utils/ccip.js +32 -0
  31. package/dist/src/evm-vaults/utils/deployment-parser.d.ts +46 -1
  32. package/dist/src/evm-vaults/utils/deployment-parser.js +74 -0
  33. package/dist/src/evm-vaults/utils/index.d.ts +1 -0
  34. package/dist/src/evm-vaults/utils/index.js +1 -0
  35. package/dist/src/sui-vaults/interfaces/index.d.ts +14 -0
  36. package/dist/src/sui-vaults/interfaces/index.js +15 -1
  37. package/dist/src/sui-vaults/on-chain-calls/tx-builder.d.ts +27 -1
  38. package/dist/src/sui-vaults/on-chain-calls/tx-builder.js +63 -0
  39. package/dist/src/sui-vaults/on-chain-calls/vault-admin.d.ts +29 -1
  40. package/dist/src/sui-vaults/on-chain-calls/vault-admin.js +42 -0
  41. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { BaseClient as SuiClient } from "@mysten/sui/client";
2
2
  import { OnChainCalls } from "./onchain-calls.js";
3
- import { ISuiDeployment, IVaultOptionalParams } from "../interfaces/index.js";
3
+ import { ISuiDeployment, IVaultOptionalParams, SuiVaultPauseOperation } from "../interfaces/index.js";
4
4
  import { NumStr } from "@firefly-exchange/library-sui";
5
5
  import { OnChainCallResponse, Signer, SuiAddress, SuiTransactionBlockResponseOptions } from "@firefly-exchange/library-sui";
6
6
  export declare class VaultAdminCalls extends OnChainCalls {
@@ -46,6 +46,34 @@ export declare class VaultAdminCalls extends OnChainCalls {
46
46
  * @returns OnChainCallResponse
47
47
  */
48
48
  updateVaultPausedStatus(vaultId: string, paused: boolean, options?: IVaultOptionalParams & SuiTransactionBlockResponseOptions): Promise<OnChainCallResponse>;
49
+ /**
50
+ * Guardian fast-path to pause / unpause one operation on a regular vault.
51
+ * Needs no AdminCap — the signer must be the address `set_guardian` recorded.
52
+ *
53
+ * Per-operation, unlike {@link updateVaultPausedStatus}, which flips the
54
+ * vault's single legacy `paused` flag. The chain reads
55
+ * `vault.paused || <operation flag>`, so resuming an operation here does not
56
+ * revive a vault the admin paused wholesale.
57
+ *
58
+ * Version-gated like every guarded call: pass `options.packageId` to route
59
+ * through a retired package while an upgrade is half-applied.
60
+ * @param vaultId The id of the vault
61
+ * @param operation The operation to pause or resume
62
+ * @param paused True to pause, false to resume
63
+ * @param options Optional tx execution params
64
+ * @returns OnChainCallResponse
65
+ */
66
+ guardianSetVaultPausedStatus(vaultId: string, operation: SuiVaultPauseOperation, paused: boolean, options?: IVaultOptionalParams & SuiTransactionBlockResponseOptions): Promise<OnChainCallResponse>;
67
+ /**
68
+ * Guardian fast-path to pause / unpause one operation on an atomic liquidity
69
+ * vault. Same vocabulary as the regular-vault variant.
70
+ * @param vaultId The id of the atomic vault
71
+ * @param operation The operation to pause or resume
72
+ * @param paused True to pause, false to resume
73
+ * @param options Optional tx execution params
74
+ * @returns OnChainCallResponse
75
+ */
76
+ atomicGuardianSetPauseStatus(vaultId: string, operation: SuiVaultPauseOperation, paused: boolean, options?: IVaultOptionalParams & SuiTransactionBlockResponseOptions): Promise<OnChainCallResponse>;
49
77
  /**
50
78
  * Update vault rate update interval
51
79
  * @param vaultId The id of the vault to update the rate update interval for
@@ -80,6 +80,48 @@ export class VaultAdminCalls extends OnChainCalls {
80
80
  });
81
81
  return this.execCall(txb, options);
82
82
  }
83
+ /**
84
+ * Guardian fast-path to pause / unpause one operation on a regular vault.
85
+ * Needs no AdminCap — the signer must be the address `set_guardian` recorded.
86
+ *
87
+ * Per-operation, unlike {@link updateVaultPausedStatus}, which flips the
88
+ * vault's single legacy `paused` flag. The chain reads
89
+ * `vault.paused || <operation flag>`, so resuming an operation here does not
90
+ * revive a vault the admin paused wholesale.
91
+ *
92
+ * Version-gated like every guarded call: pass `options.packageId` to route
93
+ * through a retired package while an upgrade is half-applied.
94
+ * @param vaultId The id of the vault
95
+ * @param operation The operation to pause or resume
96
+ * @param paused True to pause, false to resume
97
+ * @param options Optional tx execution params
98
+ * @returns OnChainCallResponse
99
+ */
100
+ async guardianSetVaultPausedStatus(vaultId, operation, paused, options) {
101
+ const txb = options?.txBlock || new TransactionBlock();
102
+ this.txBuilder.guardianSetVaultPausedStatus(vaultId, operation, paused, {
103
+ ...options,
104
+ txBlock: txb
105
+ });
106
+ return this.execCall(txb, options);
107
+ }
108
+ /**
109
+ * Guardian fast-path to pause / unpause one operation on an atomic liquidity
110
+ * vault. Same vocabulary as the regular-vault variant.
111
+ * @param vaultId The id of the atomic vault
112
+ * @param operation The operation to pause or resume
113
+ * @param paused True to pause, false to resume
114
+ * @param options Optional tx execution params
115
+ * @returns OnChainCallResponse
116
+ */
117
+ async atomicGuardianSetPauseStatus(vaultId, operation, paused, options) {
118
+ const txb = options?.txBlock || new TransactionBlock();
119
+ this.txBuilder.atomicGuardianSetPauseStatus(vaultId, operation, paused, {
120
+ ...options,
121
+ txBlock: txb
122
+ });
123
+ return this.execCall(txb, options);
124
+ }
83
125
  /**
84
126
  * Update vault rate update interval
85
127
  * @param vaultId The id of the vault to update the rate update interval for
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ember-finance/sdk",
3
3
  "description": "Ember Protocol SDK",
4
- "version": "2.19.0",
4
+ "version": "2.21.0-ccip.0",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",
7
7
  "main": "./dist/index.js",