@0xsequence/relayer 2.0.0 → 2.0.1
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.
|
@@ -1080,7 +1080,7 @@ class RpcRelayer {
|
|
|
1080
1080
|
nonce
|
|
1081
1081
|
})
|
|
1082
1082
|
});
|
|
1083
|
-
utils.logger.info(`[rpc-relayer/getFeeOptions] got refund options ${JSON.stringify(options)}`);
|
|
1083
|
+
utils.logger.info(`[rpc-relayer/getFeeOptions] got refund options ${JSON.stringify(options, utils.bigintReplacer)}`);
|
|
1084
1084
|
return {
|
|
1085
1085
|
options,
|
|
1086
1086
|
quote: {
|
|
@@ -1133,7 +1133,7 @@ class RpcRelayer {
|
|
|
1133
1133
|
}
|
|
1134
1134
|
async relay(signedTxs, quote, waitForReceipt = true) {
|
|
1135
1135
|
var _this = this;
|
|
1136
|
-
utils.logger.info(`[rpc-relayer/relay] relaying signed meta-transactions ${JSON.stringify(signedTxs)} with quote ${JSON.stringify(quote)}`);
|
|
1136
|
+
utils.logger.info(`[rpc-relayer/relay] relaying signed meta-transactions ${JSON.stringify(signedTxs, utils.bigintReplacer)} with quote ${JSON.stringify(quote, utils.bigintReplacer)}`);
|
|
1137
1137
|
let typecheckedQuote;
|
|
1138
1138
|
if (quote !== undefined) {
|
|
1139
1139
|
if (typeof quote._quote === 'string') {
|
|
@@ -1155,7 +1155,7 @@ class RpcRelayer {
|
|
|
1155
1155
|
},
|
|
1156
1156
|
quote: typecheckedQuote
|
|
1157
1157
|
});
|
|
1158
|
-
utils.logger.info(`[rpc-relayer/relay] got relay result ${JSON.stringify(metaTxn)}`);
|
|
1158
|
+
utils.logger.info(`[rpc-relayer/relay] got relay result ${JSON.stringify(metaTxn, utils.bigintReplacer)}`);
|
|
1159
1159
|
if (waitForReceipt) {
|
|
1160
1160
|
return this.wait(signedTxs.intent.id);
|
|
1161
1161
|
} else {
|
|
@@ -1080,7 +1080,7 @@ class RpcRelayer {
|
|
|
1080
1080
|
nonce
|
|
1081
1081
|
})
|
|
1082
1082
|
});
|
|
1083
|
-
utils.logger.info(`[rpc-relayer/getFeeOptions] got refund options ${JSON.stringify(options)}`);
|
|
1083
|
+
utils.logger.info(`[rpc-relayer/getFeeOptions] got refund options ${JSON.stringify(options, utils.bigintReplacer)}`);
|
|
1084
1084
|
return {
|
|
1085
1085
|
options,
|
|
1086
1086
|
quote: {
|
|
@@ -1133,7 +1133,7 @@ class RpcRelayer {
|
|
|
1133
1133
|
}
|
|
1134
1134
|
async relay(signedTxs, quote, waitForReceipt = true) {
|
|
1135
1135
|
var _this = this;
|
|
1136
|
-
utils.logger.info(`[rpc-relayer/relay] relaying signed meta-transactions ${JSON.stringify(signedTxs)} with quote ${JSON.stringify(quote)}`);
|
|
1136
|
+
utils.logger.info(`[rpc-relayer/relay] relaying signed meta-transactions ${JSON.stringify(signedTxs, utils.bigintReplacer)} with quote ${JSON.stringify(quote, utils.bigintReplacer)}`);
|
|
1137
1137
|
let typecheckedQuote;
|
|
1138
1138
|
if (quote !== undefined) {
|
|
1139
1139
|
if (typeof quote._quote === 'string') {
|
|
@@ -1155,7 +1155,7 @@ class RpcRelayer {
|
|
|
1155
1155
|
},
|
|
1156
1156
|
quote: typecheckedQuote
|
|
1157
1157
|
});
|
|
1158
|
-
utils.logger.info(`[rpc-relayer/relay] got relay result ${JSON.stringify(metaTxn)}`);
|
|
1158
|
+
utils.logger.info(`[rpc-relayer/relay] got relay result ${JSON.stringify(metaTxn, utils.bigintReplacer)}`);
|
|
1159
1159
|
if (waitForReceipt) {
|
|
1160
1160
|
return this.wait(signedTxs.intent.id);
|
|
1161
1161
|
} else {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ethers } from 'ethers';
|
|
2
|
-
import { logger, getFetchRequest, toHexString } from '@0xsequence/utils';
|
|
2
|
+
import { logger, getFetchRequest, bigintReplacer, toHexString } from '@0xsequence/utils';
|
|
3
3
|
import { walletContracts } from '@0xsequence/abi';
|
|
4
4
|
import { commons } from '@0xsequence/core';
|
|
5
5
|
|
|
@@ -1076,7 +1076,7 @@ class RpcRelayer {
|
|
|
1076
1076
|
nonce
|
|
1077
1077
|
})
|
|
1078
1078
|
});
|
|
1079
|
-
logger.info(`[rpc-relayer/getFeeOptions] got refund options ${JSON.stringify(options)}`);
|
|
1079
|
+
logger.info(`[rpc-relayer/getFeeOptions] got refund options ${JSON.stringify(options, bigintReplacer)}`);
|
|
1080
1080
|
return {
|
|
1081
1081
|
options,
|
|
1082
1082
|
quote: {
|
|
@@ -1129,7 +1129,7 @@ class RpcRelayer {
|
|
|
1129
1129
|
}
|
|
1130
1130
|
async relay(signedTxs, quote, waitForReceipt = true) {
|
|
1131
1131
|
var _this = this;
|
|
1132
|
-
logger.info(`[rpc-relayer/relay] relaying signed meta-transactions ${JSON.stringify(signedTxs)} with quote ${JSON.stringify(quote)}`);
|
|
1132
|
+
logger.info(`[rpc-relayer/relay] relaying signed meta-transactions ${JSON.stringify(signedTxs, bigintReplacer)} with quote ${JSON.stringify(quote, bigintReplacer)}`);
|
|
1133
1133
|
let typecheckedQuote;
|
|
1134
1134
|
if (quote !== undefined) {
|
|
1135
1135
|
if (typeof quote._quote === 'string') {
|
|
@@ -1151,7 +1151,7 @@ class RpcRelayer {
|
|
|
1151
1151
|
},
|
|
1152
1152
|
quote: typecheckedQuote
|
|
1153
1153
|
});
|
|
1154
|
-
logger.info(`[rpc-relayer/relay] got relay result ${JSON.stringify(metaTxn)}`);
|
|
1154
|
+
logger.info(`[rpc-relayer/relay] got relay result ${JSON.stringify(metaTxn, bigintReplacer)}`);
|
|
1155
1155
|
if (waitForReceipt) {
|
|
1156
1156
|
return this.wait(signedTxs.intent.id);
|
|
1157
1157
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xsequence/relayer",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
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",
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
"author": "Horizon Blockchain Games",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@0xsequence/abi": "2.0.
|
|
13
|
-
"@0xsequence/core": "2.0.
|
|
14
|
-
"@0xsequence/utils": "2.0.
|
|
12
|
+
"@0xsequence/abi": "2.0.1",
|
|
13
|
+
"@0xsequence/core": "2.0.1",
|
|
14
|
+
"@0xsequence/utils": "2.0.1"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"ethers": ">=6"
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@0xsequence/wallet-contracts": "^3.0.1",
|
|
21
21
|
"ethers": "^6.13.0",
|
|
22
|
-
"@0xsequence/signhub": "2.0.
|
|
23
|
-
"@0xsequence/tests": "2.0.
|
|
22
|
+
"@0xsequence/signhub": "2.0.1",
|
|
23
|
+
"@0xsequence/tests": "2.0.1"
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
26
|
"src",
|
package/src/rpc-relayer/index.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ethers } from 'ethers'
|
|
|
2
2
|
import { FeeOption, FeeQuote, Relayer, SimulateResult } from '..'
|
|
3
3
|
import * as proto from './relayer.gen'
|
|
4
4
|
import { commons } from '@0xsequence/core'
|
|
5
|
-
import { getFetchRequest, logger, toHexString } from '@0xsequence/utils'
|
|
5
|
+
import { bigintReplacer, getFetchRequest, logger, toHexString } from '@0xsequence/utils'
|
|
6
6
|
|
|
7
7
|
export { proto }
|
|
8
8
|
|
|
@@ -152,7 +152,7 @@ export class RpcRelayer implements Relayer {
|
|
|
152
152
|
})
|
|
153
153
|
})
|
|
154
154
|
|
|
155
|
-
logger.info(`[rpc-relayer/getFeeOptions] got refund options ${JSON.stringify(options)}`)
|
|
155
|
+
logger.info(`[rpc-relayer/getFeeOptions] got refund options ${JSON.stringify(options, bigintReplacer)}`)
|
|
156
156
|
return { options, quote: { _tag: 'FeeQuote', _quote: quote } }
|
|
157
157
|
} else {
|
|
158
158
|
logger.info(`[rpc-relayer/getFeeOptions] relayer fees are not required`)
|
|
@@ -198,7 +198,7 @@ export class RpcRelayer implements Relayer {
|
|
|
198
198
|
waitForReceipt: boolean = true
|
|
199
199
|
): Promise<commons.transaction.TransactionResponse<RelayerTxReceipt>> {
|
|
200
200
|
logger.info(
|
|
201
|
-
`[rpc-relayer/relay] relaying signed meta-transactions ${JSON.stringify(signedTxs)} with quote ${JSON.stringify(quote)}`
|
|
201
|
+
`[rpc-relayer/relay] relaying signed meta-transactions ${JSON.stringify(signedTxs, bigintReplacer)} with quote ${JSON.stringify(quote, bigintReplacer)}`
|
|
202
202
|
)
|
|
203
203
|
|
|
204
204
|
let typecheckedQuote: string | undefined
|
|
@@ -225,7 +225,7 @@ export class RpcRelayer implements Relayer {
|
|
|
225
225
|
quote: typecheckedQuote
|
|
226
226
|
})
|
|
227
227
|
|
|
228
|
-
logger.info(`[rpc-relayer/relay] got relay result ${JSON.stringify(metaTxn)}`)
|
|
228
|
+
logger.info(`[rpc-relayer/relay] got relay result ${JSON.stringify(metaTxn, bigintReplacer)}`)
|
|
229
229
|
|
|
230
230
|
if (waitForReceipt) {
|
|
231
231
|
return this.wait(signedTxs.intent.id)
|