arc200-client 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 +14 -17
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -3,26 +3,23 @@
3
3
  This is ARC 200 client generated from tealscript using algokit.
4
4
 
5
5
  ```
6
- import {getArc200Client} from "arc-200-client"
6
+ import {getArc200Client} from "arc200-client"
7
7
 
8
8
  const client = getArc200Client({
9
- appId: 6779767;
10
- sender: undefined;
11
- algod: Algodv2
12
- })
13
-
14
-
15
- const compose = client.compose().arc200_transfer(
16
- { to: .. , value: .. },
17
- {
18
- sendParams: {
19
- fee: algokit.microAlgos(1000)
20
- }
21
- }
22
- )
23
- const atc = await compose.atc()
24
- const txsToSign = atc.buildGroup().map((tx) => tx.txn)
9
+ algod,
10
+ appId: BigInt(6779767),
11
+ sender: { addr: this.payFrom },
12
+ });
13
+ const compose = client
14
+ .compose()
15
+ .arc200Transfer({ to: this.payTo, value: BigInt(this.amountLong) });
16
+ const atc = await compose.atc();
17
+ const txsToSign = atc.buildGroup().map((tx) => tx.txn);
25
18
 
26
19
  ...
27
20
 
28
21
  ```
22
+
23
+ ## Source code
24
+
25
+ https://github.com/scholtz/arc200
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arc200-client",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",