@appliedblockchain/silentdatarollup-hardhat-plugin-fireblocks 1.0.8 → 1.0.9
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/LICENSE +21 -0
- package/README.md +2 -2
- package/dist/index.js +2 -5
- package/dist/index.mjs +2 -5
- package/package.json +10 -10
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Applied Blockchain Ltd.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ Custom providers for integrating Silent Data with Hardhat and Fireblocks.
|
|
|
20
20
|
|
|
21
21
|
- Node.js (version 18 or higher)
|
|
22
22
|
- Hardhat v2
|
|
23
|
-
-
|
|
23
|
+
- pnpm
|
|
24
24
|
- Basic knowledge of Ethereum and smart contracts
|
|
25
25
|
|
|
26
26
|
## Integration
|
|
@@ -30,7 +30,7 @@ Custom providers for integrating Silent Data with Hardhat and Fireblocks.
|
|
|
30
30
|
#### Installing Hardhat Integration Dependencies
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
|
-
|
|
33
|
+
pnpm add @appliedblockchain/silentdatarollup-core @appliedblockchain/silentdatarollup-hardhat-plugin-fireblocks @nomicfoundation/hardhat-ignition-ethers@0.15.9
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
#### Hardhat Integration Example
|
package/dist/index.js
CHANGED
|
@@ -174,7 +174,7 @@ var SilentDataFireblocksSigner = class extends import_plugins.ProviderWrapper {
|
|
|
174
174
|
let content;
|
|
175
175
|
switch (signatureType) {
|
|
176
176
|
case import_silentdatarollup_core2.SignatureType.Raw:
|
|
177
|
-
const preparedMessage = this.baseProvider.
|
|
177
|
+
const preparedMessage = this.baseProvider.prepareMessage(
|
|
178
178
|
chainId.toString(),
|
|
179
179
|
rpcRequest,
|
|
180
180
|
xTimestamp
|
|
@@ -183,10 +183,7 @@ var SilentDataFireblocksSigner = class extends import_plugins.ProviderWrapper {
|
|
|
183
183
|
break;
|
|
184
184
|
case import_silentdatarollup_core2.SignatureType.EIP712:
|
|
185
185
|
const types = (0, import_silentdatarollup_core2.getAuthEIP721Types)(payload);
|
|
186
|
-
const message = this.baseProvider.
|
|
187
|
-
payload,
|
|
188
|
-
xTimestamp
|
|
189
|
-
);
|
|
186
|
+
const message = this.baseProvider.prepareTypedData(payload, xTimestamp);
|
|
190
187
|
content = {
|
|
191
188
|
types: {
|
|
192
189
|
EIP712Domain: [
|
package/dist/index.mjs
CHANGED
|
@@ -161,7 +161,7 @@ var SilentDataFireblocksSigner = class extends ProviderWrapper {
|
|
|
161
161
|
let content;
|
|
162
162
|
switch (signatureType) {
|
|
163
163
|
case SignatureType.Raw:
|
|
164
|
-
const preparedMessage = this.baseProvider.
|
|
164
|
+
const preparedMessage = this.baseProvider.prepareMessage(
|
|
165
165
|
chainId.toString(),
|
|
166
166
|
rpcRequest,
|
|
167
167
|
xTimestamp
|
|
@@ -170,10 +170,7 @@ var SilentDataFireblocksSigner = class extends ProviderWrapper {
|
|
|
170
170
|
break;
|
|
171
171
|
case SignatureType.EIP712:
|
|
172
172
|
const types = getAuthEIP721Types(payload);
|
|
173
|
-
const message = this.baseProvider.
|
|
174
|
-
payload,
|
|
175
|
-
xTimestamp
|
|
176
|
-
);
|
|
173
|
+
const message = this.baseProvider.prepareTypedData(payload, xTimestamp);
|
|
177
174
|
content = {
|
|
178
175
|
types: {
|
|
179
176
|
EIP712Domain: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appliedblockchain/silentdatarollup-hardhat-plugin-fireblocks",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "Hardhat plugin for Silent Data with Fireblocks integration",
|
|
5
5
|
"author": "Applied Blockchain",
|
|
6
6
|
"homepage": "https://github.com/appliedblockchain/silent-data-rollup-providers#readme",
|
|
@@ -26,22 +26,18 @@
|
|
|
26
26
|
"files": [
|
|
27
27
|
"dist"
|
|
28
28
|
],
|
|
29
|
-
"scripts": {
|
|
30
|
-
"build": "tsc --noEmit && tsup src/index.ts --format cjs,esm --dts --clean",
|
|
31
|
-
"check-exports": "attw --pack . --profile node16",
|
|
32
|
-
"prepack": "npm run build"
|
|
33
|
-
},
|
|
34
29
|
"dependencies": {
|
|
35
|
-
"@
|
|
30
|
+
"@ethersproject/abstract-provider": "5.8.0",
|
|
36
31
|
"@fireblocks/fireblocks-web3-provider": "1.3.8",
|
|
37
32
|
"@fireblocks/hardhat-fireblocks": "1.3.5",
|
|
38
33
|
"debug": "4.3.7",
|
|
39
34
|
"ethers": "6.13.2",
|
|
40
|
-
"fireblocks-sdk": "5.31.2"
|
|
35
|
+
"fireblocks-sdk": "5.31.2",
|
|
36
|
+
"@appliedblockchain/silentdatarollup-core": "1.0.9"
|
|
41
37
|
},
|
|
42
38
|
"devDependencies": {
|
|
43
39
|
"@types/debug": "4.1.12",
|
|
44
|
-
"@types/node": "
|
|
40
|
+
"@types/node": "24.10.1",
|
|
45
41
|
"hardhat": "2.22.10",
|
|
46
42
|
"ts-node": "10.9.2",
|
|
47
43
|
"typescript": "5.6.2"
|
|
@@ -52,5 +48,9 @@
|
|
|
52
48
|
},
|
|
53
49
|
"engines": {
|
|
54
50
|
"node": ">=18.0.0"
|
|
51
|
+
},
|
|
52
|
+
"scripts": {
|
|
53
|
+
"build": "tsc --noEmit && tsup src/index.ts --format cjs,esm --dts --clean",
|
|
54
|
+
"check-exports": "attw --pack . --profile node16"
|
|
55
55
|
}
|
|
56
|
-
}
|
|
56
|
+
}
|