@appliedblockchain/silentdatarollup-ethers-provider 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. package/README.md +10 -12
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -83,19 +83,17 @@ const providerConfig = {
83
83
  }
84
84
 
85
85
  const provider = new SilentDataRollupProvider(providerConfig)
86
+ const balance = await provider.getBalance('YOUR_ADDRESS')
87
+ console.log(balance)
88
+
89
+ const contractConfig = {
90
+ contractAddress: 'YOUR_CONTRACT_ADDRESS'
91
+ abi: [ /* Your contract ABI */ ],
92
+ runner: provider,
93
+ methodsToSign: ['method1', 'method2'] // Contract read calls that require signing
94
+ }
86
95
 
87
- const contractAddress = 'YOUR_CONTRACT_ADDRESS'
88
- const abi = [
89
- /* Your contract ABI */
90
- ]
91
- const methodsToSign = ['method1', 'method2'] // Contract read calls that require signing
92
-
93
- const contract = new SilentDataRollupContract(
94
- contractAddress,
95
- abi,
96
- provider,
97
- methodsToSign,
98
- )
96
+ const contract = new SilentDataRollupContract(contractConfig)
99
97
 
100
98
  // Now you can call "private" contract methods. These calls will be signed,
101
99
  // and msg.sender will be available in the contract, representing the signer's address.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appliedblockchain/silentdatarollup-ethers-provider",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
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.0",
35
+ "@appliedblockchain/silentdatarollup-core": "1.0.1",
36
36
  "ethers": "6.13.2"
37
37
  },
38
38
  "devDependencies": {