vasku-example
Version:
Vasku contract example
39 lines (27 loc) • 887 B
Markdown


```typescript
import { TonClient } from '@eversdk/core'
import { libWeb } from '@eversdk/lib-web'
import { Global } from 'vasku'
import { Example } from 'vasku-example'
const endpoints = ['https://gql-devnet.venom.network']
const address = '0:0d01f835c90fed8f59ff2ecfd18c56caa88d9d1fec90146adfd182e0bf88d25d'
async function main (): Promise<void> {
TonClient.useBinaryLibrary(libWeb as any)
Global.client = new TonClient({ network: { endpoints } })
const example = new Example({ address })
const count = (await example.run.getCount()).count
}
main().catch(console.error)
```
```shell
npx vasku compile
```
```shell
yarn npm publish
```