aeschain-client

command module
v0.0.0-...-85ef9e3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2021 License: MIT Imports: 16 Imported by: 0

README

Aeternalism Go client

Aeternalism Go client will listen to the LockNFT event from Locker's smart contracts from aeschain-ethereum repo and then call the NFT module in Aeschain to create NFT in the cosmos.

Install and deploy contracts.

  1. Prerequisite:
  • Golang version >= 1.16
  • Create .env file in the root folder, then add
    • ETHEREUM_NETWORK_WS: websocket endpoint for the ethereum ropsten network (create a free account at infura.io)
    • LOCKER_ADDRESS: locker's smart contract address that is deployed to the ropsten network from the aeschain-ethereum repo
    • COSMOS_PREFIX: cosmos address prefix (aes for the demo)
    • COSMOS_ACCOUNT: Cosmos account that is used for interacting with Aeschain (brian for the demo)
  1. Install dependencies:

Run the command in the project root to install dependencies.

go mod tidy
  1. Run the application
  • Run the command to start listening to events.
go run main.go

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
ethereum

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL