Skip to content

Commit b3d899b

Browse files
[AUTOMATED] Update: proto/clients/relayer.gen.ts (#943)
Co-authored-by: pkieltyka <18831+pkieltyka@users.noreply.github.com>
1 parent 3317478 commit b3d899b

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

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

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-disable */
2-
// sequence-relayer v0.4.1 f192d958d77a781a356ee57948513c11a0a10cf8
2+
// sequence-relayer v0.4.1 7f8a4b83b00e0b6849c76c2ff0e23931e26b3d9f
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 = 'f192d958d77a781a356ee57948513c11a0a10cf8'
15+
export const WebrpcSchemaHash = '7f8a4b83b00e0b6849c76c2ff0e23931e26b3d9f'
1616

1717
//
1818
// Client interface
@@ -1665,7 +1665,7 @@ export class AccessKeyMismatchError extends WebrpcError {
16651665
this.name = error.name || 'AccessKeyMismatch'
16661666
this.code = typeof error.code === 'number' ? error.code : 1102
16671667
this.message = error.message || `Access key mismatch`
1668-
this.status = typeof error.status === 'number' ? error.status : 403
1668+
this.status = typeof error.status === 'number' ? error.status : 409
16691669
if (error.cause !== undefined) this.cause = error.cause
16701670
Object.setPrototypeOf(this, AccessKeyMismatchError.prototype)
16711671
}
@@ -1707,18 +1707,6 @@ export class UnauthorizedUserError extends WebrpcError {
17071707
}
17081708
}
17091709

1710-
export class InvalidChainError extends WebrpcError {
1711-
constructor(error: WebrpcErrorParams = {}) {
1712-
super(error)
1713-
this.name = error.name || 'InvalidChain'
1714-
this.code = typeof error.code === 'number' ? error.code : 1106
1715-
this.message = error.message || `Network not enabled for Access key`
1716-
this.status = typeof error.status === 'number' ? error.status : 403
1717-
if (error.cause !== undefined) this.cause = error.cause
1718-
Object.setPrototypeOf(this, InvalidChainError.prototype)
1719-
}
1720-
}
1721-
17221710
export class QuotaExceededError extends WebrpcError {
17231711
constructor(error: WebrpcErrorParams = {}) {
17241712
super(error)
@@ -1901,7 +1889,6 @@ export enum errors {
19011889
InvalidOrigin = 'InvalidOrigin',
19021890
InvalidService = 'InvalidService',
19031891
UnauthorizedUser = 'UnauthorizedUser',
1904-
InvalidChain = 'InvalidChain',
19051892
QuotaExceeded = 'QuotaExceeded',
19061893
QuotaRateLimit = 'QuotaRateLimit',
19071894
NoDefaultKey = 'NoDefaultKey',
@@ -1943,7 +1930,6 @@ export enum WebrpcErrorCodes {
19431930
InvalidOrigin = 1103,
19441931
InvalidService = 1104,
19451932
UnauthorizedUser = 1105,
1946-
InvalidChain = 1106,
19471933
QuotaExceeded = 1200,
19481934
QuotaRateLimit = 1201,
19491935
NoDefaultKey = 1300,
@@ -1985,7 +1971,6 @@ export const webrpcErrorByCode: { [code: number]: any } = {
19851971
[1103]: InvalidOriginError,
19861972
[1104]: InvalidServiceError,
19871973
[1105]: UnauthorizedUserError,
1988-
[1106]: InvalidChainError,
19891974
[1200]: QuotaExceededError,
19901975
[1201]: QuotaRateLimitError,
19911976
[1300]: NoDefaultKeyError,

0 commit comments

Comments
 (0)