t0ken

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

README

*Note - This is experimental/alpha code at the moment that is still in active development, use at your own risk.


T0ken CLI for the tZERO Suite of Smart-Contracts.

This project is aimed at developers who want to interact/deploy/experiment with the tZERO T0ken related smart contracts, but don't want to spend a lot of ramp up time with all of the related tooling.

Installation

Download a binary for your OS from the releases page, and place the binary somewhere within your path.

To build from source, you'll want to have Go 1.11.5+ installed.
Next, you should be able to do a go install:

% go get github.com/tzero-dev/go-t0ken/...
Configuration

To avoid passing in repetitious flags for your Ethereum node URL, contract address, etc., you can place them into t0ken.yaml, which will be read from CWD for each run.

Here's a minimal configuration:

url: http://some_ethereum_node_url:8545
t0ken: 0x5bd5B4e1a2c9B12812795E7217201B78C8C10b78

A more extensive configuration, including keystore addresses for performing transactions, and a keystoreAddressAliases section allowing you to alias addresses by name:

eg.

% t0ken token issueTokens 500 --keystoreAddress 0x0000000000000000000000000000000000000000
  becomes
% t0ken token issueTokens 500 --keystoreAddress issuer
url: http://some_ethereum_node_url:8545
keystore: ./keystore
keystoreAddress: 0x0000000000000000000000000000000000000000
keystoreAddressAliases:
  issuer: 0x0000000000000000000000000000000000000000
  owner: 0x0000000000000000000000000000000000000000

t0ken: 0x5bd5B4e1a2c9B12812795E7217201B78C8C10b78

mainnet configuration

url: http://some_ethereum_node_url:8545
keystore: ./keystore
keystoreAddress: 0x0000000000000000000000000000000000000000
keystoreAddressAliases:
  admin: 0x0000000000000000000000000000000000000000
  broker: 0x0000000000000000000000000000000000000000
  custodian: 0x0000000000000000000000000000000000000000
  custodial: 0x0000000000000000000000000000000000000000
  issuer: 0x0000000000000000000000000000000000000000
  owner: 0x0000000000000000000000000000000000000000
  tzero: 0x0000000000000000000000000000000000000000

storage: 0x2d1477dd9c494e8758ec8d03f9f8b838ce394414
custodianRegistry: 0x2963488e2a140ca324e086ab8f89b5d533f1081d
brokerDealerRegistry: 0x3ecb8f0d127e22d436b26fccad4f38d7f5b91ee9
investorRegistry: 0x857f6a42634a14847cc4e0226f36906f0a77cee3
t0ken: 0x5bd5b4e1a2c9b12812795e7217201b78c8c10b78
t0kenCompliance: 0x0f18bbc1ae1c5ab891a7feb06d65388ba6b4cd07
License

This project is licensed under the Apache 2.0 license.

Links

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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