@imtbl/sdk 0.4.0-alpha.2 → 0.4.1-alpha

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.
@@ -203,7 +203,7 @@ declare abstract class ForkEvent extends Description {
203
203
  }
204
204
  declare type EventType = string | Array<string | Array<string>> | EventFilter | ForkEvent;
205
205
  declare type Listener = (...args: Array<any>) => void;
206
- declare abstract class Provider implements OnceBlockable {
206
+ declare abstract class Provider$1 implements OnceBlockable {
207
207
  abstract getNetwork(): Promise<Network>;
208
208
  abstract getBlockNumber(): Promise<number>;
209
209
  abstract getGasPrice(): Promise<BigNumber>;
@@ -222,27 +222,27 @@ declare abstract class Provider implements OnceBlockable {
222
222
  abstract getLogs(filter: Filter): Promise<Array<Log>>;
223
223
  abstract resolveName(name: string | Promise<string>): Promise<null | string>;
224
224
  abstract lookupAddress(address: string | Promise<string>): Promise<null | string>;
225
- abstract on(eventName: EventType, listener: Listener): Provider;
226
- abstract once(eventName: EventType, listener: Listener): Provider;
225
+ abstract on(eventName: EventType, listener: Listener): Provider$1;
226
+ abstract once(eventName: EventType, listener: Listener): Provider$1;
227
227
  abstract emit(eventName: EventType, ...args: Array<any>): boolean;
228
228
  abstract listenerCount(eventName?: EventType): number;
229
229
  abstract listeners(eventName?: EventType): Array<Listener>;
230
- abstract off(eventName: EventType, listener?: Listener): Provider;
231
- abstract removeAllListeners(eventName?: EventType): Provider;
232
- addListener(eventName: EventType, listener: Listener): Provider;
233
- removeListener(eventName: EventType, listener: Listener): Provider;
230
+ abstract off(eventName: EventType, listener?: Listener): Provider$1;
231
+ abstract removeAllListeners(eventName?: EventType): Provider$1;
232
+ addListener(eventName: EventType, listener: Listener): Provider$1;
233
+ removeListener(eventName: EventType, listener: Listener): Provider$1;
234
234
  abstract waitForTransaction(transactionHash: string, confirmations?: number, timeout?: number): Promise<TransactionReceipt>;
235
235
  readonly _isProvider: boolean;
236
236
  constructor();
237
- static isProvider(value: any): value is Provider;
237
+ static isProvider(value: any): value is Provider$1;
238
238
  }
239
239
 
240
240
  declare abstract class Signer {
241
- readonly provider?: Provider;
241
+ readonly provider?: Provider$1;
242
242
  abstract getAddress(): Promise<string>;
243
243
  abstract signMessage(message: Bytes | string): Promise<string>;
244
244
  abstract signTransaction(transaction: Deferrable<TransactionRequest>): Promise<string>;
245
- abstract connect(provider: Provider): Signer;
245
+ abstract connect(provider: Provider$1): Signer;
246
246
  readonly _isSigner: boolean;
247
247
  constructor();
248
248
  getBalance(blockTag?: BlockTag): Promise<BigNumber>;
@@ -856,7 +856,7 @@ interface TokenData {
856
856
  */
857
857
  'quantity': string;
858
858
  /**
859
- * Quantity of this asset with the sum of all fees applied to the asset
859
+ * [DEPRECATED for v3 endpoints] Quantity of this asset with the sum of all fees applied to the asset. Replaced by quantity_with_fees in maker_fees / taker_fees depending on the type of order. Refer https://docs.x.immutable.com/docs/maker-taker-fees/#new-maker-taker-fields-and-the-deprecation-of-quantity_with_fees-in-buy-and-sell.
860
860
  * @type {string}
861
861
  * @memberof TokenData
862
862
  */
@@ -3719,7 +3719,7 @@ interface GetSignableOrderRequestV3 {
3719
3719
  */
3720
3720
  'amount_sell': string;
3721
3721
  /**
3722
- * ExpirationTimestamp in Unix time. Note: will be rounded down to the nearest hour
3722
+ * ExpirationTimestamp in Unix time in hours. Note: will be rounded down to the nearest hour
3723
3723
  * @type {number}
3724
3724
  * @memberof GetSignableOrderRequestV3
3725
3725
  */
@@ -3818,7 +3818,7 @@ interface GetSignableOrderResponse {
3818
3818
  */
3819
3819
  'asset_id_sell': string;
3820
3820
  /**
3821
- * Expiration timestamp for this order
3821
+ * ExpirationTimestamp in Unix time in hours. Note: will be rounded down to the nearest hour
3822
3822
  * @type {number}
3823
3823
  * @memberof GetSignableOrderResponse
3824
3824
  */
@@ -3979,7 +3979,7 @@ interface GetSignableRegistrationResponse {
3979
3979
  */
3980
3980
  interface GetSignableTradeRequest {
3981
3981
  /**
3982
- * ExpirationTimestamp in Unix time. Note: will be rounded down to the nearest hour
3982
+ * ExpirationTimestamp in Unix time in hours. Note: will be rounded down to the nearest hour
3983
3983
  * @type {number}
3984
3984
  * @memberof GetSignableTradeRequest
3985
3985
  */
@@ -4066,7 +4066,7 @@ interface GetSignableTradeResponse {
4066
4066
  */
4067
4067
  'asset_id_sell': string;
4068
4068
  /**
4069
- * Expiration timestamp for this order
4069
+ * ExpirationTimestamp in Unix time in hours. Note: will be rounded down to the nearest hour
4070
4070
  * @type {number}
4071
4071
  * @memberof GetSignableTradeResponse
4072
4072
  */
@@ -5153,7 +5153,7 @@ interface OrderV3 {
5153
5153
  */
5154
5154
  'expiration_timestamp': string | null;
5155
5155
  /**
5156
- * Fee information for the order
5156
+ * [DEPRECATED] Fee information for the order. Replaced by maker_fees / taker_fees depending on the type of order. Refer https://docs.x.immutable.com/docs/maker-taker-fees/#new-maker-taker-fields-and-the-deprecation-of-quantity_with_fees-in-buy-and-sell.
5157
5157
  * @type {Array<OrderFeeInfo>}
5158
5158
  * @memberof OrderV3
5159
5159
  */
@@ -8707,10 +8707,11 @@ interface OrdersApiListOrdersV3Request {
8707
8707
  */
8708
8708
  declare class OrdersApi extends BaseAPI {
8709
8709
  /**
8710
- * Cancel an order. Use https://docs.x.immutable.com/reference#/operations/getSignableCancelOrder to get request body params.
8710
+ * Cancel an order. Use https://docs.x.immutable.com/reference#/operations/getSignableCancelOrder to get request body params. This version of the endpoint is deprecated, the latest version can be found at https://docs.x.immutable.com/reference/#/operations/cancelOrderV3. Deprecation date - Mon, 01 May 2023 Sunset date - Fri, 01 Sept 2023
8711
8711
  * @summary Cancel an order
8712
8712
  * @param {OrdersApiCancelOrderRequest} requestParameters Request parameters.
8713
8713
  * @param {*} [options] Override http request option.
8714
+ * @deprecated
8714
8715
  * @throws {RequiredError}
8715
8716
  * @memberof OrdersApi
8716
8717
  */
@@ -8725,10 +8726,11 @@ declare class OrdersApi extends BaseAPI {
8725
8726
  */
8726
8727
  cancelOrderV3(requestParameters: OrdersApiCancelOrderV3Request, options?: AxiosRequestConfig): Promise<AxiosResponse<CancelOrderResponse, any>>;
8727
8728
  /**
8728
- * Create an order. Use https://docs.x.immutable.com/reference#/operations/getSignableOrder to get request body params.
8729
+ * Create an order. Use https://docs.x.immutable.com/reference#/operations/getSignableOrder to get request body params. This version of the endpoint is deprecated, the latest version can be found at https://docs.x.immutable.com/reference/#/operations/createOrderV3. Deprecation date - Mon, 01 May 2023 Sunset date - Fri, 01 Sept 2023
8729
8730
  * @summary Create an order
8730
8731
  * @param {OrdersApiCreateOrderRequest} requestParameters Request parameters.
8731
8732
  * @param {*} [options] Override http request option.
8733
+ * @deprecated
8732
8734
  * @throws {RequiredError}
8733
8735
  * @memberof OrdersApi
8734
8736
  */
@@ -8743,10 +8745,11 @@ declare class OrdersApi extends BaseAPI {
8743
8745
  */
8744
8746
  createOrderV3(requestParameters: OrdersApiCreateOrderV3Request, options?: AxiosRequestConfig): Promise<AxiosResponse<CreateOrderResponse, any>>;
8745
8747
  /**
8746
- * Get an order
8748
+ * Get an order. This version of the endpoint is deprecated, the latest version can be found at https://docs.x.immutable.com/reference/#/operations/getOrderV3. Deprecation date - Mon, 01 May 2023 Sunset date - Fri, 01 Sept 2023
8747
8749
  * @summary Get an order
8748
8750
  * @param {OrdersApiGetOrderRequest} requestParameters Request parameters.
8749
8751
  * @param {*} [options] Override http request option.
8752
+ * @deprecated
8750
8753
  * @throws {RequiredError}
8751
8754
  * @memberof OrdersApi
8752
8755
  */
@@ -8761,17 +8764,18 @@ declare class OrdersApi extends BaseAPI {
8761
8764
  */
8762
8765
  getOrderV3(requestParameters: OrdersApiGetOrderV3Request, options?: AxiosRequestConfig): Promise<AxiosResponse<OrderV3, any>>;
8763
8766
  /**
8764
- * Get a signable cancel order message
8765
- * @summary Get a signable cancel order message
8767
+ * Sign cancel order message. This version of the endpoint is deprecated, the latest version can be found at https://docs.x.immutable.com/reference/#/operations/getSignableCancelOrderV3. Deprecation date - Mon, 01 May 2023 Sunset date - Fri, 01 Sept 2023
8768
+ * @summary Sign cancel order message
8766
8769
  * @param {OrdersApiGetSignableCancelOrderRequest} requestParameters Request parameters.
8767
8770
  * @param {*} [options] Override http request option.
8771
+ * @deprecated
8768
8772
  * @throws {RequiredError}
8769
8773
  * @memberof OrdersApi
8770
8774
  */
8771
8775
  getSignableCancelOrder(requestParameters: OrdersApiGetSignableCancelOrderRequest, options?: AxiosRequestConfig): Promise<AxiosResponse<GetSignableCancelOrderResponse, any>>;
8772
8776
  /**
8773
- * Get a signable cancel order message (V3)
8774
- * @summary Get a signable cancel order message (V3)
8777
+ * Generate a signable cancel order message (V3)
8778
+ * @summary Generate a signable cancel order message (V3)
8775
8779
  * @param {OrdersApiGetSignableCancelOrderV3Request} requestParameters Request parameters.
8776
8780
  * @param {*} [options] Override http request option.
8777
8781
  * @throws {RequiredError}
@@ -8779,8 +8783,8 @@ declare class OrdersApi extends BaseAPI {
8779
8783
  */
8780
8784
  getSignableCancelOrderV3(requestParameters: OrdersApiGetSignableCancelOrderV3Request, options?: AxiosRequestConfig): Promise<AxiosResponse<GetSignableCancelOrderResponse, any>>;
8781
8785
  /**
8782
- * Get a signable order request (V3)
8783
- * @summary Get a signable order request (V3)
8786
+ * Generate a signable order request (V3)
8787
+ * @summary Generate a signable order request (V3)
8784
8788
  * @param {OrdersApiGetSignableOrderRequest} requestParameters Request parameters.
8785
8789
  * @param {*} [options] Override http request option.
8786
8790
  * @throws {RequiredError}
@@ -8788,10 +8792,11 @@ declare class OrdersApi extends BaseAPI {
8788
8792
  */
8789
8793
  getSignableOrder(requestParameters: OrdersApiGetSignableOrderRequest, options?: AxiosRequestConfig): Promise<AxiosResponse<GetSignableOrderResponse, any>>;
8790
8794
  /**
8791
- * Get a list of orders
8792
- * @summary Get a list of orders
8795
+ * Get a list of orders This version of the endpoint is deprecated, the latest version can be found at https://docs.x.immutable.com/reference/#/operations/listOrdersV3. Deprecation date - Mon, 01 May 2023 Sunset date - Fri, 01 Sept 2023
8796
+ * @summary Get a list of orders.
8793
8797
  * @param {OrdersApiListOrdersRequest} requestParameters Request parameters.
8794
8798
  * @param {*} [options] Override http request option.
8799
+ * @deprecated
8795
8800
  * @throws {RequiredError}
8796
8801
  * @memberof OrdersApi
8797
8802
  */
@@ -9154,10 +9159,10 @@ interface TradesApiListTradesRequest {
9154
9159
  readonly cursor?: string;
9155
9160
  /**
9156
9161
  * Property to sort by
9157
- * @type {'created_at' | 'updated_at' | 'transaction_id' | 'party_a_sold_quantity' | 'party_b_sold_quantity'}
9162
+ * @type {'created_at' | 'transaction_id' | 'party_a_sold_quantity' | 'party_b_sold_quantity'}
9158
9163
  * @memberof TradesApiListTrades
9159
9164
  */
9160
- readonly orderBy?: 'created_at' | 'updated_at' | 'transaction_id' | 'party_a_sold_quantity' | 'party_b_sold_quantity';
9165
+ readonly orderBy?: 'created_at' | 'transaction_id' | 'party_a_sold_quantity' | 'party_b_sold_quantity';
9161
9166
  /**
9162
9167
  * Direction to sort (asc/desc)
9163
9168
  * @type {string}
@@ -9227,10 +9232,10 @@ interface TradesApiListTradesV3Request {
9227
9232
  readonly cursor?: string;
9228
9233
  /**
9229
9234
  * Property to sort by
9230
- * @type {'created_at' | 'updated_at' | 'transaction_id' | 'party_a_sold_quantity' | 'party_b_sold_quantity' | 'timestamp' | 'updated_timestamp'}
9235
+ * @type {'created_at' | 'transaction_id' | 'party_a_sold_quantity' | 'party_b_sold_quantity' | 'timestamp' | 'updated_timestamp'}
9231
9236
  * @memberof TradesApiListTradesV3
9232
9237
  */
9233
- readonly orderBy?: 'created_at' | 'updated_at' | 'transaction_id' | 'party_a_sold_quantity' | 'party_b_sold_quantity' | 'timestamp' | 'updated_timestamp';
9238
+ readonly orderBy?: 'created_at' | 'transaction_id' | 'party_a_sold_quantity' | 'party_b_sold_quantity' | 'timestamp' | 'updated_timestamp';
9234
9239
  /**
9235
9240
  * Direction to sort (asc/desc)
9236
9241
  * @type {string}
@@ -9258,10 +9263,11 @@ interface TradesApiListTradesV3Request {
9258
9263
  */
9259
9264
  declare class TradesApi extends BaseAPI {
9260
9265
  /**
9261
- * Create a trade. Use https://docs.x.immutable.com/reference#/operations/getSignableTrade to get request body params.
9266
+ * Create a trade. Use https://docs.x.immutable.com/reference#/operations/getSignableTrade to get request body params. This version of the endpoint is deprecated, the latest version can be found at https://docs.x.immutable.com/reference/#/operations/createTradeV3. Deprecation date - Mon, 01 May 2023 Sunset date - Fri, 01 Sept 2023
9262
9267
  * @summary Create a Trade between two parties
9263
9268
  * @param {TradesApiCreateTradeRequest} requestParameters Request parameters.
9264
9269
  * @param {*} [options] Override http request option.
9270
+ * @deprecated
9265
9271
  * @throws {RequiredError}
9266
9272
  * @memberof TradesApi
9267
9273
  */
@@ -9276,8 +9282,8 @@ declare class TradesApi extends BaseAPI {
9276
9282
  */
9277
9283
  createTradeV3(requestParameters: TradesApiCreateTradeV3Request, options?: AxiosRequestConfig): Promise<AxiosResponse<CreateTradeResponse, any>>;
9278
9284
  /**
9279
- * Get a signable trade V3 message
9280
- * @summary Get a signable trade V3 message
9285
+ * Generate a signable trade message (V3)
9286
+ * @summary Generate a signable trade message (V3)
9281
9287
  * @param {TradesApiGetSignableTradeRequest} requestParameters Request parameters.
9282
9288
  * @param {*} [options] Override http request option.
9283
9289
  * @throws {RequiredError}
@@ -9294,10 +9300,11 @@ declare class TradesApi extends BaseAPI {
9294
9300
  */
9295
9301
  getTrade(requestParameters: TradesApiGetTradeRequest, options?: AxiosRequestConfig): Promise<AxiosResponse<Trade, any>>;
9296
9302
  /**
9297
- * Get a list of trades
9303
+ * Get a list of trades. This version of the endpoint is deprecated, the latest version can be found at https://docs.x.immutable.com/reference/#/operations/listTradesV3. Deprecation date - Mon, 01 May 2023 Sunset date - Fri, 01 Sept 2023
9298
9304
  * @summary Get a list of trades
9299
9305
  * @param {TradesApiListTradesRequest} requestParameters Request parameters.
9300
9306
  * @param {*} [options] Override http request option.
9307
+ * @deprecated
9301
9308
  * @throws {RequiredError}
9302
9309
  * @memberof TradesApi
9303
9310
  */
@@ -9530,7 +9537,7 @@ interface TransfersApiListTransfersRequest {
9530
9537
  */
9531
9538
  declare class TransfersApi extends BaseAPI {
9532
9539
  /**
9533
- * Create a new transfer request.
9540
+ * Create a new transfer request. Use https://docs.x.immutable.com/reference#/operations/getSignableTransfer to get request body params.
9534
9541
  * @summary Creates a transfer of multiple tokens between two parties
9535
9542
  * @param {TransfersApiCreateTransferRequest} requestParameters Request parameters.
9536
9543
  * @param {*} [options] Override http request option.
@@ -9539,7 +9546,7 @@ declare class TransfersApi extends BaseAPI {
9539
9546
  */
9540
9547
  createTransfer(requestParameters: TransfersApiCreateTransferRequest, options?: AxiosRequestConfig): Promise<AxiosResponse<CreateTransferResponse, any>>;
9541
9548
  /**
9542
- * Create a new transfer request.
9549
+ * Create a new transfer request. Use https://docs.x.immutable.com/reference#/operations/getSignableTransferV1 to get request body params.
9543
9550
  * @summary Creates a transfer of tokens between two parties
9544
9551
  * @param {TransfersApiCreateTransferV1Request} requestParameters Request parameters.
9545
9552
  * @param {*} [options] Override http request option.
@@ -10352,14 +10359,14 @@ declare class ImmutableXClient {
10352
10359
  * @returns a promise that resolves with the requested Order
10353
10360
  * @throws {@link index.IMXError}
10354
10361
  */
10355
- getOrder(request: OrdersApiGetOrderRequest): Promise<Order>;
10362
+ getOrder(request: OrdersApiGetOrderRequest): Promise<OrderV3>;
10356
10363
  /**
10357
10364
  * Get a list of Orders
10358
10365
  * @param request - optional object containing the parameters to be provided in the API request
10359
10366
  * @returns a promise that resolves with the requested list of Orders
10360
10367
  * @throws {@link index.IMXError}
10361
10368
  */
10362
- listOrders(request?: OrdersApiListOrdersRequest): Promise<ListOrdersResponse>;
10369
+ listOrders(request?: OrdersApiListOrdersRequest): Promise<ListOrdersResponseV3>;
10363
10370
  /**
10364
10371
  * Get details of a Trade with the given ID
10365
10372
  * @param request - the request object containing the parameters to be provided in the API request
@@ -10473,6 +10480,7 @@ declare enum Networks {
10473
10480
  interface OidcConfiguration {
10474
10481
  clientId: string;
10475
10482
  logoutRedirectUri: string;
10483
+ logoutMode?: 'redirect' | 'silent';
10476
10484
  redirectUri: string;
10477
10485
  scope?: string;
10478
10486
  audience?: string;
@@ -10485,6 +10493,12 @@ interface PassportOverrides {
10485
10493
  passportDomain: string;
10486
10494
  imxPublicApiDomain: string;
10487
10495
  immutableXClient: ImmutableXClient;
10496
+ zkEvmRpcUrl: string;
10497
+ zkEvmChainId: string;
10498
+ relayerUrl: string;
10499
+ indexerMrBasePath: string;
10500
+ orderBookMrBasePath: string;
10501
+ passportMrBasePath: string;
10488
10502
  }
10489
10503
  interface PassportModuleConfiguration extends ModuleConfiguration<PassportOverrides>, OidcConfiguration {
10490
10504
  }
@@ -10502,6 +10516,59 @@ type DeviceTokenResponse = {
10502
10516
  expires_in: number;
10503
10517
  };
10504
10518
 
10519
+ /**
10520
+ * ProviderErrors should take priority over RpcErrorCodes
10521
+ */
10522
+ declare enum ProviderErrorCode {
10523
+ USER_REJECTED_REQUEST = 4001,
10524
+ UNAUTHORIZED = 4100,
10525
+ UNSUPPORTED_METHOD = 4200,
10526
+ DISCONNECTED = 4900
10527
+ }
10528
+ declare enum RpcErrorCode {
10529
+ RPC_SERVER_ERROR = -32000,
10530
+ INVALID_REQUEST = -32600,
10531
+ METHOD_NOT_FOUND = -32601,
10532
+ INVALID_PARAMS = -32602,
10533
+ INTERNAL_ERROR = -32603,
10534
+ PARSE_ERROR = -32700,
10535
+ USER_REJECTED_REQUEST = -32003
10536
+ }
10537
+ declare class JsonRpcError extends Error {
10538
+ readonly message: string;
10539
+ readonly code: ProviderErrorCode | RpcErrorCode;
10540
+ constructor(code: ProviderErrorCode | RpcErrorCode, message: string);
10541
+ }
10542
+
10543
+ interface RequestArguments {
10544
+ method: string;
10545
+ params?: Array<any>;
10546
+ }
10547
+ type JsonRpcRequestPayload = RequestArguments & {
10548
+ jsonrpc?: string;
10549
+ id?: string | number;
10550
+ };
10551
+ interface JsonRpcRequestCallback {
10552
+ (err: JsonRpcError | null, result?: JsonRpcResponsePayload | (JsonRpcResponsePayload | null)[] | null): void;
10553
+ }
10554
+ interface JsonRpcResponsePayload {
10555
+ result?: Array<any> | null;
10556
+ error?: JsonRpcError | null;
10557
+ jsonrpc?: string;
10558
+ id?: string | number;
10559
+ }
10560
+ type Provider = {
10561
+ request: (request: RequestArguments) => Promise<any>;
10562
+ sendAsync: (request: JsonRpcRequestPayload | JsonRpcRequestPayload[], callback: JsonRpcRequestCallback) => void;
10563
+ send: (request: string | JsonRpcRequestPayload | JsonRpcRequestPayload[], callbackOrParams?: JsonRpcRequestCallback | Array<any>, callback?: JsonRpcRequestCallback) => void;
10564
+ on: (event: string, listener: (...args: any[]) => void) => void;
10565
+ removeListener: (event: string, listener: (...args: any[]) => void) => void;
10566
+ };
10567
+ declare enum ProviderEvent {
10568
+ ACCOUNTS_CHANGED = "accountsChanged"
10569
+ }
10570
+ type AccountsChangedEvent = Array<string>;
10571
+
10505
10572
  declare class Passport {
10506
10573
  private readonly authManager;
10507
10574
  private readonly config;
@@ -10509,18 +10576,27 @@ declare class Passport {
10509
10576
  private readonly immutableXClient;
10510
10577
  private readonly magicAdapter;
10511
10578
  private readonly passportImxProviderFactory;
10579
+ private readonly multiRollupApiClients;
10512
10580
  constructor(passportModuleConfiguration: PassportModuleConfiguration);
10513
10581
  connectImxSilent(): Promise<IMXProvider | null>;
10514
10582
  connectImx(): Promise<IMXProvider>;
10515
10583
  loginWithDeviceFlow(): Promise<DeviceConnectResponse>;
10516
10584
  connectImxDeviceFlow(deviceCode: string, interval: number, timeoutMs?: number): Promise<IMXProvider | null>;
10585
+ getPKCEAuthorizationUrl(): string;
10586
+ connectImxPKCEFlow(authorizationCode: string, state: string): Promise<IMXProvider | null>;
10517
10587
  /**
10518
10588
  * @returns {boolean} the stored device flow credentials if they exist
10519
10589
  */
10520
10590
  checkStoredDeviceFlowCredentials(): DeviceTokenResponse | null;
10521
10591
  connectImxWithCredentials(tokenResponse: DeviceTokenResponse): Promise<IMXProvider | null>;
10592
+ protected connectEvm(): Provider;
10522
10593
  loginCallback(): Promise<void>;
10523
10594
  logout(): Promise<void>;
10595
+ /**
10596
+ * This method should only be called from the logout redirect uri
10597
+ * when logout mode is 'silent'.
10598
+ */
10599
+ logoutSilentCallback(url: string): Promise<void>;
10524
10600
  logoutDeviceFlow(): Promise<void>;
10525
10601
  getUserInfo(): Promise<UserProfile | undefined>;
10526
10602
  getUserInfoDeviceFlow(): Promise<UserProfile | undefined>;
@@ -10528,4 +10604,4 @@ declare class Passport {
10528
10604
  getAccessToken(): Promise<string | undefined>;
10529
10605
  }
10530
10606
 
10531
- export { DeviceConnectResponse, DeviceTokenResponse, Networks, Passport, PassportError, PassportModuleConfiguration, PassportOverrides, UserProfile };
10607
+ export { AccountsChangedEvent, DeviceConnectResponse, DeviceTokenResponse, JsonRpcError, JsonRpcRequestCallback, JsonRpcRequestPayload, JsonRpcResponsePayload, Networks, Passport, PassportError, PassportModuleConfiguration, PassportOverrides, Provider, ProviderErrorCode, ProviderEvent, RequestArguments, RpcErrorCode, UserProfile };