genlayer-js 0.20.3 → 0.21.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.
- package/README.md +4 -4
- package/dist/chains/index.cjs +4 -2
- package/dist/chains/index.d.cts +1 -1
- package/dist/chains/index.d.ts +1 -1
- package/dist/chains/index.js +5 -3
- package/dist/{chunk-NOFMB7RP.js → chunk-5KRGDGMO.js} +3357 -1
- package/dist/{chunk-5TKVNHAO.cjs → chunk-TCAQ6AVF.cjs} +3358 -2
- package/dist/{index-B6107TBT.d.ts → index-CsIdmK96.d.ts} +3 -2
- package/dist/{index-BVDASTaU.d.cts → index-DjR-MFPr.d.cts} +5 -2
- package/dist/{index-C3rDLBIN.d.cts → index-Dja_Xmq_.d.cts} +3 -2
- package/dist/{index-ucNO2REF.d.ts → index-HRqj9M3K.d.ts} +5 -2
- package/dist/index.cjs +63 -60
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +23 -20
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -108,15 +108,15 @@ const receipt = await client.waitForTransactionReceipt({
|
|
|
108
108
|
```
|
|
109
109
|
### Staking Operations
|
|
110
110
|
|
|
111
|
-
The SDK provides staking functionality for validators and delegators on testnet-asimov.
|
|
111
|
+
The SDK provides staking functionality for validators and delegators on testnet-bradbury (and testnet-asimov).
|
|
112
112
|
|
|
113
113
|
```typescript
|
|
114
|
-
import {
|
|
114
|
+
import { testnetBradbury } from 'genlayer-js/chains';
|
|
115
115
|
import { createClient, createAccount } from "genlayer-js";
|
|
116
116
|
|
|
117
117
|
const account = createAccount();
|
|
118
118
|
const client = createClient({
|
|
119
|
-
chain:
|
|
119
|
+
chain: testnetBradbury,
|
|
120
120
|
account,
|
|
121
121
|
});
|
|
122
122
|
|
|
@@ -160,7 +160,7 @@ const delegateResult = await client.delegatorJoin({
|
|
|
160
160
|
|
|
161
161
|
* **Client Creation**: Easily create and configure a client to connect to GenLayer's network.
|
|
162
162
|
* **Transaction Handling**: Send and manage transactions on the GenLayer network.
|
|
163
|
-
* **Staking**: Full staking support for validators and delegators on testnet-asimov.
|
|
163
|
+
* **Staking**: Full staking support for validators and delegators on testnet-bradbury and testnet-asimov.
|
|
164
164
|
* **Wallet Integration***: Seamless integration with MetaMask for managing user accounts.
|
|
165
165
|
* **Gas Estimation***: Estimate gas fees for executing transactions on GenLayer.
|
|
166
166
|
|
package/dist/chains/index.cjs
CHANGED
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
var _chunkTCAQ6AVFcjs = require('../chunk-TCAQ6AVF.cjs');
|
|
6
7
|
require('../chunk-75ZPJI57.cjs');
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
|
|
13
|
+
exports.localnet = _chunkTCAQ6AVFcjs.localnet; exports.studionet = _chunkTCAQ6AVFcjs.studionet; exports.testnetAsimov = _chunkTCAQ6AVFcjs.testnetAsimov; exports.testnetBradbury = _chunkTCAQ6AVFcjs.testnetBradbury;
|
package/dist/chains/index.d.cts
CHANGED
package/dist/chains/index.d.ts
CHANGED
package/dist/chains/index.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
localnet,
|
|
3
3
|
studionet,
|
|
4
|
-
testnetAsimov
|
|
5
|
-
|
|
4
|
+
testnetAsimov,
|
|
5
|
+
testnetBradbury
|
|
6
|
+
} from "../chunk-5KRGDGMO.js";
|
|
6
7
|
import "../chunk-MLKGABMK.js";
|
|
7
8
|
export {
|
|
8
9
|
localnet,
|
|
9
10
|
studionet,
|
|
10
|
-
testnetAsimov
|
|
11
|
+
testnetAsimov,
|
|
12
|
+
testnetBradbury
|
|
11
13
|
};
|