@typemove/aptos 1.0.1 → 1.0.2-rc.2
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 +16 -1
- package/package.json +4 -4
package/Readme.md
CHANGED
|
@@ -48,6 +48,21 @@ const [lpName] = await stable_pool.view.lpNameById(client, { arguments: [3n] })
|
|
|
48
48
|
const [poolBalances, weights, supply] = await stable_pool.view.poolInfo(client, { arguments: [lpName] })
|
|
49
49
|
```
|
|
50
50
|
IDE will show you the detail type of the function:
|
|
51
|
+
|
|
51
52
|

|
|
52
53
|
|
|
53
|
-
|
|
54
|
+
### Build transaction
|
|
55
|
+
Similar to view function, but use `entry` instead of `view`:
|
|
56
|
+
```typescript
|
|
57
|
+
const aptosClient = new AptosClient("https://fullnode.mainnet.aptoslabs.com")
|
|
58
|
+
const account = new AptosAccount(...)
|
|
59
|
+
const res = await _0x1.coin.entry.transfer(client, account, {
|
|
60
|
+
type_arguments: ['0x1::aptos_coin::AptosCoin'],
|
|
61
|
+
arguments: ['0x1', 1n],
|
|
62
|
+
})
|
|
63
|
+
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Checkout our [tests](./src/tests/move-call.test.ts) for more examples.
|
|
67
|
+
|
|
68
|
+
### Resource utils
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typemove/aptos",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2-rc.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
],
|
|
30
30
|
"types": "./dist/cjs/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"aptos": "^1.
|
|
33
|
-
"chalk": "^5.
|
|
32
|
+
"aptos": "^1.19.0",
|
|
33
|
+
"chalk": "^5.3.0",
|
|
34
34
|
"radash": "^11.0.0",
|
|
35
|
-
"@typemove/move": "1.0.
|
|
35
|
+
"@typemove/move": "1.0.2-rc.2"
|
|
36
36
|
},
|
|
37
37
|
"url": "https://github.com/sentioxyz/typemove",
|
|
38
38
|
"scripts": {
|