Skip to content

Commit b1de452

Browse files
committed
[AUTOMATED] Update: proto/clients/relayer.gen.ts
1 parent d3b98a0 commit b1de452

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

packages/relayer/src/rpc-relayer/relayer.gen.ts

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-disable */
2-
// sequence-relayer v0.4.1 012e18e1a304ada0bdddbb9c4805697ff9771d36
2+
// sequence-relayer v0.4.1 3af6da1dad525c89afca98ae34bfb818103556a4
33
// --
44
// Code generated by Webrpc-gen@v0.31.2 with typescript generator. DO NOT EDIT.
55
//
@@ -12,7 +12,7 @@ export const WebrpcVersion = 'v1'
1212
export const WebrpcSchemaVersion = 'v0.4.1'
1313

1414
// Schema hash generated from your RIDL schema
15-
export const WebrpcSchemaHash = '012e18e1a304ada0bdddbb9c4805697ff9771d36'
15+
export const WebrpcSchemaHash = '3af6da1dad525c89afca98ae34bfb818103556a4'
1616

1717
//
1818
// Client interface
@@ -1819,7 +1819,7 @@ export class AccessKeyMismatchError extends WebrpcError {
18191819
this.name = error.name || 'AccessKeyMismatch'
18201820
this.code = typeof error.code === 'number' ? error.code : 1102
18211821
this.message = error.message || `Access key mismatch`
1822-
this.status = typeof error.status === 'number' ? error.status : 409
1822+
this.status = typeof error.status === 'number' ? error.status : 403
18231823
if (error.cause !== undefined) this.cause = error.cause
18241824
Object.setPrototypeOf(this, AccessKeyMismatchError.prototype)
18251825
}
@@ -1861,6 +1861,18 @@ export class UnauthorizedUserError extends WebrpcError {
18611861
}
18621862
}
18631863

1864+
export class InvalidChainError extends WebrpcError {
1865+
constructor(error: WebrpcErrorParams = {}) {
1866+
super(error)
1867+
this.name = error.name || 'InvalidChain'
1868+
this.code = typeof error.code === 'number' ? error.code : 1106
1869+
this.message = error.message || `Network not enabled for Access key`
1870+
this.status = typeof error.status === 'number' ? error.status : 403
1871+
if (error.cause !== undefined) this.cause = error.cause
1872+
Object.setPrototypeOf(this, InvalidChainError.prototype)
1873+
}
1874+
}
1875+
18641876
export class QuotaExceededError extends WebrpcError {
18651877
constructor(error: WebrpcErrorParams = {}) {
18661878
super(error)
@@ -2043,6 +2055,7 @@ export enum errors {
20432055
InvalidOrigin = 'InvalidOrigin',
20442056
InvalidService = 'InvalidService',
20452057
UnauthorizedUser = 'UnauthorizedUser',
2058+
InvalidChain = 'InvalidChain',
20462059
QuotaExceeded = 'QuotaExceeded',
20472060
QuotaRateLimit = 'QuotaRateLimit',
20482061
NoDefaultKey = 'NoDefaultKey',
@@ -2084,6 +2097,7 @@ export enum WebrpcErrorCodes {
20842097
InvalidOrigin = 1103,
20852098
InvalidService = 1104,
20862099
UnauthorizedUser = 1105,
2100+
InvalidChain = 1106,
20872101
QuotaExceeded = 1200,
20882102
QuotaRateLimit = 1201,
20892103
NoDefaultKey = 1300,
@@ -2125,6 +2139,7 @@ export const webrpcErrorByCode: { [code: number]: any } = {
21252139
[1103]: InvalidOriginError,
21262140
[1104]: InvalidServiceError,
21272141
[1105]: UnauthorizedUserError,
2142+
[1106]: InvalidChainError,
21282143
[1200]: QuotaExceededError,
21292144
[1201]: QuotaRateLimitError,
21302145
[1300]: NoDefaultKeyError,

0 commit comments

Comments
 (0)