@@ -64,7 +64,8 @@ func (crowdsale *Crowdsale) PackConstructor(ifSuccessfulSendTo common.Address, f
64
64
}
65
65
66
66
// PackAmountRaised is the Go binding used to pack the parameters required for calling
67
- // the contract method with ID 0x7b3e5e7b.
67
+ // the contract method with ID 0x7b3e5e7b. This method will panic if any
68
+ // invalid/nil inputs are passed.
68
69
//
69
70
// Solidity: function amountRaised() returns(uint256)
70
71
func (crowdsale *Crowdsale) PackAmountRaised() []byte {
@@ -75,6 +76,15 @@ func (crowdsale *Crowdsale) PackAmountRaised() []byte {
75
76
return enc
76
77
}
77
78
79
+ // TryPackAmountRaised is the Go binding used to pack the parameters required for calling
80
+ // the contract method with ID 0x7b3e5e7b. This method will return an error
81
+ // if any inputs are invalid/nil.
82
+ //
83
+ // Solidity: function amountRaised() returns(uint256)
84
+ func (crowdsale *Crowdsale) TryPackAmountRaised() ([]byte, error) {
85
+ return crowdsale.abi.Pack("amountRaised")
86
+ }
87
+
78
88
// UnpackAmountRaised is the Go binding that unpacks the parameters returned
79
89
// from invoking the contract method with ID 0x7b3e5e7b.
80
90
//
@@ -85,11 +95,12 @@ func (crowdsale *Crowdsale) UnpackAmountRaised(data []byte) (*big.Int, error) {
85
95
return new(big.Int), err
86
96
}
87
97
out0 := abi.ConvertType(out[0], new(big.Int)).(*big.Int)
88
- return out0, err
98
+ return out0, nil
89
99
}
90
100
91
101
// PackBeneficiary is the Go binding used to pack the parameters required for calling
92
- // the contract method with ID 0x38af3eed.
102
+ // the contract method with ID 0x38af3eed. This method will panic if any
103
+ // invalid/nil inputs are passed.
93
104
//
94
105
// Solidity: function beneficiary() returns(address)
95
106
func (crowdsale *Crowdsale) PackBeneficiary() []byte {
@@ -100,6 +111,15 @@ func (crowdsale *Crowdsale) PackBeneficiary() []byte {
100
111
return enc
101
112
}
102
113
114
+ // TryPackBeneficiary is the Go binding used to pack the parameters required for calling
115
+ // the contract method with ID 0x38af3eed. This method will return an error
116
+ // if any inputs are invalid/nil.
117
+ //
118
+ // Solidity: function beneficiary() returns(address)
119
+ func (crowdsale *Crowdsale) TryPackBeneficiary() ([]byte, error) {
120
+ return crowdsale.abi.Pack("beneficiary")
121
+ }
122
+
103
123
// UnpackBeneficiary is the Go binding that unpacks the parameters returned
104
124
// from invoking the contract method with ID 0x38af3eed.
105
125
//
@@ -110,11 +130,12 @@ func (crowdsale *Crowdsale) UnpackBeneficiary(data []byte) (common.Address, erro
110
130
return *new(common.Address), err
111
131
}
112
132
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
113
- return out0, err
133
+ return out0, nil
114
134
}
115
135
116
136
// PackCheckGoalReached is the Go binding used to pack the parameters required for calling
117
- // the contract method with ID 0x01cb3b20.
137
+ // the contract method with ID 0x01cb3b20. This method will panic if any
138
+ // invalid/nil inputs are passed.
118
139
//
119
140
// Solidity: function checkGoalReached() returns()
120
141
func (crowdsale *Crowdsale) PackCheckGoalReached() []byte {
@@ -125,8 +146,18 @@ func (crowdsale *Crowdsale) PackCheckGoalReached() []byte {
125
146
return enc
126
147
}
127
148
149
+ // TryPackCheckGoalReached is the Go binding used to pack the parameters required for calling
150
+ // the contract method with ID 0x01cb3b20. This method will return an error
151
+ // if any inputs are invalid/nil.
152
+ //
153
+ // Solidity: function checkGoalReached() returns()
154
+ func (crowdsale *Crowdsale) TryPackCheckGoalReached() ([]byte, error) {
155
+ return crowdsale.abi.Pack("checkGoalReached")
156
+ }
157
+
128
158
// PackDeadline is the Go binding used to pack the parameters required for calling
129
- // the contract method with ID 0x29dcb0cf.
159
+ // the contract method with ID 0x29dcb0cf. This method will panic if any
160
+ // invalid/nil inputs are passed.
130
161
//
131
162
// Solidity: function deadline() returns(uint256)
132
163
func (crowdsale *Crowdsale) PackDeadline() []byte {
@@ -137,6 +168,15 @@ func (crowdsale *Crowdsale) PackDeadline() []byte {
137
168
return enc
138
169
}
139
170
171
+ // TryPackDeadline is the Go binding used to pack the parameters required for calling
172
+ // the contract method with ID 0x29dcb0cf. This method will return an error
173
+ // if any inputs are invalid/nil.
174
+ //
175
+ // Solidity: function deadline() returns(uint256)
176
+ func (crowdsale *Crowdsale) TryPackDeadline() ([]byte, error) {
177
+ return crowdsale.abi.Pack("deadline")
178
+ }
179
+
140
180
// UnpackDeadline is the Go binding that unpacks the parameters returned
141
181
// from invoking the contract method with ID 0x29dcb0cf.
142
182
//
@@ -147,11 +187,12 @@ func (crowdsale *Crowdsale) UnpackDeadline(data []byte) (*big.Int, error) {
147
187
return new(big.Int), err
148
188
}
149
189
out0 := abi.ConvertType(out[0], new(big.Int)).(*big.Int)
150
- return out0, err
190
+ return out0, nil
151
191
}
152
192
153
193
// PackFunders is the Go binding used to pack the parameters required for calling
154
- // the contract method with ID 0xdc0d3dff.
194
+ // the contract method with ID 0xdc0d3dff. This method will panic if any
195
+ // invalid/nil inputs are passed.
155
196
//
156
197
// Solidity: function funders(uint256 ) returns(address addr, uint256 amount)
157
198
func (crowdsale *Crowdsale) PackFunders(arg0 *big.Int) []byte {
@@ -162,6 +203,15 @@ func (crowdsale *Crowdsale) PackFunders(arg0 *big.Int) []byte {
162
203
return enc
163
204
}
164
205
206
+ // TryPackFunders is the Go binding used to pack the parameters required for calling
207
+ // the contract method with ID 0xdc0d3dff. This method will return an error
208
+ // if any inputs are invalid/nil.
209
+ //
210
+ // Solidity: function funders(uint256 ) returns(address addr, uint256 amount)
211
+ func (crowdsale *Crowdsale) TryPackFunders(arg0 *big.Int) ([]byte, error) {
212
+ return crowdsale.abi.Pack("funders", arg0)
213
+ }
214
+
165
215
// FundersOutput serves as a container for the return parameters of contract
166
216
// method Funders.
167
217
type FundersOutput struct {
@@ -181,12 +231,12 @@ func (crowdsale *Crowdsale) UnpackFunders(data []byte) (FundersOutput, error) {
181
231
}
182
232
outstruct.Addr = *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
183
233
outstruct.Amount = abi.ConvertType(out[1], new(big.Int)).(*big.Int)
184
- return *outstruct, err
185
-
234
+ return *outstruct, nil
186
235
}
187
236
188
237
// PackFundingGoal is the Go binding used to pack the parameters required for calling
189
- // the contract method with ID 0x7a3a0e84.
238
+ // the contract method with ID 0x7a3a0e84. This method will panic if any
239
+ // invalid/nil inputs are passed.
190
240
//
191
241
// Solidity: function fundingGoal() returns(uint256)
192
242
func (crowdsale *Crowdsale) PackFundingGoal() []byte {
@@ -197,6 +247,15 @@ func (crowdsale *Crowdsale) PackFundingGoal() []byte {
197
247
return enc
198
248
}
199
249
250
+ // TryPackFundingGoal is the Go binding used to pack the parameters required for calling
251
+ // the contract method with ID 0x7a3a0e84. This method will return an error
252
+ // if any inputs are invalid/nil.
253
+ //
254
+ // Solidity: function fundingGoal() returns(uint256)
255
+ func (crowdsale *Crowdsale) TryPackFundingGoal() ([]byte, error) {
256
+ return crowdsale.abi.Pack("fundingGoal")
257
+ }
258
+
200
259
// UnpackFundingGoal is the Go binding that unpacks the parameters returned
201
260
// from invoking the contract method with ID 0x7a3a0e84.
202
261
//
@@ -207,11 +266,12 @@ func (crowdsale *Crowdsale) UnpackFundingGoal(data []byte) (*big.Int, error) {
207
266
return new(big.Int), err
208
267
}
209
268
out0 := abi.ConvertType(out[0], new(big.Int)).(*big.Int)
210
- return out0, err
269
+ return out0, nil
211
270
}
212
271
213
272
// PackPrice is the Go binding used to pack the parameters required for calling
214
- // the contract method with ID 0xa035b1fe.
273
+ // the contract method with ID 0xa035b1fe. This method will panic if any
274
+ // invalid/nil inputs are passed.
215
275
//
216
276
// Solidity: function price() returns(uint256)
217
277
func (crowdsale *Crowdsale) PackPrice() []byte {
@@ -222,6 +282,15 @@ func (crowdsale *Crowdsale) PackPrice() []byte {
222
282
return enc
223
283
}
224
284
285
+ // TryPackPrice is the Go binding used to pack the parameters required for calling
286
+ // the contract method with ID 0xa035b1fe. This method will return an error
287
+ // if any inputs are invalid/nil.
288
+ //
289
+ // Solidity: function price() returns(uint256)
290
+ func (crowdsale *Crowdsale) TryPackPrice() ([]byte, error) {
291
+ return crowdsale.abi.Pack("price")
292
+ }
293
+
225
294
// UnpackPrice is the Go binding that unpacks the parameters returned
226
295
// from invoking the contract method with ID 0xa035b1fe.
227
296
//
@@ -232,11 +301,12 @@ func (crowdsale *Crowdsale) UnpackPrice(data []byte) (*big.Int, error) {
232
301
return new(big.Int), err
233
302
}
234
303
out0 := abi.ConvertType(out[0], new(big.Int)).(*big.Int)
235
- return out0, err
304
+ return out0, nil
236
305
}
237
306
238
307
// PackTokenReward is the Go binding used to pack the parameters required for calling
239
- // the contract method with ID 0x6e66f6e9.
308
+ // the contract method with ID 0x6e66f6e9. This method will panic if any
309
+ // invalid/nil inputs are passed.
240
310
//
241
311
// Solidity: function tokenReward() returns(address)
242
312
func (crowdsale *Crowdsale) PackTokenReward() []byte {
@@ -247,6 +317,15 @@ func (crowdsale *Crowdsale) PackTokenReward() []byte {
247
317
return enc
248
318
}
249
319
320
+ // TryPackTokenReward is the Go binding used to pack the parameters required for calling
321
+ // the contract method with ID 0x6e66f6e9. This method will return an error
322
+ // if any inputs are invalid/nil.
323
+ //
324
+ // Solidity: function tokenReward() returns(address)
325
+ func (crowdsale *Crowdsale) TryPackTokenReward() ([]byte, error) {
326
+ return crowdsale.abi.Pack("tokenReward")
327
+ }
328
+
250
329
// UnpackTokenReward is the Go binding that unpacks the parameters returned
251
330
// from invoking the contract method with ID 0x6e66f6e9.
252
331
//
@@ -257,7 +336,7 @@ func (crowdsale *Crowdsale) UnpackTokenReward(data []byte) (common.Address, erro
257
336
return *new(common.Address), err
258
337
}
259
338
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
260
- return out0, err
339
+ return out0, nil
261
340
}
262
341
263
342
// CrowdsaleFundTransfer represents a FundTransfer event raised by the Crowdsale contract.
0 commit comments