@0xsequence/relayer 2.3.9 → 2.3.11
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.
|
@@ -287,56 +287,56 @@ function isAbstractSigner(signer) {
|
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
/* eslint-disable */
|
|
290
|
-
// sequence-relayer v0.4.1
|
|
290
|
+
// sequence-relayer v0.4.1 fdce30970483936652aaeabaf9339a302ac52d32
|
|
291
291
|
// --
|
|
292
292
|
// Code generated by webrpc-gen@v0.24.0 with typescript generator. DO NOT EDIT.
|
|
293
293
|
//
|
|
294
294
|
// webrpc-gen -schema=relayer.ridl -target=typescript -client -out=./clients/relayer.gen.ts
|
|
295
295
|
|
|
296
|
-
const WebrpcHeader =
|
|
297
|
-
const WebrpcHeaderValue =
|
|
296
|
+
const WebrpcHeader = "Webrpc";
|
|
297
|
+
const WebrpcHeaderValue = "webrpc@v0.24.0;gen-typescript@v0.16.3;sequence-relayer@v0.4.1";
|
|
298
298
|
|
|
299
299
|
// WebRPC description and code-gen version
|
|
300
|
-
const WebRPCVersion =
|
|
300
|
+
const WebRPCVersion = "v1";
|
|
301
301
|
|
|
302
302
|
// Schema version of your RIDL schema
|
|
303
|
-
const WebRPCSchemaVersion =
|
|
303
|
+
const WebRPCSchemaVersion = "v0.4.1";
|
|
304
304
|
|
|
305
305
|
// Schema hash generated from your RIDL schema
|
|
306
|
-
const WebRPCSchemaHash =
|
|
306
|
+
const WebRPCSchemaHash = "fdce30970483936652aaeabaf9339a302ac52d32";
|
|
307
307
|
function VersionFromHeader(headers) {
|
|
308
308
|
const headerValue = headers.get(WebrpcHeader);
|
|
309
309
|
if (!headerValue) {
|
|
310
310
|
return {
|
|
311
|
-
webrpcGenVersion:
|
|
312
|
-
codeGenName:
|
|
313
|
-
codeGenVersion:
|
|
314
|
-
schemaName:
|
|
315
|
-
schemaVersion:
|
|
311
|
+
webrpcGenVersion: "",
|
|
312
|
+
codeGenName: "",
|
|
313
|
+
codeGenVersion: "",
|
|
314
|
+
schemaName: "",
|
|
315
|
+
schemaVersion: ""
|
|
316
316
|
};
|
|
317
317
|
}
|
|
318
318
|
return parseWebrpcGenVersions(headerValue);
|
|
319
319
|
}
|
|
320
320
|
function parseWebrpcGenVersions(header) {
|
|
321
|
-
const versions = header.split(
|
|
321
|
+
const versions = header.split(";");
|
|
322
322
|
if (versions.length < 3) {
|
|
323
323
|
return {
|
|
324
|
-
webrpcGenVersion:
|
|
325
|
-
codeGenName:
|
|
326
|
-
codeGenVersion:
|
|
327
|
-
schemaName:
|
|
328
|
-
schemaVersion:
|
|
324
|
+
webrpcGenVersion: "",
|
|
325
|
+
codeGenName: "",
|
|
326
|
+
codeGenVersion: "",
|
|
327
|
+
schemaName: "",
|
|
328
|
+
schemaVersion: ""
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
|
-
const [_, webrpcGenVersion] = versions[0].split(
|
|
332
|
-
const [codeGenName, codeGenVersion] = versions[1].split(
|
|
333
|
-
const [schemaName, schemaVersion] = versions[2].split(
|
|
331
|
+
const [_, webrpcGenVersion] = versions[0].split("@");
|
|
332
|
+
const [codeGenName, codeGenVersion] = versions[1].split("@");
|
|
333
|
+
const [schemaName, schemaVersion] = versions[2].split("@");
|
|
334
334
|
return {
|
|
335
|
-
webrpcGenVersion: webrpcGenVersion != null ? webrpcGenVersion :
|
|
336
|
-
codeGenName: codeGenName != null ? codeGenName :
|
|
337
|
-
codeGenVersion: codeGenVersion != null ? codeGenVersion :
|
|
338
|
-
schemaName: schemaName != null ? schemaName :
|
|
339
|
-
schemaVersion: schemaVersion != null ? schemaVersion :
|
|
335
|
+
webrpcGenVersion: webrpcGenVersion != null ? webrpcGenVersion : "",
|
|
336
|
+
codeGenName: codeGenName != null ? codeGenName : "",
|
|
337
|
+
codeGenVersion: codeGenVersion != null ? codeGenVersion : "",
|
|
338
|
+
schemaName: schemaName != null ? schemaName : "",
|
|
339
|
+
schemaVersion: schemaVersion != null ? schemaVersion : ""
|
|
340
340
|
};
|
|
341
341
|
}
|
|
342
342
|
|
|
@@ -1103,6 +1103,12 @@ class InsufficientFeeError extends WebrpcError {
|
|
|
1103
1103
|
Object.setPrototypeOf(this, InsufficientFeeError.prototype);
|
|
1104
1104
|
}
|
|
1105
1105
|
}
|
|
1106
|
+
class NotEnoughBalanceError extends WebrpcError {
|
|
1107
|
+
constructor(name = 'NotEnoughBalance', code = 3005, message = `Not enough balance`, status = 0, cause) {
|
|
1108
|
+
super(name, code, message, status, cause);
|
|
1109
|
+
Object.setPrototypeOf(this, NotEnoughBalanceError.prototype);
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1106
1112
|
let errors = /*#__PURE__*/function (errors) {
|
|
1107
1113
|
errors["WebrpcEndpoint"] = "WebrpcEndpoint";
|
|
1108
1114
|
errors["WebrpcRequestFailed"] = "WebrpcRequestFailed";
|
|
@@ -1140,6 +1146,7 @@ let errors = /*#__PURE__*/function (errors) {
|
|
|
1140
1146
|
errors["QueryFailed"] = "QueryFailed";
|
|
1141
1147
|
errors["NotFound"] = "NotFound";
|
|
1142
1148
|
errors["InsufficientFee"] = "InsufficientFee";
|
|
1149
|
+
errors["NotEnoughBalance"] = "NotEnoughBalance";
|
|
1143
1150
|
return errors;
|
|
1144
1151
|
}({});
|
|
1145
1152
|
let WebrpcErrorCodes = /*#__PURE__*/function (WebrpcErrorCodes) {
|
|
@@ -1179,6 +1186,7 @@ let WebrpcErrorCodes = /*#__PURE__*/function (WebrpcErrorCodes) {
|
|
|
1179
1186
|
WebrpcErrorCodes[WebrpcErrorCodes["QueryFailed"] = 2003] = "QueryFailed";
|
|
1180
1187
|
WebrpcErrorCodes[WebrpcErrorCodes["NotFound"] = 3000] = "NotFound";
|
|
1181
1188
|
WebrpcErrorCodes[WebrpcErrorCodes["InsufficientFee"] = 3004] = "InsufficientFee";
|
|
1189
|
+
WebrpcErrorCodes[WebrpcErrorCodes["NotEnoughBalance"] = 3005] = "NotEnoughBalance";
|
|
1182
1190
|
return WebrpcErrorCodes;
|
|
1183
1191
|
}({});
|
|
1184
1192
|
const webrpcErrorByCode = {
|
|
@@ -1217,7 +1225,8 @@ const webrpcErrorByCode = {
|
|
|
1217
1225
|
[2002]: UnavailableError,
|
|
1218
1226
|
[2003]: QueryFailedError,
|
|
1219
1227
|
[3000]: NotFoundError,
|
|
1220
|
-
[3004]: InsufficientFeeError
|
|
1228
|
+
[3004]: InsufficientFeeError,
|
|
1229
|
+
[3005]: NotEnoughBalanceError
|
|
1221
1230
|
};
|
|
1222
1231
|
|
|
1223
1232
|
var relayer_gen = /*#__PURE__*/Object.freeze({
|
|
@@ -1270,6 +1279,7 @@ var relayer_gen = /*#__PURE__*/Object.freeze({
|
|
|
1270
1279
|
QueryFailedError: QueryFailedError,
|
|
1271
1280
|
NotFoundError: NotFoundError,
|
|
1272
1281
|
InsufficientFeeError: InsufficientFeeError,
|
|
1282
|
+
NotEnoughBalanceError: NotEnoughBalanceError,
|
|
1273
1283
|
errors: errors,
|
|
1274
1284
|
WebrpcErrorCodes: WebrpcErrorCodes,
|
|
1275
1285
|
webrpcErrorByCode: webrpcErrorByCode
|
|
@@ -287,56 +287,56 @@ function isAbstractSigner(signer) {
|
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
/* eslint-disable */
|
|
290
|
-
// sequence-relayer v0.4.1
|
|
290
|
+
// sequence-relayer v0.4.1 fdce30970483936652aaeabaf9339a302ac52d32
|
|
291
291
|
// --
|
|
292
292
|
// Code generated by webrpc-gen@v0.24.0 with typescript generator. DO NOT EDIT.
|
|
293
293
|
//
|
|
294
294
|
// webrpc-gen -schema=relayer.ridl -target=typescript -client -out=./clients/relayer.gen.ts
|
|
295
295
|
|
|
296
|
-
const WebrpcHeader =
|
|
297
|
-
const WebrpcHeaderValue =
|
|
296
|
+
const WebrpcHeader = "Webrpc";
|
|
297
|
+
const WebrpcHeaderValue = "webrpc@v0.24.0;gen-typescript@v0.16.3;sequence-relayer@v0.4.1";
|
|
298
298
|
|
|
299
299
|
// WebRPC description and code-gen version
|
|
300
|
-
const WebRPCVersion =
|
|
300
|
+
const WebRPCVersion = "v1";
|
|
301
301
|
|
|
302
302
|
// Schema version of your RIDL schema
|
|
303
|
-
const WebRPCSchemaVersion =
|
|
303
|
+
const WebRPCSchemaVersion = "v0.4.1";
|
|
304
304
|
|
|
305
305
|
// Schema hash generated from your RIDL schema
|
|
306
|
-
const WebRPCSchemaHash =
|
|
306
|
+
const WebRPCSchemaHash = "fdce30970483936652aaeabaf9339a302ac52d32";
|
|
307
307
|
function VersionFromHeader(headers) {
|
|
308
308
|
const headerValue = headers.get(WebrpcHeader);
|
|
309
309
|
if (!headerValue) {
|
|
310
310
|
return {
|
|
311
|
-
webrpcGenVersion:
|
|
312
|
-
codeGenName:
|
|
313
|
-
codeGenVersion:
|
|
314
|
-
schemaName:
|
|
315
|
-
schemaVersion:
|
|
311
|
+
webrpcGenVersion: "",
|
|
312
|
+
codeGenName: "",
|
|
313
|
+
codeGenVersion: "",
|
|
314
|
+
schemaName: "",
|
|
315
|
+
schemaVersion: ""
|
|
316
316
|
};
|
|
317
317
|
}
|
|
318
318
|
return parseWebrpcGenVersions(headerValue);
|
|
319
319
|
}
|
|
320
320
|
function parseWebrpcGenVersions(header) {
|
|
321
|
-
const versions = header.split(
|
|
321
|
+
const versions = header.split(";");
|
|
322
322
|
if (versions.length < 3) {
|
|
323
323
|
return {
|
|
324
|
-
webrpcGenVersion:
|
|
325
|
-
codeGenName:
|
|
326
|
-
codeGenVersion:
|
|
327
|
-
schemaName:
|
|
328
|
-
schemaVersion:
|
|
324
|
+
webrpcGenVersion: "",
|
|
325
|
+
codeGenName: "",
|
|
326
|
+
codeGenVersion: "",
|
|
327
|
+
schemaName: "",
|
|
328
|
+
schemaVersion: ""
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
|
-
const [_, webrpcGenVersion] = versions[0].split(
|
|
332
|
-
const [codeGenName, codeGenVersion] = versions[1].split(
|
|
333
|
-
const [schemaName, schemaVersion] = versions[2].split(
|
|
331
|
+
const [_, webrpcGenVersion] = versions[0].split("@");
|
|
332
|
+
const [codeGenName, codeGenVersion] = versions[1].split("@");
|
|
333
|
+
const [schemaName, schemaVersion] = versions[2].split("@");
|
|
334
334
|
return {
|
|
335
|
-
webrpcGenVersion: webrpcGenVersion != null ? webrpcGenVersion :
|
|
336
|
-
codeGenName: codeGenName != null ? codeGenName :
|
|
337
|
-
codeGenVersion: codeGenVersion != null ? codeGenVersion :
|
|
338
|
-
schemaName: schemaName != null ? schemaName :
|
|
339
|
-
schemaVersion: schemaVersion != null ? schemaVersion :
|
|
335
|
+
webrpcGenVersion: webrpcGenVersion != null ? webrpcGenVersion : "",
|
|
336
|
+
codeGenName: codeGenName != null ? codeGenName : "",
|
|
337
|
+
codeGenVersion: codeGenVersion != null ? codeGenVersion : "",
|
|
338
|
+
schemaName: schemaName != null ? schemaName : "",
|
|
339
|
+
schemaVersion: schemaVersion != null ? schemaVersion : ""
|
|
340
340
|
};
|
|
341
341
|
}
|
|
342
342
|
|
|
@@ -1103,6 +1103,12 @@ class InsufficientFeeError extends WebrpcError {
|
|
|
1103
1103
|
Object.setPrototypeOf(this, InsufficientFeeError.prototype);
|
|
1104
1104
|
}
|
|
1105
1105
|
}
|
|
1106
|
+
class NotEnoughBalanceError extends WebrpcError {
|
|
1107
|
+
constructor(name = 'NotEnoughBalance', code = 3005, message = `Not enough balance`, status = 0, cause) {
|
|
1108
|
+
super(name, code, message, status, cause);
|
|
1109
|
+
Object.setPrototypeOf(this, NotEnoughBalanceError.prototype);
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1106
1112
|
let errors = /*#__PURE__*/function (errors) {
|
|
1107
1113
|
errors["WebrpcEndpoint"] = "WebrpcEndpoint";
|
|
1108
1114
|
errors["WebrpcRequestFailed"] = "WebrpcRequestFailed";
|
|
@@ -1140,6 +1146,7 @@ let errors = /*#__PURE__*/function (errors) {
|
|
|
1140
1146
|
errors["QueryFailed"] = "QueryFailed";
|
|
1141
1147
|
errors["NotFound"] = "NotFound";
|
|
1142
1148
|
errors["InsufficientFee"] = "InsufficientFee";
|
|
1149
|
+
errors["NotEnoughBalance"] = "NotEnoughBalance";
|
|
1143
1150
|
return errors;
|
|
1144
1151
|
}({});
|
|
1145
1152
|
let WebrpcErrorCodes = /*#__PURE__*/function (WebrpcErrorCodes) {
|
|
@@ -1179,6 +1186,7 @@ let WebrpcErrorCodes = /*#__PURE__*/function (WebrpcErrorCodes) {
|
|
|
1179
1186
|
WebrpcErrorCodes[WebrpcErrorCodes["QueryFailed"] = 2003] = "QueryFailed";
|
|
1180
1187
|
WebrpcErrorCodes[WebrpcErrorCodes["NotFound"] = 3000] = "NotFound";
|
|
1181
1188
|
WebrpcErrorCodes[WebrpcErrorCodes["InsufficientFee"] = 3004] = "InsufficientFee";
|
|
1189
|
+
WebrpcErrorCodes[WebrpcErrorCodes["NotEnoughBalance"] = 3005] = "NotEnoughBalance";
|
|
1182
1190
|
return WebrpcErrorCodes;
|
|
1183
1191
|
}({});
|
|
1184
1192
|
const webrpcErrorByCode = {
|
|
@@ -1217,7 +1225,8 @@ const webrpcErrorByCode = {
|
|
|
1217
1225
|
[2002]: UnavailableError,
|
|
1218
1226
|
[2003]: QueryFailedError,
|
|
1219
1227
|
[3000]: NotFoundError,
|
|
1220
|
-
[3004]: InsufficientFeeError
|
|
1228
|
+
[3004]: InsufficientFeeError,
|
|
1229
|
+
[3005]: NotEnoughBalanceError
|
|
1221
1230
|
};
|
|
1222
1231
|
|
|
1223
1232
|
var relayer_gen = /*#__PURE__*/Object.freeze({
|
|
@@ -1270,6 +1279,7 @@ var relayer_gen = /*#__PURE__*/Object.freeze({
|
|
|
1270
1279
|
QueryFailedError: QueryFailedError,
|
|
1271
1280
|
NotFoundError: NotFoundError,
|
|
1272
1281
|
InsufficientFeeError: InsufficientFeeError,
|
|
1282
|
+
NotEnoughBalanceError: NotEnoughBalanceError,
|
|
1273
1283
|
errors: errors,
|
|
1274
1284
|
WebrpcErrorCodes: WebrpcErrorCodes,
|
|
1275
1285
|
webrpcErrorByCode: webrpcErrorByCode
|
|
@@ -283,56 +283,56 @@ function isAbstractSigner(signer) {
|
|
|
283
283
|
}
|
|
284
284
|
|
|
285
285
|
/* eslint-disable */
|
|
286
|
-
// sequence-relayer v0.4.1
|
|
286
|
+
// sequence-relayer v0.4.1 fdce30970483936652aaeabaf9339a302ac52d32
|
|
287
287
|
// --
|
|
288
288
|
// Code generated by webrpc-gen@v0.24.0 with typescript generator. DO NOT EDIT.
|
|
289
289
|
//
|
|
290
290
|
// webrpc-gen -schema=relayer.ridl -target=typescript -client -out=./clients/relayer.gen.ts
|
|
291
291
|
|
|
292
|
-
const WebrpcHeader =
|
|
293
|
-
const WebrpcHeaderValue =
|
|
292
|
+
const WebrpcHeader = "Webrpc";
|
|
293
|
+
const WebrpcHeaderValue = "webrpc@v0.24.0;gen-typescript@v0.16.3;sequence-relayer@v0.4.1";
|
|
294
294
|
|
|
295
295
|
// WebRPC description and code-gen version
|
|
296
|
-
const WebRPCVersion =
|
|
296
|
+
const WebRPCVersion = "v1";
|
|
297
297
|
|
|
298
298
|
// Schema version of your RIDL schema
|
|
299
|
-
const WebRPCSchemaVersion =
|
|
299
|
+
const WebRPCSchemaVersion = "v0.4.1";
|
|
300
300
|
|
|
301
301
|
// Schema hash generated from your RIDL schema
|
|
302
|
-
const WebRPCSchemaHash =
|
|
302
|
+
const WebRPCSchemaHash = "fdce30970483936652aaeabaf9339a302ac52d32";
|
|
303
303
|
function VersionFromHeader(headers) {
|
|
304
304
|
const headerValue = headers.get(WebrpcHeader);
|
|
305
305
|
if (!headerValue) {
|
|
306
306
|
return {
|
|
307
|
-
webrpcGenVersion:
|
|
308
|
-
codeGenName:
|
|
309
|
-
codeGenVersion:
|
|
310
|
-
schemaName:
|
|
311
|
-
schemaVersion:
|
|
307
|
+
webrpcGenVersion: "",
|
|
308
|
+
codeGenName: "",
|
|
309
|
+
codeGenVersion: "",
|
|
310
|
+
schemaName: "",
|
|
311
|
+
schemaVersion: ""
|
|
312
312
|
};
|
|
313
313
|
}
|
|
314
314
|
return parseWebrpcGenVersions(headerValue);
|
|
315
315
|
}
|
|
316
316
|
function parseWebrpcGenVersions(header) {
|
|
317
|
-
const versions = header.split(
|
|
317
|
+
const versions = header.split(";");
|
|
318
318
|
if (versions.length < 3) {
|
|
319
319
|
return {
|
|
320
|
-
webrpcGenVersion:
|
|
321
|
-
codeGenName:
|
|
322
|
-
codeGenVersion:
|
|
323
|
-
schemaName:
|
|
324
|
-
schemaVersion:
|
|
320
|
+
webrpcGenVersion: "",
|
|
321
|
+
codeGenName: "",
|
|
322
|
+
codeGenVersion: "",
|
|
323
|
+
schemaName: "",
|
|
324
|
+
schemaVersion: ""
|
|
325
325
|
};
|
|
326
326
|
}
|
|
327
|
-
const [_, webrpcGenVersion] = versions[0].split(
|
|
328
|
-
const [codeGenName, codeGenVersion] = versions[1].split(
|
|
329
|
-
const [schemaName, schemaVersion] = versions[2].split(
|
|
327
|
+
const [_, webrpcGenVersion] = versions[0].split("@");
|
|
328
|
+
const [codeGenName, codeGenVersion] = versions[1].split("@");
|
|
329
|
+
const [schemaName, schemaVersion] = versions[2].split("@");
|
|
330
330
|
return {
|
|
331
|
-
webrpcGenVersion: webrpcGenVersion != null ? webrpcGenVersion :
|
|
332
|
-
codeGenName: codeGenName != null ? codeGenName :
|
|
333
|
-
codeGenVersion: codeGenVersion != null ? codeGenVersion :
|
|
334
|
-
schemaName: schemaName != null ? schemaName :
|
|
335
|
-
schemaVersion: schemaVersion != null ? schemaVersion :
|
|
331
|
+
webrpcGenVersion: webrpcGenVersion != null ? webrpcGenVersion : "",
|
|
332
|
+
codeGenName: codeGenName != null ? codeGenName : "",
|
|
333
|
+
codeGenVersion: codeGenVersion != null ? codeGenVersion : "",
|
|
334
|
+
schemaName: schemaName != null ? schemaName : "",
|
|
335
|
+
schemaVersion: schemaVersion != null ? schemaVersion : ""
|
|
336
336
|
};
|
|
337
337
|
}
|
|
338
338
|
|
|
@@ -1099,6 +1099,12 @@ class InsufficientFeeError extends WebrpcError {
|
|
|
1099
1099
|
Object.setPrototypeOf(this, InsufficientFeeError.prototype);
|
|
1100
1100
|
}
|
|
1101
1101
|
}
|
|
1102
|
+
class NotEnoughBalanceError extends WebrpcError {
|
|
1103
|
+
constructor(name = 'NotEnoughBalance', code = 3005, message = `Not enough balance`, status = 0, cause) {
|
|
1104
|
+
super(name, code, message, status, cause);
|
|
1105
|
+
Object.setPrototypeOf(this, NotEnoughBalanceError.prototype);
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1102
1108
|
let errors = /*#__PURE__*/function (errors) {
|
|
1103
1109
|
errors["WebrpcEndpoint"] = "WebrpcEndpoint";
|
|
1104
1110
|
errors["WebrpcRequestFailed"] = "WebrpcRequestFailed";
|
|
@@ -1136,6 +1142,7 @@ let errors = /*#__PURE__*/function (errors) {
|
|
|
1136
1142
|
errors["QueryFailed"] = "QueryFailed";
|
|
1137
1143
|
errors["NotFound"] = "NotFound";
|
|
1138
1144
|
errors["InsufficientFee"] = "InsufficientFee";
|
|
1145
|
+
errors["NotEnoughBalance"] = "NotEnoughBalance";
|
|
1139
1146
|
return errors;
|
|
1140
1147
|
}({});
|
|
1141
1148
|
let WebrpcErrorCodes = /*#__PURE__*/function (WebrpcErrorCodes) {
|
|
@@ -1175,6 +1182,7 @@ let WebrpcErrorCodes = /*#__PURE__*/function (WebrpcErrorCodes) {
|
|
|
1175
1182
|
WebrpcErrorCodes[WebrpcErrorCodes["QueryFailed"] = 2003] = "QueryFailed";
|
|
1176
1183
|
WebrpcErrorCodes[WebrpcErrorCodes["NotFound"] = 3000] = "NotFound";
|
|
1177
1184
|
WebrpcErrorCodes[WebrpcErrorCodes["InsufficientFee"] = 3004] = "InsufficientFee";
|
|
1185
|
+
WebrpcErrorCodes[WebrpcErrorCodes["NotEnoughBalance"] = 3005] = "NotEnoughBalance";
|
|
1178
1186
|
return WebrpcErrorCodes;
|
|
1179
1187
|
}({});
|
|
1180
1188
|
const webrpcErrorByCode = {
|
|
@@ -1213,7 +1221,8 @@ const webrpcErrorByCode = {
|
|
|
1213
1221
|
[2002]: UnavailableError,
|
|
1214
1222
|
[2003]: QueryFailedError,
|
|
1215
1223
|
[3000]: NotFoundError,
|
|
1216
|
-
[3004]: InsufficientFeeError
|
|
1224
|
+
[3004]: InsufficientFeeError,
|
|
1225
|
+
[3005]: NotEnoughBalanceError
|
|
1217
1226
|
};
|
|
1218
1227
|
|
|
1219
1228
|
var relayer_gen = /*#__PURE__*/Object.freeze({
|
|
@@ -1266,6 +1275,7 @@ var relayer_gen = /*#__PURE__*/Object.freeze({
|
|
|
1266
1275
|
QueryFailedError: QueryFailedError,
|
|
1267
1276
|
NotFoundError: NotFoundError,
|
|
1268
1277
|
InsufficientFeeError: InsufficientFeeError,
|
|
1278
|
+
NotEnoughBalanceError: NotEnoughBalanceError,
|
|
1269
1279
|
errors: errors,
|
|
1270
1280
|
WebrpcErrorCodes: WebrpcErrorCodes,
|
|
1271
1281
|
webrpcErrorByCode: webrpcErrorByCode
|
|
@@ -2,7 +2,7 @@ export declare const WebrpcHeader = "Webrpc";
|
|
|
2
2
|
export declare const WebrpcHeaderValue = "webrpc@v0.24.0;gen-typescript@v0.16.3;sequence-relayer@v0.4.1";
|
|
3
3
|
export declare const WebRPCVersion = "v1";
|
|
4
4
|
export declare const WebRPCSchemaVersion = "v0.4.1";
|
|
5
|
-
export declare const WebRPCSchemaHash = "
|
|
5
|
+
export declare const WebRPCSchemaHash = "fdce30970483936652aaeabaf9339a302ac52d32";
|
|
6
6
|
type WebrpcGenVersions = {
|
|
7
7
|
webrpcGenVersion: string;
|
|
8
8
|
codeGenName: string;
|
|
@@ -659,6 +659,9 @@ export declare class NotFoundError extends WebrpcError {
|
|
|
659
659
|
export declare class InsufficientFeeError extends WebrpcError {
|
|
660
660
|
constructor(name?: string, code?: number, message?: string, status?: number, cause?: string);
|
|
661
661
|
}
|
|
662
|
+
export declare class NotEnoughBalanceError extends WebrpcError {
|
|
663
|
+
constructor(name?: string, code?: number, message?: string, status?: number, cause?: string);
|
|
664
|
+
}
|
|
662
665
|
export declare enum errors {
|
|
663
666
|
WebrpcEndpoint = "WebrpcEndpoint",
|
|
664
667
|
WebrpcRequestFailed = "WebrpcRequestFailed",
|
|
@@ -695,7 +698,8 @@ export declare enum errors {
|
|
|
695
698
|
Unavailable = "Unavailable",
|
|
696
699
|
QueryFailed = "QueryFailed",
|
|
697
700
|
NotFound = "NotFound",
|
|
698
|
-
InsufficientFee = "InsufficientFee"
|
|
701
|
+
InsufficientFee = "InsufficientFee",
|
|
702
|
+
NotEnoughBalance = "NotEnoughBalance"
|
|
699
703
|
}
|
|
700
704
|
export declare enum WebrpcErrorCodes {
|
|
701
705
|
WebrpcEndpoint = 0,
|
|
@@ -733,7 +737,8 @@ export declare enum WebrpcErrorCodes {
|
|
|
733
737
|
Unavailable = 2002,
|
|
734
738
|
QueryFailed = 2003,
|
|
735
739
|
NotFound = 3000,
|
|
736
|
-
InsufficientFee = 3004
|
|
740
|
+
InsufficientFee = 3004,
|
|
741
|
+
NotEnoughBalance = 3005
|
|
737
742
|
}
|
|
738
743
|
export declare const webrpcErrorByCode: {
|
|
739
744
|
[code: number]: any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xsequence/relayer",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.11",
|
|
4
4
|
"description": "relayer sub-package for Sequence",
|
|
5
5
|
"repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/relayer",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -12,15 +12,15 @@
|
|
|
12
12
|
"ethers": ">=6"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@0xsequence/abi": "2.3.
|
|
16
|
-
"@0xsequence/core": "2.3.
|
|
17
|
-
"@0xsequence/utils": "2.3.
|
|
15
|
+
"@0xsequence/abi": "2.3.11",
|
|
16
|
+
"@0xsequence/core": "2.3.11",
|
|
17
|
+
"@0xsequence/utils": "2.3.11"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@0xsequence/wallet-contracts": "^3.0.1",
|
|
21
21
|
"ethers": "6.13.4",
|
|
22
|
-
"@0xsequence/signhub": "2.3.
|
|
23
|
-
"@0xsequence/tests": "2.3.
|
|
22
|
+
"@0xsequence/signhub": "2.3.11",
|
|
23
|
+
"@0xsequence/tests": "2.3.11"
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
26
|
"src",
|