NitroAdjudicator

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2023 License: Apache-2.0, MIT Imports: 16 Imported by: 0

Documentation

Overview

package NitroAdjudicator contains bindings generated from the Nitro Adjudicator solidity contract, as well as utilities for converting client types to on-chain types.

Index

Constants

This section is empty.

Variables

View Source
var NitroAdjudicatorABI = NitroAdjudicatorMetaData.ABI

NitroAdjudicatorABI is the input ABI used to generate the binding from. Deprecated: Use NitroAdjudicatorMetaData.ABI instead.

View Source
var NitroAdjudicatorBin = NitroAdjudicatorMetaData.Bin

NitroAdjudicatorBin is the compiled bytecode used for deploying new contracts. Deprecated: Use NitroAdjudicatorMetaData.Bin instead.

View Source
var NitroAdjudicatorMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"channelId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"assetIndex\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"initialHoldings\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"finalHoldings\",\"type\":\"uint256\"}],\"name\":\"AllocationUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"channelId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint48\",\"name\":\"newTurnNumRecord\",\"type\":\"uint48\"}],\"name\":\"ChallengeCleared\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"channelId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint48\",\"name\":\"finalizesAt\",\"type\":\"uint48\"},{\"components\":[{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"enumExitFormat.AssetType\",\"name\":\"assetType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"internalType\":\"structExitFormat.AssetMetadata\",\"name\":\"assetMetadata\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"destination\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"allocationType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"internalType\":\"structExitFormat.Allocation[]\",\"name\":\"allocations\",\"type\":\"tuple[]\"}],\"internalType\":\"structExitFormat.SingleAssetExit[]\",\"name\":\"outcome\",\"type\":\"tuple[]\"},{\"internalType\":\"bytes\",\"name\":\"appData\",\"type\":\"bytes\"},{\"internalType\":\"uint48\",\"name\":\"turnNum\",\"type\":\"uint48\"},{\"internalType\":\"bool\",\"name\":\"isFinal\",\"type\":\"bool\"}],\"internalType\":\"structINitroTypes.VariablePart\",\"name\":\"variablePart\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"internalType\":\"structINitroTypes.Signature[]\",\"name\":\"sigs\",\"type\":\"tuple[]\"}],\"indexed\":false,\"internalType\":\"structINitroTypes.SignedVariablePart[]\",\"name\":\"proof\",\"type\":\"tuple[]\"},{\"components\":[{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"enumExitFormat.AssetType\",\"name\":\"assetType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"internalType\":\"structExitFormat.AssetMetadata\",\"name\":\"assetMetadata\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"destination\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"allocationType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"internalType\":\"structExitFormat.Allocation[]\",\"name\":\"allocations\",\"type\":\"tuple[]\"}],\"internalType\":\"structExitFormat.SingleAssetExit[]\",\"name\":\"outcome\",\"type\":\"tuple[]\"},{\"internalType\":\"bytes\",\"name\":\"appData\",\"type\":\"bytes\"},{\"internalType\":\"uint48\",\"name\":\"turnNum\",\"type\":\"uint48\"},{\"internalType\":\"bool\",\"name\":\"isFinal\",\"type\":\"bool\"}],\"internalType\":\"structINitroTypes.VariablePart\",\"name\":\"variablePart\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"internalType\":\"structINitroTypes.Signature[]\",\"name\":\"sigs\",\"type\":\"tuple[]\"}],\"indexed\":false,\"internalType\":\"structINitroTypes.SignedVariablePart\",\"name\":\"candidate\",\"type\":\"tuple\"}],\"name\":\"ChallengeRegistered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"channelId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint48\",\"name\":\"finalizesAt\",\"type\":\"uint48\"}],\"name\":\"Concluded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"destination\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"destinationHoldings\",\"type\":\"uint256\"}],\"name\":\"Deposited\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"channelId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"assetIndex\",\"type\":\"uint256\"}],\"name\":\"Reclaimed\",\"type\":\"event\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address[]\",\"name\":\"participants\",\"type\":\"address[]\"},{\"internalType\":\"uint64\",\"name\":\"channelNonce\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"appDefinition\",\"type\":\"address\"},{\"internalType\":\"uint48\",\"name\":\"challengeDuration\",\"type\":\"uint48\"}],\"internalType\":\"structINitroTypes.FixedPart\",\"name\":\"fixedPart\",\"type\":\"tuple\"},{\"components\":[{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"enumExitFormat.AssetType\",\"name\":\"assetType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"internalType\":\"structExitFormat.AssetMetadata\",\"name\":\"assetMetadata\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"destination\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"allocationType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"internalType\":\"structExitFormat.Allocation[]\",\"name\":\"allocations\",\"type\":\"tuple[]\"}],\"internalType\":\"structExitFormat.SingleAssetExit[]\",\"name\":\"outcome\",\"type\":\"tuple[]\"},{\"internalType\":\"bytes\",\"name\":\"appData\",\"type\":\"bytes\"},{\"internalType\":\"uint48\",\"name\":\"turnNum\",\"type\":\"uint48\"},{\"internalType\":\"bool\",\"name\":\"isFinal\",\"type\":\"bool\"}],\"internalType\":\"structINitroTypes.VariablePart\",\"name\":\"variablePart\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"internalType\":\"structINitroTypes.Signature[]\",\"name\":\"sigs\",\"type\":\"tuple[]\"}],\"internalType\":\"structINitroTypes.SignedVariablePart[]\",\"name\":\"proof\",\"type\":\"tuple[]\"},{\"components\":[{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"enumExitFormat.AssetType\",\"name\":\"assetType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"internalType\":\"structExitFormat.AssetMetadata\",\"name\":\"assetMetadata\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"destination\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"allocationType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"internalType\":\"structExitFormat.Allocation[]\",\"name\":\"allocations\",\"type\":\"tuple[]\"}],\"internalType\":\"structExitFormat.SingleAssetExit[]\",\"name\":\"outcome\",\"type\":\"tuple[]\"},{\"internalType\":\"bytes\",\"name\":\"appData\",\"type\":\"bytes\"},{\"internalType\":\"uint48\",\"name\":\"turnNum\",\"type\":\"uint48\"},{\"internalType\":\"bool\",\"name\":\"isFinal\",\"type\":\"bool\"}],\"internalType\":\"structINitroTypes.VariablePart\",\"name\":\"variablePart\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"internalType\":\"structINitroTypes.Signature[]\",\"name\":\"sigs\",\"type\":\"tuple[]\"}],\"internalType\":\"structINitroTypes.SignedVariablePart\",\"name\":\"candidate\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"internalType\":\"structINitroTypes.Signature\",\"name\":\"challengerSig\",\"type\":\"tuple\"}],\"name\":\"challenge\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address[]\",\"name\":\"participants\",\"type\":\"address[]\"},{\"internalType\":\"uint64\",\"name\":\"channelNonce\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"appDefinition\",\"type\":\"address\"},{\"internalType\":\"uint48\",\"name\":\"challengeDuration\",\"type\":\"uint48\"}],\"internalType\":\"structINitroTypes.FixedPart\",\"name\":\"fixedPart\",\"type\":\"tuple\"},{\"components\":[{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"enumExitFormat.AssetType\",\"name\":\"assetType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"internalType\":\"structExitFormat.AssetMetadata\",\"name\":\"assetMetadata\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"destination\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"allocationType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"internalType\":\"structExitFormat.Allocation[]\",\"name\":\"allocations\",\"type\":\"tuple[]\"}],\"internalType\":\"structExitFormat.SingleAssetExit[]\",\"name\":\"outcome\",\"type\":\"tuple[]\"},{\"internalType\":\"bytes\",\"name\":\"appData\",\"type\":\"bytes\"},{\"internalType\":\"uint48\",\"name\":\"turnNum\",\"type\":\"uint48\"},{\"internalType\":\"bool\",\"name\":\"isFinal\",\"type\":\"bool\"}],\"internalType\":\"structINitroTypes.VariablePart\",\"name\":\"variablePart\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"internalType\":\"structINitroTypes.Signature[]\",\"name\":\"sigs\",\"type\":\"tuple[]\"}],\"internalType\":\"structINitroTypes.SignedVariablePart[]\",\"name\":\"proof\",\"type\":\"tuple[]\"},{\"components\":[{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"enumExitFormat.AssetType\",\"name\":\"assetType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"internalType\":\"structExitFormat.AssetMetadata\",\"name\":\"assetMetadata\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"destination\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"allocationType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"internalType\":\"structExitFormat.Allocation[]\",\"name\":\"allocations\",\"type\":\"tuple[]\"}],\"internalType\":\"structExitFormat.SingleAssetExit[]\",\"name\":\"outcome\",\"type\":\"tuple[]\"},{\"internalType\":\"bytes\",\"name\":\"appData\",\"type\":\"bytes\"},{\"internalType\":\"uint48\",\"name\":\"turnNum\",\"type\":\"uint48\"},{\"internalType\":\"bool\",\"name\":\"isFinal\",\"type\":\"bool\"}],\"internalType\":\"structINitroTypes.VariablePart\",\"name\":\"variablePart\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"internalType\":\"structINitroTypes.Signature[]\",\"name\":\"sigs\",\"type\":\"tuple[]\"}],\"internalType\":\"structINitroTypes.SignedVariablePart\",\"name\":\"candidate\",\"type\":\"tuple\"}],\"name\":\"checkpoint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"destination\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"allocationType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"internalType\":\"structExitFormat.Allocation[]\",\"name\":\"sourceAllocations\",\"type\":\"tuple[]\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"destination\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"allocationType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"internalType\":\"structExitFormat.Allocation[]\",\"name\":\"targetAllocations\",\"type\":\"tuple[]\"},{\"internalType\":\"uint256\",\"name\":\"indexOfTargetInSource\",\"type\":\"uint256\"}],\"name\":\"compute_reclaim_effects\",\"outputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"destination\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"allocationType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"internalType\":\"structExitFormat.Allocation[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"initialHoldings\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"destination\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"allocationType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"internalType\":\"structExitFormat.Allocation[]\",\"name\":\"allocations\",\"type\":\"tuple[]\"},{\"internalType\":\"uint256[]\",\"name\":\"indices\",\"type\":\"uint256[]\"}],\"name\":\"compute_transfer_effects_and_interactions\",\"outputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"destination\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"allocationType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"internalType\":\"structExitFormat.Allocation[]\",\"name\":\"newAllocations\",\"type\":\"tuple[]\"},{\"internalType\":\"bool\",\"name\":\"allocatesOnlyZeros\",\"type\":\"bool\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"destination\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"allocationType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"internalType\":\"structExitFormat.Allocation[]\",\"name\":\"exitAllocations\",\"type\":\"tuple[]\"},{\"internalType\":\"uint256\",\"name\":\"totalPayouts\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address[]\",\"name\":\"participants\",\"type\":\"address[]\"},{\"internalType\":\"uint64\",\"name\":\"channelNonce\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"appDefinition\",\"type\":\"address\"},{\"internalType\":\"uint48\",\"name\":\"challengeDuration\",\"type\":\"uint48\"}],\"internalType\":\"structINitroTypes.FixedPart\",\"name\":\"fixedPart\",\"type\":\"tuple\"},{\"components\":[{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"enumExitFormat.AssetType\",\"name\":\"assetType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"internalType\":\"structExitFormat.AssetMetadata\",\"name\":\"assetMetadata\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"destination\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"allocationType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"internalType\":\"structExitFormat.Allocation[]\",\"name\":\"allocations\",\"type\":\"tuple[]\"}],\"internalType\":\"structExitFormat.SingleAssetExit[]\",\"name\":\"outcome\",\"type\":\"tuple[]\"},{\"internalType\":\"bytes\",\"name\":\"appData\",\"type\":\"bytes\"},{\"internalType\":\"uint48\",\"name\":\"turnNum\",\"type\":\"uint48\"},{\"internalType\":\"bool\",\"name\":\"isFinal\",\"type\":\"bool\"}],\"internalType\":\"structINitroTypes.VariablePart\",\"name\":\"variablePart\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"internalType\":\"structINitroTypes.Signature[]\",\"name\":\"sigs\",\"type\":\"tuple[]\"}],\"internalType\":\"structINitroTypes.SignedVariablePart\",\"name\":\"candidate\",\"type\":\"tuple\"}],\"name\":\"conclude\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address[]\",\"name\":\"participants\",\"type\":\"address[]\"},{\"internalType\":\"uint64\",\"name\":\"channelNonce\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"appDefinition\",\"type\":\"address\"},{\"internalType\":\"uint48\",\"name\":\"challengeDuration\",\"type\":\"uint48\"}],\"internalType\":\"structINitroTypes.FixedPart\",\"name\":\"fixedPart\",\"type\":\"tuple\"},{\"components\":[{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"enumExitFormat.AssetType\",\"name\":\"assetType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"internalType\":\"structExitFormat.AssetMetadata\",\"name\":\"assetMetadata\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"destination\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"allocationType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"internalType\":\"structExitFormat.Allocation[]\",\"name\":\"allocations\",\"type\":\"tuple[]\"}],\"internalType\":\"structExitFormat.SingleAssetExit[]\",\"name\":\"outcome\",\"type\":\"tuple[]\"},{\"internalType\":\"bytes\",\"name\":\"appData\",\"type\":\"bytes\"},{\"internalType\":\"uint48\",\"name\":\"turnNum\",\"type\":\"uint48\"},{\"internalType\":\"bool\",\"name\":\"isFinal\",\"type\":\"bool\"}],\"internalType\":\"structINitroTypes.VariablePart\",\"name\":\"variablePart\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"internalType\":\"structINitroTypes.Signature[]\",\"name\":\"sigs\",\"type\":\"tuple[]\"}],\"internalType\":\"structINitroTypes.SignedVariablePart\",\"name\":\"candidate\",\"type\":\"tuple\"}],\"name\":\"concludeAndTransferAllAssets\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"channelId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"expectedHeld\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"holdings\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"sourceChannelId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"sourceStateHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"sourceOutcomeBytes\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"sourceAssetIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"indexOfTargetInSource\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"targetStateHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"targetOutcomeBytes\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"targetAssetIndex\",\"type\":\"uint256\"}],\"internalType\":\"structIMultiAssetHolder.ReclaimArgs\",\"name\":\"reclaimArgs\",\"type\":\"tuple\"}],\"name\":\"reclaim\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address[]\",\"name\":\"participants\",\"type\":\"address[]\"},{\"internalType\":\"uint64\",\"name\":\"channelNonce\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"appDefinition\",\"type\":\"address\"},{\"internalType\":\"uint48\",\"name\":\"challengeDuration\",\"type\":\"uint48\"}],\"internalType\":\"structINitroTypes.FixedPart\",\"name\":\"fixedPart\",\"type\":\"tuple\"},{\"components\":[{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"enumExitFormat.AssetType\",\"name\":\"assetType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"internalType\":\"structExitFormat.AssetMetadata\",\"name\":\"assetMetadata\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"destination\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"allocationType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"internalType\":\"structExitFormat.Allocation[]\",\"name\":\"allocations\",\"type\":\"tuple[]\"}],\"internalType\":\"structExitFormat.SingleAssetExit[]\",\"name\":\"outcome\",\"type\":\"tuple[]\"},{\"internalType\":\"bytes\",\"name\":\"appData\",\"type\":\"bytes\"},{\"internalType\":\"uint48\",\"name\":\"turnNum\",\"type\":\"uint48\"},{\"internalType\":\"bool\",\"name\":\"isFinal\",\"type\":\"bool\"}],\"internalType\":\"structINitroTypes.VariablePart\",\"name\":\"variablePart\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"internalType\":\"structINitroTypes.Signature[]\",\"name\":\"sigs\",\"type\":\"tuple[]\"}],\"internalType\":\"structINitroTypes.SignedVariablePart[]\",\"name\":\"proof\",\"type\":\"tuple[]\"},{\"components\":[{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"enumExitFormat.AssetType\",\"name\":\"assetType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"internalType\":\"structExitFormat.AssetMetadata\",\"name\":\"assetMetadata\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"destination\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"allocationType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"internalType\":\"structExitFormat.Allocation[]\",\"name\":\"allocations\",\"type\":\"tuple[]\"}],\"internalType\":\"structExitFormat.SingleAssetExit[]\",\"name\":\"outcome\",\"type\":\"tuple[]\"},{\"internalType\":\"bytes\",\"name\":\"appData\",\"type\":\"bytes\"},{\"internalType\":\"uint48\",\"name\":\"turnNum\",\"type\":\"uint48\"},{\"internalType\":\"bool\",\"name\":\"isFinal\",\"type\":\"bool\"}],\"internalType\":\"structINitroTypes.VariablePart\",\"name\":\"variablePart\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"internalType\":\"structINitroTypes.Signature[]\",\"name\":\"sigs\",\"type\":\"tuple[]\"}],\"internalType\":\"structINitroTypes.SignedVariablePart\",\"name\":\"candidate\",\"type\":\"tuple\"}],\"name\":\"stateIsSupported\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"statusOf\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetIndex\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"fromChannelId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"outcomeBytes\",\"type\":\"bytes\"},{\"internalType\":\"bytes32\",\"name\":\"stateHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint256[]\",\"name\":\"indices\",\"type\":\"uint256[]\"}],\"name\":\"transfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"channelId\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"enumExitFormat.AssetType\",\"name\":\"assetType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"internalType\":\"structExitFormat.AssetMetadata\",\"name\":\"assetMetadata\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"destination\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"allocationType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"internalType\":\"structExitFormat.Allocation[]\",\"name\":\"allocations\",\"type\":\"tuple[]\"}],\"internalType\":\"structExitFormat.SingleAssetExit[]\",\"name\":\"outcome\",\"type\":\"tuple[]\"},{\"internalType\":\"bytes32\",\"name\":\"stateHash\",\"type\":\"bytes32\"}],\"name\":\"transferAllAssets\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"channelId\",\"type\":\"bytes32\"}],\"name\":\"unpackStatus\",\"outputs\":[{\"internalType\":\"uint48\",\"name\":\"turnNumRecord\",\"type\":\"uint48\"},{\"internalType\":\"uint48\",\"name\":\"finalizesAt\",\"type\":\"uint48\"},{\"internalType\":\"uint160\",\"name\":\"fingerprint\",\"type\":\"uint160\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
	Bin: "0x6080806040523461001657613798908161001c8239f35b600080fdfe608060405260048036101561001357600080fd5b60003560e01c90816311e9f178146116b3578163166e56cd1461166b5781632fb1d270146113b05781633033730e1461117657816331afa0b414610e9b578163552cfa5014610e56578163566d54c614610dec5781635685b7dc14610b9b5781636d2a9c9214610aa05781638286a0601461076d578163c7df14e214610743578163d3c4e73814610468578163ec346235146100d7575063ee049b50146100b957600080fd5b346100d2576100d06100ca36611e7a565b906122ab565b005b600080fd5b346100d2576100f1906100e936611e7a565b8093916122ab565b915151906100fe83613378565b61010782613601565b610110846136c2565b9391505060405192602093848101936000855260408201526040815261013581611744565b519092206001600160a01b03929083169083160361042c575060019183519161015d83611802565b9261016b60405194856117e1565b80845261017a601f1991611802565b018260005b8281106103ed575050506101938551611ebd565b61019d8651611ebd565b9060005b8751811015610285576101b48189611f47565b5188604082015191610215876101ca8685611f47565b515116938460005260018a528d6040600020906000528a526040600020546101f28789611f47565b526101fd8688611f47565b51906040519161020c836117c6565b60008352612ac2565b9094911561027c575b91604061023f8880989796948e966102396102779c8f611f47565b52611f47565b51015201516040519261025184611744565b83528883015260408201526102668289611f47565b526102718188611f47565b50611eef565b6101a1565b60009c5061021e565b50919095879460005b825181101561034f5780877fc36da2054c5669d6dac211b7366d59f2d369151c21edf4940468614b449e0b9a8b6102d684896102cd61034a988b611f47565b51511692611f47565b518160005260018b526040600020846000528b526102fa6040600020918254611f5b565b9055610306848a611f47565b519060005260018a526040600020836000528a526040600020549061034260405192839287846040919493926060820195825260208201520152565b0390a2611eef565b61028e565b5085858389156103955750600091825252600060408120555b60005b81518110156100d0578061038b6103856103909385611f47565b51613170565b611eef565b61036b565b906103de6103a4600093613601565b6103ad856136c2565b509190604051926103bd84611775565b65ffffffffffff809216845216848301528460408301526060820152613651565b92825252604060002055610368565b6040516103f981611744565b6000815260405161040981611790565b60008152606090818582015284830152604082015282828801015201839061017f565b60405162461bcd60e51b815290810183905260156024820152741a5b98dbdc9c9958dd08199a5b99d95c9c1c9a5b9d605a1b6044820152606490fd5b346100d257600319602036820181136100d2578235916001600160401b03938484116100d257610100809285360301126100d2576040519182018281108682111761072e57604052838101358252828201906024850135825260448501358681116100d2576104dc90823691880101611842565b906040840191825260608401956064810135875260808501906084810135825260a086019860a48201358a5260c48201359081116100d25761052560e491853691850101611842565b918260c089015201359860e08701938a85526105608851965161055b8c519861054d81613378565b8a518351848f01209061330f565b6127e7565b809661056b856127e7565b9c6001600160a01b0391600260ff60406105a281610597868961058e828d611f47565b5151169a611f47565b5101518c5190611f47565b51015116036106ea578e9695949392916105cf60406105c46105d7948e611f47565b5101518a5190611f47565b515197611f47565b515116036106a657506106478a9b604061063c7f4d3754632451ebba9812a9305e7bca17b67a17186a5cff93d2e9ae1b01e3d27b9d610635888f6106529b9961069a9f9e9d9b99610628889b613378565b519181519101209061330f565b5189611f47565b510151945190611f47565b510151905191612e6d565b9184519260406106638a5185611f47565b510152519060405161069181610683898201948a86526040830190612d4c565b03601f1981018352826117e1565b519020916133d1565b519251604051908152a2005b60405162461bcd60e51b81529081018a9052601d60248201527f746172676574417373657420213d2067756172616e74656541737365740000006044820152606490fd5b60405162461bcd60e51b81528086018e9052601a60248201527f6e6f7420612067756172616e74656520616c6c6f636174696f6e0000000000006044820152606490fd5b604182634e487b7160e01b6000525260246000fd5b346100d25760203660031901126100d2573560005260006020526020604060002054604051908152f35b346100d25760c03660031901126100d2576001600160401b039080358281116100d25761079d9036908301611be6565b906024358381116100d2576107b59036908301611e5c565b926044359081116100d2576107cd9036908301611cad565b60603660631901126100d2576040516107e581611744565b60643560ff811681036100d2578152608435602082015260a435604082015261080d846134e7565b9365ffffffffffff60408451015116936108268661361e565b61082f816121d1565b610a6f5765ffffffffffff610843876136c2565b5050168510610a2b575b61086161085b858985612443565b906121f1565b6108ba61086f85518461358a565b936108b584519160405160208101908882526040808201526009606082015268666f7263654d6f766560b81b6080820152608081526108ad816117ab565b519020613422565b6123fc565b156109e757506108de65ffffffffffff60608301511665ffffffffffff4216612221565b956040519665ffffffffffff60608901911688526060602089015281518091526080880190602060808260051b8b01019301916000905b8282106109bb575050505061097a65ffffffffffff60608194897f0aa12461ee6c137332989aa12cec79f4772ab2c1a8732a382aada7e9f3ec9d348c8061096c6109a79e9f996109829a810360408401528d61223b565b0390a2015116834216612221565b935151613601565b926040519461099086611775565b855216602084015260408301526060820152613651565b906000526000602052604060002055600080f35b909192936020806109d96001938e607f19908203018652885161223b565b960192019201909291610915565b60649060206040519162461bcd60e51b8352820152601f60248201527f4368616c6c656e676572206973206e6f742061207061727469636970616e74006044820152fd5b60649060206040519162461bcd60e51b8352820152601860248201527f7475726e4e756d5265636f7264206465637265617365642e00000000000000006044820152fd5b6001610a7a8761361e565b610a83816121d1565b03610a9757610a928587612707565b61084d565b610a928661276b565b346100d25760603660031901126100d2576001600160401b0381358181116100d257610acf9036908401611be6565b916024358281116100d257610ae79036908301611e5c565b926044359283116100d257610b5961085b610b286020947f07da0a0674fb921e484018c8b81d80e292745e5d8ed134b580c8b9c631c5e9e096369101611cad565b610b31846134e7565b9665ffffffffffff6040835101511694610b4a8961276b565b610b54868a612707565b612443565b610b84604051610b6881611775565b8281526000848201526000604082015260006060820152613651565b8460005260008352604060002055604051908152a2005b346100d2576003196060368201126100d2578135906001600160401b03928383116100d257828101833603946080848701126100d257602435948186116100d257366023870112156100d25785840135958287116100d2573660248860051b830101116100d257604435928084116100d25760408785360301126100d257604483019081359860018060a01b0393848b16809b036100d257610c7791610c53610c5992610c48368c611be6565b926024369201611ded565b90612580565b95610c71610c67368a611be6565b9136908b01611cad565b90612611565b966040519a634c9b6c0960e11b8c526060828d015260e48c01973590602219018112156100d25785016024810197910135908282116100d2578160051b360388136100d257608060648d01528190528a9897966101048a0196959493929160005b818110610db85750505094610d4d9465ffffffffffff610d296064878d9b9760009f9d99610d3e988e6084819f610d146024610d1d9601611bbf565b16910152611a99565b1660a48c015201611bd3565b1660c48801528487830301602488015261217c565b9184830301604485015261215c565b03915afa908115610dac57600090600092610d86575b50610d82604051928392151583526040602084015260408301906119d9565b0390f35b9050610da591503d806000833e610d9d81836117e1565b810190611fac565b9082610d63565b6040513d6000823e3d90fd5b9198999a5091929394959660019086610dd08b611a99565b168152602080910199019101918c9a9998979695949392610cd8565b346100d25760603660031901126100d2576001600160401b039080358281116100d257610e1c9036908301611889565b6024359283116100d257610e39610e4292610d8294369101611889565b60443591612e6d565b6040519182916020835260208301906119fe565b346100d25760203660031901126100d257610e73606091356136c2565b6040805165ffffffffffff94851681529390921660208401526001600160a01b031690820152f35b346100d2576060806003193601126100d2576024356001600160401b0381116100d257610ecb9036908401611aad565b90610ed68335613378565b610eed610ee283613601565b84359060443561330f565b600191805191610efc83611802565b92610f0a60405194856117e1565b808452610f19601f1991611802565b019060005b82811061113757505050610f328151611ebd565b610f3c8251611ebd565b9160005b815181101561101157610f538183611f47565b51604081015190610fa46001600160a01b03610f6f8587611f47565b5151169283600052600160205260406000208b35600052602052604060002054610f998689611f47565b526101fd8588611f47565b9093929115611008575b9160209186959493610fc3611003988c611f47565b526040610fd0878a611f47565b510152015160405192610fe284611744565b835260208301526040820152610ff88288611f47565b526102718187611f47565b610f40565b60009a50610fae565b5090919260005b82518110156110dd576110d8906001600160a01b036110378286611f47565b5151166110448288611f47565b51816000526020906001825260406000208b35600052825261106c6040600020918254611f5b565b90556110788388611f47565b5191600052600181526040600020908a35600052527fc36da2054c5669d6dac211b7366d59f2d369151c21edf4940468614b449e0b9a6103426040600020546040519182918d359587846040919493926060820195825260208201520152565b611018565b508582861561111a5750356000526000602052600060408120555b60005b81518110156100d0578061038b6103856111159385611f47565b6110fb565b9061112761113292613601565b9060443590356133d1565b6110f8565b60209060405161114681611744565b6000815260405161115681611790565b600081528390858282015281830152846040830152828801015201610f1e565b346100d25760a03660031901126100d2576001600160401b039080359060446024803582358681116100d2576111af9036908601611842565b946064968735906084359081116100d2576111cd9036908801611958565b9260005b6001810180821161139c578551811015611249576111fa6111f28388611f47565b519187611f47565b51111561120f5761120a90611eef565b6111d1565b60405162461bcd60e51b81526020818a015260168188015275125b991a58d95cc81b5d5cdd081899481cdbdc9d195960521b818901528a90fd5b5050876113776100d0959461125d84613378565b8361127684519461055b6020978897888401208a61330f565b6001600160a01b03979091907fc36da2054c5669d6dac211b7366d59f2d369151c21edf4940468614b449e0b9a90896112af8686611f47565b515116806000526001885260406000208460005288526113456112e76040600020549360406112de8a8a611f47565b51015185612ac2565b909d9291508460005260018c526040600020886000528c5261130f6040600020918254611f5b565b9055604061131d8a8a611f47565b5101526040518a8101908b825261133b81610683604082018c612d4c565b51902090866133d1565b6000908152600188526040808220858352895290819020548151878152602081019390935290820152606090a2611f47565b5193845116930151906040519361138d85611744565b84528301526040820152613170565b8660118a634e487b7160e01b600052526000fd5b60803660031901126100d2576113c4611a83565b6024918235916064918235948460a01c156116295760018060a01b03831693846000526020926001845260406000208760005284526040600020549260443584036115f257866114ba5788340361147a575050507f87d4c0b5e30d6808bc8a94ba1c4d839b29d664151551a31753387ee9ef48429b9495611444916127c0565b60009384526001825260408085208786529092529281902083905580516001600160a01b039290921682526020820192909252a2005b60405162461bcd60e51b8152918201859052601f908201527f496e636f7272656374206d73672e76616c756520666f72206465706f736974006044820152fd5b6115396040939293516000808883016323b872dd60e01b815233868501523060448501528d878501528684526114ef846117ab565b604051936114fc85611790565b8a85527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648b8601525190828d5af16115326132df565b908a6136ed565b80518681159182156115d3575b505090501561157e575050507f87d4c0b5e30d6808bc8a94ba1c4d839b29d664151551a31753387ee9ef48429b9495611444916127c0565b60405162461bcd60e51b8152928301859052602a908301527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044830152691bdd081cdd58d8d9595960b21b90820152608490fd5b83809293500103126100d257856115ea9101611f68565b80868c611546565b60405162461bcd60e51b8152918201859052601490820152731a195b1908084f48195e1c1958dd195912195b1960621b6044820152fd5b601f91925060206040519362461bcd60e51b85528401528201527f4465706f73697420746f2065787465726e616c2064657374696e6174696f6e006044820152fd5b346100d25760403660031901126100d2576001600160a01b0361168c611a83565b16600052600160205260406000206024356000526020526020604060002054604051908152f35b346100d25760603660031901126100d2576001600160401b036024358181116100d2576116e39036908401611889565b906044359081116100d2576117259261173a9261170661170d9336908401611958565b9135612ac2565b929391906040519586956080875260808701906119fe565b911515602086015284820360408601526119fe565b9060608301520390f35b606081019081106001600160401b0382111761175f57604052565b634e487b7160e01b600052604160045260246000fd5b608081019081106001600160401b0382111761175f57604052565b604081019081106001600160401b0382111761175f57604052565b60a081019081106001600160401b0382111761175f57604052565b602081019081106001600160401b0382111761175f57604052565b90601f801991011681019081106001600160401b0382111761175f57604052565b6001600160401b03811161175f5760051b60200190565b359060ff821682036100d257565b6001600160401b03811161175f57601f01601f191660200190565b81601f820112156100d25780359061185982611827565b9261186760405194856117e1565b828452602083830101116100d257816000926020809301838601378301015290565b9080601f830112156100d25781356118a081611802565b926040916118b0835195866117e1565b808552602093848087019260051b840101938185116100d257858401925b8584106118df575050505050505090565b6001600160401b0384358181116100d257860191608080601f1985880301126100d25784519061190e82611775565b8a8501358252858501358b83015260609061192a828701611819565b878401528501359384116100d257611949878c80979681970101611842565b908201528152019301926118ce565b81601f820112156100d25780359161196f83611802565b9261197d60405194856117e1565b808452602092838086019260051b8201019283116100d2578301905b8282106119a7575050505090565b81358152908301908301611999565b60005b8381106119c95750506000910152565b81810151838201526020016119b9565b906020916119f2815180928185528580860191016119b6565b601f01601f1916010190565b908082519081815260208091019281808460051b8301019501936000915b848310611a2c5750505050505090565b9091929394958480611a73600193601f198682030187528a51805182528381015184830152604060ff818301511690830152606080910151916080809282015201906119d9565b9801930193019194939290611a1c565b600435906001600160a01b03821682036100d257565b35906001600160a01b03821682036100d257565b9080601f830112156100d2578135611ac481611802565b92604091611ad4835195866117e1565b808552602093848087019260051b840101938185116100d257858401925b858410611b03575050505050505090565b6001600160401b0384358181116100d257860191601f196060848703820181136100d257855191611b3383611744565b611b3e8c8701611a99565b8352868601358581116100d2578790870191828a0301126100d257865190611b6582611790565b8c81013560048110156100d2578252878101358681116100d2578d8a91611b8d930101611842565b8c8201528b8301528401359283116100d257611bb0868b80969581960101611889565b85820152815201930192611af2565b35906001600160401b03821682036100d257565b359065ffffffffffff821682036100d257565b9190916080818403126100d25760405190611c0082611775565b819381356001600160401b0381116100d25782019080601f830112156100d257813590611c2c82611802565b91611c3a60405193846117e1565b808352602093848085019260051b8201019283116100d2578401905b828210611c9657505050606092611c919284928652611c76818301611bbf565b90860152611c8660408201611a99565b604086015201611bd3565b910152565b848091611ca284611a99565b815201910190611c56565b919060409283818303126100d2578351848101916001600160401b03958284108785111761175f57838152829682358181116100d2578301926080848803126100d257611cf986611775565b83358281116100d25787611d0e918601611aad565b8652602095868501358381116100d25788611d2a918701611842565b606095869182890152611d3e868201611bd3565b6080890152013580151581036100d25760a08701528552858101359182116100d257019085601f830112156100d257813590611d7982611802565b96611d86825198896117e1565b8288528685818a019402850101938185116100d2578701925b848410611db0575050505050500152565b85848303126100d2578786918451611dc781611744565b611dd087611819565b815282870135838201528587013586820152815201930192611d9f565b92919092611dfa84611802565b91611e0860405193846117e1565b829480845260208094019060051b8301928284116100d25780915b848310611e3257505050505050565b82356001600160401b0381116100d2578691611e518684938601611cad565b815201920191611e23565b9080601f830112156100d257816020611e7793359101611ded565b90565b9060406003198301126100d2576001600160401b036004358181116100d25783611ea691600401611be6565b926024359182116100d257611e7791600401611cad565b90611ec782611802565b611ed460405191826117e1565b8281528092611ee5601f1991611802565b0190602036910137565b6000198114611efe5760010190565b634e487b7160e01b600052601160045260246000fd5b805115611f215760200190565b634e487b7160e01b600052603260045260246000fd5b805160011015611f215760400190565b8051821015611f215760209160051b010190565b91908203918211611efe57565b519081151582036100d257565b90929192611f8281611827565b91611f9060405193846117e1565b8294828452828201116100d2576020611faa9301906119b6565b565b91906040838203126100d257611fc183611f68565b926020810151906001600160401b0382116100d257019080601f830112156100d2578151611e7792602001611f75565b906080810182519060808352815180915260a0830190602060a08260051b8601019301916000905b82821061205a5750505050606061203d8192602086015185820360208701526119d9565b9365ffffffffffff60408201511660408501520151151591015290565b90919293609f19868203018252845160018060a01b0381511682526020810151606060208401528051600480821015612147575060206040926120ae926060870152015182608086015260a08501906119d9565b910151916040818303910152815180825260208201906020808260051b85010194019260005b8281106120f4575050505050602080600192960192019201909291612019565b909192939460208061213a600193601f19878203018952608060608b5180518452858101518685015260ff604082015116604085015201519181606082015201906119d9565b97019501939291016120d4565b602190634e487b7160e01b6000525260246000fd5b906020806121738451604085526040850190611ff1565b93015191015290565b90815180825260208092019182818360051b82019501936000915b8483106121a75750505050505090565b90919293949584806121c183856001950387528a5161215c565b9801930193019194939290612197565b600311156121db57565b634e487b7160e01b600052602160045260246000fd5b156121f95750565b60405162461bcd60e51b81526020600482015290819061221d9060248301906119d9565b0390fd5b91909165ffffffffffff80809416911601918211611efe57565b80519061225060409283855283850190611ff1565b9060208091015193818184039101528080855193848152019401926000905b83821061227e57505050505090565b8451805160ff1687528084015187850152810151868201526060909501949382019360019091019061226f565b91906122b6836134e7565b926122c08461276b565b606082510151156123c15760206122d78383612611565b015190816000925b61239c575060ff90515191160361236a577f4f465027a3d06ea73dd12be0f5c5fc0a34e21f19d6eaed4834a7a944edabc9016020849261235361232c65ffffffffffff4216925151613601565b6040519061233982611775565b600082528385830152600060408301526060820152613651565b8460005260008352604060002055604051908152a2565b60405162461bcd60e51b815260206004820152600a60248201526921756e616e696d6f757360b01b6044820152606490fd5b600019810190808211611efe57169160ff809116908114611efe5760010191806122df565b60405162461bcd60e51b815260206004820152601360248201527214dd185d19481b5d5cdd08189948199a5b985b606a1b6044820152606490fd5b60005b825181101561243b576001600160a01b038061241b8386611f47565b5116908316146124335761242e90611eef565b6123ff565b505050600190565b505050600090565b9291604084019160018060a01b039161246a612463848651169388612580565b9187612611565b604051968794634c9b6c0960e11b86526060600487015260e4860196825160806064890152805180995261010488019860208092019060005b81811061252d5750505060009865ffffffffffff6060868b99968a99966001600160401b03610d3e976124fa9b01511660848c0152511660a48a015201511660c4870152600319938487830301602488015261217c565b03915afa918215610dac57600090819361251357509190565b906125299293503d8091833e610d9d81836117e1565b9091565b825186168c529a83019a8d9a50918301916001016124a3565b6040519061255382611790565b600060208360405161256481611775565b6060815260608382015283604082015283606082015281520152565b81519161258c83611802565b9261259a60405194856117e1565b8084526125a9601f1991611802565b0160005b8181106125fa57505060005b81518110156125f457806125da6125d36125ef9385611f47565b5185612611565b6125e48287611f47565b526102718186611f47565b6125b9565b50505090565b602090612605612546565b828288010152016125ad565b919061261b612546565b508051906040519161262c83611790565b82526020928383019260009283855283955b8082018051518810156126fb5761266e9061266789612660869896518d61358a565b9251611f47565b5190613422565b6001600160a01b0390811694909390865b8a5180518210156126eb57612695828892611f47565b511687146126ab576126a690611eef565b61267f565b929891955093509060ff81116126d7579060016126cd921b8751178752611eef565b959291909261263e565b634e487b7160e01b86526011600452602486fd5b505093509350956126cd90611eef565b50505093509350505090565b612710906136c2565b505065ffffffffffff8091169116111561272657565b60405162461bcd60e51b815260206004820152601c60248201527f7475726e4e756d5265636f7264206e6f7420696e637265617365642e000000006044820152606490fd5b61277660029161361e565b61277f816121d1565b1461278657565b60405162461bcd60e51b815260206004820152601260248201527121b430b73732b6103334b730b634bd32b21760711b6044820152606490fd5b91908201809211611efe57565b9080601f830112156100d2578151611e7792602001611f75565b805181016020828203126100d25760208201516001600160401b0381116100d25760208201603f8285010112156100d257602081840101519061282982611802565b9361283760405195866117e1565b82855260208501916020850160408560051b8385010101116100d257604081830101925b60408560051b838501010184106128755750505050505090565b83516001600160401b0381116100d257601f19908484010160608189038301126100d257604051916128a683611744565b60408201516001600160a01b03811681036100d257835260608201516001600160401b0381116100d257604090830191828b0301126100d257604051906128ec82611790565b604081015160048110156100d25782526060810151906001600160401b0382116100d25760406129229260208d019201016127cd565b6020820152602083015260808101516001600160401b0381116100d25760208901605f8284010112156100d257604081830101519061296082611802565b9261296e60405194856117e1565b828452602084019060208c0160608560051b8584010101116100d257606083820101915b60608560051b858401010183106129bb575050505050604082015281526020938401930161285b565b82516001600160401b0381116100d257608083860182018f03603f1901126100d257604051916129ea83611775565b8386018201606081015184526080810151602085015260a0015160ff811681036100d257604084015260c082878601010151926001600160401b0384116100d2578f602094936060869586612a469401928b8a010101016127cd565b6060820152815201920191612992565b90612a6082611802565b604090612a6f825191826117e1565b8381528093612a80601f1991611802565b0191600091825b848110612a95575050505050565b6020908351612aa381611775565b8581528286818301528686830152606080830152828501015201612a87565b9192908351801515600014612d4157612ada90612a56565b91600091612ae88151612a56565b95600190818097938960009586935b612b05575b50505050505050565b909192939495978351851015612d3857612b1f8585611f47565b5151612b2b8685611f47565b515260409060ff8083612b3e8989611f47565b5101511683612b4d8988611f47565b510152606080612b5d8989611f47565b51015181612b6b8a89611f47565b51015260209384612b7c8a8a611f47565b51015186811115612d32575085965b8d8b51908b8215928315612d08575b505050600014612cd75750600283828f612bb4908c611f47565b5101511614612c94578f96959493868f918f612c5190612c5794612c63988f988f908f91612c5d9a898f94612c2c8f869288612c0783612c018884612bf9848e611f47565b510151611f5b565b93611f47565b510152612c148187611f47565b51519885612c228389611f47565b5101511695611f47565b51015194825196612c3c88611775565b87528601528401528201526102398383611f47565b506127c0565b9c611eef565b95611f47565b510151612c8b575b612c7e91612c7891611f5b565b93611eef565b91909493928a9085612af7565b60009a50612c6b565b5162461bcd60e51b815260048101859052601b60248201527f63616e6e6f74207472616e7366657220612067756172616e74656500000000006044820152606490fd5b9050612c63925088915084612cf283959e989796958a611f47565b51015184612d008484611f47565b510152611f47565b821092509082612d1d575b50508e8b38612b9a565b612d299192508d611f47565b51148a8f612d13565b96612b8b565b97829150612afc565b50612ada8151612a56565b90815180825260208092019182818360051b82019501936000915b848310612d775750505050505090565b9091929394958181038352865160018060a01b03815116825285810151906060918288850152805160048082101561214757509188612dcf9285948796839801520151604092839182608088015260a08701906119d9565b91015193828183039101528351908181528581019286808460051b8401019601946000915b848310612e17575050505050505090806001929801930193019194939290612d67565b9193959780612e59600193959799601f19898203018b526080878d5180518452858101518685015260ff898201511689850152015191818982015201906119d9565b99019701930190918b979695939492612df4565b80516000198101908111611efe57612e8490612a56565b91612e8f8483611f47565b51606081015192604094855191612ea583611790565b60009586845286602080950152878180518101031261316c5787805191612ecb83611790565b85810151835201519084810191825287998890899c8a988b5b87518d101561304d578f848e1461303e578c8f8f90612f51858f8f908f612f0b8782611f47565b51519582612f198984611f47565b5101516060612f2f8a60ff85612c228389611f47565b51015193825198612f3f8a611775565b89528801528601526060850152611f47565b52612f5c848d611f47565b5087159081613028575b50612fee575b501580612fd9575b612f8b575b612c57612f8591611eef565b9b612ee4565b9e5098612fce908f612fb98b612faf8f612fa58391611f37565b510151938d611f47565b51019182516127c0565b905289612fc58d611f37565b510151906127c0565b60019e909990612f79565b50612fe48d89611f47565b5151875114612f74565b829c919650612fc5818c6130178f612faf61301e988261300e8199611f14565b51015194611f47565b9052611f14565b996001948c612f6c565b61303391508b611f47565b51518851148f612f66565b509b9d50612f8560019e611eef565b509899509c969a9950509399925050501561313057156130f657156130bb578301510361307957505090565b60649250519062461bcd60e51b825280600483015260248201527f746f74616c5265636c61696d6564213d67756172616e7465652e616d6f756e746044820152fd5b825162461bcd60e51b815260048101859052601460248201527318dbdd5b19081b9bdd08199a5b99081c9a59da1d60621b6044820152606490fd5b835162461bcd60e51b815260048101869052601360248201527218dbdd5b19081b9bdd08199a5b99081b19599d606a1b6044820152606490fd5b845162461bcd60e51b815260048101879052601560248201527418dbdd5b19081b9bdd08199a5b99081d185c99d95d605a1b6044820152606490fd5b8680fd5b80516001600160a01b03908116919060005b6040808401908151918251841015612afc57846131a0858095611f47565b5151916131b1602095869251611f47565b510151918060a01c156000146132b457168761322a57600080809381935af16131d86132df565b50156131ee5750506131e990611eef565b613182565b60649250519062461bcd60e51b825260048201526016602482015275086deead8c840dcdee840e8e4c2dce6cccae4408aa8960531b6044820152fd5b825163a9059cbb60e01b81526001600160a01b039190911660048201526024810191909152929190818460448160008b5af19081156132aa5750613274575b506131e99150611eef565b82813d83116132a3575b61328881836117e1565b810103126100d25761329c6131e992611f68565b5038613269565b503d61327e565b513d6000823e3d90fd5b600089815260018652848120918152945250912080546131e993926132d8916127c0565b9055611eef565b3d1561330a573d906132f082611827565b916132fe60405193846117e1565b82523d6000602084013e565b606090565b91613319906136c2565b936001600160a01b0393849350613331925090613695565b1691160361333b57565b60405162461bcd60e51b81526020600482015260156024820152741a5b98dbdc9c9958dd08199a5b99d95c9c1c9a5b9d605a1b6044820152606490fd5b61338360029161361e565b61338c816121d1565b0361339357565b60405162461bcd60e51b815260206004820152601660248201527521b430b73732b6103737ba103334b730b634bd32b21760511b6044820152606490fd5b9190613411916133e0846136c2565b509290604051936133f085611775565b65ffffffffffff809216855216602084015260408301526060820152613651565b906000526000602052604060002055565b90600060806020926040948551858101917f19457468657265756d205369676e6564204d6573736167653a0a3332000000008352603c820152603c815261346881611744565b5190209060ff8151169086868201519101519187519384528684015286830152606082015282805260015afa156132aa57600051906001600160a01b038216156134b0575090565b5162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b6044820152606490fd5b8051906020916001600160401b03838301511660018060a01b039165ffffffffffff606084604087015116950151166040519485938785019760a086019060808a5285518092528060c088019601976000905b83821061356d575050505060408501526060840152608083015203601f19810183526135679150826117e1565b51902090565b895181168852988201988a9850968201966001919091019061353a565b6135676135996135d7926134e7565b926020810151815191606065ffffffffffff60408301511691015115156135ea60405196879460208601998a5260a0604087015260c08601906119d9565b601f199586868303016060870152612d4c565b91608084015260a0830152039081018352826117e1565b604051613567816106836020820194602086526040830190612d4c565b61362e65ffffffffffff916136c2565b5090501680156000146136415750600090565b421061364c57600290565b600190565b65ffffffffffff60d01b815160d01b1665ffffffffffff60a01b602083015160a01b1617906136906040820151606060018060a01b0393015190613695565b161790565b60405191602083019182526040830152604082526136b282611744565b905190206001600160a01b031690565b60005260006020526040600020548060d01c9165ffffffffffff8260a01c169160018060a01b031690565b9192901561374f5750815115613701575090565b3b1561370a5790565b60405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606490fd5b8251909150156121f95750805190602001fdfea2646970667358221220bee75bed9439f6459436becfb235df28be1665cb9ba905fa1d537b6d6bbabdee64736f6c63430008110033",
}

