diff --git a/assets/img/dione.jpg b/assets/img/dione.jpg new file mode 100644 index 0000000..3cc1797 Binary files /dev/null and b/assets/img/dione.jpg differ diff --git a/config/config.go b/config/config.go index 452b78b..77fa1a6 100644 --- a/config/config.go +++ b/config/config.go @@ -11,12 +11,12 @@ type Config struct { BootstrapNodeMultiaddr string `mapstructure:"bootstrap_node_multiaddr"` Rendezvous string `mapstructure:"rendezvous"` SessionKey string `mapstructure:"session_key"` - Etherium EtheriumConfig `mapstructure:"etherium"` + Ethereum EthereumConfig `mapstructure:"ethereum"` Filecoin FilecoinConfig `mapstructure:"filecoin"` PubSub PubSubConfig `mapstructure:"pubSub"` } -type EtheriumConfig struct { +type EthereumConfig struct { GatewayAddress string `mapstructure:"gateway_address"` PrivateKey string `mapstructure:"private_key"` OracleEmitterContractAddress string `mapstructure:"oracle_emitter_contract_address"` @@ -40,7 +40,7 @@ func NewConfig(configPath string) (*Config, error) { Bootstrap: false, BootstrapNodeMultiaddr: "/ip4/127.0.0.1/tcp/0", Rendezvous: "filecoin-p2p-oracle", - Etherium: EtheriumConfig{ + Ethereum: EthereumConfig{ PrivateKey: "", }, SessionKey: "go", diff --git a/node/config.go b/node/config.go index ee5ba56..2c91f71 100644 --- a/node/config.go +++ b/node/config.go @@ -13,7 +13,7 @@ type PubSubConfig struct { ProtocolID string `toml:"protocolID"` } -type EtheriumConfig struct { +type EthereumConfig struct { PrivateKey string `toml:"privateKey"` GatewayAddress string `toml:"gatewayAddress"` } diff --git a/node/node.go b/node/node.go index da5c53d..67bb450 100644 --- a/node/node.go +++ b/node/node.go @@ -64,19 +64,19 @@ func (n *Node) setupNode(ctx context.Context, prvKey crypto.PrivKey) { } n.Host = host n.bootstrapLibp2pHost(context.TODO()) - n.setupEtheriumClient() + n.setupEthereumClient() n.setupFilecoinClient() //n.startPubSub(ctx, host) } -func (n *Node) setupEtheriumClient() error { +func (n *Node) setupEthereumClient() error { ethereum := rpcclient.NewEthereumClient() n.Ethereum = ethereum return ethereum.Initialize(context.Background(), - n.Config.Etherium.GatewayAddress, - n.Config.Etherium.PrivateKey, - n.Config.Etherium.OracleEmitterContractAddress, - n.Config.Etherium.AggregatorContractAddress, + n.Config.Ethereum.GatewayAddress, + n.Config.Ethereum.PrivateKey, + n.Config.Ethereum.OracleEmitterContractAddress, + n.Config.Ethereum.AggregatorContractAddress, ) }