@@ -48,23 +48,7 @@ type ContractDeployer struct {
48
48
Env * environment.Environment
49
49
}
50
50
51
- func (c * ContractDeployer ) DeployOCRv2Proxy (addr string ) (contracts.OCRv2Proxy , error ) {
52
- panic ("implement me" )
53
- }
54
-
55
- func (c * ContractDeployer ) DeployOCRv2ValidatorProxy (addr string ) (contracts.OCRv2Proxy , error ) {
56
- panic ("implement me" )
57
- }
58
-
59
- func (c * ContractDeployer ) DeployOCRv2Flags (lowAccessController string , raiseAccessController string ) (contracts.OCRv2Flags , error ) {
60
- panic ("implement me" )
61
- }
62
-
63
- func (c * ContractDeployer ) DeployOCRv2Validator (threshold uint32 , flags string ) (contracts.OCRv2Flags , error ) {
64
- panic ("implement me" )
65
- }
66
-
67
- func (c * ContractDeployer ) DeployOCRv2Store (billingAC string ) (contracts.OCRv2Store , error ) {
51
+ func (c * ContractDeployer ) DeployOCRv2Store (billingAC string ) (* Store , error ) {
68
52
programWallet := c .Client .ProgramWallets ["store-keypair.json" ]
69
53
payer := c .Client .DefaultWallet
70
54
accInstruction , err := c .Client .CreateAccInstr (c .Client .Accounts .Store , StoreAccountSize , programWallet .PublicKey ())
@@ -111,38 +95,6 @@ func (c *ContractDeployer) DeployOCRv2Store(billingAC string) (contracts.OCRv2St
111
95
}, nil
112
96
}
113
97
114
- func (c * ContractDeployer ) Balance () (* big.Float , error ) {
115
- panic ("implement me" )
116
- }
117
-
118
- func (c * ContractDeployer ) DeployStorageContract () (contracts.Storage , error ) {
119
- panic ("implement me" )
120
- }
121
-
122
- func (c * ContractDeployer ) DeployAPIConsumer (linkAddr string ) (contracts.APIConsumer , error ) {
123
- panic ("implement me" )
124
- }
125
-
126
- func (c * ContractDeployer ) DeployOracle (linkAddr string ) (contracts.Oracle , error ) {
127
- panic ("implement me" )
128
- }
129
-
130
- func (c * ContractDeployer ) DeployReadAccessController () (contracts.ReadAccessController , error ) {
131
- panic ("implement me" )
132
- }
133
-
134
- func (c * ContractDeployer ) DeployFlags (rac string ) (contracts.Flags , error ) {
135
- panic ("implement me" )
136
- }
137
-
138
- func (c * ContractDeployer ) DeployDeviationFlaggingValidator (flags string , flaggingThreshold * big.Int ) (contracts.DeviationFlaggingValidator , error ) {
139
- panic ("implement me" )
140
- }
141
-
142
- func (c * ContractDeployer ) DeployFluxAggregatorContract (linkAddr string , fluxOptions contracts.FluxAggregatorOptions ) (contracts.FluxAggregator , error ) {
143
- panic ("implement me" )
144
- }
145
-
146
98
func (c * ContractDeployer ) addMintToAccInstr (instr * []solana.Instruction , dest * solana.Wallet , amount uint64 ) error {
147
99
* instr = append (* instr , token .NewMintToInstruction (
148
100
amount ,
@@ -154,7 +106,7 @@ func (c *ContractDeployer) addMintToAccInstr(instr *[]solana.Instruction, dest *
154
106
return nil
155
107
}
156
108
157
- func (c * ContractDeployer ) DeployLinkTokenContract () (contracts. LinkToken , error ) {
109
+ func (c * ContractDeployer ) DeployLinkTokenContract () (* LinkToken , error ) {
158
110
var err error
159
111
payer := c .Client .DefaultWallet
160
112
@@ -202,7 +154,7 @@ func (c *ContractDeployer) DeployLinkTokenContract() (contracts.LinkToken, error
202
154
}, nil
203
155
}
204
156
205
- func (c * ContractDeployer ) DeployOCRv2 (billingControllerAddr string , requesterControllerAddr string , linkTokenAddr string ) (contracts. OCRv2 , error ) {
157
+ func (c * ContractDeployer ) DeployOCRv2 (billingControllerAddr string , requesterControllerAddr string , linkTokenAddr string ) (* OCRv2 , error ) {
206
158
programWallet := c .Client .ProgramWallets ["ocr2-keypair.json" ]
207
159
payer := c .Client .DefaultWallet
208
160
ocrAccInstruction , err := c .Client .CreateAccInstr (c .Client .Accounts .OCR , OCRAccountAccountSize , programWallet .PublicKey ())
@@ -295,7 +247,7 @@ func (c *ContractDeployer) DeployProgramRemote(programName string) error {
295
247
return nil
296
248
}
297
249
298
- func (c * ContractDeployer ) DeployOCRv2AccessController () (contracts. OCRv2AccessController , error ) {
250
+ func (c * ContractDeployer ) DeployOCRv2AccessController () (* AccessController , error ) {
299
251
programWallet := c .Client .ProgramWallets ["access_controller-keypair.json" ]
300
252
payer := c .Client .DefaultWallet
301
253
stateAcc := solana .NewWallet ()
0 commit comments