mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-31 17:13:57 +00:00
accounts/abi/abigen: change for removal of ContractInstance
This commit is contained in:
parent
7c5c0bbbf3
commit
f937417fd8
22 changed files with 22 additions and 22 deletions
|
|
@ -65,7 +65,7 @@ var (
|
|||
|
||||
// Instance creates a wrapper for a deployed contract instance at the given address.
|
||||
// Use this to create the instance object passed to abigen v2 library functions Call, Transact, etc.
|
||||
func (c *{{.Type}}) Instance(backend bind.ContractBackend, addr common.Address) bind.ContractInstance {
|
||||
func (c *{{.Type}}) Instance(backend bind.ContractBackend, addr common.Address) *bind.BoundContract {
|
||||
return bind.NewContractInstance(backend, addr, c.abi)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ func NewCallbackParam() *CallbackParam {
|
|||
|
||||
// Instance creates a wrapper for a deployed contract instance at the given address.
|
||||
// Use this to create the instance object passed to abigen v2 library functions Call, Transact, etc.
|
||||
func (c *CallbackParam) Instance(backend bind.ContractBackend, addr common.Address) bind.ContractInstance {
|
||||
func (c *CallbackParam) Instance(backend bind.ContractBackend, addr common.Address) *bind.BoundContract {
|
||||
return bind.NewContractInstance(backend, addr, c.abi)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ func NewCrowdsale() *Crowdsale {
|
|||
|
||||
// Instance creates a wrapper for a deployed contract instance at the given address.
|
||||
// Use this to create the instance object passed to abigen v2 library functions Call, Transact, etc.
|
||||
func (c *Crowdsale) Instance(backend bind.ContractBackend, addr common.Address) bind.ContractInstance {
|
||||
func (c *Crowdsale) Instance(backend bind.ContractBackend, addr common.Address) *bind.BoundContract {
|
||||
return bind.NewContractInstance(backend, addr, c.abi)
|
||||
}
|
||||
|
||||
|
|
|
|||
2
accounts/abi/abigen/testdata/v2/dao.go.txt
vendored
2
accounts/abi/abigen/testdata/v2/dao.go.txt
vendored
|
|
@ -45,7 +45,7 @@ func NewDAO() *DAO {
|
|||
|
||||
// Instance creates a wrapper for a deployed contract instance at the given address.
|
||||
// Use this to create the instance object passed to abigen v2 library functions Call, Transact, etc.
|
||||
func (c *DAO) Instance(backend bind.ContractBackend, addr common.Address) bind.ContractInstance {
|
||||
func (c *DAO) Instance(backend bind.ContractBackend, addr common.Address) *bind.BoundContract {
|
||||
return bind.NewContractInstance(backend, addr, c.abi)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ func NewDeeplyNestedArray() *DeeplyNestedArray {
|
|||
|
||||
// Instance creates a wrapper for a deployed contract instance at the given address.
|
||||
// Use this to create the instance object passed to abigen v2 library functions Call, Transact, etc.
|
||||
func (c *DeeplyNestedArray) Instance(backend bind.ContractBackend, addr common.Address) bind.ContractInstance {
|
||||
func (c *DeeplyNestedArray) Instance(backend bind.ContractBackend, addr common.Address) *bind.BoundContract {
|
||||
return bind.NewContractInstance(backend, addr, c.abi)
|
||||
}
|
||||
|
||||
|
|
|
|||
2
accounts/abi/abigen/testdata/v2/empty.go.txt
vendored
2
accounts/abi/abigen/testdata/v2/empty.go.txt
vendored
|
|
@ -45,6 +45,6 @@ func NewEmpty() *Empty {
|
|||
|
||||
// Instance creates a wrapper for a deployed contract instance at the given address.
|
||||
// Use this to create the instance object passed to abigen v2 library functions Call, Transact, etc.
|
||||
func (c *Empty) Instance(backend bind.ContractBackend, addr common.Address) bind.ContractInstance {
|
||||
func (c *Empty) Instance(backend bind.ContractBackend, addr common.Address) *bind.BoundContract {
|
||||
return bind.NewContractInstance(backend, addr, c.abi)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ func NewEventChecker() *EventChecker {
|
|||
|
||||
// Instance creates a wrapper for a deployed contract instance at the given address.
|
||||
// Use this to create the instance object passed to abigen v2 library functions Call, Transact, etc.
|
||||
func (c *EventChecker) Instance(backend bind.ContractBackend, addr common.Address) bind.ContractInstance {
|
||||
func (c *EventChecker) Instance(backend bind.ContractBackend, addr common.Address) *bind.BoundContract {
|
||||
return bind.NewContractInstance(backend, addr, c.abi)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ func NewGetter() *Getter {
|
|||
|
||||
// Instance creates a wrapper for a deployed contract instance at the given address.
|
||||
// Use this to create the instance object passed to abigen v2 library functions Call, Transact, etc.
|
||||
func (c *Getter) Instance(backend bind.ContractBackend, addr common.Address) bind.ContractInstance {
|
||||
func (c *Getter) Instance(backend bind.ContractBackend, addr common.Address) *bind.BoundContract {
|
||||
return bind.NewContractInstance(backend, addr, c.abi)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ func NewIdentifierCollision() *IdentifierCollision {
|
|||
|
||||
// Instance creates a wrapper for a deployed contract instance at the given address.
|
||||
// Use this to create the instance object passed to abigen v2 library functions Call, Transact, etc.
|
||||
func (c *IdentifierCollision) Instance(backend bind.ContractBackend, addr common.Address) bind.ContractInstance {
|
||||
func (c *IdentifierCollision) Instance(backend bind.ContractBackend, addr common.Address) *bind.BoundContract {
|
||||
return bind.NewContractInstance(backend, addr, c.abi)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ func NewInputChecker() *InputChecker {
|
|||
|
||||
// Instance creates a wrapper for a deployed contract instance at the given address.
|
||||
// Use this to create the instance object passed to abigen v2 library functions Call, Transact, etc.
|
||||
func (c *InputChecker) Instance(backend bind.ContractBackend, addr common.Address) bind.ContractInstance {
|
||||
func (c *InputChecker) Instance(backend bind.ContractBackend, addr common.Address) *bind.BoundContract {
|
||||
return bind.NewContractInstance(backend, addr, c.abi)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ func NewInteractor() *Interactor {
|
|||
|
||||
// Instance creates a wrapper for a deployed contract instance at the given address.
|
||||
// Use this to create the instance object passed to abigen v2 library functions Call, Transact, etc.
|
||||
func (c *Interactor) Instance(backend bind.ContractBackend, addr common.Address) bind.ContractInstance {
|
||||
func (c *Interactor) Instance(backend bind.ContractBackend, addr common.Address) *bind.BoundContract {
|
||||
return bind.NewContractInstance(backend, addr, c.abi)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ func NewNameConflict() *NameConflict {
|
|||
|
||||
// Instance creates a wrapper for a deployed contract instance at the given address.
|
||||
// Use this to create the instance object passed to abigen v2 library functions Call, Transact, etc.
|
||||
func (c *NameConflict) Instance(backend bind.ContractBackend, addr common.Address) bind.ContractInstance {
|
||||
func (c *NameConflict) Instance(backend bind.ContractBackend, addr common.Address) *bind.BoundContract {
|
||||
return bind.NewContractInstance(backend, addr, c.abi)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ func NewNumericMethodName() *NumericMethodName {
|
|||
|
||||
// Instance creates a wrapper for a deployed contract instance at the given address.
|
||||
// Use this to create the instance object passed to abigen v2 library functions Call, Transact, etc.
|
||||
func (c *NumericMethodName) Instance(backend bind.ContractBackend, addr common.Address) bind.ContractInstance {
|
||||
func (c *NumericMethodName) Instance(backend bind.ContractBackend, addr common.Address) *bind.BoundContract {
|
||||
return bind.NewContractInstance(backend, addr, c.abi)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ func NewOutputChecker() *OutputChecker {
|
|||
|
||||
// Instance creates a wrapper for a deployed contract instance at the given address.
|
||||
// Use this to create the instance object passed to abigen v2 library functions Call, Transact, etc.
|
||||
func (c *OutputChecker) Instance(backend bind.ContractBackend, addr common.Address) bind.ContractInstance {
|
||||
func (c *OutputChecker) Instance(backend bind.ContractBackend, addr common.Address) *bind.BoundContract {
|
||||
return bind.NewContractInstance(backend, addr, c.abi)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ func NewOverload() *Overload {
|
|||
|
||||
// Instance creates a wrapper for a deployed contract instance at the given address.
|
||||
// Use this to create the instance object passed to abigen v2 library functions Call, Transact, etc.
|
||||
func (c *Overload) Instance(backend bind.ContractBackend, addr common.Address) bind.ContractInstance {
|
||||
func (c *Overload) Instance(backend bind.ContractBackend, addr common.Address) *bind.BoundContract {
|
||||
return bind.NewContractInstance(backend, addr, c.abi)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ func NewRangeKeyword() *RangeKeyword {
|
|||
|
||||
// Instance creates a wrapper for a deployed contract instance at the given address.
|
||||
// Use this to create the instance object passed to abigen v2 library functions Call, Transact, etc.
|
||||
func (c *RangeKeyword) Instance(backend bind.ContractBackend, addr common.Address) bind.ContractInstance {
|
||||
func (c *RangeKeyword) Instance(backend bind.ContractBackend, addr common.Address) *bind.BoundContract {
|
||||
return bind.NewContractInstance(backend, addr, c.abi)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ func NewSlicer() *Slicer {
|
|||
|
||||
// Instance creates a wrapper for a deployed contract instance at the given address.
|
||||
// Use this to create the instance object passed to abigen v2 library functions Call, Transact, etc.
|
||||
func (c *Slicer) Instance(backend bind.ContractBackend, addr common.Address) bind.ContractInstance {
|
||||
func (c *Slicer) Instance(backend bind.ContractBackend, addr common.Address) *bind.BoundContract {
|
||||
return bind.NewContractInstance(backend, addr, c.abi)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ func NewStructs() *Structs {
|
|||
|
||||
// Instance creates a wrapper for a deployed contract instance at the given address.
|
||||
// Use this to create the instance object passed to abigen v2 library functions Call, Transact, etc.
|
||||
func (c *Structs) Instance(backend bind.ContractBackend, addr common.Address) bind.ContractInstance {
|
||||
func (c *Structs) Instance(backend bind.ContractBackend, addr common.Address) *bind.BoundContract {
|
||||
return bind.NewContractInstance(backend, addr, c.abi)
|
||||
}
|
||||
|
||||
|
|
|
|||
2
accounts/abi/abigen/testdata/v2/token.go.txt
vendored
2
accounts/abi/abigen/testdata/v2/token.go.txt
vendored
|
|
@ -45,7 +45,7 @@ func NewToken() *Token {
|
|||
|
||||
// Instance creates a wrapper for a deployed contract instance at the given address.
|
||||
// Use this to create the instance object passed to abigen v2 library functions Call, Transact, etc.
|
||||
func (c *Token) Instance(backend bind.ContractBackend, addr common.Address) bind.ContractInstance {
|
||||
func (c *Token) Instance(backend bind.ContractBackend, addr common.Address) *bind.BoundContract {
|
||||
return bind.NewContractInstance(backend, addr, c.abi)
|
||||
}
|
||||
|
||||
|
|
|
|||
2
accounts/abi/abigen/testdata/v2/tuple.go.txt
vendored
2
accounts/abi/abigen/testdata/v2/tuple.go.txt
vendored
|
|
@ -70,7 +70,7 @@ func NewTuple() *Tuple {
|
|||
|
||||
// Instance creates a wrapper for a deployed contract instance at the given address.
|
||||
// Use this to create the instance object passed to abigen v2 library functions Call, Transact, etc.
|
||||
func (c *Tuple) Instance(backend bind.ContractBackend, addr common.Address) bind.ContractInstance {
|
||||
func (c *Tuple) Instance(backend bind.ContractBackend, addr common.Address) *bind.BoundContract {
|
||||
return bind.NewContractInstance(backend, addr, c.abi)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ func NewTupler() *Tupler {
|
|||
|
||||
// Instance creates a wrapper for a deployed contract instance at the given address.
|
||||
// Use this to create the instance object passed to abigen v2 library functions Call, Transact, etc.
|
||||
func (c *Tupler) Instance(backend bind.ContractBackend, addr common.Address) bind.ContractInstance {
|
||||
func (c *Tupler) Instance(backend bind.ContractBackend, addr common.Address) *bind.BoundContract {
|
||||
return bind.NewContractInstance(backend, addr, c.abi)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ func NewUnderscorer() *Underscorer {
|
|||
|
||||
// Instance creates a wrapper for a deployed contract instance at the given address.
|
||||
// Use this to create the instance object passed to abigen v2 library functions Call, Transact, etc.
|
||||
func (c *Underscorer) Instance(backend bind.ContractBackend, addr common.Address) bind.ContractInstance {
|
||||
func (c *Underscorer) Instance(backend bind.ContractBackend, addr common.Address) *bind.BoundContract {
|
||||
return bind.NewContractInstance(backend, addr, c.abi)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue