diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 84023324..c44e0f1a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,10 @@ on: tags: - "v*.*.*" +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} + cancel-in-progress: true + jobs: artifacts: runs-on: ubuntu-latest @@ -35,7 +39,7 @@ jobs: cp -r out/Moon.sol/Moon.json artifacts/ - name: Upload artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: compiled-contracts path: artifacts @@ -44,12 +48,17 @@ jobs: runs-on: ubuntu-latest needs: artifacts environment: release + permissions: + contents: write steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 + submodules: "recursive" - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: compiled-contracts path: ./artifacts @@ -69,6 +78,12 @@ jobs: needs: release environment: release steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + submodules: "recursive" + - name: Get Latest Version id: version uses: pozetroninc/github-action-get-latest-release@master @@ -80,20 +95,31 @@ jobs: with: go-version: "1.21.3" + - name: Setup Foundry + uses: foundry-rs/foundry-toolchain@v1 + + - name: Install ABIGen + run: | + go install github.com/ethereum/go-ethereum/cmd/abigen@v1.13.5 + - uses: actions/setup-node@v4 with: node-version: "22.3.0" registry-url: "https://registry.npmjs.org" + - name: Install Bun + uses: oven-sh/setup-bun@v1 + + # Ensure /v2 is updated as the major version changes + - name: Update Go Registry + run: | + GOPROXY=proxy.golang.org go list \ + -m github.com/open-ibc/vibc-core-smart-contracts/v2@${{ steps.version.outputs.release }} + - name: Update NPM Registry run: | - npm ci - npm publish --provenance --access public + bun install --frozen-lockfile + bun run build + npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - - - name: Update Go Registry - run: | - ( cd ./bindings && \ - GOPROXY=proxy.golang.org go list \ - -m github.com/open-ibc/vibc-core-smart-contracts/bindings@${{ steps.version.outputs.release }} ) diff --git a/.gitignore b/.gitignore index 4cc8823d..80f97d20 100644 --- a/.gitignore +++ b/.gitignore @@ -22,7 +22,6 @@ src/contracts.template.ts forge-cache/ node_modules -package-lock.json .env coverage coverage.json diff --git a/.npmignore b/.npmignore index 1df31c14..fba64fff 100644 --- a/.npmignore +++ b/.npmignore @@ -24,6 +24,7 @@ src/contracts.template.ts .direnv/ forge-cache/ +bun.lockb node_modules .env coverage diff --git a/Makefile b/Makefile index 47563a82..da0a8721 100644 --- a/Makefile +++ b/Makefile @@ -28,11 +28,12 @@ abigen: extract_artifacts echo "Generating Go vIBC bindings..."; \ for abi_file in $(wildcard $(TMP_ABI_DIR)/*.json); do \ abi_base=$$(basename $$abi_file); \ - type=$$(basename $$abi_file .json | tr "[:upper:]" "[:lower:]"); \ + type=$$(basename $$abi_file .json); \ pkg=$$(basename $$abi_base .json | tr "[:upper:]" "[:lower:]"); \ mkdir -p ./bindings/$$pkg; \ abigen --abi $$abi_file --pkg $$pkg --type $$type --out ./bindings/$$pkg/$$type.go; \ - done + done; \ + ( cd ./bindings && go mod tidy ) clean: echo "Cleaning up all artifacts..."; \ diff --git a/bindings/dispatcher/dispatcher.go b/bindings/dispatcher/Dispatcher.go similarity index 100% rename from bindings/dispatcher/dispatcher.go rename to bindings/dispatcher/Dispatcher.go diff --git a/bindings/earth/earth.go b/bindings/earth/Earth.go similarity index 100% rename from bindings/earth/earth.go rename to bindings/earth/Earth.go diff --git a/bindings/mars/mars.go b/bindings/mars/Mars.go similarity index 100% rename from bindings/mars/mars.go rename to bindings/mars/Mars.go diff --git a/bindings/moon/moon.go b/bindings/moon/Moon.go similarity index 100% rename from bindings/moon/moon.go rename to bindings/moon/Moon.go diff --git a/bindings/universalchannelhandler/universalchannelhandler.go b/bindings/universalchannelhandler/UniversalChannelHandler.go similarity index 70% rename from bindings/universalchannelhandler/universalchannelhandler.go rename to bindings/universalchannelhandler/UniversalChannelHandler.go index b44306d2..433d8e18 100644 --- a/bindings/universalchannelhandler/universalchannelhandler.go +++ b/bindings/universalchannelhandler/UniversalChannelHandler.go @@ -57,113 +57,113 @@ type IbcPacket struct { TimeoutTimestamp uint64 } -// UniversalchannelhandlerMetaData contains all meta data concerning the Universalchannelhandler contract. -var UniversalchannelhandlerMetaData = &bind.MetaData{ +// UniversalChannelHandlerMetaData contains all meta data concerning the UniversalChannelHandler contract. +var UniversalChannelHandlerMetaData = &bind.MetaData{ ABI: "[{\"type\":\"constructor\",\"inputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"receive\",\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"MW_ID\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"VERSION\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"closeChannel\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"dispatcher\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIbcDispatcher\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"initialize\",\"inputs\":[{\"name\":\"_dispatcher\",\"type\":\"address\",\"internalType\":\"contractIbcDispatcher\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onAcknowledgementPacket\",\"inputs\":[{\"name\":\"packet\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"ack\",\"type\":\"tuple\",\"internalType\":\"structAckPacket\",\"components\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanCloseConfirm\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanCloseInit\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenAck\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"counterpartyVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"onChanOpenConfirm\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onChanOpenInit\",\"inputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"selectedVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"onChanOpenTry\",\"inputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"counterpartyVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"selectedVersion\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"onRecvPacket\",\"inputs\":[{\"name\":\"packet\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"outputs\":[{\"name\":\"ackPacket\",\"type\":\"tuple\",\"internalType\":\"structAckPacket\",\"components\":[{\"name\":\"success\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onTimeoutPacket\",\"inputs\":[{\"name\":\"packet\",\"type\":\"tuple\",\"internalType\":\"structIbcPacket\",\"components\":[{\"name\":\"src\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"dest\",\"type\":\"tuple\",\"internalType\":\"structIbcEndpoint\",\"components\":[{\"name\":\"portId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutHeight\",\"type\":\"tuple\",\"internalType\":\"structHeight\",\"components\":[{\"name\":\"revision_number\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"revision_height\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"openChannel\",\"inputs\":[{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"ordering\",\"type\":\"uint8\",\"internalType\":\"enumChannelOrder\"},{\"name\":\"feeEnabled\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"connectionHops\",\"type\":\"string[]\",\"internalType\":\"string[]\"},{\"name\":\"counterpartyPortIdentifier\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"owner\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"proxiableUUID\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"renounceOwnership\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"sendUniversalPacket\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"destPortAddr\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"appData\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"outputs\":[{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"sendUniversalPacketWithFee\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"destPortAddr\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"appData\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"timeoutTimestamp\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"gasLimits\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"},{\"name\":\"gasPrices\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"}],\"outputs\":[{\"name\":\"sequence\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"setDispatcher\",\"inputs\":[{\"name\":\"_dispatcher\",\"type\":\"address\",\"internalType\":\"contractIbcDispatcher\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"transferOwnership\",\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"upgradeTo\",\"inputs\":[{\"name\":\"newImplementation\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"upgradeToAndCall\",\"inputs\":[{\"name\":\"newImplementation\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"event\",\"name\":\"AdminChanged\",\"inputs\":[{\"name\":\"previousAdmin\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"newAdmin\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"BeaconUpgraded\",\"inputs\":[{\"name\":\"beacon\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Initialized\",\"inputs\":[{\"name\":\"version\",\"type\":\"uint8\",\"indexed\":false,\"internalType\":\"uint8\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"OwnershipTransferred\",\"inputs\":[{\"name\":\"previousOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"newOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"UCHPacketSent\",\"inputs\":[{\"name\":\"source\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"destination\",\"type\":\"bytes32\",\"indexed\":false,\"internalType\":\"bytes32\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Upgraded\",\"inputs\":[{\"name\":\"implementation\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"ChannelNotFound\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"MwBitmpaCannotBeZero\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"UnsupportedVersion\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"invalidAddress\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"notIbcDispatcher\",\"inputs\":[]}]", } -// UniversalchannelhandlerABI is the input ABI used to generate the binding from. -// Deprecated: Use UniversalchannelhandlerMetaData.ABI instead. -var UniversalchannelhandlerABI = UniversalchannelhandlerMetaData.ABI +// UniversalChannelHandlerABI is the input ABI used to generate the binding from. +// Deprecated: Use UniversalChannelHandlerMetaData.ABI instead. +var UniversalChannelHandlerABI = UniversalChannelHandlerMetaData.ABI -// Universalchannelhandler is an auto generated Go binding around an Ethereum contract. -type Universalchannelhandler struct { - UniversalchannelhandlerCaller // Read-only binding to the contract - UniversalchannelhandlerTransactor // Write-only binding to the contract - UniversalchannelhandlerFilterer // Log filterer for contract events +// UniversalChannelHandler is an auto generated Go binding around an Ethereum contract. +type UniversalChannelHandler struct { + UniversalChannelHandlerCaller // Read-only binding to the contract + UniversalChannelHandlerTransactor // Write-only binding to the contract + UniversalChannelHandlerFilterer // Log filterer for contract events } -// UniversalchannelhandlerCaller is an auto generated read-only Go binding around an Ethereum contract. -type UniversalchannelhandlerCaller struct { +// UniversalChannelHandlerCaller is an auto generated read-only Go binding around an Ethereum contract. +type UniversalChannelHandlerCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// UniversalchannelhandlerTransactor is an auto generated write-only Go binding around an Ethereum contract. -type UniversalchannelhandlerTransactor struct { +// UniversalChannelHandlerTransactor is an auto generated write-only Go binding around an Ethereum contract. +type UniversalChannelHandlerTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// UniversalchannelhandlerFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type UniversalchannelhandlerFilterer struct { +// UniversalChannelHandlerFilterer is an auto generated log filtering Go binding around an Ethereum contract events. +type UniversalChannelHandlerFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// UniversalchannelhandlerSession is an auto generated Go binding around an Ethereum contract, +// UniversalChannelHandlerSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. -type UniversalchannelhandlerSession struct { - Contract *Universalchannelhandler // Generic contract binding to set the session for +type UniversalChannelHandlerSession struct { + Contract *UniversalChannelHandler // Generic contract binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session } -// UniversalchannelhandlerCallerSession is an auto generated read-only Go binding around an Ethereum contract, +// UniversalChannelHandlerCallerSession is an auto generated read-only Go binding around an Ethereum contract, // with pre-set call options. -type UniversalchannelhandlerCallerSession struct { - Contract *UniversalchannelhandlerCaller // Generic contract caller binding to set the session for +type UniversalChannelHandlerCallerSession struct { + Contract *UniversalChannelHandlerCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session } -// UniversalchannelhandlerTransactorSession is an auto generated write-only Go binding around an Ethereum contract, +// UniversalChannelHandlerTransactorSession is an auto generated write-only Go binding around an Ethereum contract, // with pre-set transact options. -type UniversalchannelhandlerTransactorSession struct { - Contract *UniversalchannelhandlerTransactor // Generic contract transactor binding to set the session for +type UniversalChannelHandlerTransactorSession struct { + Contract *UniversalChannelHandlerTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session } -// UniversalchannelhandlerRaw is an auto generated low-level Go binding around an Ethereum contract. -type UniversalchannelhandlerRaw struct { - Contract *Universalchannelhandler // Generic contract binding to access the raw methods on +// UniversalChannelHandlerRaw is an auto generated low-level Go binding around an Ethereum contract. +type UniversalChannelHandlerRaw struct { + Contract *UniversalChannelHandler // Generic contract binding to access the raw methods on } -// UniversalchannelhandlerCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type UniversalchannelhandlerCallerRaw struct { - Contract *UniversalchannelhandlerCaller // Generic read-only contract binding to access the raw methods on +// UniversalChannelHandlerCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. +type UniversalChannelHandlerCallerRaw struct { + Contract *UniversalChannelHandlerCaller // Generic read-only contract binding to access the raw methods on } -// UniversalchannelhandlerTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type UniversalchannelhandlerTransactorRaw struct { - Contract *UniversalchannelhandlerTransactor // Generic write-only contract binding to access the raw methods on +// UniversalChannelHandlerTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. +type UniversalChannelHandlerTransactorRaw struct { + Contract *UniversalChannelHandlerTransactor // Generic write-only contract binding to access the raw methods on } -// NewUniversalchannelhandler creates a new instance of Universalchannelhandler, bound to a specific deployed contract. -func NewUniversalchannelhandler(address common.Address, backend bind.ContractBackend) (*Universalchannelhandler, error) { - contract, err := bindUniversalchannelhandler(address, backend, backend, backend) +// NewUniversalChannelHandler creates a new instance of UniversalChannelHandler, bound to a specific deployed contract. +func NewUniversalChannelHandler(address common.Address, backend bind.ContractBackend) (*UniversalChannelHandler, error) { + contract, err := bindUniversalChannelHandler(address, backend, backend, backend) if err != nil { return nil, err } - return &Universalchannelhandler{UniversalchannelhandlerCaller: UniversalchannelhandlerCaller{contract: contract}, UniversalchannelhandlerTransactor: UniversalchannelhandlerTransactor{contract: contract}, UniversalchannelhandlerFilterer: UniversalchannelhandlerFilterer{contract: contract}}, nil + return &UniversalChannelHandler{UniversalChannelHandlerCaller: UniversalChannelHandlerCaller{contract: contract}, UniversalChannelHandlerTransactor: UniversalChannelHandlerTransactor{contract: contract}, UniversalChannelHandlerFilterer: UniversalChannelHandlerFilterer{contract: contract}}, nil } -// NewUniversalchannelhandlerCaller creates a new read-only instance of Universalchannelhandler, bound to a specific deployed contract. -func NewUniversalchannelhandlerCaller(address common.Address, caller bind.ContractCaller) (*UniversalchannelhandlerCaller, error) { - contract, err := bindUniversalchannelhandler(address, caller, nil, nil) +// NewUniversalChannelHandlerCaller creates a new read-only instance of UniversalChannelHandler, bound to a specific deployed contract. +func NewUniversalChannelHandlerCaller(address common.Address, caller bind.ContractCaller) (*UniversalChannelHandlerCaller, error) { + contract, err := bindUniversalChannelHandler(address, caller, nil, nil) if err != nil { return nil, err } - return &UniversalchannelhandlerCaller{contract: contract}, nil + return &UniversalChannelHandlerCaller{contract: contract}, nil } -// NewUniversalchannelhandlerTransactor creates a new write-only instance of Universalchannelhandler, bound to a specific deployed contract. -func NewUniversalchannelhandlerTransactor(address common.Address, transactor bind.ContractTransactor) (*UniversalchannelhandlerTransactor, error) { - contract, err := bindUniversalchannelhandler(address, nil, transactor, nil) +// NewUniversalChannelHandlerTransactor creates a new write-only instance of UniversalChannelHandler, bound to a specific deployed contract. +func NewUniversalChannelHandlerTransactor(address common.Address, transactor bind.ContractTransactor) (*UniversalChannelHandlerTransactor, error) { + contract, err := bindUniversalChannelHandler(address, nil, transactor, nil) if err != nil { return nil, err } - return &UniversalchannelhandlerTransactor{contract: contract}, nil + return &UniversalChannelHandlerTransactor{contract: contract}, nil } -// NewUniversalchannelhandlerFilterer creates a new log filterer instance of Universalchannelhandler, bound to a specific deployed contract. -func NewUniversalchannelhandlerFilterer(address common.Address, filterer bind.ContractFilterer) (*UniversalchannelhandlerFilterer, error) { - contract, err := bindUniversalchannelhandler(address, nil, nil, filterer) +// NewUniversalChannelHandlerFilterer creates a new log filterer instance of UniversalChannelHandler, bound to a specific deployed contract. +func NewUniversalChannelHandlerFilterer(address common.Address, filterer bind.ContractFilterer) (*UniversalChannelHandlerFilterer, error) { + contract, err := bindUniversalChannelHandler(address, nil, nil, filterer) if err != nil { return nil, err } - return &UniversalchannelhandlerFilterer{contract: contract}, nil + return &UniversalChannelHandlerFilterer{contract: contract}, nil } -// bindUniversalchannelhandler binds a generic wrapper to an already deployed contract. -func bindUniversalchannelhandler(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := UniversalchannelhandlerMetaData.GetAbi() +// bindUniversalChannelHandler binds a generic wrapper to an already deployed contract. +func bindUniversalChannelHandler(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { + parsed, err := UniversalChannelHandlerMetaData.GetAbi() if err != nil { return nil, err } @@ -174,46 +174,46 @@ func bindUniversalchannelhandler(address common.Address, caller bind.ContractCal // sets the output to result. The result type might be a single field for simple // returns, a slice of interfaces for anonymous returns and a struct for named // returns. -func (_Universalchannelhandler *UniversalchannelhandlerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _Universalchannelhandler.Contract.UniversalchannelhandlerCaller.contract.Call(opts, result, method, params...) +func (_UniversalChannelHandler *UniversalChannelHandlerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { + return _UniversalChannelHandler.Contract.UniversalChannelHandlerCaller.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. -func (_Universalchannelhandler *UniversalchannelhandlerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _Universalchannelhandler.Contract.UniversalchannelhandlerTransactor.contract.Transfer(opts) +func (_UniversalChannelHandler *UniversalChannelHandlerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.UniversalChannelHandlerTransactor.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. -func (_Universalchannelhandler *UniversalchannelhandlerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _Universalchannelhandler.Contract.UniversalchannelhandlerTransactor.contract.Transact(opts, method, params...) +func (_UniversalChannelHandler *UniversalChannelHandlerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.UniversalChannelHandlerTransactor.contract.Transact(opts, method, params...) } // Call invokes the (constant) contract method with params as input values and // sets the output to result. The result type might be a single field for simple // returns, a slice of interfaces for anonymous returns and a struct for named // returns. -func (_Universalchannelhandler *UniversalchannelhandlerCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _Universalchannelhandler.Contract.contract.Call(opts, result, method, params...) +func (_UniversalChannelHandler *UniversalChannelHandlerCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { + return _UniversalChannelHandler.Contract.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. -func (_Universalchannelhandler *UniversalchannelhandlerTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _Universalchannelhandler.Contract.contract.Transfer(opts) +func (_UniversalChannelHandler *UniversalChannelHandlerTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. -func (_Universalchannelhandler *UniversalchannelhandlerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _Universalchannelhandler.Contract.contract.Transact(opts, method, params...) +func (_UniversalChannelHandler *UniversalChannelHandlerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.contract.Transact(opts, method, params...) } // MWID is a free data retrieval call binding the contract method 0xc1cb44e5. // // Solidity: function MW_ID() view returns(uint256) -func (_Universalchannelhandler *UniversalchannelhandlerCaller) MWID(opts *bind.CallOpts) (*big.Int, error) { +func (_UniversalChannelHandler *UniversalChannelHandlerCaller) MWID(opts *bind.CallOpts) (*big.Int, error) { var out []interface{} - err := _Universalchannelhandler.contract.Call(opts, &out, "MW_ID") + err := _UniversalChannelHandler.contract.Call(opts, &out, "MW_ID") if err != nil { return *new(*big.Int), err @@ -228,23 +228,23 @@ func (_Universalchannelhandler *UniversalchannelhandlerCaller) MWID(opts *bind.C // MWID is a free data retrieval call binding the contract method 0xc1cb44e5. // // Solidity: function MW_ID() view returns(uint256) -func (_Universalchannelhandler *UniversalchannelhandlerSession) MWID() (*big.Int, error) { - return _Universalchannelhandler.Contract.MWID(&_Universalchannelhandler.CallOpts) +func (_UniversalChannelHandler *UniversalChannelHandlerSession) MWID() (*big.Int, error) { + return _UniversalChannelHandler.Contract.MWID(&_UniversalChannelHandler.CallOpts) } // MWID is a free data retrieval call binding the contract method 0xc1cb44e5. // // Solidity: function MW_ID() view returns(uint256) -func (_Universalchannelhandler *UniversalchannelhandlerCallerSession) MWID() (*big.Int, error) { - return _Universalchannelhandler.Contract.MWID(&_Universalchannelhandler.CallOpts) +func (_UniversalChannelHandler *UniversalChannelHandlerCallerSession) MWID() (*big.Int, error) { + return _UniversalChannelHandler.Contract.MWID(&_UniversalChannelHandler.CallOpts) } // VERSION is a free data retrieval call binding the contract method 0xffa1ad74. // // Solidity: function VERSION() view returns(string) -func (_Universalchannelhandler *UniversalchannelhandlerCaller) VERSION(opts *bind.CallOpts) (string, error) { +func (_UniversalChannelHandler *UniversalChannelHandlerCaller) VERSION(opts *bind.CallOpts) (string, error) { var out []interface{} - err := _Universalchannelhandler.contract.Call(opts, &out, "VERSION") + err := _UniversalChannelHandler.contract.Call(opts, &out, "VERSION") if err != nil { return *new(string), err @@ -259,23 +259,23 @@ func (_Universalchannelhandler *UniversalchannelhandlerCaller) VERSION(opts *bin // VERSION is a free data retrieval call binding the contract method 0xffa1ad74. // // Solidity: function VERSION() view returns(string) -func (_Universalchannelhandler *UniversalchannelhandlerSession) VERSION() (string, error) { - return _Universalchannelhandler.Contract.VERSION(&_Universalchannelhandler.CallOpts) +func (_UniversalChannelHandler *UniversalChannelHandlerSession) VERSION() (string, error) { + return _UniversalChannelHandler.Contract.VERSION(&_UniversalChannelHandler.CallOpts) } // VERSION is a free data retrieval call binding the contract method 0xffa1ad74. // // Solidity: function VERSION() view returns(string) -func (_Universalchannelhandler *UniversalchannelhandlerCallerSession) VERSION() (string, error) { - return _Universalchannelhandler.Contract.VERSION(&_Universalchannelhandler.CallOpts) +func (_UniversalChannelHandler *UniversalChannelHandlerCallerSession) VERSION() (string, error) { + return _UniversalChannelHandler.Contract.VERSION(&_UniversalChannelHandler.CallOpts) } // Dispatcher is a free data retrieval call binding the contract method 0xcb7e9057. // // Solidity: function dispatcher() view returns(address) -func (_Universalchannelhandler *UniversalchannelhandlerCaller) Dispatcher(opts *bind.CallOpts) (common.Address, error) { +func (_UniversalChannelHandler *UniversalChannelHandlerCaller) Dispatcher(opts *bind.CallOpts) (common.Address, error) { var out []interface{} - err := _Universalchannelhandler.contract.Call(opts, &out, "dispatcher") + err := _UniversalChannelHandler.contract.Call(opts, &out, "dispatcher") if err != nil { return *new(common.Address), err @@ -290,23 +290,23 @@ func (_Universalchannelhandler *UniversalchannelhandlerCaller) Dispatcher(opts * // Dispatcher is a free data retrieval call binding the contract method 0xcb7e9057. // // Solidity: function dispatcher() view returns(address) -func (_Universalchannelhandler *UniversalchannelhandlerSession) Dispatcher() (common.Address, error) { - return _Universalchannelhandler.Contract.Dispatcher(&_Universalchannelhandler.CallOpts) +func (_UniversalChannelHandler *UniversalChannelHandlerSession) Dispatcher() (common.Address, error) { + return _UniversalChannelHandler.Contract.Dispatcher(&_UniversalChannelHandler.CallOpts) } // Dispatcher is a free data retrieval call binding the contract method 0xcb7e9057. // // Solidity: function dispatcher() view returns(address) -func (_Universalchannelhandler *UniversalchannelhandlerCallerSession) Dispatcher() (common.Address, error) { - return _Universalchannelhandler.Contract.Dispatcher(&_Universalchannelhandler.CallOpts) +func (_UniversalChannelHandler *UniversalChannelHandlerCallerSession) Dispatcher() (common.Address, error) { + return _UniversalChannelHandler.Contract.Dispatcher(&_UniversalChannelHandler.CallOpts) } // OnChanOpenAck is a free data retrieval call binding the contract method 0xe847e280. // // Solidity: function onChanOpenAck(bytes32 channelId, bytes32 , string counterpartyVersion) view returns() -func (_Universalchannelhandler *UniversalchannelhandlerCaller) OnChanOpenAck(opts *bind.CallOpts, channelId [32]byte, arg1 [32]byte, counterpartyVersion string) error { +func (_UniversalChannelHandler *UniversalChannelHandlerCaller) OnChanOpenAck(opts *bind.CallOpts, channelId [32]byte, arg1 [32]byte, counterpartyVersion string) error { var out []interface{} - err := _Universalchannelhandler.contract.Call(opts, &out, "onChanOpenAck", channelId, arg1, counterpartyVersion) + err := _UniversalChannelHandler.contract.Call(opts, &out, "onChanOpenAck", channelId, arg1, counterpartyVersion) if err != nil { return err @@ -319,23 +319,23 @@ func (_Universalchannelhandler *UniversalchannelhandlerCaller) OnChanOpenAck(opt // OnChanOpenAck is a free data retrieval call binding the contract method 0xe847e280. // // Solidity: function onChanOpenAck(bytes32 channelId, bytes32 , string counterpartyVersion) view returns() -func (_Universalchannelhandler *UniversalchannelhandlerSession) OnChanOpenAck(channelId [32]byte, arg1 [32]byte, counterpartyVersion string) error { - return _Universalchannelhandler.Contract.OnChanOpenAck(&_Universalchannelhandler.CallOpts, channelId, arg1, counterpartyVersion) +func (_UniversalChannelHandler *UniversalChannelHandlerSession) OnChanOpenAck(channelId [32]byte, arg1 [32]byte, counterpartyVersion string) error { + return _UniversalChannelHandler.Contract.OnChanOpenAck(&_UniversalChannelHandler.CallOpts, channelId, arg1, counterpartyVersion) } // OnChanOpenAck is a free data retrieval call binding the contract method 0xe847e280. // // Solidity: function onChanOpenAck(bytes32 channelId, bytes32 , string counterpartyVersion) view returns() -func (_Universalchannelhandler *UniversalchannelhandlerCallerSession) OnChanOpenAck(channelId [32]byte, arg1 [32]byte, counterpartyVersion string) error { - return _Universalchannelhandler.Contract.OnChanOpenAck(&_Universalchannelhandler.CallOpts, channelId, arg1, counterpartyVersion) +func (_UniversalChannelHandler *UniversalChannelHandlerCallerSession) OnChanOpenAck(channelId [32]byte, arg1 [32]byte, counterpartyVersion string) error { + return _UniversalChannelHandler.Contract.OnChanOpenAck(&_UniversalChannelHandler.CallOpts, channelId, arg1, counterpartyVersion) } // OnChanOpenInit is a free data retrieval call binding the contract method 0x7a9ccc4b. // // Solidity: function onChanOpenInit(uint8 , string[] , string , string version) view returns(string selectedVersion) -func (_Universalchannelhandler *UniversalchannelhandlerCaller) OnChanOpenInit(opts *bind.CallOpts, arg0 uint8, arg1 []string, arg2 string, version string) (string, error) { +func (_UniversalChannelHandler *UniversalChannelHandlerCaller) OnChanOpenInit(opts *bind.CallOpts, arg0 uint8, arg1 []string, arg2 string, version string) (string, error) { var out []interface{} - err := _Universalchannelhandler.contract.Call(opts, &out, "onChanOpenInit", arg0, arg1, arg2, version) + err := _UniversalChannelHandler.contract.Call(opts, &out, "onChanOpenInit", arg0, arg1, arg2, version) if err != nil { return *new(string), err @@ -350,23 +350,23 @@ func (_Universalchannelhandler *UniversalchannelhandlerCaller) OnChanOpenInit(op // OnChanOpenInit is a free data retrieval call binding the contract method 0x7a9ccc4b. // // Solidity: function onChanOpenInit(uint8 , string[] , string , string version) view returns(string selectedVersion) -func (_Universalchannelhandler *UniversalchannelhandlerSession) OnChanOpenInit(arg0 uint8, arg1 []string, arg2 string, version string) (string, error) { - return _Universalchannelhandler.Contract.OnChanOpenInit(&_Universalchannelhandler.CallOpts, arg0, arg1, arg2, version) +func (_UniversalChannelHandler *UniversalChannelHandlerSession) OnChanOpenInit(arg0 uint8, arg1 []string, arg2 string, version string) (string, error) { + return _UniversalChannelHandler.Contract.OnChanOpenInit(&_UniversalChannelHandler.CallOpts, arg0, arg1, arg2, version) } // OnChanOpenInit is a free data retrieval call binding the contract method 0x7a9ccc4b. // // Solidity: function onChanOpenInit(uint8 , string[] , string , string version) view returns(string selectedVersion) -func (_Universalchannelhandler *UniversalchannelhandlerCallerSession) OnChanOpenInit(arg0 uint8, arg1 []string, arg2 string, version string) (string, error) { - return _Universalchannelhandler.Contract.OnChanOpenInit(&_Universalchannelhandler.CallOpts, arg0, arg1, arg2, version) +func (_UniversalChannelHandler *UniversalChannelHandlerCallerSession) OnChanOpenInit(arg0 uint8, arg1 []string, arg2 string, version string) (string, error) { + return _UniversalChannelHandler.Contract.OnChanOpenInit(&_UniversalChannelHandler.CallOpts, arg0, arg1, arg2, version) } // OnChanOpenTry is a free data retrieval call binding the contract method 0x4bdb5597. // // Solidity: function onChanOpenTry(uint8 , string[] , bytes32 channelId, string , bytes32 , string counterpartyVersion) view returns(string selectedVersion) -func (_Universalchannelhandler *UniversalchannelhandlerCaller) OnChanOpenTry(opts *bind.CallOpts, arg0 uint8, arg1 []string, channelId [32]byte, arg3 string, arg4 [32]byte, counterpartyVersion string) (string, error) { +func (_UniversalChannelHandler *UniversalChannelHandlerCaller) OnChanOpenTry(opts *bind.CallOpts, arg0 uint8, arg1 []string, channelId [32]byte, arg3 string, arg4 [32]byte, counterpartyVersion string) (string, error) { var out []interface{} - err := _Universalchannelhandler.contract.Call(opts, &out, "onChanOpenTry", arg0, arg1, channelId, arg3, arg4, counterpartyVersion) + err := _UniversalChannelHandler.contract.Call(opts, &out, "onChanOpenTry", arg0, arg1, channelId, arg3, arg4, counterpartyVersion) if err != nil { return *new(string), err @@ -381,23 +381,23 @@ func (_Universalchannelhandler *UniversalchannelhandlerCaller) OnChanOpenTry(opt // OnChanOpenTry is a free data retrieval call binding the contract method 0x4bdb5597. // // Solidity: function onChanOpenTry(uint8 , string[] , bytes32 channelId, string , bytes32 , string counterpartyVersion) view returns(string selectedVersion) -func (_Universalchannelhandler *UniversalchannelhandlerSession) OnChanOpenTry(arg0 uint8, arg1 []string, channelId [32]byte, arg3 string, arg4 [32]byte, counterpartyVersion string) (string, error) { - return _Universalchannelhandler.Contract.OnChanOpenTry(&_Universalchannelhandler.CallOpts, arg0, arg1, channelId, arg3, arg4, counterpartyVersion) +func (_UniversalChannelHandler *UniversalChannelHandlerSession) OnChanOpenTry(arg0 uint8, arg1 []string, channelId [32]byte, arg3 string, arg4 [32]byte, counterpartyVersion string) (string, error) { + return _UniversalChannelHandler.Contract.OnChanOpenTry(&_UniversalChannelHandler.CallOpts, arg0, arg1, channelId, arg3, arg4, counterpartyVersion) } // OnChanOpenTry is a free data retrieval call binding the contract method 0x4bdb5597. // // Solidity: function onChanOpenTry(uint8 , string[] , bytes32 channelId, string , bytes32 , string counterpartyVersion) view returns(string selectedVersion) -func (_Universalchannelhandler *UniversalchannelhandlerCallerSession) OnChanOpenTry(arg0 uint8, arg1 []string, channelId [32]byte, arg3 string, arg4 [32]byte, counterpartyVersion string) (string, error) { - return _Universalchannelhandler.Contract.OnChanOpenTry(&_Universalchannelhandler.CallOpts, arg0, arg1, channelId, arg3, arg4, counterpartyVersion) +func (_UniversalChannelHandler *UniversalChannelHandlerCallerSession) OnChanOpenTry(arg0 uint8, arg1 []string, channelId [32]byte, arg3 string, arg4 [32]byte, counterpartyVersion string) (string, error) { + return _UniversalChannelHandler.Contract.OnChanOpenTry(&_UniversalChannelHandler.CallOpts, arg0, arg1, channelId, arg3, arg4, counterpartyVersion) } // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. // // Solidity: function owner() view returns(address) -func (_Universalchannelhandler *UniversalchannelhandlerCaller) Owner(opts *bind.CallOpts) (common.Address, error) { +func (_UniversalChannelHandler *UniversalChannelHandlerCaller) Owner(opts *bind.CallOpts) (common.Address, error) { var out []interface{} - err := _Universalchannelhandler.contract.Call(opts, &out, "owner") + err := _UniversalChannelHandler.contract.Call(opts, &out, "owner") if err != nil { return *new(common.Address), err @@ -412,23 +412,23 @@ func (_Universalchannelhandler *UniversalchannelhandlerCaller) Owner(opts *bind. // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. // // Solidity: function owner() view returns(address) -func (_Universalchannelhandler *UniversalchannelhandlerSession) Owner() (common.Address, error) { - return _Universalchannelhandler.Contract.Owner(&_Universalchannelhandler.CallOpts) +func (_UniversalChannelHandler *UniversalChannelHandlerSession) Owner() (common.Address, error) { + return _UniversalChannelHandler.Contract.Owner(&_UniversalChannelHandler.CallOpts) } // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. // // Solidity: function owner() view returns(address) -func (_Universalchannelhandler *UniversalchannelhandlerCallerSession) Owner() (common.Address, error) { - return _Universalchannelhandler.Contract.Owner(&_Universalchannelhandler.CallOpts) +func (_UniversalChannelHandler *UniversalChannelHandlerCallerSession) Owner() (common.Address, error) { + return _UniversalChannelHandler.Contract.Owner(&_UniversalChannelHandler.CallOpts) } // ProxiableUUID is a free data retrieval call binding the contract method 0x52d1902d. // // Solidity: function proxiableUUID() view returns(bytes32) -func (_Universalchannelhandler *UniversalchannelhandlerCaller) ProxiableUUID(opts *bind.CallOpts) ([32]byte, error) { +func (_UniversalChannelHandler *UniversalChannelHandlerCaller) ProxiableUUID(opts *bind.CallOpts) ([32]byte, error) { var out []interface{} - err := _Universalchannelhandler.contract.Call(opts, &out, "proxiableUUID") + err := _UniversalChannelHandler.contract.Call(opts, &out, "proxiableUUID") if err != nil { return *new([32]byte), err @@ -443,377 +443,377 @@ func (_Universalchannelhandler *UniversalchannelhandlerCaller) ProxiableUUID(opt // ProxiableUUID is a free data retrieval call binding the contract method 0x52d1902d. // // Solidity: function proxiableUUID() view returns(bytes32) -func (_Universalchannelhandler *UniversalchannelhandlerSession) ProxiableUUID() ([32]byte, error) { - return _Universalchannelhandler.Contract.ProxiableUUID(&_Universalchannelhandler.CallOpts) +func (_UniversalChannelHandler *UniversalChannelHandlerSession) ProxiableUUID() ([32]byte, error) { + return _UniversalChannelHandler.Contract.ProxiableUUID(&_UniversalChannelHandler.CallOpts) } // ProxiableUUID is a free data retrieval call binding the contract method 0x52d1902d. // // Solidity: function proxiableUUID() view returns(bytes32) -func (_Universalchannelhandler *UniversalchannelhandlerCallerSession) ProxiableUUID() ([32]byte, error) { - return _Universalchannelhandler.Contract.ProxiableUUID(&_Universalchannelhandler.CallOpts) +func (_UniversalChannelHandler *UniversalChannelHandlerCallerSession) ProxiableUUID() ([32]byte, error) { + return _UniversalChannelHandler.Contract.ProxiableUUID(&_UniversalChannelHandler.CallOpts) } // CloseChannel is a paid mutator transaction binding the contract method 0x4c2ee09d. // // Solidity: function closeChannel(bytes32 channelId) returns() -func (_Universalchannelhandler *UniversalchannelhandlerTransactor) CloseChannel(opts *bind.TransactOpts, channelId [32]byte) (*types.Transaction, error) { - return _Universalchannelhandler.contract.Transact(opts, "closeChannel", channelId) +func (_UniversalChannelHandler *UniversalChannelHandlerTransactor) CloseChannel(opts *bind.TransactOpts, channelId [32]byte) (*types.Transaction, error) { + return _UniversalChannelHandler.contract.Transact(opts, "closeChannel", channelId) } // CloseChannel is a paid mutator transaction binding the contract method 0x4c2ee09d. // // Solidity: function closeChannel(bytes32 channelId) returns() -func (_Universalchannelhandler *UniversalchannelhandlerSession) CloseChannel(channelId [32]byte) (*types.Transaction, error) { - return _Universalchannelhandler.Contract.CloseChannel(&_Universalchannelhandler.TransactOpts, channelId) +func (_UniversalChannelHandler *UniversalChannelHandlerSession) CloseChannel(channelId [32]byte) (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.CloseChannel(&_UniversalChannelHandler.TransactOpts, channelId) } // CloseChannel is a paid mutator transaction binding the contract method 0x4c2ee09d. // // Solidity: function closeChannel(bytes32 channelId) returns() -func (_Universalchannelhandler *UniversalchannelhandlerTransactorSession) CloseChannel(channelId [32]byte) (*types.Transaction, error) { - return _Universalchannelhandler.Contract.CloseChannel(&_Universalchannelhandler.TransactOpts, channelId) +func (_UniversalChannelHandler *UniversalChannelHandlerTransactorSession) CloseChannel(channelId [32]byte) (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.CloseChannel(&_UniversalChannelHandler.TransactOpts, channelId) } // Initialize is a paid mutator transaction binding the contract method 0xc4d66de8. // // Solidity: function initialize(address _dispatcher) returns() -func (_Universalchannelhandler *UniversalchannelhandlerTransactor) Initialize(opts *bind.TransactOpts, _dispatcher common.Address) (*types.Transaction, error) { - return _Universalchannelhandler.contract.Transact(opts, "initialize", _dispatcher) +func (_UniversalChannelHandler *UniversalChannelHandlerTransactor) Initialize(opts *bind.TransactOpts, _dispatcher common.Address) (*types.Transaction, error) { + return _UniversalChannelHandler.contract.Transact(opts, "initialize", _dispatcher) } // Initialize is a paid mutator transaction binding the contract method 0xc4d66de8. // // Solidity: function initialize(address _dispatcher) returns() -func (_Universalchannelhandler *UniversalchannelhandlerSession) Initialize(_dispatcher common.Address) (*types.Transaction, error) { - return _Universalchannelhandler.Contract.Initialize(&_Universalchannelhandler.TransactOpts, _dispatcher) +func (_UniversalChannelHandler *UniversalChannelHandlerSession) Initialize(_dispatcher common.Address) (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.Initialize(&_UniversalChannelHandler.TransactOpts, _dispatcher) } // Initialize is a paid mutator transaction binding the contract method 0xc4d66de8. // // Solidity: function initialize(address _dispatcher) returns() -func (_Universalchannelhandler *UniversalchannelhandlerTransactorSession) Initialize(_dispatcher common.Address) (*types.Transaction, error) { - return _Universalchannelhandler.Contract.Initialize(&_Universalchannelhandler.TransactOpts, _dispatcher) +func (_UniversalChannelHandler *UniversalChannelHandlerTransactorSession) Initialize(_dispatcher common.Address) (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.Initialize(&_UniversalChannelHandler.TransactOpts, _dispatcher) } // OnAcknowledgementPacket is a paid mutator transaction binding the contract method 0x7e1d42b5. // // Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) packet, (bool,bytes) ack) returns() -func (_Universalchannelhandler *UniversalchannelhandlerTransactor) OnAcknowledgementPacket(opts *bind.TransactOpts, packet IbcPacket, ack AckPacket) (*types.Transaction, error) { - return _Universalchannelhandler.contract.Transact(opts, "onAcknowledgementPacket", packet, ack) +func (_UniversalChannelHandler *UniversalChannelHandlerTransactor) OnAcknowledgementPacket(opts *bind.TransactOpts, packet IbcPacket, ack AckPacket) (*types.Transaction, error) { + return _UniversalChannelHandler.contract.Transact(opts, "onAcknowledgementPacket", packet, ack) } // OnAcknowledgementPacket is a paid mutator transaction binding the contract method 0x7e1d42b5. // // Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) packet, (bool,bytes) ack) returns() -func (_Universalchannelhandler *UniversalchannelhandlerSession) OnAcknowledgementPacket(packet IbcPacket, ack AckPacket) (*types.Transaction, error) { - return _Universalchannelhandler.Contract.OnAcknowledgementPacket(&_Universalchannelhandler.TransactOpts, packet, ack) +func (_UniversalChannelHandler *UniversalChannelHandlerSession) OnAcknowledgementPacket(packet IbcPacket, ack AckPacket) (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.OnAcknowledgementPacket(&_UniversalChannelHandler.TransactOpts, packet, ack) } // OnAcknowledgementPacket is a paid mutator transaction binding the contract method 0x7e1d42b5. // // Solidity: function onAcknowledgementPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) packet, (bool,bytes) ack) returns() -func (_Universalchannelhandler *UniversalchannelhandlerTransactorSession) OnAcknowledgementPacket(packet IbcPacket, ack AckPacket) (*types.Transaction, error) { - return _Universalchannelhandler.Contract.OnAcknowledgementPacket(&_Universalchannelhandler.TransactOpts, packet, ack) +func (_UniversalChannelHandler *UniversalChannelHandlerTransactorSession) OnAcknowledgementPacket(packet IbcPacket, ack AckPacket) (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.OnAcknowledgementPacket(&_UniversalChannelHandler.TransactOpts, packet, ack) } // OnChanCloseConfirm is a paid mutator transaction binding the contract method 0x3f9fdbe4. // // Solidity: function onChanCloseConfirm(bytes32 channelId, string , bytes32 ) returns() -func (_Universalchannelhandler *UniversalchannelhandlerTransactor) OnChanCloseConfirm(opts *bind.TransactOpts, channelId [32]byte, arg1 string, arg2 [32]byte) (*types.Transaction, error) { - return _Universalchannelhandler.contract.Transact(opts, "onChanCloseConfirm", channelId, arg1, arg2) +func (_UniversalChannelHandler *UniversalChannelHandlerTransactor) OnChanCloseConfirm(opts *bind.TransactOpts, channelId [32]byte, arg1 string, arg2 [32]byte) (*types.Transaction, error) { + return _UniversalChannelHandler.contract.Transact(opts, "onChanCloseConfirm", channelId, arg1, arg2) } // OnChanCloseConfirm is a paid mutator transaction binding the contract method 0x3f9fdbe4. // // Solidity: function onChanCloseConfirm(bytes32 channelId, string , bytes32 ) returns() -func (_Universalchannelhandler *UniversalchannelhandlerSession) OnChanCloseConfirm(channelId [32]byte, arg1 string, arg2 [32]byte) (*types.Transaction, error) { - return _Universalchannelhandler.Contract.OnChanCloseConfirm(&_Universalchannelhandler.TransactOpts, channelId, arg1, arg2) +func (_UniversalChannelHandler *UniversalChannelHandlerSession) OnChanCloseConfirm(channelId [32]byte, arg1 string, arg2 [32]byte) (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.OnChanCloseConfirm(&_UniversalChannelHandler.TransactOpts, channelId, arg1, arg2) } // OnChanCloseConfirm is a paid mutator transaction binding the contract method 0x3f9fdbe4. // // Solidity: function onChanCloseConfirm(bytes32 channelId, string , bytes32 ) returns() -func (_Universalchannelhandler *UniversalchannelhandlerTransactorSession) OnChanCloseConfirm(channelId [32]byte, arg1 string, arg2 [32]byte) (*types.Transaction, error) { - return _Universalchannelhandler.Contract.OnChanCloseConfirm(&_Universalchannelhandler.TransactOpts, channelId, arg1, arg2) +func (_UniversalChannelHandler *UniversalChannelHandlerTransactorSession) OnChanCloseConfirm(channelId [32]byte, arg1 string, arg2 [32]byte) (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.OnChanCloseConfirm(&_UniversalChannelHandler.TransactOpts, channelId, arg1, arg2) } // OnChanCloseInit is a paid mutator transaction binding the contract method 0x1eb7dd5e. // // Solidity: function onChanCloseInit(bytes32 channelId, string , bytes32 ) returns() -func (_Universalchannelhandler *UniversalchannelhandlerTransactor) OnChanCloseInit(opts *bind.TransactOpts, channelId [32]byte, arg1 string, arg2 [32]byte) (*types.Transaction, error) { - return _Universalchannelhandler.contract.Transact(opts, "onChanCloseInit", channelId, arg1, arg2) +func (_UniversalChannelHandler *UniversalChannelHandlerTransactor) OnChanCloseInit(opts *bind.TransactOpts, channelId [32]byte, arg1 string, arg2 [32]byte) (*types.Transaction, error) { + return _UniversalChannelHandler.contract.Transact(opts, "onChanCloseInit", channelId, arg1, arg2) } // OnChanCloseInit is a paid mutator transaction binding the contract method 0x1eb7dd5e. // // Solidity: function onChanCloseInit(bytes32 channelId, string , bytes32 ) returns() -func (_Universalchannelhandler *UniversalchannelhandlerSession) OnChanCloseInit(channelId [32]byte, arg1 string, arg2 [32]byte) (*types.Transaction, error) { - return _Universalchannelhandler.Contract.OnChanCloseInit(&_Universalchannelhandler.TransactOpts, channelId, arg1, arg2) +func (_UniversalChannelHandler *UniversalChannelHandlerSession) OnChanCloseInit(channelId [32]byte, arg1 string, arg2 [32]byte) (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.OnChanCloseInit(&_UniversalChannelHandler.TransactOpts, channelId, arg1, arg2) } // OnChanCloseInit is a paid mutator transaction binding the contract method 0x1eb7dd5e. // // Solidity: function onChanCloseInit(bytes32 channelId, string , bytes32 ) returns() -func (_Universalchannelhandler *UniversalchannelhandlerTransactorSession) OnChanCloseInit(channelId [32]byte, arg1 string, arg2 [32]byte) (*types.Transaction, error) { - return _Universalchannelhandler.Contract.OnChanCloseInit(&_Universalchannelhandler.TransactOpts, channelId, arg1, arg2) +func (_UniversalChannelHandler *UniversalChannelHandlerTransactorSession) OnChanCloseInit(channelId [32]byte, arg1 string, arg2 [32]byte) (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.OnChanCloseInit(&_UniversalChannelHandler.TransactOpts, channelId, arg1, arg2) } // OnChanOpenConfirm is a paid mutator transaction binding the contract method 0xfad28a24. // // Solidity: function onChanOpenConfirm(bytes32 channelId) returns() -func (_Universalchannelhandler *UniversalchannelhandlerTransactor) OnChanOpenConfirm(opts *bind.TransactOpts, channelId [32]byte) (*types.Transaction, error) { - return _Universalchannelhandler.contract.Transact(opts, "onChanOpenConfirm", channelId) +func (_UniversalChannelHandler *UniversalChannelHandlerTransactor) OnChanOpenConfirm(opts *bind.TransactOpts, channelId [32]byte) (*types.Transaction, error) { + return _UniversalChannelHandler.contract.Transact(opts, "onChanOpenConfirm", channelId) } // OnChanOpenConfirm is a paid mutator transaction binding the contract method 0xfad28a24. // // Solidity: function onChanOpenConfirm(bytes32 channelId) returns() -func (_Universalchannelhandler *UniversalchannelhandlerSession) OnChanOpenConfirm(channelId [32]byte) (*types.Transaction, error) { - return _Universalchannelhandler.Contract.OnChanOpenConfirm(&_Universalchannelhandler.TransactOpts, channelId) +func (_UniversalChannelHandler *UniversalChannelHandlerSession) OnChanOpenConfirm(channelId [32]byte) (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.OnChanOpenConfirm(&_UniversalChannelHandler.TransactOpts, channelId) } // OnChanOpenConfirm is a paid mutator transaction binding the contract method 0xfad28a24. // // Solidity: function onChanOpenConfirm(bytes32 channelId) returns() -func (_Universalchannelhandler *UniversalchannelhandlerTransactorSession) OnChanOpenConfirm(channelId [32]byte) (*types.Transaction, error) { - return _Universalchannelhandler.Contract.OnChanOpenConfirm(&_Universalchannelhandler.TransactOpts, channelId) +func (_UniversalChannelHandler *UniversalChannelHandlerTransactorSession) OnChanOpenConfirm(channelId [32]byte) (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.OnChanOpenConfirm(&_UniversalChannelHandler.TransactOpts, channelId) } // OnRecvPacket is a paid mutator transaction binding the contract method 0x4dcc0aa6. // // Solidity: function onRecvPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) packet) returns((bool,bytes) ackPacket) -func (_Universalchannelhandler *UniversalchannelhandlerTransactor) OnRecvPacket(opts *bind.TransactOpts, packet IbcPacket) (*types.Transaction, error) { - return _Universalchannelhandler.contract.Transact(opts, "onRecvPacket", packet) +func (_UniversalChannelHandler *UniversalChannelHandlerTransactor) OnRecvPacket(opts *bind.TransactOpts, packet IbcPacket) (*types.Transaction, error) { + return _UniversalChannelHandler.contract.Transact(opts, "onRecvPacket", packet) } // OnRecvPacket is a paid mutator transaction binding the contract method 0x4dcc0aa6. // // Solidity: function onRecvPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) packet) returns((bool,bytes) ackPacket) -func (_Universalchannelhandler *UniversalchannelhandlerSession) OnRecvPacket(packet IbcPacket) (*types.Transaction, error) { - return _Universalchannelhandler.Contract.OnRecvPacket(&_Universalchannelhandler.TransactOpts, packet) +func (_UniversalChannelHandler *UniversalChannelHandlerSession) OnRecvPacket(packet IbcPacket) (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.OnRecvPacket(&_UniversalChannelHandler.TransactOpts, packet) } // OnRecvPacket is a paid mutator transaction binding the contract method 0x4dcc0aa6. // // Solidity: function onRecvPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) packet) returns((bool,bytes) ackPacket) -func (_Universalchannelhandler *UniversalchannelhandlerTransactorSession) OnRecvPacket(packet IbcPacket) (*types.Transaction, error) { - return _Universalchannelhandler.Contract.OnRecvPacket(&_Universalchannelhandler.TransactOpts, packet) +func (_UniversalChannelHandler *UniversalChannelHandlerTransactorSession) OnRecvPacket(packet IbcPacket) (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.OnRecvPacket(&_UniversalChannelHandler.TransactOpts, packet) } // OnTimeoutPacket is a paid mutator transaction binding the contract method 0x602f9834. // // Solidity: function onTimeoutPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) packet) returns() -func (_Universalchannelhandler *UniversalchannelhandlerTransactor) OnTimeoutPacket(opts *bind.TransactOpts, packet IbcPacket) (*types.Transaction, error) { - return _Universalchannelhandler.contract.Transact(opts, "onTimeoutPacket", packet) +func (_UniversalChannelHandler *UniversalChannelHandlerTransactor) OnTimeoutPacket(opts *bind.TransactOpts, packet IbcPacket) (*types.Transaction, error) { + return _UniversalChannelHandler.contract.Transact(opts, "onTimeoutPacket", packet) } // OnTimeoutPacket is a paid mutator transaction binding the contract method 0x602f9834. // // Solidity: function onTimeoutPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) packet) returns() -func (_Universalchannelhandler *UniversalchannelhandlerSession) OnTimeoutPacket(packet IbcPacket) (*types.Transaction, error) { - return _Universalchannelhandler.Contract.OnTimeoutPacket(&_Universalchannelhandler.TransactOpts, packet) +func (_UniversalChannelHandler *UniversalChannelHandlerSession) OnTimeoutPacket(packet IbcPacket) (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.OnTimeoutPacket(&_UniversalChannelHandler.TransactOpts, packet) } // OnTimeoutPacket is a paid mutator transaction binding the contract method 0x602f9834. // // Solidity: function onTimeoutPacket(((string,bytes32),(string,bytes32),uint64,bytes,(uint64,uint64),uint64) packet) returns() -func (_Universalchannelhandler *UniversalchannelhandlerTransactorSession) OnTimeoutPacket(packet IbcPacket) (*types.Transaction, error) { - return _Universalchannelhandler.Contract.OnTimeoutPacket(&_Universalchannelhandler.TransactOpts, packet) +func (_UniversalChannelHandler *UniversalChannelHandlerTransactorSession) OnTimeoutPacket(packet IbcPacket) (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.OnTimeoutPacket(&_UniversalChannelHandler.TransactOpts, packet) } // OpenChannel is a paid mutator transaction binding the contract method 0xace02de7. // // Solidity: function openChannel(string version, uint8 ordering, bool feeEnabled, string[] connectionHops, string counterpartyPortIdentifier) returns() -func (_Universalchannelhandler *UniversalchannelhandlerTransactor) OpenChannel(opts *bind.TransactOpts, version string, ordering uint8, feeEnabled bool, connectionHops []string, counterpartyPortIdentifier string) (*types.Transaction, error) { - return _Universalchannelhandler.contract.Transact(opts, "openChannel", version, ordering, feeEnabled, connectionHops, counterpartyPortIdentifier) +func (_UniversalChannelHandler *UniversalChannelHandlerTransactor) OpenChannel(opts *bind.TransactOpts, version string, ordering uint8, feeEnabled bool, connectionHops []string, counterpartyPortIdentifier string) (*types.Transaction, error) { + return _UniversalChannelHandler.contract.Transact(opts, "openChannel", version, ordering, feeEnabled, connectionHops, counterpartyPortIdentifier) } // OpenChannel is a paid mutator transaction binding the contract method 0xace02de7. // // Solidity: function openChannel(string version, uint8 ordering, bool feeEnabled, string[] connectionHops, string counterpartyPortIdentifier) returns() -func (_Universalchannelhandler *UniversalchannelhandlerSession) OpenChannel(version string, ordering uint8, feeEnabled bool, connectionHops []string, counterpartyPortIdentifier string) (*types.Transaction, error) { - return _Universalchannelhandler.Contract.OpenChannel(&_Universalchannelhandler.TransactOpts, version, ordering, feeEnabled, connectionHops, counterpartyPortIdentifier) +func (_UniversalChannelHandler *UniversalChannelHandlerSession) OpenChannel(version string, ordering uint8, feeEnabled bool, connectionHops []string, counterpartyPortIdentifier string) (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.OpenChannel(&_UniversalChannelHandler.TransactOpts, version, ordering, feeEnabled, connectionHops, counterpartyPortIdentifier) } // OpenChannel is a paid mutator transaction binding the contract method 0xace02de7. // // Solidity: function openChannel(string version, uint8 ordering, bool feeEnabled, string[] connectionHops, string counterpartyPortIdentifier) returns() -func (_Universalchannelhandler *UniversalchannelhandlerTransactorSession) OpenChannel(version string, ordering uint8, feeEnabled bool, connectionHops []string, counterpartyPortIdentifier string) (*types.Transaction, error) { - return _Universalchannelhandler.Contract.OpenChannel(&_Universalchannelhandler.TransactOpts, version, ordering, feeEnabled, connectionHops, counterpartyPortIdentifier) +func (_UniversalChannelHandler *UniversalChannelHandlerTransactorSession) OpenChannel(version string, ordering uint8, feeEnabled bool, connectionHops []string, counterpartyPortIdentifier string) (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.OpenChannel(&_UniversalChannelHandler.TransactOpts, version, ordering, feeEnabled, connectionHops, counterpartyPortIdentifier) } // RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. // // Solidity: function renounceOwnership() returns() -func (_Universalchannelhandler *UniversalchannelhandlerTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) { - return _Universalchannelhandler.contract.Transact(opts, "renounceOwnership") +func (_UniversalChannelHandler *UniversalChannelHandlerTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) { + return _UniversalChannelHandler.contract.Transact(opts, "renounceOwnership") } // RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. // // Solidity: function renounceOwnership() returns() -func (_Universalchannelhandler *UniversalchannelhandlerSession) RenounceOwnership() (*types.Transaction, error) { - return _Universalchannelhandler.Contract.RenounceOwnership(&_Universalchannelhandler.TransactOpts) +func (_UniversalChannelHandler *UniversalChannelHandlerSession) RenounceOwnership() (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.RenounceOwnership(&_UniversalChannelHandler.TransactOpts) } // RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. // // Solidity: function renounceOwnership() returns() -func (_Universalchannelhandler *UniversalchannelhandlerTransactorSession) RenounceOwnership() (*types.Transaction, error) { - return _Universalchannelhandler.Contract.RenounceOwnership(&_Universalchannelhandler.TransactOpts) +func (_UniversalChannelHandler *UniversalChannelHandlerTransactorSession) RenounceOwnership() (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.RenounceOwnership(&_UniversalChannelHandler.TransactOpts) } // SendUniversalPacket is a paid mutator transaction binding the contract method 0x1f3a5830. // // Solidity: function sendUniversalPacket(bytes32 channelId, bytes32 destPortAddr, bytes appData, uint64 timeoutTimestamp) returns(uint64 sequence) -func (_Universalchannelhandler *UniversalchannelhandlerTransactor) SendUniversalPacket(opts *bind.TransactOpts, channelId [32]byte, destPortAddr [32]byte, appData []byte, timeoutTimestamp uint64) (*types.Transaction, error) { - return _Universalchannelhandler.contract.Transact(opts, "sendUniversalPacket", channelId, destPortAddr, appData, timeoutTimestamp) +func (_UniversalChannelHandler *UniversalChannelHandlerTransactor) SendUniversalPacket(opts *bind.TransactOpts, channelId [32]byte, destPortAddr [32]byte, appData []byte, timeoutTimestamp uint64) (*types.Transaction, error) { + return _UniversalChannelHandler.contract.Transact(opts, "sendUniversalPacket", channelId, destPortAddr, appData, timeoutTimestamp) } // SendUniversalPacket is a paid mutator transaction binding the contract method 0x1f3a5830. // // Solidity: function sendUniversalPacket(bytes32 channelId, bytes32 destPortAddr, bytes appData, uint64 timeoutTimestamp) returns(uint64 sequence) -func (_Universalchannelhandler *UniversalchannelhandlerSession) SendUniversalPacket(channelId [32]byte, destPortAddr [32]byte, appData []byte, timeoutTimestamp uint64) (*types.Transaction, error) { - return _Universalchannelhandler.Contract.SendUniversalPacket(&_Universalchannelhandler.TransactOpts, channelId, destPortAddr, appData, timeoutTimestamp) +func (_UniversalChannelHandler *UniversalChannelHandlerSession) SendUniversalPacket(channelId [32]byte, destPortAddr [32]byte, appData []byte, timeoutTimestamp uint64) (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.SendUniversalPacket(&_UniversalChannelHandler.TransactOpts, channelId, destPortAddr, appData, timeoutTimestamp) } // SendUniversalPacket is a paid mutator transaction binding the contract method 0x1f3a5830. // // Solidity: function sendUniversalPacket(bytes32 channelId, bytes32 destPortAddr, bytes appData, uint64 timeoutTimestamp) returns(uint64 sequence) -func (_Universalchannelhandler *UniversalchannelhandlerTransactorSession) SendUniversalPacket(channelId [32]byte, destPortAddr [32]byte, appData []byte, timeoutTimestamp uint64) (*types.Transaction, error) { - return _Universalchannelhandler.Contract.SendUniversalPacket(&_Universalchannelhandler.TransactOpts, channelId, destPortAddr, appData, timeoutTimestamp) +func (_UniversalChannelHandler *UniversalChannelHandlerTransactorSession) SendUniversalPacket(channelId [32]byte, destPortAddr [32]byte, appData []byte, timeoutTimestamp uint64) (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.SendUniversalPacket(&_UniversalChannelHandler.TransactOpts, channelId, destPortAddr, appData, timeoutTimestamp) } // SendUniversalPacketWithFee is a paid mutator transaction binding the contract method 0x462fdf83. // // Solidity: function sendUniversalPacketWithFee(bytes32 channelId, bytes32 destPortAddr, bytes appData, uint64 timeoutTimestamp, uint256[2] gasLimits, uint256[2] gasPrices) payable returns(uint64 sequence) -func (_Universalchannelhandler *UniversalchannelhandlerTransactor) SendUniversalPacketWithFee(opts *bind.TransactOpts, channelId [32]byte, destPortAddr [32]byte, appData []byte, timeoutTimestamp uint64, gasLimits [2]*big.Int, gasPrices [2]*big.Int) (*types.Transaction, error) { - return _Universalchannelhandler.contract.Transact(opts, "sendUniversalPacketWithFee", channelId, destPortAddr, appData, timeoutTimestamp, gasLimits, gasPrices) +func (_UniversalChannelHandler *UniversalChannelHandlerTransactor) SendUniversalPacketWithFee(opts *bind.TransactOpts, channelId [32]byte, destPortAddr [32]byte, appData []byte, timeoutTimestamp uint64, gasLimits [2]*big.Int, gasPrices [2]*big.Int) (*types.Transaction, error) { + return _UniversalChannelHandler.contract.Transact(opts, "sendUniversalPacketWithFee", channelId, destPortAddr, appData, timeoutTimestamp, gasLimits, gasPrices) } // SendUniversalPacketWithFee is a paid mutator transaction binding the contract method 0x462fdf83. // // Solidity: function sendUniversalPacketWithFee(bytes32 channelId, bytes32 destPortAddr, bytes appData, uint64 timeoutTimestamp, uint256[2] gasLimits, uint256[2] gasPrices) payable returns(uint64 sequence) -func (_Universalchannelhandler *UniversalchannelhandlerSession) SendUniversalPacketWithFee(channelId [32]byte, destPortAddr [32]byte, appData []byte, timeoutTimestamp uint64, gasLimits [2]*big.Int, gasPrices [2]*big.Int) (*types.Transaction, error) { - return _Universalchannelhandler.Contract.SendUniversalPacketWithFee(&_Universalchannelhandler.TransactOpts, channelId, destPortAddr, appData, timeoutTimestamp, gasLimits, gasPrices) +func (_UniversalChannelHandler *UniversalChannelHandlerSession) SendUniversalPacketWithFee(channelId [32]byte, destPortAddr [32]byte, appData []byte, timeoutTimestamp uint64, gasLimits [2]*big.Int, gasPrices [2]*big.Int) (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.SendUniversalPacketWithFee(&_UniversalChannelHandler.TransactOpts, channelId, destPortAddr, appData, timeoutTimestamp, gasLimits, gasPrices) } // SendUniversalPacketWithFee is a paid mutator transaction binding the contract method 0x462fdf83. // // Solidity: function sendUniversalPacketWithFee(bytes32 channelId, bytes32 destPortAddr, bytes appData, uint64 timeoutTimestamp, uint256[2] gasLimits, uint256[2] gasPrices) payable returns(uint64 sequence) -func (_Universalchannelhandler *UniversalchannelhandlerTransactorSession) SendUniversalPacketWithFee(channelId [32]byte, destPortAddr [32]byte, appData []byte, timeoutTimestamp uint64, gasLimits [2]*big.Int, gasPrices [2]*big.Int) (*types.Transaction, error) { - return _Universalchannelhandler.Contract.SendUniversalPacketWithFee(&_Universalchannelhandler.TransactOpts, channelId, destPortAddr, appData, timeoutTimestamp, gasLimits, gasPrices) +func (_UniversalChannelHandler *UniversalChannelHandlerTransactorSession) SendUniversalPacketWithFee(channelId [32]byte, destPortAddr [32]byte, appData []byte, timeoutTimestamp uint64, gasLimits [2]*big.Int, gasPrices [2]*big.Int) (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.SendUniversalPacketWithFee(&_UniversalChannelHandler.TransactOpts, channelId, destPortAddr, appData, timeoutTimestamp, gasLimits, gasPrices) } // SetDispatcher is a paid mutator transaction binding the contract method 0xba22bd76. // // Solidity: function setDispatcher(address _dispatcher) returns() -func (_Universalchannelhandler *UniversalchannelhandlerTransactor) SetDispatcher(opts *bind.TransactOpts, _dispatcher common.Address) (*types.Transaction, error) { - return _Universalchannelhandler.contract.Transact(opts, "setDispatcher", _dispatcher) +func (_UniversalChannelHandler *UniversalChannelHandlerTransactor) SetDispatcher(opts *bind.TransactOpts, _dispatcher common.Address) (*types.Transaction, error) { + return _UniversalChannelHandler.contract.Transact(opts, "setDispatcher", _dispatcher) } // SetDispatcher is a paid mutator transaction binding the contract method 0xba22bd76. // // Solidity: function setDispatcher(address _dispatcher) returns() -func (_Universalchannelhandler *UniversalchannelhandlerSession) SetDispatcher(_dispatcher common.Address) (*types.Transaction, error) { - return _Universalchannelhandler.Contract.SetDispatcher(&_Universalchannelhandler.TransactOpts, _dispatcher) +func (_UniversalChannelHandler *UniversalChannelHandlerSession) SetDispatcher(_dispatcher common.Address) (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.SetDispatcher(&_UniversalChannelHandler.TransactOpts, _dispatcher) } // SetDispatcher is a paid mutator transaction binding the contract method 0xba22bd76. // // Solidity: function setDispatcher(address _dispatcher) returns() -func (_Universalchannelhandler *UniversalchannelhandlerTransactorSession) SetDispatcher(_dispatcher common.Address) (*types.Transaction, error) { - return _Universalchannelhandler.Contract.SetDispatcher(&_Universalchannelhandler.TransactOpts, _dispatcher) +func (_UniversalChannelHandler *UniversalChannelHandlerTransactorSession) SetDispatcher(_dispatcher common.Address) (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.SetDispatcher(&_UniversalChannelHandler.TransactOpts, _dispatcher) } // TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. // // Solidity: function transferOwnership(address newOwner) returns() -func (_Universalchannelhandler *UniversalchannelhandlerTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) { - return _Universalchannelhandler.contract.Transact(opts, "transferOwnership", newOwner) +func (_UniversalChannelHandler *UniversalChannelHandlerTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) { + return _UniversalChannelHandler.contract.Transact(opts, "transferOwnership", newOwner) } // TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. // // Solidity: function transferOwnership(address newOwner) returns() -func (_Universalchannelhandler *UniversalchannelhandlerSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { - return _Universalchannelhandler.Contract.TransferOwnership(&_Universalchannelhandler.TransactOpts, newOwner) +func (_UniversalChannelHandler *UniversalChannelHandlerSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.TransferOwnership(&_UniversalChannelHandler.TransactOpts, newOwner) } // TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. // // Solidity: function transferOwnership(address newOwner) returns() -func (_Universalchannelhandler *UniversalchannelhandlerTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { - return _Universalchannelhandler.Contract.TransferOwnership(&_Universalchannelhandler.TransactOpts, newOwner) +func (_UniversalChannelHandler *UniversalChannelHandlerTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.TransferOwnership(&_UniversalChannelHandler.TransactOpts, newOwner) } // UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6. // // Solidity: function upgradeTo(address newImplementation) returns() -func (_Universalchannelhandler *UniversalchannelhandlerTransactor) UpgradeTo(opts *bind.TransactOpts, newImplementation common.Address) (*types.Transaction, error) { - return _Universalchannelhandler.contract.Transact(opts, "upgradeTo", newImplementation) +func (_UniversalChannelHandler *UniversalChannelHandlerTransactor) UpgradeTo(opts *bind.TransactOpts, newImplementation common.Address) (*types.Transaction, error) { + return _UniversalChannelHandler.contract.Transact(opts, "upgradeTo", newImplementation) } // UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6. // // Solidity: function upgradeTo(address newImplementation) returns() -func (_Universalchannelhandler *UniversalchannelhandlerSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error) { - return _Universalchannelhandler.Contract.UpgradeTo(&_Universalchannelhandler.TransactOpts, newImplementation) +func (_UniversalChannelHandler *UniversalChannelHandlerSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.UpgradeTo(&_UniversalChannelHandler.TransactOpts, newImplementation) } // UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6. // // Solidity: function upgradeTo(address newImplementation) returns() -func (_Universalchannelhandler *UniversalchannelhandlerTransactorSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error) { - return _Universalchannelhandler.Contract.UpgradeTo(&_Universalchannelhandler.TransactOpts, newImplementation) +func (_UniversalChannelHandler *UniversalChannelHandlerTransactorSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.UpgradeTo(&_UniversalChannelHandler.TransactOpts, newImplementation) } // UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286. // // Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns() -func (_Universalchannelhandler *UniversalchannelhandlerTransactor) UpgradeToAndCall(opts *bind.TransactOpts, newImplementation common.Address, data []byte) (*types.Transaction, error) { - return _Universalchannelhandler.contract.Transact(opts, "upgradeToAndCall", newImplementation, data) +func (_UniversalChannelHandler *UniversalChannelHandlerTransactor) UpgradeToAndCall(opts *bind.TransactOpts, newImplementation common.Address, data []byte) (*types.Transaction, error) { + return _UniversalChannelHandler.contract.Transact(opts, "upgradeToAndCall", newImplementation, data) } // UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286. // // Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns() -func (_Universalchannelhandler *UniversalchannelhandlerSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error) { - return _Universalchannelhandler.Contract.UpgradeToAndCall(&_Universalchannelhandler.TransactOpts, newImplementation, data) +func (_UniversalChannelHandler *UniversalChannelHandlerSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.UpgradeToAndCall(&_UniversalChannelHandler.TransactOpts, newImplementation, data) } // UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286. // // Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns() -func (_Universalchannelhandler *UniversalchannelhandlerTransactorSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error) { - return _Universalchannelhandler.Contract.UpgradeToAndCall(&_Universalchannelhandler.TransactOpts, newImplementation, data) +func (_UniversalChannelHandler *UniversalChannelHandlerTransactorSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.UpgradeToAndCall(&_UniversalChannelHandler.TransactOpts, newImplementation, data) } // Receive is a paid mutator transaction binding the contract receive function. // // Solidity: receive() payable returns() -func (_Universalchannelhandler *UniversalchannelhandlerTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error) { - return _Universalchannelhandler.contract.RawTransact(opts, nil) // calldata is disallowed for receive function +func (_UniversalChannelHandler *UniversalChannelHandlerTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error) { + return _UniversalChannelHandler.contract.RawTransact(opts, nil) // calldata is disallowed for receive function } // Receive is a paid mutator transaction binding the contract receive function. // // Solidity: receive() payable returns() -func (_Universalchannelhandler *UniversalchannelhandlerSession) Receive() (*types.Transaction, error) { - return _Universalchannelhandler.Contract.Receive(&_Universalchannelhandler.TransactOpts) +func (_UniversalChannelHandler *UniversalChannelHandlerSession) Receive() (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.Receive(&_UniversalChannelHandler.TransactOpts) } // Receive is a paid mutator transaction binding the contract receive function. // // Solidity: receive() payable returns() -func (_Universalchannelhandler *UniversalchannelhandlerTransactorSession) Receive() (*types.Transaction, error) { - return _Universalchannelhandler.Contract.Receive(&_Universalchannelhandler.TransactOpts) +func (_UniversalChannelHandler *UniversalChannelHandlerTransactorSession) Receive() (*types.Transaction, error) { + return _UniversalChannelHandler.Contract.Receive(&_UniversalChannelHandler.TransactOpts) } -// UniversalchannelhandlerAdminChangedIterator is returned from FilterAdminChanged and is used to iterate over the raw logs and unpacked data for AdminChanged events raised by the Universalchannelhandler contract. -type UniversalchannelhandlerAdminChangedIterator struct { - Event *UniversalchannelhandlerAdminChanged // Event containing the contract specifics and raw log +// UniversalChannelHandlerAdminChangedIterator is returned from FilterAdminChanged and is used to iterate over the raw logs and unpacked data for AdminChanged events raised by the UniversalChannelHandler contract. +type UniversalChannelHandlerAdminChangedIterator struct { + Event *UniversalChannelHandlerAdminChanged // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -827,7 +827,7 @@ type UniversalchannelhandlerAdminChangedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *UniversalchannelhandlerAdminChangedIterator) Next() bool { +func (it *UniversalChannelHandlerAdminChangedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -836,7 +836,7 @@ func (it *UniversalchannelhandlerAdminChangedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(UniversalchannelhandlerAdminChanged) + it.Event = new(UniversalChannelHandlerAdminChanged) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -851,7 +851,7 @@ func (it *UniversalchannelhandlerAdminChangedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(UniversalchannelhandlerAdminChanged) + it.Event = new(UniversalChannelHandlerAdminChanged) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -867,19 +867,19 @@ func (it *UniversalchannelhandlerAdminChangedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *UniversalchannelhandlerAdminChangedIterator) Error() error { +func (it *UniversalChannelHandlerAdminChangedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *UniversalchannelhandlerAdminChangedIterator) Close() error { +func (it *UniversalChannelHandlerAdminChangedIterator) Close() error { it.sub.Unsubscribe() return nil } -// UniversalchannelhandlerAdminChanged represents a AdminChanged event raised by the Universalchannelhandler contract. -type UniversalchannelhandlerAdminChanged struct { +// UniversalChannelHandlerAdminChanged represents a AdminChanged event raised by the UniversalChannelHandler contract. +type UniversalChannelHandlerAdminChanged struct { PreviousAdmin common.Address NewAdmin common.Address Raw types.Log // Blockchain specific contextual infos @@ -888,21 +888,21 @@ type UniversalchannelhandlerAdminChanged struct { // FilterAdminChanged is a free log retrieval operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f. // // Solidity: event AdminChanged(address previousAdmin, address newAdmin) -func (_Universalchannelhandler *UniversalchannelhandlerFilterer) FilterAdminChanged(opts *bind.FilterOpts) (*UniversalchannelhandlerAdminChangedIterator, error) { +func (_UniversalChannelHandler *UniversalChannelHandlerFilterer) FilterAdminChanged(opts *bind.FilterOpts) (*UniversalChannelHandlerAdminChangedIterator, error) { - logs, sub, err := _Universalchannelhandler.contract.FilterLogs(opts, "AdminChanged") + logs, sub, err := _UniversalChannelHandler.contract.FilterLogs(opts, "AdminChanged") if err != nil { return nil, err } - return &UniversalchannelhandlerAdminChangedIterator{contract: _Universalchannelhandler.contract, event: "AdminChanged", logs: logs, sub: sub}, nil + return &UniversalChannelHandlerAdminChangedIterator{contract: _UniversalChannelHandler.contract, event: "AdminChanged", logs: logs, sub: sub}, nil } // WatchAdminChanged is a free log subscription operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f. // // Solidity: event AdminChanged(address previousAdmin, address newAdmin) -func (_Universalchannelhandler *UniversalchannelhandlerFilterer) WatchAdminChanged(opts *bind.WatchOpts, sink chan<- *UniversalchannelhandlerAdminChanged) (event.Subscription, error) { +func (_UniversalChannelHandler *UniversalChannelHandlerFilterer) WatchAdminChanged(opts *bind.WatchOpts, sink chan<- *UniversalChannelHandlerAdminChanged) (event.Subscription, error) { - logs, sub, err := _Universalchannelhandler.contract.WatchLogs(opts, "AdminChanged") + logs, sub, err := _UniversalChannelHandler.contract.WatchLogs(opts, "AdminChanged") if err != nil { return nil, err } @@ -912,8 +912,8 @@ func (_Universalchannelhandler *UniversalchannelhandlerFilterer) WatchAdminChang select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(UniversalchannelhandlerAdminChanged) - if err := _Universalchannelhandler.contract.UnpackLog(event, "AdminChanged", log); err != nil { + event := new(UniversalChannelHandlerAdminChanged) + if err := _UniversalChannelHandler.contract.UnpackLog(event, "AdminChanged", log); err != nil { return err } event.Raw = log @@ -937,18 +937,18 @@ func (_Universalchannelhandler *UniversalchannelhandlerFilterer) WatchAdminChang // ParseAdminChanged is a log parse operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f. // // Solidity: event AdminChanged(address previousAdmin, address newAdmin) -func (_Universalchannelhandler *UniversalchannelhandlerFilterer) ParseAdminChanged(log types.Log) (*UniversalchannelhandlerAdminChanged, error) { - event := new(UniversalchannelhandlerAdminChanged) - if err := _Universalchannelhandler.contract.UnpackLog(event, "AdminChanged", log); err != nil { +func (_UniversalChannelHandler *UniversalChannelHandlerFilterer) ParseAdminChanged(log types.Log) (*UniversalChannelHandlerAdminChanged, error) { + event := new(UniversalChannelHandlerAdminChanged) + if err := _UniversalChannelHandler.contract.UnpackLog(event, "AdminChanged", log); err != nil { return nil, err } event.Raw = log return event, nil } -// UniversalchannelhandlerBeaconUpgradedIterator is returned from FilterBeaconUpgraded and is used to iterate over the raw logs and unpacked data for BeaconUpgraded events raised by the Universalchannelhandler contract. -type UniversalchannelhandlerBeaconUpgradedIterator struct { - Event *UniversalchannelhandlerBeaconUpgraded // Event containing the contract specifics and raw log +// UniversalChannelHandlerBeaconUpgradedIterator is returned from FilterBeaconUpgraded and is used to iterate over the raw logs and unpacked data for BeaconUpgraded events raised by the UniversalChannelHandler contract. +type UniversalChannelHandlerBeaconUpgradedIterator struct { + Event *UniversalChannelHandlerBeaconUpgraded // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -962,7 +962,7 @@ type UniversalchannelhandlerBeaconUpgradedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *UniversalchannelhandlerBeaconUpgradedIterator) Next() bool { +func (it *UniversalChannelHandlerBeaconUpgradedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -971,7 +971,7 @@ func (it *UniversalchannelhandlerBeaconUpgradedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(UniversalchannelhandlerBeaconUpgraded) + it.Event = new(UniversalChannelHandlerBeaconUpgraded) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -986,7 +986,7 @@ func (it *UniversalchannelhandlerBeaconUpgradedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(UniversalchannelhandlerBeaconUpgraded) + it.Event = new(UniversalChannelHandlerBeaconUpgraded) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1002,19 +1002,19 @@ func (it *UniversalchannelhandlerBeaconUpgradedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *UniversalchannelhandlerBeaconUpgradedIterator) Error() error { +func (it *UniversalChannelHandlerBeaconUpgradedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *UniversalchannelhandlerBeaconUpgradedIterator) Close() error { +func (it *UniversalChannelHandlerBeaconUpgradedIterator) Close() error { it.sub.Unsubscribe() return nil } -// UniversalchannelhandlerBeaconUpgraded represents a BeaconUpgraded event raised by the Universalchannelhandler contract. -type UniversalchannelhandlerBeaconUpgraded struct { +// UniversalChannelHandlerBeaconUpgraded represents a BeaconUpgraded event raised by the UniversalChannelHandler contract. +type UniversalChannelHandlerBeaconUpgraded struct { Beacon common.Address Raw types.Log // Blockchain specific contextual infos } @@ -1022,31 +1022,31 @@ type UniversalchannelhandlerBeaconUpgraded struct { // FilterBeaconUpgraded is a free log retrieval operation binding the contract event 0x1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e. // // Solidity: event BeaconUpgraded(address indexed beacon) -func (_Universalchannelhandler *UniversalchannelhandlerFilterer) FilterBeaconUpgraded(opts *bind.FilterOpts, beacon []common.Address) (*UniversalchannelhandlerBeaconUpgradedIterator, error) { +func (_UniversalChannelHandler *UniversalChannelHandlerFilterer) FilterBeaconUpgraded(opts *bind.FilterOpts, beacon []common.Address) (*UniversalChannelHandlerBeaconUpgradedIterator, error) { var beaconRule []interface{} for _, beaconItem := range beacon { beaconRule = append(beaconRule, beaconItem) } - logs, sub, err := _Universalchannelhandler.contract.FilterLogs(opts, "BeaconUpgraded", beaconRule) + logs, sub, err := _UniversalChannelHandler.contract.FilterLogs(opts, "BeaconUpgraded", beaconRule) if err != nil { return nil, err } - return &UniversalchannelhandlerBeaconUpgradedIterator{contract: _Universalchannelhandler.contract, event: "BeaconUpgraded", logs: logs, sub: sub}, nil + return &UniversalChannelHandlerBeaconUpgradedIterator{contract: _UniversalChannelHandler.contract, event: "BeaconUpgraded", logs: logs, sub: sub}, nil } // WatchBeaconUpgraded is a free log subscription operation binding the contract event 0x1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e. // // Solidity: event BeaconUpgraded(address indexed beacon) -func (_Universalchannelhandler *UniversalchannelhandlerFilterer) WatchBeaconUpgraded(opts *bind.WatchOpts, sink chan<- *UniversalchannelhandlerBeaconUpgraded, beacon []common.Address) (event.Subscription, error) { +func (_UniversalChannelHandler *UniversalChannelHandlerFilterer) WatchBeaconUpgraded(opts *bind.WatchOpts, sink chan<- *UniversalChannelHandlerBeaconUpgraded, beacon []common.Address) (event.Subscription, error) { var beaconRule []interface{} for _, beaconItem := range beacon { beaconRule = append(beaconRule, beaconItem) } - logs, sub, err := _Universalchannelhandler.contract.WatchLogs(opts, "BeaconUpgraded", beaconRule) + logs, sub, err := _UniversalChannelHandler.contract.WatchLogs(opts, "BeaconUpgraded", beaconRule) if err != nil { return nil, err } @@ -1056,8 +1056,8 @@ func (_Universalchannelhandler *UniversalchannelhandlerFilterer) WatchBeaconUpgr select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(UniversalchannelhandlerBeaconUpgraded) - if err := _Universalchannelhandler.contract.UnpackLog(event, "BeaconUpgraded", log); err != nil { + event := new(UniversalChannelHandlerBeaconUpgraded) + if err := _UniversalChannelHandler.contract.UnpackLog(event, "BeaconUpgraded", log); err != nil { return err } event.Raw = log @@ -1081,18 +1081,18 @@ func (_Universalchannelhandler *UniversalchannelhandlerFilterer) WatchBeaconUpgr // ParseBeaconUpgraded is a log parse operation binding the contract event 0x1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e. // // Solidity: event BeaconUpgraded(address indexed beacon) -func (_Universalchannelhandler *UniversalchannelhandlerFilterer) ParseBeaconUpgraded(log types.Log) (*UniversalchannelhandlerBeaconUpgraded, error) { - event := new(UniversalchannelhandlerBeaconUpgraded) - if err := _Universalchannelhandler.contract.UnpackLog(event, "BeaconUpgraded", log); err != nil { +func (_UniversalChannelHandler *UniversalChannelHandlerFilterer) ParseBeaconUpgraded(log types.Log) (*UniversalChannelHandlerBeaconUpgraded, error) { + event := new(UniversalChannelHandlerBeaconUpgraded) + if err := _UniversalChannelHandler.contract.UnpackLog(event, "BeaconUpgraded", log); err != nil { return nil, err } event.Raw = log return event, nil } -// UniversalchannelhandlerInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the Universalchannelhandler contract. -type UniversalchannelhandlerInitializedIterator struct { - Event *UniversalchannelhandlerInitialized // Event containing the contract specifics and raw log +// UniversalChannelHandlerInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the UniversalChannelHandler contract. +type UniversalChannelHandlerInitializedIterator struct { + Event *UniversalChannelHandlerInitialized // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -1106,7 +1106,7 @@ type UniversalchannelhandlerInitializedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *UniversalchannelhandlerInitializedIterator) Next() bool { +func (it *UniversalChannelHandlerInitializedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -1115,7 +1115,7 @@ func (it *UniversalchannelhandlerInitializedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(UniversalchannelhandlerInitialized) + it.Event = new(UniversalChannelHandlerInitialized) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1130,7 +1130,7 @@ func (it *UniversalchannelhandlerInitializedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(UniversalchannelhandlerInitialized) + it.Event = new(UniversalChannelHandlerInitialized) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1146,19 +1146,19 @@ func (it *UniversalchannelhandlerInitializedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *UniversalchannelhandlerInitializedIterator) Error() error { +func (it *UniversalChannelHandlerInitializedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *UniversalchannelhandlerInitializedIterator) Close() error { +func (it *UniversalChannelHandlerInitializedIterator) Close() error { it.sub.Unsubscribe() return nil } -// UniversalchannelhandlerInitialized represents a Initialized event raised by the Universalchannelhandler contract. -type UniversalchannelhandlerInitialized struct { +// UniversalChannelHandlerInitialized represents a Initialized event raised by the UniversalChannelHandler contract. +type UniversalChannelHandlerInitialized struct { Version uint8 Raw types.Log // Blockchain specific contextual infos } @@ -1166,21 +1166,21 @@ type UniversalchannelhandlerInitialized struct { // FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498. // // Solidity: event Initialized(uint8 version) -func (_Universalchannelhandler *UniversalchannelhandlerFilterer) FilterInitialized(opts *bind.FilterOpts) (*UniversalchannelhandlerInitializedIterator, error) { +func (_UniversalChannelHandler *UniversalChannelHandlerFilterer) FilterInitialized(opts *bind.FilterOpts) (*UniversalChannelHandlerInitializedIterator, error) { - logs, sub, err := _Universalchannelhandler.contract.FilterLogs(opts, "Initialized") + logs, sub, err := _UniversalChannelHandler.contract.FilterLogs(opts, "Initialized") if err != nil { return nil, err } - return &UniversalchannelhandlerInitializedIterator{contract: _Universalchannelhandler.contract, event: "Initialized", logs: logs, sub: sub}, nil + return &UniversalChannelHandlerInitializedIterator{contract: _UniversalChannelHandler.contract, event: "Initialized", logs: logs, sub: sub}, nil } // WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498. // // Solidity: event Initialized(uint8 version) -func (_Universalchannelhandler *UniversalchannelhandlerFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *UniversalchannelhandlerInitialized) (event.Subscription, error) { +func (_UniversalChannelHandler *UniversalChannelHandlerFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *UniversalChannelHandlerInitialized) (event.Subscription, error) { - logs, sub, err := _Universalchannelhandler.contract.WatchLogs(opts, "Initialized") + logs, sub, err := _UniversalChannelHandler.contract.WatchLogs(opts, "Initialized") if err != nil { return nil, err } @@ -1190,8 +1190,8 @@ func (_Universalchannelhandler *UniversalchannelhandlerFilterer) WatchInitialize select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(UniversalchannelhandlerInitialized) - if err := _Universalchannelhandler.contract.UnpackLog(event, "Initialized", log); err != nil { + event := new(UniversalChannelHandlerInitialized) + if err := _UniversalChannelHandler.contract.UnpackLog(event, "Initialized", log); err != nil { return err } event.Raw = log @@ -1215,18 +1215,18 @@ func (_Universalchannelhandler *UniversalchannelhandlerFilterer) WatchInitialize // ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498. // // Solidity: event Initialized(uint8 version) -func (_Universalchannelhandler *UniversalchannelhandlerFilterer) ParseInitialized(log types.Log) (*UniversalchannelhandlerInitialized, error) { - event := new(UniversalchannelhandlerInitialized) - if err := _Universalchannelhandler.contract.UnpackLog(event, "Initialized", log); err != nil { +func (_UniversalChannelHandler *UniversalChannelHandlerFilterer) ParseInitialized(log types.Log) (*UniversalChannelHandlerInitialized, error) { + event := new(UniversalChannelHandlerInitialized) + if err := _UniversalChannelHandler.contract.UnpackLog(event, "Initialized", log); err != nil { return nil, err } event.Raw = log return event, nil } -// UniversalchannelhandlerOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Universalchannelhandler contract. -type UniversalchannelhandlerOwnershipTransferredIterator struct { - Event *UniversalchannelhandlerOwnershipTransferred // Event containing the contract specifics and raw log +// UniversalChannelHandlerOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the UniversalChannelHandler contract. +type UniversalChannelHandlerOwnershipTransferredIterator struct { + Event *UniversalChannelHandlerOwnershipTransferred // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -1240,7 +1240,7 @@ type UniversalchannelhandlerOwnershipTransferredIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *UniversalchannelhandlerOwnershipTransferredIterator) Next() bool { +func (it *UniversalChannelHandlerOwnershipTransferredIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -1249,7 +1249,7 @@ func (it *UniversalchannelhandlerOwnershipTransferredIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(UniversalchannelhandlerOwnershipTransferred) + it.Event = new(UniversalChannelHandlerOwnershipTransferred) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1264,7 +1264,7 @@ func (it *UniversalchannelhandlerOwnershipTransferredIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(UniversalchannelhandlerOwnershipTransferred) + it.Event = new(UniversalChannelHandlerOwnershipTransferred) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1280,19 +1280,19 @@ func (it *UniversalchannelhandlerOwnershipTransferredIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *UniversalchannelhandlerOwnershipTransferredIterator) Error() error { +func (it *UniversalChannelHandlerOwnershipTransferredIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *UniversalchannelhandlerOwnershipTransferredIterator) Close() error { +func (it *UniversalChannelHandlerOwnershipTransferredIterator) Close() error { it.sub.Unsubscribe() return nil } -// UniversalchannelhandlerOwnershipTransferred represents a OwnershipTransferred event raised by the Universalchannelhandler contract. -type UniversalchannelhandlerOwnershipTransferred struct { +// UniversalChannelHandlerOwnershipTransferred represents a OwnershipTransferred event raised by the UniversalChannelHandler contract. +type UniversalChannelHandlerOwnershipTransferred struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos @@ -1301,7 +1301,7 @@ type UniversalchannelhandlerOwnershipTransferred struct { // FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. // // Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) -func (_Universalchannelhandler *UniversalchannelhandlerFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*UniversalchannelhandlerOwnershipTransferredIterator, error) { +func (_UniversalChannelHandler *UniversalChannelHandlerFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*UniversalChannelHandlerOwnershipTransferredIterator, error) { var previousOwnerRule []interface{} for _, previousOwnerItem := range previousOwner { @@ -1312,17 +1312,17 @@ func (_Universalchannelhandler *UniversalchannelhandlerFilterer) FilterOwnership newOwnerRule = append(newOwnerRule, newOwnerItem) } - logs, sub, err := _Universalchannelhandler.contract.FilterLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) + logs, sub, err := _UniversalChannelHandler.contract.FilterLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) if err != nil { return nil, err } - return &UniversalchannelhandlerOwnershipTransferredIterator{contract: _Universalchannelhandler.contract, event: "OwnershipTransferred", logs: logs, sub: sub}, nil + return &UniversalChannelHandlerOwnershipTransferredIterator{contract: _UniversalChannelHandler.contract, event: "OwnershipTransferred", logs: logs, sub: sub}, nil } // WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. // // Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) -func (_Universalchannelhandler *UniversalchannelhandlerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *UniversalchannelhandlerOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) { +func (_UniversalChannelHandler *UniversalChannelHandlerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *UniversalChannelHandlerOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) { var previousOwnerRule []interface{} for _, previousOwnerItem := range previousOwner { @@ -1333,7 +1333,7 @@ func (_Universalchannelhandler *UniversalchannelhandlerFilterer) WatchOwnershipT newOwnerRule = append(newOwnerRule, newOwnerItem) } - logs, sub, err := _Universalchannelhandler.contract.WatchLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) + logs, sub, err := _UniversalChannelHandler.contract.WatchLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) if err != nil { return nil, err } @@ -1343,8 +1343,8 @@ func (_Universalchannelhandler *UniversalchannelhandlerFilterer) WatchOwnershipT select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(UniversalchannelhandlerOwnershipTransferred) - if err := _Universalchannelhandler.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { + event := new(UniversalChannelHandlerOwnershipTransferred) + if err := _UniversalChannelHandler.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { return err } event.Raw = log @@ -1368,18 +1368,18 @@ func (_Universalchannelhandler *UniversalchannelhandlerFilterer) WatchOwnershipT // ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. // // Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) -func (_Universalchannelhandler *UniversalchannelhandlerFilterer) ParseOwnershipTransferred(log types.Log) (*UniversalchannelhandlerOwnershipTransferred, error) { - event := new(UniversalchannelhandlerOwnershipTransferred) - if err := _Universalchannelhandler.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { +func (_UniversalChannelHandler *UniversalChannelHandlerFilterer) ParseOwnershipTransferred(log types.Log) (*UniversalChannelHandlerOwnershipTransferred, error) { + event := new(UniversalChannelHandlerOwnershipTransferred) + if err := _UniversalChannelHandler.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { return nil, err } event.Raw = log return event, nil } -// UniversalchannelhandlerUCHPacketSentIterator is returned from FilterUCHPacketSent and is used to iterate over the raw logs and unpacked data for UCHPacketSent events raised by the Universalchannelhandler contract. -type UniversalchannelhandlerUCHPacketSentIterator struct { - Event *UniversalchannelhandlerUCHPacketSent // Event containing the contract specifics and raw log +// UniversalChannelHandlerUCHPacketSentIterator is returned from FilterUCHPacketSent and is used to iterate over the raw logs and unpacked data for UCHPacketSent events raised by the UniversalChannelHandler contract. +type UniversalChannelHandlerUCHPacketSentIterator struct { + Event *UniversalChannelHandlerUCHPacketSent // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -1393,7 +1393,7 @@ type UniversalchannelhandlerUCHPacketSentIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *UniversalchannelhandlerUCHPacketSentIterator) Next() bool { +func (it *UniversalChannelHandlerUCHPacketSentIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -1402,7 +1402,7 @@ func (it *UniversalchannelhandlerUCHPacketSentIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(UniversalchannelhandlerUCHPacketSent) + it.Event = new(UniversalChannelHandlerUCHPacketSent) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1417,7 +1417,7 @@ func (it *UniversalchannelhandlerUCHPacketSentIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(UniversalchannelhandlerUCHPacketSent) + it.Event = new(UniversalChannelHandlerUCHPacketSent) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1433,19 +1433,19 @@ func (it *UniversalchannelhandlerUCHPacketSentIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *UniversalchannelhandlerUCHPacketSentIterator) Error() error { +func (it *UniversalChannelHandlerUCHPacketSentIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *UniversalchannelhandlerUCHPacketSentIterator) Close() error { +func (it *UniversalChannelHandlerUCHPacketSentIterator) Close() error { it.sub.Unsubscribe() return nil } -// UniversalchannelhandlerUCHPacketSent represents a UCHPacketSent event raised by the Universalchannelhandler contract. -type UniversalchannelhandlerUCHPacketSent struct { +// UniversalChannelHandlerUCHPacketSent represents a UCHPacketSent event raised by the UniversalChannelHandler contract. +type UniversalChannelHandlerUCHPacketSent struct { Source common.Address Destination [32]byte Raw types.Log // Blockchain specific contextual infos @@ -1454,21 +1454,21 @@ type UniversalchannelhandlerUCHPacketSent struct { // FilterUCHPacketSent is a free log retrieval operation binding the contract event 0x9831d8c66285bfd33de069ced58ad437d6bf08f63446bf06c3713e40b4b7e873. // // Solidity: event UCHPacketSent(address source, bytes32 destination) -func (_Universalchannelhandler *UniversalchannelhandlerFilterer) FilterUCHPacketSent(opts *bind.FilterOpts) (*UniversalchannelhandlerUCHPacketSentIterator, error) { +func (_UniversalChannelHandler *UniversalChannelHandlerFilterer) FilterUCHPacketSent(opts *bind.FilterOpts) (*UniversalChannelHandlerUCHPacketSentIterator, error) { - logs, sub, err := _Universalchannelhandler.contract.FilterLogs(opts, "UCHPacketSent") + logs, sub, err := _UniversalChannelHandler.contract.FilterLogs(opts, "UCHPacketSent") if err != nil { return nil, err } - return &UniversalchannelhandlerUCHPacketSentIterator{contract: _Universalchannelhandler.contract, event: "UCHPacketSent", logs: logs, sub: sub}, nil + return &UniversalChannelHandlerUCHPacketSentIterator{contract: _UniversalChannelHandler.contract, event: "UCHPacketSent", logs: logs, sub: sub}, nil } // WatchUCHPacketSent is a free log subscription operation binding the contract event 0x9831d8c66285bfd33de069ced58ad437d6bf08f63446bf06c3713e40b4b7e873. // // Solidity: event UCHPacketSent(address source, bytes32 destination) -func (_Universalchannelhandler *UniversalchannelhandlerFilterer) WatchUCHPacketSent(opts *bind.WatchOpts, sink chan<- *UniversalchannelhandlerUCHPacketSent) (event.Subscription, error) { +func (_UniversalChannelHandler *UniversalChannelHandlerFilterer) WatchUCHPacketSent(opts *bind.WatchOpts, sink chan<- *UniversalChannelHandlerUCHPacketSent) (event.Subscription, error) { - logs, sub, err := _Universalchannelhandler.contract.WatchLogs(opts, "UCHPacketSent") + logs, sub, err := _UniversalChannelHandler.contract.WatchLogs(opts, "UCHPacketSent") if err != nil { return nil, err } @@ -1478,8 +1478,8 @@ func (_Universalchannelhandler *UniversalchannelhandlerFilterer) WatchUCHPacketS select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(UniversalchannelhandlerUCHPacketSent) - if err := _Universalchannelhandler.contract.UnpackLog(event, "UCHPacketSent", log); err != nil { + event := new(UniversalChannelHandlerUCHPacketSent) + if err := _UniversalChannelHandler.contract.UnpackLog(event, "UCHPacketSent", log); err != nil { return err } event.Raw = log @@ -1503,18 +1503,18 @@ func (_Universalchannelhandler *UniversalchannelhandlerFilterer) WatchUCHPacketS // ParseUCHPacketSent is a log parse operation binding the contract event 0x9831d8c66285bfd33de069ced58ad437d6bf08f63446bf06c3713e40b4b7e873. // // Solidity: event UCHPacketSent(address source, bytes32 destination) -func (_Universalchannelhandler *UniversalchannelhandlerFilterer) ParseUCHPacketSent(log types.Log) (*UniversalchannelhandlerUCHPacketSent, error) { - event := new(UniversalchannelhandlerUCHPacketSent) - if err := _Universalchannelhandler.contract.UnpackLog(event, "UCHPacketSent", log); err != nil { +func (_UniversalChannelHandler *UniversalChannelHandlerFilterer) ParseUCHPacketSent(log types.Log) (*UniversalChannelHandlerUCHPacketSent, error) { + event := new(UniversalChannelHandlerUCHPacketSent) + if err := _UniversalChannelHandler.contract.UnpackLog(event, "UCHPacketSent", log); err != nil { return nil, err } event.Raw = log return event, nil } -// UniversalchannelhandlerUpgradedIterator is returned from FilterUpgraded and is used to iterate over the raw logs and unpacked data for Upgraded events raised by the Universalchannelhandler contract. -type UniversalchannelhandlerUpgradedIterator struct { - Event *UniversalchannelhandlerUpgraded // Event containing the contract specifics and raw log +// UniversalChannelHandlerUpgradedIterator is returned from FilterUpgraded and is used to iterate over the raw logs and unpacked data for Upgraded events raised by the UniversalChannelHandler contract. +type UniversalChannelHandlerUpgradedIterator struct { + Event *UniversalChannelHandlerUpgraded // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -1528,7 +1528,7 @@ type UniversalchannelhandlerUpgradedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *UniversalchannelhandlerUpgradedIterator) Next() bool { +func (it *UniversalChannelHandlerUpgradedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -1537,7 +1537,7 @@ func (it *UniversalchannelhandlerUpgradedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(UniversalchannelhandlerUpgraded) + it.Event = new(UniversalChannelHandlerUpgraded) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1552,7 +1552,7 @@ func (it *UniversalchannelhandlerUpgradedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(UniversalchannelhandlerUpgraded) + it.Event = new(UniversalChannelHandlerUpgraded) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1568,19 +1568,19 @@ func (it *UniversalchannelhandlerUpgradedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *UniversalchannelhandlerUpgradedIterator) Error() error { +func (it *UniversalChannelHandlerUpgradedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *UniversalchannelhandlerUpgradedIterator) Close() error { +func (it *UniversalChannelHandlerUpgradedIterator) Close() error { it.sub.Unsubscribe() return nil } -// UniversalchannelhandlerUpgraded represents a Upgraded event raised by the Universalchannelhandler contract. -type UniversalchannelhandlerUpgraded struct { +// UniversalChannelHandlerUpgraded represents a Upgraded event raised by the UniversalChannelHandler contract. +type UniversalChannelHandlerUpgraded struct { Implementation common.Address Raw types.Log // Blockchain specific contextual infos } @@ -1588,31 +1588,31 @@ type UniversalchannelhandlerUpgraded struct { // FilterUpgraded is a free log retrieval operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b. // // Solidity: event Upgraded(address indexed implementation) -func (_Universalchannelhandler *UniversalchannelhandlerFilterer) FilterUpgraded(opts *bind.FilterOpts, implementation []common.Address) (*UniversalchannelhandlerUpgradedIterator, error) { +func (_UniversalChannelHandler *UniversalChannelHandlerFilterer) FilterUpgraded(opts *bind.FilterOpts, implementation []common.Address) (*UniversalChannelHandlerUpgradedIterator, error) { var implementationRule []interface{} for _, implementationItem := range implementation { implementationRule = append(implementationRule, implementationItem) } - logs, sub, err := _Universalchannelhandler.contract.FilterLogs(opts, "Upgraded", implementationRule) + logs, sub, err := _UniversalChannelHandler.contract.FilterLogs(opts, "Upgraded", implementationRule) if err != nil { return nil, err } - return &UniversalchannelhandlerUpgradedIterator{contract: _Universalchannelhandler.contract, event: "Upgraded", logs: logs, sub: sub}, nil + return &UniversalChannelHandlerUpgradedIterator{contract: _UniversalChannelHandler.contract, event: "Upgraded", logs: logs, sub: sub}, nil } // WatchUpgraded is a free log subscription operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b. // // Solidity: event Upgraded(address indexed implementation) -func (_Universalchannelhandler *UniversalchannelhandlerFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *UniversalchannelhandlerUpgraded, implementation []common.Address) (event.Subscription, error) { +func (_UniversalChannelHandler *UniversalChannelHandlerFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *UniversalChannelHandlerUpgraded, implementation []common.Address) (event.Subscription, error) { var implementationRule []interface{} for _, implementationItem := range implementation { implementationRule = append(implementationRule, implementationItem) } - logs, sub, err := _Universalchannelhandler.contract.WatchLogs(opts, "Upgraded", implementationRule) + logs, sub, err := _UniversalChannelHandler.contract.WatchLogs(opts, "Upgraded", implementationRule) if err != nil { return nil, err } @@ -1622,8 +1622,8 @@ func (_Universalchannelhandler *UniversalchannelhandlerFilterer) WatchUpgraded(o select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(UniversalchannelhandlerUpgraded) - if err := _Universalchannelhandler.contract.UnpackLog(event, "Upgraded", log); err != nil { + event := new(UniversalChannelHandlerUpgraded) + if err := _UniversalChannelHandler.contract.UnpackLog(event, "Upgraded", log); err != nil { return err } event.Raw = log @@ -1647,9 +1647,9 @@ func (_Universalchannelhandler *UniversalchannelhandlerFilterer) WatchUpgraded(o // ParseUpgraded is a log parse operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b. // // Solidity: event Upgraded(address indexed implementation) -func (_Universalchannelhandler *UniversalchannelhandlerFilterer) ParseUpgraded(log types.Log) (*UniversalchannelhandlerUpgraded, error) { - event := new(UniversalchannelhandlerUpgraded) - if err := _Universalchannelhandler.contract.UnpackLog(event, "Upgraded", log); err != nil { +func (_UniversalChannelHandler *UniversalChannelHandlerFilterer) ParseUpgraded(log types.Log) (*UniversalChannelHandlerUpgraded, error) { + event := new(UniversalChannelHandlerUpgraded) + if err := _UniversalChannelHandler.contract.UnpackLog(event, "Upgraded", log); err != nil { return nil, err } event.Raw = log diff --git a/bun.lockb b/bun.lockb index 8b92dab6..aa93da47 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/bindings/go.mod b/go.mod similarity index 96% rename from bindings/go.mod rename to go.mod index 00c52003..ad8acb82 100644 --- a/bindings/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/open-ibc/vib-core-smart-contracts/bindings +module github.com/open-ibc/vibc-core-smart-contracts/v2 go 1.21 diff --git a/bindings/go.sum b/go.sum similarity index 100% rename from bindings/go.sum rename to go.sum diff --git a/package.json b/package.json index 0d1fc6da..364c8ded 100644 --- a/package.json +++ b/package.json @@ -9,32 +9,31 @@ }, "license": "MIT", "dependencies": { - "@commander-js/extra-typings": "^12.0.1", - "@typechain/ethers-v6": "^0.5.0", - "ethers": "^6.7.1", + "@commander-js/extra-typings": "^12.1.0", + "@typechain/ethers-v6": "^0.5.1", + "ethers": "^6.13.1", "nunjucks": "^3.2.4", "solhint": "^5.0.1", "typechain": "^8.3.2", "winston": "^3.13.0", - "yaml": "^2.4.1", + "yaml": "^2.4.5", "yargs": "^17.7.2", - "zod": "^3.23.4", - "zx": "^8.0.2" + "zod": "^3.23.8", + "zx": "^8.1.3" }, "devDependencies": { "@types/nunjucks": "^3.2.6", - "@types/winston": "^2.4.4", "@types/yargs": "^17.0.32", "chai": "^5.1.1", - "solidity-coverage": "^0.8.0", - "tsup": "^8.0.2" + "solidity-coverage": "^0.8.12", + "tsup": "^8.1.0" }, "scripts": { "lint": "solhint contracts/**/*.sol", "test": "forge test", "build": "npm run build-ts-contract-bindings && npm run build-go-contract-bindings && tsup", "build-ts-contract-bindings": "npm run build-contracts && typechain --target ethers-v6 --out-dir src/evm/contracts/ './out/?(OptimisticProofVerifier|ProofVerifier|Ibc|IbcUtils|Channel|Dispatcher|Mars|Earth|UniversalChannelHandler|DummyProofVerifier|DummyLightClient|ERC1967Proxy|OptimisticLightClient).sol/*.json'", - "build-go-contract-bindings": "make abigen clean && (cd ./bindings && go mod tidy)", + "build-go-contract-bindings": "make abigen clean", "build-contracts": "forge build", "deploy-contracts": "npm run build && node dist/deploy.js", "deploy-simple": "node dist/deploy.js",