arc200-client 1.0.0 → 1.0.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 +14 -17
- package/dist/index.d.mts +1141 -423
- package/dist/index.d.ts +1141 -423
- package/dist/index.js +1145 -481
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1147 -468
- package/dist/index.mjs.map +1 -1
- package/package.json +16 -13
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 "
|
|
6
|
+
import {getArc200Client} from "arc200-client"
|
|
7
7
|
|
|
8
8
|
const client = getArc200Client({
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
})
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|