Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ main()

Import and Export ERC20 tokens from sifchain to ethereum and back.

Be sure to check the fee and gas is set to your preference in the `config.ts` file and the hard coded values in the `exportToken` and `importToken` function bodies. All available tokens along with corresponding symbols are found in the `sdk/assets.sifchain.mainnet.json` file. The assets in this file with `homeNetwork` equal to `"ethereum"` are ERC20 tokens.
Be sure to check the fee and gas is set to your preference in the `config.ts` file and the hard coded values in the `exportToken` and `importToken` function bodies. ERC20 token addresses are found in the `sdk/ethbridge/erc20TokenAddresses.json` file. Double check these are the correct ERC20 addresses.

#### Import Eth or ERC20 tokens from Ethereum to Sifchain

Expand Down
12 changes: 8 additions & 4 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
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 { delegate } from './sdk/validators/delegate'
// import { undelegate } from './sdk/validators/undelegate'
// import { swap } from './sdk/pools/swap'
// import { importToken } from './sdk/ethbridge/importToken'
import { getDexSymbols } from './sdk/helpers'

const start = async () => {
console.log('Sifchain ClientSDK. Add application logic here.')
//
// *** Your logic here ***

console.log('Available tokens: ', await getDexSymbols())

//
// const importTokenRes = await importToken('eth', '1000000000001')
// console.log({ importTokenRes })
Expand Down
Loading