File tree 3 files changed +16
-0
lines changed
3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -201,6 +201,10 @@ export class EvmNtt<N extends Network, C extends EvmChains>
201
201
return new EvmAddress ( await this . manager . owner ( ) ) as AccountAddress < C > ;
202
202
}
203
203
204
+ async getPauser ( ) : Promise < AccountAddress < C > | null > {
205
+ return new EvmAddress ( await this . manager . pauser ( ) ) as AccountAddress < C > ;
206
+ }
207
+
204
208
async * setOwner ( owner : AccountAddress < C > ) {
205
209
const canonicalOwner = canonicalAddress ( { chain : this . chain , address : owner } ) ;
206
210
const tx = await this . manager . transferOwnership . populateTransaction ( canonicalOwner ) ;
Original file line number Diff line number Diff line change @@ -173,8 +173,12 @@ export interface Ntt<N extends Network, C extends Chain> {
173
173
174
174
getOwner ( ) : Promise < AccountAddress < C > > ;
175
175
176
+ getPauser ( ) : Promise < AccountAddress < C > | null > ;
177
+
176
178
setOwner ( newOwner : AccountAddress < C > , payer ?: AccountAddress < C > ) : AsyncGenerator < UnsignedTransaction < N , C > > ;
177
179
180
+ setPauser ( newOwner : AccountAddress < C > , payer ?: AccountAddress < C > ) : AsyncGenerator < UnsignedTransaction < N , C > > ;
181
+
178
182
getThreshold ( ) : Promise < number > ;
179
183
180
184
setPeer (
Original file line number Diff line number Diff line change @@ -189,6 +189,10 @@ export class SolanaNtt<N extends Network, C extends SolanaChains>
189
189
return new SolanaAddress ( config . owner ) as AccountAddress < C > ;
190
190
}
191
191
192
+ async getPauser ( ) : Promise < AccountAddress < C > | null > {
193
+ return null
194
+ }
195
+
192
196
async * setOwner ( newOwner : AccountAddress < C > , payer : AccountAddress < C > ) {
193
197
const sender = new SolanaAddress ( payer ) . unwrap ( ) ;
194
198
const ix = await NTT . createTransferOwnershipInstruction ( this . program , {
@@ -201,6 +205,10 @@ export class SolanaNtt<N extends Network, C extends SolanaChains>
201
205
yield this . createUnsignedTx ( { transaction : tx } , "Ntt.SetOwner" ) ;
202
206
}
203
207
208
+ async * setPauser ( _newPauser : AccountAddress < C > , _payer : AccountAddress < C > ) {
209
+ throw new Error ( "Pauser role not supported on Solna." ) ;
210
+ }
211
+
204
212
async isRelayingAvailable ( destination : Chain ) : Promise < boolean > {
205
213
if ( ! this . quoter ) return false ;
206
214
return await this . quoter . isRelayEnabled ( destination ) ;
You can’t perform that action at this time.
0 commit comments