NitroAdjudicatorMetaData contains all meta data concerning the NitroAdjudicator contract.

Functions

func ConvertBindingsExitToExit

func ConvertBindingsExitToExit(e []ExitFormatSingleAssetExit) outcome.Exit

ConvertBindingsExitToExit converts the exit type returned from abigen bindings to an outcome.Exit

func ConvertBindingsSignatureToSignature

func ConvertBindingsSignatureToSignature(s INitroTypesSignature) state.Signature

ConvertBindingsSignatureToSignature converts the signature type returned from abigien bindings to a state.Signature

func ConvertBindingsSignaturesToSignatures

func ConvertBindingsSignaturesToSignatures(ss []INitroTypesSignature) []state.Signature

ConvertBindingsSignatureToSignature converts a slice of the signature type returned from abigien bindings to a []state.Signature

func SignChallengeMessage

func SignChallengeMessage(s state.State, privateKey []byte) (state.Signature, error)

SignChallengeMessage generates the special signature required to launch a challenge. This is used to prevent non-participants from launching challenges.

Types

type ExitFormatAllocation

type ExitFormatAllocation struct {
	Destination    [32]byte
	Amount         *big.Int
	AllocationType uint8
	Metadata       []byte
}

ExitFormatAllocation is an auto generated low-level Go binding around an user-defined struct.

