@0xsequence/relayer 1.0.4 → 1.1.0
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.
- package/dist/0xsequence-relayer.cjs.d.ts +1 -0
- package/dist/0xsequence-relayer.cjs.d.ts.map +1 -0
- package/dist/declarations/src/index.d.ts +5 -5
- package/dist/declarations/src/local-relayer.d.ts +2 -2
- package/dist/declarations/src/provider-relayer.d.ts +1 -1
- package/dist/declarations/src/rpc-relayer/index.d.ts +2 -2
- package/package.json +6 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"0xsequence-relayer.cjs.d.ts","sourceRoot":"","sources":["./declarations/src/index.d.ts"],"names":[],"mappings":"AAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ethers, providers } from 'ethers';
|
|
2
|
-
import { proto } from
|
|
2
|
+
import { proto } from "./rpc-relayer/index.js";
|
|
3
3
|
import { commons } from '@0xsequence/core';
|
|
4
4
|
export interface Relayer {
|
|
5
5
|
simulate(wallet: string, ...transactions: commons.transaction.Transaction[]): Promise<SimulateResult[]>;
|
|
@@ -16,10 +16,10 @@ export interface Relayer {
|
|
|
16
16
|
relay(signedTxs: commons.transaction.IntendedTransactionBundle, quote?: FeeQuote, waitForReceipt?: boolean): Promise<commons.transaction.TransactionResponse>;
|
|
17
17
|
wait(metaTxnId: string | commons.transaction.SignedTransactionBundle, timeout?: number, delay?: number, maxFails?: number): Promise<commons.transaction.TransactionResponse>;
|
|
18
18
|
}
|
|
19
|
-
export * from
|
|
20
|
-
export * from
|
|
21
|
-
export * from
|
|
22
|
-
export { proto as RpcRelayerProto } from
|
|
19
|
+
export * from "./local-relayer.js";
|
|
20
|
+
export * from "./provider-relayer.js";
|
|
21
|
+
export * from "./rpc-relayer/index.js";
|
|
22
|
+
export { proto as RpcRelayerProto } from "./rpc-relayer/index.js";
|
|
23
23
|
export type SimulateResult = proto.SimulateResult;
|
|
24
24
|
export type FeeOption = proto.FeeOption;
|
|
25
25
|
export interface FeeQuote {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Signer as AbstractSigner, providers, BytesLike } from 'ethers';
|
|
2
|
-
import { FeeOption, FeeQuote, Relayer } from
|
|
3
|
-
import { ProviderRelayer, ProviderRelayerOptions } from
|
|
2
|
+
import { FeeOption, FeeQuote, Relayer } from "./index.js";
|
|
3
|
+
import { ProviderRelayer, ProviderRelayerOptions } from "./provider-relayer.js";
|
|
4
4
|
import { commons } from '@0xsequence/core';
|
|
5
5
|
export type LocalRelayerOptions = Omit<ProviderRelayerOptions, "provider"> & {
|
|
6
6
|
signer: AbstractSigner;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ethers, providers } from 'ethers';
|
|
2
|
-
import { FeeOption, FeeQuote, Relayer, SimulateResult } from
|
|
2
|
+
import { FeeOption, FeeQuote, Relayer, SimulateResult } from "./index.js";
|
|
3
3
|
import { Optionals } from '@0xsequence/utils';
|
|
4
4
|
import { commons } from '@0xsequence/core';
|
|
5
5
|
export interface ProviderRelayerOptions {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ethers } from 'ethers';
|
|
2
|
-
import { FeeOption, FeeQuote, Relayer, SimulateResult } from
|
|
3
|
-
import * as proto from
|
|
2
|
+
import { FeeOption, FeeQuote, Relayer, SimulateResult } from "../index.js";
|
|
3
|
+
import * as proto from "./relayer.gen.js";
|
|
4
4
|
import { commons } from '@0xsequence/core';
|
|
5
5
|
export { proto };
|
|
6
6
|
export interface RpcRelayerOptions {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xsequence/relayer",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
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/
|
|
13
|
-
"@0xsequence/
|
|
14
|
-
"@0xsequence/
|
|
12
|
+
"@0xsequence/abi": "1.1.0",
|
|
13
|
+
"@0xsequence/utils": "1.1.0",
|
|
14
|
+
"@0xsequence/core": "1.1.0"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"ethers": ">=5.5 < 6"
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@0xsequence/wallet-contracts": "^1.10.0",
|
|
21
21
|
"ethers": "^5.7.2",
|
|
22
|
-
"@0xsequence/
|
|
23
|
-
"@0xsequence/
|
|
22
|
+
"@0xsequence/tests": "1.1.0",
|
|
23
|
+
"@0xsequence/signhub": "1.1.0"
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
26
|
"src",
|