2022-05-17 19:33:03 +02:00
|
|
|
package balance
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/ethereum/go-ethereum/common"
|
2022-05-18 11:52:50 +02:00
|
|
|
"github.com/grassrootseconomics/cic-go/provider"
|
2022-05-17 19:33:03 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
type BatchBalance struct {
|
2022-05-18 11:52:50 +02:00
|
|
|
provider *provider.Provider
|
2022-05-17 19:33:03 +02:00
|
|
|
batchContract common.Address
|
|
|
|
}
|
|
|
|
|
2022-05-18 12:41:55 +02:00
|
|
|
func NewBatchBalance(rpcProvider *provider.Provider, batchContract common.Address) (*BatchBalance, error) {
|
2022-05-17 19:33:03 +02:00
|
|
|
return &BatchBalance{
|
2022-05-18 12:41:55 +02:00
|
|
|
provider: rpcProvider,
|
2022-05-17 19:33:03 +02:00
|
|
|
batchContract: batchContract,
|
|
|
|
}, nil
|
|
|
|
}
|