@@ -64,7 +64,8 @@ func (crowdsale *Crowdsale) PackConstructor(ifSuccessfulSendTo common.Address, f
6464}
6565
6666// 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.
6869//
6970// Solidity: function amountRaised() returns(uint256)
7071func (crowdsale *Crowdsale) PackAmountRaised() []byte {
@@ -75,6 +76,15 @@ func (crowdsale *Crowdsale) PackAmountRaised() []byte {
7576 return enc
7677}
7778
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+
7888// UnpackAmountRaised is the Go binding that unpacks the parameters returned
7989// from invoking the contract method with ID 0x7b3e5e7b.
8090//
@@ -85,11 +95,12 @@ func (crowdsale *Crowdsale) UnpackAmountRaised(data []byte) (*big.Int, error) {
8595 return new(big.Int), err
8696 }
8797 out0 := abi.ConvertType(out[0], new(big.Int)).(*big.Int)
88- return out0, err
98+ return out0, nil
8999}
90100
91101// 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.
93104//
94105// Solidity: function beneficiary() returns(address)
95106func (crowdsale *Crowdsale) PackBeneficiary() []byte {
@@ -100,6 +111,15 @@ func (crowdsale *Crowdsale) PackBeneficiary() []byte {
100111 return enc
101112}
102113
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+
103123// UnpackBeneficiary is the Go binding that unpacks the parameters returned
104124// from invoking the contract method with ID 0x38af3eed.
105125//
@@ -110,11 +130,12 @@ func (crowdsale *Crowdsale) UnpackBeneficiary(data []byte) (common.Address, erro
110130 return *new(common.Address), err
111131 }
112132 out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
113- return out0, err
133+ return out0, nil
114134}
115135
116136// 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.
118139//
119140// Solidity: function checkGoalReached() returns()
120141func (crowdsale *Crowdsale) PackCheckGoalReached() []byte {
@@ -125,8 +146,18 @@ func (crowdsale *Crowdsale) PackCheckGoalReached() []byte {
125146 return enc
126147}
127148
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+
128158// 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.
130161//
131162// Solidity: function deadline() returns(uint256)
132163func (crowdsale *Crowdsale) PackDeadline() []byte {
@@ -137,6 +168,15 @@ func (crowdsale *Crowdsale) PackDeadline() []byte {
137168 return enc
138169}
139170
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+
140180// UnpackDeadline is the Go binding that unpacks the parameters returned
141181// from invoking the contract method with ID 0x29dcb0cf.
142182//
@@ -147,11 +187,12 @@ func (crowdsale *Crowdsale) UnpackDeadline(data []byte) (*big.Int, error) {
147187 return new(big.Int), err
148188 }
149189 out0 := abi.ConvertType(out[0], new(big.Int)).(*big.Int)
150- return out0, err
190+ return out0, nil
151191}
152192
153193// 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.
155196//
156197// Solidity: function funders(uint256 ) returns(address addr, uint256 amount)
157198func (crowdsale *Crowdsale) PackFunders(arg0 *big.Int) []byte {
@@ -162,6 +203,15 @@ func (crowdsale *Crowdsale) PackFunders(arg0 *big.Int) []byte {
162203 return enc
163204}
164205
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+
165215// FundersOutput serves as a container for the return parameters of contract
166216// method Funders.
167217type FundersOutput struct {
@@ -181,12 +231,12 @@ func (crowdsale *Crowdsale) UnpackFunders(data []byte) (FundersOutput, error) {
181231 }
182232 outstruct.Addr = *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
183233 outstruct.Amount = abi.ConvertType(out[1], new(big.Int)).(*big.Int)
184- return *outstruct, err
185-
234+ return *outstruct, nil
186235}
187236
188237// 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.
190240//
191241// Solidity: function fundingGoal() returns(uint256)
192242func (crowdsale *Crowdsale) PackFundingGoal() []byte {
@@ -197,6 +247,15 @@ func (crowdsale *Crowdsale) PackFundingGoal() []byte {
197247 return enc
198248}
199249
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+
200259// UnpackFundingGoal is the Go binding that unpacks the parameters returned
201260// from invoking the contract method with ID 0x7a3a0e84.
202261//
@@ -207,11 +266,12 @@ func (crowdsale *Crowdsale) UnpackFundingGoal(data []byte) (*big.Int, error) {
207266 return new(big.Int), err
208267 }
209268 out0 := abi.ConvertType(out[0], new(big.Int)).(*big.Int)
210- return out0, err
269+ return out0, nil
211270}
212271
213272// 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.
215275//
216276// Solidity: function price() returns(uint256)
217277func (crowdsale *Crowdsale) PackPrice() []byte {
@@ -222,6 +282,15 @@ func (crowdsale *Crowdsale) PackPrice() []byte {
222282 return enc
223283}
224284
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+
225294// UnpackPrice is the Go binding that unpacks the parameters returned
226295// from invoking the contract method with ID 0xa035b1fe.
227296//
@@ -232,11 +301,12 @@ func (crowdsale *Crowdsale) UnpackPrice(data []byte) (*big.Int, error) {
232301 return new(big.Int), err
233302 }
234303 out0 := abi.ConvertType(out[0], new(big.Int)).(*big.Int)
235- return out0, err
304+ return out0, nil
236305}
237306
238307// 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.
240310//
241311// Solidity: function tokenReward() returns(address)
242312func (crowdsale *Crowdsale) PackTokenReward() []byte {
@@ -247,6 +317,15 @@ func (crowdsale *Crowdsale) PackTokenReward() []byte {
247317 return enc
248318}
249319
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+
250329// UnpackTokenReward is the Go binding that unpacks the parameters returned
251330// from invoking the contract method with ID 0x6e66f6e9.
252331//
@@ -257,7 +336,7 @@ func (crowdsale *Crowdsale) UnpackTokenReward(data []byte) (common.Address, erro
257336 return *new(common.Address), err
258337 }
259338 out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
260- return out0, err
339+ return out0, nil
261340}
262341
263342// CrowdsaleFundTransfer represents a FundTransfer event raised by the Crowdsale contract.
0 commit comments