-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathindex.ts
More file actions
32 lines (28 loc) · 984 Bytes
/
index.ts
File metadata and controls
32 lines (28 loc) · 984 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { delegate } from './sdk/validators/delegate'
import { undelegate } from './sdk/validators/undelegate'
import { swap } from './sdk/pools/swap'
import { importToken } from './sdk/ethbridge/importToken'
import * as dotenv from 'dotenv'
dotenv.config({ path: __dirname + '/.env' })
const start = async () => {
console.log('Sifchain ClientSDK. Add application logic here.')
//
// *** Your logic here ***
//
// const importTokenRes = await importToken('eth', '1000000000001')
// console.log({ importTokenRes })
//
// const delegateRes = await delegate(
// '53837',
// 'sifvaloper16svh7gvexg3p7f2a7l5f8cpj5m7rja4exdjhhq'
// )
// console.log({ delegateRes })
// const undelegateRes = await undelegate(
// '53837',
// 'sifvaloper16svh7gvexg3p7f2a7l5f8cpj5m7rja4exdjhhq'
// )
// console.log({ undelegateRes })
// const swapRes = await swap('rowan', 'ceth', '1234', '1')
// console.log({ swapRes })
}
start()