@ember-finance/sdk 2.1.2 → 2.1.3
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.
|
@@ -83,6 +83,20 @@ export declare class EVMAdminCalls extends EVMOnChainCalls {
|
|
|
83
83
|
* @returns EvmOnChainCallResponse
|
|
84
84
|
*/
|
|
85
85
|
pauseNonAdminOperations(pause: boolean, options?: IEvmCallOptions): Promise<EvmOnChainCallResponse>;
|
|
86
|
+
/**
|
|
87
|
+
* Guardian fast-path equivalent of {@link pauseNonAdminOperations}: pause /
|
|
88
|
+
* unpause non-admin protocol operations without going through the timelock.
|
|
89
|
+
*
|
|
90
|
+
* The owner-gated `pauseNonAdminOperations` reverts with
|
|
91
|
+
* `OwnableUnauthorizedAccount` once `ProtocolConfig` ownership has been
|
|
92
|
+
* transferred to the admin timelock, so any caller signing with the
|
|
93
|
+
* guardian key must use this variant instead.
|
|
94
|
+
*
|
|
95
|
+
* @param pause Whether to pause non-admin operations
|
|
96
|
+
* @param options Optional tx execution params
|
|
97
|
+
* @returns EvmOnChainCallResponse
|
|
98
|
+
*/
|
|
99
|
+
guardianPauseNonAdminOperations(pause: boolean, options?: IEvmCallOptions): Promise<EvmOnChainCallResponse>;
|
|
86
100
|
/**
|
|
87
101
|
* Update the max rate interval of the protocol
|
|
88
102
|
* @param maxRateInterval The new max rate interval
|
|
@@ -109,6 +109,23 @@ export class EVMAdminCalls extends EVMOnChainCalls {
|
|
|
109
109
|
const txCall = this.txBuilder.pauseNonAdminOperations(pause);
|
|
110
110
|
return this.execCall(txCall, options);
|
|
111
111
|
}
|
|
112
|
+
/**
|
|
113
|
+
* Guardian fast-path equivalent of {@link pauseNonAdminOperations}: pause /
|
|
114
|
+
* unpause non-admin protocol operations without going through the timelock.
|
|
115
|
+
*
|
|
116
|
+
* The owner-gated `pauseNonAdminOperations` reverts with
|
|
117
|
+
* `OwnableUnauthorizedAccount` once `ProtocolConfig` ownership has been
|
|
118
|
+
* transferred to the admin timelock, so any caller signing with the
|
|
119
|
+
* guardian key must use this variant instead.
|
|
120
|
+
*
|
|
121
|
+
* @param pause Whether to pause non-admin operations
|
|
122
|
+
* @param options Optional tx execution params
|
|
123
|
+
* @returns EvmOnChainCallResponse
|
|
124
|
+
*/
|
|
125
|
+
async guardianPauseNonAdminOperations(pause, options) {
|
|
126
|
+
const txCall = this.txBuilder.guardianPauseNonAdminOperations(pause);
|
|
127
|
+
return this.execCall(txCall, options);
|
|
128
|
+
}
|
|
112
129
|
/**
|
|
113
130
|
* Update the max rate interval of the protocol
|
|
114
131
|
* @param maxRateInterval The new max rate interval
|
|
@@ -60,6 +60,23 @@ export declare class EVMTxBuilder {
|
|
|
60
60
|
* @returns Transaction call object
|
|
61
61
|
*/
|
|
62
62
|
pauseNonAdminOperations(pause: boolean): ITransactionCall;
|
|
63
|
+
/**
|
|
64
|
+
* Guardian fast-path equivalent of {@link pauseNonAdminOperations}.
|
|
65
|
+
*
|
|
66
|
+
* The contract exposes two pause toggles:
|
|
67
|
+
* - `pauseNonAdminOperations` — `onlyOwner` (slow path; behind the timelock
|
|
68
|
+
* once ownership of `ProtocolConfig` has been
|
|
69
|
+
* transferred)
|
|
70
|
+
* - `guardianPauseNonAdminOperations` — `onlyGuardian` (instant, no timelock)
|
|
71
|
+
*
|
|
72
|
+
* Use this variant when signing with the guardian key. Calling the owner-path setter from a
|
|
73
|
+
* guardian signer will revert with `OwnableUnauthorizedAccount` on any chain whose
|
|
74
|
+
* `ProtocolConfig` ownership has moved to the timelock.
|
|
75
|
+
*
|
|
76
|
+
* @param pause True to pause, false to unpause
|
|
77
|
+
* @returns Transaction call object
|
|
78
|
+
*/
|
|
79
|
+
guardianPauseNonAdminOperations(pause: boolean): ITransactionCall;
|
|
63
80
|
/**
|
|
64
81
|
* Updates the platform fee recipient address
|
|
65
82
|
* @param recipient New recipient address
|
|
@@ -82,6 +82,32 @@ export class EVMTxBuilder {
|
|
|
82
82
|
chainId: this.getChainId()
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
|
+
/**
|
|
86
|
+
* Guardian fast-path equivalent of {@link pauseNonAdminOperations}.
|
|
87
|
+
*
|
|
88
|
+
* The contract exposes two pause toggles:
|
|
89
|
+
* - `pauseNonAdminOperations` — `onlyOwner` (slow path; behind the timelock
|
|
90
|
+
* once ownership of `ProtocolConfig` has been
|
|
91
|
+
* transferred)
|
|
92
|
+
* - `guardianPauseNonAdminOperations` — `onlyGuardian` (instant, no timelock)
|
|
93
|
+
*
|
|
94
|
+
* Use this variant when signing with the guardian key. Calling the owner-path setter from a
|
|
95
|
+
* guardian signer will revert with `OwnableUnauthorizedAccount` on any chain whose
|
|
96
|
+
* `ProtocolConfig` ownership has moved to the timelock.
|
|
97
|
+
*
|
|
98
|
+
* @param pause True to pause, false to unpause
|
|
99
|
+
* @returns Transaction call object
|
|
100
|
+
*/
|
|
101
|
+
guardianPauseNonAdminOperations(pause) {
|
|
102
|
+
return {
|
|
103
|
+
to: this.parser.getProtocolConfigAddress(),
|
|
104
|
+
functionName: "guardianPauseNonAdminOperations",
|
|
105
|
+
args: [pause],
|
|
106
|
+
abi: EmberProtocolConfigABI.abi,
|
|
107
|
+
value: 0n,
|
|
108
|
+
chainId: this.getChainId()
|
|
109
|
+
};
|
|
110
|
+
}
|
|
85
111
|
/**
|
|
86
112
|
* Updates the platform fee recipient address
|
|
87
113
|
* @param recipient New recipient address
|