From 022df3d4c50b29bcc40d1d5f27ecbe9dae1650d4 Mon Sep 17 00:00:00 2001 From: Jared Wasinger Date: Fri, 25 Apr 2025 18:26:59 +0800 Subject: [PATCH] regenerate abigen test files --- .../abigen/testdata/v2/callbackparam.go.txt | 2 +- .../abi/abigen/testdata/v2/crowdsale.go.txt | 16 +++++----- accounts/abi/abigen/testdata/v2/dao.go.txt | 30 +++++++++---------- .../testdata/v2/deeplynestedarray.go.txt | 6 ++-- accounts/abi/abigen/testdata/v2/getter.go.txt | 2 +- .../testdata/v2/identifiercollision.go.txt | 4 +-- .../abigen/testdata/v2/inputchecker.go.txt | 12 ++++---- .../abi/abigen/testdata/v2/interactor.go.txt | 6 ++-- .../abigen/testdata/v2/nameconflict.go.txt | 4 +-- .../testdata/v2/numericmethodname.go.txt | 6 ++-- .../abigen/testdata/v2/outputchecker.go.txt | 14 ++++----- .../abi/abigen/testdata/v2/overload.go.txt | 4 +-- .../abigen/testdata/v2/rangekeyword.go.txt | 2 +- accounts/abi/abigen/testdata/v2/slicer.go.txt | 8 ++--- .../abi/abigen/testdata/v2/structs.go.txt | 4 +-- accounts/abi/abigen/testdata/v2/token.go.txt | 18 +++++------ accounts/abi/abigen/testdata/v2/tuple.go.txt | 6 ++-- accounts/abi/abigen/testdata/v2/tupler.go.txt | 2 +- .../abi/abigen/testdata/v2/underscorer.go.txt | 16 +++++----- .../bind/v2/internal/contracts/db/bindings.go | 10 +++---- .../v2/internal/contracts/events/bindings.go | 4 +-- .../contracts/nested_libraries/bindings.go | 16 +++++----- .../contracts/solc_errors/bindings.go | 6 ++-- .../contracts/uint256arrayreturn/bindings.go | 2 +- 24 files changed, 100 insertions(+), 100 deletions(-) diff --git a/accounts/abi/abigen/testdata/v2/callbackparam.go.txt b/accounts/abi/abigen/testdata/v2/callbackparam.go.txt index 4e9ccbe2cc..d22b978486 100644 --- a/accounts/abi/abigen/testdata/v2/callbackparam.go.txt +++ b/accounts/abi/abigen/testdata/v2/callbackparam.go.txt @@ -64,7 +64,7 @@ func (callbackParam *CallbackParam) PackTest(callback [24]byte) []byte { return enc } -// PackTest is the Go binding used to pack the parameters required for calling +// TryPackTest is the Go binding used to pack the parameters required for calling // the contract method with ID 0xd7a5aba2. This method will return an error // if any inputs are invalid/nil. // diff --git a/accounts/abi/abigen/testdata/v2/crowdsale.go.txt b/accounts/abi/abigen/testdata/v2/crowdsale.go.txt index 4b9b3f0456..b2183c91ea 100644 --- a/accounts/abi/abigen/testdata/v2/crowdsale.go.txt +++ b/accounts/abi/abigen/testdata/v2/crowdsale.go.txt @@ -76,7 +76,7 @@ func (crowdsale *Crowdsale) PackAmountRaised() []byte { return enc } -// PackAmountRaised is the Go binding used to pack the parameters required for calling +// TryPackAmountRaised is the Go binding used to pack the parameters required for calling // the contract method with ID 0x7b3e5e7b. This method will return an error // if any inputs are invalid/nil. // @@ -111,7 +111,7 @@ func (crowdsale *Crowdsale) PackBeneficiary() []byte { return enc } -// PackBeneficiary is the Go binding used to pack the parameters required for calling +// TryPackBeneficiary is the Go binding used to pack the parameters required for calling // the contract method with ID 0x38af3eed. This method will return an error // if any inputs are invalid/nil. // @@ -146,7 +146,7 @@ func (crowdsale *Crowdsale) PackCheckGoalReached() []byte { return enc } -// PackCheckGoalReached is the Go binding used to pack the parameters required for calling +// TryPackCheckGoalReached is the Go binding used to pack the parameters required for calling // the contract method with ID 0x01cb3b20. This method will return an error // if any inputs are invalid/nil. // @@ -168,7 +168,7 @@ func (crowdsale *Crowdsale) PackDeadline() []byte { return enc } -// PackDeadline is the Go binding used to pack the parameters required for calling +// TryPackDeadline is the Go binding used to pack the parameters required for calling // the contract method with ID 0x29dcb0cf. This method will return an error // if any inputs are invalid/nil. // @@ -203,7 +203,7 @@ func (crowdsale *Crowdsale) PackFunders(arg0 *big.Int) []byte { return enc } -// PackFunders is the Go binding used to pack the parameters required for calling +// TryPackFunders is the Go binding used to pack the parameters required for calling // the contract method with ID 0xdc0d3dff. This method will return an error // if any inputs are invalid/nil. // @@ -247,7 +247,7 @@ func (crowdsale *Crowdsale) PackFundingGoal() []byte { return enc } -// PackFundingGoal is the Go binding used to pack the parameters required for calling +// TryPackFundingGoal is the Go binding used to pack the parameters required for calling // the contract method with ID 0x7a3a0e84. This method will return an error // if any inputs are invalid/nil. // @@ -282,7 +282,7 @@ func (crowdsale *Crowdsale) PackPrice() []byte { return enc } -// PackPrice is the Go binding used to pack the parameters required for calling +// TryPackPrice is the Go binding used to pack the parameters required for calling // the contract method with ID 0xa035b1fe. This method will return an error // if any inputs are invalid/nil. // @@ -317,7 +317,7 @@ func (crowdsale *Crowdsale) PackTokenReward() []byte { return enc } -// PackTokenReward is the Go binding used to pack the parameters required for calling +// TryPackTokenReward is the Go binding used to pack the parameters required for calling // the contract method with ID 0x6e66f6e9. This method will return an error // if any inputs are invalid/nil. // diff --git a/accounts/abi/abigen/testdata/v2/dao.go.txt b/accounts/abi/abigen/testdata/v2/dao.go.txt index 54e0d38242..75fa95df91 100644 --- a/accounts/abi/abigen/testdata/v2/dao.go.txt +++ b/accounts/abi/abigen/testdata/v2/dao.go.txt @@ -76,7 +76,7 @@ func (dAO *DAO) PackChangeMembership(targetMember common.Address, canVote bool, return enc } -// PackChangeMembership is the Go binding used to pack the parameters required for calling +// TryPackChangeMembership is the Go binding used to pack the parameters required for calling // the contract method with ID 0x9644fcbd. This method will return an error // if any inputs are invalid/nil. // @@ -98,7 +98,7 @@ func (dAO *DAO) PackChangeVotingRules(minimumQuorumForProposals *big.Int, minute return enc } -// PackChangeVotingRules is the Go binding used to pack the parameters required for calling +// TryPackChangeVotingRules is the Go binding used to pack the parameters required for calling // the contract method with ID 0xbcca1fd3. This method will return an error // if any inputs are invalid/nil. // @@ -120,7 +120,7 @@ func (dAO *DAO) PackCheckProposalCode(proposalNumber *big.Int, beneficiary commo return enc } -// PackCheckProposalCode is the Go binding used to pack the parameters required for calling +// TryPackCheckProposalCode is the Go binding used to pack the parameters required for calling // the contract method with ID 0xeceb2945. This method will return an error // if any inputs are invalid/nil. // @@ -155,7 +155,7 @@ func (dAO *DAO) PackDebatingPeriodInMinutes() []byte { return enc } -// PackDebatingPeriodInMinutes is the Go binding used to pack the parameters required for calling +// TryPackDebatingPeriodInMinutes is the Go binding used to pack the parameters required for calling // the contract method with ID 0x69bd3436. This method will return an error // if any inputs are invalid/nil. // @@ -190,7 +190,7 @@ func (dAO *DAO) PackExecuteProposal(proposalNumber *big.Int, transactionBytecode return enc } -// PackExecuteProposal is the Go binding used to pack the parameters required for calling +// TryPackExecuteProposal is the Go binding used to pack the parameters required for calling // the contract method with ID 0x237e9492. This method will return an error // if any inputs are invalid/nil. // @@ -225,7 +225,7 @@ func (dAO *DAO) PackMajorityMargin() []byte { return enc } -// PackMajorityMargin is the Go binding used to pack the parameters required for calling +// TryPackMajorityMargin is the Go binding used to pack the parameters required for calling // the contract method with ID 0xaa02a90f. This method will return an error // if any inputs are invalid/nil. // @@ -260,7 +260,7 @@ func (dAO *DAO) PackMemberId(arg0 common.Address) []byte { return enc } -// PackMemberId is the Go binding used to pack the parameters required for calling +// TryPackMemberId is the Go binding used to pack the parameters required for calling // the contract method with ID 0x39106821. This method will return an error // if any inputs are invalid/nil. // @@ -295,7 +295,7 @@ func (dAO *DAO) PackMembers(arg0 *big.Int) []byte { return enc } -// PackMembers is the Go binding used to pack the parameters required for calling +// TryPackMembers is the Go binding used to pack the parameters required for calling // the contract method with ID 0x5daf08ca. This method will return an error // if any inputs are invalid/nil. // @@ -343,7 +343,7 @@ func (dAO *DAO) PackMinimumQuorum() []byte { return enc } -// PackMinimumQuorum is the Go binding used to pack the parameters required for calling +// TryPackMinimumQuorum is the Go binding used to pack the parameters required for calling // the contract method with ID 0x8160f0b5. This method will return an error // if any inputs are invalid/nil. // @@ -378,7 +378,7 @@ func (dAO *DAO) PackNewProposal(beneficiary common.Address, etherAmount *big.Int return enc } -// PackNewProposal is the Go binding used to pack the parameters required for calling +// TryPackNewProposal is the Go binding used to pack the parameters required for calling // the contract method with ID 0xb1050da5. This method will return an error // if any inputs are invalid/nil. // @@ -413,7 +413,7 @@ func (dAO *DAO) PackNumProposals() []byte { return enc } -// PackNumProposals is the Go binding used to pack the parameters required for calling +// TryPackNumProposals is the Go binding used to pack the parameters required for calling // the contract method with ID 0x400e3949. This method will return an error // if any inputs are invalid/nil. // @@ -448,7 +448,7 @@ func (dAO *DAO) PackOwner() []byte { return enc } -// PackOwner is the Go binding used to pack the parameters required for calling +// TryPackOwner is the Go binding used to pack the parameters required for calling // the contract method with ID 0x8da5cb5b. This method will return an error // if any inputs are invalid/nil. // @@ -483,7 +483,7 @@ func (dAO *DAO) PackProposals(arg0 *big.Int) []byte { return enc } -// PackProposals is the Go binding used to pack the parameters required for calling +// TryPackProposals is the Go binding used to pack the parameters required for calling // the contract method with ID 0x013cf08b. This method will return an error // if any inputs are invalid/nil. // @@ -541,7 +541,7 @@ func (dAO *DAO) PackTransferOwnership(newOwner common.Address) []byte { return enc } -// PackTransferOwnership is the Go binding used to pack the parameters required for calling +// TryPackTransferOwnership is the Go binding used to pack the parameters required for calling // the contract method with ID 0xf2fde38b. This method will return an error // if any inputs are invalid/nil. // @@ -563,7 +563,7 @@ func (dAO *DAO) PackVote(proposalNumber *big.Int, supportsProposal bool, justifi return enc } -// PackVote is the Go binding used to pack the parameters required for calling +// TryPackVote is the Go binding used to pack the parameters required for calling // the contract method with ID 0xd3c0715b. This method will return an error // if any inputs are invalid/nil. // diff --git a/accounts/abi/abigen/testdata/v2/deeplynestedarray.go.txt b/accounts/abi/abigen/testdata/v2/deeplynestedarray.go.txt index edc5d10431..302f1d736f 100644 --- a/accounts/abi/abigen/testdata/v2/deeplynestedarray.go.txt +++ b/accounts/abi/abigen/testdata/v2/deeplynestedarray.go.txt @@ -64,7 +64,7 @@ func (deeplyNestedArray *DeeplyNestedArray) PackDeepUint64Array(arg0 *big.Int, a return enc } -// PackDeepUint64Array is the Go binding used to pack the parameters required for calling +// TryPackDeepUint64Array is the Go binding used to pack the parameters required for calling // the contract method with ID 0x98ed1856. This method will return an error // if any inputs are invalid/nil. // @@ -99,7 +99,7 @@ func (deeplyNestedArray *DeeplyNestedArray) PackRetrieveDeepArray() []byte { return enc } -// PackRetrieveDeepArray is the Go binding used to pack the parameters required for calling +// TryPackRetrieveDeepArray is the Go binding used to pack the parameters required for calling // the contract method with ID 0x8ed4573a. This method will return an error // if any inputs are invalid/nil. // @@ -134,7 +134,7 @@ func (deeplyNestedArray *DeeplyNestedArray) PackStoreDeepUintArray(arr [5][4][3] return enc } -// PackStoreDeepUintArray is the Go binding used to pack the parameters required for calling +// TryPackStoreDeepUintArray is the Go binding used to pack the parameters required for calling // the contract method with ID 0x34424855. This method will return an error // if any inputs are invalid/nil. // diff --git a/accounts/abi/abigen/testdata/v2/getter.go.txt b/accounts/abi/abigen/testdata/v2/getter.go.txt index a7b62be6d6..69a4fb54c8 100644 --- a/accounts/abi/abigen/testdata/v2/getter.go.txt +++ b/accounts/abi/abigen/testdata/v2/getter.go.txt @@ -64,7 +64,7 @@ func (getter *Getter) PackGetter() []byte { return enc } -// PackGetter is the Go binding used to pack the parameters required for calling +// TryPackGetter is the Go binding used to pack the parameters required for calling // the contract method with ID 0x993a04b7. This method will return an error // if any inputs are invalid/nil. // diff --git a/accounts/abi/abigen/testdata/v2/identifiercollision.go.txt b/accounts/abi/abigen/testdata/v2/identifiercollision.go.txt index 0105be1b3d..e7301521f4 100644 --- a/accounts/abi/abigen/testdata/v2/identifiercollision.go.txt +++ b/accounts/abi/abigen/testdata/v2/identifiercollision.go.txt @@ -64,7 +64,7 @@ func (identifierCollision *IdentifierCollision) PackMyVar() []byte { return enc } -// PackMyVar is the Go binding used to pack the parameters required for calling +// TryPackMyVar is the Go binding used to pack the parameters required for calling // the contract method with ID 0x4ef1f0ad. This method will return an error // if any inputs are invalid/nil. // @@ -99,7 +99,7 @@ func (identifierCollision *IdentifierCollision) PackPubVar() []byte { return enc } -// PackPubVar is the Go binding used to pack the parameters required for calling +// TryPackPubVar is the Go binding used to pack the parameters required for calling // the contract method with ID 0x01ad4d87. This method will return an error // if any inputs are invalid/nil. // diff --git a/accounts/abi/abigen/testdata/v2/inputchecker.go.txt b/accounts/abi/abigen/testdata/v2/inputchecker.go.txt index 580d9d4a1f..1743f336db 100644 --- a/accounts/abi/abigen/testdata/v2/inputchecker.go.txt +++ b/accounts/abi/abigen/testdata/v2/inputchecker.go.txt @@ -63,7 +63,7 @@ func (inputChecker *InputChecker) PackAnonInput(arg0 string) []byte { return enc } -// PackAnonInput is the Go binding used to pack the parameters required for calling +// TryPackAnonInput is the Go binding used to pack the parameters required for calling // the contract method with ID 0x3e708e82. This method will return an error // if any inputs are invalid/nil. // @@ -85,7 +85,7 @@ func (inputChecker *InputChecker) PackAnonInputs(arg0 string, arg1 string) []byt return enc } -// PackAnonInputs is the Go binding used to pack the parameters required for calling +// TryPackAnonInputs is the Go binding used to pack the parameters required for calling // the contract method with ID 0x28160527. This method will return an error // if any inputs are invalid/nil. // @@ -107,7 +107,7 @@ func (inputChecker *InputChecker) PackMixedInputs(arg0 string, str string) []byt return enc } -// PackMixedInputs is the Go binding used to pack the parameters required for calling +// TryPackMixedInputs is the Go binding used to pack the parameters required for calling // the contract method with ID 0xc689ebdc. This method will return an error // if any inputs are invalid/nil. // @@ -129,7 +129,7 @@ func (inputChecker *InputChecker) PackNamedInput(str string) []byte { return enc } -// PackNamedInput is the Go binding used to pack the parameters required for calling +// TryPackNamedInput is the Go binding used to pack the parameters required for calling // the contract method with ID 0x0d402005. This method will return an error // if any inputs are invalid/nil. // @@ -151,7 +151,7 @@ func (inputChecker *InputChecker) PackNamedInputs(str1 string, str2 string) []by return enc } -// PackNamedInputs is the Go binding used to pack the parameters required for calling +// TryPackNamedInputs is the Go binding used to pack the parameters required for calling // the contract method with ID 0x63c796ed. This method will return an error // if any inputs are invalid/nil. // @@ -173,7 +173,7 @@ func (inputChecker *InputChecker) PackNoInput() []byte { return enc } -// PackNoInput is the Go binding used to pack the parameters required for calling +// TryPackNoInput is the Go binding used to pack the parameters required for calling // the contract method with ID 0x53539029. This method will return an error // if any inputs are invalid/nil. // diff --git a/accounts/abi/abigen/testdata/v2/interactor.go.txt b/accounts/abi/abigen/testdata/v2/interactor.go.txt index 3382078559..f33c95b639 100644 --- a/accounts/abi/abigen/testdata/v2/interactor.go.txt +++ b/accounts/abi/abigen/testdata/v2/interactor.go.txt @@ -76,7 +76,7 @@ func (interactor *Interactor) PackDeployString() []byte { return enc } -// PackDeployString is the Go binding used to pack the parameters required for calling +// TryPackDeployString is the Go binding used to pack the parameters required for calling // the contract method with ID 0x6874e809. This method will return an error // if any inputs are invalid/nil. // @@ -111,7 +111,7 @@ func (interactor *Interactor) PackTransact(str string) []byte { return enc } -// PackTransact is the Go binding used to pack the parameters required for calling +// TryPackTransact is the Go binding used to pack the parameters required for calling // the contract method with ID 0xd736c513. This method will return an error // if any inputs are invalid/nil. // @@ -133,7 +133,7 @@ func (interactor *Interactor) PackTransactString() []byte { return enc } -// PackTransactString is the Go binding used to pack the parameters required for calling +// TryPackTransactString is the Go binding used to pack the parameters required for calling // the contract method with ID 0x0d86a0e1. This method will return an error // if any inputs are invalid/nil. // diff --git a/accounts/abi/abigen/testdata/v2/nameconflict.go.txt b/accounts/abi/abigen/testdata/v2/nameconflict.go.txt index b8e07f6e09..fbc61a5c6c 100644 --- a/accounts/abi/abigen/testdata/v2/nameconflict.go.txt +++ b/accounts/abi/abigen/testdata/v2/nameconflict.go.txt @@ -70,7 +70,7 @@ func (nameConflict *NameConflict) PackAddRequest(req Oraclerequest) []byte { return enc } -// PackAddRequest is the Go binding used to pack the parameters required for calling +// TryPackAddRequest is the Go binding used to pack the parameters required for calling // the contract method with ID 0xcce7b048. This method will return an error // if any inputs are invalid/nil. // @@ -92,7 +92,7 @@ func (nameConflict *NameConflict) PackGetRequest() []byte { return enc } -// PackGetRequest is the Go binding used to pack the parameters required for calling +// TryPackGetRequest is the Go binding used to pack the parameters required for calling // the contract method with ID 0xc2bb515f. This method will return an error // if any inputs are invalid/nil. // diff --git a/accounts/abi/abigen/testdata/v2/numericmethodname.go.txt b/accounts/abi/abigen/testdata/v2/numericmethodname.go.txt index 84e4134809..9d698a2657 100644 --- a/accounts/abi/abigen/testdata/v2/numericmethodname.go.txt +++ b/accounts/abi/abigen/testdata/v2/numericmethodname.go.txt @@ -64,7 +64,7 @@ func (numericMethodName *NumericMethodName) PackE1test() []byte { return enc } -// PackE1test is the Go binding used to pack the parameters required for calling +// TryPackE1test is the Go binding used to pack the parameters required for calling // the contract method with ID 0xffa02795. This method will return an error // if any inputs are invalid/nil. // @@ -86,7 +86,7 @@ func (numericMethodName *NumericMethodName) PackE1test0() []byte { return enc } -// PackE1test0 is the Go binding used to pack the parameters required for calling +// TryPackE1test0 is the Go binding used to pack the parameters required for calling // the contract method with ID 0xd02767c7. This method will return an error // if any inputs are invalid/nil. // @@ -108,7 +108,7 @@ func (numericMethodName *NumericMethodName) PackE2test() []byte { return enc } -// PackE2test is the Go binding used to pack the parameters required for calling +// TryPackE2test is the Go binding used to pack the parameters required for calling // the contract method with ID 0x9d993132. This method will return an error // if any inputs are invalid/nil. // diff --git a/accounts/abi/abigen/testdata/v2/outputchecker.go.txt b/accounts/abi/abigen/testdata/v2/outputchecker.go.txt index 0ef2d47f84..f1c98f536e 100644 --- a/accounts/abi/abigen/testdata/v2/outputchecker.go.txt +++ b/accounts/abi/abigen/testdata/v2/outputchecker.go.txt @@ -63,7 +63,7 @@ func (outputChecker *OutputChecker) PackAnonOutput() []byte { return enc } -// PackAnonOutput is the Go binding used to pack the parameters required for calling +// TryPackAnonOutput is the Go binding used to pack the parameters required for calling // the contract method with ID 0x008bda05. This method will return an error // if any inputs are invalid/nil. // @@ -98,7 +98,7 @@ func (outputChecker *OutputChecker) PackAnonOutputs() []byte { return enc } -// PackAnonOutputs is the Go binding used to pack the parameters required for calling +// TryPackAnonOutputs is the Go binding used to pack the parameters required for calling // the contract method with ID 0x3c401115. This method will return an error // if any inputs are invalid/nil. // @@ -142,7 +142,7 @@ func (outputChecker *OutputChecker) PackCollidingOutputs() []byte { return enc } -// PackCollidingOutputs is the Go binding used to pack the parameters required for calling +// TryPackCollidingOutputs is the Go binding used to pack the parameters required for calling // the contract method with ID 0xeccbc1ee. This method will return an error // if any inputs are invalid/nil. // @@ -186,7 +186,7 @@ func (outputChecker *OutputChecker) PackMixedOutputs() []byte { return enc } -// PackMixedOutputs is the Go binding used to pack the parameters required for calling +// TryPackMixedOutputs is the Go binding used to pack the parameters required for calling // the contract method with ID 0x21b77b44. This method will return an error // if any inputs are invalid/nil. // @@ -230,7 +230,7 @@ func (outputChecker *OutputChecker) PackNamedOutput() []byte { return enc } -// PackNamedOutput is the Go binding used to pack the parameters required for calling +// TryPackNamedOutput is the Go binding used to pack the parameters required for calling // the contract method with ID 0x5e632bd5. This method will return an error // if any inputs are invalid/nil. // @@ -265,7 +265,7 @@ func (outputChecker *OutputChecker) PackNamedOutputs() []byte { return enc } -// PackNamedOutputs is the Go binding used to pack the parameters required for calling +// TryPackNamedOutputs is the Go binding used to pack the parameters required for calling // the contract method with ID 0x7970a189. This method will return an error // if any inputs are invalid/nil. // @@ -309,7 +309,7 @@ func (outputChecker *OutputChecker) PackNoOutput() []byte { return enc } -// PackNoOutput is the Go binding used to pack the parameters required for calling +// TryPackNoOutput is the Go binding used to pack the parameters required for calling // the contract method with ID 0x625f0306. This method will return an error // if any inputs are invalid/nil. // diff --git a/accounts/abi/abigen/testdata/v2/overload.go.txt b/accounts/abi/abigen/testdata/v2/overload.go.txt index 340e4e723d..3b9a95a125 100644 --- a/accounts/abi/abigen/testdata/v2/overload.go.txt +++ b/accounts/abi/abigen/testdata/v2/overload.go.txt @@ -64,7 +64,7 @@ func (overload *Overload) PackFoo(i *big.Int, j *big.Int) []byte { return enc } -// PackFoo is the Go binding used to pack the parameters required for calling +// TryPackFoo is the Go binding used to pack the parameters required for calling // the contract method with ID 0x04bc52f8. This method will return an error // if any inputs are invalid/nil. // @@ -86,7 +86,7 @@ func (overload *Overload) PackFoo0(i *big.Int) []byte { return enc } -// PackFoo0 is the Go binding used to pack the parameters required for calling +// TryPackFoo0 is the Go binding used to pack the parameters required for calling // the contract method with ID 0x2fbebd38. This method will return an error // if any inputs are invalid/nil. // diff --git a/accounts/abi/abigen/testdata/v2/rangekeyword.go.txt b/accounts/abi/abigen/testdata/v2/rangekeyword.go.txt index 294342cb1d..296de1fccc 100644 --- a/accounts/abi/abigen/testdata/v2/rangekeyword.go.txt +++ b/accounts/abi/abigen/testdata/v2/rangekeyword.go.txt @@ -64,7 +64,7 @@ func (rangeKeyword *RangeKeyword) PackFunctionWithKeywordParameter(arg0 *big.Int return enc } -// PackFunctionWithKeywordParameter is the Go binding used to pack the parameters required for calling +// TryPackFunctionWithKeywordParameter is the Go binding used to pack the parameters required for calling // the contract method with ID 0x527a119f. This method will return an error // if any inputs are invalid/nil. // diff --git a/accounts/abi/abigen/testdata/v2/slicer.go.txt b/accounts/abi/abigen/testdata/v2/slicer.go.txt index 72d468558f..379f136453 100644 --- a/accounts/abi/abigen/testdata/v2/slicer.go.txt +++ b/accounts/abi/abigen/testdata/v2/slicer.go.txt @@ -64,7 +64,7 @@ func (slicer *Slicer) PackEchoAddresses(input []common.Address) []byte { return enc } -// PackEchoAddresses is the Go binding used to pack the parameters required for calling +// TryPackEchoAddresses is the Go binding used to pack the parameters required for calling // the contract method with ID 0xbe1127a3. This method will return an error // if any inputs are invalid/nil. // @@ -99,7 +99,7 @@ func (slicer *Slicer) PackEchoBools(input []bool) []byte { return enc } -// PackEchoBools is the Go binding used to pack the parameters required for calling +// TryPackEchoBools is the Go binding used to pack the parameters required for calling // the contract method with ID 0xf637e589. This method will return an error // if any inputs are invalid/nil. // @@ -134,7 +134,7 @@ func (slicer *Slicer) PackEchoFancyInts(input [23]*big.Int) []byte { return enc } -// PackEchoFancyInts is the Go binding used to pack the parameters required for calling +// TryPackEchoFancyInts is the Go binding used to pack the parameters required for calling // the contract method with ID 0xd88becc0. This method will return an error // if any inputs are invalid/nil. // @@ -169,7 +169,7 @@ func (slicer *Slicer) PackEchoInts(input []*big.Int) []byte { return enc } -// PackEchoInts is the Go binding used to pack the parameters required for calling +// TryPackEchoInts is the Go binding used to pack the parameters required for calling // the contract method with ID 0xe15a3db7. This method will return an error // if any inputs are invalid/nil. // diff --git a/accounts/abi/abigen/testdata/v2/structs.go.txt b/accounts/abi/abigen/testdata/v2/structs.go.txt index fc9efc2cbe..4d8864cf6e 100644 --- a/accounts/abi/abigen/testdata/v2/structs.go.txt +++ b/accounts/abi/abigen/testdata/v2/structs.go.txt @@ -69,7 +69,7 @@ func (structs *Structs) PackF() []byte { return enc } -// PackF is the Go binding used to pack the parameters required for calling +// TryPackF is the Go binding used to pack the parameters required for calling // the contract method with ID 0x28811f59. This method will return an error // if any inputs are invalid/nil. // @@ -115,7 +115,7 @@ func (structs *Structs) PackG() []byte { return enc } -// PackG is the Go binding used to pack the parameters required for calling +// TryPackG is the Go binding used to pack the parameters required for calling // the contract method with ID 0x6fecb623. This method will return an error // if any inputs are invalid/nil. // diff --git a/accounts/abi/abigen/testdata/v2/token.go.txt b/accounts/abi/abigen/testdata/v2/token.go.txt index 5999ddbe5c..69294f375a 100644 --- a/accounts/abi/abigen/testdata/v2/token.go.txt +++ b/accounts/abi/abigen/testdata/v2/token.go.txt @@ -76,7 +76,7 @@ func (token *Token) PackAllowance(arg0 common.Address, arg1 common.Address) []by return enc } -// PackAllowance is the Go binding used to pack the parameters required for calling +// TryPackAllowance is the Go binding used to pack the parameters required for calling // the contract method with ID 0xdd62ed3e. This method will return an error // if any inputs are invalid/nil. // @@ -111,7 +111,7 @@ func (token *Token) PackApproveAndCall(spender common.Address, value *big.Int, e return enc } -// PackApproveAndCall is the Go binding used to pack the parameters required for calling +// TryPackApproveAndCall is the Go binding used to pack the parameters required for calling // the contract method with ID 0xcae9ca51. This method will return an error // if any inputs are invalid/nil. // @@ -146,7 +146,7 @@ func (token *Token) PackBalanceOf(arg0 common.Address) []byte { return enc } -// PackBalanceOf is the Go binding used to pack the parameters required for calling +// TryPackBalanceOf is the Go binding used to pack the parameters required for calling // the contract method with ID 0x70a08231. This method will return an error // if any inputs are invalid/nil. // @@ -181,7 +181,7 @@ func (token *Token) PackDecimals() []byte { return enc } -// PackDecimals is the Go binding used to pack the parameters required for calling +// TryPackDecimals is the Go binding used to pack the parameters required for calling // the contract method with ID 0x313ce567. This method will return an error // if any inputs are invalid/nil. // @@ -216,7 +216,7 @@ func (token *Token) PackName() []byte { return enc } -// PackName is the Go binding used to pack the parameters required for calling +// TryPackName is the Go binding used to pack the parameters required for calling // the contract method with ID 0x06fdde03. This method will return an error // if any inputs are invalid/nil. // @@ -251,7 +251,7 @@ func (token *Token) PackSpentAllowance(arg0 common.Address, arg1 common.Address) return enc } -// PackSpentAllowance is the Go binding used to pack the parameters required for calling +// TryPackSpentAllowance is the Go binding used to pack the parameters required for calling // the contract method with ID 0xdc3080f2. This method will return an error // if any inputs are invalid/nil. // @@ -286,7 +286,7 @@ func (token *Token) PackSymbol() []byte { return enc } -// PackSymbol is the Go binding used to pack the parameters required for calling +// TryPackSymbol is the Go binding used to pack the parameters required for calling // the contract method with ID 0x95d89b41. This method will return an error // if any inputs are invalid/nil. // @@ -321,7 +321,7 @@ func (token *Token) PackTransfer(to common.Address, value *big.Int) []byte { return enc } -// PackTransfer is the Go binding used to pack the parameters required for calling +// TryPackTransfer is the Go binding used to pack the parameters required for calling // the contract method with ID 0xa9059cbb. This method will return an error // if any inputs are invalid/nil. // @@ -343,7 +343,7 @@ func (token *Token) PackTransferFrom(from common.Address, to common.Address, val return enc } -// PackTransferFrom is the Go binding used to pack the parameters required for calling +// TryPackTransferFrom is the Go binding used to pack the parameters required for calling // the contract method with ID 0x23b872dd. This method will return an error // if any inputs are invalid/nil. // diff --git a/accounts/abi/abigen/testdata/v2/tuple.go.txt b/accounts/abi/abigen/testdata/v2/tuple.go.txt index e6b72bafda..76a1f58d52 100644 --- a/accounts/abi/abigen/testdata/v2/tuple.go.txt +++ b/accounts/abi/abigen/testdata/v2/tuple.go.txt @@ -89,7 +89,7 @@ func (tuple *Tuple) PackFunc1(a TupleS, b [][2]TupleT, c [2][]TupleT, d []TupleS return enc } -// PackFunc1 is the Go binding used to pack the parameters required for calling +// TryPackFunc1 is the Go binding used to pack the parameters required for calling // the contract method with ID 0x443c79b4. This method will return an error // if any inputs are invalid/nil. // @@ -139,7 +139,7 @@ func (tuple *Tuple) PackFunc2(a TupleS, b [][2]TupleT, c [2][]TupleT, d []TupleS return enc } -// PackFunc2 is the Go binding used to pack the parameters required for calling +// TryPackFunc2 is the Go binding used to pack the parameters required for calling // the contract method with ID 0xd0062cdd. This method will return an error // if any inputs are invalid/nil. // @@ -161,7 +161,7 @@ func (tuple *Tuple) PackFunc3(arg0 []TupleQ) []byte { return enc } -// PackFunc3 is the Go binding used to pack the parameters required for calling +// TryPackFunc3 is the Go binding used to pack the parameters required for calling // the contract method with ID 0xe4d9a43b. This method will return an error // if any inputs are invalid/nil. // diff --git a/accounts/abi/abigen/testdata/v2/tupler.go.txt b/accounts/abi/abigen/testdata/v2/tupler.go.txt index 65410285ab..8643487042 100644 --- a/accounts/abi/abigen/testdata/v2/tupler.go.txt +++ b/accounts/abi/abigen/testdata/v2/tupler.go.txt @@ -64,7 +64,7 @@ func (tupler *Tupler) PackTuple() []byte { return enc } -// PackTuple is the Go binding used to pack the parameters required for calling +// TryPackTuple is the Go binding used to pack the parameters required for calling // the contract method with ID 0x3175aae2. This method will return an error // if any inputs are invalid/nil. // diff --git a/accounts/abi/abigen/testdata/v2/underscorer.go.txt b/accounts/abi/abigen/testdata/v2/underscorer.go.txt index 9e39bd40f3..13ec968508 100644 --- a/accounts/abi/abigen/testdata/v2/underscorer.go.txt +++ b/accounts/abi/abigen/testdata/v2/underscorer.go.txt @@ -64,7 +64,7 @@ func (underscorer *Underscorer) PackAllPurelyUnderscoredOutput() []byte { return enc } -// PackAllPurelyUnderscoredOutput is the Go binding used to pack the parameters required for calling +// TryPackAllPurelyUnderscoredOutput is the Go binding used to pack the parameters required for calling // the contract method with ID 0xb564b34d. This method will return an error // if any inputs are invalid/nil. // @@ -108,7 +108,7 @@ func (underscorer *Underscorer) PackLowerLowerCollision() []byte { return enc } -// PackLowerLowerCollision is the Go binding used to pack the parameters required for calling +// TryPackLowerLowerCollision is the Go binding used to pack the parameters required for calling // the contract method with ID 0xe409ca45. This method will return an error // if any inputs are invalid/nil. // @@ -152,7 +152,7 @@ func (underscorer *Underscorer) PackLowerUpperCollision() []byte { return enc } -// PackLowerUpperCollision is the Go binding used to pack the parameters required for calling +// TryPackLowerUpperCollision is the Go binding used to pack the parameters required for calling // the contract method with ID 0x03a59213. This method will return an error // if any inputs are invalid/nil. // @@ -196,7 +196,7 @@ func (underscorer *Underscorer) PackPurelyUnderscoredOutput() []byte { return enc } -// PackPurelyUnderscoredOutput is the Go binding used to pack the parameters required for calling +// TryPackPurelyUnderscoredOutput is the Go binding used to pack the parameters required for calling // the contract method with ID 0x9df48485. This method will return an error // if any inputs are invalid/nil. // @@ -240,7 +240,7 @@ func (underscorer *Underscorer) PackUnderscoredOutput() []byte { return enc } -// PackUnderscoredOutput is the Go binding used to pack the parameters required for calling +// TryPackUnderscoredOutput is the Go binding used to pack the parameters required for calling // the contract method with ID 0x67e6633d. This method will return an error // if any inputs are invalid/nil. // @@ -284,7 +284,7 @@ func (underscorer *Underscorer) PackUpperLowerCollision() []byte { return enc } -// PackUpperLowerCollision is the Go binding used to pack the parameters required for calling +// TryPackUpperLowerCollision is the Go binding used to pack the parameters required for calling // the contract method with ID 0xaf7486ab. This method will return an error // if any inputs are invalid/nil. // @@ -328,7 +328,7 @@ func (underscorer *Underscorer) PackUpperUpperCollision() []byte { return enc } -// PackUpperUpperCollision is the Go binding used to pack the parameters required for calling +// TryPackUpperUpperCollision is the Go binding used to pack the parameters required for calling // the contract method with ID 0xe02ab24d. This method will return an error // if any inputs are invalid/nil. // @@ -372,7 +372,7 @@ func (underscorer *Underscorer) PackUnderScoredFunc() []byte { return enc } -// PackUnderScoredFunc is the Go binding used to pack the parameters required for calling +// TryPackUnderScoredFunc is the Go binding used to pack the parameters required for calling // the contract method with ID 0x46546dbe. This method will return an error // if any inputs are invalid/nil. // diff --git a/accounts/abi/bind/v2/internal/contracts/db/bindings.go b/accounts/abi/bind/v2/internal/contracts/db/bindings.go index dedb251826..fc00a555b5 100644 --- a/accounts/abi/bind/v2/internal/contracts/db/bindings.go +++ b/accounts/abi/bind/v2/internal/contracts/db/bindings.go @@ -71,7 +71,7 @@ func (dB *DB) PackGet(k *big.Int) []byte { return enc } -// PackGet is the Go binding used to pack the parameters required for calling +// TryPackGet is the Go binding used to pack the parameters required for calling // the contract method with ID 0x9507d39a. This method will return an error // if any inputs are invalid/nil. // @@ -106,7 +106,7 @@ func (dB *DB) PackGetNamedStatParams() []byte { return enc } -// PackGetNamedStatParams is the Go binding used to pack the parameters required for calling +// TryPackGetNamedStatParams is the Go binding used to pack the parameters required for calling // the contract method with ID 0xe369ba3b. This method will return an error // if any inputs are invalid/nil. // @@ -152,7 +152,7 @@ func (dB *DB) PackGetStatParams() []byte { return enc } -// PackGetStatParams is the Go binding used to pack the parameters required for calling +// TryPackGetStatParams is the Go binding used to pack the parameters required for calling // the contract method with ID 0x6fcb9c70. This method will return an error // if any inputs are invalid/nil. // @@ -198,7 +198,7 @@ func (dB *DB) PackGetStatsStruct() []byte { return enc } -// PackGetStatsStruct is the Go binding used to pack the parameters required for calling +// TryPackGetStatsStruct is the Go binding used to pack the parameters required for calling // the contract method with ID 0xee8161e0. This method will return an error // if any inputs are invalid/nil. // @@ -233,7 +233,7 @@ func (dB *DB) PackInsert(k *big.Int, v *big.Int) []byte { return enc } -// PackInsert is the Go binding used to pack the parameters required for calling +// TryPackInsert is the Go binding used to pack the parameters required for calling // the contract method with ID 0x1d834a1b. This method will return an error // if any inputs are invalid/nil. // diff --git a/accounts/abi/bind/v2/internal/contracts/events/bindings.go b/accounts/abi/bind/v2/internal/contracts/events/bindings.go index 780c8e4a5f..ba4fdc71e3 100644 --- a/accounts/abi/bind/v2/internal/contracts/events/bindings.go +++ b/accounts/abi/bind/v2/internal/contracts/events/bindings.go @@ -64,7 +64,7 @@ func (c *C) PackEmitMulti() []byte { return enc } -// PackEmitMulti is the Go binding used to pack the parameters required for calling +// TryPackEmitMulti is the Go binding used to pack the parameters required for calling // the contract method with ID 0xcb493749. This method will return an error // if any inputs are invalid/nil. // @@ -86,7 +86,7 @@ func (c *C) PackEmitOne() []byte { return enc } -// PackEmitOne is the Go binding used to pack the parameters required for calling +// TryPackEmitOne is the Go binding used to pack the parameters required for calling // the contract method with ID 0xe8e49a71. This method will return an error // if any inputs are invalid/nil. // diff --git a/accounts/abi/bind/v2/internal/contracts/nested_libraries/bindings.go b/accounts/abi/bind/v2/internal/contracts/nested_libraries/bindings.go index ab2c73db41..d1cb08116b 100644 --- a/accounts/abi/bind/v2/internal/contracts/nested_libraries/bindings.go +++ b/accounts/abi/bind/v2/internal/contracts/nested_libraries/bindings.go @@ -80,7 +80,7 @@ func (c1 *C1) PackDo(val *big.Int) []byte { return enc } -// PackDo is the Go binding used to pack the parameters required for calling +// TryPackDo is the Go binding used to pack the parameters required for calling // the contract method with ID 0x2ad11272. This method will return an error // if any inputs are invalid/nil. // @@ -158,7 +158,7 @@ func (c2 *C2) PackDo(val *big.Int) []byte { return enc } -// PackDo is the Go binding used to pack the parameters required for calling +// TryPackDo is the Go binding used to pack the parameters required for calling // the contract method with ID 0x2ad11272. This method will return an error // if any inputs are invalid/nil. // @@ -220,7 +220,7 @@ func (l1 *L1) PackDo(val *big.Int) []byte { return enc } -// PackDo is the Go binding used to pack the parameters required for calling +// TryPackDo is the Go binding used to pack the parameters required for calling // the contract method with ID 0x2ad11272. This method will return an error // if any inputs are invalid/nil. // @@ -285,7 +285,7 @@ func (l2 *L2) PackDo(val *big.Int) []byte { return enc } -// PackDo is the Go binding used to pack the parameters required for calling +// TryPackDo is the Go binding used to pack the parameters required for calling // the contract method with ID 0x2ad11272. This method will return an error // if any inputs are invalid/nil. // @@ -350,7 +350,7 @@ func (l2b *L2b) PackDo(val *big.Int) []byte { return enc } -// PackDo is the Go binding used to pack the parameters required for calling +// TryPackDo is the Go binding used to pack the parameters required for calling // the contract method with ID 0x2ad11272. This method will return an error // if any inputs are invalid/nil. // @@ -412,7 +412,7 @@ func (l3 *L3) PackDo(val *big.Int) []byte { return enc } -// PackDo is the Go binding used to pack the parameters required for calling +// TryPackDo is the Go binding used to pack the parameters required for calling // the contract method with ID 0x2ad11272. This method will return an error // if any inputs are invalid/nil. // @@ -478,7 +478,7 @@ func (l4 *L4) PackDo(val *big.Int) []byte { return enc } -// PackDo is the Go binding used to pack the parameters required for calling +// TryPackDo is the Go binding used to pack the parameters required for calling // the contract method with ID 0x2ad11272. This method will return an error // if any inputs are invalid/nil. // @@ -543,7 +543,7 @@ func (l4b *L4b) PackDo(val *big.Int) []byte { return enc } -// PackDo is the Go binding used to pack the parameters required for calling +// TryPackDo is the Go binding used to pack the parameters required for calling // the contract method with ID 0x2ad11272. This method will return an error // if any inputs are invalid/nil. // diff --git a/accounts/abi/bind/v2/internal/contracts/solc_errors/bindings.go b/accounts/abi/bind/v2/internal/contracts/solc_errors/bindings.go index a65a9f20ce..627b86f1b9 100644 --- a/accounts/abi/bind/v2/internal/contracts/solc_errors/bindings.go +++ b/accounts/abi/bind/v2/internal/contracts/solc_errors/bindings.go @@ -64,7 +64,7 @@ func (c *C) PackBar() []byte { return enc } -// PackBar is the Go binding used to pack the parameters required for calling +// TryPackBar is the Go binding used to pack the parameters required for calling // the contract method with ID 0xb0a378b0. This method will return an error // if any inputs are invalid/nil. // @@ -86,7 +86,7 @@ func (c *C) PackFoo() []byte { return enc } -// PackFoo is the Go binding used to pack the parameters required for calling +// TryPackFoo is the Go binding used to pack the parameters required for calling // the contract method with ID 0xbfb4ebcf. This method will return an error // if any inputs are invalid/nil. // @@ -201,7 +201,7 @@ func (c2 *C2) PackFoo() []byte { return enc } -// PackFoo is the Go binding used to pack the parameters required for calling +// TryPackFoo is the Go binding used to pack the parameters required for calling // the contract method with ID 0xbfb4ebcf. This method will return an error // if any inputs are invalid/nil. // diff --git a/accounts/abi/bind/v2/internal/contracts/uint256arrayreturn/bindings.go b/accounts/abi/bind/v2/internal/contracts/uint256arrayreturn/bindings.go index e5da79c51b..19d09bdd6a 100644 --- a/accounts/abi/bind/v2/internal/contracts/uint256arrayreturn/bindings.go +++ b/accounts/abi/bind/v2/internal/contracts/uint256arrayreturn/bindings.go @@ -64,7 +64,7 @@ func (myContract *MyContract) PackGetNums() []byte { return enc } -// PackGetNums is the Go binding used to pack the parameters required for calling +// TryPackGetNums is the Go binding used to pack the parameters required for calling // the contract method with ID 0xbd6d1007. This method will return an error // if any inputs are invalid/nil. //