@appliedblockchain/silentdatarollup-ethers-provider-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.d.mts +11 -3
- package/dist/index.d.ts +11 -3
- package/dist/index.js +33 -45015
- package/dist/index.mjs +24 -45037
- 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
|
@@ -19,7 +19,7 @@ Custom providers for Silent Data, compatible with ethers.js for Fireblocks integ
|
|
|
19
19
|
## Prerequisites
|
|
20
20
|
|
|
21
21
|
- Node.js (version 18 or higher)
|
|
22
|
-
-
|
|
22
|
+
- pnpm
|
|
23
23
|
- Basic knowledge of Ethereum and smart contracts
|
|
24
24
|
- Ethers.js v6
|
|
25
25
|
|
|
@@ -30,7 +30,7 @@ Custom providers for Silent Data, compatible with ethers.js for Fireblocks integ
|
|
|
30
30
|
#### Installing Fireblocks Integration Dependencies
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
|
-
|
|
33
|
+
pnpm add @appliedblockchain/silentdatarollup-core @appliedblockchain/silentdatarollup-ethers-provider-fireblocks ethers@6 @fireblocks/fireblocks-web3-provider
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
#### Fireblocks Integration Example
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseConfig } from '@appliedblockchain/silentdatarollup-core';
|
|
2
1
|
import { BrowserProvider, Eip1193Provider, Networkish, BrowserProviderOptions } from 'ethers';
|
|
2
|
+
import { BaseConfig } from '@appliedblockchain/silentdatarollup-core';
|
|
3
3
|
|
|
4
4
|
declare const DEBUG_NAMESPACE_SILENTDATA_INTERCEPTOR = "fireblocks-web3-provider:silentdata-interceptor";
|
|
5
5
|
declare const EIP712Domain: {
|
|
@@ -7,6 +7,14 @@ declare const EIP712Domain: {
|
|
|
7
7
|
type: string;
|
|
8
8
|
}[];
|
|
9
9
|
|
|
10
|
+
interface FireblocksProviderConfig extends BaseConfig {
|
|
11
|
+
/**
|
|
12
|
+
* When set to true, eth_call requests will be signed
|
|
13
|
+
* with authentication headers, regardless of whether they match signable contracts
|
|
14
|
+
*/
|
|
15
|
+
alwaysSignEthCalls?: boolean;
|
|
16
|
+
}
|
|
17
|
+
|
|
10
18
|
declare class SilentDataRollupFireblocksProvider extends BrowserProvider {
|
|
11
19
|
private lastNonce;
|
|
12
20
|
private ethereum;
|
|
@@ -18,7 +26,7 @@ declare class SilentDataRollupFireblocksProvider extends BrowserProvider {
|
|
|
18
26
|
ethereum: Eip1193Provider;
|
|
19
27
|
network?: Networkish;
|
|
20
28
|
options?: BrowserProviderOptions;
|
|
21
|
-
config?:
|
|
29
|
+
config?: FireblocksProviderConfig;
|
|
22
30
|
});
|
|
23
31
|
/**
|
|
24
32
|
* Manages and returns the next available nonce for a given address.
|
|
@@ -66,4 +74,4 @@ declare class SilentDataRollupFireblocksProvider extends BrowserProvider {
|
|
|
66
74
|
clone(): SilentDataRollupFireblocksProvider;
|
|
67
75
|
}
|
|
68
76
|
|
|
69
|
-
export { DEBUG_NAMESPACE_SILENTDATA_INTERCEPTOR, EIP712Domain, SilentDataRollupFireblocksProvider };
|
|
77
|
+
export { DEBUG_NAMESPACE_SILENTDATA_INTERCEPTOR, EIP712Domain, type FireblocksProviderConfig, SilentDataRollupFireblocksProvider };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseConfig } from '@appliedblockchain/silentdatarollup-core';
|
|
2
1
|
import { BrowserProvider, Eip1193Provider, Networkish, BrowserProviderOptions } from 'ethers';
|
|
2
|
+
import { BaseConfig } from '@appliedblockchain/silentdatarollup-core';
|
|
3
3
|
|
|
4
4
|
declare const DEBUG_NAMESPACE_SILENTDATA_INTERCEPTOR = "fireblocks-web3-provider:silentdata-interceptor";
|
|
5
5
|
declare const EIP712Domain: {
|
|
@@ -7,6 +7,14 @@ declare const EIP712Domain: {
|
|
|
7
7
|
type: string;
|
|
8
8
|
}[];
|
|
9
9
|
|
|
10
|
+
interface FireblocksProviderConfig extends BaseConfig {
|
|
11
|
+
/**
|
|
12
|
+
* When set to true, eth_call requests will be signed
|
|
13
|
+
* with authentication headers, regardless of whether they match signable contracts
|
|
14
|
+
*/
|
|
15
|
+
alwaysSignEthCalls?: boolean;
|
|
16
|
+
}
|
|
17
|
+
|
|
10
18
|
declare class SilentDataRollupFireblocksProvider extends BrowserProvider {
|
|
11
19
|
private lastNonce;
|
|
12
20
|
private ethereum;
|
|
@@ -18,7 +26,7 @@ declare class SilentDataRollupFireblocksProvider extends BrowserProvider {
|
|
|
18
26
|
ethereum: Eip1193Provider;
|
|
19
27
|
network?: Networkish;
|
|
20
28
|
options?: BrowserProviderOptions;
|
|
21
|
-
config?:
|
|
29
|
+
config?: FireblocksProviderConfig;
|
|
22
30
|
});
|
|
23
31
|
/**
|
|
24
32
|
* Manages and returns the next available nonce for a given address.
|
|
@@ -66,4 +74,4 @@ declare class SilentDataRollupFireblocksProvider extends BrowserProvider {
|
|
|
66
74
|
clone(): SilentDataRollupFireblocksProvider;
|
|
67
75
|
}
|
|
68
76
|
|
|
69
|
-
export { DEBUG_NAMESPACE_SILENTDATA_INTERCEPTOR, EIP712Domain, SilentDataRollupFireblocksProvider };
|
|
77
|
+
export { DEBUG_NAMESPACE_SILENTDATA_INTERCEPTOR, EIP712Domain, type FireblocksProviderConfig, SilentDataRollupFireblocksProvider };
|