type ExitFormatAssetMetadata

type ExitFormatAssetMetadata struct {
	AssetType uint8
	Metadata  []byte
}

ExitFormatAssetMetadata is an auto generated low-level Go binding around an user-defined struct.

type ExitFormatSingleAssetExit

type ExitFormatSingleAssetExit struct {
	Asset         common.Address
	AssetMetadata ExitFormatAssetMetadata
	Allocations   []ExitFormatAllocation
}

ExitFormatSingleAssetExit is an auto generated low-level Go binding around an user-defined struct.

type IMultiAssetHolderReclaimArgs

type IMultiAssetHolderReclaimArgs struct {
	SourceChannelId       [32]byte
	SourceStateHash       [32]byte
	SourceOutcomeBytes    []byte
	SourceAssetIndex      *big.Int
	IndexOfTargetInSource *big.Int
	TargetStateHash       [32]byte
	TargetOutcomeBytes    []byte
	TargetAssetIndex      *big.Int
}

IMultiAssetHolderReclaimArgs is an auto generated low-level Go binding around an user-defined struct.

type INitroTypesFixedPart

type INitroTypesFixedPart struct {
	Participants      []common.Address
	ChannelNonce      uint64
	AppDefinition     common.Address
	ChallengeDuration *big.Int
}

INitroTypesFixedPart is an auto generated low-level Go binding around an user-defined struct.

func ConvertFixedPart

func ConvertFixedPart(fp state.FixedPart) INitroTypesFixedPart

type INitroTypesSignature

type INitroTypesSignature struct {
	V uint8
	R [32]byte
	S [32]byte
}

INitroTypesSignature is an auto generated low-level Go binding around an user-defined struct.

func ConvertSignature

func ConvertSignature(s nc.Signature) INitroTypesSignature

type INitroTypesSignedVariablePart

type INitroTypesSignedVariablePart struct {
	VariablePart INitroTypesVariablePart
	Sigs         []INitroTypesSignature
}

INitroTypesSignedVariablePart is an auto generated low-level Go binding around an user-defined struct.

func ConvertSignedStatesToProof

func ConvertSignedStatesToProof(ss []state.SignedState) []INitroTypesSignedVariablePart

type INitroTypesVariablePart

type INitroTypesVariablePart struct {
	Outcome []ExitFormatSingleAssetExit
	AppData []byte
	TurnNum *big.Int
	IsFinal bool
}

INitroTypesVariablePart is an auto generated low-level Go binding around an user-defined struct.

type NitroAdjudicator

type NitroAdjudicator struct {
	NitroAdjudicatorCaller     // Read-only binding to the contract
	NitroAdjudicatorTransactor // Write-only binding to the contract
	NitroAdjudicatorFilterer   // Log filterer for contract events
}

