-
Notifications
You must be signed in to change notification settings - Fork 2
/
load.go
37 lines (28 loc) · 929 Bytes
/
load.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package maker
import (
"github.com/ethereum/go-ethereum/ethclient"
)
func LoadVat(client *ethclient.Client) (*Vat, error) {
return NewVat(VatAddress, client)
}
func LoadVatCaller(client *ethclient.Client) (*VatCaller, error) {
return NewVatCaller(VatAddress, client)
}
func LoadPot(client *ethclient.Client) (*Pot, error) {
return NewPot(PotAddress, client)
}
func LoadPotCaller(client *ethclient.Client) (*PotCaller, error) {
return NewPotCaller(PotAddress, client)
}
func LoadJug(client *ethclient.Client) (*Jug, error) {
return NewJug(JugAddress, client)
}
func LoadJugCaller(client *ethclient.Client) (*JugCaller, error) {
return NewJugCaller(JugAddress, client)
}
func LoadFlipperEthA(client *ethclient.Client) (*Flipper, error) {
return NewFlipper(FlipEthAAddress, client)
}
func LoadFlipperEthACaller(client *ethclient.Client) (*FlipperCaller, error) {
return NewFlipperCaller(FlipEthAAddress, client)
}