curvance 1.0.8 → 1.0.10
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 +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ $ npm install --save curvance
|
|
|
17
17
|
## ❯ Usage
|
|
18
18
|
|
|
19
19
|
### Grab general information
|
|
20
|
-
This is very RPC efficient as it uses 1-3 RPC call's to setup all the data you need.
|
|
20
|
+
This is very RPC efficient as it uses 1-3 RPC call's to setup all the data you need. This is the main way to use the SDK as ALL the data is pre-setup for you. All you need to do is traverse the markets.
|
|
21
21
|
```js
|
|
22
22
|
const { markets, reader, faucet } = await setupChain("monad-testnet", wallet);
|
|
23
23
|
```
|
|
@@ -41,7 +41,7 @@ const test_1 = new ERC20(signer, `0x123`);
|
|
|
41
41
|
await test_1.approve(someGuy, BigInt(50e18));
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
-
Some of these classes use preloaded cache to prevent RPC calls
|
|
44
|
+
Some of these classes use preloaded cache to prevent RPC calls for example
|
|
45
45
|
```js
|
|
46
46
|
const test_1 = new ERC20(signer, `0x123`);
|
|
47
47
|
console.log(test_1.name); // Attempts to use cache for name, so this returns undefined
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "curvance",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"scripts": {
|
|
26
26
|
"fetch": "ts-node fetch-deployment.ts",
|
|
27
27
|
"build": "tsc",
|
|
28
|
-
"publish": "tsc && npm publish",
|
|
29
28
|
"test": "node --test --require ts-node/register tests/*.test.ts",
|
|
30
29
|
"test:ctoken": "ts-node tests/CToken.test.ts",
|
|
31
30
|
"test:faucet": "ts-node tests/Faucet.test.ts",
|
|
32
31
|
"test:market": "ts-node tests/Market.test.ts",
|
|
33
|
-
"test:oracle": "ts-node tests/OracleManager.test.ts"
|
|
32
|
+
"test:oracle": "ts-node tests/OracleManager.test.ts",
|
|
33
|
+
"test:dapp": "ts-node tests/dapp.test.ts"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@types/node": "^24.3.0",
|