@0xsequence/provider 0.39.1 → 0.39.4
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.
|
@@ -1312,6 +1312,10 @@ class Web3Provider extends providers.Web3Provider {
|
|
|
1312
1312
|
return this._sender.send(method, params, chainId);
|
|
1313
1313
|
}
|
|
1314
1314
|
|
|
1315
|
+
request(request) {
|
|
1316
|
+
return this.send(request.method, request.params || [], request.chainId);
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1315
1319
|
getSigner() {
|
|
1316
1320
|
return new Web3Signer(this, this._defaultChainId);
|
|
1317
1321
|
}
|
|
@@ -1312,6 +1312,10 @@ class Web3Provider extends providers.Web3Provider {
|
|
|
1312
1312
|
return this._sender.send(method, params, chainId);
|
|
1313
1313
|
}
|
|
1314
1314
|
|
|
1315
|
+
request(request) {
|
|
1316
|
+
return this.send(request.method, request.params || [], request.chainId);
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1315
1319
|
getSigner() {
|
|
1316
1320
|
return new Web3Signer(this, this._defaultChainId);
|
|
1317
1321
|
}
|
|
@@ -1308,6 +1308,10 @@ class Web3Provider extends Web3Provider$1 {
|
|
|
1308
1308
|
return this._sender.send(method, params, chainId);
|
|
1309
1309
|
}
|
|
1310
1310
|
|
|
1311
|
+
request(request) {
|
|
1312
|
+
return this.send(request.method, request.params || [], request.chainId);
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1311
1315
|
getSigner() {
|
|
1312
1316
|
return new Web3Signer(this, this._defaultChainId);
|
|
1313
1317
|
}
|
|
@@ -16,6 +16,11 @@ export declare class Web3Provider extends EthersWeb3Provider implements JsonRpcH
|
|
|
16
16
|
constructor(provider: JsonRpcProvider | JsonRpcHandler | JsonRpcFetchFunc, defaultChainId?: ChainIdLike);
|
|
17
17
|
sendAsync(request: JsonRpcRequest, callback: JsonRpcResponseCallback | ((error: any, response: any) => void), chainId?: number): void;
|
|
18
18
|
send(method: string, params: Array<any>, chainId?: number): Promise<any>;
|
|
19
|
+
request(request: {
|
|
20
|
+
method: string;
|
|
21
|
+
params?: Array<any>;
|
|
22
|
+
chainId?: number;
|
|
23
|
+
}): Promise<any>;
|
|
19
24
|
getSigner(): Web3Signer;
|
|
20
25
|
getChainId(): Promise<number>;
|
|
21
26
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xsequence/provider",
|
|
3
|
-
"version": "0.39.
|
|
3
|
+
"version": "0.39.4",
|
|
4
4
|
"description": "provider sub-package for Sequence",
|
|
5
5
|
"repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/provider",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
"typecheck": "tsc --noEmit"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@0xsequence/abi": "^0.39.
|
|
17
|
-
"@0xsequence/auth": "^0.39.
|
|
18
|
-
"@0xsequence/config": "^0.39.
|
|
19
|
-
"@0xsequence/network": "^0.39.
|
|
20
|
-
"@0xsequence/transactions": "^0.39.
|
|
21
|
-
"@0xsequence/utils": "^0.39.
|
|
22
|
-
"@0xsequence/wallet": "^0.39.
|
|
16
|
+
"@0xsequence/abi": "^0.39.4",
|
|
17
|
+
"@0xsequence/auth": "^0.39.4",
|
|
18
|
+
"@0xsequence/config": "^0.39.4",
|
|
19
|
+
"@0xsequence/network": "^0.39.4",
|
|
20
|
+
"@0xsequence/transactions": "^0.39.4",
|
|
21
|
+
"@0xsequence/utils": "^0.39.4",
|
|
22
|
+
"@0xsequence/wallet": "^0.39.4",
|
|
23
23
|
"@ethersproject/abstract-signer": "^5.5.0",
|
|
24
24
|
"@ethersproject/hash": "^5.5.0",
|
|
25
25
|
"@ethersproject/providers": "^5.5.1",
|
package/src/provider.ts
CHANGED
|
@@ -66,6 +66,10 @@ export class Web3Provider extends EthersWeb3Provider implements JsonRpcHandler {
|
|
|
66
66
|
return this._sender.send(method, params, chainId)
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
+
request(request: { method: string; params?: Array<any>, chainId?: number }): Promise<any> {
|
|
70
|
+
return this.send(request.method, request.params || [], request.chainId)
|
|
71
|
+
}
|
|
72
|
+
|
|
69
73
|
getSigner(): Web3Signer {
|
|
70
74
|
return new Web3Signer(this, this._defaultChainId)
|
|
71
75
|
}
|