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