Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 3 additions & 18 deletions packages/relayer/src/rpc-relayer/relayer.gen.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable */
// sequence-relayer v0.4.1 f192d958d77a781a356ee57948513c11a0a10cf8
// sequence-relayer v0.4.1 7f8a4b83b00e0b6849c76c2ff0e23931e26b3d9f
// --
// Code generated by [email protected] with typescript generator. DO NOT EDIT.
//
Expand All @@ -12,7 +12,7 @@ export const WebrpcVersion = 'v1'
export const WebrpcSchemaVersion = 'v0.4.1'

// Schema hash generated from your RIDL schema
export const WebrpcSchemaHash = 'f192d958d77a781a356ee57948513c11a0a10cf8'
export const WebrpcSchemaHash = '7f8a4b83b00e0b6849c76c2ff0e23931e26b3d9f'

//
// Client interface
Expand Down Expand Up @@ -1665,7 +1665,7 @@ export class AccessKeyMismatchError extends WebrpcError {
this.name = error.name || 'AccessKeyMismatch'
this.code = typeof error.code === 'number' ? error.code : 1102
this.message = error.message || `Access key mismatch`
this.status = typeof error.status === 'number' ? error.status : 403
this.status = typeof error.status === 'number' ? error.status : 409
if (error.cause !== undefined) this.cause = error.cause
Object.setPrototypeOf(this, AccessKeyMismatchError.prototype)
}
Expand Down Expand Up @@ -1707,18 +1707,6 @@ export class UnauthorizedUserError extends WebrpcError {
}
}

export class InvalidChainError extends WebrpcError {
constructor(error: WebrpcErrorParams = {}) {
super(error)
this.name = error.name || 'InvalidChain'
this.code = typeof error.code === 'number' ? error.code : 1106
this.message = error.message || `Network not enabled for Access key`
this.status = typeof error.status === 'number' ? error.status : 403
if (error.cause !== undefined) this.cause = error.cause
Object.setPrototypeOf(this, InvalidChainError.prototype)
}
}

export class QuotaExceededError extends WebrpcError {
constructor(error: WebrpcErrorParams = {}) {
super(error)
Expand Down Expand Up @@ -1901,7 +1889,6 @@ export enum errors {
InvalidOrigin = 'InvalidOrigin',
InvalidService = 'InvalidService',
UnauthorizedUser = 'UnauthorizedUser',
InvalidChain = 'InvalidChain',
QuotaExceeded = 'QuotaExceeded',
QuotaRateLimit = 'QuotaRateLimit',
NoDefaultKey = 'NoDefaultKey',
Expand Down Expand Up @@ -1943,7 +1930,6 @@ export enum WebrpcErrorCodes {
InvalidOrigin = 1103,
InvalidService = 1104,
UnauthorizedUser = 1105,
InvalidChain = 1106,
QuotaExceeded = 1200,
QuotaRateLimit = 1201,
NoDefaultKey = 1300,
Expand Down Expand Up @@ -1985,7 +1971,6 @@ export const webrpcErrorByCode: { [code: number]: any } = {
[1103]: InvalidOriginError,
[1104]: InvalidServiceError,
[1105]: UnauthorizedUserError,
[1106]: InvalidChainError,
[1200]: QuotaExceededError,
[1201]: QuotaRateLimitError,
[1300]: NoDefaultKeyError,
Expand Down