@appliedblockchain/silentdatarollup-hardhat-plugin-fireblocks 1.0.7 → 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 +6 -6
- package/dist/index.js +2 -5
- package/dist/index.mjs +2 -5
- package/package.json +11 -11
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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Silent Data
|
|
1
|
+
# Silent Data Providers - Hardhat Plugin Fireblocks Package
|
|
2
2
|
|
|
3
3
|
## Table of Contents
|
|
4
4
|
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
|
|
15
15
|
## Introduction
|
|
16
16
|
|
|
17
|
-
Custom providers for integrating Silent Data
|
|
17
|
+
Custom providers for integrating Silent Data with Hardhat and Fireblocks.
|
|
18
18
|
|
|
19
19
|
## Prerequisites
|
|
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,12 +30,12 @@ Custom providers for integrating Silent Data [Rollup] with Hardhat and Fireblock
|
|
|
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
|
|
37
37
|
|
|
38
|
-
To integrate the Silent Data
|
|
38
|
+
To integrate the Silent Data Provider with Hardhat, you need to configure your Silent Data network in the `hardhat.config.ts` file. Below is an example of how to set it up, and note that a `silentdata` property is needed on the network config to enable it. This property can be an empty object to apply defaults, or you can specify the configurations.
|
|
39
39
|
|
|
40
40
|
```typescript
|
|
41
41
|
import {
|
|
@@ -99,7 +99,7 @@ This project is licensed under the [MIT License](LICENSE).
|
|
|
99
99
|
|
|
100
100
|
## Additional Resources
|
|
101
101
|
|
|
102
|
-
- [Silent Data
|
|
102
|
+
- [Silent Data Documentation](https://docs.silentdata.com)
|
|
103
103
|
- [Fireblocks Hardhat Plugin](https://developers.fireblocks.com/reference/hardhat-plugin)
|
|
104
104
|
- [Fireblocks Developer Documentation](https://developers.fireblocks.com/api)
|
|
105
105
|
- [Fireblocks Web3 Provider](https://developers.fireblocks.com/reference/evm-web3-provider)
|
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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appliedblockchain/silentdatarollup-hardhat-plugin-fireblocks",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Hardhat plugin for Silent Data
|
|
3
|
+
"version": "1.0.9",
|
|
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",
|
|
7
7
|
"keywords": [
|
|
@@ -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
|
+
}
|