mirror of
https://github.com/grassrootseconomics/cic-go.git
synced 2024-11-21 21:56:45 +01:00
19 lines
372 B
Go
19 lines
372 B
Go
package net
|
|
|
|
import (
|
|
"github.com/ethereum/go-ethereum/common"
|
|
"github.com/grassrootseconomics/cic-go/provider"
|
|
)
|
|
|
|
type CicNet struct {
|
|
provider *provider.Provider
|
|
tokenIndex common.Address
|
|
}
|
|
|
|
func NewCicNet(rpcProvider *provider.Provider, tokenIndex common.Address) (*CicNet, error) {
|
|
return &CicNet{
|
|
provider: rpcProvider,
|
|
tokenIndex: tokenIndex,
|
|
}, nil
|
|
}
|