jton-contracts
v0.10.0
Published
Free TON contracts wrapped in jTON
Downloads
33
Maintainers
Readme
jTON contracts
Free TON contracts in jTON classes.
Content table
Requirements
- Node.js >=
16.x
- Yarn >=
1.22.x
- Free TON Development Environment >=
0.7.x
Installation
yarn
yarn add jton-contracts
npm
npm i jton-contracts
Contracts
- broxus
- fungibleToken: RootTokenContract, TONTokenWallet
- source
- commits
74905260499d79cf7cb0d89a6eb572176fc1fcd5
- 2021-05-18T16:00:52Z
- fungibleToken: RootTokenContract, TONTokenWallet
- kokkekpek
- Idle
- source
- commits
b911fc8f70d58477d53bf514e693bf76f96efd25
- 2021-07-22T05:17:01Z7504e7f94fe085f7c14c3800093ee1a9f5e2d3e2
- 2021-07-23T06:13:09Z ✔
- Idle
- SolderingArmor
- HighloadSinglesig
- source
- commits
b6ec1ecd4d1c66e44a99050f33b084323250a582
- 2021-07-30T00:05:55Z
- HighloadSinglesig
- tonlabs
- GiverV2
- source
- commits
8a2bc005cfec4ecd770d50b074179e525b76513b
- 2021-04-28T09:41:28Z ✔06b351a91f104943ec10fed8ae262e54ecaae871
- 2021-07-13T16:54:19Z
- SafeMultisigWallet
- source
- commits
5ee039e4d093b91b6fdf7d77b9627e2e7d37f000
- 2020-05-04T16:46:21Z
- SetcodeMultisigWallet
- source
- commits
c62e5855bd4af95ba842094f21419c74921f9e10
- 2020-05-07T08:58:05Z
- GiverV2
Example
import {GiverV2, GiverV2SeKeys} from 'jton-contracts/dist/tonlabs/GiverV2'
import {TonClient} from '@tonclient/core'
import {libNode} from '@tonclient/lib-node'
import {createClient} from 'jton/src/utils/index'
async function run(): Promise<void> {
TonClient.useBinaryLibrary(libNode)
const client: TonClient = new TonClient({
network: {
server_address: 'http://localhost:8080'
}
})
const giverV2: GiverV2 = new GiverV2(client, GiverV2SeKeys)
await giverV2.sendTransaction({
dest: '0:0000111122223333444455556666777788889999aaaabbbbccccddddeeeeffff',
value: 1_000_000_000
})
}
run().then().catch(e => console.log(e))
TODO
- Automate checking and downloading the latest versions of contracts from other repositories
- Automate contract wrapping
- Tests
- Docs