accounts/abi/abigen: update test bindings

This commit is contained in:
Felix Lange 2025-01-23 13:57:53 +01:00
parent 1013c1c25b
commit 92f6ec13f2
24 changed files with 642 additions and 216 deletions

View file

@ -52,6 +52,10 @@ func (c *CallbackParam) Instance(backend bind.ContractBackend, addr common.Addre
// Test is a free data retrieval call binding the contract method 0xd7a5aba2. // Test is a free data retrieval call binding the contract method 0xd7a5aba2.
// //
// Solidity: function test(function callback) returns() // Solidity: function test(function callback) returns()
func (callbackParam *CallbackParam) PackTest(Callback [24]byte) ([]byte, error) { func (callbackParam *CallbackParam) PackTest(Callback [24]byte) []byte {
return callbackParam.abi.Pack("test", Callback) enc, err := callbackParam.abi.Pack("test", Callback)
if err != nil {
panic(err)
}
return enc
} }

View file

@ -50,15 +50,22 @@ func (c *Crowdsale) Instance(backend bind.ContractBackend, addr common.Address)
} }
func (crowdsale *Crowdsale) PackConstructor(ifSuccessfulSendTo common.Address, fundingGoalInEthers *big.Int, durationInMinutes *big.Int, etherCostOfEachToken *big.Int, addressOfTokenUsedAsReward common.Address) []byte { func (crowdsale *Crowdsale) PackConstructor(ifSuccessfulSendTo common.Address, fundingGoalInEthers *big.Int, durationInMinutes *big.Int, etherCostOfEachToken *big.Int, addressOfTokenUsedAsReward common.Address) []byte {
res, _ := crowdsale.abi.Pack("", ifSuccessfulSendTo, fundingGoalInEthers, durationInMinutes, etherCostOfEachToken, addressOfTokenUsedAsReward) enc, err := crowdsale.abi.Pack("", ifSuccessfulSendTo, fundingGoalInEthers, durationInMinutes, etherCostOfEachToken, addressOfTokenUsedAsReward)
return res if err != nil {
panic(err)
}
return enc
} }
// AmountRaised is a free data retrieval call binding the contract method 0x7b3e5e7b. // AmountRaised is a free data retrieval call binding the contract method 0x7b3e5e7b.
// //
// Solidity: function amountRaised() returns(uint256) // Solidity: function amountRaised() returns(uint256)
func (crowdsale *Crowdsale) PackAmountRaised() ([]byte, error) { func (crowdsale *Crowdsale) PackAmountRaised() []byte {
return crowdsale.abi.Pack("amountRaised") enc, err := crowdsale.abi.Pack("amountRaised")
if err != nil {
panic(err)
}
return enc
} }
func (crowdsale *Crowdsale) UnpackAmountRaised(data []byte) (*big.Int, error) { func (crowdsale *Crowdsale) UnpackAmountRaised(data []byte) (*big.Int, error) {
@ -77,8 +84,12 @@ func (crowdsale *Crowdsale) UnpackAmountRaised(data []byte) (*big.Int, error) {
// Beneficiary is a free data retrieval call binding the contract method 0x38af3eed. // Beneficiary is a free data retrieval call binding the contract method 0x38af3eed.
// //
// Solidity: function beneficiary() returns(address) // Solidity: function beneficiary() returns(address)
func (crowdsale *Crowdsale) PackBeneficiary() ([]byte, error) { func (crowdsale *Crowdsale) PackBeneficiary() []byte {
return crowdsale.abi.Pack("beneficiary") enc, err := crowdsale.abi.Pack("beneficiary")
if err != nil {
panic(err)
}
return enc
} }
func (crowdsale *Crowdsale) UnpackBeneficiary(data []byte) (common.Address, error) { func (crowdsale *Crowdsale) UnpackBeneficiary(data []byte) (common.Address, error) {
@ -97,15 +108,23 @@ func (crowdsale *Crowdsale) UnpackBeneficiary(data []byte) (common.Address, erro
// CheckGoalReached is a free data retrieval call binding the contract method 0x01cb3b20. // CheckGoalReached is a free data retrieval call binding the contract method 0x01cb3b20.
// //
// Solidity: function checkGoalReached() returns() // Solidity: function checkGoalReached() returns()
func (crowdsale *Crowdsale) PackCheckGoalReached() ([]byte, error) { func (crowdsale *Crowdsale) PackCheckGoalReached() []byte {
return crowdsale.abi.Pack("checkGoalReached") enc, err := crowdsale.abi.Pack("checkGoalReached")
if err != nil {
panic(err)
}
return enc
} }
// Deadline is a free data retrieval call binding the contract method 0x29dcb0cf. // Deadline is a free data retrieval call binding the contract method 0x29dcb0cf.
// //
// Solidity: function deadline() returns(uint256) // Solidity: function deadline() returns(uint256)
func (crowdsale *Crowdsale) PackDeadline() ([]byte, error) { func (crowdsale *Crowdsale) PackDeadline() []byte {
return crowdsale.abi.Pack("deadline") enc, err := crowdsale.abi.Pack("deadline")
if err != nil {
panic(err)
}
return enc
} }
func (crowdsale *Crowdsale) UnpackDeadline(data []byte) (*big.Int, error) { func (crowdsale *Crowdsale) UnpackDeadline(data []byte) (*big.Int, error) {
@ -124,8 +143,12 @@ func (crowdsale *Crowdsale) UnpackDeadline(data []byte) (*big.Int, error) {
// Funders is a free data retrieval call binding the contract method 0xdc0d3dff. // Funders is a free data retrieval call binding the contract method 0xdc0d3dff.
// //
// Solidity: function funders(uint256 ) returns(address addr, uint256 amount) // Solidity: function funders(uint256 ) returns(address addr, uint256 amount)
func (crowdsale *Crowdsale) PackFunders(Arg0 *big.Int) ([]byte, error) { func (crowdsale *Crowdsale) PackFunders(Arg0 *big.Int) []byte {
return crowdsale.abi.Pack("funders", Arg0) enc, err := crowdsale.abi.Pack("funders", Arg0)
if err != nil {
panic(err)
}
return enc
} }
type FundersOutput struct { type FundersOutput struct {
@ -152,8 +175,12 @@ func (crowdsale *Crowdsale) UnpackFunders(data []byte) (FundersOutput, error) {
// FundingGoal is a free data retrieval call binding the contract method 0x7a3a0e84. // FundingGoal is a free data retrieval call binding the contract method 0x7a3a0e84.
// //
// Solidity: function fundingGoal() returns(uint256) // Solidity: function fundingGoal() returns(uint256)
func (crowdsale *Crowdsale) PackFundingGoal() ([]byte, error) { func (crowdsale *Crowdsale) PackFundingGoal() []byte {
return crowdsale.abi.Pack("fundingGoal") enc, err := crowdsale.abi.Pack("fundingGoal")
if err != nil {
panic(err)
}
return enc
} }
func (crowdsale *Crowdsale) UnpackFundingGoal(data []byte) (*big.Int, error) { func (crowdsale *Crowdsale) UnpackFundingGoal(data []byte) (*big.Int, error) {
@ -172,8 +199,12 @@ func (crowdsale *Crowdsale) UnpackFundingGoal(data []byte) (*big.Int, error) {
// Price is a free data retrieval call binding the contract method 0xa035b1fe. // Price is a free data retrieval call binding the contract method 0xa035b1fe.
// //
// Solidity: function price() returns(uint256) // Solidity: function price() returns(uint256)
func (crowdsale *Crowdsale) PackPrice() ([]byte, error) { func (crowdsale *Crowdsale) PackPrice() []byte {
return crowdsale.abi.Pack("price") enc, err := crowdsale.abi.Pack("price")
if err != nil {
panic(err)
}
return enc
} }
func (crowdsale *Crowdsale) UnpackPrice(data []byte) (*big.Int, error) { func (crowdsale *Crowdsale) UnpackPrice(data []byte) (*big.Int, error) {
@ -192,8 +223,12 @@ func (crowdsale *Crowdsale) UnpackPrice(data []byte) (*big.Int, error) {
// TokenReward is a free data retrieval call binding the contract method 0x6e66f6e9. // TokenReward is a free data retrieval call binding the contract method 0x6e66f6e9.
// //
// Solidity: function tokenReward() returns(address) // Solidity: function tokenReward() returns(address)
func (crowdsale *Crowdsale) PackTokenReward() ([]byte, error) { func (crowdsale *Crowdsale) PackTokenReward() []byte {
return crowdsale.abi.Pack("tokenReward") enc, err := crowdsale.abi.Pack("tokenReward")
if err != nil {
panic(err)
}
return enc
} }
func (crowdsale *Crowdsale) UnpackTokenReward(data []byte) (common.Address, error) { func (crowdsale *Crowdsale) UnpackTokenReward(data []byte) (common.Address, error) {

View file

@ -50,29 +50,44 @@ func (c *DAO) Instance(backend bind.ContractBackend, addr common.Address) bind.C
} }
func (dAO *DAO) PackConstructor(minimumQuorumForProposals *big.Int, minutesForDebate *big.Int, marginOfVotesForMajority *big.Int, congressLeader common.Address) []byte { func (dAO *DAO) PackConstructor(minimumQuorumForProposals *big.Int, minutesForDebate *big.Int, marginOfVotesForMajority *big.Int, congressLeader common.Address) []byte {
res, _ := dAO.abi.Pack("", minimumQuorumForProposals, minutesForDebate, marginOfVotesForMajority, congressLeader) enc, err := dAO.abi.Pack("", minimumQuorumForProposals, minutesForDebate, marginOfVotesForMajority, congressLeader)
return res if err != nil {
panic(err)
}
return enc
} }
// ChangeMembership is a free data retrieval call binding the contract method 0x9644fcbd. // ChangeMembership is a free data retrieval call binding the contract method 0x9644fcbd.
// //
// Solidity: function changeMembership(address targetMember, bool canVote, string memberName) returns() // Solidity: function changeMembership(address targetMember, bool canVote, string memberName) returns()
func (dAO *DAO) PackChangeMembership(TargetMember common.Address, CanVote bool, MemberName string) ([]byte, error) { func (dAO *DAO) PackChangeMembership(TargetMember common.Address, CanVote bool, MemberName string) []byte {
return dAO.abi.Pack("changeMembership", TargetMember, CanVote, MemberName) enc, err := dAO.abi.Pack("changeMembership", TargetMember, CanVote, MemberName)
if err != nil {
panic(err)
}
return enc
} }
// ChangeVotingRules is a free data retrieval call binding the contract method 0xbcca1fd3. // ChangeVotingRules is a free data retrieval call binding the contract method 0xbcca1fd3.
// //
// Solidity: function changeVotingRules(uint256 minimumQuorumForProposals, uint256 minutesForDebate, int256 marginOfVotesForMajority) returns() // Solidity: function changeVotingRules(uint256 minimumQuorumForProposals, uint256 minutesForDebate, int256 marginOfVotesForMajority) returns()
func (dAO *DAO) PackChangeVotingRules(MinimumQuorumForProposals *big.Int, MinutesForDebate *big.Int, MarginOfVotesForMajority *big.Int) ([]byte, error) { func (dAO *DAO) PackChangeVotingRules(MinimumQuorumForProposals *big.Int, MinutesForDebate *big.Int, MarginOfVotesForMajority *big.Int) []byte {
return dAO.abi.Pack("changeVotingRules", MinimumQuorumForProposals, MinutesForDebate, MarginOfVotesForMajority) enc, err := dAO.abi.Pack("changeVotingRules", MinimumQuorumForProposals, MinutesForDebate, MarginOfVotesForMajority)
if err != nil {
panic(err)
}
return enc
} }
// CheckProposalCode is a free data retrieval call binding the contract method 0xeceb2945. // CheckProposalCode is a free data retrieval call binding the contract method 0xeceb2945.
// //
// Solidity: function checkProposalCode(uint256 proposalNumber, address beneficiary, uint256 etherAmount, bytes transactionBytecode) returns(bool codeChecksOut) // Solidity: function checkProposalCode(uint256 proposalNumber, address beneficiary, uint256 etherAmount, bytes transactionBytecode) returns(bool codeChecksOut)
func (dAO *DAO) PackCheckProposalCode(ProposalNumber *big.Int, Beneficiary common.Address, EtherAmount *big.Int, TransactionBytecode []byte) ([]byte, error) { func (dAO *DAO) PackCheckProposalCode(ProposalNumber *big.Int, Beneficiary common.Address, EtherAmount *big.Int, TransactionBytecode []byte) []byte {
return dAO.abi.Pack("checkProposalCode", ProposalNumber, Beneficiary, EtherAmount, TransactionBytecode) enc, err := dAO.abi.Pack("checkProposalCode", ProposalNumber, Beneficiary, EtherAmount, TransactionBytecode)
if err != nil {
panic(err)
}
return enc
} }
func (dAO *DAO) UnpackCheckProposalCode(data []byte) (bool, error) { func (dAO *DAO) UnpackCheckProposalCode(data []byte) (bool, error) {
@ -91,8 +106,12 @@ func (dAO *DAO) UnpackCheckProposalCode(data []byte) (bool, error) {
// DebatingPeriodInMinutes is a free data retrieval call binding the contract method 0x69bd3436. // DebatingPeriodInMinutes is a free data retrieval call binding the contract method 0x69bd3436.
// //
// Solidity: function debatingPeriodInMinutes() returns(uint256) // Solidity: function debatingPeriodInMinutes() returns(uint256)
func (dAO *DAO) PackDebatingPeriodInMinutes() ([]byte, error) { func (dAO *DAO) PackDebatingPeriodInMinutes() []byte {
return dAO.abi.Pack("debatingPeriodInMinutes") enc, err := dAO.abi.Pack("debatingPeriodInMinutes")
if err != nil {
panic(err)
}
return enc
} }
func (dAO *DAO) UnpackDebatingPeriodInMinutes(data []byte) (*big.Int, error) { func (dAO *DAO) UnpackDebatingPeriodInMinutes(data []byte) (*big.Int, error) {
@ -111,8 +130,12 @@ func (dAO *DAO) UnpackDebatingPeriodInMinutes(data []byte) (*big.Int, error) {
// ExecuteProposal is a free data retrieval call binding the contract method 0x237e9492. // ExecuteProposal is a free data retrieval call binding the contract method 0x237e9492.
// //
// Solidity: function executeProposal(uint256 proposalNumber, bytes transactionBytecode) returns(int256 result) // Solidity: function executeProposal(uint256 proposalNumber, bytes transactionBytecode) returns(int256 result)
func (dAO *DAO) PackExecuteProposal(ProposalNumber *big.Int, TransactionBytecode []byte) ([]byte, error) { func (dAO *DAO) PackExecuteProposal(ProposalNumber *big.Int, TransactionBytecode []byte) []byte {
return dAO.abi.Pack("executeProposal", ProposalNumber, TransactionBytecode) enc, err := dAO.abi.Pack("executeProposal", ProposalNumber, TransactionBytecode)
if err != nil {
panic(err)
}
return enc
} }
func (dAO *DAO) UnpackExecuteProposal(data []byte) (*big.Int, error) { func (dAO *DAO) UnpackExecuteProposal(data []byte) (*big.Int, error) {
@ -131,8 +154,12 @@ func (dAO *DAO) UnpackExecuteProposal(data []byte) (*big.Int, error) {
// MajorityMargin is a free data retrieval call binding the contract method 0xaa02a90f. // MajorityMargin is a free data retrieval call binding the contract method 0xaa02a90f.
// //
// Solidity: function majorityMargin() returns(int256) // Solidity: function majorityMargin() returns(int256)
func (dAO *DAO) PackMajorityMargin() ([]byte, error) { func (dAO *DAO) PackMajorityMargin() []byte {
return dAO.abi.Pack("majorityMargin") enc, err := dAO.abi.Pack("majorityMargin")
if err != nil {
panic(err)
}
return enc
} }
func (dAO *DAO) UnpackMajorityMargin(data []byte) (*big.Int, error) { func (dAO *DAO) UnpackMajorityMargin(data []byte) (*big.Int, error) {
@ -151,8 +178,12 @@ func (dAO *DAO) UnpackMajorityMargin(data []byte) (*big.Int, error) {
// MemberId is a free data retrieval call binding the contract method 0x39106821. // MemberId is a free data retrieval call binding the contract method 0x39106821.
// //
// Solidity: function memberId(address ) returns(uint256) // Solidity: function memberId(address ) returns(uint256)
func (dAO *DAO) PackMemberId(Arg0 common.Address) ([]byte, error) { func (dAO *DAO) PackMemberId(Arg0 common.Address) []byte {
return dAO.abi.Pack("memberId", Arg0) enc, err := dAO.abi.Pack("memberId", Arg0)
if err != nil {
panic(err)
}
return enc
} }
func (dAO *DAO) UnpackMemberId(data []byte) (*big.Int, error) { func (dAO *DAO) UnpackMemberId(data []byte) (*big.Int, error) {
@ -171,8 +202,12 @@ func (dAO *DAO) UnpackMemberId(data []byte) (*big.Int, error) {
// Members is a free data retrieval call binding the contract method 0x5daf08ca. // Members is a free data retrieval call binding the contract method 0x5daf08ca.
// //
// Solidity: function members(uint256 ) returns(address member, bool canVote, string name, uint256 memberSince) // Solidity: function members(uint256 ) returns(address member, bool canVote, string name, uint256 memberSince)
func (dAO *DAO) PackMembers(Arg0 *big.Int) ([]byte, error) { func (dAO *DAO) PackMembers(Arg0 *big.Int) []byte {
return dAO.abi.Pack("members", Arg0) enc, err := dAO.abi.Pack("members", Arg0)
if err != nil {
panic(err)
}
return enc
} }
type MembersOutput struct { type MembersOutput struct {
@ -205,8 +240,12 @@ func (dAO *DAO) UnpackMembers(data []byte) (MembersOutput, error) {
// MinimumQuorum is a free data retrieval call binding the contract method 0x8160f0b5. // MinimumQuorum is a free data retrieval call binding the contract method 0x8160f0b5.
// //
// Solidity: function minimumQuorum() returns(uint256) // Solidity: function minimumQuorum() returns(uint256)
func (dAO *DAO) PackMinimumQuorum() ([]byte, error) { func (dAO *DAO) PackMinimumQuorum() []byte {
return dAO.abi.Pack("minimumQuorum") enc, err := dAO.abi.Pack("minimumQuorum")
if err != nil {
panic(err)
}
return enc
} }
func (dAO *DAO) UnpackMinimumQuorum(data []byte) (*big.Int, error) { func (dAO *DAO) UnpackMinimumQuorum(data []byte) (*big.Int, error) {
@ -225,8 +264,12 @@ func (dAO *DAO) UnpackMinimumQuorum(data []byte) (*big.Int, error) {
// NewProposal is a free data retrieval call binding the contract method 0xb1050da5. // NewProposal is a free data retrieval call binding the contract method 0xb1050da5.
// //
// Solidity: function newProposal(address beneficiary, uint256 etherAmount, string JobDescription, bytes transactionBytecode) returns(uint256 proposalID) // Solidity: function newProposal(address beneficiary, uint256 etherAmount, string JobDescription, bytes transactionBytecode) returns(uint256 proposalID)
func (dAO *DAO) PackNewProposal(Beneficiary common.Address, EtherAmount *big.Int, JobDescription string, TransactionBytecode []byte) ([]byte, error) { func (dAO *DAO) PackNewProposal(Beneficiary common.Address, EtherAmount *big.Int, JobDescription string, TransactionBytecode []byte) []byte {
return dAO.abi.Pack("newProposal", Beneficiary, EtherAmount, JobDescription, TransactionBytecode) enc, err := dAO.abi.Pack("newProposal", Beneficiary, EtherAmount, JobDescription, TransactionBytecode)
if err != nil {
panic(err)
}
return enc
} }
func (dAO *DAO) UnpackNewProposal(data []byte) (*big.Int, error) { func (dAO *DAO) UnpackNewProposal(data []byte) (*big.Int, error) {
@ -245,8 +288,12 @@ func (dAO *DAO) UnpackNewProposal(data []byte) (*big.Int, error) {
// NumProposals is a free data retrieval call binding the contract method 0x400e3949. // NumProposals is a free data retrieval call binding the contract method 0x400e3949.
// //
// Solidity: function numProposals() returns(uint256) // Solidity: function numProposals() returns(uint256)
func (dAO *DAO) PackNumProposals() ([]byte, error) { func (dAO *DAO) PackNumProposals() []byte {
return dAO.abi.Pack("numProposals") enc, err := dAO.abi.Pack("numProposals")
if err != nil {
panic(err)
}
return enc
} }
func (dAO *DAO) UnpackNumProposals(data []byte) (*big.Int, error) { func (dAO *DAO) UnpackNumProposals(data []byte) (*big.Int, error) {
@ -265,8 +312,12 @@ func (dAO *DAO) UnpackNumProposals(data []byte) (*big.Int, error) {
// Owner is a free data retrieval call binding the contract method 0x8da5cb5b. // Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
// //
// Solidity: function owner() returns(address) // Solidity: function owner() returns(address)
func (dAO *DAO) PackOwner() ([]byte, error) { func (dAO *DAO) PackOwner() []byte {
return dAO.abi.Pack("owner") enc, err := dAO.abi.Pack("owner")
if err != nil {
panic(err)
}
return enc
} }
func (dAO *DAO) UnpackOwner(data []byte) (common.Address, error) { func (dAO *DAO) UnpackOwner(data []byte) (common.Address, error) {
@ -285,8 +336,12 @@ func (dAO *DAO) UnpackOwner(data []byte) (common.Address, error) {
// Proposals is a free data retrieval call binding the contract method 0x013cf08b. // Proposals is a free data retrieval call binding the contract method 0x013cf08b.
// //
// Solidity: function proposals(uint256 ) returns(address recipient, uint256 amount, string description, uint256 votingDeadline, bool executed, bool proposalPassed, uint256 numberOfVotes, int256 currentResult, bytes32 proposalHash) // Solidity: function proposals(uint256 ) returns(address recipient, uint256 amount, string description, uint256 votingDeadline, bool executed, bool proposalPassed, uint256 numberOfVotes, int256 currentResult, bytes32 proposalHash)
func (dAO *DAO) PackProposals(Arg0 *big.Int) ([]byte, error) { func (dAO *DAO) PackProposals(Arg0 *big.Int) []byte {
return dAO.abi.Pack("proposals", Arg0) enc, err := dAO.abi.Pack("proposals", Arg0)
if err != nil {
panic(err)
}
return enc
} }
type ProposalsOutput struct { type ProposalsOutput struct {
@ -334,15 +389,23 @@ func (dAO *DAO) UnpackProposals(data []byte) (ProposalsOutput, error) {
// TransferOwnership is a free data retrieval call binding the contract method 0xf2fde38b. // TransferOwnership is a free data retrieval call binding the contract method 0xf2fde38b.
// //
// Solidity: function transferOwnership(address newOwner) returns() // Solidity: function transferOwnership(address newOwner) returns()
func (dAO *DAO) PackTransferOwnership(NewOwner common.Address) ([]byte, error) { func (dAO *DAO) PackTransferOwnership(NewOwner common.Address) []byte {
return dAO.abi.Pack("transferOwnership", NewOwner) enc, err := dAO.abi.Pack("transferOwnership", NewOwner)
if err != nil {
panic(err)
}
return enc
} }
// Vote is a free data retrieval call binding the contract method 0xd3c0715b. // Vote is a free data retrieval call binding the contract method 0xd3c0715b.
// //
// Solidity: function vote(uint256 proposalNumber, bool supportsProposal, string justificationText) returns(uint256 voteID) // Solidity: function vote(uint256 proposalNumber, bool supportsProposal, string justificationText) returns(uint256 voteID)
func (dAO *DAO) PackVote(ProposalNumber *big.Int, SupportsProposal bool, JustificationText string) ([]byte, error) { func (dAO *DAO) PackVote(ProposalNumber *big.Int, SupportsProposal bool, JustificationText string) []byte {
return dAO.abi.Pack("vote", ProposalNumber, SupportsProposal, JustificationText) enc, err := dAO.abi.Pack("vote", ProposalNumber, SupportsProposal, JustificationText)
if err != nil {
panic(err)
}
return enc
} }
func (dAO *DAO) UnpackVote(data []byte) (*big.Int, error) { func (dAO *DAO) UnpackVote(data []byte) (*big.Int, error) {

View file

@ -52,8 +52,12 @@ func (c *DeeplyNestedArray) Instance(backend bind.ContractBackend, addr common.A
// DeepUint64Array is a free data retrieval call binding the contract method 0x98ed1856. // DeepUint64Array is a free data retrieval call binding the contract method 0x98ed1856.
// //
// Solidity: function deepUint64Array(uint256 , uint256 , uint256 ) view returns(uint64) // Solidity: function deepUint64Array(uint256 , uint256 , uint256 ) view returns(uint64)
func (deeplyNestedArray *DeeplyNestedArray) PackDeepUint64Array(Arg0 *big.Int, Arg1 *big.Int, Arg2 *big.Int) ([]byte, error) { func (deeplyNestedArray *DeeplyNestedArray) PackDeepUint64Array(Arg0 *big.Int, Arg1 *big.Int, Arg2 *big.Int) []byte {
return deeplyNestedArray.abi.Pack("deepUint64Array", Arg0, Arg1, Arg2) enc, err := deeplyNestedArray.abi.Pack("deepUint64Array", Arg0, Arg1, Arg2)
if err != nil {
panic(err)
}
return enc
} }
func (deeplyNestedArray *DeeplyNestedArray) UnpackDeepUint64Array(data []byte) (uint64, error) { func (deeplyNestedArray *DeeplyNestedArray) UnpackDeepUint64Array(data []byte) (uint64, error) {
@ -72,8 +76,12 @@ func (deeplyNestedArray *DeeplyNestedArray) UnpackDeepUint64Array(data []byte) (
// RetrieveDeepArray is a free data retrieval call binding the contract method 0x8ed4573a. // RetrieveDeepArray is a free data retrieval call binding the contract method 0x8ed4573a.
// //
// Solidity: function retrieveDeepArray() view returns(uint64[3][4][5]) // Solidity: function retrieveDeepArray() view returns(uint64[3][4][5])
func (deeplyNestedArray *DeeplyNestedArray) PackRetrieveDeepArray() ([]byte, error) { func (deeplyNestedArray *DeeplyNestedArray) PackRetrieveDeepArray() []byte {
return deeplyNestedArray.abi.Pack("retrieveDeepArray") enc, err := deeplyNestedArray.abi.Pack("retrieveDeepArray")
if err != nil {
panic(err)
}
return enc
} }
func (deeplyNestedArray *DeeplyNestedArray) UnpackRetrieveDeepArray(data []byte) ([5][4][3]uint64, error) { func (deeplyNestedArray *DeeplyNestedArray) UnpackRetrieveDeepArray(data []byte) ([5][4][3]uint64, error) {
@ -92,6 +100,10 @@ func (deeplyNestedArray *DeeplyNestedArray) UnpackRetrieveDeepArray(data []byte)
// StoreDeepUintArray is a free data retrieval call binding the contract method 0x34424855. // StoreDeepUintArray is a free data retrieval call binding the contract method 0x34424855.
// //
// Solidity: function storeDeepUintArray(uint64[3][4][5] arr) returns() // Solidity: function storeDeepUintArray(uint64[3][4][5] arr) returns()
func (deeplyNestedArray *DeeplyNestedArray) PackStoreDeepUintArray(Arr [5][4][3]uint64) ([]byte, error) { func (deeplyNestedArray *DeeplyNestedArray) PackStoreDeepUintArray(Arr [5][4][3]uint64) []byte {
return deeplyNestedArray.abi.Pack("storeDeepUintArray", Arr) enc, err := deeplyNestedArray.abi.Pack("storeDeepUintArray", Arr)
if err != nil {
panic(err)
}
return enc
} }

View file

@ -52,8 +52,12 @@ func (c *Getter) Instance(backend bind.ContractBackend, addr common.Address) bin
// Getter is a free data retrieval call binding the contract method 0x993a04b7. // Getter is a free data retrieval call binding the contract method 0x993a04b7.
// //
// Solidity: function getter() returns(string, int256, bytes32) // Solidity: function getter() returns(string, int256, bytes32)
func (getter *Getter) PackGetter() ([]byte, error) { func (getter *Getter) PackGetter() []byte {
return getter.abi.Pack("getter") enc, err := getter.abi.Pack("getter")
if err != nil {
panic(err)
}
return enc
} }
type GetterOutput struct { type GetterOutput struct {

View file

@ -52,8 +52,12 @@ func (c *IdentifierCollision) Instance(backend bind.ContractBackend, addr common
// MyVar is a free data retrieval call binding the contract method 0x4ef1f0ad. // MyVar is a free data retrieval call binding the contract method 0x4ef1f0ad.
// //
// Solidity: function MyVar() view returns(uint256) // Solidity: function MyVar() view returns(uint256)
func (identifierCollision *IdentifierCollision) PackMyVar() ([]byte, error) { func (identifierCollision *IdentifierCollision) PackMyVar() []byte {
return identifierCollision.abi.Pack("MyVar") enc, err := identifierCollision.abi.Pack("MyVar")
if err != nil {
panic(err)
}
return enc
} }
func (identifierCollision *IdentifierCollision) UnpackMyVar(data []byte) (*big.Int, error) { func (identifierCollision *IdentifierCollision) UnpackMyVar(data []byte) (*big.Int, error) {
@ -72,8 +76,12 @@ func (identifierCollision *IdentifierCollision) UnpackMyVar(data []byte) (*big.I
// PubVar is a free data retrieval call binding the contract method 0x01ad4d87. // PubVar is a free data retrieval call binding the contract method 0x01ad4d87.
// //
// Solidity: function _myVar() view returns(uint256) // Solidity: function _myVar() view returns(uint256)
func (identifierCollision *IdentifierCollision) PackPubVar() ([]byte, error) { func (identifierCollision *IdentifierCollision) PackPubVar() []byte {
return identifierCollision.abi.Pack("_myVar") enc, err := identifierCollision.abi.Pack("_myVar")
if err != nil {
panic(err)
}
return enc
} }
func (identifierCollision *IdentifierCollision) UnpackPubVar(data []byte) (*big.Int, error) { func (identifierCollision *IdentifierCollision) UnpackPubVar(data []byte) (*big.Int, error) {

View file

@ -51,41 +51,65 @@ func (c *InputChecker) Instance(backend bind.ContractBackend, addr common.Addres
// AnonInput is a free data retrieval call binding the contract method 0x3e708e82. // AnonInput is a free data retrieval call binding the contract method 0x3e708e82.
// //
// Solidity: function anonInput(string ) returns() // Solidity: function anonInput(string ) returns()
func (inputChecker *InputChecker) PackAnonInput(Arg0 string) ([]byte, error) { func (inputChecker *InputChecker) PackAnonInput(Arg0 string) []byte {
return inputChecker.abi.Pack("anonInput", Arg0) enc, err := inputChecker.abi.Pack("anonInput", Arg0)
if err != nil {
panic(err)
}
return enc
} }
// AnonInputs is a free data retrieval call binding the contract method 0x28160527. // AnonInputs is a free data retrieval call binding the contract method 0x28160527.
// //
// Solidity: function anonInputs(string , string ) returns() // Solidity: function anonInputs(string , string ) returns()
func (inputChecker *InputChecker) PackAnonInputs(Arg0 string, Arg1 string) ([]byte, error) { func (inputChecker *InputChecker) PackAnonInputs(Arg0 string, Arg1 string) []byte {
return inputChecker.abi.Pack("anonInputs", Arg0, Arg1) enc, err := inputChecker.abi.Pack("anonInputs", Arg0, Arg1)
if err != nil {
panic(err)
}
return enc
} }
// MixedInputs is a free data retrieval call binding the contract method 0xc689ebdc. // MixedInputs is a free data retrieval call binding the contract method 0xc689ebdc.
// //
// Solidity: function mixedInputs(string , string str) returns() // Solidity: function mixedInputs(string , string str) returns()
func (inputChecker *InputChecker) PackMixedInputs(Arg0 string, Str string) ([]byte, error) { func (inputChecker *InputChecker) PackMixedInputs(Arg0 string, Str string) []byte {
return inputChecker.abi.Pack("mixedInputs", Arg0, Str) enc, err := inputChecker.abi.Pack("mixedInputs", Arg0, Str)
if err != nil {
panic(err)
}
return enc
} }
// NamedInput is a free data retrieval call binding the contract method 0x0d402005. // NamedInput is a free data retrieval call binding the contract method 0x0d402005.
// //
// Solidity: function namedInput(string str) returns() // Solidity: function namedInput(string str) returns()
func (inputChecker *InputChecker) PackNamedInput(Str string) ([]byte, error) { func (inputChecker *InputChecker) PackNamedInput(Str string) []byte {
return inputChecker.abi.Pack("namedInput", Str) enc, err := inputChecker.abi.Pack("namedInput", Str)
if err != nil {
panic(err)
}
return enc
} }
// NamedInputs is a free data retrieval call binding the contract method 0x63c796ed. // NamedInputs is a free data retrieval call binding the contract method 0x63c796ed.
// //
// Solidity: function namedInputs(string str1, string str2) returns() // Solidity: function namedInputs(string str1, string str2) returns()
func (inputChecker *InputChecker) PackNamedInputs(Str1 string, Str2 string) ([]byte, error) { func (inputChecker *InputChecker) PackNamedInputs(Str1 string, Str2 string) []byte {
return inputChecker.abi.Pack("namedInputs", Str1, Str2) enc, err := inputChecker.abi.Pack("namedInputs", Str1, Str2)
if err != nil {
panic(err)
}
return enc
} }
// NoInput is a free data retrieval call binding the contract method 0x53539029. // NoInput is a free data retrieval call binding the contract method 0x53539029.
// //
// Solidity: function noInput() returns() // Solidity: function noInput() returns()
func (inputChecker *InputChecker) PackNoInput() ([]byte, error) { func (inputChecker *InputChecker) PackNoInput() []byte {
return inputChecker.abi.Pack("noInput") enc, err := inputChecker.abi.Pack("noInput")
if err != nil {
panic(err)
}
return enc
} }

View file

@ -50,15 +50,22 @@ func (c *Interactor) Instance(backend bind.ContractBackend, addr common.Address)
} }
func (interactor *Interactor) PackConstructor(str string) []byte { func (interactor *Interactor) PackConstructor(str string) []byte {
res, _ := interactor.abi.Pack("", str) enc, err := interactor.abi.Pack("", str)
return res if err != nil {
panic(err)
}
return enc
} }
// DeployString is a free data retrieval call binding the contract method 0x6874e809. // DeployString is a free data retrieval call binding the contract method 0x6874e809.
// //
// Solidity: function deployString() returns(string) // Solidity: function deployString() returns(string)
func (interactor *Interactor) PackDeployString() ([]byte, error) { func (interactor *Interactor) PackDeployString() []byte {
return interactor.abi.Pack("deployString") enc, err := interactor.abi.Pack("deployString")
if err != nil {
panic(err)
}
return enc
} }
func (interactor *Interactor) UnpackDeployString(data []byte) (string, error) { func (interactor *Interactor) UnpackDeployString(data []byte) (string, error) {
@ -77,15 +84,23 @@ func (interactor *Interactor) UnpackDeployString(data []byte) (string, error) {
// Transact is a free data retrieval call binding the contract method 0xd736c513. // Transact is a free data retrieval call binding the contract method 0xd736c513.
// //
// Solidity: function transact(string str) returns() // Solidity: function transact(string str) returns()
func (interactor *Interactor) PackTransact(Str string) ([]byte, error) { func (interactor *Interactor) PackTransact(Str string) []byte {
return interactor.abi.Pack("transact", Str) enc, err := interactor.abi.Pack("transact", Str)
if err != nil {
panic(err)
}
return enc
} }
// TransactString is a free data retrieval call binding the contract method 0x0d86a0e1. // TransactString is a free data retrieval call binding the contract method 0x0d86a0e1.
// //
// Solidity: function transactString() returns(string) // Solidity: function transactString() returns(string)
func (interactor *Interactor) PackTransactString() ([]byte, error) { func (interactor *Interactor) PackTransactString() []byte {
return interactor.abi.Pack("transactString") enc, err := interactor.abi.Pack("transactString")
if err != nil {
panic(err)
}
return enc
} }
func (interactor *Interactor) UnpackTransactString(data []byte) (string, error) { func (interactor *Interactor) UnpackTransactString(data []byte) (string, error) {

View file

@ -58,15 +58,23 @@ func (c *NameConflict) Instance(backend bind.ContractBackend, addr common.Addres
// AddRequest is a free data retrieval call binding the contract method 0xcce7b048. // AddRequest is a free data retrieval call binding the contract method 0xcce7b048.
// //
// Solidity: function addRequest((bytes,bytes) req) pure returns() // Solidity: function addRequest((bytes,bytes) req) pure returns()
func (nameConflict *NameConflict) PackAddRequest(Req Oraclerequest) ([]byte, error) { func (nameConflict *NameConflict) PackAddRequest(Req Oraclerequest) []byte {
return nameConflict.abi.Pack("addRequest", Req) enc, err := nameConflict.abi.Pack("addRequest", Req)
if err != nil {
panic(err)
}
return enc
} }
// GetRequest is a free data retrieval call binding the contract method 0xc2bb515f. // GetRequest is a free data retrieval call binding the contract method 0xc2bb515f.
// //
// Solidity: function getRequest() pure returns((bytes,bytes)) // Solidity: function getRequest() pure returns((bytes,bytes))
func (nameConflict *NameConflict) PackGetRequest() ([]byte, error) { func (nameConflict *NameConflict) PackGetRequest() []byte {
return nameConflict.abi.Pack("getRequest") enc, err := nameConflict.abi.Pack("getRequest")
if err != nil {
panic(err)
}
return enc
} }
func (nameConflict *NameConflict) UnpackGetRequest(data []byte) (Oraclerequest, error) { func (nameConflict *NameConflict) UnpackGetRequest(data []byte) (Oraclerequest, error) {

View file

@ -52,22 +52,34 @@ func (c *NumericMethodName) Instance(backend bind.ContractBackend, addr common.A
// E1test is a free data retrieval call binding the contract method 0xffa02795. // E1test is a free data retrieval call binding the contract method 0xffa02795.
// //
// Solidity: function _1test() pure returns() // Solidity: function _1test() pure returns()
func (numericMethodName *NumericMethodName) PackE1test() ([]byte, error) { func (numericMethodName *NumericMethodName) PackE1test() []byte {
return numericMethodName.abi.Pack("_1test") enc, err := numericMethodName.abi.Pack("_1test")
if err != nil {
panic(err)
}
return enc
} }
// E1test0 is a free data retrieval call binding the contract method 0xd02767c7. // E1test0 is a free data retrieval call binding the contract method 0xd02767c7.
// //
// Solidity: function __1test() pure returns() // Solidity: function __1test() pure returns()
func (numericMethodName *NumericMethodName) PackE1test0() ([]byte, error) { func (numericMethodName *NumericMethodName) PackE1test0() []byte {
return numericMethodName.abi.Pack("__1test") enc, err := numericMethodName.abi.Pack("__1test")
if err != nil {
panic(err)
}
return enc
} }
// E2test is a free data retrieval call binding the contract method 0x9d993132. // E2test is a free data retrieval call binding the contract method 0x9d993132.
// //
// Solidity: function __2test() pure returns() // Solidity: function __2test() pure returns()
func (numericMethodName *NumericMethodName) PackE2test() ([]byte, error) { func (numericMethodName *NumericMethodName) PackE2test() []byte {
return numericMethodName.abi.Pack("__2test") enc, err := numericMethodName.abi.Pack("__2test")
if err != nil {
panic(err)
}
return enc
} }
// NumericMethodNameE1TestEvent represents a E1TestEvent event raised by the NumericMethodName contract. // NumericMethodNameE1TestEvent represents a E1TestEvent event raised by the NumericMethodName contract.

View file

@ -51,8 +51,12 @@ func (c *OutputChecker) Instance(backend bind.ContractBackend, addr common.Addre
// AnonOutput is a free data retrieval call binding the contract method 0x008bda05. // AnonOutput is a free data retrieval call binding the contract method 0x008bda05.
// //
// Solidity: function anonOutput() returns(string) // Solidity: function anonOutput() returns(string)
func (outputChecker *OutputChecker) PackAnonOutput() ([]byte, error) { func (outputChecker *OutputChecker) PackAnonOutput() []byte {
return outputChecker.abi.Pack("anonOutput") enc, err := outputChecker.abi.Pack("anonOutput")
if err != nil {
panic(err)
}
return enc
} }
func (outputChecker *OutputChecker) UnpackAnonOutput(data []byte) (string, error) { func (outputChecker *OutputChecker) UnpackAnonOutput(data []byte) (string, error) {
@ -71,8 +75,12 @@ func (outputChecker *OutputChecker) UnpackAnonOutput(data []byte) (string, error
// AnonOutputs is a free data retrieval call binding the contract method 0x3c401115. // AnonOutputs is a free data retrieval call binding the contract method 0x3c401115.
// //
// Solidity: function anonOutputs() returns(string, string) // Solidity: function anonOutputs() returns(string, string)
func (outputChecker *OutputChecker) PackAnonOutputs() ([]byte, error) { func (outputChecker *OutputChecker) PackAnonOutputs() []byte {
return outputChecker.abi.Pack("anonOutputs") enc, err := outputChecker.abi.Pack("anonOutputs")
if err != nil {
panic(err)
}
return enc
} }
type AnonOutputsOutput struct { type AnonOutputsOutput struct {
@ -99,8 +107,12 @@ func (outputChecker *OutputChecker) UnpackAnonOutputs(data []byte) (AnonOutputsO
// CollidingOutputs is a free data retrieval call binding the contract method 0xeccbc1ee. // CollidingOutputs is a free data retrieval call binding the contract method 0xeccbc1ee.
// //
// Solidity: function collidingOutputs() returns(string str, string Str) // Solidity: function collidingOutputs() returns(string str, string Str)
func (outputChecker *OutputChecker) PackCollidingOutputs() ([]byte, error) { func (outputChecker *OutputChecker) PackCollidingOutputs() []byte {
return outputChecker.abi.Pack("collidingOutputs") enc, err := outputChecker.abi.Pack("collidingOutputs")
if err != nil {
panic(err)
}
return enc
} }
type CollidingOutputsOutput struct { type CollidingOutputsOutput struct {
@ -127,8 +139,12 @@ func (outputChecker *OutputChecker) UnpackCollidingOutputs(data []byte) (Collidi
// MixedOutputs is a free data retrieval call binding the contract method 0x21b77b44. // MixedOutputs is a free data retrieval call binding the contract method 0x21b77b44.
// //
// Solidity: function mixedOutputs() returns(string, string str) // Solidity: function mixedOutputs() returns(string, string str)
func (outputChecker *OutputChecker) PackMixedOutputs() ([]byte, error) { func (outputChecker *OutputChecker) PackMixedOutputs() []byte {
return outputChecker.abi.Pack("mixedOutputs") enc, err := outputChecker.abi.Pack("mixedOutputs")
if err != nil {
panic(err)
}
return enc
} }
type MixedOutputsOutput struct { type MixedOutputsOutput struct {
@ -155,8 +171,12 @@ func (outputChecker *OutputChecker) UnpackMixedOutputs(data []byte) (MixedOutput
// NamedOutput is a free data retrieval call binding the contract method 0x5e632bd5. // NamedOutput is a free data retrieval call binding the contract method 0x5e632bd5.
// //
// Solidity: function namedOutput() returns(string str) // Solidity: function namedOutput() returns(string str)
func (outputChecker *OutputChecker) PackNamedOutput() ([]byte, error) { func (outputChecker *OutputChecker) PackNamedOutput() []byte {
return outputChecker.abi.Pack("namedOutput") enc, err := outputChecker.abi.Pack("namedOutput")
if err != nil {
panic(err)
}
return enc
} }
func (outputChecker *OutputChecker) UnpackNamedOutput(data []byte) (string, error) { func (outputChecker *OutputChecker) UnpackNamedOutput(data []byte) (string, error) {
@ -175,8 +195,12 @@ func (outputChecker *OutputChecker) UnpackNamedOutput(data []byte) (string, erro
// NamedOutputs is a free data retrieval call binding the contract method 0x7970a189. // NamedOutputs is a free data retrieval call binding the contract method 0x7970a189.
// //
// Solidity: function namedOutputs() returns(string str1, string str2) // Solidity: function namedOutputs() returns(string str1, string str2)
func (outputChecker *OutputChecker) PackNamedOutputs() ([]byte, error) { func (outputChecker *OutputChecker) PackNamedOutputs() []byte {
return outputChecker.abi.Pack("namedOutputs") enc, err := outputChecker.abi.Pack("namedOutputs")
if err != nil {
panic(err)
}
return enc
} }
type NamedOutputsOutput struct { type NamedOutputsOutput struct {
@ -203,6 +227,10 @@ func (outputChecker *OutputChecker) UnpackNamedOutputs(data []byte) (NamedOutput
// NoOutput is a free data retrieval call binding the contract method 0x625f0306. // NoOutput is a free data retrieval call binding the contract method 0x625f0306.
// //
// Solidity: function noOutput() returns() // Solidity: function noOutput() returns()
func (outputChecker *OutputChecker) PackNoOutput() ([]byte, error) { func (outputChecker *OutputChecker) PackNoOutput() []byte {
return outputChecker.abi.Pack("noOutput") enc, err := outputChecker.abi.Pack("noOutput")
if err != nil {
panic(err)
}
return enc
} }

View file

@ -52,15 +52,23 @@ func (c *Overload) Instance(backend bind.ContractBackend, addr common.Address) b
// Foo is a free data retrieval call binding the contract method 0x04bc52f8. // Foo is a free data retrieval call binding the contract method 0x04bc52f8.
// //
// Solidity: function foo(uint256 i, uint256 j) returns() // Solidity: function foo(uint256 i, uint256 j) returns()
func (overload *Overload) PackFoo(I *big.Int, J *big.Int) ([]byte, error) { func (overload *Overload) PackFoo(I *big.Int, J *big.Int) []byte {
return overload.abi.Pack("foo", I, J) enc, err := overload.abi.Pack("foo", I, J)
if err != nil {
panic(err)
}
return enc
} }
// Foo0 is a free data retrieval call binding the contract method 0x2fbebd38. // Foo0 is a free data retrieval call binding the contract method 0x2fbebd38.
// //
// Solidity: function foo(uint256 i) returns() // Solidity: function foo(uint256 i) returns()
func (overload *Overload) PackFoo0(I *big.Int) ([]byte, error) { func (overload *Overload) PackFoo0(I *big.Int) []byte {
return overload.abi.Pack("foo0", I) enc, err := overload.abi.Pack("foo0", I)
if err != nil {
panic(err)
}
return enc
} }
// OverloadBar represents a Bar event raised by the Overload contract. // OverloadBar represents a Bar event raised by the Overload contract.

View file

@ -52,6 +52,10 @@ func (c *RangeKeyword) Instance(backend bind.ContractBackend, addr common.Addres
// FunctionWithKeywordParameter is a free data retrieval call binding the contract method 0x527a119f. // FunctionWithKeywordParameter is a free data retrieval call binding the contract method 0x527a119f.
// //
// Solidity: function functionWithKeywordParameter(uint256 range) pure returns() // Solidity: function functionWithKeywordParameter(uint256 range) pure returns()
func (rangeKeyword *RangeKeyword) PackFunctionWithKeywordParameter(Arg0 *big.Int) ([]byte, error) { func (rangeKeyword *RangeKeyword) PackFunctionWithKeywordParameter(Arg0 *big.Int) []byte {
return rangeKeyword.abi.Pack("functionWithKeywordParameter", Arg0) enc, err := rangeKeyword.abi.Pack("functionWithKeywordParameter", Arg0)
if err != nil {
panic(err)
}
return enc
} }

View file

@ -52,8 +52,12 @@ func (c *Slicer) Instance(backend bind.ContractBackend, addr common.Address) bin
// EchoAddresses is a free data retrieval call binding the contract method 0xbe1127a3. // EchoAddresses is a free data retrieval call binding the contract method 0xbe1127a3.
// //
// Solidity: function echoAddresses(address[] input) returns(address[] output) // Solidity: function echoAddresses(address[] input) returns(address[] output)
func (slicer *Slicer) PackEchoAddresses(Input []common.Address) ([]byte, error) { func (slicer *Slicer) PackEchoAddresses(Input []common.Address) []byte {
return slicer.abi.Pack("echoAddresses", Input) enc, err := slicer.abi.Pack("echoAddresses", Input)
if err != nil {
panic(err)
}
return enc
} }
func (slicer *Slicer) UnpackEchoAddresses(data []byte) ([]common.Address, error) { func (slicer *Slicer) UnpackEchoAddresses(data []byte) ([]common.Address, error) {
@ -72,8 +76,12 @@ func (slicer *Slicer) UnpackEchoAddresses(data []byte) ([]common.Address, error)
// EchoBools is a free data retrieval call binding the contract method 0xf637e589. // EchoBools is a free data retrieval call binding the contract method 0xf637e589.
// //
// Solidity: function echoBools(bool[] input) returns(bool[] output) // Solidity: function echoBools(bool[] input) returns(bool[] output)
func (slicer *Slicer) PackEchoBools(Input []bool) ([]byte, error) { func (slicer *Slicer) PackEchoBools(Input []bool) []byte {
return slicer.abi.Pack("echoBools", Input) enc, err := slicer.abi.Pack("echoBools", Input)
if err != nil {
panic(err)
}
return enc
} }
func (slicer *Slicer) UnpackEchoBools(data []byte) ([]bool, error) { func (slicer *Slicer) UnpackEchoBools(data []byte) ([]bool, error) {
@ -92,8 +100,12 @@ func (slicer *Slicer) UnpackEchoBools(data []byte) ([]bool, error) {
// EchoFancyInts is a free data retrieval call binding the contract method 0xd88becc0. // EchoFancyInts is a free data retrieval call binding the contract method 0xd88becc0.
// //
// Solidity: function echoFancyInts(uint24[23] input) returns(uint24[23] output) // Solidity: function echoFancyInts(uint24[23] input) returns(uint24[23] output)
func (slicer *Slicer) PackEchoFancyInts(Input [23]*big.Int) ([]byte, error) { func (slicer *Slicer) PackEchoFancyInts(Input [23]*big.Int) []byte {
return slicer.abi.Pack("echoFancyInts", Input) enc, err := slicer.abi.Pack("echoFancyInts", Input)
if err != nil {
panic(err)
}
return enc
} }
func (slicer *Slicer) UnpackEchoFancyInts(data []byte) ([23]*big.Int, error) { func (slicer *Slicer) UnpackEchoFancyInts(data []byte) ([23]*big.Int, error) {
@ -112,8 +124,12 @@ func (slicer *Slicer) UnpackEchoFancyInts(data []byte) ([23]*big.Int, error) {
// EchoInts is a free data retrieval call binding the contract method 0xe15a3db7. // EchoInts is a free data retrieval call binding the contract method 0xe15a3db7.
// //
// Solidity: function echoInts(int256[] input) returns(int256[] output) // Solidity: function echoInts(int256[] input) returns(int256[] output)
func (slicer *Slicer) PackEchoInts(Input []*big.Int) ([]byte, error) { func (slicer *Slicer) PackEchoInts(Input []*big.Int) []byte {
return slicer.abi.Pack("echoInts", Input) enc, err := slicer.abi.Pack("echoInts", Input)
if err != nil {
panic(err)
}
return enc
} }
func (slicer *Slicer) UnpackEchoInts(data []byte) ([]*big.Int, error) { func (slicer *Slicer) UnpackEchoInts(data []byte) ([]*big.Int, error) {

View file

@ -57,8 +57,12 @@ func (c *Structs) Instance(backend bind.ContractBackend, addr common.Address) bi
// F is a free data retrieval call binding the contract method 0x28811f59. // F is a free data retrieval call binding the contract method 0x28811f59.
// //
// Solidity: function F() view returns((bytes32)[] a, uint256[] c, bool[] d) // Solidity: function F() view returns((bytes32)[] a, uint256[] c, bool[] d)
func (structs *Structs) PackF() ([]byte, error) { func (structs *Structs) PackF() []byte {
return structs.abi.Pack("F") enc, err := structs.abi.Pack("F")
if err != nil {
panic(err)
}
return enc
} }
type FOutput struct { type FOutput struct {
@ -88,8 +92,12 @@ func (structs *Structs) UnpackF(data []byte) (FOutput, error) {
// G is a free data retrieval call binding the contract method 0x6fecb623. // G is a free data retrieval call binding the contract method 0x6fecb623.
// //
// Solidity: function G() view returns((bytes32)[] a) // Solidity: function G() view returns((bytes32)[] a)
func (structs *Structs) PackG() ([]byte, error) { func (structs *Structs) PackG() []byte {
return structs.abi.Pack("G") enc, err := structs.abi.Pack("G")
if err != nil {
panic(err)
}
return enc
} }
func (structs *Structs) UnpackG(data []byte) ([]Struct0, error) { func (structs *Structs) UnpackG(data []byte) ([]Struct0, error) {

View file

@ -50,15 +50,22 @@ func (c *Token) Instance(backend bind.ContractBackend, addr common.Address) bind
} }
func (token *Token) PackConstructor(initialSupply *big.Int, tokenName string, decimalUnits uint8, tokenSymbol string) []byte { func (token *Token) PackConstructor(initialSupply *big.Int, tokenName string, decimalUnits uint8, tokenSymbol string) []byte {
res, _ := token.abi.Pack("", initialSupply, tokenName, decimalUnits, tokenSymbol) enc, err := token.abi.Pack("", initialSupply, tokenName, decimalUnits, tokenSymbol)
return res if err != nil {
panic(err)
}
return enc
} }
// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. // Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
// //
// Solidity: function allowance(address , address ) returns(uint256) // Solidity: function allowance(address , address ) returns(uint256)
func (token *Token) PackAllowance(Arg0 common.Address, Arg1 common.Address) ([]byte, error) { func (token *Token) PackAllowance(Arg0 common.Address, Arg1 common.Address) []byte {
return token.abi.Pack("allowance", Arg0, Arg1) enc, err := token.abi.Pack("allowance", Arg0, Arg1)
if err != nil {
panic(err)
}
return enc
} }
func (token *Token) UnpackAllowance(data []byte) (*big.Int, error) { func (token *Token) UnpackAllowance(data []byte) (*big.Int, error) {
@ -77,8 +84,12 @@ func (token *Token) UnpackAllowance(data []byte) (*big.Int, error) {
// ApproveAndCall is a free data retrieval call binding the contract method 0xcae9ca51. // ApproveAndCall is a free data retrieval call binding the contract method 0xcae9ca51.
// //
// Solidity: function approveAndCall(address _spender, uint256 _value, bytes _extraData) returns(bool success) // Solidity: function approveAndCall(address _spender, uint256 _value, bytes _extraData) returns(bool success)
func (token *Token) PackApproveAndCall(Spender common.Address, Value *big.Int, ExtraData []byte) ([]byte, error) { func (token *Token) PackApproveAndCall(Spender common.Address, Value *big.Int, ExtraData []byte) []byte {
return token.abi.Pack("approveAndCall", Spender, Value, ExtraData) enc, err := token.abi.Pack("approveAndCall", Spender, Value, ExtraData)
if err != nil {
panic(err)
}
return enc
} }
func (token *Token) UnpackApproveAndCall(data []byte) (bool, error) { func (token *Token) UnpackApproveAndCall(data []byte) (bool, error) {
@ -97,8 +108,12 @@ func (token *Token) UnpackApproveAndCall(data []byte) (bool, error) {
// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. // BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
// //
// Solidity: function balanceOf(address ) returns(uint256) // Solidity: function balanceOf(address ) returns(uint256)
func (token *Token) PackBalanceOf(Arg0 common.Address) ([]byte, error) { func (token *Token) PackBalanceOf(Arg0 common.Address) []byte {
return token.abi.Pack("balanceOf", Arg0) enc, err := token.abi.Pack("balanceOf", Arg0)
if err != nil {
panic(err)
}
return enc
} }
func (token *Token) UnpackBalanceOf(data []byte) (*big.Int, error) { func (token *Token) UnpackBalanceOf(data []byte) (*big.Int, error) {
@ -117,8 +132,12 @@ func (token *Token) UnpackBalanceOf(data []byte) (*big.Int, error) {
// Decimals is a free data retrieval call binding the contract method 0x313ce567. // Decimals is a free data retrieval call binding the contract method 0x313ce567.
// //
// Solidity: function decimals() returns(uint8) // Solidity: function decimals() returns(uint8)
func (token *Token) PackDecimals() ([]byte, error) { func (token *Token) PackDecimals() []byte {
return token.abi.Pack("decimals") enc, err := token.abi.Pack("decimals")
if err != nil {
panic(err)
}
return enc
} }
func (token *Token) UnpackDecimals(data []byte) (uint8, error) { func (token *Token) UnpackDecimals(data []byte) (uint8, error) {
@ -137,8 +156,12 @@ func (token *Token) UnpackDecimals(data []byte) (uint8, error) {
// Name is a free data retrieval call binding the contract method 0x06fdde03. // Name is a free data retrieval call binding the contract method 0x06fdde03.
// //
// Solidity: function name() returns(string) // Solidity: function name() returns(string)
func (token *Token) PackName() ([]byte, error) { func (token *Token) PackName() []byte {
return token.abi.Pack("name") enc, err := token.abi.Pack("name")
if err != nil {
panic(err)
}
return enc
} }
func (token *Token) UnpackName(data []byte) (string, error) { func (token *Token) UnpackName(data []byte) (string, error) {
@ -157,8 +180,12 @@ func (token *Token) UnpackName(data []byte) (string, error) {
// SpentAllowance is a free data retrieval call binding the contract method 0xdc3080f2. // SpentAllowance is a free data retrieval call binding the contract method 0xdc3080f2.
// //
// Solidity: function spentAllowance(address , address ) returns(uint256) // Solidity: function spentAllowance(address , address ) returns(uint256)
func (token *Token) PackSpentAllowance(Arg0 common.Address, Arg1 common.Address) ([]byte, error) { func (token *Token) PackSpentAllowance(Arg0 common.Address, Arg1 common.Address) []byte {
return token.abi.Pack("spentAllowance", Arg0, Arg1) enc, err := token.abi.Pack("spentAllowance", Arg0, Arg1)
if err != nil {
panic(err)
}
return enc
} }
func (token *Token) UnpackSpentAllowance(data []byte) (*big.Int, error) { func (token *Token) UnpackSpentAllowance(data []byte) (*big.Int, error) {
@ -177,8 +204,12 @@ func (token *Token) UnpackSpentAllowance(data []byte) (*big.Int, error) {
// Symbol is a free data retrieval call binding the contract method 0x95d89b41. // Symbol is a free data retrieval call binding the contract method 0x95d89b41.
// //
// Solidity: function symbol() returns(string) // Solidity: function symbol() returns(string)
func (token *Token) PackSymbol() ([]byte, error) { func (token *Token) PackSymbol() []byte {
return token.abi.Pack("symbol") enc, err := token.abi.Pack("symbol")
if err != nil {
panic(err)
}
return enc
} }
func (token *Token) UnpackSymbol(data []byte) (string, error) { func (token *Token) UnpackSymbol(data []byte) (string, error) {
@ -197,15 +228,23 @@ func (token *Token) UnpackSymbol(data []byte) (string, error) {
// Transfer is a free data retrieval call binding the contract method 0xa9059cbb. // Transfer is a free data retrieval call binding the contract method 0xa9059cbb.
// //
// Solidity: function transfer(address _to, uint256 _value) returns() // Solidity: function transfer(address _to, uint256 _value) returns()
func (token *Token) PackTransfer(To common.Address, Value *big.Int) ([]byte, error) { func (token *Token) PackTransfer(To common.Address, Value *big.Int) []byte {
return token.abi.Pack("transfer", To, Value) enc, err := token.abi.Pack("transfer", To, Value)
if err != nil {
panic(err)
}
return enc
} }
// TransferFrom is a free data retrieval call binding the contract method 0x23b872dd. // TransferFrom is a free data retrieval call binding the contract method 0x23b872dd.
// //
// Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool success) // Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool success)
func (token *Token) PackTransferFrom(From common.Address, To common.Address, Value *big.Int) ([]byte, error) { func (token *Token) PackTransferFrom(From common.Address, To common.Address, Value *big.Int) []byte {
return token.abi.Pack("transferFrom", From, To, Value) enc, err := token.abi.Pack("transferFrom", From, To, Value)
if err != nil {
panic(err)
}
return enc
} }
func (token *Token) UnpackTransferFrom(data []byte) (bool, error) { func (token *Token) UnpackTransferFrom(data []byte) (bool, error) {

View file

@ -77,8 +77,12 @@ func (c *Tuple) Instance(backend bind.ContractBackend, addr common.Address) bind
// Func1 is a free data retrieval call binding the contract method 0x443c79b4. // Func1 is a free data retrieval call binding the contract method 0x443c79b4.
// //
// Solidity: function func1((uint256,uint256[],(uint256,uint256)[]) a, (uint256,uint256)[2][] b, (uint256,uint256)[][2] c, (uint256,uint256[],(uint256,uint256)[])[] d, uint256[] e) pure returns((uint256,uint256[],(uint256,uint256)[]), (uint256,uint256)[2][], (uint256,uint256)[][2], (uint256,uint256[],(uint256,uint256)[])[], uint256[]) // Solidity: function func1((uint256,uint256[],(uint256,uint256)[]) a, (uint256,uint256)[2][] b, (uint256,uint256)[][2] c, (uint256,uint256[],(uint256,uint256)[])[] d, uint256[] e) pure returns((uint256,uint256[],(uint256,uint256)[]), (uint256,uint256)[2][], (uint256,uint256)[][2], (uint256,uint256[],(uint256,uint256)[])[], uint256[])
func (tuple *Tuple) PackFunc1(A TupleS, B [][2]TupleT, C [2][]TupleT, D []TupleS, E []*big.Int) ([]byte, error) { func (tuple *Tuple) PackFunc1(A TupleS, B [][2]TupleT, C [2][]TupleT, D []TupleS, E []*big.Int) []byte {
return tuple.abi.Pack("func1", A, B, C, D, E) enc, err := tuple.abi.Pack("func1", A, B, C, D, E)
if err != nil {
panic(err)
}
return enc
} }
type Func1Output struct { type Func1Output struct {
@ -114,15 +118,23 @@ func (tuple *Tuple) UnpackFunc1(data []byte) (Func1Output, error) {
// Func2 is a free data retrieval call binding the contract method 0xd0062cdd. // Func2 is a free data retrieval call binding the contract method 0xd0062cdd.
// //
// Solidity: function func2((uint256,uint256[],(uint256,uint256)[]) a, (uint256,uint256)[2][] b, (uint256,uint256)[][2] c, (uint256,uint256[],(uint256,uint256)[])[] d, uint256[] e) returns() // Solidity: function func2((uint256,uint256[],(uint256,uint256)[]) a, (uint256,uint256)[2][] b, (uint256,uint256)[][2] c, (uint256,uint256[],(uint256,uint256)[])[] d, uint256[] e) returns()
func (tuple *Tuple) PackFunc2(A TupleS, B [][2]TupleT, C [2][]TupleT, D []TupleS, E []*big.Int) ([]byte, error) { func (tuple *Tuple) PackFunc2(A TupleS, B [][2]TupleT, C [2][]TupleT, D []TupleS, E []*big.Int) []byte {
return tuple.abi.Pack("func2", A, B, C, D, E) enc, err := tuple.abi.Pack("func2", A, B, C, D, E)
if err != nil {
panic(err)
}
return enc
} }
// Func3 is a free data retrieval call binding the contract method 0xe4d9a43b. // Func3 is a free data retrieval call binding the contract method 0xe4d9a43b.
// //
// Solidity: function func3((uint16,uint16)[] ) pure returns() // Solidity: function func3((uint16,uint16)[] ) pure returns()
func (tuple *Tuple) PackFunc3(Arg0 []TupleQ) ([]byte, error) { func (tuple *Tuple) PackFunc3(Arg0 []TupleQ) []byte {
return tuple.abi.Pack("func3", Arg0) enc, err := tuple.abi.Pack("func3", Arg0)
if err != nil {
panic(err)
}
return enc
} }
// TupleTupleEvent represents a TupleEvent event raised by the Tuple contract. // TupleTupleEvent represents a TupleEvent event raised by the Tuple contract.

View file

@ -52,8 +52,12 @@ func (c *Tupler) Instance(backend bind.ContractBackend, addr common.Address) bin
// Tuple is a free data retrieval call binding the contract method 0x3175aae2. // Tuple is a free data retrieval call binding the contract method 0x3175aae2.
// //
// Solidity: function tuple() returns(string a, int256 b, bytes32 c) // Solidity: function tuple() returns(string a, int256 b, bytes32 c)
func (tupler *Tupler) PackTuple() ([]byte, error) { func (tupler *Tupler) PackTuple() []byte {
return tupler.abi.Pack("tuple") enc, err := tupler.abi.Pack("tuple")
if err != nil {
panic(err)
}
return enc
} }
type TupleOutput struct { type TupleOutput struct {

View file

@ -52,8 +52,12 @@ func (c *Underscorer) Instance(backend bind.ContractBackend, addr common.Address
// AllPurelyUnderscoredOutput is a free data retrieval call binding the contract method 0xb564b34d. // AllPurelyUnderscoredOutput is a free data retrieval call binding the contract method 0xb564b34d.
// //
// Solidity: function AllPurelyUnderscoredOutput() view returns(int256 _, int256 __) // Solidity: function AllPurelyUnderscoredOutput() view returns(int256 _, int256 __)
func (underscorer *Underscorer) PackAllPurelyUnderscoredOutput() ([]byte, error) { func (underscorer *Underscorer) PackAllPurelyUnderscoredOutput() []byte {
return underscorer.abi.Pack("AllPurelyUnderscoredOutput") enc, err := underscorer.abi.Pack("AllPurelyUnderscoredOutput")
if err != nil {
panic(err)
}
return enc
} }
type AllPurelyUnderscoredOutputOutput struct { type AllPurelyUnderscoredOutputOutput struct {
@ -80,8 +84,12 @@ func (underscorer *Underscorer) UnpackAllPurelyUnderscoredOutput(data []byte) (A
// LowerLowerCollision is a free data retrieval call binding the contract method 0xe409ca45. // LowerLowerCollision is a free data retrieval call binding the contract method 0xe409ca45.
// //
// Solidity: function LowerLowerCollision() view returns(int256 _res, int256 res) // Solidity: function LowerLowerCollision() view returns(int256 _res, int256 res)
func (underscorer *Underscorer) PackLowerLowerCollision() ([]byte, error) { func (underscorer *Underscorer) PackLowerLowerCollision() []byte {
return underscorer.abi.Pack("LowerLowerCollision") enc, err := underscorer.abi.Pack("LowerLowerCollision")
if err != nil {
panic(err)
}
return enc
} }
type LowerLowerCollisionOutput struct { type LowerLowerCollisionOutput struct {
@ -108,8 +116,12 @@ func (underscorer *Underscorer) UnpackLowerLowerCollision(data []byte) (LowerLow
// LowerUpperCollision is a free data retrieval call binding the contract method 0x03a59213. // LowerUpperCollision is a free data retrieval call binding the contract method 0x03a59213.
// //
// Solidity: function LowerUpperCollision() view returns(int256 _res, int256 Res) // Solidity: function LowerUpperCollision() view returns(int256 _res, int256 Res)
func (underscorer *Underscorer) PackLowerUpperCollision() ([]byte, error) { func (underscorer *Underscorer) PackLowerUpperCollision() []byte {
return underscorer.abi.Pack("LowerUpperCollision") enc, err := underscorer.abi.Pack("LowerUpperCollision")
if err != nil {
panic(err)
}
return enc
} }
type LowerUpperCollisionOutput struct { type LowerUpperCollisionOutput struct {
@ -136,8 +148,12 @@ func (underscorer *Underscorer) UnpackLowerUpperCollision(data []byte) (LowerUpp
// PurelyUnderscoredOutput is a free data retrieval call binding the contract method 0x9df48485. // PurelyUnderscoredOutput is a free data retrieval call binding the contract method 0x9df48485.
// //
// Solidity: function PurelyUnderscoredOutput() view returns(int256 _, int256 res) // Solidity: function PurelyUnderscoredOutput() view returns(int256 _, int256 res)
func (underscorer *Underscorer) PackPurelyUnderscoredOutput() ([]byte, error) { func (underscorer *Underscorer) PackPurelyUnderscoredOutput() []byte {
return underscorer.abi.Pack("PurelyUnderscoredOutput") enc, err := underscorer.abi.Pack("PurelyUnderscoredOutput")
if err != nil {
panic(err)
}
return enc
} }
type PurelyUnderscoredOutputOutput struct { type PurelyUnderscoredOutputOutput struct {
@ -164,8 +180,12 @@ func (underscorer *Underscorer) UnpackPurelyUnderscoredOutput(data []byte) (Pure
// UnderscoredOutput is a free data retrieval call binding the contract method 0x67e6633d. // UnderscoredOutput is a free data retrieval call binding the contract method 0x67e6633d.
// //
// Solidity: function UnderscoredOutput() view returns(int256 _int, string _string) // Solidity: function UnderscoredOutput() view returns(int256 _int, string _string)
func (underscorer *Underscorer) PackUnderscoredOutput() ([]byte, error) { func (underscorer *Underscorer) PackUnderscoredOutput() []byte {
return underscorer.abi.Pack("UnderscoredOutput") enc, err := underscorer.abi.Pack("UnderscoredOutput")
if err != nil {
panic(err)
}
return enc
} }
type UnderscoredOutputOutput struct { type UnderscoredOutputOutput struct {
@ -192,8 +212,12 @@ func (underscorer *Underscorer) UnpackUnderscoredOutput(data []byte) (Underscore
// UpperLowerCollision is a free data retrieval call binding the contract method 0xaf7486ab. // UpperLowerCollision is a free data retrieval call binding the contract method 0xaf7486ab.
// //
// Solidity: function UpperLowerCollision() view returns(int256 _Res, int256 res) // Solidity: function UpperLowerCollision() view returns(int256 _Res, int256 res)
func (underscorer *Underscorer) PackUpperLowerCollision() ([]byte, error) { func (underscorer *Underscorer) PackUpperLowerCollision() []byte {
return underscorer.abi.Pack("UpperLowerCollision") enc, err := underscorer.abi.Pack("UpperLowerCollision")
if err != nil {
panic(err)
}
return enc
} }
type UpperLowerCollisionOutput struct { type UpperLowerCollisionOutput struct {
@ -220,8 +244,12 @@ func (underscorer *Underscorer) UnpackUpperLowerCollision(data []byte) (UpperLow
// UpperUpperCollision is a free data retrieval call binding the contract method 0xe02ab24d. // UpperUpperCollision is a free data retrieval call binding the contract method 0xe02ab24d.
// //
// Solidity: function UpperUpperCollision() view returns(int256 _Res, int256 Res) // Solidity: function UpperUpperCollision() view returns(int256 _Res, int256 Res)
func (underscorer *Underscorer) PackUpperUpperCollision() ([]byte, error) { func (underscorer *Underscorer) PackUpperUpperCollision() []byte {
return underscorer.abi.Pack("UpperUpperCollision") enc, err := underscorer.abi.Pack("UpperUpperCollision")
if err != nil {
panic(err)
}
return enc
} }
type UpperUpperCollisionOutput struct { type UpperUpperCollisionOutput struct {
@ -248,8 +276,12 @@ func (underscorer *Underscorer) UnpackUpperUpperCollision(data []byte) (UpperUpp
// UnderScoredFunc is a free data retrieval call binding the contract method 0x46546dbe. // UnderScoredFunc is a free data retrieval call binding the contract method 0x46546dbe.
// //
// Solidity: function _under_scored_func() view returns(int256 _int) // Solidity: function _under_scored_func() view returns(int256 _int)
func (underscorer *Underscorer) PackUnderScoredFunc() ([]byte, error) { func (underscorer *Underscorer) PackUnderScoredFunc() []byte {
return underscorer.abi.Pack("_under_scored_func") enc, err := underscorer.abi.Pack("_under_scored_func")
if err != nil {
panic(err)
}
return enc
} }
func (underscorer *Underscorer) UnpackUnderScoredFunc(data []byte) (*big.Int, error) { func (underscorer *Underscorer) UnpackUnderScoredFunc(data []byte) (*big.Int, error) {

View file

@ -59,8 +59,12 @@ func (c *DB) Instance(backend bind.ContractBackend, addr common.Address) bind.Co
// Get is a free data retrieval call binding the contract method 0x9507d39a. // Get is a free data retrieval call binding the contract method 0x9507d39a.
// //
// Solidity: function get(uint256 k) returns(uint256) // Solidity: function get(uint256 k) returns(uint256)
func (dB *DB) PackGet(K *big.Int) ([]byte, error) { func (dB *DB) PackGet(K *big.Int) []byte {
return dB.abi.Pack("get", K) enc, err := dB.abi.Pack("get", K)
if err != nil {
panic(err)
}
return enc
} }
func (dB *DB) UnpackGet(data []byte) (*big.Int, error) { func (dB *DB) UnpackGet(data []byte) (*big.Int, error) {
@ -79,8 +83,12 @@ func (dB *DB) UnpackGet(data []byte) (*big.Int, error) {
// GetNamedStatParams is a free data retrieval call binding the contract method 0xe369ba3b. // GetNamedStatParams is a free data retrieval call binding the contract method 0xe369ba3b.
// //
// Solidity: function getNamedStatParams() view returns(uint256 gets, uint256 inserts, uint256 mods) // Solidity: function getNamedStatParams() view returns(uint256 gets, uint256 inserts, uint256 mods)
func (dB *DB) PackGetNamedStatParams() ([]byte, error) { func (dB *DB) PackGetNamedStatParams() []byte {
return dB.abi.Pack("getNamedStatParams") enc, err := dB.abi.Pack("getNamedStatParams")
if err != nil {
panic(err)
}
return enc
} }
type GetNamedStatParamsOutput struct { type GetNamedStatParamsOutput struct {
@ -110,8 +118,12 @@ func (dB *DB) UnpackGetNamedStatParams(data []byte) (GetNamedStatParamsOutput, e
// GetStatParams is a free data retrieval call binding the contract method 0x6fcb9c70. // GetStatParams is a free data retrieval call binding the contract method 0x6fcb9c70.
// //
// Solidity: function getStatParams() view returns(uint256, uint256, uint256) // Solidity: function getStatParams() view returns(uint256, uint256, uint256)
func (dB *DB) PackGetStatParams() ([]byte, error) { func (dB *DB) PackGetStatParams() []byte {
return dB.abi.Pack("getStatParams") enc, err := dB.abi.Pack("getStatParams")
if err != nil {
panic(err)
}
return enc
} }
type GetStatParamsOutput struct { type GetStatParamsOutput struct {
@ -141,8 +153,12 @@ func (dB *DB) UnpackGetStatParams(data []byte) (GetStatParamsOutput, error) {
// GetStatsStruct is a free data retrieval call binding the contract method 0xee8161e0. // GetStatsStruct is a free data retrieval call binding the contract method 0xee8161e0.
// //
// Solidity: function getStatsStruct() view returns((uint256,uint256,uint256)) // Solidity: function getStatsStruct() view returns((uint256,uint256,uint256))
func (dB *DB) PackGetStatsStruct() ([]byte, error) { func (dB *DB) PackGetStatsStruct() []byte {
return dB.abi.Pack("getStatsStruct") enc, err := dB.abi.Pack("getStatsStruct")
if err != nil {
panic(err)
}
return enc
} }
func (dB *DB) UnpackGetStatsStruct(data []byte) (DBStats, error) { func (dB *DB) UnpackGetStatsStruct(data []byte) (DBStats, error) {
@ -161,8 +177,12 @@ func (dB *DB) UnpackGetStatsStruct(data []byte) (DBStats, error) {
// Insert is a free data retrieval call binding the contract method 0x1d834a1b. // Insert is a free data retrieval call binding the contract method 0x1d834a1b.
// //
// Solidity: function insert(uint256 k, uint256 v) returns(uint256) // Solidity: function insert(uint256 k, uint256 v) returns(uint256)
func (dB *DB) PackInsert(K *big.Int, V *big.Int) ([]byte, error) { func (dB *DB) PackInsert(K *big.Int, V *big.Int) []byte {
return dB.abi.Pack("insert", K, V) enc, err := dB.abi.Pack("insert", K, V)
if err != nil {
panic(err)
}
return enc
} }
func (dB *DB) UnpackInsert(data []byte) (*big.Int, error) { func (dB *DB) UnpackInsert(data []byte) (*big.Int, error) {

View file

@ -58,8 +58,12 @@ func (c *C) Instance(backend bind.ContractBackend, addr common.Address) bind.Con
// DoSomethingWithManyArgs is a free data retrieval call binding the contract method 0x6fd8b968. // DoSomethingWithManyArgs is a free data retrieval call binding the contract method 0x6fd8b968.
// //
// Solidity: function DoSomethingWithManyArgs() pure returns(uint256, uint256, uint256, bool) // Solidity: function DoSomethingWithManyArgs() pure returns(uint256, uint256, uint256, bool)
func (c *C) PackDoSomethingWithManyArgs() ([]byte, error) { func (c *C) PackDoSomethingWithManyArgs() []byte {
return c.abi.Pack("DoSomethingWithManyArgs") enc, err := c.abi.Pack("DoSomethingWithManyArgs")
if err != nil {
panic(err)
}
return enc
} }
type DoSomethingWithManyArgsOutput struct { type DoSomethingWithManyArgsOutput struct {
@ -92,8 +96,12 @@ func (c *C) UnpackDoSomethingWithManyArgs(data []byte) (DoSomethingWithManyArgsO
// DoSomethingWithPoint is a free data retrieval call binding the contract method 0xedcdc894. // DoSomethingWithPoint is a free data retrieval call binding the contract method 0xedcdc894.
// //
// Solidity: function DoSomethingWithPoint((uint256,uint256) p) pure returns((uint256,uint256)) // Solidity: function DoSomethingWithPoint((uint256,uint256) p) pure returns((uint256,uint256))
func (c *C) PackDoSomethingWithPoint(P CPoint) ([]byte, error) { func (c *C) PackDoSomethingWithPoint(P CPoint) []byte {
return c.abi.Pack("DoSomethingWithPoint", P) enc, err := c.abi.Pack("DoSomethingWithPoint", P)
if err != nil {
panic(err)
}
return enc
} }
func (c *C) UnpackDoSomethingWithPoint(data []byte) (CPoint, error) { func (c *C) UnpackDoSomethingWithPoint(data []byte) (CPoint, error) {
@ -112,15 +120,23 @@ func (c *C) UnpackDoSomethingWithPoint(data []byte) (CPoint, error) {
// EmitMulti is a free data retrieval call binding the contract method 0xcb493749. // EmitMulti is a free data retrieval call binding the contract method 0xcb493749.
// //
// Solidity: function EmitMulti() returns() // Solidity: function EmitMulti() returns()
func (c *C) PackEmitMulti() ([]byte, error) { func (c *C) PackEmitMulti() []byte {
return c.abi.Pack("EmitMulti") enc, err := c.abi.Pack("EmitMulti")
if err != nil {
panic(err)
}
return enc
} }
// EmitOne is a free data retrieval call binding the contract method 0xe8e49a71. // EmitOne is a free data retrieval call binding the contract method 0xe8e49a71.
// //
// Solidity: function EmitOne() returns() // Solidity: function EmitOne() returns()
func (c *C) PackEmitOne() ([]byte, error) { func (c *C) PackEmitOne() []byte {
return c.abi.Pack("EmitOne") enc, err := c.abi.Pack("EmitOne")
if err != nil {
panic(err)
}
return enc
} }
// CBasic1 represents a Basic1 event raised by the C contract. // CBasic1 represents a Basic1 event raised by the C contract.

View file

@ -54,15 +54,22 @@ func (c *C1) Instance(backend bind.ContractBackend, addr common.Address) bind.Co
} }
func (c1 *C1) PackConstructor(v1 *big.Int, v2 *big.Int) []byte { func (c1 *C1) PackConstructor(v1 *big.Int, v2 *big.Int) []byte {
res, _ := c1.abi.Pack("", v1, v2) enc, err := c1.abi.Pack("", v1, v2)
return res if err != nil {
panic(err)
}
return enc
} }
// Do is a free data retrieval call binding the contract method 0x2ad11272. // Do is a free data retrieval call binding the contract method 0x2ad11272.
// //
// Solidity: function Do(uint256 val) pure returns(uint256 res) // Solidity: function Do(uint256 val) pure returns(uint256 res)
func (c1 *C1) PackDo(Val *big.Int) ([]byte, error) { func (c1 *C1) PackDo(Val *big.Int) []byte {
return c1.abi.Pack("Do", Val) enc, err := c1.abi.Pack("Do", Val)
if err != nil {
panic(err)
}
return enc
} }
func (c1 *C1) UnpackDo(data []byte) (*big.Int, error) { func (c1 *C1) UnpackDo(data []byte) (*big.Int, error) {
@ -110,15 +117,22 @@ func (c *C2) Instance(backend bind.ContractBackend, addr common.Address) bind.Co
} }
func (c2 *C2) PackConstructor(v1 *big.Int, v2 *big.Int) []byte { func (c2 *C2) PackConstructor(v1 *big.Int, v2 *big.Int) []byte {
res, _ := c2.abi.Pack("", v1, v2) enc, err := c2.abi.Pack("", v1, v2)
return res if err != nil {
panic(err)
}
return enc
} }
// Do is a free data retrieval call binding the contract method 0x2ad11272. // Do is a free data retrieval call binding the contract method 0x2ad11272.
// //
// Solidity: function Do(uint256 val) pure returns(uint256 res) // Solidity: function Do(uint256 val) pure returns(uint256 res)
func (c2 *C2) PackDo(Val *big.Int) ([]byte, error) { func (c2 *C2) PackDo(Val *big.Int) []byte {
return c2.abi.Pack("Do", Val) enc, err := c2.abi.Pack("Do", Val)
if err != nil {
panic(err)
}
return enc
} }
func (c2 *C2) UnpackDo(data []byte) (*big.Int, error) { func (c2 *C2) UnpackDo(data []byte) (*big.Int, error) {
@ -164,8 +178,12 @@ func (c *L1) Instance(backend bind.ContractBackend, addr common.Address) bind.Co
// Do is a free data retrieval call binding the contract method 0x2ad11272. // Do is a free data retrieval call binding the contract method 0x2ad11272.
// //
// Solidity: function Do(uint256 val) pure returns(uint256) // Solidity: function Do(uint256 val) pure returns(uint256)
func (l1 *L1) PackDo(Val *big.Int) ([]byte, error) { func (l1 *L1) PackDo(Val *big.Int) []byte {
return l1.abi.Pack("Do", Val) enc, err := l1.abi.Pack("Do", Val)
if err != nil {
panic(err)
}
return enc
} }
func (l1 *L1) UnpackDo(data []byte) (*big.Int, error) { func (l1 *L1) UnpackDo(data []byte) (*big.Int, error) {
@ -214,8 +232,12 @@ func (c *L2) Instance(backend bind.ContractBackend, addr common.Address) bind.Co
// Do is a free data retrieval call binding the contract method 0x2ad11272. // Do is a free data retrieval call binding the contract method 0x2ad11272.
// //
// Solidity: function Do(uint256 val) pure returns(uint256) // Solidity: function Do(uint256 val) pure returns(uint256)
func (l2 *L2) PackDo(Val *big.Int) ([]byte, error) { func (l2 *L2) PackDo(Val *big.Int) []byte {
return l2.abi.Pack("Do", Val) enc, err := l2.abi.Pack("Do", Val)
if err != nil {
panic(err)
}
return enc
} }
func (l2 *L2) UnpackDo(data []byte) (*big.Int, error) { func (l2 *L2) UnpackDo(data []byte) (*big.Int, error) {
@ -264,8 +286,12 @@ func (c *L2b) Instance(backend bind.ContractBackend, addr common.Address) bind.C
// Do is a free data retrieval call binding the contract method 0x2ad11272. // Do is a free data retrieval call binding the contract method 0x2ad11272.
// //
// Solidity: function Do(uint256 val) pure returns(uint256) // Solidity: function Do(uint256 val) pure returns(uint256)
func (l2b *L2b) PackDo(Val *big.Int) ([]byte, error) { func (l2b *L2b) PackDo(Val *big.Int) []byte {
return l2b.abi.Pack("Do", Val) enc, err := l2b.abi.Pack("Do", Val)
if err != nil {
panic(err)
}
return enc
} }
func (l2b *L2b) UnpackDo(data []byte) (*big.Int, error) { func (l2b *L2b) UnpackDo(data []byte) (*big.Int, error) {
@ -311,8 +337,12 @@ func (c *L3) Instance(backend bind.ContractBackend, addr common.Address) bind.Co
// Do is a free data retrieval call binding the contract method 0x2ad11272. // Do is a free data retrieval call binding the contract method 0x2ad11272.
// //
// Solidity: function Do(uint256 val) pure returns(uint256) // Solidity: function Do(uint256 val) pure returns(uint256)
func (l3 *L3) PackDo(Val *big.Int) ([]byte, error) { func (l3 *L3) PackDo(Val *big.Int) []byte {
return l3.abi.Pack("Do", Val) enc, err := l3.abi.Pack("Do", Val)
if err != nil {
panic(err)
}
return enc
} }
func (l3 *L3) UnpackDo(data []byte) (*big.Int, error) { func (l3 *L3) UnpackDo(data []byte) (*big.Int, error) {
@ -362,8 +392,12 @@ func (c *L4) Instance(backend bind.ContractBackend, addr common.Address) bind.Co
// Do is a free data retrieval call binding the contract method 0x2ad11272. // Do is a free data retrieval call binding the contract method 0x2ad11272.
// //
// Solidity: function Do(uint256 val) pure returns(uint256) // Solidity: function Do(uint256 val) pure returns(uint256)
func (l4 *L4) PackDo(Val *big.Int) ([]byte, error) { func (l4 *L4) PackDo(Val *big.Int) []byte {
return l4.abi.Pack("Do", Val) enc, err := l4.abi.Pack("Do", Val)
if err != nil {
panic(err)
}
return enc
} }
func (l4 *L4) UnpackDo(data []byte) (*big.Int, error) { func (l4 *L4) UnpackDo(data []byte) (*big.Int, error) {
@ -412,8 +446,12 @@ func (c *L4b) Instance(backend bind.ContractBackend, addr common.Address) bind.C
// Do is a free data retrieval call binding the contract method 0x2ad11272. // Do is a free data retrieval call binding the contract method 0x2ad11272.
// //
// Solidity: function Do(uint256 val) pure returns(uint256) // Solidity: function Do(uint256 val) pure returns(uint256)
func (l4b *L4b) PackDo(Val *big.Int) ([]byte, error) { func (l4b *L4b) PackDo(Val *big.Int) []byte {
return l4b.abi.Pack("Do", Val) enc, err := l4b.abi.Pack("Do", Val)
if err != nil {
panic(err)
}
return enc
} }
func (l4b *L4b) UnpackDo(data []byte) (*big.Int, error) { func (l4b *L4b) UnpackDo(data []byte) (*big.Int, error) {

View file

@ -52,15 +52,23 @@ func (c *C) Instance(backend bind.ContractBackend, addr common.Address) bind.Con
// Bar is a free data retrieval call binding the contract method 0xb0a378b0. // Bar is a free data retrieval call binding the contract method 0xb0a378b0.
// //
// Solidity: function Bar() pure returns() // Solidity: function Bar() pure returns()
func (c *C) PackBar() ([]byte, error) { func (c *C) PackBar() []byte {
return c.abi.Pack("Bar") enc, err := c.abi.Pack("Bar")
if err != nil {
panic(err)
}
return enc
} }
// Foo is a free data retrieval call binding the contract method 0xbfb4ebcf. // Foo is a free data retrieval call binding the contract method 0xbfb4ebcf.
// //
// Solidity: function Foo() pure returns() // Solidity: function Foo() pure returns()
func (c *C) PackFoo() ([]byte, error) { func (c *C) PackFoo() []byte {
return c.abi.Pack("Foo") enc, err := c.abi.Pack("Foo")
if err != nil {
panic(err)
}
return enc
} }
func (c *C) UnpackError(raw []byte) any { func (c *C) UnpackError(raw []byte) any {
@ -150,8 +158,12 @@ func (c *C2) Instance(backend bind.ContractBackend, addr common.Address) bind.Co
// Foo is a free data retrieval call binding the contract method 0xbfb4ebcf. // Foo is a free data retrieval call binding the contract method 0xbfb4ebcf.
// //
// Solidity: function Foo() pure returns() // Solidity: function Foo() pure returns()
func (c2 *C2) PackFoo() ([]byte, error) { func (c2 *C2) PackFoo() []byte {
return c2.abi.Pack("Foo") enc, err := c2.abi.Pack("Foo")
if err != nil {
panic(err)
}
return enc
} }
func (c2 *C2) UnpackError(raw []byte) any { func (c2 *C2) UnpackError(raw []byte) any {

View file

@ -52,8 +52,12 @@ func (c *MyContract) Instance(backend bind.ContractBackend, addr common.Address)
// GetNums is a free data retrieval call binding the contract method 0xbd6d1007. // GetNums is a free data retrieval call binding the contract method 0xbd6d1007.
// //
// Solidity: function GetNums() pure returns(uint256[5]) // Solidity: function GetNums() pure returns(uint256[5])
func (myContract *MyContract) PackGetNums() ([]byte, error) { func (myContract *MyContract) PackGetNums() []byte {
return myContract.abi.Pack("GetNums") enc, err := myContract.abi.Pack("GetNums")
if err != nil {
panic(err)
}
return enc
} }
func (myContract *MyContract) UnpackGetNums(data []byte) ([5]*big.Int, error) { func (myContract *MyContract) UnpackGetNums(data []byte) ([5]*big.Int, error) {