@appliedblockchain/silentdatarollup-ethers-provider 1.0.4 → 1.0.6
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/index.js +3 -7
- package/dist/index.mjs +3 -7
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -108,19 +108,15 @@ var SilentDataRollupProvider = class _SilentDataRollupProvider extends import_et
|
|
|
108
108
|
if (filter && typeof filter === "object" && "_isPrivateEvent" in filter) {
|
|
109
109
|
isPrivateLogsRequest = !!filter._isPrivateEvent;
|
|
110
110
|
if (isPrivateLogsRequest) {
|
|
111
|
-
|
|
112
|
-
payload.params[0] =
|
|
111
|
+
const { _isPrivateEvent, ...filterWithoutPrivateEvent } = filter;
|
|
112
|
+
payload.params[0] = filterWithoutPrivateEvent;
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
const request = this._getConnection();
|
|
117
117
|
request.body = JSON.stringify(payload);
|
|
118
118
|
request.setHeader("content-type", "application/json");
|
|
119
|
-
const requiresAuthHeaders = isPrivateLogsRequest || import_silentdatarollup_core.SIGN_RPC_METHODS.includes(payload.method) || (0, import_silentdatarollup_core.isSignableContractCall)(
|
|
120
|
-
payload,
|
|
121
|
-
this.baseProvider.contractMethodsToSign,
|
|
122
|
-
this.baseProvider.contract
|
|
123
|
-
);
|
|
119
|
+
const requiresAuthHeaders = isPrivateLogsRequest || import_silentdatarollup_core.SIGN_RPC_METHODS.includes(payload.method) || (0, import_silentdatarollup_core.isSignableContractCall)(payload, this.baseProvider.contracts);
|
|
124
120
|
if (requiresAuthHeaders) {
|
|
125
121
|
if (this.config.delegate) {
|
|
126
122
|
const {
|
package/dist/index.mjs
CHANGED
|
@@ -92,19 +92,15 @@ var SilentDataRollupProvider = class _SilentDataRollupProvider extends JsonRpcPr
|
|
|
92
92
|
if (filter && typeof filter === "object" && "_isPrivateEvent" in filter) {
|
|
93
93
|
isPrivateLogsRequest = !!filter._isPrivateEvent;
|
|
94
94
|
if (isPrivateLogsRequest) {
|
|
95
|
-
|
|
96
|
-
payload.params[0] =
|
|
95
|
+
const { _isPrivateEvent, ...filterWithoutPrivateEvent } = filter;
|
|
96
|
+
payload.params[0] = filterWithoutPrivateEvent;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
const request = this._getConnection();
|
|
101
101
|
request.body = JSON.stringify(payload);
|
|
102
102
|
request.setHeader("content-type", "application/json");
|
|
103
|
-
const requiresAuthHeaders = isPrivateLogsRequest || SIGN_RPC_METHODS.includes(payload.method) || isSignableContractCall(
|
|
104
|
-
payload,
|
|
105
|
-
this.baseProvider.contractMethodsToSign,
|
|
106
|
-
this.baseProvider.contract
|
|
107
|
-
);
|
|
103
|
+
const requiresAuthHeaders = isPrivateLogsRequest || SIGN_RPC_METHODS.includes(payload.method) || isSignableContractCall(payload, this.baseProvider.contracts);
|
|
108
104
|
if (requiresAuthHeaders) {
|
|
109
105
|
if (this.config.delegate) {
|
|
110
106
|
const {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appliedblockchain/silentdatarollup-ethers-provider",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Ethers.js provider for Silent Data [Rollup]",
|
|
5
5
|
"author": "Applied Blockchain",
|
|
6
6
|
"homepage": "https://github.com/appliedblockchain/silent-data-rollup-providers#readme",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"test": "jest"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@appliedblockchain/silentdatarollup-core": "1.0.
|
|
35
|
+
"@appliedblockchain/silentdatarollup-core": "1.0.6",
|
|
36
36
|
"debug": "4.3.7",
|
|
37
37
|
"ethers": "6.13.2"
|
|
38
38
|
},
|