cic-go/net/cic_net.go

19 lines
372 B
Go
Raw Normal View History

package net
import (
"github.com/ethereum/go-ethereum/common"
"github.com/grassrootseconomics/cic-go/provider"
)
type CicNet struct {
provider *provider.Provider
tokenIndex common.Address
}
2022-05-18 12:41:55 +02:00
func NewCicNet(rpcProvider *provider.Provider, tokenIndex common.Address) (*CicNet, error) {
return &CicNet{
2022-05-18 12:41:55 +02:00
provider: rpcProvider,
tokenIndex: tokenIndex,
}, nil
}