NitroAdjudicator is an auto generated Go binding around an Ethereum contract.

func DeployNitroAdjudicator

func DeployNitroAdjudicator(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *NitroAdjudicator, error)

DeployNitroAdjudicator deploys a new Ethereum contract, binding an instance of NitroAdjudicator to it.

func NewNitroAdjudicator

func NewNitroAdjudicator(address common.Address, backend bind.ContractBackend) (*NitroAdjudicator, error)

NewNitroAdjudicator creates a new instance of NitroAdjudicator, bound to a specific deployed contract.

type NitroAdjudicatorAllocationUpdated

type NitroAdjudicatorAllocationUpdated struct {
	ChannelId       [32]byte
	AssetIndex      *big.Int
	InitialHoldings *big.Int
	FinalHoldings   *big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

NitroAdjudicatorAllocationUpdated represents a AllocationUpdated event raised by the NitroAdjudicator contract.

type NitroAdjudicatorAllocationUpdatedIterator

type NitroAdjudicatorAllocationUpdatedIterator struct {
	Event *NitroAdjudicatorAllocationUpdated // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

NitroAdjudicatorAllocationUpdatedIterator is returned from FilterAllocationUpdated and is used to iterate over the raw logs and unpacked data for AllocationUpdated events raised by the NitroAdjudicator contract.

func (*NitroAdjudicatorAllocationUpdatedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*NitroAdjudicatorAllocationUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NitroAdjudicatorAllocationUpdatedIterator) Next

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.

type NitroAdjudicatorCaller

type NitroAdjudicatorCaller struct {
	// contains filtered or unexported fields
}

NitroAdjudicatorCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewNitroAdjudicatorCaller

func NewNitroAdjudicatorCaller(address common.Address, caller bind.ContractCaller) (*NitroAdjudicatorCaller, error)

NewNitroAdjudicatorCaller creates a new read-only instance of NitroAdjudicator, bound to a specific deployed contract.

func (*NitroAdjudicatorCaller) ComputeReclaimEffects

func (_NitroAdjudicator *NitroAdjudicatorCaller) ComputeReclaimEffects(opts *bind.CallOpts, sourceAllocations []ExitFormatAllocation, targetAllocations []ExitFormatAllocation, indexOfTargetInSource *big.Int) ([]ExitFormatAllocation, error)

ComputeReclaimEffects is a free data retrieval call binding the contract method 0x566d54c6.

Solidity: function compute_reclaim_effects((bytes32,uint256,uint8,bytes)[] sourceAllocations, (bytes32,uint256,uint8,bytes)[] targetAllocations, uint256 indexOfTargetInSource) pure returns((bytes32,uint256,uint8,bytes)[])

func (*NitroAdjudicatorCaller) ComputeTransferEffectsAndInteractions

func (_NitroAdjudicator *NitroAdjudicatorCaller) ComputeTransferEffectsAndInteractions(opts *bind.CallOpts, initialHoldings *big.Int, allocations []ExitFormatAllocation, indices []*big.Int) (struct {
	NewAllocations     []ExitFormatAllocation
	AllocatesOnlyZeros bool
	ExitAllocations    []ExitFormatAllocation
	TotalPayouts       *big.Int
}, error)

ComputeTransferEffectsAndInteractions is a free data retrieval call binding the contract method 0x11e9f178.

Solidity: function compute_transfer_effects_and_interactions(uint256 initialHoldings, (bytes32,uint256,uint8,bytes)[] allocations, uint256[] indices) pure returns((bytes32,uint256,uint8,bytes)[] newAllocations, bool allocatesOnlyZeros, (bytes32,uint256,uint8,bytes)[] exitAllocations, uint256 totalPayouts)

func (*NitroAdjudicatorCaller) Holdings

func (_NitroAdjudicator *NitroAdjudicatorCaller) Holdings(opts *bind.CallOpts, arg0 common.Address, arg1 [32]byte) (*big.Int, error)

Holdings is a free data retrieval call binding the contract method 0x166e56cd.

Solidity: function holdings(address , bytes32 ) view returns(uint256)

func (*NitroAdjudicatorCaller) StateIsSupported

func (_NitroAdjudicator *NitroAdjudicatorCaller) StateIsSupported(opts *bind.CallOpts, fixedPart INitroTypesFixedPart, proof []INitroTypesSignedVariablePart, candidate INitroTypesSignedVariablePart) (bool, string, error)

StateIsSupported is a free data retrieval call binding the contract method 0x5685b7dc.

Solidity: function stateIsSupported((address[],uint64,address,uint48) fixedPart, (((address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[],bytes,uint48,bool),(uint8,bytes32,bytes32)[])[] proof, (((address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[],bytes,uint48,bool),(uint8,bytes32,bytes32)[]) candidate) view returns(bool, string)

func (*NitroAdjudicatorCaller) StatusOf

func (_NitroAdjudicator *NitroAdjudicatorCaller) StatusOf(opts *bind.CallOpts, arg0 [32]byte) ([32]byte, error)

StatusOf is a free data retrieval call binding the contract method 0xc7df14e2.

Solidity: function statusOf(bytes32 ) view returns(bytes32)

func (*NitroAdjudicatorCaller) UnpackStatus

func (_NitroAdjudicator *NitroAdjudicatorCaller) UnpackStatus(opts *bind.CallOpts, channelId [32]byte) (struct {
	TurnNumRecord *big.Int
	FinalizesAt   *big.Int
	Fingerprint   *big.Int
}, error)

UnpackStatus is a free data retrieval call binding the contract method 0x552cfa50.

Solidity: function unpackStatus(bytes32 channelId) view returns(uint48 turnNumRecord, uint48 finalizesAt, uint160 fingerprint)

type NitroAdjudicatorCallerRaw

type NitroAdjudicatorCallerRaw struct {
	Contract *NitroAdjudicatorCaller // Generic read-only contract binding to access the raw methods on
}

NitroAdjudicatorCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*NitroAdjudicatorCallerRaw) Call

func (_NitroAdjudicator *NitroAdjudicatorCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

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.

type NitroAdjudicatorCallerSession

type NitroAdjudicatorCallerSession struct {
	Contract *NitroAdjudicatorCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts           // Call options to use throughout this session
}

NitroAdjudicatorCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*NitroAdjudicatorCallerSession) ComputeReclaimEffects

func (_NitroAdjudicator *NitroAdjudicatorCallerSession) ComputeReclaimEffects(sourceAllocations []ExitFormatAllocation, targetAllocations []ExitFormatAllocation, indexOfTargetInSource *big.Int) ([]ExitFormatAllocation, error)

ComputeReclaimEffects is a free data retrieval call binding the contract method 0x566d54c6.

Solidity: function compute_reclaim_effects((bytes32,uint256,uint8,bytes)[] sourceAllocations, (bytes32,uint256,uint8,bytes)[] targetAllocations, uint256 indexOfTargetInSource) pure returns((bytes32,uint256,uint8,bytes)[])

func (*NitroAdjudicatorCallerSession) ComputeTransferEffectsAndInteractions

func (_NitroAdjudicator *NitroAdjudicatorCallerSession) ComputeTransferEffectsAndInteractions(initialHoldings *big.Int, allocations []ExitFormatAllocation, indices []*big.Int) (struct {
	NewAllocations     []ExitFormatAllocation
	AllocatesOnlyZeros bool
	ExitAllocations    []ExitFormatAllocation
	TotalPayouts       *big.Int
}, error)

ComputeTransferEffectsAndInteractions is a free data retrieval call binding the contract method 0x11e9f178.

Solidity: function compute_transfer_effects_and_interactions(uint256 initialHoldings, (bytes32,uint256,uint8,bytes)[] allocations, uint256[] indices) pure returns((bytes32,uint256,uint8,bytes)[] newAllocations, bool allocatesOnlyZeros, (bytes32,uint256,uint8,bytes)[] exitAllocations, uint256 totalPayouts)

func (*NitroAdjudicatorCallerSession) Holdings

func (_NitroAdjudicator *NitroAdjudicatorCallerSession) Holdings(arg0 common.Address, arg1 [32]byte) (*big.Int, error)

Holdings is a free data retrieval call binding the contract method 0x166e56cd.

Solidity: function holdings(address , bytes32 ) view returns(uint256)

func (*NitroAdjudicatorCallerSession) StateIsSupported

func (_NitroAdjudicator *NitroAdjudicatorCallerSession) StateIsSupported(fixedPart INitroTypesFixedPart, proof []INitroTypesSignedVariablePart, candidate INitroTypesSignedVariablePart) (bool, string, error)

StateIsSupported is a free data retrieval call binding the contract method 0x5685b7dc.

Solidity: function stateIsSupported((address[],uint64,address,uint48) fixedPart, (((address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[],bytes,uint48,bool),(uint8,bytes32,bytes32)[])[] proof, (((address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[],bytes,uint48,bool),(uint8,bytes32,bytes32)[]) candidate) view returns(bool, string)

func (*NitroAdjudicatorCallerSession) StatusOf

func (_NitroAdjudicator *NitroAdjudicatorCallerSession) StatusOf(arg0 [32]byte) ([32]byte, error)

StatusOf is a free data retrieval call binding the contract method 0xc7df14e2.

Solidity: function statusOf(bytes32 ) view returns(bytes32)

func (*NitroAdjudicatorCallerSession) UnpackStatus

func (_NitroAdjudicator *NitroAdjudicatorCallerSession) UnpackStatus(channelId [32]byte) (struct {
	TurnNumRecord *big.Int
	FinalizesAt   *big.Int
	Fingerprint   *big.Int
}, error)

UnpackStatus is a free data retrieval call binding the contract method 0x552cfa50.

Solidity: function unpackStatus(bytes32 channelId) view returns(uint48 turnNumRecord, uint48 finalizesAt, uint160 fingerprint)

type NitroAdjudicatorChallengeCleared

type NitroAdjudicatorChallengeCleared struct {
	ChannelId        [32]byte
	NewTurnNumRecord *big.Int
	Raw              types.Log // Blockchain specific contextual infos
}

NitroAdjudicatorChallengeCleared represents a ChallengeCleared event raised by the NitroAdjudicator contract.

type NitroAdjudicatorChallengeClearedIterator

type NitroAdjudicatorChallengeClearedIterator struct {
	Event *NitroAdjudicatorChallengeCleared // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

NitroAdjudicatorChallengeClearedIterator is returned from FilterChallengeCleared and is used to iterate over the raw logs and unpacked data for ChallengeCleared events raised by the NitroAdjudicator contract.

func (*NitroAdjudicatorChallengeClearedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*NitroAdjudicatorChallengeClearedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NitroAdjudicatorChallengeClearedIterator) Next

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.

type NitroAdjudicatorChallengeRegistered

type NitroAdjudicatorChallengeRegistered struct {
	ChannelId   [32]byte
	FinalizesAt *big.Int
	Proof       []INitroTypesSignedVariablePart
	Candidate   INitroTypesSignedVariablePart
	Raw         types.Log // Blockchain specific contextual infos
}

NitroAdjudicatorChallengeRegistered represents a ChallengeRegistered event raised by the NitroAdjudicator contract.

type NitroAdjudicatorChallengeRegisteredIterator

type NitroAdjudicatorChallengeRegisteredIterator struct {
	Event *NitroAdjudicatorChallengeRegistered // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

NitroAdjudicatorChallengeRegisteredIterator is returned from FilterChallengeRegistered and is used to iterate over the raw logs and unpacked data for ChallengeRegistered events raised by the NitroAdjudicator contract.

func (*NitroAdjudicatorChallengeRegisteredIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*NitroAdjudicatorChallengeRegisteredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NitroAdjudicatorChallengeRegisteredIterator) Next

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.

type NitroAdjudicatorConcluded

type NitroAdjudicatorConcluded struct {
	ChannelId   [32]byte
	FinalizesAt *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

NitroAdjudicatorConcluded represents a Concluded event raised by the NitroAdjudicator contract.

type NitroAdjudicatorConcludedIterator

type NitroAdjudicatorConcludedIterator struct {
	Event *NitroAdjudicatorConcluded // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

NitroAdjudicatorConcludedIterator is returned from FilterConcluded and is used to iterate over the raw logs and unpacked data for Concluded events raised by the NitroAdjudicator contract.

func (*NitroAdjudicatorConcludedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*NitroAdjudicatorConcludedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NitroAdjudicatorConcludedIterator) Next

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.

type NitroAdjudicatorDeposited

type NitroAdjudicatorDeposited struct {
	Destination         [32]byte
	Asset               common.Address
	DestinationHoldings *big.Int
	Raw                 types.Log // Blockchain specific contextual infos
}

NitroAdjudicatorDeposited represents a Deposited event raised by the NitroAdjudicator contract.

type NitroAdjudicatorDepositedIterator

type NitroAdjudicatorDepositedIterator struct {
	Event *NitroAdjudicatorDeposited // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

NitroAdjudicatorDepositedIterator is returned from FilterDeposited and is used to iterate over the raw logs and unpacked data for Deposited events raised by the NitroAdjudicator contract.

func (*NitroAdjudicatorDepositedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*NitroAdjudicatorDepositedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NitroAdjudicatorDepositedIterator) Next

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.

type NitroAdjudicatorFilterer

type NitroAdjudicatorFilterer struct {
	// contains filtered or unexported fields
}

NitroAdjudicatorFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewNitroAdjudicatorFilterer

func NewNitroAdjudicatorFilterer(address common.Address, filterer bind.ContractFilterer) (*NitroAdjudicatorFilterer, error)

NewNitroAdjudicatorFilterer creates a new log filterer instance of NitroAdjudicator, bound to a specific deployed contract.

func (*NitroAdjudicatorFilterer) FilterAllocationUpdated

func (_NitroAdjudicator *NitroAdjudicatorFilterer) FilterAllocationUpdated(opts *bind.FilterOpts, channelId [][32]byte) (*NitroAdjudicatorAllocationUpdatedIterator, error)

FilterAllocationUpdated is a free log retrieval operation binding the contract event 0xc36da2054c5669d6dac211b7366d59f2d369151c21edf4940468614b449e0b9a.

Solidity: event AllocationUpdated(bytes32 indexed channelId, uint256 assetIndex, uint256 initialHoldings, uint256 finalHoldings)

func (*NitroAdjudicatorFilterer) FilterChallengeCleared

func (_NitroAdjudicator *NitroAdjudicatorFilterer) FilterChallengeCleared(opts *bind.FilterOpts, channelId [][32]byte) (*NitroAdjudicatorChallengeClearedIterator, error)

FilterChallengeCleared is a free log retrieval operation binding the contract event 0x07da0a0674fb921e484018c8b81d80e292745e5d8ed134b580c8b9c631c5e9e0.

Solidity: event ChallengeCleared(bytes32 indexed channelId, uint48 newTurnNumRecord)

func (*NitroAdjudicatorFilterer) FilterChallengeRegistered

func (_NitroAdjudicator *NitroAdjudicatorFilterer) FilterChallengeRegistered(opts *bind.FilterOpts, channelId [][32]byte) (*NitroAdjudicatorChallengeRegisteredIterator, error)

FilterChallengeRegistered is a free log retrieval operation binding the contract event 0x0aa12461ee6c137332989aa12cec79f4772ab2c1a8732a382aada7e9f3ec9d34.

Solidity: event ChallengeRegistered(bytes32 indexed channelId, uint48 finalizesAt, (((address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[],bytes,uint48,bool),(uint8,bytes32,bytes32)[])[] proof, (((address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[],bytes,uint48,bool),(uint8,bytes32,bytes32)[]) candidate)

func (*NitroAdjudicatorFilterer) FilterConcluded

func (_NitroAdjudicator *NitroAdjudicatorFilterer) FilterConcluded(opts *bind.FilterOpts, channelId [][32]byte) (*NitroAdjudicatorConcludedIterator, error)

FilterConcluded is a free log retrieval operation binding the contract event 0x4f465027a3d06ea73dd12be0f5c5fc0a34e21f19d6eaed4834a7a944edabc901.

Solidity: event Concluded(bytes32 indexed channelId, uint48 finalizesAt)

func (*NitroAdjudicatorFilterer) FilterDeposited

func (_NitroAdjudicator *NitroAdjudicatorFilterer) FilterDeposited(opts *bind.FilterOpts, destination [][32]byte) (*NitroAdjudicatorDepositedIterator, error)

FilterDeposited is a free log retrieval operation binding the contract event 0x87d4c0b5e30d6808bc8a94ba1c4d839b29d664151551a31753387ee9ef48429b.

Solidity: event Deposited(bytes32 indexed destination, address asset, uint256 destinationHoldings)

func (*NitroAdjudicatorFilterer) FilterReclaimed

func (_NitroAdjudicator *NitroAdjudicatorFilterer) FilterReclaimed(opts *bind.FilterOpts, channelId [][32]byte) (*NitroAdjudicatorReclaimedIterator, error)

FilterReclaimed is a free log retrieval operation binding the contract event 0x4d3754632451ebba9812a9305e7bca17b67a17186a5cff93d2e9ae1b01e3d27b.

Solidity: event Reclaimed(bytes32 indexed channelId, uint256 assetIndex)

func (*NitroAdjudicatorFilterer) ParseAllocationUpdated

func (_NitroAdjudicator *NitroAdjudicatorFilterer) ParseAllocationUpdated(log types.Log) (*NitroAdjudicatorAllocationUpdated, error)

ParseAllocationUpdated is a log parse operation binding the contract event 0xc36da2054c5669d6dac211b7366d59f2d369151c21edf4940468614b449e0b9a.

Solidity: event AllocationUpdated(bytes32 indexed channelId, uint256 assetIndex, uint256 initialHoldings, uint256 finalHoldings)

func (*NitroAdjudicatorFilterer) ParseChallengeCleared

func (_NitroAdjudicator *NitroAdjudicatorFilterer) ParseChallengeCleared(log types.Log) (*NitroAdjudicatorChallengeCleared, error)

ParseChallengeCleared is a log parse operation binding the contract event 0x07da0a0674fb921e484018c8b81d80e292745e5d8ed134b580c8b9c631c5e9e0.

Solidity: event ChallengeCleared(bytes32 indexed channelId, uint48 newTurnNumRecord)

func (*NitroAdjudicatorFilterer) ParseChallengeRegistered

func (_NitroAdjudicator *NitroAdjudicatorFilterer) ParseChallengeRegistered(log types.Log) (*NitroAdjudicatorChallengeRegistered, error)

ParseChallengeRegistered is a log parse operation binding the contract event 0x0aa12461ee6c137332989aa12cec79f4772ab2c1a8732a382aada7e9f3ec9d34.

Solidity: event ChallengeRegistered(bytes32 indexed channelId, uint48 finalizesAt, (((address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[],bytes,uint48,bool),(uint8,bytes32,bytes32)[])[] proof, (((address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[],bytes,uint48,bool),(uint8,bytes32,bytes32)[]) candidate)

func (*NitroAdjudicatorFilterer) ParseConcluded

func (_NitroAdjudicator *NitroAdjudicatorFilterer) ParseConcluded(log types.Log) (*NitroAdjudicatorConcluded, error)

ParseConcluded is a log parse operation binding the contract event 0x4f465027a3d06ea73dd12be0f5c5fc0a34e21f19d6eaed4834a7a944edabc901.

Solidity: event Concluded(bytes32 indexed channelId, uint48 finalizesAt)

func (*NitroAdjudicatorFilterer) ParseDeposited

func (_NitroAdjudicator *NitroAdjudicatorFilterer) ParseDeposited(log types.Log) (*NitroAdjudicatorDeposited, error)

ParseDeposited is a log parse operation binding the contract event 0x87d4c0b5e30d6808bc8a94ba1c4d839b29d664151551a31753387ee9ef48429b.

Solidity: event Deposited(bytes32 indexed destination, address asset, uint256 destinationHoldings)

func (*NitroAdjudicatorFilterer) ParseReclaimed

func (_NitroAdjudicator *NitroAdjudicatorFilterer) ParseReclaimed(log types.Log) (*NitroAdjudicatorReclaimed, error)

ParseReclaimed is a log parse operation binding the contract event 0x4d3754632451ebba9812a9305e7bca17b67a17186a5cff93d2e9ae1b01e3d27b.

Solidity: event Reclaimed(bytes32 indexed channelId, uint256 assetIndex)

func (*NitroAdjudicatorFilterer) WatchAllocationUpdated

func (_NitroAdjudicator *NitroAdjudicatorFilterer) WatchAllocationUpdated(opts *bind.WatchOpts, sink chan<- *NitroAdjudicatorAllocationUpdated, channelId [][32]byte) (event.Subscription, error)

WatchAllocationUpdated is a free log subscription operation binding the contract event 0xc36da2054c5669d6dac211b7366d59f2d369151c21edf4940468614b449e0b9a.

Solidity: event AllocationUpdated(bytes32 indexed channelId, uint256 assetIndex, uint256 initialHoldings, uint256 finalHoldings)

func (*NitroAdjudicatorFilterer) WatchChallengeCleared

func (_NitroAdjudicator *NitroAdjudicatorFilterer) WatchChallengeCleared(opts *bind.WatchOpts, sink chan<- *NitroAdjudicatorChallengeCleared, channelId [][32]byte) (event.Subscription, error)

WatchChallengeCleared is a free log subscription operation binding the contract event 0x07da0a0674fb921e484018c8b81d80e292745e5d8ed134b580c8b9c631c5e9e0.

Solidity: event ChallengeCleared(bytes32 indexed channelId, uint48 newTurnNumRecord)

func (*NitroAdjudicatorFilterer) WatchChallengeRegistered

func (_NitroAdjudicator *NitroAdjudicatorFilterer) WatchChallengeRegistered(opts *bind.WatchOpts, sink chan<- *NitroAdjudicatorChallengeRegistered, channelId [][32]byte) (event.Subscription, error)

WatchChallengeRegistered is a free log subscription operation binding the contract event 0x0aa12461ee6c137332989aa12cec79f4772ab2c1a8732a382aada7e9f3ec9d34.

Solidity: event ChallengeRegistered(bytes32 indexed channelId, uint48 finalizesAt, (((address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[],bytes,uint48,bool),(uint8,bytes32,bytes32)[])[] proof, (((address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[],bytes,uint48,bool),(uint8,bytes32,bytes32)[]) candidate)

func (*NitroAdjudicatorFilterer) WatchConcluded

func (_NitroAdjudicator *NitroAdjudicatorFilterer) WatchConcluded(opts *bind.WatchOpts, sink chan<- *NitroAdjudicatorConcluded, channelId [][32]byte) (event.Subscription, error)

WatchConcluded is a free log subscription operation binding the contract event 0x4f465027a3d06ea73dd12be0f5c5fc0a34e21f19d6eaed4834a7a944edabc901.

Solidity: event Concluded(bytes32 indexed channelId, uint48 finalizesAt)

func (*NitroAdjudicatorFilterer) WatchDeposited

func (_NitroAdjudicator *NitroAdjudicatorFilterer) WatchDeposited(opts *bind.WatchOpts, sink chan<- *NitroAdjudicatorDeposited, destination [][32]byte) (event.Subscription, error)

WatchDeposited is a free log subscription operation binding the contract event 0x87d4c0b5e30d6808bc8a94ba1c4d839b29d664151551a31753387ee9ef48429b.

Solidity: event Deposited(bytes32 indexed destination, address asset, uint256 destinationHoldings)

func (*NitroAdjudicatorFilterer) WatchReclaimed

func (_NitroAdjudicator *NitroAdjudicatorFilterer) WatchReclaimed(opts *bind.WatchOpts, sink chan<- *NitroAdjudicatorReclaimed, channelId [][32]byte) (event.Subscription, error)

WatchReclaimed is a free log subscription operation binding the contract event 0x4d3754632451ebba9812a9305e7bca17b67a17186a5cff93d2e9ae1b01e3d27b.

Solidity: event Reclaimed(bytes32 indexed channelId, uint256 assetIndex)

type NitroAdjudicatorRaw

type NitroAdjudicatorRaw struct {
	Contract *NitroAdjudicator // Generic contract binding to access the raw methods on
}

NitroAdjudicatorRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*NitroAdjudicatorRaw) Call

func (_NitroAdjudicator *NitroAdjudicatorRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

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 (*NitroAdjudicatorRaw) Transact

func (_NitroAdjudicator *NitroAdjudicatorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*NitroAdjudicatorRaw) Transfer

func (_NitroAdjudicator *NitroAdjudicatorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type NitroAdjudicatorReclaimed

type NitroAdjudicatorReclaimed struct {
	ChannelId  [32]byte
	AssetIndex *big.Int
	Raw        types.Log // Blockchain specific contextual infos
}

NitroAdjudicatorReclaimed represents a Reclaimed event raised by the NitroAdjudicator contract.

type NitroAdjudicatorReclaimedIterator

type NitroAdjudicatorReclaimedIterator struct {
	Event *NitroAdjudicatorReclaimed // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

NitroAdjudicatorReclaimedIterator is returned from FilterReclaimed and is used to iterate over the raw logs and unpacked data for Reclaimed events raised by the NitroAdjudicator contract.

func (*NitroAdjudicatorReclaimedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*NitroAdjudicatorReclaimedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NitroAdjudicatorReclaimedIterator) Next

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.

type NitroAdjudicatorSession

type NitroAdjudicatorSession struct {
	Contract     *NitroAdjudicator // 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
}

NitroAdjudicatorSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*NitroAdjudicatorSession) Challenge

func (_NitroAdjudicator *NitroAdjudicatorSession) Challenge(fixedPart INitroTypesFixedPart, proof []INitroTypesSignedVariablePart, candidate INitroTypesSignedVariablePart, challengerSig INitroTypesSignature) (*types.Transaction, error)

Challenge is a paid mutator transaction binding the contract method 0x8286a060.

Solidity: function challenge((address[],uint64,address,uint48) fixedPart, (((address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[],bytes,uint48,bool),(uint8,bytes32,bytes32)[])[] proof, (((address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[],bytes,uint48,bool),(uint8,bytes32,bytes32)[]) candidate, (uint8,bytes32,bytes32) challengerSig) returns()

func (*NitroAdjudicatorSession) Checkpoint

Checkpoint is a paid mutator transaction binding the contract method 0x6d2a9c92.

Solidity: function checkpoint((address[],uint64,address,uint48) fixedPart, (((address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[],bytes,uint48,bool),(uint8,bytes32,bytes32)[])[] proof, (((address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[],bytes,uint48,bool),(uint8,bytes32,bytes32)[]) candidate) returns()

func (*NitroAdjudicatorSession) ComputeReclaimEffects

func (_NitroAdjudicator *NitroAdjudicatorSession) ComputeReclaimEffects(sourceAllocations []ExitFormatAllocation, targetAllocations []ExitFormatAllocation, indexOfTargetInSource *big.Int) ([]ExitFormatAllocation, error)

ComputeReclaimEffects is a free data retrieval call binding the contract method 0x566d54c6.

Solidity: function compute_reclaim_effects((bytes32,uint256,uint8,bytes)[] sourceAllocations, (bytes32,uint256,uint8,bytes)[] targetAllocations, uint256 indexOfTargetInSource) pure returns((bytes32,uint256,uint8,bytes)[])

func (*NitroAdjudicatorSession) ComputeTransferEffectsAndInteractions

func (_NitroAdjudicator *NitroAdjudicatorSession) ComputeTransferEffectsAndInteractions(initialHoldings *big.Int, allocations []ExitFormatAllocation, indices []*big.Int) (struct {
	NewAllocations     []ExitFormatAllocation
	AllocatesOnlyZeros bool
	ExitAllocations    []ExitFormatAllocation
	TotalPayouts       *big.Int
}, error)

ComputeTransferEffectsAndInteractions is a free data retrieval call binding the contract method 0x11e9f178.

Solidity: function compute_transfer_effects_and_interactions(uint256 initialHoldings, (bytes32,uint256,uint8,bytes)[] allocations, uint256[] indices) pure returns((bytes32,uint256,uint8,bytes)[] newAllocations, bool allocatesOnlyZeros, (bytes32,uint256,uint8,bytes)[] exitAllocations, uint256 totalPayouts)

func (*NitroAdjudicatorSession) Conclude

func (_NitroAdjudicator *NitroAdjudicatorSession) Conclude(fixedPart INitroTypesFixedPart, candidate INitroTypesSignedVariablePart) (*types.Transaction, error)

Conclude is a paid mutator transaction binding the contract method 0xee049b50.

Solidity: function conclude((address[],uint64,address,uint48) fixedPart, (((address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[],bytes,uint48,bool),(uint8,bytes32,bytes32)[]) candidate) returns()

func (*NitroAdjudicatorSession) ConcludeAndTransferAllAssets

func (_NitroAdjudicator *NitroAdjudicatorSession) ConcludeAndTransferAllAssets(fixedPart INitroTypesFixedPart, candidate INitroTypesSignedVariablePart) (*types.Transaction, error)

ConcludeAndTransferAllAssets is a paid mutator transaction binding the contract method 0xec346235.

Solidity: function concludeAndTransferAllAssets((address[],uint64,address,uint48) fixedPart, (((address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[],bytes,uint48,bool),(uint8,bytes32,bytes32)[]) candidate) returns()

func (*NitroAdjudicatorSession) Deposit

func (_NitroAdjudicator *NitroAdjudicatorSession) Deposit(asset common.Address, channelId [32]byte, expectedHeld *big.Int, amount *big.Int) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0x2fb1d270.

Solidity: function deposit(address asset, bytes32 channelId, uint256 expectedHeld, uint256 amount) payable returns()

func (*NitroAdjudicatorSession) Holdings

func (_NitroAdjudicator *NitroAdjudicatorSession) Holdings(arg0 common.Address, arg1 [32]byte) (*big.Int, error)

Holdings is a free data retrieval call binding the contract method 0x166e56cd.

Solidity: function holdings(address , bytes32 ) view returns(uint256)

func (*NitroAdjudicatorSession) Reclaim

func (_NitroAdjudicator *NitroAdjudicatorSession) Reclaim(reclaimArgs IMultiAssetHolderReclaimArgs) (*types.Transaction, error)

Reclaim is a paid mutator transaction binding the contract method 0xd3c4e738.

Solidity: function reclaim((bytes32,bytes32,bytes,uint256,uint256,bytes32,bytes,uint256) reclaimArgs) returns()

func (*NitroAdjudicatorSession) StateIsSupported

func (_NitroAdjudicator *NitroAdjudicatorSession) StateIsSupported(fixedPart INitroTypesFixedPart, proof []INitroTypesSignedVariablePart, candidate INitroTypesSignedVariablePart) (bool, string, error)

StateIsSupported is a free data retrieval call binding the contract method 0x5685b7dc.

Solidity: function stateIsSupported((address[],uint64,address,uint48) fixedPart, (((address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[],bytes,uint48,bool),(uint8,bytes32,bytes32)[])[] proof, (((address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[],bytes,uint48,bool),(uint8,bytes32,bytes32)[]) candidate) view returns(bool, string)

func (*NitroAdjudicatorSession) StatusOf

func (_NitroAdjudicator *NitroAdjudicatorSession) StatusOf(arg0 [32]byte) ([32]byte, error)

StatusOf is a free data retrieval call binding the contract method 0xc7df14e2.

Solidity: function statusOf(bytes32 ) view returns(bytes32)

func (*NitroAdjudicatorSession) Transfer

func (_NitroAdjudicator *NitroAdjudicatorSession) Transfer(assetIndex *big.Int, fromChannelId [32]byte, outcomeBytes []byte, stateHash [32]byte, indices []*big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0x3033730e.

Solidity: function transfer(uint256 assetIndex, bytes32 fromChannelId, bytes outcomeBytes, bytes32 stateHash, uint256[] indices) returns()

func (*NitroAdjudicatorSession) TransferAllAssets

func (_NitroAdjudicator *NitroAdjudicatorSession) TransferAllAssets(channelId [32]byte, outcome []ExitFormatSingleAssetExit, stateHash [32]byte) (*types.Transaction, error)

TransferAllAssets is a paid mutator transaction binding the contract method 0x31afa0b4.

Solidity: function transferAllAssets(bytes32 channelId, (address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[] outcome, bytes32 stateHash) returns()

func (*NitroAdjudicatorSession) UnpackStatus

func (_NitroAdjudicator *NitroAdjudicatorSession) UnpackStatus(channelId [32]byte) (struct {
	TurnNumRecord *big.Int
	FinalizesAt   *big.Int
	Fingerprint   *big.Int
}, error)

UnpackStatus is a free data retrieval call binding the contract method 0x552cfa50.

Solidity: function unpackStatus(bytes32 channelId) view returns(uint48 turnNumRecord, uint48 finalizesAt, uint160 fingerprint)

type NitroAdjudicatorTransactor

type NitroAdjudicatorTransactor struct {
	// contains filtered or unexported fields
}

NitroAdjudicatorTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewNitroAdjudicatorTransactor

func NewNitroAdjudicatorTransactor(address common.Address, transactor bind.ContractTransactor) (*NitroAdjudicatorTransactor, error)

NewNitroAdjudicatorTransactor creates a new write-only instance of NitroAdjudicator, bound to a specific deployed contract.

func (*NitroAdjudicatorTransactor) Challenge

Challenge is a paid mutator transaction binding the contract method 0x8286a060.

Solidity: function challenge((address[],uint64,address,uint48) fixedPart, (((address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[],bytes,uint48,bool),(uint8,bytes32,bytes32)[])[] proof, (((address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[],bytes,uint48,bool),(uint8,bytes32,bytes32)[]) candidate, (uint8,bytes32,bytes32) challengerSig) returns()

func (*NitroAdjudicatorTransactor) Checkpoint

Checkpoint is a paid mutator transaction binding the contract method 0x6d2a9c92.

Solidity: function checkpoint((address[],uint64,address,uint48) fixedPart, (((address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[],bytes,uint48,bool),(uint8,bytes32,bytes32)[])[] proof, (((address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[],bytes,uint48,bool),(uint8,bytes32,bytes32)[]) candidate) returns()

func (*NitroAdjudicatorTransactor) Conclude

func (_NitroAdjudicator *NitroAdjudicatorTransactor) Conclude(opts *bind.TransactOpts, fixedPart INitroTypesFixedPart, candidate INitroTypesSignedVariablePart) (*types.Transaction, error)

Conclude is a paid mutator transaction binding the contract method 0xee049b50.

Solidity: function conclude((address[],uint64,address,uint48) fixedPart, (((address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[],bytes,uint48,bool),(uint8,bytes32,bytes32)[]) candidate) returns()

func (*NitroAdjudicatorTransactor) ConcludeAndTransferAllAssets

func (_NitroAdjudicator *NitroAdjudicatorTransactor) ConcludeAndTransferAllAssets(opts *bind.TransactOpts, fixedPart INitroTypesFixedPart, candidate INitroTypesSignedVariablePart) (*types.Transaction, error)

ConcludeAndTransferAllAssets is a paid mutator transaction binding the contract method 0xec346235.

Solidity: function concludeAndTransferAllAssets((address[],uint64,address,uint48) fixedPart, (((address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[],bytes,uint48,bool),(uint8,bytes32,bytes32)[]) candidate) returns()

func (*NitroAdjudicatorTransactor) Deposit

func (_NitroAdjudicator *NitroAdjudicatorTransactor) Deposit(opts *bind.TransactOpts, asset common.Address, channelId [32]byte, expectedHeld *big.Int, amount *big.Int) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0x2fb1d270.

Solidity: function deposit(address asset, bytes32 channelId, uint256 expectedHeld, uint256 amount) payable returns()

func (*NitroAdjudicatorTransactor) Reclaim

func (_NitroAdjudicator *NitroAdjudicatorTransactor) Reclaim(opts *bind.TransactOpts, reclaimArgs IMultiAssetHolderReclaimArgs) (*types.Transaction, error)

Reclaim is a paid mutator transaction binding the contract method 0xd3c4e738.

Solidity: function reclaim((bytes32,bytes32,bytes,uint256,uint256,bytes32,bytes,uint256) reclaimArgs) returns()

func (*NitroAdjudicatorTransactor) Transfer

func (_NitroAdjudicator *NitroAdjudicatorTransactor) Transfer(opts *bind.TransactOpts, assetIndex *big.Int, fromChannelId [32]byte, outcomeBytes []byte, stateHash [32]byte, indices []*big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0x3033730e.

Solidity: function transfer(uint256 assetIndex, bytes32 fromChannelId, bytes outcomeBytes, bytes32 stateHash, uint256[] indices) returns()

func (*NitroAdjudicatorTransactor) TransferAllAssets

func (_NitroAdjudicator *NitroAdjudicatorTransactor) TransferAllAssets(opts *bind.TransactOpts, channelId [32]byte, outcome []ExitFormatSingleAssetExit, stateHash [32]byte) (*types.Transaction, error)

TransferAllAssets is a paid mutator transaction binding the contract method 0x31afa0b4.

Solidity: function transferAllAssets(bytes32 channelId, (address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[] outcome, bytes32 stateHash) returns()

type NitroAdjudicatorTransactorRaw

type NitroAdjudicatorTransactorRaw struct {
	Contract *NitroAdjudicatorTransactor // Generic write-only contract binding to access the raw methods on
}

NitroAdjudicatorTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*NitroAdjudicatorTransactorRaw) Transact

func (_NitroAdjudicator *NitroAdjudicatorTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*NitroAdjudicatorTransactorRaw) Transfer

func (_NitroAdjudicator *NitroAdjudicatorTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type NitroAdjudicatorTransactorSession

type NitroAdjudicatorTransactorSession struct {
	Contract     *NitroAdjudicatorTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts           // Transaction auth options to use throughout this session
}

NitroAdjudicatorTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*NitroAdjudicatorTransactorSession) Challenge

Challenge is a paid mutator transaction binding the contract method 0x8286a060.

Solidity: function challenge((address[],uint64,address,uint48) fixedPart, (((address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[],bytes,uint48,bool),(uint8,bytes32,bytes32)[])[] proof, (((address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[],bytes,uint48,bool),(uint8,bytes32,bytes32)[]) candidate, (uint8,bytes32,bytes32) challengerSig) returns()

func (*NitroAdjudicatorTransactorSession) Checkpoint

Checkpoint is a paid mutator transaction binding the contract method 0x6d2a9c92.

Solidity: function checkpoint((address[],uint64,address,uint48) fixedPart, (((address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[],bytes,uint48,bool),(uint8,bytes32,bytes32)[])[] proof, (((address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[],bytes,uint48,bool),(uint8,bytes32,bytes32)[]) candidate) returns()

func (*NitroAdjudicatorTransactorSession) Conclude

Conclude is a paid mutator transaction binding the contract method 0xee049b50.

Solidity: function conclude((address[],uint64,address,uint48) fixedPart, (((address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[],bytes,uint48,bool),(uint8,bytes32,bytes32)[]) candidate) returns()

func (*NitroAdjudicatorTransactorSession) ConcludeAndTransferAllAssets

func (_NitroAdjudicator *NitroAdjudicatorTransactorSession) ConcludeAndTransferAllAssets(fixedPart INitroTypesFixedPart, candidate INitroTypesSignedVariablePart) (*types.Transaction, error)

ConcludeAndTransferAllAssets is a paid mutator transaction binding the contract method 0xec346235.

Solidity: function concludeAndTransferAllAssets((address[],uint64,address,uint48) fixedPart, (((address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[],bytes,uint48,bool),(uint8,bytes32,bytes32)[]) candidate) returns()

func (*NitroAdjudicatorTransactorSession) Deposit

func (_NitroAdjudicator *NitroAdjudicatorTransactorSession) Deposit(asset common.Address, channelId [32]byte, expectedHeld *big.Int, amount *big.Int) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0x2fb1d270.

Solidity: function deposit(address asset, bytes32 channelId, uint256 expectedHeld, uint256 amount) payable returns()

func (*NitroAdjudicatorTransactorSession) Reclaim

func (_NitroAdjudicator *NitroAdjudicatorTransactorSession) Reclaim(reclaimArgs IMultiAssetHolderReclaimArgs) (*types.Transaction, error)

Reclaim is a paid mutator transaction binding the contract method 0xd3c4e738.

Solidity: function reclaim((bytes32,bytes32,bytes,uint256,uint256,bytes32,bytes,uint256) reclaimArgs) returns()

func (*NitroAdjudicatorTransactorSession) Transfer

func (_NitroAdjudicator *NitroAdjudicatorTransactorSession) Transfer(assetIndex *big.Int, fromChannelId [32]byte, outcomeBytes []byte, stateHash [32]byte, indices []*big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0x3033730e.

Solidity: function transfer(uint256 assetIndex, bytes32 fromChannelId, bytes outcomeBytes, bytes32 stateHash, uint256[] indices) returns()

func (*NitroAdjudicatorTransactorSession) TransferAllAssets

func (_NitroAdjudicator *NitroAdjudicatorTransactorSession) TransferAllAssets(channelId [32]byte, outcome []ExitFormatSingleAssetExit, stateHash [32]byte) (*types.Transaction, error)

TransferAllAssets is a paid mutator transaction binding the contract method 0x31afa0b4.

Solidity: function transferAllAssets(bytes32 channelId, (address,(uint8,bytes),(bytes32,uint256,uint8,bytes)[])[] outcome, bytes32 stateHash) returns()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL