Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

Commit

Permalink
Jsclients code added , not adjusted
Browse files Browse the repository at this point in the history
  • Loading branch information
Hammad-Mubeen committed Oct 18, 2021
1 parent ab0284a commit bcf4de9
Show file tree
Hide file tree
Showing 32 changed files with 5,776 additions and 1,375 deletions.
39 changes: 39 additions & 0 deletions JsClients/ERC20/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
CHAIN_NAME=casper-test
NODE_ADDRESS=http://144.76.97.151:7777/rpc
EVENT_STREAM_ADDRESS=http://144.76.97.151:7777/events/main
WASM_PATH=./wasm/erc20-token.wasm
MASTER_KEY_PAIR_PATH=keys/
RECEIVER_ACCOUNT_ONE=017e82abcc9539a01cfd9d63ae8c9c8b3a752a6f75ba1ab148714eea03e9be69a7

CONTRACT_NAME=erc20
TOKEN_NAME=ERC20
TOKEN_SYMBOL=erc
DECIMALS=18
TOTAL_SUPPLY=1000

INSTALL_PAYMENT_AMOUNT=200000000000

MINT_PAYMENT_AMOUNT=5000000000
MINT_AMOUNT=50

BURN_PAYMENT_AMOUNT=5000000000
BURN_AMOUNT=10

APPROVE_PAYMENT_AMOUNT=5000000000
APPROVE_AMOUNT=50

TRANSFER_PAYMENT_AMOUNT=5000000000
TRANSFER_AMOUNT=5

TRANSFER_FROM_PAYMENT_AMOUNT=5000000000
TRANSFER_FROM_AMOUNT=5

# balanceof

# transfer

# transferfrom

# approve

# mint
12 changes: 12 additions & 0 deletions JsClients/ERC20/src/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
export enum ERC20Events {
MintOne = "erc20_mint_one",
TransferToken = "erc20_transfer_token",
BurnOne = "erc20_burn_one",
MetadataUpdate = 'erc20_metadata_update',
Approve = 'approve',
Transfer = 'transfer',
TransferFrom = 'transfer_from',
Mint = 'mint',
Burn = 'burn',
Permit = 'permit',
}
Loading

0 comments on commit bcf4de9

Please sign in to comment.