diff --git a/Makefile b/Makefile index b10b26b..fbad816 100644 --- a/Makefile +++ b/Makefile @@ -1,50 +1,33 @@ -# generate go files for all contracts -generate-contracts-all: generate-contracts-goerli generate-contracts-optimism - # generate go files for goerli net contracts -generate-contracts-goerli: generate-core-goerli generate-spot_market-goerli generate-perps_market-goerli generate-susdt-goerli - -# generate fo giles for optimism net contracts -generate-contracts-optimism: generate-core-optimism generate-spot_market-optimism +generate-contracts-andromeda: generate-core-andromeda generate-perps_market-andromeda generate-susdt-andromeda generate-forwarder-andromeda generate-erc7412-andromeda # generate all mocks mock-all: mock-service mock-events -# generate go file for SynthetixCore contract on goerli net -generate-core-goerli: - go run ./utils/getAbis/get-abis.go --get-mkdir ./Synthetix-Gitbook-v3/for-developers/abis/420-SynthetixCore.json ./contracts/coreGoerli - abigen --abi=./contracts/420-SynthetixCore.json --pkg=coreGoerli --out=./contracts/coreGoerli/contract.go - go run ./utils/getAbis/get-abis.go --rm ./contracts/420-SynthetixCore.json - -# generate go file for SpotMarket contract on goerli net -generate-spot_market-goerli: - go run ./utils/getAbis/get-abis.go --get-mkdir ./Synthetix-Gitbook-v3/for-developers/abis/420-SpotMarket.json ./contracts/spotMarketGoerli - abigen --abi=./contracts/420-SpotMarket.json --pkg=spotMarketGoerli --out=./contracts/spotMarketGoerli/contract.go - go run ./utils/getAbis/get-abis.go --rm ./contracts/420-SpotMarket.json - -# generate go file for PerpsMarket contract on goerli net -generate-perps_market-goerli: - go run ./utils/getAbis/get-abis.go --get-mkdir ./Synthetix-Gitbook-v3/for-developers/abis/420-PerpsMarket.json ./contracts/perpsMarketGoerli - abigen --abi=./contracts/420-PerpsMarket.json --pkg=perpsMarketGoerli --out=./contracts/perpsMarketGoerli/contract.go - go run ./utils/getAbis/get-abis.go --rm ./contracts/420-PerpsMarket.json - -# generate go file for snxUSDT contract on goerli net -generate-susdt-goerli: - go run ./utils/getAbis/get-abis.go --get-mkdir ./Synthetix-Gitbook-v3/for-developers/abis/420-snxUSDToken.json ./contracts/sUSDTGoerli - abigen --abi=./contracts/420-snxUSDToken.json --pkg=sUSDTGoerli --out=./contracts/sUSDTGoerli/contract.go - go run ./utils/getAbis/get-abis.go --rm ./contracts/420-snxUSDToken.json - -# generate go file for SynthetixCore contract on optimism net -generate-core-optimism: - go run ./utils/getAbis/get-abis.go --get-mkdir ./Synthetix-Gitbook-v3/for-developers/abis/10-SynthetixCore.json ./contracts/coreOptimism - abigen --abi=./contracts/10-SynthetixCore.json --pkg=coreOptimism --out=./contracts/coreOptimism/contract.go - go run ./utils/getAbis/get-abis.go --rm ./contracts/10-SynthetixCore.json - -# generate go file for SpotMarket contract on optimism net -generate-spot_market-optimism: - go run ./utils/getAbis/get-abis.go --get-mkdir ./Synthetix-Gitbook-v3/for-developers/abis/10-SpotMarket.json ./contracts/spotMarketOptimism - abigen --abi=./contracts/10-SpotMarket.json --pkg=spotMarketOptimism --out=./contracts/spotMarketOptimism/contract.go - go run ./utils/getAbis/get-abis.go --rm ./contracts/10-SpotMarket.json +# generate go file for SynthetixCore contract on andromeda net +generate-core-andromeda: + go run ./utils/getAbis/get-abis.go --get-mkdir ./Synthetix-Gitbook-v3/for-developers/abis/84531-andromeda-SynthetixCore.json ./contracts/core + abigen --abi=./contracts/84531-andromeda-SynthetixCore.json --pkg=core --out=./contracts/core/contract.go + +# generate go file for PerpsMarket contract on andromeda net +generate-perps_market-andromeda: + go run ./utils/getAbis/get-abis.go --get-mkdir ./Synthetix-Gitbook-v3/for-developers/abis/84531-andromeda-PerpsMarket.json ./contracts/perpsMarket + abigen --abi=./contracts/84531-andromeda-PerpsMarket.json --pkg=perpsMarket --out=./contracts/perpsMarket/contract.go + +# generate go file for snxUSDT contract on andromeda net +generate-susdt-andromeda: + go run ./utils/getAbis/get-abis.go --get-mkdir ./Synthetix-Gitbook-v3/for-developers/abis/84531-andromeda-snxUSDToken.json ./contracts/sUSDT + abigen --abi=./contracts/84531-andromeda-snxUSDToken.json --pkg=sUSDT --out=./contracts/sUSDT/contract.go + +# generate go file for TrustedMulticallForwarder contract on andromeda net +generate-forwarder-andromeda: + go run ./utils/getAbis/get-abis.go --get-mkdir ./additional-abis/84531-TrustedMulticallForwarder.json ./contracts/forwarder + abigen --abi=./contracts/84531-TrustedMulticallForwarder.json --pkg=forwarder --out=./contracts/forwarder/contract.go + +# generate go file for ERC7412 contract on andromeda net +generate-erc7412-andromeda: + go run ./utils/getAbis/get-abis.go --get-mkdir ./additional-abis/84531-ERC7412.json ./contracts/ERC7412 + abigen --abi=./contracts/84531-ERC7412.json --pkg=erc7412 --out=./contracts/ERC7412/contract.go # update Synthetix-Gitbook-v3 subtree update-subtree: diff --git a/additional-abis/84531-ERC7412.json b/additional-abis/84531-ERC7412.json new file mode 100644 index 0000000..23ef67d --- /dev/null +++ b/additional-abis/84531-ERC7412.json @@ -0,0 +1,58 @@ +{ + "address": "0x9849832a1d8274aaeDb1112ad9686413461e7101", + "abi": [ + { + "inputs": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "FeeRequired", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "oracleContract", + "type": "address" + }, + { + "internalType": "bytes", + "name": "oracleQuery", + "type": "bytes" + } + ], + "name": "OracleDataRequired", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "signedOffchainData", + "type": "bytes" + } + ], + "name": "fulfillOracleQuery", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [], + "name": "oracleId", + "outputs": [ + { + "internalType": "bytes32", + "name": "oracleId", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + } + ] +} \ No newline at end of file diff --git a/additional-abis/84531-TrustedMulticallForwarder.json b/additional-abis/84531-TrustedMulticallForwarder.json new file mode 100644 index 0000000..f9a554f --- /dev/null +++ b/additional-abis/84531-TrustedMulticallForwarder.json @@ -0,0 +1,650 @@ +{ + "address": "0xAE788aaf52780741E12BF79Ad684B91Bb0EF4D92", + "abi": [ + { + "inputs": [], + "name": "InvalidShortString", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "str", + "type": "string" + } + ], + "name": "StringTooLong", + "type": "error" + }, + { + "anonymous": false, + "inputs": [], + "name": "EIP712DomainChanged", + "type": "event" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "address", + "name": "target", + "type": "address" + }, + { + "internalType": "bytes", + "name": "callData", + "type": "bytes" + } + ], + "internalType": "struct TrustedMulticallForwarder.Call[]", + "name": "calls", + "type": "tuple[]" + } + ], + "name": "aggregate", + "outputs": [ + { + "internalType": "uint256", + "name": "blockNumber", + "type": "uint256" + }, + { + "internalType": "bytes[]", + "name": "returnData", + "type": "bytes[]" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "address", + "name": "target", + "type": "address" + }, + { + "internalType": "bool", + "name": "allowFailure", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "callData", + "type": "bytes" + } + ], + "internalType": "struct TrustedMulticallForwarder.Call3[]", + "name": "calls", + "type": "tuple[]" + } + ], + "name": "aggregate3", + "outputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "success", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "returnData", + "type": "bytes" + } + ], + "internalType": "struct TrustedMulticallForwarder.Result[]", + "name": "returnData", + "type": "tuple[]" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "address", + "name": "target", + "type": "address" + }, + { + "internalType": "bool", + "name": "allowFailure", + "type": "bool" + }, + { + "internalType": "uint256", + "name": "value", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "callData", + "type": "bytes" + } + ], + "internalType": "struct TrustedMulticallForwarder.Call3Value[]", + "name": "calls", + "type": "tuple[]" + } + ], + "name": "aggregate3Value", + "outputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "success", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "returnData", + "type": "bytes" + } + ], + "internalType": "struct TrustedMulticallForwarder.Result[]", + "name": "returnData", + "type": "tuple[]" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "address", + "name": "target", + "type": "address" + }, + { + "internalType": "bytes", + "name": "callData", + "type": "bytes" + } + ], + "internalType": "struct TrustedMulticallForwarder.Call[]", + "name": "calls", + "type": "tuple[]" + } + ], + "name": "blockAndAggregate", + "outputs": [ + { + "internalType": "uint256", + "name": "blockNumber", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "blockHash", + "type": "bytes32" + }, + { + "components": [ + { + "internalType": "bool", + "name": "success", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "returnData", + "type": "bytes" + } + ], + "internalType": "struct TrustedMulticallForwarder.Result[]", + "name": "returnData", + "type": "tuple[]" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [], + "name": "eip712Domain", + "outputs": [ + { + "internalType": "bytes1", + "name": "fields", + "type": "bytes1" + }, + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "string", + "name": "version", + "type": "string" + }, + { + "internalType": "uint256", + "name": "chainId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "verifyingContract", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "salt", + "type": "bytes32" + }, + { + "internalType": "uint256[]", + "name": "extensions", + "type": "uint256[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "value", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "gas", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "nonce", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "internalType": "struct MinimalForwarder.ForwardRequest", + "name": "req", + "type": "tuple" + }, + { + "internalType": "bytes", + "name": "signature", + "type": "bytes" + } + ], + "name": "execute", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [], + "name": "getBasefee", + "outputs": [ + { + "internalType": "uint256", + "name": "basefee", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "blockNumber", + "type": "uint256" + } + ], + "name": "getBlockHash", + "outputs": [ + { + "internalType": "bytes32", + "name": "blockHash", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getBlockNumber", + "outputs": [ + { + "internalType": "uint256", + "name": "blockNumber", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getChainId", + "outputs": [ + { + "internalType": "uint256", + "name": "chainid", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getCurrentBlockCoinbase", + "outputs": [ + { + "internalType": "address", + "name": "coinbase", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getCurrentBlockDifficulty", + "outputs": [ + { + "internalType": "uint256", + "name": "difficulty", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getCurrentBlockGasLimit", + "outputs": [ + { + "internalType": "uint256", + "name": "gaslimit", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getCurrentBlockTimestamp", + "outputs": [ + { + "internalType": "uint256", + "name": "timestamp", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "addr", + "type": "address" + } + ], + "name": "getEthBalance", + "outputs": [ + { + "internalType": "uint256", + "name": "balance", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getLastBlockHash", + "outputs": [ + { + "internalType": "bytes32", + "name": "blockHash", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + } + ], + "name": "getNonce", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bool", + "name": "requireSuccess", + "type": "bool" + }, + { + "components": [ + { + "internalType": "address", + "name": "target", + "type": "address" + }, + { + "internalType": "bytes", + "name": "callData", + "type": "bytes" + } + ], + "internalType": "struct TrustedMulticallForwarder.Call[]", + "name": "calls", + "type": "tuple[]" + } + ], + "name": "tryAggregate", + "outputs": [ + { + "components": [ + { + "internalType": "bool", + "name": "success", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "returnData", + "type": "bytes" + } + ], + "internalType": "struct TrustedMulticallForwarder.Result[]", + "name": "returnData", + "type": "tuple[]" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bool", + "name": "requireSuccess", + "type": "bool" + }, + { + "components": [ + { + "internalType": "address", + "name": "target", + "type": "address" + }, + { + "internalType": "bytes", + "name": "callData", + "type": "bytes" + } + ], + "internalType": "struct TrustedMulticallForwarder.Call[]", + "name": "calls", + "type": "tuple[]" + } + ], + "name": "tryBlockAndAggregate", + "outputs": [ + { + "internalType": "uint256", + "name": "blockNumber", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "blockHash", + "type": "bytes32" + }, + { + "components": [ + { + "internalType": "bool", + "name": "success", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "returnData", + "type": "bytes" + } + ], + "internalType": "struct TrustedMulticallForwarder.Result[]", + "name": "returnData", + "type": "tuple[]" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "value", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "gas", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "nonce", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "internalType": "struct MinimalForwarder.ForwardRequest", + "name": "req", + "type": "tuple" + }, + { + "internalType": "bytes", + "name": "signature", + "type": "bytes" + } + ], + "name": "verify", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + } + ], + "constructorArgs": [], + "linkedLibraries": {}, + "deployTxnHash": "0x16abe97c6ab9e1aef5b7ff1fd5a1714cfded24e1a995eed8351e93559eecff84", + "sourceName": "src/TrustedMulticallForwarder.sol", + "contractName": "TrustedMulticallForwarder", + "deployedOn": "contract.TrustedMulticallForwarder" +} \ No newline at end of file diff --git a/config/chainIDs.go b/config/chainIDs.go new file mode 100644 index 0000000..dfe60ad --- /dev/null +++ b/config/chainIDs.go @@ -0,0 +1,27 @@ +package config + +// ChainID is a chain id enum +type ChainID int + +const ( + OptimismGoerli ChainID = iota + BaseAndromeda +) + +var chainIDStrings = [...]string{ + OptimismGoerli: "OptimismGoerli", + BaseAndromeda: "BaseAndromeda", +} + +var chainIDNums = [...]int{ + OptimismGoerli: 420, + BaseAndromeda: 84513, +} + +func (i ChainID) String() string { + return chainIDStrings[i] +} + +func (i ChainID) Int() int { + return chainIDNums[i] +} diff --git a/config/config.go b/config/config.go index 27b5212..febca1a 100644 --- a/config/config.go +++ b/config/config.go @@ -6,6 +6,7 @@ import ( // PerpsvConfig is a type for lib configuration schema type PerpsvConfig struct { + ChainID ChainID RPC string ContractAddresses *ContractAddresses FirstContractBlocks *FirstContractBlocks @@ -16,29 +17,32 @@ type PerpsvConfig struct { // ContractAddresses is a part of a PerpsvConfig struct with contract addresses type ContractAddresses struct { Core string - SpotMarket string PerpsMarket string + ERC7412 string + Forwarder string } // FirstContractBlocks is a part of a config struct with default first block numbers used to filters contract logs type FirstContractBlocks struct { Core uint64 - SpotMarket uint64 PerpsMarket uint64 } -// GetGoerliDefaultPerpsvConfig is used to get default lib config for goerli optimism test net -func GetGoerliDefaultPerpsvConfig() *PerpsvConfig { +// GetOptimismGoerliDefaultConfig is used to get default lib config for goerli optimism test net +func GetOptimismGoerliDefaultConfig(rpcURL string) *PerpsvConfig { + if rpcURL == "" { + rpcURL = "https://rpc.goerli.optimism.gateway.fm" + } + return &PerpsvConfig{ - RPC: "https://rpc.goerli.optimism.gateway.fm", + ChainID: OptimismGoerli, + RPC: rpcURL, ContractAddresses: &ContractAddresses{ Core: "0x76490713314fCEC173f44e99346F54c6e92a8E42", - SpotMarket: "0x5FF4b3aacdeC86782d8c757FAa638d8790799E83", PerpsMarket: "0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b", }, FirstContractBlocks: &FirstContractBlocks{ Core: 11664658, - SpotMarket: 10875051, PerpsMarket: 12708889, }, ConnectionTimeout: time.Second * 30, @@ -46,19 +50,24 @@ func GetGoerliDefaultPerpsvConfig() *PerpsvConfig { } } -// GetOptimismDefaultPerpsvConfig is used to get default lib config for ompimism main net -func GetOptimismDefaultPerpsvConfig() *PerpsvConfig { +// GetBaseAndromedaDefaultConfig is used to get default lib config for base andromeda test net +func GetBaseAndromedaDefaultConfig(rpcURL string) *PerpsvConfig { + if rpcURL == "" { + rpcURL = "https://gateway.tenderly.co/public/base" + } + return &PerpsvConfig{ - RPC: "https://rpc.optimism.gateway.fm", + ChainID: BaseAndromeda, + RPC: rpcURL, ContractAddresses: &ContractAddresses{ - Core: "0xffffffaEff0B96Ea8e4f94b2253f31abdD875847", - SpotMarket: "0x38908Ee087D7db73A1Bd1ecab9AAb8E8c9C74595", - PerpsMarket: "", + Core: "0xd7cFdcf6499896a1E15Db92629AAC8085af8B2ac", + PerpsMarket: "0x9863Dae3f4b5F4Ffe3A841a21565d57F2BA10E87", + Forwarder: "0xAE788aaf52780741E12BF79Ad684B91Bb0EF4D92", + ERC7412: "0x9849832a1d8274aaeDb1112ad9686413461e7101", }, FirstContractBlocks: &FirstContractBlocks{ - Core: 94847041, - SpotMarket: 94846457, - PerpsMarket: 0, + Core: 11920413, + PerpsMarket: 9243743, }, ConnectionTimeout: time.Second * 30, ReadTimeout: time.Second * 15, diff --git a/contracts/84531-ERC7412.json b/contracts/84531-ERC7412.json new file mode 100644 index 0000000..82f1360 --- /dev/null +++ b/contracts/84531-ERC7412.json @@ -0,0 +1 @@ +[{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FeeRequired","type":"error"},{"inputs":[{"internalType":"address","name":"oracleContract","type":"address"},{"internalType":"bytes","name":"oracleQuery","type":"bytes"}],"name":"OracleDataRequired","type":"error"},{"inputs":[{"internalType":"bytes","name":"signedOffchainData","type":"bytes"}],"name":"fulfillOracleQuery","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"oracleId","outputs":[{"internalType":"bytes32","name":"oracleId","type":"bytes32"}],"stateMutability":"view","type":"function"}] \ No newline at end of file diff --git a/contracts/84531-TrustedMulticallForwarder.json b/contracts/84531-TrustedMulticallForwarder.json new file mode 100644 index 0000000..e0c9f0a --- /dev/null +++ b/contracts/84531-TrustedMulticallForwarder.json @@ -0,0 +1 @@ +[{"inputs":[],"name":"InvalidShortString","type":"error"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"StringTooLong","type":"error"},{"anonymous":false,"inputs":[],"name":"EIP712DomainChanged","type":"event"},{"inputs":[{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"}],"internalType":"struct TrustedMulticallForwarder.Call[]","name":"calls","type":"tuple[]"}],"name":"aggregate","outputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"},{"internalType":"bytes[]","name":"returnData","type":"bytes[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bool","name":"allowFailure","type":"bool"},{"internalType":"bytes","name":"callData","type":"bytes"}],"internalType":"struct TrustedMulticallForwarder.Call3[]","name":"calls","type":"tuple[]"}],"name":"aggregate3","outputs":[{"components":[{"internalType":"bool","name":"success","type":"bool"},{"internalType":"bytes","name":"returnData","type":"bytes"}],"internalType":"struct TrustedMulticallForwarder.Result[]","name":"returnData","type":"tuple[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bool","name":"allowFailure","type":"bool"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"callData","type":"bytes"}],"internalType":"struct TrustedMulticallForwarder.Call3Value[]","name":"calls","type":"tuple[]"}],"name":"aggregate3Value","outputs":[{"components":[{"internalType":"bool","name":"success","type":"bool"},{"internalType":"bytes","name":"returnData","type":"bytes"}],"internalType":"struct TrustedMulticallForwarder.Result[]","name":"returnData","type":"tuple[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"}],"internalType":"struct TrustedMulticallForwarder.Call[]","name":"calls","type":"tuple[]"}],"name":"blockAndAggregate","outputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"},{"internalType":"bytes32","name":"blockHash","type":"bytes32"},{"components":[{"internalType":"bool","name":"success","type":"bool"},{"internalType":"bytes","name":"returnData","type":"bytes"}],"internalType":"struct TrustedMulticallForwarder.Result[]","name":"returnData","type":"tuple[]"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"eip712Domain","outputs":[{"internalType":"bytes1","name":"fields","type":"bytes1"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"version","type":"string"},{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"verifyingContract","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256[]","name":"extensions","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"gas","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct MinimalForwarder.ForwardRequest","name":"req","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"execute","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"getBasefee","outputs":[{"internalType":"uint256","name":"basefee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getBlockHash","outputs":[{"internalType":"bytes32","name":"blockHash","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBlockNumber","outputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"chainid","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentBlockCoinbase","outputs":[{"internalType":"address","name":"coinbase","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentBlockDifficulty","outputs":[{"internalType":"uint256","name":"difficulty","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentBlockGasLimit","outputs":[{"internalType":"uint256","name":"gaslimit","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentBlockTimestamp","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"getEthBalance","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLastBlockHash","outputs":[{"internalType":"bytes32","name":"blockHash","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"requireSuccess","type":"bool"},{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"}],"internalType":"struct TrustedMulticallForwarder.Call[]","name":"calls","type":"tuple[]"}],"name":"tryAggregate","outputs":[{"components":[{"internalType":"bool","name":"success","type":"bool"},{"internalType":"bytes","name":"returnData","type":"bytes"}],"internalType":"struct TrustedMulticallForwarder.Result[]","name":"returnData","type":"tuple[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bool","name":"requireSuccess","type":"bool"},{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"}],"internalType":"struct TrustedMulticallForwarder.Call[]","name":"calls","type":"tuple[]"}],"name":"tryBlockAndAggregate","outputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"},{"internalType":"bytes32","name":"blockHash","type":"bytes32"},{"components":[{"internalType":"bool","name":"success","type":"bool"},{"internalType":"bytes","name":"returnData","type":"bytes"}],"internalType":"struct TrustedMulticallForwarder.Result[]","name":"returnData","type":"tuple[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"gas","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct MinimalForwarder.ForwardRequest","name":"req","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}] \ No newline at end of file diff --git a/contracts/84531-andromeda-PerpsMarket.json b/contracts/84531-andromeda-PerpsMarket.json new file mode 100644 index 0000000..5b86a15 --- /dev/null +++ b/contracts/84531-andromeda-PerpsMarket.json @@ -0,0 +1 @@ +[{"inputs":[{"internalType":"bytes32","name":"which","type":"bytes32"}],"name":"FeatureUnavailable","type":"error"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"}],"name":"InvalidAccountId","type":"error"},{"inputs":[{"internalType":"bytes32","name":"permission","type":"bytes32"}],"name":"InvalidPermission","type":"error"},{"inputs":[{"internalType":"address","name":"origin","type":"address"}],"name":"OnlyAccountTokenProxy","type":"error"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"bytes32","name":"permission","type":"bytes32"},{"internalType":"address","name":"target","type":"address"}],"name":"PermissionDenied","type":"error"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"bytes32","name":"permission","type":"bytes32"},{"internalType":"address","name":"user","type":"address"}],"name":"PermissionNotGranted","type":"error"},{"inputs":[],"name":"PositionOutOfBounds","type":"error"},{"inputs":[],"name":"ValueAlreadyInSet","type":"error"},{"inputs":[],"name":"ValueNotInSet","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"accountId","type":"uint128"},{"indexed":true,"internalType":"address","name":"owner","type":"address"}],"name":"AccountCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"accountId","type":"uint128"},{"indexed":true,"internalType":"bytes32","name":"permission","type":"bytes32"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"PermissionGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"accountId","type":"uint128"},{"indexed":true,"internalType":"bytes32","name":"permission","type":"bytes32"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"PermissionRevoked","type":"event"},{"inputs":[],"name":"createAccount","outputs":[{"internalType":"uint128","name":"accountId","type":"uint128"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"requestedAccountId","type":"uint128"}],"name":"createAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"}],"name":"getAccountLastInteraction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"}],"name":"getAccountOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"}],"name":"getAccountPermissions","outputs":[{"components":[{"internalType":"address","name":"user","type":"address"},{"internalType":"bytes32[]","name":"permissions","type":"bytes32[]"}],"internalType":"struct IAccountModule.AccountPermissions[]","name":"accountPerms","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAccountTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"bytes32","name":"permission","type":"bytes32"},{"internalType":"address","name":"user","type":"address"}],"name":"grantPermission","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"bytes32","name":"permission","type":"bytes32"},{"internalType":"address","name":"user","type":"address"}],"name":"hasPermission","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"bytes32","name":"permission","type":"bytes32"},{"internalType":"address","name":"user","type":"address"}],"name":"isAuthorized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint128","name":"accountId","type":"uint128"}],"name":"notifyAccountTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"bytes32","name":"permission","type":"bytes32"}],"name":"renouncePermission","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"bytes32","name":"permission","type":"bytes32"},{"internalType":"address","name":"user","type":"address"}],"name":"revokePermission","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"expected","type":"bytes32"},{"internalType":"bytes32","name":"actual","type":"bytes32"}],"name":"MismatchAssociatedSystemKind","type":"error"},{"inputs":[{"internalType":"bytes32","name":"id","type":"bytes32"}],"name":"MissingAssociatedSystem","type":"error"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"Unauthorized","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"kind","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"id","type":"bytes32"},{"indexed":false,"internalType":"address","name":"proxy","type":"address"},{"indexed":false,"internalType":"address","name":"impl","type":"address"}],"name":"AssociatedSystemSet","type":"event"},{"inputs":[{"internalType":"bytes32","name":"id","type":"bytes32"}],"name":"getAssociatedSystem","outputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bytes32","name":"kind","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"id","type":"bytes32"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"uri","type":"string"},{"internalType":"address","name":"impl","type":"address"}],"name":"initOrUpgradeNft","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"id","type":"bytes32"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint8","name":"decimals","type":"uint8"},{"internalType":"address","name":"impl","type":"address"}],"name":"initOrUpgradeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"id","type":"bytes32"},{"internalType":"address","name":"endpoint","type":"address"}],"name":"registerUnmanagedSystem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"DeniedMulticallTarget","type":"error"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"RecursiveMulticall","type":"error"},{"inputs":[{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"internalType":"bytes[]","name":"results","type":"bytes[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"implementation","type":"address"}],"name":"ImplementationIsSterile","type":"error"},{"inputs":[],"name":"NoChange","type":"error"},{"inputs":[{"internalType":"address","name":"contr","type":"address"}],"name":"NotAContract","type":"error"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"NotNominated","type":"error"},{"inputs":[],"name":"UpgradeSimulationFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerNominated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"self","type":"address"},{"indexed":false,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getImplementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newNominatedOwner","type":"address"}],"name":"nominateNewOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nominatedOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceNomination","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"simulateUpgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"}],"name":"InvalidMarket","type":"error"},{"inputs":[{"internalType":"string","name":"parameter","type":"string"},{"internalType":"string","name":"reason","type":"string"}],"name":"InvalidParameter","type":"error"},{"inputs":[],"name":"OverflowInt256ToUint256","type":"error"},{"inputs":[],"name":"OverflowUint256ToInt256","type":"error"},{"inputs":[],"name":"OverflowUint256ToUint128","type":"error"},{"inputs":[],"name":"PerpsMarketNotInitialized","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint128","name":"globalPerpsMarketId","type":"uint128"}],"name":"FactoryInitialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"perpsMarketId","type":"uint128"},{"indexed":false,"internalType":"string","name":"marketName","type":"string"},{"indexed":false,"internalType":"string","name":"marketSymbol","type":"string"}],"name":"MarketCreated","type":"event"},{"inputs":[{"internalType":"uint128","name":"requestedMarketId","type":"uint128"},{"internalType":"string","name":"marketName","type":"string"},{"internalType":"string","name":"marketSymbol","type":"string"}],"name":"createMarket","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initializeFactory","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"perpsMarketId","type":"uint128"}],"name":"minimumCredit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"perpsMarketId","type":"uint128"}],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"perpsMarketId","type":"uint128"}],"name":"reportedDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract ISpotMarketSystem","name":"spotMarket","type":"address"}],"name":"setSpotMarket","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ISynthetixSystem","name":"synthetix","type":"address"}],"name":"setSynthetix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"}],"name":"AccountLiquidatable","type":"error"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"}],"name":"AccountNotFound","type":"error"},{"inputs":[{"internalType":"uint128","name":"synthMarketId","type":"uint128"},{"internalType":"uint256","name":"collateralAmount","type":"uint256"},{"internalType":"uint256","name":"withdrawAmount","type":"uint256"}],"name":"InsufficientCollateral","type":"error"},{"inputs":[{"internalType":"uint256","name":"availableUsdDenominated","type":"uint256"},{"internalType":"uint256","name":"requiredUsdDenominated","type":"uint256"}],"name":"InsufficientCollateralAvailableForWithdraw","type":"error"},{"inputs":[{"internalType":"uint128","name":"synthMarketId","type":"uint128"},{"internalType":"uint256","name":"collateralAmount","type":"uint256"},{"internalType":"uint256","name":"withdrawAmount","type":"uint256"}],"name":"InsufficientSynthCollateral","type":"error"},{"inputs":[{"internalType":"int256","name":"amountDelta","type":"int256"}],"name":"InvalidAmountDelta","type":"error"},{"inputs":[{"internalType":"uint128","name":"synthMarketId","type":"uint128"},{"internalType":"uint256","name":"maxAmount","type":"uint256"},{"internalType":"uint256","name":"collateralAmount","type":"uint256"},{"internalType":"uint256","name":"depositAmount","type":"uint256"}],"name":"MaxCollateralExceeded","type":"error"},{"inputs":[{"internalType":"uint128","name":"maxCollateralsPerAccount","type":"uint128"}],"name":"MaxCollateralsPerAccountReached","type":"error"},{"inputs":[],"name":"OverflowUint128ToInt128","type":"error"},{"inputs":[],"name":"PendingOrderExists","type":"error"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"}],"name":"PriceFeedNotSet","type":"error"},{"inputs":[{"internalType":"uint128","name":"synthMarketId","type":"uint128"}],"name":"SynthNotEnabledForCollateral","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"accountId","type":"uint128"},{"indexed":true,"internalType":"uint128","name":"synthMarketId","type":"uint128"},{"indexed":false,"internalType":"int256","name":"amountDelta","type":"int256"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"CollateralModified","type":"event"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"}],"name":"getAvailableMargin","outputs":[{"internalType":"int256","name":"availableMargin","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"uint128","name":"synthMarketId","type":"uint128"}],"name":"getCollateralAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"uint128","name":"marketId","type":"uint128"}],"name":"getOpenPosition","outputs":[{"internalType":"int256","name":"totalPnl","type":"int256"},{"internalType":"int256","name":"accruedFunding","type":"int256"},{"internalType":"int128","name":"positionSize","type":"int128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"}],"name":"getRequiredMargins","outputs":[{"internalType":"uint256","name":"requiredInitialMargin","type":"uint256"},{"internalType":"uint256","name":"requiredMaintenanceMargin","type":"uint256"},{"internalType":"uint256","name":"totalAccumulatedLiquidationRewards","type":"uint256"},{"internalType":"uint256","name":"maxLiquidationReward","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"}],"name":"getWithdrawableMargin","outputs":[{"internalType":"int256","name":"withdrawableMargin","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"uint128","name":"synthMarketId","type":"uint128"},{"internalType":"int256","name":"amountDelta","type":"int256"}],"name":"modifyCollateral","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"}],"name":"totalAccountOpenInterest","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"}],"name":"totalCollateralValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"}],"name":"currentFundingRate","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"}],"name":"currentFundingVelocity","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"},{"internalType":"int128","name":"orderSize","type":"int128"},{"internalType":"uint256","name":"price","type":"uint256"}],"name":"fillPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"}],"name":"getMarketSummary","outputs":[{"components":[{"internalType":"int256","name":"skew","type":"int256"},{"internalType":"uint256","name":"size","type":"uint256"},{"internalType":"uint256","name":"maxOpenInterest","type":"uint256"},{"internalType":"int256","name":"currentFundingRate","type":"int256"},{"internalType":"int256","name":"currentFundingVelocity","type":"int256"},{"internalType":"uint256","name":"indexPrice","type":"uint256"}],"internalType":"struct IPerpsMarketModule.MarketSummary","name":"summary","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"}],"name":"indexPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"}],"name":"maxOpenInterest","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"}],"name":"metadata","outputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"}],"name":"size","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"}],"name":"skew","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"fillPrice","type":"uint256"},{"internalType":"uint256","name":"acceptablePrice","type":"uint256"}],"name":"AcceptablePriceExceeded","type":"error"},{"inputs":[{"internalType":"int256","name":"availableMargin","type":"int256"},{"internalType":"uint256","name":"minMargin","type":"uint256"}],"name":"InsufficientMargin","type":"error"},{"inputs":[{"internalType":"uint128","name":"settlementStrategyId","type":"uint128"}],"name":"InvalidSettlementStrategy","type":"error"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"},{"internalType":"uint256","name":"maxMarketSize","type":"uint256"},{"internalType":"int256","name":"newSideSize","type":"int256"}],"name":"MaxOpenInterestReached","type":"error"},{"inputs":[{"internalType":"uint128","name":"maxPositionsPerAccount","type":"uint128"}],"name":"MaxPositionsPerAccountReached","type":"error"},{"inputs":[],"name":"OverflowInt256ToInt128","type":"error"},{"inputs":[],"name":"ZeroSizeOrder","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"marketId","type":"uint128"},{"indexed":true,"internalType":"uint128","name":"accountId","type":"uint128"},{"indexed":false,"internalType":"enum SettlementStrategy.Type","name":"orderType","type":"uint8"},{"indexed":false,"internalType":"int128","name":"sizeDelta","type":"int128"},{"indexed":false,"internalType":"uint256","name":"acceptablePrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"settlementTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"expirationTime","type":"uint256"},{"indexed":true,"internalType":"bytes32","name":"trackingCode","type":"bytes32"},{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"OrderCommitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"marketId","type":"uint128"},{"indexed":true,"internalType":"uint128","name":"accountId","type":"uint128"},{"indexed":false,"internalType":"int128","name":"sizeDelta","type":"int128"},{"indexed":false,"internalType":"uint256","name":"acceptablePrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"settlementTime","type":"uint256"},{"indexed":true,"internalType":"bytes32","name":"trackingCode","type":"bytes32"}],"name":"PreviousOrderExpired","type":"event"},{"inputs":[{"components":[{"internalType":"uint128","name":"marketId","type":"uint128"},{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"int128","name":"sizeDelta","type":"int128"},{"internalType":"uint128","name":"settlementStrategyId","type":"uint128"},{"internalType":"uint256","name":"acceptablePrice","type":"uint256"},{"internalType":"bytes32","name":"trackingCode","type":"bytes32"},{"internalType":"address","name":"referrer","type":"address"}],"internalType":"struct AsyncOrder.OrderCommitmentRequest","name":"commitment","type":"tuple"}],"name":"commitOrder","outputs":[{"components":[{"internalType":"uint256","name":"settlementTime","type":"uint256"},{"components":[{"internalType":"uint128","name":"marketId","type":"uint128"},{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"int128","name":"sizeDelta","type":"int128"},{"internalType":"uint128","name":"settlementStrategyId","type":"uint128"},{"internalType":"uint256","name":"acceptablePrice","type":"uint256"},{"internalType":"bytes32","name":"trackingCode","type":"bytes32"},{"internalType":"address","name":"referrer","type":"address"}],"internalType":"struct AsyncOrder.OrderCommitmentRequest","name":"request","type":"tuple"}],"internalType":"struct AsyncOrder.Data","name":"retOrder","type":"tuple"},{"internalType":"uint256","name":"fees","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"},{"internalType":"int128","name":"sizeDelta","type":"int128"}],"name":"computeOrderFees","outputs":[{"internalType":"uint256","name":"orderFees","type":"uint256"},{"internalType":"uint256","name":"fillPrice","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"}],"name":"getOrder","outputs":[{"components":[{"internalType":"uint256","name":"settlementTime","type":"uint256"},{"components":[{"internalType":"uint128","name":"marketId","type":"uint128"},{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"int128","name":"sizeDelta","type":"int128"},{"internalType":"uint128","name":"settlementStrategyId","type":"uint128"},{"internalType":"uint256","name":"acceptablePrice","type":"uint256"},{"internalType":"bytes32","name":"trackingCode","type":"bytes32"},{"internalType":"address","name":"referrer","type":"address"}],"internalType":"struct AsyncOrder.OrderCommitmentRequest","name":"request","type":"tuple"}],"internalType":"struct AsyncOrder.Data","name":"order","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"uint128","name":"marketId","type":"uint128"},{"internalType":"int128","name":"sizeDelta","type":"int128"}],"name":"requiredMarginForOrder","outputs":[{"internalType":"uint256","name":"requiredMargin","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"leftover","type":"uint256"}],"name":"InsufficientMarginError","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"string[]","name":"urls","type":"string[]"},{"internalType":"bytes","name":"callData","type":"bytes"},{"internalType":"bytes4","name":"callbackFunction","type":"bytes4"},{"internalType":"bytes","name":"extraData","type":"bytes"}],"name":"OffchainLookup","type":"error"},{"inputs":[],"name":"OrderNotValid","type":"error"},{"inputs":[],"name":"OverflowInt128ToUint128","type":"error"},{"inputs":[],"name":"OverflowUint256ToUint64","type":"error"},{"inputs":[{"internalType":"enum SettlementStrategy.Type","name":"strategyType","type":"uint8"}],"name":"SettlementStrategyNotFound","type":"error"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"settlementTime","type":"uint256"},{"internalType":"uint256","name":"settlementExpiration","type":"uint256"}],"name":"SettlementWindowExpired","type":"error"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"settlementTime","type":"uint256"}],"name":"SettlementWindowNotOpen","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint128","name":"marketId","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"int256","name":"skew","type":"int256"},{"indexed":false,"internalType":"uint256","name":"size","type":"uint256"},{"indexed":false,"internalType":"int256","name":"sizeDelta","type":"int256"},{"indexed":false,"internalType":"int256","name":"currentFundingRate","type":"int256"},{"indexed":false,"internalType":"int256","name":"currentFundingVelocity","type":"int256"}],"name":"MarketUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"marketId","type":"uint128"},{"indexed":true,"internalType":"uint128","name":"accountId","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"fillPrice","type":"uint256"},{"indexed":false,"internalType":"int256","name":"pnl","type":"int256"},{"indexed":false,"internalType":"int256","name":"accruedFunding","type":"int256"},{"indexed":false,"internalType":"int128","name":"sizeDelta","type":"int128"},{"indexed":false,"internalType":"int128","name":"newSize","type":"int128"},{"indexed":false,"internalType":"uint256","name":"totalFees","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"referralFees","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"collectedFees","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"settlementReward","type":"uint256"},{"indexed":true,"internalType":"bytes32","name":"trackingCode","type":"bytes32"},{"indexed":false,"internalType":"address","name":"settler","type":"address"}],"name":"OrderSettled","type":"event"},{"inputs":[],"name":"PRECISION","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"}],"name":"settle","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"result","type":"bytes"},{"internalType":"bytes","name":"extraData","type":"bytes"}],"name":"settlePythOrder","outputs":[],"stateMutability":"payable","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"feature","type":"bytes32"},{"indexed":false,"internalType":"bool","name":"allowAll","type":"bool"}],"name":"FeatureFlagAllowAllSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"feature","type":"bytes32"},{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"FeatureFlagAllowlistAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"feature","type":"bytes32"},{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"FeatureFlagAllowlistRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"feature","type":"bytes32"},{"indexed":false,"internalType":"address[]","name":"deniers","type":"address[]"}],"name":"FeatureFlagDeniersReset","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"feature","type":"bytes32"},{"indexed":false,"internalType":"bool","name":"denyAll","type":"bool"}],"name":"FeatureFlagDenyAllSet","type":"event"},{"inputs":[{"internalType":"bytes32","name":"feature","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"addToFeatureFlagAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"feature","type":"bytes32"}],"name":"getDeniers","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"feature","type":"bytes32"}],"name":"getFeatureFlagAllowAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"feature","type":"bytes32"}],"name":"getFeatureFlagAllowlist","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"feature","type":"bytes32"}],"name":"getFeatureFlagDenyAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"feature","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"isFeatureAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"feature","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"removeFromFeatureFlagAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"feature","type":"bytes32"},{"internalType":"address[]","name":"deniers","type":"address[]"}],"name":"setDeniers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"feature","type":"bytes32"},{"internalType":"bool","name":"allowAll","type":"bool"}],"name":"setFeatureFlagAllowAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"feature","type":"bytes32"},{"internalType":"bool","name":"denyAll","type":"bool"}],"name":"setFeatureFlagDenyAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"}],"name":"NotEligibleForLiquidation","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"accountId","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"},{"indexed":false,"internalType":"bool","name":"fullLiquidation","type":"bool"}],"name":"AccountLiquidated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"accountId","type":"uint128"},{"indexed":true,"internalType":"uint128","name":"marketId","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"amountLiquidated","type":"uint256"},{"indexed":false,"internalType":"int128","name":"currentPositionSize","type":"int128"}],"name":"PositionLiquidated","type":"event"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"}],"name":"canLiquidate","outputs":[{"internalType":"bool","name":"isEligible","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"}],"name":"liquidate","outputs":[{"internalType":"uint256","name":"liquidationReward","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"liquidateFlagged","outputs":[{"internalType":"uint256","name":"liquidationReward","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"}],"name":"liquidationCapacity","outputs":[{"internalType":"uint256","name":"capacity","type":"uint256"},{"internalType":"uint256","name":"maxLiquidationInWindow","type":"uint256"},{"internalType":"uint256","name":"latestLiquidationTimestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"marketId","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"skewScale","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"maxFundingVelocity","type":"uint256"}],"name":"FundingParametersSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"marketId","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"initialMarginRatioD18","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"maintenanceMarginRatioD18","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"minimumInitialMarginRatioD18","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"liquidationRewardRatioD18","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"minimumPositionMargin","type":"uint256"}],"name":"LiquidationParametersSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"marketId","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"lockedOiRatioD18","type":"uint256"}],"name":"LockedOiRatioSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"marketId","type":"uint128"},{"indexed":false,"internalType":"bytes32","name":"feedId","type":"bytes32"}],"name":"MarketPriceDataUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"marketId","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"maxLiquidationLimitAccumulationMultiplier","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"maxSecondsInLiquidationWindow","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"maxLiquidationPd","type":"uint256"},{"indexed":false,"internalType":"address","name":"endorsedLiquidator","type":"address"}],"name":"MaxLiquidationParametersSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"marketId","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"maxMarketSize","type":"uint256"}],"name":"MaxMarketSizeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"marketId","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"makerFeeRatio","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"takerFeeRatio","type":"uint256"}],"name":"OrderFeesSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"marketId","type":"uint128"},{"components":[{"internalType":"enum SettlementStrategy.Type","name":"strategyType","type":"uint8"},{"internalType":"uint256","name":"settlementDelay","type":"uint256"},{"internalType":"uint256","name":"settlementWindowDuration","type":"uint256"},{"internalType":"uint256","name":"priceWindowDuration","type":"uint256"},{"internalType":"address","name":"priceVerificationContract","type":"address"},{"internalType":"bytes32","name":"feedId","type":"bytes32"},{"internalType":"string","name":"url","type":"string"},{"internalType":"uint256","name":"settlementReward","type":"uint256"},{"internalType":"bool","name":"disabled","type":"bool"}],"indexed":false,"internalType":"struct SettlementStrategy.Data","name":"strategy","type":"tuple"},{"indexed":true,"internalType":"uint256","name":"strategyId","type":"uint256"}],"name":"SettlementStrategyAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"marketId","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"strategyId","type":"uint256"},{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"SettlementStrategyEnabled","type":"event"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"},{"components":[{"internalType":"enum SettlementStrategy.Type","name":"strategyType","type":"uint8"},{"internalType":"uint256","name":"settlementDelay","type":"uint256"},{"internalType":"uint256","name":"settlementWindowDuration","type":"uint256"},{"internalType":"uint256","name":"priceWindowDuration","type":"uint256"},{"internalType":"address","name":"priceVerificationContract","type":"address"},{"internalType":"bytes32","name":"feedId","type":"bytes32"},{"internalType":"string","name":"url","type":"string"},{"internalType":"uint256","name":"settlementReward","type":"uint256"},{"internalType":"bool","name":"disabled","type":"bool"}],"internalType":"struct SettlementStrategy.Data","name":"strategy","type":"tuple"}],"name":"addSettlementStrategy","outputs":[{"internalType":"uint256","name":"strategyId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"}],"name":"getFundingParameters","outputs":[{"internalType":"uint256","name":"skewScale","type":"uint256"},{"internalType":"uint256","name":"maxFundingVelocity","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"}],"name":"getLiquidationParameters","outputs":[{"internalType":"uint256","name":"initialMarginRatioD18","type":"uint256"},{"internalType":"uint256","name":"minimumInitialMarginRatioD18","type":"uint256"},{"internalType":"uint256","name":"maintenanceMarginScalarD18","type":"uint256"},{"internalType":"uint256","name":"liquidationRewardRatioD18","type":"uint256"},{"internalType":"uint256","name":"minimumPositionMargin","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"}],"name":"getLockedOiRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"}],"name":"getMaxLiquidationParameters","outputs":[{"internalType":"uint256","name":"maxLiquidationLimitAccumulationMultiplier","type":"uint256"},{"internalType":"uint256","name":"maxSecondsInLiquidationWindow","type":"uint256"},{"internalType":"uint256","name":"maxLiquidationPd","type":"uint256"},{"internalType":"address","name":"endorsedLiquidator","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"}],"name":"getMaxMarketSize","outputs":[{"internalType":"uint256","name":"maxMarketSize","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"}],"name":"getOrderFees","outputs":[{"internalType":"uint256","name":"makerFee","type":"uint256"},{"internalType":"uint256","name":"takerFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"},{"internalType":"uint256","name":"strategyId","type":"uint256"}],"name":"getSettlementStrategy","outputs":[{"components":[{"internalType":"enum SettlementStrategy.Type","name":"strategyType","type":"uint8"},{"internalType":"uint256","name":"settlementDelay","type":"uint256"},{"internalType":"uint256","name":"settlementWindowDuration","type":"uint256"},{"internalType":"uint256","name":"priceWindowDuration","type":"uint256"},{"internalType":"address","name":"priceVerificationContract","type":"address"},{"internalType":"bytes32","name":"feedId","type":"bytes32"},{"internalType":"string","name":"url","type":"string"},{"internalType":"uint256","name":"settlementReward","type":"uint256"},{"internalType":"bool","name":"disabled","type":"bool"}],"internalType":"struct SettlementStrategy.Data","name":"settlementStrategy","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"},{"internalType":"uint256","name":"skewScale","type":"uint256"},{"internalType":"uint256","name":"maxFundingVelocity","type":"uint256"}],"name":"setFundingParameters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"},{"internalType":"uint256","name":"initialMarginRatioD18","type":"uint256"},{"internalType":"uint256","name":"minimumInitialMarginRatioD18","type":"uint256"},{"internalType":"uint256","name":"maintenanceMarginScalarD18","type":"uint256"},{"internalType":"uint256","name":"liquidationRewardRatioD18","type":"uint256"},{"internalType":"uint256","name":"minimumPositionMargin","type":"uint256"}],"name":"setLiquidationParameters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"},{"internalType":"uint256","name":"lockedOiRatioD18","type":"uint256"}],"name":"setLockedOiRatio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"},{"internalType":"uint256","name":"maxLiquidationLimitAccumulationMultiplier","type":"uint256"},{"internalType":"uint256","name":"maxSecondsInLiquidationWindow","type":"uint256"},{"internalType":"uint256","name":"maxLiquidationPd","type":"uint256"},{"internalType":"address","name":"endorsedLiquidator","type":"address"}],"name":"setMaxLiquidationParameters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"},{"internalType":"uint256","name":"maxMarketSize","type":"uint256"}],"name":"setMaxMarketSize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"},{"internalType":"uint256","name":"makerFeeRatio","type":"uint256"},{"internalType":"uint256","name":"takerFeeRatio","type":"uint256"}],"name":"setOrderFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"},{"internalType":"uint256","name":"strategyId","type":"uint256"},{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setSettlementStrategyEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"perpsMarketId","type":"uint128"},{"internalType":"bytes32","name":"feedId","type":"bytes32"}],"name":"updatePriceData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"invalidFeeCollector","type":"address"}],"name":"InvalidFeeCollectorInterface","type":"error"},{"inputs":[{"internalType":"uint256","name":"shareRatioD18","type":"uint256"}],"name":"InvalidReferrerShareRatio","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"feeCollector","type":"address"}],"name":"FeeCollectorSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"minLiquidationRewardUsd","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"maxLiquidationRewardUsd","type":"uint256"}],"name":"LiquidationRewardGuardsSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"synthMarketId","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"collateralAmount","type":"uint256"}],"name":"MaxCollateralAmountSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint128","name":"maxPositionsPerAccount","type":"uint128"},{"indexed":false,"internalType":"uint128","name":"maxCollateralsPerAccount","type":"uint128"}],"name":"PerAccountCapsSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"referrer","type":"address"},{"indexed":false,"internalType":"uint256","name":"shareRatioD18","type":"uint256"}],"name":"ReferrerShareUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint128[]","name":"newSynthDeductionPriority","type":"uint128[]"}],"name":"SynthDeductionPrioritySet","type":"event"},{"inputs":[],"name":"getFeeCollector","outputs":[{"internalType":"address","name":"feeCollector","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLiquidationRewardGuards","outputs":[{"internalType":"uint256","name":"minLiquidationRewardUsd","type":"uint256"},{"internalType":"uint256","name":"maxLiquidationRewardUsd","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMarkets","outputs":[{"internalType":"uint256[]","name":"marketIds","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"synthMarketId","type":"uint128"}],"name":"getMaxCollateralAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPerAccountCaps","outputs":[{"internalType":"uint128","name":"maxPositionsPerAccount","type":"uint128"},{"internalType":"uint128","name":"maxCollateralsPerAccount","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"referrer","type":"address"}],"name":"getReferrerShare","outputs":[{"internalType":"uint256","name":"shareRatioD18","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSynthDeductionPriority","outputs":[{"internalType":"uint128[]","name":"","type":"uint128[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"feeCollector","type":"address"}],"name":"setFeeCollector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"minLiquidationRewardUsd","type":"uint256"},{"internalType":"uint256","name":"maxLiquidationRewardUsd","type":"uint256"}],"name":"setLiquidationRewardGuards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"synthMarketId","type":"uint128"},{"internalType":"uint256","name":"collateralAmount","type":"uint256"}],"name":"setMaxCollateralAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"maxPositionsPerAccount","type":"uint128"},{"internalType":"uint128","name":"maxCollateralsPerAccount","type":"uint128"}],"name":"setPerAccountCaps","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128[]","name":"newSynthDeductionPriority","type":"uint128[]"}],"name":"setSynthDeductionPriority","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalGlobalCollateralValue","outputs":[{"internalType":"uint256","name":"totalCollateralValue","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"referrer","type":"address"},{"internalType":"uint256","name":"shareRatioD18","type":"uint256"}],"name":"updateReferrerShare","outputs":[],"stateMutability":"nonpayable","type":"function"}] \ No newline at end of file diff --git a/contracts/84531-andromeda-SynthetixCore.json b/contracts/84531-andromeda-SynthetixCore.json new file mode 100644 index 0000000..c1597c6 --- /dev/null +++ b/contracts/84531-andromeda-SynthetixCore.json @@ -0,0 +1 @@ +[{"inputs":[{"internalType":"address","name":"implementation","type":"address"}],"name":"ImplementationIsSterile","type":"error"},{"inputs":[],"name":"NoChange","type":"error"},{"inputs":[{"internalType":"address","name":"contr","type":"address"}],"name":"NotAContract","type":"error"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"NotNominated","type":"error"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"Unauthorized","type":"error"},{"inputs":[],"name":"UpgradeSimulationFailed","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerNominated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"self","type":"address"},{"indexed":false,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getImplementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newNominatedOwner","type":"address"}],"name":"nominateNewOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nominatedOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceNomination","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"simulateUpgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ValueAlreadyInSet","type":"error"},{"inputs":[],"name":"ValueNotInSet","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"feature","type":"bytes32"},{"indexed":false,"internalType":"bool","name":"allowAll","type":"bool"}],"name":"FeatureFlagAllowAllSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"feature","type":"bytes32"},{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"FeatureFlagAllowlistAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"feature","type":"bytes32"},{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"FeatureFlagAllowlistRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"feature","type":"bytes32"},{"indexed":false,"internalType":"address[]","name":"deniers","type":"address[]"}],"name":"FeatureFlagDeniersReset","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"feature","type":"bytes32"},{"indexed":false,"internalType":"bool","name":"denyAll","type":"bool"}],"name":"FeatureFlagDenyAllSet","type":"event"},{"inputs":[{"internalType":"bytes32","name":"feature","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"addToFeatureFlagAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"feature","type":"bytes32"}],"name":"getDeniers","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"feature","type":"bytes32"}],"name":"getFeatureFlagAllowAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"feature","type":"bytes32"}],"name":"getFeatureFlagAllowlist","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"feature","type":"bytes32"}],"name":"getFeatureFlagDenyAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"feature","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"isFeatureAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"feature","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"removeFromFeatureFlagAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"feature","type":"bytes32"},{"internalType":"address[]","name":"deniers","type":"address[]"}],"name":"setDeniers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"feature","type":"bytes32"},{"internalType":"bool","name":"allowAll","type":"bool"}],"name":"setFeatureFlagAllowAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"feature","type":"bytes32"},{"internalType":"bool","name":"denyAll","type":"bool"}],"name":"setFeatureFlagDenyAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"which","type":"bytes32"}],"name":"FeatureUnavailable","type":"error"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"}],"name":"InvalidAccountId","type":"error"},{"inputs":[{"internalType":"bytes32","name":"permission","type":"bytes32"}],"name":"InvalidPermission","type":"error"},{"inputs":[{"internalType":"address","name":"origin","type":"address"}],"name":"OnlyAccountTokenProxy","type":"error"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"bytes32","name":"permission","type":"bytes32"},{"internalType":"address","name":"target","type":"address"}],"name":"PermissionDenied","type":"error"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"bytes32","name":"permission","type":"bytes32"},{"internalType":"address","name":"user","type":"address"}],"name":"PermissionNotGranted","type":"error"},{"inputs":[],"name":"PositionOutOfBounds","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"accountId","type":"uint128"},{"indexed":true,"internalType":"address","name":"owner","type":"address"}],"name":"AccountCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"accountId","type":"uint128"},{"indexed":true,"internalType":"bytes32","name":"permission","type":"bytes32"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"PermissionGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"accountId","type":"uint128"},{"indexed":true,"internalType":"bytes32","name":"permission","type":"bytes32"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"PermissionRevoked","type":"event"},{"inputs":[],"name":"createAccount","outputs":[{"internalType":"uint128","name":"accountId","type":"uint128"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"requestedAccountId","type":"uint128"}],"name":"createAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"}],"name":"getAccountLastInteraction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"}],"name":"getAccountOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"}],"name":"getAccountPermissions","outputs":[{"components":[{"internalType":"address","name":"user","type":"address"},{"internalType":"bytes32[]","name":"permissions","type":"bytes32[]"}],"internalType":"struct IAccountModule.AccountPermissions[]","name":"accountPerms","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAccountTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"bytes32","name":"permission","type":"bytes32"},{"internalType":"address","name":"user","type":"address"}],"name":"grantPermission","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"bytes32","name":"permission","type":"bytes32"},{"internalType":"address","name":"user","type":"address"}],"name":"hasPermission","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"bytes32","name":"permission","type":"bytes32"},{"internalType":"address","name":"user","type":"address"}],"name":"isAuthorized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint128","name":"accountId","type":"uint128"}],"name":"notifyAccountTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"bytes32","name":"permission","type":"bytes32"}],"name":"renouncePermission","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"bytes32","name":"permission","type":"bytes32"},{"internalType":"address","name":"user","type":"address"}],"name":"revokePermission","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"}],"name":"AccountNotFound","type":"error"},{"inputs":[],"name":"EmptyDistribution","type":"error"},{"inputs":[{"internalType":"uint256","name":"collateralValue","type":"uint256"},{"internalType":"uint256","name":"debt","type":"uint256"},{"internalType":"uint256","name":"ratio","type":"uint256"},{"internalType":"uint256","name":"minRatio","type":"uint256"}],"name":"InsufficientCollateralRatio","type":"error"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"}],"name":"MarketNotFound","type":"error"},{"inputs":[{"internalType":"uint256","name":"marketId","type":"uint256"},{"internalType":"uint256","name":"poolId","type":"uint256"}],"name":"NotFundedByPool","type":"error"},{"inputs":[],"name":"OverflowInt256ToInt128","type":"error"},{"inputs":[],"name":"OverflowInt256ToUint256","type":"error"},{"inputs":[],"name":"OverflowUint128ToInt128","type":"error"},{"inputs":[],"name":"OverflowUint256ToInt256","type":"error"},{"inputs":[],"name":"OverflowUint256ToUint128","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"marketId","type":"uint128"},{"indexed":true,"internalType":"uint128","name":"poolId","type":"uint128"},{"indexed":true,"internalType":"address","name":"collateralType","type":"address"},{"indexed":false,"internalType":"uint128","name":"accountId","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"int256","name":"updatedDebt","type":"int256"}],"name":"DebtAssociated","type":"event"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"},{"internalType":"uint128","name":"poolId","type":"uint128"},{"internalType":"address","name":"collateralType","type":"address"},{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"associateDebt","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"expected","type":"bytes32"},{"internalType":"bytes32","name":"actual","type":"bytes32"}],"name":"MismatchAssociatedSystemKind","type":"error"},{"inputs":[{"internalType":"bytes32","name":"id","type":"bytes32"}],"name":"MissingAssociatedSystem","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"kind","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"id","type":"bytes32"},{"indexed":false,"internalType":"address","name":"proxy","type":"address"},{"indexed":false,"internalType":"address","name":"impl","type":"address"}],"name":"AssociatedSystemSet","type":"event"},{"inputs":[{"internalType":"bytes32","name":"id","type":"bytes32"}],"name":"getAssociatedSystem","outputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bytes32","name":"kind","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"id","type":"bytes32"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"uri","type":"string"},{"internalType":"address","name":"impl","type":"address"}],"name":"initOrUpgradeNft","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"id","type":"bytes32"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint8","name":"decimals","type":"uint8"},{"internalType":"address","name":"impl","type":"address"}],"name":"initOrUpgradeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"id","type":"bytes32"},{"internalType":"address","name":"endpoint","type":"address"}],"name":"registerUnmanagedSystem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"InvalidMessage","type":"error"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"NotCcipRouter","type":"error"},{"inputs":[{"internalType":"uint64","name":"","type":"uint64"}],"name":"UnsupportedNetwork","type":"error"},{"inputs":[{"components":[{"internalType":"bytes32","name":"messageId","type":"bytes32"},{"internalType":"uint64","name":"sourceChainSelector","type":"uint64"},{"internalType":"bytes","name":"sender","type":"bytes"},{"internalType":"bytes","name":"data","type":"bytes"},{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct CcipClient.EVMTokenAmount[]","name":"tokenAmounts","type":"tuple[]"}],"internalType":"struct CcipClient.Any2EVMMessage","name":"message","type":"tuple"}],"name":"ccipReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"uint256","name":"currentTime","type":"uint256"},{"internalType":"uint256","name":"requiredTime","type":"uint256"}],"name":"AccountActivityTimeoutPending","type":"error"},{"inputs":[{"internalType":"address","name":"collateralType","type":"address"}],"name":"CollateralDepositDisabled","type":"error"},{"inputs":[],"name":"CollateralNotFound","type":"error"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"FailedTransfer","type":"error"},{"inputs":[{"internalType":"uint256","name":"amountAvailableForDelegationD18","type":"uint256"},{"internalType":"uint256","name":"amountD18","type":"uint256"}],"name":"InsufficentAvailableCollateral","type":"error"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"InsufficientAccountCollateral","type":"error"},{"inputs":[{"internalType":"uint256","name":"required","type":"uint256"},{"internalType":"uint256","name":"existing","type":"uint256"}],"name":"InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"string","name":"parameter","type":"string"},{"internalType":"string","name":"reason","type":"string"}],"name":"InvalidParameter","type":"error"},{"inputs":[],"name":"OverflowUint256ToUint64","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"internalType":"uint8","name":"decimals","type":"uint8"}],"name":"PrecisionLost","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"accountId","type":"uint128"},{"indexed":true,"internalType":"address","name":"collateralType","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"indexed":false,"internalType":"uint64","name":"expireTimestamp","type":"uint64"}],"name":"CollateralLockCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"accountId","type":"uint128"},{"indexed":true,"internalType":"address","name":"collateralType","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"indexed":false,"internalType":"uint64","name":"expireTimestamp","type":"uint64"}],"name":"CollateralLockExpired","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"accountId","type":"uint128"},{"indexed":true,"internalType":"address","name":"collateralType","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"Deposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"accountId","type":"uint128"},{"indexed":true,"internalType":"address","name":"collateralType","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"address","name":"collateralType","type":"address"},{"internalType":"uint256","name":"offset","type":"uint256"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"cleanExpiredLocks","outputs":[{"internalType":"uint256","name":"cleared","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"address","name":"collateralType","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint64","name":"expireTimestamp","type":"uint64"}],"name":"createLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"address","name":"collateralType","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"address","name":"collateralType","type":"address"}],"name":"getAccountAvailableCollateral","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"address","name":"collateralType","type":"address"}],"name":"getAccountCollateral","outputs":[{"internalType":"uint256","name":"totalDeposited","type":"uint256"},{"internalType":"uint256","name":"totalAssigned","type":"uint256"},{"internalType":"uint256","name":"totalLocked","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"address","name":"collateralType","type":"address"},{"internalType":"uint256","name":"offset","type":"uint256"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"getLocks","outputs":[{"components":[{"internalType":"uint128","name":"amountD18","type":"uint128"},{"internalType":"uint64","name":"lockExpirationTime","type":"uint64"}],"internalType":"struct CollateralLock.Data[]","name":"locks","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"address","name":"collateralType","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"collateralType","type":"address"},{"components":[{"internalType":"bool","name":"depositingEnabled","type":"bool"},{"internalType":"uint256","name":"issuanceRatioD18","type":"uint256"},{"internalType":"uint256","name":"liquidationRatioD18","type":"uint256"},{"internalType":"uint256","name":"liquidationRewardD18","type":"uint256"},{"internalType":"bytes32","name":"oracleNodeId","type":"bytes32"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"minDelegationD18","type":"uint256"}],"indexed":false,"internalType":"struct CollateralConfiguration.Data","name":"config","type":"tuple"}],"name":"CollateralConfigured","type":"event"},{"inputs":[{"components":[{"internalType":"bool","name":"depositingEnabled","type":"bool"},{"internalType":"uint256","name":"issuanceRatioD18","type":"uint256"},{"internalType":"uint256","name":"liquidationRatioD18","type":"uint256"},{"internalType":"uint256","name":"liquidationRewardD18","type":"uint256"},{"internalType":"bytes32","name":"oracleNodeId","type":"bytes32"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"minDelegationD18","type":"uint256"}],"internalType":"struct CollateralConfiguration.Data","name":"config","type":"tuple"}],"name":"configureCollateral","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"collateralType","type":"address"}],"name":"getCollateralConfiguration","outputs":[{"components":[{"internalType":"bool","name":"depositingEnabled","type":"bool"},{"internalType":"uint256","name":"issuanceRatioD18","type":"uint256"},{"internalType":"uint256","name":"liquidationRatioD18","type":"uint256"},{"internalType":"uint256","name":"liquidationRewardD18","type":"uint256"},{"internalType":"bytes32","name":"oracleNodeId","type":"bytes32"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"minDelegationD18","type":"uint256"}],"internalType":"struct CollateralConfiguration.Data","name":"","type":"tuple"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bool","name":"hideDisabled","type":"bool"}],"name":"getCollateralConfigurations","outputs":[{"components":[{"internalType":"bool","name":"depositingEnabled","type":"bool"},{"internalType":"uint256","name":"issuanceRatioD18","type":"uint256"},{"internalType":"uint256","name":"liquidationRatioD18","type":"uint256"},{"internalType":"uint256","name":"liquidationRewardD18","type":"uint256"},{"internalType":"bytes32","name":"oracleNodeId","type":"bytes32"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"minDelegationD18","type":"uint256"}],"internalType":"struct CollateralConfiguration.Data[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collateralType","type":"address"},{"internalType":"uint256","name":"collateralAmount","type":"uint256"}],"name":"getCollateralPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"requiredAmount","type":"uint256"},{"internalType":"uint256","name":"availableAmount","type":"uint256"}],"name":"InsufficientCcipFee","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"destChainId","type":"uint64"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"TransferCrossChainInitiated","type":"event"},{"inputs":[{"internalType":"uint64","name":"destChainId","type":"uint64"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferCrossChain","outputs":[{"internalType":"uint256","name":"gasTokenUsed","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"int256","name":"currentDebt","type":"int256"}],"name":"InsufficientDebt","type":"error"},{"inputs":[{"internalType":"uint128","name":"poolId","type":"uint128"}],"name":"PoolNotFound","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"accountId","type":"uint128"},{"indexed":true,"internalType":"uint128","name":"poolId","type":"uint128"},{"indexed":false,"internalType":"address","name":"collateralType","type":"address"},{"indexed":false,"internalType":"uint256","name":"feeAmount","type":"uint256"}],"name":"IssuanceFeePaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"accountId","type":"uint128"},{"indexed":true,"internalType":"uint128","name":"poolId","type":"uint128"},{"indexed":false,"internalType":"address","name":"collateralType","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"UsdBurned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"accountId","type":"uint128"},{"indexed":true,"internalType":"uint128","name":"poolId","type":"uint128"},{"indexed":false,"internalType":"address","name":"collateralType","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"UsdMinted","type":"event"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"uint128","name":"poolId","type":"uint128"},{"internalType":"address","name":"collateralType","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnUsd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"uint128","name":"poolId","type":"uint128"},{"internalType":"address","name":"collateralType","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintUsd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"CannotScaleEmptyMapping","type":"error"},{"inputs":[{"internalType":"uint256","name":"collateralValue","type":"uint256"},{"internalType":"int256","name":"debt","type":"int256"},{"internalType":"uint256","name":"currentCRatio","type":"uint256"},{"internalType":"uint256","name":"cratio","type":"uint256"}],"name":"IneligibleForLiquidation","type":"error"},{"inputs":[],"name":"InsufficientMappedAmount","type":"error"},{"inputs":[],"name":"MustBeVaultLiquidated","type":"error"},{"inputs":[],"name":"OverflowInt128ToUint128","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"accountId","type":"uint128"},{"indexed":true,"internalType":"uint128","name":"poolId","type":"uint128"},{"indexed":true,"internalType":"address","name":"collateralType","type":"address"},{"components":[{"internalType":"uint256","name":"debtLiquidated","type":"uint256"},{"internalType":"uint256","name":"collateralLiquidated","type":"uint256"},{"internalType":"uint256","name":"amountRewarded","type":"uint256"}],"indexed":false,"internalType":"struct ILiquidationModule.LiquidationData","name":"liquidationData","type":"tuple"},{"indexed":false,"internalType":"uint128","name":"liquidateAsAccountId","type":"uint128"},{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"Liquidation","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"poolId","type":"uint128"},{"indexed":true,"internalType":"address","name":"collateralType","type":"address"},{"components":[{"internalType":"uint256","name":"debtLiquidated","type":"uint256"},{"internalType":"uint256","name":"collateralLiquidated","type":"uint256"},{"internalType":"uint256","name":"amountRewarded","type":"uint256"}],"indexed":false,"internalType":"struct ILiquidationModule.LiquidationData","name":"liquidationData","type":"tuple"},{"indexed":false,"internalType":"uint128","name":"liquidateAsAccountId","type":"uint128"},{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"VaultLiquidation","type":"event"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"uint128","name":"poolId","type":"uint128"},{"internalType":"address","name":"collateralType","type":"address"}],"name":"isPositionLiquidatable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"poolId","type":"uint128"},{"internalType":"address","name":"collateralType","type":"address"}],"name":"isVaultLiquidatable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"uint128","name":"poolId","type":"uint128"},{"internalType":"address","name":"collateralType","type":"address"},{"internalType":"uint128","name":"liquidateAsAccountId","type":"uint128"}],"name":"liquidate","outputs":[{"components":[{"internalType":"uint256","name":"debtLiquidated","type":"uint256"},{"internalType":"uint256","name":"collateralLiquidated","type":"uint256"},{"internalType":"uint256","name":"amountRewarded","type":"uint256"}],"internalType":"struct ILiquidationModule.LiquidationData","name":"liquidationData","type":"tuple"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"poolId","type":"uint128"},{"internalType":"address","name":"collateralType","type":"address"},{"internalType":"uint128","name":"liquidateAsAccountId","type":"uint128"},{"internalType":"uint256","name":"maxUsd","type":"uint256"}],"name":"liquidateVault","outputs":[{"components":[{"internalType":"uint256","name":"debtLiquidated","type":"uint256"},{"internalType":"uint256","name":"collateralLiquidated","type":"uint256"},{"internalType":"uint256","name":"amountRewarded","type":"uint256"}],"internalType":"struct ILiquidationModule.LiquidationData","name":"liquidationData","type":"tuple"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"},{"internalType":"address","name":"collateralType","type":"address"},{"internalType":"uint256","name":"tokenAmountToDeposit","type":"uint256"}],"name":"InsufficientMarketCollateralDepositable","type":"error"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"},{"internalType":"address","name":"collateralType","type":"address"},{"internalType":"uint256","name":"tokenAmountToWithdraw","type":"uint256"}],"name":"InsufficientMarketCollateralWithdrawable","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"marketId","type":"uint128"},{"indexed":true,"internalType":"address","name":"collateralType","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"MarketCollateralDeposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"marketId","type":"uint128"},{"indexed":true,"internalType":"address","name":"collateralType","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"MarketCollateralWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"marketId","type":"uint128"},{"indexed":true,"internalType":"address","name":"collateralType","type":"address"},{"indexed":false,"internalType":"uint256","name":"systemAmount","type":"uint256"},{"indexed":true,"internalType":"address","name":"owner","type":"address"}],"name":"MaximumMarketCollateralConfigured","type":"event"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"},{"internalType":"address","name":"collateralType","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"configureMaximumMarketCollateral","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"},{"internalType":"address","name":"collateralType","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"depositMarketCollateral","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"},{"internalType":"address","name":"collateralType","type":"address"}],"name":"getMarketCollateralAmount","outputs":[{"internalType":"uint256","name":"collateralAmountD18","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"}],"name":"getMarketCollateralValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"},{"internalType":"address","name":"collateralType","type":"address"}],"name":"getMaximumMarketCollateral","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"},{"internalType":"address","name":"collateralType","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"withdrawMarketCollateral","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"market","type":"address"}],"name":"IncorrectMarketInterface","type":"error"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"NotEnoughLiquidity","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"market","type":"address"},{"indexed":true,"internalType":"uint128","name":"marketId","type":"uint128"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"MarketRegistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"marketId","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"feeAmount","type":"uint256"}],"name":"MarketSystemFeePaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"marketId","type":"uint128"},{"indexed":true,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"address","name":"market","type":"address"}],"name":"MarketUsdDeposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"marketId","type":"uint128"},{"indexed":true,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"address","name":"market","type":"address"}],"name":"MarketUsdWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"marketId","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"minLiquidityRatio","type":"uint256"}],"name":"SetMarketMinLiquidityRatio","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"marketId","type":"uint128"},{"indexed":false,"internalType":"uint32","name":"minDelegateTime","type":"uint32"}],"name":"SetMinDelegateTime","type":"event"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"},{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"depositMarketUsd","outputs":[{"internalType":"uint256","name":"feeAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"},{"internalType":"uint256","name":"maxIter","type":"uint256"}],"name":"distributeDebtToPools","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"}],"name":"getMarketAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"}],"name":"getMarketCollateral","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"}],"name":"getMarketDebtPerShare","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"","type":"uint128"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"getMarketFees","outputs":[{"internalType":"uint256","name":"depositFeeAmount","type":"uint256"},{"internalType":"uint256","name":"withdrawFeeAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"}],"name":"getMarketMinDelegateTime","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"}],"name":"getMarketNetIssuance","outputs":[{"internalType":"int128","name":"","type":"int128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"},{"internalType":"uint128","name":"poolId","type":"uint128"}],"name":"getMarketPoolDebtDistribution","outputs":[{"internalType":"uint256","name":"sharesD18","type":"uint256"},{"internalType":"uint128","name":"totalSharesD18","type":"uint128"},{"internalType":"int128","name":"valuePerShareD27","type":"int128"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"}],"name":"getMarketPools","outputs":[{"internalType":"uint128[]","name":"inRangePoolIds","type":"uint128[]"},{"internalType":"uint128[]","name":"outRangePoolIds","type":"uint128[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"}],"name":"getMarketReportedDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"}],"name":"getMarketTotalDebt","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"}],"name":"getMinLiquidityRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getOracleManager","outputs":[{"internalType":"contract IOracleManager","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getUsdToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"}],"name":"getWithdrawableMarketUsd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"}],"name":"isMarketCapacityLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"market","type":"address"}],"name":"registerMarket","outputs":[{"internalType":"uint128","name":"marketId","type":"uint128"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"},{"internalType":"uint32","name":"minDelegateTime","type":"uint32"}],"name":"setMarketMinDelegateTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"},{"internalType":"uint256","name":"minLiquidityRatio","type":"uint256"}],"name":"setMinLiquidityRatio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"marketId","type":"uint128"},{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawMarketUsd","outputs":[{"internalType":"uint256","name":"feeAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"DeniedMulticallTarget","type":"error"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"RecursiveMulticall","type":"error"},{"inputs":[{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"internalType":"bytes[]","name":"results","type":"bytes[]"}],"stateMutability":"payable","type":"function"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"poolId","type":"uint256"}],"name":"PoolApprovedAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"poolId","type":"uint256"}],"name":"PoolApprovedRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"poolId","type":"uint256"}],"name":"PreferredPoolSet","type":"event"},{"inputs":[{"internalType":"uint128","name":"poolId","type":"uint128"}],"name":"addApprovedPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getApprovedPools","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPreferredPool","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"poolId","type":"uint128"}],"name":"removeApprovedPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"poolId","type":"uint128"}],"name":"setPreferredPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"marketId","type":"uint256"}],"name":"CapacityLocked","type":"error"},{"inputs":[{"internalType":"uint128","name":"poolId","type":"uint128"},{"internalType":"uint32","name":"timeRemaining","type":"uint32"}],"name":"MinDelegationTimeoutPending","type":"error"},{"inputs":[{"internalType":"uint128","name":"poolId","type":"uint128"}],"name":"PoolAlreadyExists","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"poolId","type":"uint128"},{"indexed":false,"internalType":"address","name":"collateralType","type":"address"},{"components":[{"internalType":"uint256","name":"collateralLimitD18","type":"uint256"},{"internalType":"uint256","name":"issuanceRatioD18","type":"uint256"}],"indexed":false,"internalType":"struct PoolCollateralConfiguration.Data","name":"config","type":"tuple"}],"name":"PoolCollateralConfigurationUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint128","name":"poolId","type":"uint128"},{"indexed":false,"internalType":"bool","name":"disabled","type":"bool"}],"name":"PoolCollateralDisabledByDefaultSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"poolId","type":"uint128"},{"components":[{"internalType":"uint128","name":"marketId","type":"uint128"},{"internalType":"uint128","name":"weightD18","type":"uint128"},{"internalType":"int128","name":"maxDebtShareValueD18","type":"int128"}],"indexed":false,"internalType":"struct MarketConfiguration.Data[]","name":"markets","type":"tuple[]"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"PoolConfigurationSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"poolId","type":"uint128"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"PoolCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"poolId","type":"uint128"},{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"PoolNameUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"poolId","type":"uint128"},{"indexed":true,"internalType":"address","name":"owner","type":"address"}],"name":"PoolNominationRenounced","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"poolId","type":"uint128"},{"indexed":true,"internalType":"address","name":"owner","type":"address"}],"name":"PoolNominationRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"poolId","type":"uint128"},{"indexed":true,"internalType":"address","name":"nominatedOwner","type":"address"},{"indexed":true,"internalType":"address","name":"owner","type":"address"}],"name":"PoolOwnerNominated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"poolId","type":"uint128"},{"indexed":true,"internalType":"address","name":"owner","type":"address"}],"name":"PoolOwnershipAccepted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"minLiquidityRatio","type":"uint256"}],"name":"SetMinLiquidityRatio","type":"event"},{"inputs":[{"internalType":"uint128","name":"poolId","type":"uint128"}],"name":"acceptPoolOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"requestedPoolId","type":"uint128"},{"internalType":"address","name":"owner","type":"address"}],"name":"createPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getMinLiquidityRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"poolId","type":"uint128"}],"name":"getNominatedPoolOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"poolId","type":"uint128"},{"internalType":"address","name":"collateral","type":"address"}],"name":"getPoolCollateralIssuanceRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"poolId","type":"uint128"}],"name":"getPoolConfiguration","outputs":[{"components":[{"internalType":"uint128","name":"marketId","type":"uint128"},{"internalType":"uint128","name":"weightD18","type":"uint128"},{"internalType":"int128","name":"maxDebtShareValueD18","type":"int128"}],"internalType":"struct MarketConfiguration.Data[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"poolId","type":"uint128"}],"name":"getPoolName","outputs":[{"internalType":"string","name":"poolName","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"poolId","type":"uint128"}],"name":"getPoolOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"nominatedOwner","type":"address"},{"internalType":"uint128","name":"poolId","type":"uint128"}],"name":"nominatePoolOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"poolId","type":"uint128"},{"internalType":"address","name":"optionalCollateralType","type":"address"}],"name":"rebalancePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"poolId","type":"uint128"}],"name":"renouncePoolNomination","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"poolId","type":"uint128"}],"name":"revokePoolNomination","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"minLiquidityRatio","type":"uint256"}],"name":"setMinLiquidityRatio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"poolId","type":"uint128"},{"internalType":"address","name":"collateralType","type":"address"},{"components":[{"internalType":"uint256","name":"collateralLimitD18","type":"uint256"},{"internalType":"uint256","name":"issuanceRatioD18","type":"uint256"}],"internalType":"struct PoolCollateralConfiguration.Data","name":"newConfig","type":"tuple"}],"name":"setPoolCollateralConfiguration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"poolId","type":"uint128"},{"internalType":"bool","name":"disabled","type":"bool"}],"name":"setPoolCollateralDisabledByDefault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"poolId","type":"uint128"},{"components":[{"internalType":"uint128","name":"marketId","type":"uint128"},{"internalType":"uint128","name":"weightD18","type":"uint128"},{"internalType":"int128","name":"maxDebtShareValueD18","type":"int128"}],"internalType":"struct MarketConfiguration.Data[]","name":"newMarketConfigurations","type":"tuple[]"}],"name":"setPoolConfiguration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"poolId","type":"uint128"},{"internalType":"string","name":"name","type":"string"}],"name":"setPoolName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"OverflowUint256ToUint32","type":"error"},{"inputs":[],"name":"OverflowUint32ToInt32","type":"error"},{"inputs":[],"name":"OverflowUint64ToInt64","type":"error"},{"inputs":[],"name":"RewardDistributorNotFound","type":"error"},{"inputs":[{"internalType":"address","name":"distributor","type":"address"}],"name":"RewardUnavailable","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"accountId","type":"uint128"},{"indexed":true,"internalType":"uint128","name":"poolId","type":"uint128"},{"indexed":true,"internalType":"address","name":"collateralType","type":"address"},{"indexed":false,"internalType":"address","name":"distributor","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardsClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"poolId","type":"uint128"},{"indexed":true,"internalType":"address","name":"collateralType","type":"address"},{"indexed":false,"internalType":"address","name":"distributor","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"start","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"duration","type":"uint256"}],"name":"RewardsDistributed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"poolId","type":"uint128"},{"indexed":true,"internalType":"address","name":"collateralType","type":"address"},{"indexed":true,"internalType":"address","name":"distributor","type":"address"}],"name":"RewardsDistributorRegistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"poolId","type":"uint128"},{"indexed":true,"internalType":"address","name":"collateralType","type":"address"},{"indexed":true,"internalType":"address","name":"distributor","type":"address"}],"name":"RewardsDistributorRemoved","type":"event"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"uint128","name":"poolId","type":"uint128"},{"internalType":"address","name":"collateralType","type":"address"},{"internalType":"address","name":"distributor","type":"address"}],"name":"claimRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"poolId","type":"uint128"},{"internalType":"address","name":"collateralType","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint64","name":"start","type":"uint64"},{"internalType":"uint32","name":"duration","type":"uint32"}],"name":"distributeRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"poolId","type":"uint128"},{"internalType":"address","name":"collateralType","type":"address"},{"internalType":"address","name":"distributor","type":"address"}],"name":"getRewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"poolId","type":"uint128"},{"internalType":"address","name":"collateralType","type":"address"},{"internalType":"address","name":"distributor","type":"address"}],"name":"registerRewardsDistributor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"poolId","type":"uint128"},{"internalType":"address","name":"collateralType","type":"address"},{"internalType":"address","name":"distributor","type":"address"}],"name":"removeRewardsDistributor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"poolId","type":"uint128"},{"internalType":"address","name":"collateralType","type":"address"},{"internalType":"uint128","name":"accountId","type":"uint128"}],"name":"updateRewards","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"nonpayable","type":"function"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"newChainId","type":"uint64"}],"name":"NewSupportedCrossChainNetwork","type":"event"},{"inputs":[{"internalType":"address","name":"ccipRouter","type":"address"},{"internalType":"address","name":"ccipTokenPool","type":"address"}],"name":"configureChainlinkCrossChain","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"oracleManagerAddress","type":"address"}],"name":"configureOracleManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"k","type":"bytes32"}],"name":"getConfig","outputs":[{"internalType":"bytes32","name":"v","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"k","type":"bytes32"}],"name":"getConfigAddress","outputs":[{"internalType":"address","name":"v","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"k","type":"bytes32"}],"name":"getConfigUint","outputs":[{"internalType":"uint256","name":"v","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTrustedForwarder","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"forwarder","type":"address"}],"name":"isTrustedForwarder","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32","name":"k","type":"bytes32"},{"internalType":"bytes32","name":"v","type":"bytes32"}],"name":"setConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64[]","name":"supportedNetworks","type":"uint64[]"},{"internalType":"uint64[]","name":"ccipSelectors","type":"uint64[]"}],"name":"setSupportedCrossChainNetworks","outputs":[{"internalType":"uint256","name":"numRegistered","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"minDelegation","type":"uint256"}],"name":"InsufficientDelegation","type":"error"},{"inputs":[],"name":"InvalidCollateralAmount","type":"error"},{"inputs":[{"internalType":"uint256","name":"leverage","type":"uint256"}],"name":"InvalidLeverage","type":"error"},{"inputs":[{"internalType":"uint128","name":"poolId","type":"uint128"},{"internalType":"address","name":"collateralType","type":"address"},{"internalType":"uint256","name":"currentCollateral","type":"uint256"},{"internalType":"uint256","name":"maxCollateral","type":"uint256"}],"name":"PoolCollateralLimitExceeded","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"accountId","type":"uint128"},{"indexed":true,"internalType":"uint128","name":"poolId","type":"uint128"},{"indexed":false,"internalType":"address","name":"collateralType","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"leverage","type":"uint256"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"DelegationUpdated","type":"event"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"uint128","name":"poolId","type":"uint128"},{"internalType":"address","name":"collateralType","type":"address"},{"internalType":"uint256","name":"newCollateralAmountD18","type":"uint256"},{"internalType":"uint256","name":"leverage","type":"uint256"}],"name":"delegateCollateral","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"uint128","name":"poolId","type":"uint128"},{"internalType":"address","name":"collateralType","type":"address"}],"name":"getPosition","outputs":[{"internalType":"uint256","name":"collateralAmount","type":"uint256"},{"internalType":"uint256","name":"collateralValue","type":"uint256"},{"internalType":"int256","name":"debt","type":"int256"},{"internalType":"uint256","name":"collateralizationRatio","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"uint128","name":"poolId","type":"uint128"},{"internalType":"address","name":"collateralType","type":"address"}],"name":"getPositionCollateral","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"uint128","name":"poolId","type":"uint128"},{"internalType":"address","name":"collateralType","type":"address"}],"name":"getPositionCollateralRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"},{"internalType":"uint128","name":"poolId","type":"uint128"},{"internalType":"address","name":"collateralType","type":"address"}],"name":"getPositionDebt","outputs":[{"internalType":"int256","name":"debt","type":"int256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"poolId","type":"uint128"},{"internalType":"address","name":"collateralType","type":"address"}],"name":"getVaultCollateral","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"poolId","type":"uint128"},{"internalType":"address","name":"collateralType","type":"address"}],"name":"getVaultCollateralRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"poolId","type":"uint128"},{"internalType":"address","name":"collateralType","type":"address"}],"name":"getVaultDebt","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"nonpayable","type":"function"}] \ No newline at end of file diff --git a/contracts/84531-andromeda-snxUSDToken.json b/contracts/84531-andromeda-snxUSDToken.json new file mode 100644 index 0000000..5d05af7 --- /dev/null +++ b/contracts/84531-andromeda-snxUSDToken.json @@ -0,0 +1 @@ +[{"inputs":[{"internalType":"address","name":"implementation","type":"address"}],"name":"ImplementationIsSterile","type":"error"},{"inputs":[],"name":"NoChange","type":"error"},{"inputs":[{"internalType":"address","name":"contr","type":"address"}],"name":"NotAContract","type":"error"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"NotNominated","type":"error"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"Unauthorized","type":"error"},{"inputs":[],"name":"UpgradeSimulationFailed","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerNominated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"self","type":"address"},{"indexed":false,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getImplementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newNominatedOwner","type":"address"}],"name":"nominateNewOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nominatedOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceNomination","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"simulateUpgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"expected","type":"bytes32"},{"internalType":"bytes32","name":"actual","type":"bytes32"}],"name":"MismatchAssociatedSystemKind","type":"error"},{"inputs":[{"internalType":"bytes32","name":"id","type":"bytes32"}],"name":"MissingAssociatedSystem","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"kind","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"id","type":"bytes32"},{"indexed":false,"internalType":"address","name":"proxy","type":"address"},{"indexed":false,"internalType":"address","name":"impl","type":"address"}],"name":"AssociatedSystemSet","type":"event"},{"inputs":[{"internalType":"bytes32","name":"id","type":"bytes32"}],"name":"getAssociatedSystem","outputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bytes32","name":"kind","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"id","type":"bytes32"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"uri","type":"string"},{"internalType":"address","name":"impl","type":"address"}],"name":"initOrUpgradeNft","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"id","type":"bytes32"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint8","name":"decimals","type":"uint8"},{"internalType":"address","name":"impl","type":"address"}],"name":"initOrUpgradeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"id","type":"bytes32"},{"internalType":"address","name":"endpoint","type":"address"}],"name":"registerUnmanagedSystem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"AlreadyInitialized","type":"error"},{"inputs":[{"internalType":"uint256","name":"required","type":"uint256"},{"internalType":"uint256","name":"existing","type":"uint256"}],"name":"InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"uint256","name":"required","type":"uint256"},{"internalType":"uint256","name":"existing","type":"uint256"}],"name":"InsufficientBalance","type":"error"},{"inputs":[{"internalType":"string","name":"parameter","type":"string"},{"internalType":"string","name":"reason","type":"string"}],"name":"InvalidParameter","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnWithAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"tokenName","type":"string"},{"internalType":"string","name":"tokenSymbol","type":"string"},{"internalType":"uint8","name":"tokenDecimals","type":"uint8"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isInitialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}] \ No newline at end of file diff --git a/contracts/ERC7412/contract.go b/contracts/ERC7412/contract.go new file mode 100644 index 0000000..4c433a4 --- /dev/null +++ b/contracts/ERC7412/contract.go @@ -0,0 +1,233 @@ +// Code generated - DO NOT EDIT. +// This file is a generated binding and any manual changes will be lost. + +package erc7412 + +import ( + "errors" + "math/big" + "strings" + + ethereum "github.com/ethereum/go-ethereum" + "github.com/ethereum/go-ethereum/accounts/abi" + "github.com/ethereum/go-ethereum/accounts/abi/bind" + "github.com/ethereum/go-ethereum/common" + "github.com/ethereum/go-ethereum/core/types" + "github.com/ethereum/go-ethereum/event" +) + +// Reference imports to suppress errors if they are not otherwise used. +var ( + _ = errors.New + _ = big.NewInt + _ = strings.NewReader + _ = ethereum.NotFound + _ = bind.Bind + _ = common.Big1 + _ = types.BloomLookup + _ = event.NewSubscription + _ = abi.ConvertType +) + +// Erc7412MetaData contains all meta data concerning the Erc7412 contract. +var Erc7412MetaData = &bind.MetaData{ + ABI: "[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"FeeRequired\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"oracleContract\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"oracleQuery\",\"type\":\"bytes\"}],\"name\":\"OracleDataRequired\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"signedOffchainData\",\"type\":\"bytes\"}],\"name\":\"fulfillOracleQuery\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"oracleId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"oracleId\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]", +} + +// Erc7412ABI is the input ABI used to generate the binding from. +// Deprecated: Use Erc7412MetaData.ABI instead. +var Erc7412ABI = Erc7412MetaData.ABI + +// Erc7412 is an auto generated Go binding around an Ethereum contract. +type Erc7412 struct { + Erc7412Caller // Read-only binding to the contract + Erc7412Transactor // Write-only binding to the contract + Erc7412Filterer // Log filterer for contract events +} + +// Erc7412Caller is an auto generated read-only Go binding around an Ethereum contract. +type Erc7412Caller struct { + contract *bind.BoundContract // Generic contract wrapper for the low level calls +} + +// Erc7412Transactor is an auto generated write-only Go binding around an Ethereum contract. +type Erc7412Transactor struct { + contract *bind.BoundContract // Generic contract wrapper for the low level calls +} + +// Erc7412Filterer is an auto generated log filtering Go binding around an Ethereum contract events. +type Erc7412Filterer struct { + contract *bind.BoundContract // Generic contract wrapper for the low level calls +} + +// Erc7412Session is an auto generated Go binding around an Ethereum contract, +// with pre-set call and transact options. +type Erc7412Session struct { + Contract *Erc7412 // 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 +} + +// Erc7412CallerSession is an auto generated read-only Go binding around an Ethereum contract, +// with pre-set call options. +type Erc7412CallerSession struct { + Contract *Erc7412Caller // Generic contract caller binding to set the session for + CallOpts bind.CallOpts // Call options to use throughout this session +} + +// Erc7412TransactorSession is an auto generated write-only Go binding around an Ethereum contract, +// with pre-set transact options. +type Erc7412TransactorSession struct { + Contract *Erc7412Transactor // Generic contract transactor binding to set the session for + TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session +} + +// Erc7412Raw is an auto generated low-level Go binding around an Ethereum contract. +type Erc7412Raw struct { + Contract *Erc7412 // Generic contract binding to access the raw methods on +} + +// Erc7412CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. +type Erc7412CallerRaw struct { + Contract *Erc7412Caller // Generic read-only contract binding to access the raw methods on +} + +// Erc7412TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. +type Erc7412TransactorRaw struct { + Contract *Erc7412Transactor // Generic write-only contract binding to access the raw methods on +} + +// NewErc7412 creates a new instance of Erc7412, bound to a specific deployed contract. +func NewErc7412(address common.Address, backend bind.ContractBackend) (*Erc7412, error) { + contract, err := bindErc7412(address, backend, backend, backend) + if err != nil { + return nil, err + } + return &Erc7412{Erc7412Caller: Erc7412Caller{contract: contract}, Erc7412Transactor: Erc7412Transactor{contract: contract}, Erc7412Filterer: Erc7412Filterer{contract: contract}}, nil +} + +// NewErc7412Caller creates a new read-only instance of Erc7412, bound to a specific deployed contract. +func NewErc7412Caller(address common.Address, caller bind.ContractCaller) (*Erc7412Caller, error) { + contract, err := bindErc7412(address, caller, nil, nil) + if err != nil { + return nil, err + } + return &Erc7412Caller{contract: contract}, nil +} + +// NewErc7412Transactor creates a new write-only instance of Erc7412, bound to a specific deployed contract. +func NewErc7412Transactor(address common.Address, transactor bind.ContractTransactor) (*Erc7412Transactor, error) { + contract, err := bindErc7412(address, nil, transactor, nil) + if err != nil { + return nil, err + } + return &Erc7412Transactor{contract: contract}, nil +} + +// NewErc7412Filterer creates a new log filterer instance of Erc7412, bound to a specific deployed contract. +func NewErc7412Filterer(address common.Address, filterer bind.ContractFilterer) (*Erc7412Filterer, error) { + contract, err := bindErc7412(address, nil, nil, filterer) + if err != nil { + return nil, err + } + return &Erc7412Filterer{contract: contract}, nil +} + +// bindErc7412 binds a generic wrapper to an already deployed contract. +func bindErc7412(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { + parsed, err := Erc7412MetaData.GetAbi() + if err != nil { + return nil, err + } + return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil +} + +// 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 (_Erc7412 *Erc7412Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { + return _Erc7412.Contract.Erc7412Caller.contract.Call(opts, result, method, params...) +} + +// Transfer initiates a plain transaction to move funds to the contract, calling +// its default method if one is available. +func (_Erc7412 *Erc7412Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { + return _Erc7412.Contract.Erc7412Transactor.contract.Transfer(opts) +} + +// Transact invokes the (paid) contract method with params as input values. +func (_Erc7412 *Erc7412Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { + return _Erc7412.Contract.Erc7412Transactor.contract.Transact(opts, method, params...) +} + +// Call invokes the (constant) contract method with params as input values and +// sets the output to result. The result type might be a single field for simple +// returns, a slice of interfaces for anonymous returns and a struct for named +// returns. +func (_Erc7412 *Erc7412CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { + return _Erc7412.Contract.contract.Call(opts, result, method, params...) +} + +// Transfer initiates a plain transaction to move funds to the contract, calling +// its default method if one is available. +func (_Erc7412 *Erc7412TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { + return _Erc7412.Contract.contract.Transfer(opts) +} + +// Transact invokes the (paid) contract method with params as input values. +func (_Erc7412 *Erc7412TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { + return _Erc7412.Contract.contract.Transact(opts, method, params...) +} + +// OracleId is a free data retrieval call binding the contract method 0x2121778d. +// +// Solidity: function oracleId() view returns(bytes32 oracleId) +func (_Erc7412 *Erc7412Caller) OracleId(opts *bind.CallOpts) ([32]byte, error) { + var out []interface{} + err := _Erc7412.contract.Call(opts, &out, "oracleId") + + if err != nil { + return *new([32]byte), err + } + + out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte) + + return out0, err + +} + +// OracleId is a free data retrieval call binding the contract method 0x2121778d. +// +// Solidity: function oracleId() view returns(bytes32 oracleId) +func (_Erc7412 *Erc7412Session) OracleId() ([32]byte, error) { + return _Erc7412.Contract.OracleId(&_Erc7412.CallOpts) +} + +// OracleId is a free data retrieval call binding the contract method 0x2121778d. +// +// Solidity: function oracleId() view returns(bytes32 oracleId) +func (_Erc7412 *Erc7412CallerSession) OracleId() ([32]byte, error) { + return _Erc7412.Contract.OracleId(&_Erc7412.CallOpts) +} + +// FulfillOracleQuery is a paid mutator transaction binding the contract method 0x14b95956. +// +// Solidity: function fulfillOracleQuery(bytes signedOffchainData) payable returns() +func (_Erc7412 *Erc7412Transactor) FulfillOracleQuery(opts *bind.TransactOpts, signedOffchainData []byte) (*types.Transaction, error) { + return _Erc7412.contract.Transact(opts, "fulfillOracleQuery", signedOffchainData) +} + +// FulfillOracleQuery is a paid mutator transaction binding the contract method 0x14b95956. +// +// Solidity: function fulfillOracleQuery(bytes signedOffchainData) payable returns() +func (_Erc7412 *Erc7412Session) FulfillOracleQuery(signedOffchainData []byte) (*types.Transaction, error) { + return _Erc7412.Contract.FulfillOracleQuery(&_Erc7412.TransactOpts, signedOffchainData) +} + +// FulfillOracleQuery is a paid mutator transaction binding the contract method 0x14b95956. +// +// Solidity: function fulfillOracleQuery(bytes signedOffchainData) payable returns() +func (_Erc7412 *Erc7412TransactorSession) FulfillOracleQuery(signedOffchainData []byte) (*types.Transaction, error) { + return _Erc7412.Contract.FulfillOracleQuery(&_Erc7412.TransactOpts, signedOffchainData) +} diff --git a/contracts/coreGoerli/contract.go b/contracts/core/contract.go similarity index 59% rename from contracts/coreGoerli/contract.go rename to contracts/core/contract.go index 545857b..ed9df5f 100644 --- a/contracts/coreGoerli/contract.go +++ b/contracts/core/contract.go @@ -1,7 +1,7 @@ // Code generated - DO NOT EDIT. // This file is a generated binding and any manual changes will be lost. -package coreGoerli +package core import ( "errors" @@ -87,113 +87,113 @@ type PoolCollateralConfigurationData struct { IssuanceRatioD18 *big.Int } -// CoreGoerliMetaData contains all meta data concerning the CoreGoerli contract. -var CoreGoerliMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"ImplementationIsSterile\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NoChange\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"contr\",\"type\":\"address\"}],\"name\":\"NotAContract\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"NotNominated\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"Unauthorized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UpgradeSimulationFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroAddress\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldOwner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnerChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnerNominated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"self\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getImplementation\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newNominatedOwner\",\"type\":\"address\"}],\"name\":\"nominateNewOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nominatedOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceNomination\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"simulateUpgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"upgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ValueAlreadyInSet\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ValueNotInSet\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"allowAll\",\"type\":\"bool\"}],\"name\":\"FeatureFlagAllowAllSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"FeatureFlagAllowlistAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"FeatureFlagAllowlistRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"deniers\",\"type\":\"address[]\"}],\"name\":\"FeatureFlagDeniersReset\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"denyAll\",\"type\":\"bool\"}],\"name\":\"FeatureFlagDenyAllSet\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"addToFeatureFlagAllowlist\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"}],\"name\":\"getDeniers\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"}],\"name\":\"getFeatureFlagAllowAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"}],\"name\":\"getFeatureFlagAllowlist\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"}],\"name\":\"getFeatureFlagDenyAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"isFeatureAllowed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"removeFromFeatureFlagAllowlist\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"address[]\",\"name\":\"deniers\",\"type\":\"address[]\"}],\"name\":\"setDeniers\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"bool\",\"name\":\"allowAll\",\"type\":\"bool\"}],\"name\":\"setFeatureFlagAllowAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"bool\",\"name\":\"denyAll\",\"type\":\"bool\"}],\"name\":\"setFeatureFlagDenyAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"which\",\"type\":\"bytes32\"}],\"name\":\"FeatureUnavailable\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"InvalidAccountId\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"}],\"name\":\"InvalidPermission\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"origin\",\"type\":\"address\"}],\"name\":\"OnlyAccountTokenProxy\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"}],\"name\":\"PermissionDenied\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"PermissionNotGranted\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"PositionOutOfBounds\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"AccountCreated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"PermissionGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"PermissionRevoked\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"createAccount\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"requestedAccountId\",\"type\":\"uint128\"}],\"name\":\"createAccount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"getAccountLastInteraction\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"getAccountOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"getAccountPermissions\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"bytes32[]\",\"name\":\"permissions\",\"type\":\"bytes32[]\"}],\"internalType\":\"structIAccountModule.AccountPermissions[]\",\"name\":\"accountPerms\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAccountTokenAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"grantPermission\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"hasPermission\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"isAuthorized\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"notifyAccountTransfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"}],\"name\":\"renouncePermission\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"revokePermission\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"AccountNotFound\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EmptyDistribution\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"collateralValue\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"debt\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"ratio\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minRatio\",\"type\":\"uint256\"}],\"name\":\"InsufficientCollateralRatio\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"MarketNotFound\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"marketId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"poolId\",\"type\":\"uint256\"}],\"name\":\"NotFundedByPool\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowInt256ToInt128\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowInt256ToUint256\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowUint128ToInt128\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowUint256ToInt256\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowUint256ToUint128\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"updatedDebt\",\"type\":\"int256\"}],\"name\":\"DebtAssociated\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"associateDebt\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"expected\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"actual\",\"type\":\"bytes32\"}],\"name\":\"MismatchAssociatedSystemKind\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"MissingAssociatedSystem\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"kind\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"impl\",\"type\":\"address\"}],\"name\":\"AssociatedSystemSet\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"getAssociatedSystem\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"kind\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"impl\",\"type\":\"address\"}],\"name\":\"initOrUpgradeNft\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"uint8\",\"name\":\"decimals\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"impl\",\"type\":\"address\"}],\"name\":\"initOrUpgradeToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"endpoint\",\"type\":\"address\"}],\"name\":\"registerUnmanagedSystem\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"InvalidMessage\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"NotCcipRouter\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"name\":\"UnsupportedNetwork\",\"type\":\"error\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"messageId\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"sourceChainSelector\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"sender\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structCcipClient.EVMTokenAmount[]\",\"name\":\"tokenAmounts\",\"type\":\"tuple[]\"}],\"internalType\":\"structCcipClient.Any2EVMMessage\",\"name\":\"message\",\"type\":\"tuple\"}],\"name\":\"ccipReceive\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"currentTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"requiredTime\",\"type\":\"uint256\"}],\"name\":\"AccountActivityTimeoutPending\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"CollateralDepositDisabled\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CollateralNotFound\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"FailedTransfer\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountAvailableForDelegationD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountD18\",\"type\":\"uint256\"}],\"name\":\"InsufficentAvailableCollateral\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"InsufficientAccountCollateral\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"required\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"existing\",\"type\":\"uint256\"}],\"name\":\"InsufficientAllowance\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"parameter\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"reason\",\"type\":\"string\"}],\"name\":\"InvalidParameter\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowUint256ToUint64\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"decimals\",\"type\":\"uint8\"}],\"name\":\"PrecisionLost\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"expireTimestamp\",\"type\":\"uint64\"}],\"name\":\"CollateralLockCreated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"expireTimestamp\",\"type\":\"uint64\"}],\"name\":\"CollateralLockExpired\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"Deposited\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"Withdrawn\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"offset\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"count\",\"type\":\"uint256\"}],\"name\":\"cleanExpiredLocks\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"cleared\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"expireTimestamp\",\"type\":\"uint64\"}],\"name\":\"createLock\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getAccountAvailableCollateral\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getAccountCollateral\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"totalDeposited\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalAssigned\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalLocked\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"offset\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"count\",\"type\":\"uint256\"}],\"name\":\"getLocks\",\"outputs\":[{\"components\":[{\"internalType\":\"uint128\",\"name\":\"amountD18\",\"type\":\"uint128\"},{\"internalType\":\"uint64\",\"name\":\"lockExpirationTime\",\"type\":\"uint64\"}],\"internalType\":\"structCollateralLock.Data[]\",\"name\":\"locks\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"depositingEnabled\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"issuanceRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidationRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidationRewardD18\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"oracleNodeId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minDelegationD18\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"structCollateralConfiguration.Data\",\"name\":\"config\",\"type\":\"tuple\"}],\"name\":\"CollateralConfigured\",\"type\":\"event\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"depositingEnabled\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"issuanceRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidationRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidationRewardD18\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"oracleNodeId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minDelegationD18\",\"type\":\"uint256\"}],\"internalType\":\"structCollateralConfiguration.Data\",\"name\":\"config\",\"type\":\"tuple\"}],\"name\":\"configureCollateral\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getCollateralConfiguration\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"depositingEnabled\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"issuanceRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidationRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidationRewardD18\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"oracleNodeId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minDelegationD18\",\"type\":\"uint256\"}],\"internalType\":\"structCollateralConfiguration.Data\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"hideDisabled\",\"type\":\"bool\"}],\"name\":\"getCollateralConfigurations\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"depositingEnabled\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"issuanceRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidationRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidationRewardD18\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"oracleNodeId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minDelegationD18\",\"type\":\"uint256\"}],\"internalType\":\"structCollateralConfiguration.Data[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getCollateralPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"requiredAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"availableAmount\",\"type\":\"uint256\"}],\"name\":\"InsufficientCcipFee\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"destChainId\",\"type\":\"uint64\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"TransferCrossChainInitiated\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"destChainId\",\"type\":\"uint64\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferCrossChain\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"gasTokenUsed\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int256\",\"name\":\"currentDebt\",\"type\":\"int256\"}],\"name\":\"InsufficientDebt\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"PoolNotFound\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"}],\"name\":\"IssuanceFeePaid\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"UsdBurned\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"UsdMinted\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"burnUsd\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"mintUsd\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"CannotScaleEmptyMapping\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"collateralValue\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"debt\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"currentCRatio\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"cratio\",\"type\":\"uint256\"}],\"name\":\"IneligibleForLiquidation\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InsufficientMappedAmount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MustBeVaultLiquidated\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowInt128ToUint128\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"debtLiquidated\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"collateralLiquidated\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountRewarded\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"structILiquidationModule.LiquidationData\",\"name\":\"liquidationData\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidateAsAccountId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"Liquidation\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"debtLiquidated\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"collateralLiquidated\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountRewarded\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"structILiquidationModule.LiquidationData\",\"name\":\"liquidationData\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidateAsAccountId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"VaultLiquidation\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"isPositionLiquidatable\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"isVaultLiquidatable\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"liquidateAsAccountId\",\"type\":\"uint128\"}],\"name\":\"liquidate\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"debtLiquidated\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"collateralLiquidated\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountRewarded\",\"type\":\"uint256\"}],\"internalType\":\"structILiquidationModule.LiquidationData\",\"name\":\"liquidationData\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"liquidateAsAccountId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"maxUsd\",\"type\":\"uint256\"}],\"name\":\"liquidateVault\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"debtLiquidated\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"collateralLiquidated\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountRewarded\",\"type\":\"uint256\"}],\"internalType\":\"structILiquidationModule.LiquidationData\",\"name\":\"liquidationData\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenAmountToDeposit\",\"type\":\"uint256\"}],\"name\":\"InsufficientMarketCollateralDepositable\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenAmountToWithdraw\",\"type\":\"uint256\"}],\"name\":\"InsufficientMarketCollateralWithdrawable\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"MarketCollateralDeposited\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"MarketCollateralWithdrawn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"systemAmount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"MaximumMarketCollateralConfigured\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"configureMaximumMarketCollateral\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"}],\"name\":\"depositMarketCollateral\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getMarketCollateralAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"collateralAmountD18\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMarketCollateralValue\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getMaximumMarketCollateral\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"}],\"name\":\"withdrawMarketCollateral\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"}],\"name\":\"IncorrectMarketInterface\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"NotEnoughLiquidity\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"MarketRegistered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"}],\"name\":\"MarketSystemFeePaid\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"}],\"name\":\"MarketUsdDeposited\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"}],\"name\":\"MarketUsdWithdrawn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"minLiquidityRatio\",\"type\":\"uint256\"}],\"name\":\"SetMarketMinLiquidityRatio\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"minDelegateTime\",\"type\":\"uint32\"}],\"name\":\"SetMinDelegateTime\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"depositMarketUsd\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"maxIter\",\"type\":\"uint256\"}],\"name\":\"distributeDebtToPools\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMarketAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMarketCollateral\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMarketDebtPerShare\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"getMarketFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"depositFeeAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"withdrawFeeAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMarketMinDelegateTime\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMarketNetIssuance\",\"outputs\":[{\"internalType\":\"int128\",\"name\":\"\",\"type\":\"int128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"getMarketPoolDebtDistribution\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"sharesD18\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"totalSharesD18\",\"type\":\"uint128\"},{\"internalType\":\"int128\",\"name\":\"valuePerShareD27\",\"type\":\"int128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMarketPools\",\"outputs\":[{\"internalType\":\"uint128[]\",\"name\":\"inRangePoolIds\",\"type\":\"uint128[]\"},{\"internalType\":\"uint128[]\",\"name\":\"outRangePoolIds\",\"type\":\"uint128[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMarketReportedDebt\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMarketTotalDebt\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMinLiquidityRatio\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getOracleManager\",\"outputs\":[{\"internalType\":\"contractIOracleManager\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getUsdToken\",\"outputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getWithdrawableMarketUsd\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"isMarketCapacityLocked\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"}],\"name\":\"registerMarket\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint32\",\"name\":\"minDelegateTime\",\"type\":\"uint32\"}],\"name\":\"setMarketMinDelegateTime\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"minLiquidityRatio\",\"type\":\"uint256\"}],\"name\":\"setMinLiquidityRatio\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdrawMarketUsd\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"DeniedMulticallTarget\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"RecursiveMulticall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"getMessageSender\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"results\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"to\",\"type\":\"address[]\"},{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"},{\"internalType\":\"uint256[]\",\"name\":\"values\",\"type\":\"uint256[]\"}],\"name\":\"multicallThrough\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"results\",\"type\":\"bytes[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"allowlisted\",\"type\":\"bool\"}],\"name\":\"setAllowlistedMulticallTarget\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"poolId\",\"type\":\"uint256\"}],\"name\":\"PoolApprovedAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"poolId\",\"type\":\"uint256\"}],\"name\":\"PoolApprovedRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"poolId\",\"type\":\"uint256\"}],\"name\":\"PreferredPoolSet\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"addApprovedPool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getApprovedPools\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPreferredPool\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"removeApprovedPool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"setPreferredPool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"marketId\",\"type\":\"uint256\"}],\"name\":\"CapacityLocked\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"uint32\",\"name\":\"timeRemaining\",\"type\":\"uint32\"}],\"name\":\"MinDelegationTimeoutPending\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"PoolAlreadyExists\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"collateralLimitD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"issuanceRatioD18\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"structPoolCollateralConfiguration.Data\",\"name\":\"config\",\"type\":\"tuple\"}],\"name\":\"PoolCollateralConfigurationUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"disabled\",\"type\":\"bool\"}],\"name\":\"PoolCollateralDisabledByDefaultSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"components\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"weightD18\",\"type\":\"uint128\"},{\"internalType\":\"int128\",\"name\":\"maxDebtShareValueD18\",\"type\":\"int128\"}],\"indexed\":false,\"internalType\":\"structMarketConfiguration.Data[]\",\"name\":\"markets\",\"type\":\"tuple[]\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"PoolConfigurationSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"PoolCreated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"PoolNameUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"PoolNominationRenounced\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"PoolNominationRevoked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"nominatedOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"PoolOwnerNominated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"PoolOwnershipAccepted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"minLiquidityRatio\",\"type\":\"uint256\"}],\"name\":\"SetMinLiquidityRatio\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"acceptPoolOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"requestedPoolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"createPool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getMinLiquidityRatio\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"getNominatedPoolOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateral\",\"type\":\"address\"}],\"name\":\"getPoolCollateralIssuanceRatio\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"getPoolConfiguration\",\"outputs\":[{\"components\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"weightD18\",\"type\":\"uint128\"},{\"internalType\":\"int128\",\"name\":\"maxDebtShareValueD18\",\"type\":\"int128\"}],\"internalType\":\"structMarketConfiguration.Data[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"getPoolName\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"poolName\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"getPoolOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"nominatedOwner\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"nominatePoolOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"optionalCollateralType\",\"type\":\"address\"}],\"name\":\"rebalancePool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"renouncePoolNomination\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"revokePoolNomination\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"minLiquidityRatio\",\"type\":\"uint256\"}],\"name\":\"setMinLiquidityRatio\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"collateralLimitD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"issuanceRatioD18\",\"type\":\"uint256\"}],\"internalType\":\"structPoolCollateralConfiguration.Data\",\"name\":\"newConfig\",\"type\":\"tuple\"}],\"name\":\"setPoolCollateralConfiguration\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"bool\",\"name\":\"disabled\",\"type\":\"bool\"}],\"name\":\"setPoolCollateralDisabledByDefault\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"components\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"weightD18\",\"type\":\"uint128\"},{\"internalType\":\"int128\",\"name\":\"maxDebtShareValueD18\",\"type\":\"int128\"}],\"internalType\":\"structMarketConfiguration.Data[]\",\"name\":\"newMarketConfigurations\",\"type\":\"tuple[]\"}],\"name\":\"setPoolConfiguration\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"}],\"name\":\"setPoolName\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"OverflowUint256ToUint32\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowUint32ToInt32\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowUint64ToInt64\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"RewardDistributorNotFound\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"distributor\",\"type\":\"address\"}],\"name\":\"RewardUnavailable\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"distributor\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"RewardsClaimed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"distributor\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"start\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"}],\"name\":\"RewardsDistributed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"distributor\",\"type\":\"address\"}],\"name\":\"RewardsDistributorRegistered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"distributor\",\"type\":\"address\"}],\"name\":\"RewardsDistributorRemoved\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"distributor\",\"type\":\"address\"}],\"name\":\"claimRewards\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"start\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"duration\",\"type\":\"uint32\"}],\"name\":\"distributeRewards\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"distributor\",\"type\":\"address\"}],\"name\":\"getRewardRate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"distributor\",\"type\":\"address\"}],\"name\":\"registerRewardsDistributor\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"distributor\",\"type\":\"address\"}],\"name\":\"removeRewardsDistributor\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"updateRewards\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"newChainId\",\"type\":\"uint64\"}],\"name\":\"NewSupportedCrossChainNetwork\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"ccipRouter\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"ccipTokenPool\",\"type\":\"address\"}],\"name\":\"configureChainlinkCrossChain\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"oracleManagerAddress\",\"type\":\"address\"}],\"name\":\"configureOracleManager\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"k\",\"type\":\"bytes32\"}],\"name\":\"getConfig\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"v\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"k\",\"type\":\"bytes32\"}],\"name\":\"getConfigAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"v\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"k\",\"type\":\"bytes32\"}],\"name\":\"getConfigUint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"v\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"k\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"v\",\"type\":\"bytes32\"}],\"name\":\"setConfig\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64[]\",\"name\":\"supportedNetworks\",\"type\":\"uint64[]\"},{\"internalType\":\"uint64[]\",\"name\":\"ccipSelectors\",\"type\":\"uint64[]\"}],\"name\":\"setSupportedCrossChainNetworks\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"numRegistered\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"minDelegation\",\"type\":\"uint256\"}],\"name\":\"InsufficientDelegation\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidCollateralAmount\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"leverage\",\"type\":\"uint256\"}],\"name\":\"InvalidLeverage\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"currentCollateral\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxCollateral\",\"type\":\"uint256\"}],\"name\":\"PoolCollateralLimitExceeded\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"leverage\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"DelegationUpdated\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"newCollateralAmountD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"leverage\",\"type\":\"uint256\"}],\"name\":\"delegateCollateral\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getPosition\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"collateralAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"collateralValue\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"debt\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"collateralizationRatio\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getPositionCollateral\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getPositionCollateralRatio\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getPositionDebt\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"debt\",\"type\":\"int256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getVaultCollateral\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getVaultCollateralRatio\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getVaultDebt\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", +// CoreMetaData contains all meta data concerning the Core contract. +var CoreMetaData = &bind.MetaData{ + ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"ImplementationIsSterile\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NoChange\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"contr\",\"type\":\"address\"}],\"name\":\"NotAContract\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"NotNominated\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"Unauthorized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UpgradeSimulationFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroAddress\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldOwner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnerChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnerNominated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"self\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getImplementation\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newNominatedOwner\",\"type\":\"address\"}],\"name\":\"nominateNewOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nominatedOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceNomination\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"simulateUpgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"upgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ValueAlreadyInSet\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ValueNotInSet\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"allowAll\",\"type\":\"bool\"}],\"name\":\"FeatureFlagAllowAllSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"FeatureFlagAllowlistAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"FeatureFlagAllowlistRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"deniers\",\"type\":\"address[]\"}],\"name\":\"FeatureFlagDeniersReset\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"denyAll\",\"type\":\"bool\"}],\"name\":\"FeatureFlagDenyAllSet\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"addToFeatureFlagAllowlist\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"}],\"name\":\"getDeniers\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"}],\"name\":\"getFeatureFlagAllowAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"}],\"name\":\"getFeatureFlagAllowlist\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"}],\"name\":\"getFeatureFlagDenyAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"isFeatureAllowed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"removeFromFeatureFlagAllowlist\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"address[]\",\"name\":\"deniers\",\"type\":\"address[]\"}],\"name\":\"setDeniers\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"bool\",\"name\":\"allowAll\",\"type\":\"bool\"}],\"name\":\"setFeatureFlagAllowAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"bool\",\"name\":\"denyAll\",\"type\":\"bool\"}],\"name\":\"setFeatureFlagDenyAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"which\",\"type\":\"bytes32\"}],\"name\":\"FeatureUnavailable\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"InvalidAccountId\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"}],\"name\":\"InvalidPermission\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"origin\",\"type\":\"address\"}],\"name\":\"OnlyAccountTokenProxy\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"}],\"name\":\"PermissionDenied\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"PermissionNotGranted\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"PositionOutOfBounds\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"AccountCreated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"PermissionGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"PermissionRevoked\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"createAccount\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"requestedAccountId\",\"type\":\"uint128\"}],\"name\":\"createAccount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"getAccountLastInteraction\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"getAccountOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"getAccountPermissions\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"bytes32[]\",\"name\":\"permissions\",\"type\":\"bytes32[]\"}],\"internalType\":\"structIAccountModule.AccountPermissions[]\",\"name\":\"accountPerms\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAccountTokenAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"grantPermission\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"hasPermission\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"isAuthorized\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"notifyAccountTransfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"}],\"name\":\"renouncePermission\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"revokePermission\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"AccountNotFound\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EmptyDistribution\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"collateralValue\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"debt\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"ratio\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minRatio\",\"type\":\"uint256\"}],\"name\":\"InsufficientCollateralRatio\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"MarketNotFound\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"marketId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"poolId\",\"type\":\"uint256\"}],\"name\":\"NotFundedByPool\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowInt256ToInt128\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowInt256ToUint256\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowUint128ToInt128\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowUint256ToInt256\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowUint256ToUint128\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"updatedDebt\",\"type\":\"int256\"}],\"name\":\"DebtAssociated\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"associateDebt\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"expected\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"actual\",\"type\":\"bytes32\"}],\"name\":\"MismatchAssociatedSystemKind\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"MissingAssociatedSystem\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"kind\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"impl\",\"type\":\"address\"}],\"name\":\"AssociatedSystemSet\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"getAssociatedSystem\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"kind\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"impl\",\"type\":\"address\"}],\"name\":\"initOrUpgradeNft\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"uint8\",\"name\":\"decimals\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"impl\",\"type\":\"address\"}],\"name\":\"initOrUpgradeToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"endpoint\",\"type\":\"address\"}],\"name\":\"registerUnmanagedSystem\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"InvalidMessage\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"NotCcipRouter\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"name\":\"UnsupportedNetwork\",\"type\":\"error\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"messageId\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"sourceChainSelector\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"sender\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structCcipClient.EVMTokenAmount[]\",\"name\":\"tokenAmounts\",\"type\":\"tuple[]\"}],\"internalType\":\"structCcipClient.Any2EVMMessage\",\"name\":\"message\",\"type\":\"tuple\"}],\"name\":\"ccipReceive\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"currentTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"requiredTime\",\"type\":\"uint256\"}],\"name\":\"AccountActivityTimeoutPending\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"CollateralDepositDisabled\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CollateralNotFound\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"FailedTransfer\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountAvailableForDelegationD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountD18\",\"type\":\"uint256\"}],\"name\":\"InsufficentAvailableCollateral\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"InsufficientAccountCollateral\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"required\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"existing\",\"type\":\"uint256\"}],\"name\":\"InsufficientAllowance\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"parameter\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"reason\",\"type\":\"string\"}],\"name\":\"InvalidParameter\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowUint256ToUint64\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"decimals\",\"type\":\"uint8\"}],\"name\":\"PrecisionLost\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"expireTimestamp\",\"type\":\"uint64\"}],\"name\":\"CollateralLockCreated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"expireTimestamp\",\"type\":\"uint64\"}],\"name\":\"CollateralLockExpired\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"Deposited\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"Withdrawn\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"offset\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"count\",\"type\":\"uint256\"}],\"name\":\"cleanExpiredLocks\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"cleared\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"expireTimestamp\",\"type\":\"uint64\"}],\"name\":\"createLock\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getAccountAvailableCollateral\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getAccountCollateral\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"totalDeposited\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalAssigned\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalLocked\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"offset\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"count\",\"type\":\"uint256\"}],\"name\":\"getLocks\",\"outputs\":[{\"components\":[{\"internalType\":\"uint128\",\"name\":\"amountD18\",\"type\":\"uint128\"},{\"internalType\":\"uint64\",\"name\":\"lockExpirationTime\",\"type\":\"uint64\"}],\"internalType\":\"structCollateralLock.Data[]\",\"name\":\"locks\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"depositingEnabled\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"issuanceRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidationRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidationRewardD18\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"oracleNodeId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minDelegationD18\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"structCollateralConfiguration.Data\",\"name\":\"config\",\"type\":\"tuple\"}],\"name\":\"CollateralConfigured\",\"type\":\"event\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"depositingEnabled\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"issuanceRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidationRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidationRewardD18\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"oracleNodeId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minDelegationD18\",\"type\":\"uint256\"}],\"internalType\":\"structCollateralConfiguration.Data\",\"name\":\"config\",\"type\":\"tuple\"}],\"name\":\"configureCollateral\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getCollateralConfiguration\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"depositingEnabled\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"issuanceRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidationRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidationRewardD18\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"oracleNodeId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minDelegationD18\",\"type\":\"uint256\"}],\"internalType\":\"structCollateralConfiguration.Data\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"hideDisabled\",\"type\":\"bool\"}],\"name\":\"getCollateralConfigurations\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"depositingEnabled\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"issuanceRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidationRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidationRewardD18\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"oracleNodeId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minDelegationD18\",\"type\":\"uint256\"}],\"internalType\":\"structCollateralConfiguration.Data[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"collateralAmount\",\"type\":\"uint256\"}],\"name\":\"getCollateralPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"requiredAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"availableAmount\",\"type\":\"uint256\"}],\"name\":\"InsufficientCcipFee\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"destChainId\",\"type\":\"uint64\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"TransferCrossChainInitiated\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"destChainId\",\"type\":\"uint64\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferCrossChain\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"gasTokenUsed\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int256\",\"name\":\"currentDebt\",\"type\":\"int256\"}],\"name\":\"InsufficientDebt\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"PoolNotFound\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"}],\"name\":\"IssuanceFeePaid\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"UsdBurned\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"UsdMinted\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"burnUsd\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"mintUsd\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"CannotScaleEmptyMapping\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"collateralValue\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"debt\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"currentCRatio\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"cratio\",\"type\":\"uint256\"}],\"name\":\"IneligibleForLiquidation\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InsufficientMappedAmount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MustBeVaultLiquidated\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowInt128ToUint128\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"debtLiquidated\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"collateralLiquidated\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountRewarded\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"structILiquidationModule.LiquidationData\",\"name\":\"liquidationData\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidateAsAccountId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"Liquidation\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"debtLiquidated\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"collateralLiquidated\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountRewarded\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"structILiquidationModule.LiquidationData\",\"name\":\"liquidationData\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidateAsAccountId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"VaultLiquidation\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"isPositionLiquidatable\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"isVaultLiquidatable\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"liquidateAsAccountId\",\"type\":\"uint128\"}],\"name\":\"liquidate\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"debtLiquidated\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"collateralLiquidated\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountRewarded\",\"type\":\"uint256\"}],\"internalType\":\"structILiquidationModule.LiquidationData\",\"name\":\"liquidationData\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"liquidateAsAccountId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"maxUsd\",\"type\":\"uint256\"}],\"name\":\"liquidateVault\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"debtLiquidated\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"collateralLiquidated\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountRewarded\",\"type\":\"uint256\"}],\"internalType\":\"structILiquidationModule.LiquidationData\",\"name\":\"liquidationData\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenAmountToDeposit\",\"type\":\"uint256\"}],\"name\":\"InsufficientMarketCollateralDepositable\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenAmountToWithdraw\",\"type\":\"uint256\"}],\"name\":\"InsufficientMarketCollateralWithdrawable\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"MarketCollateralDeposited\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"MarketCollateralWithdrawn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"systemAmount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"MaximumMarketCollateralConfigured\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"configureMaximumMarketCollateral\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"}],\"name\":\"depositMarketCollateral\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getMarketCollateralAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"collateralAmountD18\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMarketCollateralValue\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getMaximumMarketCollateral\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"}],\"name\":\"withdrawMarketCollateral\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"}],\"name\":\"IncorrectMarketInterface\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"NotEnoughLiquidity\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"MarketRegistered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"}],\"name\":\"MarketSystemFeePaid\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"}],\"name\":\"MarketUsdDeposited\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"}],\"name\":\"MarketUsdWithdrawn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"minLiquidityRatio\",\"type\":\"uint256\"}],\"name\":\"SetMarketMinLiquidityRatio\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"minDelegateTime\",\"type\":\"uint32\"}],\"name\":\"SetMinDelegateTime\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"depositMarketUsd\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"maxIter\",\"type\":\"uint256\"}],\"name\":\"distributeDebtToPools\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMarketAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMarketCollateral\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMarketDebtPerShare\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"getMarketFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"depositFeeAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"withdrawFeeAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMarketMinDelegateTime\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMarketNetIssuance\",\"outputs\":[{\"internalType\":\"int128\",\"name\":\"\",\"type\":\"int128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"getMarketPoolDebtDistribution\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"sharesD18\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"totalSharesD18\",\"type\":\"uint128\"},{\"internalType\":\"int128\",\"name\":\"valuePerShareD27\",\"type\":\"int128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMarketPools\",\"outputs\":[{\"internalType\":\"uint128[]\",\"name\":\"inRangePoolIds\",\"type\":\"uint128[]\"},{\"internalType\":\"uint128[]\",\"name\":\"outRangePoolIds\",\"type\":\"uint128[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMarketReportedDebt\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMarketTotalDebt\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMinLiquidityRatio\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getOracleManager\",\"outputs\":[{\"internalType\":\"contractIOracleManager\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getUsdToken\",\"outputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getWithdrawableMarketUsd\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"isMarketCapacityLocked\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"}],\"name\":\"registerMarket\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint32\",\"name\":\"minDelegateTime\",\"type\":\"uint32\"}],\"name\":\"setMarketMinDelegateTime\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"minLiquidityRatio\",\"type\":\"uint256\"}],\"name\":\"setMinLiquidityRatio\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdrawMarketUsd\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"DeniedMulticallTarget\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"RecursiveMulticall\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"results\",\"type\":\"bytes[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"poolId\",\"type\":\"uint256\"}],\"name\":\"PoolApprovedAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"poolId\",\"type\":\"uint256\"}],\"name\":\"PoolApprovedRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"poolId\",\"type\":\"uint256\"}],\"name\":\"PreferredPoolSet\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"addApprovedPool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getApprovedPools\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPreferredPool\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"removeApprovedPool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"setPreferredPool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"marketId\",\"type\":\"uint256\"}],\"name\":\"CapacityLocked\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"uint32\",\"name\":\"timeRemaining\",\"type\":\"uint32\"}],\"name\":\"MinDelegationTimeoutPending\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"PoolAlreadyExists\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"collateralLimitD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"issuanceRatioD18\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"structPoolCollateralConfiguration.Data\",\"name\":\"config\",\"type\":\"tuple\"}],\"name\":\"PoolCollateralConfigurationUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"disabled\",\"type\":\"bool\"}],\"name\":\"PoolCollateralDisabledByDefaultSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"components\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"weightD18\",\"type\":\"uint128\"},{\"internalType\":\"int128\",\"name\":\"maxDebtShareValueD18\",\"type\":\"int128\"}],\"indexed\":false,\"internalType\":\"structMarketConfiguration.Data[]\",\"name\":\"markets\",\"type\":\"tuple[]\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"PoolConfigurationSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"PoolCreated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"PoolNameUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"PoolNominationRenounced\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"PoolNominationRevoked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"nominatedOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"PoolOwnerNominated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"PoolOwnershipAccepted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"minLiquidityRatio\",\"type\":\"uint256\"}],\"name\":\"SetMinLiquidityRatio\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"acceptPoolOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"requestedPoolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"createPool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getMinLiquidityRatio\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"getNominatedPoolOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateral\",\"type\":\"address\"}],\"name\":\"getPoolCollateralIssuanceRatio\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"getPoolConfiguration\",\"outputs\":[{\"components\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"weightD18\",\"type\":\"uint128\"},{\"internalType\":\"int128\",\"name\":\"maxDebtShareValueD18\",\"type\":\"int128\"}],\"internalType\":\"structMarketConfiguration.Data[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"getPoolName\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"poolName\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"getPoolOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"nominatedOwner\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"nominatePoolOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"optionalCollateralType\",\"type\":\"address\"}],\"name\":\"rebalancePool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"renouncePoolNomination\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"revokePoolNomination\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"minLiquidityRatio\",\"type\":\"uint256\"}],\"name\":\"setMinLiquidityRatio\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"collateralLimitD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"issuanceRatioD18\",\"type\":\"uint256\"}],\"internalType\":\"structPoolCollateralConfiguration.Data\",\"name\":\"newConfig\",\"type\":\"tuple\"}],\"name\":\"setPoolCollateralConfiguration\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"bool\",\"name\":\"disabled\",\"type\":\"bool\"}],\"name\":\"setPoolCollateralDisabledByDefault\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"components\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"weightD18\",\"type\":\"uint128\"},{\"internalType\":\"int128\",\"name\":\"maxDebtShareValueD18\",\"type\":\"int128\"}],\"internalType\":\"structMarketConfiguration.Data[]\",\"name\":\"newMarketConfigurations\",\"type\":\"tuple[]\"}],\"name\":\"setPoolConfiguration\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"}],\"name\":\"setPoolName\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"OverflowUint256ToUint32\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowUint32ToInt32\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowUint64ToInt64\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"RewardDistributorNotFound\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"distributor\",\"type\":\"address\"}],\"name\":\"RewardUnavailable\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"distributor\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"RewardsClaimed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"distributor\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"start\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"}],\"name\":\"RewardsDistributed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"distributor\",\"type\":\"address\"}],\"name\":\"RewardsDistributorRegistered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"distributor\",\"type\":\"address\"}],\"name\":\"RewardsDistributorRemoved\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"distributor\",\"type\":\"address\"}],\"name\":\"claimRewards\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"start\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"duration\",\"type\":\"uint32\"}],\"name\":\"distributeRewards\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"distributor\",\"type\":\"address\"}],\"name\":\"getRewardRate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"distributor\",\"type\":\"address\"}],\"name\":\"registerRewardsDistributor\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"distributor\",\"type\":\"address\"}],\"name\":\"removeRewardsDistributor\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"updateRewards\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"newChainId\",\"type\":\"uint64\"}],\"name\":\"NewSupportedCrossChainNetwork\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"ccipRouter\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"ccipTokenPool\",\"type\":\"address\"}],\"name\":\"configureChainlinkCrossChain\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"oracleManagerAddress\",\"type\":\"address\"}],\"name\":\"configureOracleManager\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"k\",\"type\":\"bytes32\"}],\"name\":\"getConfig\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"v\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"k\",\"type\":\"bytes32\"}],\"name\":\"getConfigAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"v\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"k\",\"type\":\"bytes32\"}],\"name\":\"getConfigUint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"v\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTrustedForwarder\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"forwarder\",\"type\":\"address\"}],\"name\":\"isTrustedForwarder\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"k\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"v\",\"type\":\"bytes32\"}],\"name\":\"setConfig\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64[]\",\"name\":\"supportedNetworks\",\"type\":\"uint64[]\"},{\"internalType\":\"uint64[]\",\"name\":\"ccipSelectors\",\"type\":\"uint64[]\"}],\"name\":\"setSupportedCrossChainNetworks\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"numRegistered\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"minDelegation\",\"type\":\"uint256\"}],\"name\":\"InsufficientDelegation\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidCollateralAmount\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"leverage\",\"type\":\"uint256\"}],\"name\":\"InvalidLeverage\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"currentCollateral\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxCollateral\",\"type\":\"uint256\"}],\"name\":\"PoolCollateralLimitExceeded\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"leverage\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"DelegationUpdated\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"newCollateralAmountD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"leverage\",\"type\":\"uint256\"}],\"name\":\"delegateCollateral\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getPosition\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"collateralAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"collateralValue\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"debt\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"collateralizationRatio\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getPositionCollateral\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getPositionCollateralRatio\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getPositionDebt\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"debt\",\"type\":\"int256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getVaultCollateral\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getVaultCollateralRatio\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getVaultDebt\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", } -// CoreGoerliABI is the input ABI used to generate the binding from. -// Deprecated: Use CoreGoerliMetaData.ABI instead. -var CoreGoerliABI = CoreGoerliMetaData.ABI +// CoreABI is the input ABI used to generate the binding from. +// Deprecated: Use CoreMetaData.ABI instead. +var CoreABI = CoreMetaData.ABI -// CoreGoerli is an auto generated Go binding around an Ethereum contract. -type CoreGoerli struct { - CoreGoerliCaller // Read-only binding to the contract - CoreGoerliTransactor // Write-only binding to the contract - CoreGoerliFilterer // Log filterer for contract events +// Core is an auto generated Go binding around an Ethereum contract. +type Core struct { + CoreCaller // Read-only binding to the contract + CoreTransactor // Write-only binding to the contract + CoreFilterer // Log filterer for contract events } -// CoreGoerliCaller is an auto generated read-only Go binding around an Ethereum contract. -type CoreGoerliCaller struct { +// CoreCaller is an auto generated read-only Go binding around an Ethereum contract. +type CoreCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// CoreGoerliTransactor is an auto generated write-only Go binding around an Ethereum contract. -type CoreGoerliTransactor struct { +// CoreTransactor is an auto generated write-only Go binding around an Ethereum contract. +type CoreTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// CoreGoerliFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type CoreGoerliFilterer struct { +// CoreFilterer is an auto generated log filtering Go binding around an Ethereum contract events. +type CoreFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// CoreGoerliSession is an auto generated Go binding around an Ethereum contract, +// CoreSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. -type CoreGoerliSession struct { - Contract *CoreGoerli // Generic contract binding to set the session for +type CoreSession struct { + Contract *Core // 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 } -// CoreGoerliCallerSession is an auto generated read-only Go binding around an Ethereum contract, +// CoreCallerSession is an auto generated read-only Go binding around an Ethereum contract, // with pre-set call options. -type CoreGoerliCallerSession struct { - Contract *CoreGoerliCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session +type CoreCallerSession struct { + Contract *CoreCaller // Generic contract caller binding to set the session for + CallOpts bind.CallOpts // Call options to use throughout this session } -// CoreGoerliTransactorSession is an auto generated write-only Go binding around an Ethereum contract, +// CoreTransactorSession is an auto generated write-only Go binding around an Ethereum contract, // with pre-set transact options. -type CoreGoerliTransactorSession struct { - Contract *CoreGoerliTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session +type CoreTransactorSession struct { + Contract *CoreTransactor // Generic contract transactor binding to set the session for + TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session } -// CoreGoerliRaw is an auto generated low-level Go binding around an Ethereum contract. -type CoreGoerliRaw struct { - Contract *CoreGoerli // Generic contract binding to access the raw methods on +// CoreRaw is an auto generated low-level Go binding around an Ethereum contract. +type CoreRaw struct { + Contract *Core // Generic contract binding to access the raw methods on } -// CoreGoerliCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type CoreGoerliCallerRaw struct { - Contract *CoreGoerliCaller // Generic read-only contract binding to access the raw methods on +// CoreCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. +type CoreCallerRaw struct { + Contract *CoreCaller // Generic read-only contract binding to access the raw methods on } -// CoreGoerliTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type CoreGoerliTransactorRaw struct { - Contract *CoreGoerliTransactor // Generic write-only contract binding to access the raw methods on +// CoreTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. +type CoreTransactorRaw struct { + Contract *CoreTransactor // Generic write-only contract binding to access the raw methods on } -// NewCoreGoerli creates a new instance of CoreGoerli, bound to a specific deployed contract. -func NewCoreGoerli(address common.Address, backend bind.ContractBackend) (*CoreGoerli, error) { - contract, err := bindCoreGoerli(address, backend, backend, backend) +// NewCore creates a new instance of Core, bound to a specific deployed contract. +func NewCore(address common.Address, backend bind.ContractBackend) (*Core, error) { + contract, err := bindCore(address, backend, backend, backend) if err != nil { return nil, err } - return &CoreGoerli{CoreGoerliCaller: CoreGoerliCaller{contract: contract}, CoreGoerliTransactor: CoreGoerliTransactor{contract: contract}, CoreGoerliFilterer: CoreGoerliFilterer{contract: contract}}, nil + return &Core{CoreCaller: CoreCaller{contract: contract}, CoreTransactor: CoreTransactor{contract: contract}, CoreFilterer: CoreFilterer{contract: contract}}, nil } -// NewCoreGoerliCaller creates a new read-only instance of CoreGoerli, bound to a specific deployed contract. -func NewCoreGoerliCaller(address common.Address, caller bind.ContractCaller) (*CoreGoerliCaller, error) { - contract, err := bindCoreGoerli(address, caller, nil, nil) +// NewCoreCaller creates a new read-only instance of Core, bound to a specific deployed contract. +func NewCoreCaller(address common.Address, caller bind.ContractCaller) (*CoreCaller, error) { + contract, err := bindCore(address, caller, nil, nil) if err != nil { return nil, err } - return &CoreGoerliCaller{contract: contract}, nil + return &CoreCaller{contract: contract}, nil } -// NewCoreGoerliTransactor creates a new write-only instance of CoreGoerli, bound to a specific deployed contract. -func NewCoreGoerliTransactor(address common.Address, transactor bind.ContractTransactor) (*CoreGoerliTransactor, error) { - contract, err := bindCoreGoerli(address, nil, transactor, nil) +// NewCoreTransactor creates a new write-only instance of Core, bound to a specific deployed contract. +func NewCoreTransactor(address common.Address, transactor bind.ContractTransactor) (*CoreTransactor, error) { + contract, err := bindCore(address, nil, transactor, nil) if err != nil { return nil, err } - return &CoreGoerliTransactor{contract: contract}, nil + return &CoreTransactor{contract: contract}, nil } -// NewCoreGoerliFilterer creates a new log filterer instance of CoreGoerli, bound to a specific deployed contract. -func NewCoreGoerliFilterer(address common.Address, filterer bind.ContractFilterer) (*CoreGoerliFilterer, error) { - contract, err := bindCoreGoerli(address, nil, nil, filterer) +// NewCoreFilterer creates a new log filterer instance of Core, bound to a specific deployed contract. +func NewCoreFilterer(address common.Address, filterer bind.ContractFilterer) (*CoreFilterer, error) { + contract, err := bindCore(address, nil, nil, filterer) if err != nil { return nil, err } - return &CoreGoerliFilterer{contract: contract}, nil + return &CoreFilterer{contract: contract}, nil } -// bindCoreGoerli binds a generic wrapper to an already deployed contract. -func bindCoreGoerli(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := CoreGoerliMetaData.GetAbi() +// bindCore binds a generic wrapper to an already deployed contract. +func bindCore(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { + parsed, err := CoreMetaData.GetAbi() if err != nil { return nil, err } @@ -204,46 +204,46 @@ func bindCoreGoerli(address common.Address, caller bind.ContractCaller, transact // 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 (_CoreGoerli *CoreGoerliRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _CoreGoerli.Contract.CoreGoerliCaller.contract.Call(opts, result, method, params...) +func (_Core *CoreRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { + return _Core.Contract.CoreCaller.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. -func (_CoreGoerli *CoreGoerliRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _CoreGoerli.Contract.CoreGoerliTransactor.contract.Transfer(opts) +func (_Core *CoreRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { + return _Core.Contract.CoreTransactor.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. -func (_CoreGoerli *CoreGoerliRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _CoreGoerli.Contract.CoreGoerliTransactor.contract.Transact(opts, method, params...) +func (_Core *CoreRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { + return _Core.Contract.CoreTransactor.contract.Transact(opts, method, params...) } // Call invokes the (constant) contract method with params as input values and // sets the output to result. The result type might be a single field for simple // returns, a slice of interfaces for anonymous returns and a struct for named // returns. -func (_CoreGoerli *CoreGoerliCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _CoreGoerli.Contract.contract.Call(opts, result, method, params...) +func (_Core *CoreCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { + return _Core.Contract.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. -func (_CoreGoerli *CoreGoerliTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _CoreGoerli.Contract.contract.Transfer(opts) +func (_Core *CoreTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { + return _Core.Contract.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. -func (_CoreGoerli *CoreGoerliTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _CoreGoerli.Contract.contract.Transact(opts, method, params...) +func (_Core *CoreTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { + return _Core.Contract.contract.Transact(opts, method, params...) } // GetAccountAvailableCollateral is a free data retrieval call binding the contract method 0x927482ff. // // Solidity: function getAccountAvailableCollateral(uint128 accountId, address collateralType) view returns(uint256) -func (_CoreGoerli *CoreGoerliCaller) GetAccountAvailableCollateral(opts *bind.CallOpts, accountId *big.Int, collateralType common.Address) (*big.Int, error) { +func (_Core *CoreCaller) GetAccountAvailableCollateral(opts *bind.CallOpts, accountId *big.Int, collateralType common.Address) (*big.Int, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getAccountAvailableCollateral", accountId, collateralType) + err := _Core.contract.Call(opts, &out, "getAccountAvailableCollateral", accountId, collateralType) if err != nil { return *new(*big.Int), err @@ -258,27 +258,27 @@ func (_CoreGoerli *CoreGoerliCaller) GetAccountAvailableCollateral(opts *bind.Ca // GetAccountAvailableCollateral is a free data retrieval call binding the contract method 0x927482ff. // // Solidity: function getAccountAvailableCollateral(uint128 accountId, address collateralType) view returns(uint256) -func (_CoreGoerli *CoreGoerliSession) GetAccountAvailableCollateral(accountId *big.Int, collateralType common.Address) (*big.Int, error) { - return _CoreGoerli.Contract.GetAccountAvailableCollateral(&_CoreGoerli.CallOpts, accountId, collateralType) +func (_Core *CoreSession) GetAccountAvailableCollateral(accountId *big.Int, collateralType common.Address) (*big.Int, error) { + return _Core.Contract.GetAccountAvailableCollateral(&_Core.CallOpts, accountId, collateralType) } // GetAccountAvailableCollateral is a free data retrieval call binding the contract method 0x927482ff. // // Solidity: function getAccountAvailableCollateral(uint128 accountId, address collateralType) view returns(uint256) -func (_CoreGoerli *CoreGoerliCallerSession) GetAccountAvailableCollateral(accountId *big.Int, collateralType common.Address) (*big.Int, error) { - return _CoreGoerli.Contract.GetAccountAvailableCollateral(&_CoreGoerli.CallOpts, accountId, collateralType) +func (_Core *CoreCallerSession) GetAccountAvailableCollateral(accountId *big.Int, collateralType common.Address) (*big.Int, error) { + return _Core.Contract.GetAccountAvailableCollateral(&_Core.CallOpts, accountId, collateralType) } // GetAccountCollateral is a free data retrieval call binding the contract method 0xef45148e. // // Solidity: function getAccountCollateral(uint128 accountId, address collateralType) view returns(uint256 totalDeposited, uint256 totalAssigned, uint256 totalLocked) -func (_CoreGoerli *CoreGoerliCaller) GetAccountCollateral(opts *bind.CallOpts, accountId *big.Int, collateralType common.Address) (struct { +func (_Core *CoreCaller) GetAccountCollateral(opts *bind.CallOpts, accountId *big.Int, collateralType common.Address) (struct { TotalDeposited *big.Int TotalAssigned *big.Int TotalLocked *big.Int }, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getAccountCollateral", accountId, collateralType) + err := _Core.contract.Call(opts, &out, "getAccountCollateral", accountId, collateralType) outstruct := new(struct { TotalDeposited *big.Int @@ -300,31 +300,31 @@ func (_CoreGoerli *CoreGoerliCaller) GetAccountCollateral(opts *bind.CallOpts, a // GetAccountCollateral is a free data retrieval call binding the contract method 0xef45148e. // // Solidity: function getAccountCollateral(uint128 accountId, address collateralType) view returns(uint256 totalDeposited, uint256 totalAssigned, uint256 totalLocked) -func (_CoreGoerli *CoreGoerliSession) GetAccountCollateral(accountId *big.Int, collateralType common.Address) (struct { +func (_Core *CoreSession) GetAccountCollateral(accountId *big.Int, collateralType common.Address) (struct { TotalDeposited *big.Int TotalAssigned *big.Int TotalLocked *big.Int }, error) { - return _CoreGoerli.Contract.GetAccountCollateral(&_CoreGoerli.CallOpts, accountId, collateralType) + return _Core.Contract.GetAccountCollateral(&_Core.CallOpts, accountId, collateralType) } // GetAccountCollateral is a free data retrieval call binding the contract method 0xef45148e. // // Solidity: function getAccountCollateral(uint128 accountId, address collateralType) view returns(uint256 totalDeposited, uint256 totalAssigned, uint256 totalLocked) -func (_CoreGoerli *CoreGoerliCallerSession) GetAccountCollateral(accountId *big.Int, collateralType common.Address) (struct { +func (_Core *CoreCallerSession) GetAccountCollateral(accountId *big.Int, collateralType common.Address) (struct { TotalDeposited *big.Int TotalAssigned *big.Int TotalLocked *big.Int }, error) { - return _CoreGoerli.Contract.GetAccountCollateral(&_CoreGoerli.CallOpts, accountId, collateralType) + return _Core.Contract.GetAccountCollateral(&_Core.CallOpts, accountId, collateralType) } // GetAccountLastInteraction is a free data retrieval call binding the contract method 0x1b5dccdb. // // Solidity: function getAccountLastInteraction(uint128 accountId) view returns(uint256) -func (_CoreGoerli *CoreGoerliCaller) GetAccountLastInteraction(opts *bind.CallOpts, accountId *big.Int) (*big.Int, error) { +func (_Core *CoreCaller) GetAccountLastInteraction(opts *bind.CallOpts, accountId *big.Int) (*big.Int, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getAccountLastInteraction", accountId) + err := _Core.contract.Call(opts, &out, "getAccountLastInteraction", accountId) if err != nil { return *new(*big.Int), err @@ -339,23 +339,23 @@ func (_CoreGoerli *CoreGoerliCaller) GetAccountLastInteraction(opts *bind.CallOp // GetAccountLastInteraction is a free data retrieval call binding the contract method 0x1b5dccdb. // // Solidity: function getAccountLastInteraction(uint128 accountId) view returns(uint256) -func (_CoreGoerli *CoreGoerliSession) GetAccountLastInteraction(accountId *big.Int) (*big.Int, error) { - return _CoreGoerli.Contract.GetAccountLastInteraction(&_CoreGoerli.CallOpts, accountId) +func (_Core *CoreSession) GetAccountLastInteraction(accountId *big.Int) (*big.Int, error) { + return _Core.Contract.GetAccountLastInteraction(&_Core.CallOpts, accountId) } // GetAccountLastInteraction is a free data retrieval call binding the contract method 0x1b5dccdb. // // Solidity: function getAccountLastInteraction(uint128 accountId) view returns(uint256) -func (_CoreGoerli *CoreGoerliCallerSession) GetAccountLastInteraction(accountId *big.Int) (*big.Int, error) { - return _CoreGoerli.Contract.GetAccountLastInteraction(&_CoreGoerli.CallOpts, accountId) +func (_Core *CoreCallerSession) GetAccountLastInteraction(accountId *big.Int) (*big.Int, error) { + return _Core.Contract.GetAccountLastInteraction(&_Core.CallOpts, accountId) } // GetAccountOwner is a free data retrieval call binding the contract method 0xbf60c31d. // // Solidity: function getAccountOwner(uint128 accountId) view returns(address) -func (_CoreGoerli *CoreGoerliCaller) GetAccountOwner(opts *bind.CallOpts, accountId *big.Int) (common.Address, error) { +func (_Core *CoreCaller) GetAccountOwner(opts *bind.CallOpts, accountId *big.Int) (common.Address, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getAccountOwner", accountId) + err := _Core.contract.Call(opts, &out, "getAccountOwner", accountId) if err != nil { return *new(common.Address), err @@ -370,23 +370,23 @@ func (_CoreGoerli *CoreGoerliCaller) GetAccountOwner(opts *bind.CallOpts, accoun // GetAccountOwner is a free data retrieval call binding the contract method 0xbf60c31d. // // Solidity: function getAccountOwner(uint128 accountId) view returns(address) -func (_CoreGoerli *CoreGoerliSession) GetAccountOwner(accountId *big.Int) (common.Address, error) { - return _CoreGoerli.Contract.GetAccountOwner(&_CoreGoerli.CallOpts, accountId) +func (_Core *CoreSession) GetAccountOwner(accountId *big.Int) (common.Address, error) { + return _Core.Contract.GetAccountOwner(&_Core.CallOpts, accountId) } // GetAccountOwner is a free data retrieval call binding the contract method 0xbf60c31d. // // Solidity: function getAccountOwner(uint128 accountId) view returns(address) -func (_CoreGoerli *CoreGoerliCallerSession) GetAccountOwner(accountId *big.Int) (common.Address, error) { - return _CoreGoerli.Contract.GetAccountOwner(&_CoreGoerli.CallOpts, accountId) +func (_Core *CoreCallerSession) GetAccountOwner(accountId *big.Int) (common.Address, error) { + return _Core.Contract.GetAccountOwner(&_Core.CallOpts, accountId) } // GetAccountPermissions is a free data retrieval call binding the contract method 0xa796fecd. // // Solidity: function getAccountPermissions(uint128 accountId) view returns((address,bytes32[])[] accountPerms) -func (_CoreGoerli *CoreGoerliCaller) GetAccountPermissions(opts *bind.CallOpts, accountId *big.Int) ([]IAccountModuleAccountPermissions, error) { +func (_Core *CoreCaller) GetAccountPermissions(opts *bind.CallOpts, accountId *big.Int) ([]IAccountModuleAccountPermissions, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getAccountPermissions", accountId) + err := _Core.contract.Call(opts, &out, "getAccountPermissions", accountId) if err != nil { return *new([]IAccountModuleAccountPermissions), err @@ -401,23 +401,23 @@ func (_CoreGoerli *CoreGoerliCaller) GetAccountPermissions(opts *bind.CallOpts, // GetAccountPermissions is a free data retrieval call binding the contract method 0xa796fecd. // // Solidity: function getAccountPermissions(uint128 accountId) view returns((address,bytes32[])[] accountPerms) -func (_CoreGoerli *CoreGoerliSession) GetAccountPermissions(accountId *big.Int) ([]IAccountModuleAccountPermissions, error) { - return _CoreGoerli.Contract.GetAccountPermissions(&_CoreGoerli.CallOpts, accountId) +func (_Core *CoreSession) GetAccountPermissions(accountId *big.Int) ([]IAccountModuleAccountPermissions, error) { + return _Core.Contract.GetAccountPermissions(&_Core.CallOpts, accountId) } // GetAccountPermissions is a free data retrieval call binding the contract method 0xa796fecd. // // Solidity: function getAccountPermissions(uint128 accountId) view returns((address,bytes32[])[] accountPerms) -func (_CoreGoerli *CoreGoerliCallerSession) GetAccountPermissions(accountId *big.Int) ([]IAccountModuleAccountPermissions, error) { - return _CoreGoerli.Contract.GetAccountPermissions(&_CoreGoerli.CallOpts, accountId) +func (_Core *CoreCallerSession) GetAccountPermissions(accountId *big.Int) ([]IAccountModuleAccountPermissions, error) { + return _Core.Contract.GetAccountPermissions(&_Core.CallOpts, accountId) } // GetAccountTokenAddress is a free data retrieval call binding the contract method 0xa148bf10. // // Solidity: function getAccountTokenAddress() view returns(address) -func (_CoreGoerli *CoreGoerliCaller) GetAccountTokenAddress(opts *bind.CallOpts) (common.Address, error) { +func (_Core *CoreCaller) GetAccountTokenAddress(opts *bind.CallOpts) (common.Address, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getAccountTokenAddress") + err := _Core.contract.Call(opts, &out, "getAccountTokenAddress") if err != nil { return *new(common.Address), err @@ -432,23 +432,23 @@ func (_CoreGoerli *CoreGoerliCaller) GetAccountTokenAddress(opts *bind.CallOpts) // GetAccountTokenAddress is a free data retrieval call binding the contract method 0xa148bf10. // // Solidity: function getAccountTokenAddress() view returns(address) -func (_CoreGoerli *CoreGoerliSession) GetAccountTokenAddress() (common.Address, error) { - return _CoreGoerli.Contract.GetAccountTokenAddress(&_CoreGoerli.CallOpts) +func (_Core *CoreSession) GetAccountTokenAddress() (common.Address, error) { + return _Core.Contract.GetAccountTokenAddress(&_Core.CallOpts) } // GetAccountTokenAddress is a free data retrieval call binding the contract method 0xa148bf10. // // Solidity: function getAccountTokenAddress() view returns(address) -func (_CoreGoerli *CoreGoerliCallerSession) GetAccountTokenAddress() (common.Address, error) { - return _CoreGoerli.Contract.GetAccountTokenAddress(&_CoreGoerli.CallOpts) +func (_Core *CoreCallerSession) GetAccountTokenAddress() (common.Address, error) { + return _Core.Contract.GetAccountTokenAddress(&_Core.CallOpts) } // GetApprovedPools is a free data retrieval call binding the contract method 0x48741626. // // Solidity: function getApprovedPools() view returns(uint256[]) -func (_CoreGoerli *CoreGoerliCaller) GetApprovedPools(opts *bind.CallOpts) ([]*big.Int, error) { +func (_Core *CoreCaller) GetApprovedPools(opts *bind.CallOpts) ([]*big.Int, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getApprovedPools") + err := _Core.contract.Call(opts, &out, "getApprovedPools") if err != nil { return *new([]*big.Int), err @@ -463,26 +463,26 @@ func (_CoreGoerli *CoreGoerliCaller) GetApprovedPools(opts *bind.CallOpts) ([]*b // GetApprovedPools is a free data retrieval call binding the contract method 0x48741626. // // Solidity: function getApprovedPools() view returns(uint256[]) -func (_CoreGoerli *CoreGoerliSession) GetApprovedPools() ([]*big.Int, error) { - return _CoreGoerli.Contract.GetApprovedPools(&_CoreGoerli.CallOpts) +func (_Core *CoreSession) GetApprovedPools() ([]*big.Int, error) { + return _Core.Contract.GetApprovedPools(&_Core.CallOpts) } // GetApprovedPools is a free data retrieval call binding the contract method 0x48741626. // // Solidity: function getApprovedPools() view returns(uint256[]) -func (_CoreGoerli *CoreGoerliCallerSession) GetApprovedPools() ([]*big.Int, error) { - return _CoreGoerli.Contract.GetApprovedPools(&_CoreGoerli.CallOpts) +func (_Core *CoreCallerSession) GetApprovedPools() ([]*big.Int, error) { + return _Core.Contract.GetApprovedPools(&_Core.CallOpts) } // GetAssociatedSystem is a free data retrieval call binding the contract method 0x60988e09. // // Solidity: function getAssociatedSystem(bytes32 id) view returns(address addr, bytes32 kind) -func (_CoreGoerli *CoreGoerliCaller) GetAssociatedSystem(opts *bind.CallOpts, id [32]byte) (struct { +func (_Core *CoreCaller) GetAssociatedSystem(opts *bind.CallOpts, id [32]byte) (struct { Addr common.Address Kind [32]byte }, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getAssociatedSystem", id) + err := _Core.contract.Call(opts, &out, "getAssociatedSystem", id) outstruct := new(struct { Addr common.Address @@ -502,29 +502,29 @@ func (_CoreGoerli *CoreGoerliCaller) GetAssociatedSystem(opts *bind.CallOpts, id // GetAssociatedSystem is a free data retrieval call binding the contract method 0x60988e09. // // Solidity: function getAssociatedSystem(bytes32 id) view returns(address addr, bytes32 kind) -func (_CoreGoerli *CoreGoerliSession) GetAssociatedSystem(id [32]byte) (struct { +func (_Core *CoreSession) GetAssociatedSystem(id [32]byte) (struct { Addr common.Address Kind [32]byte }, error) { - return _CoreGoerli.Contract.GetAssociatedSystem(&_CoreGoerli.CallOpts, id) + return _Core.Contract.GetAssociatedSystem(&_Core.CallOpts, id) } // GetAssociatedSystem is a free data retrieval call binding the contract method 0x60988e09. // // Solidity: function getAssociatedSystem(bytes32 id) view returns(address addr, bytes32 kind) -func (_CoreGoerli *CoreGoerliCallerSession) GetAssociatedSystem(id [32]byte) (struct { +func (_Core *CoreCallerSession) GetAssociatedSystem(id [32]byte) (struct { Addr common.Address Kind [32]byte }, error) { - return _CoreGoerli.Contract.GetAssociatedSystem(&_CoreGoerli.CallOpts, id) + return _Core.Contract.GetAssociatedSystem(&_Core.CallOpts, id) } // GetCollateralConfiguration is a free data retrieval call binding the contract method 0xdc0b3f52. // // Solidity: function getCollateralConfiguration(address collateralType) pure returns((bool,uint256,uint256,uint256,bytes32,address,uint256)) -func (_CoreGoerli *CoreGoerliCaller) GetCollateralConfiguration(opts *bind.CallOpts, collateralType common.Address) (CollateralConfigurationData, error) { +func (_Core *CoreCaller) GetCollateralConfiguration(opts *bind.CallOpts, collateralType common.Address) (CollateralConfigurationData, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getCollateralConfiguration", collateralType) + err := _Core.contract.Call(opts, &out, "getCollateralConfiguration", collateralType) if err != nil { return *new(CollateralConfigurationData), err @@ -539,23 +539,23 @@ func (_CoreGoerli *CoreGoerliCaller) GetCollateralConfiguration(opts *bind.CallO // GetCollateralConfiguration is a free data retrieval call binding the contract method 0xdc0b3f52. // // Solidity: function getCollateralConfiguration(address collateralType) pure returns((bool,uint256,uint256,uint256,bytes32,address,uint256)) -func (_CoreGoerli *CoreGoerliSession) GetCollateralConfiguration(collateralType common.Address) (CollateralConfigurationData, error) { - return _CoreGoerli.Contract.GetCollateralConfiguration(&_CoreGoerli.CallOpts, collateralType) +func (_Core *CoreSession) GetCollateralConfiguration(collateralType common.Address) (CollateralConfigurationData, error) { + return _Core.Contract.GetCollateralConfiguration(&_Core.CallOpts, collateralType) } // GetCollateralConfiguration is a free data retrieval call binding the contract method 0xdc0b3f52. // // Solidity: function getCollateralConfiguration(address collateralType) pure returns((bool,uint256,uint256,uint256,bytes32,address,uint256)) -func (_CoreGoerli *CoreGoerliCallerSession) GetCollateralConfiguration(collateralType common.Address) (CollateralConfigurationData, error) { - return _CoreGoerli.Contract.GetCollateralConfiguration(&_CoreGoerli.CallOpts, collateralType) +func (_Core *CoreCallerSession) GetCollateralConfiguration(collateralType common.Address) (CollateralConfigurationData, error) { + return _Core.Contract.GetCollateralConfiguration(&_Core.CallOpts, collateralType) } // GetCollateralConfigurations is a free data retrieval call binding the contract method 0x75bf2444. // // Solidity: function getCollateralConfigurations(bool hideDisabled) view returns((bool,uint256,uint256,uint256,bytes32,address,uint256)[]) -func (_CoreGoerli *CoreGoerliCaller) GetCollateralConfigurations(opts *bind.CallOpts, hideDisabled bool) ([]CollateralConfigurationData, error) { +func (_Core *CoreCaller) GetCollateralConfigurations(opts *bind.CallOpts, hideDisabled bool) ([]CollateralConfigurationData, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getCollateralConfigurations", hideDisabled) + err := _Core.contract.Call(opts, &out, "getCollateralConfigurations", hideDisabled) if err != nil { return *new([]CollateralConfigurationData), err @@ -570,23 +570,23 @@ func (_CoreGoerli *CoreGoerliCaller) GetCollateralConfigurations(opts *bind.Call // GetCollateralConfigurations is a free data retrieval call binding the contract method 0x75bf2444. // // Solidity: function getCollateralConfigurations(bool hideDisabled) view returns((bool,uint256,uint256,uint256,bytes32,address,uint256)[]) -func (_CoreGoerli *CoreGoerliSession) GetCollateralConfigurations(hideDisabled bool) ([]CollateralConfigurationData, error) { - return _CoreGoerli.Contract.GetCollateralConfigurations(&_CoreGoerli.CallOpts, hideDisabled) +func (_Core *CoreSession) GetCollateralConfigurations(hideDisabled bool) ([]CollateralConfigurationData, error) { + return _Core.Contract.GetCollateralConfigurations(&_Core.CallOpts, hideDisabled) } // GetCollateralConfigurations is a free data retrieval call binding the contract method 0x75bf2444. // // Solidity: function getCollateralConfigurations(bool hideDisabled) view returns((bool,uint256,uint256,uint256,bytes32,address,uint256)[]) -func (_CoreGoerli *CoreGoerliCallerSession) GetCollateralConfigurations(hideDisabled bool) ([]CollateralConfigurationData, error) { - return _CoreGoerli.Contract.GetCollateralConfigurations(&_CoreGoerli.CallOpts, hideDisabled) +func (_Core *CoreCallerSession) GetCollateralConfigurations(hideDisabled bool) ([]CollateralConfigurationData, error) { + return _Core.Contract.GetCollateralConfigurations(&_Core.CallOpts, hideDisabled) } -// GetCollateralPrice is a free data retrieval call binding the contract method 0x51a40994. +// GetCollateralPrice is a free data retrieval call binding the contract method 0x8010af04. // -// Solidity: function getCollateralPrice(address collateralType) view returns(uint256) -func (_CoreGoerli *CoreGoerliCaller) GetCollateralPrice(opts *bind.CallOpts, collateralType common.Address) (*big.Int, error) { +// Solidity: function getCollateralPrice(address collateralType, uint256 collateralAmount) view returns(uint256) +func (_Core *CoreCaller) GetCollateralPrice(opts *bind.CallOpts, collateralType common.Address, collateralAmount *big.Int) (*big.Int, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getCollateralPrice", collateralType) + err := _Core.contract.Call(opts, &out, "getCollateralPrice", collateralType, collateralAmount) if err != nil { return *new(*big.Int), err @@ -598,26 +598,26 @@ func (_CoreGoerli *CoreGoerliCaller) GetCollateralPrice(opts *bind.CallOpts, col } -// GetCollateralPrice is a free data retrieval call binding the contract method 0x51a40994. +// GetCollateralPrice is a free data retrieval call binding the contract method 0x8010af04. // -// Solidity: function getCollateralPrice(address collateralType) view returns(uint256) -func (_CoreGoerli *CoreGoerliSession) GetCollateralPrice(collateralType common.Address) (*big.Int, error) { - return _CoreGoerli.Contract.GetCollateralPrice(&_CoreGoerli.CallOpts, collateralType) +// Solidity: function getCollateralPrice(address collateralType, uint256 collateralAmount) view returns(uint256) +func (_Core *CoreSession) GetCollateralPrice(collateralType common.Address, collateralAmount *big.Int) (*big.Int, error) { + return _Core.Contract.GetCollateralPrice(&_Core.CallOpts, collateralType, collateralAmount) } -// GetCollateralPrice is a free data retrieval call binding the contract method 0x51a40994. +// GetCollateralPrice is a free data retrieval call binding the contract method 0x8010af04. // -// Solidity: function getCollateralPrice(address collateralType) view returns(uint256) -func (_CoreGoerli *CoreGoerliCallerSession) GetCollateralPrice(collateralType common.Address) (*big.Int, error) { - return _CoreGoerli.Contract.GetCollateralPrice(&_CoreGoerli.CallOpts, collateralType) +// Solidity: function getCollateralPrice(address collateralType, uint256 collateralAmount) view returns(uint256) +func (_Core *CoreCallerSession) GetCollateralPrice(collateralType common.Address, collateralAmount *big.Int) (*big.Int, error) { + return _Core.Contract.GetCollateralPrice(&_Core.CallOpts, collateralType, collateralAmount) } // GetConfig is a free data retrieval call binding the contract method 0x6dd5b69d. // // Solidity: function getConfig(bytes32 k) view returns(bytes32 v) -func (_CoreGoerli *CoreGoerliCaller) GetConfig(opts *bind.CallOpts, k [32]byte) ([32]byte, error) { +func (_Core *CoreCaller) GetConfig(opts *bind.CallOpts, k [32]byte) ([32]byte, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getConfig", k) + err := _Core.contract.Call(opts, &out, "getConfig", k) if err != nil { return *new([32]byte), err @@ -632,23 +632,23 @@ func (_CoreGoerli *CoreGoerliCaller) GetConfig(opts *bind.CallOpts, k [32]byte) // GetConfig is a free data retrieval call binding the contract method 0x6dd5b69d. // // Solidity: function getConfig(bytes32 k) view returns(bytes32 v) -func (_CoreGoerli *CoreGoerliSession) GetConfig(k [32]byte) ([32]byte, error) { - return _CoreGoerli.Contract.GetConfig(&_CoreGoerli.CallOpts, k) +func (_Core *CoreSession) GetConfig(k [32]byte) ([32]byte, error) { + return _Core.Contract.GetConfig(&_Core.CallOpts, k) } // GetConfig is a free data retrieval call binding the contract method 0x6dd5b69d. // // Solidity: function getConfig(bytes32 k) view returns(bytes32 v) -func (_CoreGoerli *CoreGoerliCallerSession) GetConfig(k [32]byte) ([32]byte, error) { - return _CoreGoerli.Contract.GetConfig(&_CoreGoerli.CallOpts, k) +func (_Core *CoreCallerSession) GetConfig(k [32]byte) ([32]byte, error) { + return _Core.Contract.GetConfig(&_Core.CallOpts, k) } // GetConfigAddress is a free data retrieval call binding the contract method 0xf896503a. // // Solidity: function getConfigAddress(bytes32 k) view returns(address v) -func (_CoreGoerli *CoreGoerliCaller) GetConfigAddress(opts *bind.CallOpts, k [32]byte) (common.Address, error) { +func (_Core *CoreCaller) GetConfigAddress(opts *bind.CallOpts, k [32]byte) (common.Address, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getConfigAddress", k) + err := _Core.contract.Call(opts, &out, "getConfigAddress", k) if err != nil { return *new(common.Address), err @@ -663,23 +663,23 @@ func (_CoreGoerli *CoreGoerliCaller) GetConfigAddress(opts *bind.CallOpts, k [32 // GetConfigAddress is a free data retrieval call binding the contract method 0xf896503a. // // Solidity: function getConfigAddress(bytes32 k) view returns(address v) -func (_CoreGoerli *CoreGoerliSession) GetConfigAddress(k [32]byte) (common.Address, error) { - return _CoreGoerli.Contract.GetConfigAddress(&_CoreGoerli.CallOpts, k) +func (_Core *CoreSession) GetConfigAddress(k [32]byte) (common.Address, error) { + return _Core.Contract.GetConfigAddress(&_Core.CallOpts, k) } // GetConfigAddress is a free data retrieval call binding the contract method 0xf896503a. // // Solidity: function getConfigAddress(bytes32 k) view returns(address v) -func (_CoreGoerli *CoreGoerliCallerSession) GetConfigAddress(k [32]byte) (common.Address, error) { - return _CoreGoerli.Contract.GetConfigAddress(&_CoreGoerli.CallOpts, k) +func (_Core *CoreCallerSession) GetConfigAddress(k [32]byte) (common.Address, error) { + return _Core.Contract.GetConfigAddress(&_Core.CallOpts, k) } // GetConfigUint is a free data retrieval call binding the contract method 0xf92bb8c9. // // Solidity: function getConfigUint(bytes32 k) view returns(uint256 v) -func (_CoreGoerli *CoreGoerliCaller) GetConfigUint(opts *bind.CallOpts, k [32]byte) (*big.Int, error) { +func (_Core *CoreCaller) GetConfigUint(opts *bind.CallOpts, k [32]byte) (*big.Int, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getConfigUint", k) + err := _Core.contract.Call(opts, &out, "getConfigUint", k) if err != nil { return *new(*big.Int), err @@ -694,23 +694,23 @@ func (_CoreGoerli *CoreGoerliCaller) GetConfigUint(opts *bind.CallOpts, k [32]by // GetConfigUint is a free data retrieval call binding the contract method 0xf92bb8c9. // // Solidity: function getConfigUint(bytes32 k) view returns(uint256 v) -func (_CoreGoerli *CoreGoerliSession) GetConfigUint(k [32]byte) (*big.Int, error) { - return _CoreGoerli.Contract.GetConfigUint(&_CoreGoerli.CallOpts, k) +func (_Core *CoreSession) GetConfigUint(k [32]byte) (*big.Int, error) { + return _Core.Contract.GetConfigUint(&_Core.CallOpts, k) } // GetConfigUint is a free data retrieval call binding the contract method 0xf92bb8c9. // // Solidity: function getConfigUint(bytes32 k) view returns(uint256 v) -func (_CoreGoerli *CoreGoerliCallerSession) GetConfigUint(k [32]byte) (*big.Int, error) { - return _CoreGoerli.Contract.GetConfigUint(&_CoreGoerli.CallOpts, k) +func (_Core *CoreCallerSession) GetConfigUint(k [32]byte) (*big.Int, error) { + return _Core.Contract.GetConfigUint(&_Core.CallOpts, k) } // GetDeniers is a free data retrieval call binding the contract method 0xed429cf7. // // Solidity: function getDeniers(bytes32 feature) view returns(address[]) -func (_CoreGoerli *CoreGoerliCaller) GetDeniers(opts *bind.CallOpts, feature [32]byte) ([]common.Address, error) { +func (_Core *CoreCaller) GetDeniers(opts *bind.CallOpts, feature [32]byte) ([]common.Address, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getDeniers", feature) + err := _Core.contract.Call(opts, &out, "getDeniers", feature) if err != nil { return *new([]common.Address), err @@ -725,23 +725,23 @@ func (_CoreGoerli *CoreGoerliCaller) GetDeniers(opts *bind.CallOpts, feature [32 // GetDeniers is a free data retrieval call binding the contract method 0xed429cf7. // // Solidity: function getDeniers(bytes32 feature) view returns(address[]) -func (_CoreGoerli *CoreGoerliSession) GetDeniers(feature [32]byte) ([]common.Address, error) { - return _CoreGoerli.Contract.GetDeniers(&_CoreGoerli.CallOpts, feature) +func (_Core *CoreSession) GetDeniers(feature [32]byte) ([]common.Address, error) { + return _Core.Contract.GetDeniers(&_Core.CallOpts, feature) } // GetDeniers is a free data retrieval call binding the contract method 0xed429cf7. // // Solidity: function getDeniers(bytes32 feature) view returns(address[]) -func (_CoreGoerli *CoreGoerliCallerSession) GetDeniers(feature [32]byte) ([]common.Address, error) { - return _CoreGoerli.Contract.GetDeniers(&_CoreGoerli.CallOpts, feature) +func (_Core *CoreCallerSession) GetDeniers(feature [32]byte) ([]common.Address, error) { + return _Core.Contract.GetDeniers(&_Core.CallOpts, feature) } // GetFeatureFlagAllowAll is a free data retrieval call binding the contract method 0x40a399ef. // // Solidity: function getFeatureFlagAllowAll(bytes32 feature) view returns(bool) -func (_CoreGoerli *CoreGoerliCaller) GetFeatureFlagAllowAll(opts *bind.CallOpts, feature [32]byte) (bool, error) { +func (_Core *CoreCaller) GetFeatureFlagAllowAll(opts *bind.CallOpts, feature [32]byte) (bool, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getFeatureFlagAllowAll", feature) + err := _Core.contract.Call(opts, &out, "getFeatureFlagAllowAll", feature) if err != nil { return *new(bool), err @@ -756,23 +756,23 @@ func (_CoreGoerli *CoreGoerliCaller) GetFeatureFlagAllowAll(opts *bind.CallOpts, // GetFeatureFlagAllowAll is a free data retrieval call binding the contract method 0x40a399ef. // // Solidity: function getFeatureFlagAllowAll(bytes32 feature) view returns(bool) -func (_CoreGoerli *CoreGoerliSession) GetFeatureFlagAllowAll(feature [32]byte) (bool, error) { - return _CoreGoerli.Contract.GetFeatureFlagAllowAll(&_CoreGoerli.CallOpts, feature) +func (_Core *CoreSession) GetFeatureFlagAllowAll(feature [32]byte) (bool, error) { + return _Core.Contract.GetFeatureFlagAllowAll(&_Core.CallOpts, feature) } // GetFeatureFlagAllowAll is a free data retrieval call binding the contract method 0x40a399ef. // // Solidity: function getFeatureFlagAllowAll(bytes32 feature) view returns(bool) -func (_CoreGoerli *CoreGoerliCallerSession) GetFeatureFlagAllowAll(feature [32]byte) (bool, error) { - return _CoreGoerli.Contract.GetFeatureFlagAllowAll(&_CoreGoerli.CallOpts, feature) +func (_Core *CoreCallerSession) GetFeatureFlagAllowAll(feature [32]byte) (bool, error) { + return _Core.Contract.GetFeatureFlagAllowAll(&_Core.CallOpts, feature) } // GetFeatureFlagAllowlist is a free data retrieval call binding the contract method 0xe12c8160. // // Solidity: function getFeatureFlagAllowlist(bytes32 feature) view returns(address[]) -func (_CoreGoerli *CoreGoerliCaller) GetFeatureFlagAllowlist(opts *bind.CallOpts, feature [32]byte) ([]common.Address, error) { +func (_Core *CoreCaller) GetFeatureFlagAllowlist(opts *bind.CallOpts, feature [32]byte) ([]common.Address, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getFeatureFlagAllowlist", feature) + err := _Core.contract.Call(opts, &out, "getFeatureFlagAllowlist", feature) if err != nil { return *new([]common.Address), err @@ -787,23 +787,23 @@ func (_CoreGoerli *CoreGoerliCaller) GetFeatureFlagAllowlist(opts *bind.CallOpts // GetFeatureFlagAllowlist is a free data retrieval call binding the contract method 0xe12c8160. // // Solidity: function getFeatureFlagAllowlist(bytes32 feature) view returns(address[]) -func (_CoreGoerli *CoreGoerliSession) GetFeatureFlagAllowlist(feature [32]byte) ([]common.Address, error) { - return _CoreGoerli.Contract.GetFeatureFlagAllowlist(&_CoreGoerli.CallOpts, feature) +func (_Core *CoreSession) GetFeatureFlagAllowlist(feature [32]byte) ([]common.Address, error) { + return _Core.Contract.GetFeatureFlagAllowlist(&_Core.CallOpts, feature) } // GetFeatureFlagAllowlist is a free data retrieval call binding the contract method 0xe12c8160. // // Solidity: function getFeatureFlagAllowlist(bytes32 feature) view returns(address[]) -func (_CoreGoerli *CoreGoerliCallerSession) GetFeatureFlagAllowlist(feature [32]byte) ([]common.Address, error) { - return _CoreGoerli.Contract.GetFeatureFlagAllowlist(&_CoreGoerli.CallOpts, feature) +func (_Core *CoreCallerSession) GetFeatureFlagAllowlist(feature [32]byte) ([]common.Address, error) { + return _Core.Contract.GetFeatureFlagAllowlist(&_Core.CallOpts, feature) } // GetFeatureFlagDenyAll is a free data retrieval call binding the contract method 0xbcae3ea0. // // Solidity: function getFeatureFlagDenyAll(bytes32 feature) view returns(bool) -func (_CoreGoerli *CoreGoerliCaller) GetFeatureFlagDenyAll(opts *bind.CallOpts, feature [32]byte) (bool, error) { +func (_Core *CoreCaller) GetFeatureFlagDenyAll(opts *bind.CallOpts, feature [32]byte) (bool, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getFeatureFlagDenyAll", feature) + err := _Core.contract.Call(opts, &out, "getFeatureFlagDenyAll", feature) if err != nil { return *new(bool), err @@ -818,23 +818,23 @@ func (_CoreGoerli *CoreGoerliCaller) GetFeatureFlagDenyAll(opts *bind.CallOpts, // GetFeatureFlagDenyAll is a free data retrieval call binding the contract method 0xbcae3ea0. // // Solidity: function getFeatureFlagDenyAll(bytes32 feature) view returns(bool) -func (_CoreGoerli *CoreGoerliSession) GetFeatureFlagDenyAll(feature [32]byte) (bool, error) { - return _CoreGoerli.Contract.GetFeatureFlagDenyAll(&_CoreGoerli.CallOpts, feature) +func (_Core *CoreSession) GetFeatureFlagDenyAll(feature [32]byte) (bool, error) { + return _Core.Contract.GetFeatureFlagDenyAll(&_Core.CallOpts, feature) } // GetFeatureFlagDenyAll is a free data retrieval call binding the contract method 0xbcae3ea0. // // Solidity: function getFeatureFlagDenyAll(bytes32 feature) view returns(bool) -func (_CoreGoerli *CoreGoerliCallerSession) GetFeatureFlagDenyAll(feature [32]byte) (bool, error) { - return _CoreGoerli.Contract.GetFeatureFlagDenyAll(&_CoreGoerli.CallOpts, feature) +func (_Core *CoreCallerSession) GetFeatureFlagDenyAll(feature [32]byte) (bool, error) { + return _Core.Contract.GetFeatureFlagDenyAll(&_Core.CallOpts, feature) } // GetImplementation is a free data retrieval call binding the contract method 0xaaf10f42. // // Solidity: function getImplementation() view returns(address) -func (_CoreGoerli *CoreGoerliCaller) GetImplementation(opts *bind.CallOpts) (common.Address, error) { +func (_Core *CoreCaller) GetImplementation(opts *bind.CallOpts) (common.Address, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getImplementation") + err := _Core.contract.Call(opts, &out, "getImplementation") if err != nil { return *new(common.Address), err @@ -849,23 +849,23 @@ func (_CoreGoerli *CoreGoerliCaller) GetImplementation(opts *bind.CallOpts) (com // GetImplementation is a free data retrieval call binding the contract method 0xaaf10f42. // // Solidity: function getImplementation() view returns(address) -func (_CoreGoerli *CoreGoerliSession) GetImplementation() (common.Address, error) { - return _CoreGoerli.Contract.GetImplementation(&_CoreGoerli.CallOpts) +func (_Core *CoreSession) GetImplementation() (common.Address, error) { + return _Core.Contract.GetImplementation(&_Core.CallOpts) } // GetImplementation is a free data retrieval call binding the contract method 0xaaf10f42. // // Solidity: function getImplementation() view returns(address) -func (_CoreGoerli *CoreGoerliCallerSession) GetImplementation() (common.Address, error) { - return _CoreGoerli.Contract.GetImplementation(&_CoreGoerli.CallOpts) +func (_Core *CoreCallerSession) GetImplementation() (common.Address, error) { + return _Core.Contract.GetImplementation(&_Core.CallOpts) } // GetLocks is a free data retrieval call binding the contract method 0xaa8c6369. // // Solidity: function getLocks(uint128 accountId, address collateralType, uint256 offset, uint256 count) view returns((uint128,uint64)[] locks) -func (_CoreGoerli *CoreGoerliCaller) GetLocks(opts *bind.CallOpts, accountId *big.Int, collateralType common.Address, offset *big.Int, count *big.Int) ([]CollateralLockData, error) { +func (_Core *CoreCaller) GetLocks(opts *bind.CallOpts, accountId *big.Int, collateralType common.Address, offset *big.Int, count *big.Int) ([]CollateralLockData, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getLocks", accountId, collateralType, offset, count) + err := _Core.contract.Call(opts, &out, "getLocks", accountId, collateralType, offset, count) if err != nil { return *new([]CollateralLockData), err @@ -880,23 +880,23 @@ func (_CoreGoerli *CoreGoerliCaller) GetLocks(opts *bind.CallOpts, accountId *bi // GetLocks is a free data retrieval call binding the contract method 0xaa8c6369. // // Solidity: function getLocks(uint128 accountId, address collateralType, uint256 offset, uint256 count) view returns((uint128,uint64)[] locks) -func (_CoreGoerli *CoreGoerliSession) GetLocks(accountId *big.Int, collateralType common.Address, offset *big.Int, count *big.Int) ([]CollateralLockData, error) { - return _CoreGoerli.Contract.GetLocks(&_CoreGoerli.CallOpts, accountId, collateralType, offset, count) +func (_Core *CoreSession) GetLocks(accountId *big.Int, collateralType common.Address, offset *big.Int, count *big.Int) ([]CollateralLockData, error) { + return _Core.Contract.GetLocks(&_Core.CallOpts, accountId, collateralType, offset, count) } // GetLocks is a free data retrieval call binding the contract method 0xaa8c6369. // // Solidity: function getLocks(uint128 accountId, address collateralType, uint256 offset, uint256 count) view returns((uint128,uint64)[] locks) -func (_CoreGoerli *CoreGoerliCallerSession) GetLocks(accountId *big.Int, collateralType common.Address, offset *big.Int, count *big.Int) ([]CollateralLockData, error) { - return _CoreGoerli.Contract.GetLocks(&_CoreGoerli.CallOpts, accountId, collateralType, offset, count) +func (_Core *CoreCallerSession) GetLocks(accountId *big.Int, collateralType common.Address, offset *big.Int, count *big.Int) ([]CollateralLockData, error) { + return _Core.Contract.GetLocks(&_Core.CallOpts, accountId, collateralType, offset, count) } // GetMarketAddress is a free data retrieval call binding the contract method 0xd24437f1. // // Solidity: function getMarketAddress(uint128 marketId) view returns(address) -func (_CoreGoerli *CoreGoerliCaller) GetMarketAddress(opts *bind.CallOpts, marketId *big.Int) (common.Address, error) { +func (_Core *CoreCaller) GetMarketAddress(opts *bind.CallOpts, marketId *big.Int) (common.Address, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getMarketAddress", marketId) + err := _Core.contract.Call(opts, &out, "getMarketAddress", marketId) if err != nil { return *new(common.Address), err @@ -911,23 +911,23 @@ func (_CoreGoerli *CoreGoerliCaller) GetMarketAddress(opts *bind.CallOpts, marke // GetMarketAddress is a free data retrieval call binding the contract method 0xd24437f1. // // Solidity: function getMarketAddress(uint128 marketId) view returns(address) -func (_CoreGoerli *CoreGoerliSession) GetMarketAddress(marketId *big.Int) (common.Address, error) { - return _CoreGoerli.Contract.GetMarketAddress(&_CoreGoerli.CallOpts, marketId) +func (_Core *CoreSession) GetMarketAddress(marketId *big.Int) (common.Address, error) { + return _Core.Contract.GetMarketAddress(&_Core.CallOpts, marketId) } // GetMarketAddress is a free data retrieval call binding the contract method 0xd24437f1. // // Solidity: function getMarketAddress(uint128 marketId) view returns(address) -func (_CoreGoerli *CoreGoerliCallerSession) GetMarketAddress(marketId *big.Int) (common.Address, error) { - return _CoreGoerli.Contract.GetMarketAddress(&_CoreGoerli.CallOpts, marketId) +func (_Core *CoreCallerSession) GetMarketAddress(marketId *big.Int) (common.Address, error) { + return _Core.Contract.GetMarketAddress(&_Core.CallOpts, marketId) } // GetMarketCollateral is a free data retrieval call binding the contract method 0x150834a3. // // Solidity: function getMarketCollateral(uint128 marketId) view returns(uint256) -func (_CoreGoerli *CoreGoerliCaller) GetMarketCollateral(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { +func (_Core *CoreCaller) GetMarketCollateral(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getMarketCollateral", marketId) + err := _Core.contract.Call(opts, &out, "getMarketCollateral", marketId) if err != nil { return *new(*big.Int), err @@ -942,23 +942,23 @@ func (_CoreGoerli *CoreGoerliCaller) GetMarketCollateral(opts *bind.CallOpts, ma // GetMarketCollateral is a free data retrieval call binding the contract method 0x150834a3. // // Solidity: function getMarketCollateral(uint128 marketId) view returns(uint256) -func (_CoreGoerli *CoreGoerliSession) GetMarketCollateral(marketId *big.Int) (*big.Int, error) { - return _CoreGoerli.Contract.GetMarketCollateral(&_CoreGoerli.CallOpts, marketId) +func (_Core *CoreSession) GetMarketCollateral(marketId *big.Int) (*big.Int, error) { + return _Core.Contract.GetMarketCollateral(&_Core.CallOpts, marketId) } // GetMarketCollateral is a free data retrieval call binding the contract method 0x150834a3. // // Solidity: function getMarketCollateral(uint128 marketId) view returns(uint256) -func (_CoreGoerli *CoreGoerliCallerSession) GetMarketCollateral(marketId *big.Int) (*big.Int, error) { - return _CoreGoerli.Contract.GetMarketCollateral(&_CoreGoerli.CallOpts, marketId) +func (_Core *CoreCallerSession) GetMarketCollateral(marketId *big.Int) (*big.Int, error) { + return _Core.Contract.GetMarketCollateral(&_Core.CallOpts, marketId) } // GetMarketCollateralAmount is a free data retrieval call binding the contract method 0xc2b0cf41. // // Solidity: function getMarketCollateralAmount(uint128 marketId, address collateralType) view returns(uint256 collateralAmountD18) -func (_CoreGoerli *CoreGoerliCaller) GetMarketCollateralAmount(opts *bind.CallOpts, marketId *big.Int, collateralType common.Address) (*big.Int, error) { +func (_Core *CoreCaller) GetMarketCollateralAmount(opts *bind.CallOpts, marketId *big.Int, collateralType common.Address) (*big.Int, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getMarketCollateralAmount", marketId, collateralType) + err := _Core.contract.Call(opts, &out, "getMarketCollateralAmount", marketId, collateralType) if err != nil { return *new(*big.Int), err @@ -973,23 +973,23 @@ func (_CoreGoerli *CoreGoerliCaller) GetMarketCollateralAmount(opts *bind.CallOp // GetMarketCollateralAmount is a free data retrieval call binding the contract method 0xc2b0cf41. // // Solidity: function getMarketCollateralAmount(uint128 marketId, address collateralType) view returns(uint256 collateralAmountD18) -func (_CoreGoerli *CoreGoerliSession) GetMarketCollateralAmount(marketId *big.Int, collateralType common.Address) (*big.Int, error) { - return _CoreGoerli.Contract.GetMarketCollateralAmount(&_CoreGoerli.CallOpts, marketId, collateralType) +func (_Core *CoreSession) GetMarketCollateralAmount(marketId *big.Int, collateralType common.Address) (*big.Int, error) { + return _Core.Contract.GetMarketCollateralAmount(&_Core.CallOpts, marketId, collateralType) } // GetMarketCollateralAmount is a free data retrieval call binding the contract method 0xc2b0cf41. // // Solidity: function getMarketCollateralAmount(uint128 marketId, address collateralType) view returns(uint256 collateralAmountD18) -func (_CoreGoerli *CoreGoerliCallerSession) GetMarketCollateralAmount(marketId *big.Int, collateralType common.Address) (*big.Int, error) { - return _CoreGoerli.Contract.GetMarketCollateralAmount(&_CoreGoerli.CallOpts, marketId, collateralType) +func (_Core *CoreCallerSession) GetMarketCollateralAmount(marketId *big.Int, collateralType common.Address) (*big.Int, error) { + return _Core.Contract.GetMarketCollateralAmount(&_Core.CallOpts, marketId, collateralType) } // GetMarketCollateralValue is a free data retrieval call binding the contract method 0xd4f88381. // // Solidity: function getMarketCollateralValue(uint128 marketId) view returns(uint256) -func (_CoreGoerli *CoreGoerliCaller) GetMarketCollateralValue(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { +func (_Core *CoreCaller) GetMarketCollateralValue(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getMarketCollateralValue", marketId) + err := _Core.contract.Call(opts, &out, "getMarketCollateralValue", marketId) if err != nil { return *new(*big.Int), err @@ -1004,26 +1004,26 @@ func (_CoreGoerli *CoreGoerliCaller) GetMarketCollateralValue(opts *bind.CallOpt // GetMarketCollateralValue is a free data retrieval call binding the contract method 0xd4f88381. // // Solidity: function getMarketCollateralValue(uint128 marketId) view returns(uint256) -func (_CoreGoerli *CoreGoerliSession) GetMarketCollateralValue(marketId *big.Int) (*big.Int, error) { - return _CoreGoerli.Contract.GetMarketCollateralValue(&_CoreGoerli.CallOpts, marketId) +func (_Core *CoreSession) GetMarketCollateralValue(marketId *big.Int) (*big.Int, error) { + return _Core.Contract.GetMarketCollateralValue(&_Core.CallOpts, marketId) } // GetMarketCollateralValue is a free data retrieval call binding the contract method 0xd4f88381. // // Solidity: function getMarketCollateralValue(uint128 marketId) view returns(uint256) -func (_CoreGoerli *CoreGoerliCallerSession) GetMarketCollateralValue(marketId *big.Int) (*big.Int, error) { - return _CoreGoerli.Contract.GetMarketCollateralValue(&_CoreGoerli.CallOpts, marketId) +func (_Core *CoreCallerSession) GetMarketCollateralValue(marketId *big.Int) (*big.Int, error) { + return _Core.Contract.GetMarketCollateralValue(&_Core.CallOpts, marketId) } // GetMarketFees is a free data retrieval call binding the contract method 0xdfb83437. // // Solidity: function getMarketFees(uint128 , uint256 amount) view returns(uint256 depositFeeAmount, uint256 withdrawFeeAmount) -func (_CoreGoerli *CoreGoerliCaller) GetMarketFees(opts *bind.CallOpts, arg0 *big.Int, amount *big.Int) (struct { +func (_Core *CoreCaller) GetMarketFees(opts *bind.CallOpts, arg0 *big.Int, amount *big.Int) (struct { DepositFeeAmount *big.Int WithdrawFeeAmount *big.Int }, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getMarketFees", arg0, amount) + err := _Core.contract.Call(opts, &out, "getMarketFees", arg0, amount) outstruct := new(struct { DepositFeeAmount *big.Int @@ -1043,29 +1043,29 @@ func (_CoreGoerli *CoreGoerliCaller) GetMarketFees(opts *bind.CallOpts, arg0 *bi // GetMarketFees is a free data retrieval call binding the contract method 0xdfb83437. // // Solidity: function getMarketFees(uint128 , uint256 amount) view returns(uint256 depositFeeAmount, uint256 withdrawFeeAmount) -func (_CoreGoerli *CoreGoerliSession) GetMarketFees(arg0 *big.Int, amount *big.Int) (struct { +func (_Core *CoreSession) GetMarketFees(arg0 *big.Int, amount *big.Int) (struct { DepositFeeAmount *big.Int WithdrawFeeAmount *big.Int }, error) { - return _CoreGoerli.Contract.GetMarketFees(&_CoreGoerli.CallOpts, arg0, amount) + return _Core.Contract.GetMarketFees(&_Core.CallOpts, arg0, amount) } // GetMarketFees is a free data retrieval call binding the contract method 0xdfb83437. // // Solidity: function getMarketFees(uint128 , uint256 amount) view returns(uint256 depositFeeAmount, uint256 withdrawFeeAmount) -func (_CoreGoerli *CoreGoerliCallerSession) GetMarketFees(arg0 *big.Int, amount *big.Int) (struct { +func (_Core *CoreCallerSession) GetMarketFees(arg0 *big.Int, amount *big.Int) (struct { DepositFeeAmount *big.Int WithdrawFeeAmount *big.Int }, error) { - return _CoreGoerli.Contract.GetMarketFees(&_CoreGoerli.CallOpts, arg0, amount) + return _Core.Contract.GetMarketFees(&_Core.CallOpts, arg0, amount) } // GetMarketMinDelegateTime is a free data retrieval call binding the contract method 0x5424901b. // // Solidity: function getMarketMinDelegateTime(uint128 marketId) view returns(uint32) -func (_CoreGoerli *CoreGoerliCaller) GetMarketMinDelegateTime(opts *bind.CallOpts, marketId *big.Int) (uint32, error) { +func (_Core *CoreCaller) GetMarketMinDelegateTime(opts *bind.CallOpts, marketId *big.Int) (uint32, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getMarketMinDelegateTime", marketId) + err := _Core.contract.Call(opts, &out, "getMarketMinDelegateTime", marketId) if err != nil { return *new(uint32), err @@ -1080,23 +1080,23 @@ func (_CoreGoerli *CoreGoerliCaller) GetMarketMinDelegateTime(opts *bind.CallOpt // GetMarketMinDelegateTime is a free data retrieval call binding the contract method 0x5424901b. // // Solidity: function getMarketMinDelegateTime(uint128 marketId) view returns(uint32) -func (_CoreGoerli *CoreGoerliSession) GetMarketMinDelegateTime(marketId *big.Int) (uint32, error) { - return _CoreGoerli.Contract.GetMarketMinDelegateTime(&_CoreGoerli.CallOpts, marketId) +func (_Core *CoreSession) GetMarketMinDelegateTime(marketId *big.Int) (uint32, error) { + return _Core.Contract.GetMarketMinDelegateTime(&_Core.CallOpts, marketId) } // GetMarketMinDelegateTime is a free data retrieval call binding the contract method 0x5424901b. // // Solidity: function getMarketMinDelegateTime(uint128 marketId) view returns(uint32) -func (_CoreGoerli *CoreGoerliCallerSession) GetMarketMinDelegateTime(marketId *big.Int) (uint32, error) { - return _CoreGoerli.Contract.GetMarketMinDelegateTime(&_CoreGoerli.CallOpts, marketId) +func (_Core *CoreCallerSession) GetMarketMinDelegateTime(marketId *big.Int) (uint32, error) { + return _Core.Contract.GetMarketMinDelegateTime(&_Core.CallOpts, marketId) } // GetMarketNetIssuance is a free data retrieval call binding the contract method 0x85d99ebc. // // Solidity: function getMarketNetIssuance(uint128 marketId) view returns(int128) -func (_CoreGoerli *CoreGoerliCaller) GetMarketNetIssuance(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { +func (_Core *CoreCaller) GetMarketNetIssuance(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getMarketNetIssuance", marketId) + err := _Core.contract.Call(opts, &out, "getMarketNetIssuance", marketId) if err != nil { return *new(*big.Int), err @@ -1111,23 +1111,23 @@ func (_CoreGoerli *CoreGoerliCaller) GetMarketNetIssuance(opts *bind.CallOpts, m // GetMarketNetIssuance is a free data retrieval call binding the contract method 0x85d99ebc. // // Solidity: function getMarketNetIssuance(uint128 marketId) view returns(int128) -func (_CoreGoerli *CoreGoerliSession) GetMarketNetIssuance(marketId *big.Int) (*big.Int, error) { - return _CoreGoerli.Contract.GetMarketNetIssuance(&_CoreGoerli.CallOpts, marketId) +func (_Core *CoreSession) GetMarketNetIssuance(marketId *big.Int) (*big.Int, error) { + return _Core.Contract.GetMarketNetIssuance(&_Core.CallOpts, marketId) } // GetMarketNetIssuance is a free data retrieval call binding the contract method 0x85d99ebc. // // Solidity: function getMarketNetIssuance(uint128 marketId) view returns(int128) -func (_CoreGoerli *CoreGoerliCallerSession) GetMarketNetIssuance(marketId *big.Int) (*big.Int, error) { - return _CoreGoerli.Contract.GetMarketNetIssuance(&_CoreGoerli.CallOpts, marketId) +func (_Core *CoreCallerSession) GetMarketNetIssuance(marketId *big.Int) (*big.Int, error) { + return _Core.Contract.GetMarketNetIssuance(&_Core.CallOpts, marketId) } // GetMarketReportedDebt is a free data retrieval call binding the contract method 0x86e3b1cf. // // Solidity: function getMarketReportedDebt(uint128 marketId) view returns(uint256) -func (_CoreGoerli *CoreGoerliCaller) GetMarketReportedDebt(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { +func (_Core *CoreCaller) GetMarketReportedDebt(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getMarketReportedDebt", marketId) + err := _Core.contract.Call(opts, &out, "getMarketReportedDebt", marketId) if err != nil { return *new(*big.Int), err @@ -1142,23 +1142,23 @@ func (_CoreGoerli *CoreGoerliCaller) GetMarketReportedDebt(opts *bind.CallOpts, // GetMarketReportedDebt is a free data retrieval call binding the contract method 0x86e3b1cf. // // Solidity: function getMarketReportedDebt(uint128 marketId) view returns(uint256) -func (_CoreGoerli *CoreGoerliSession) GetMarketReportedDebt(marketId *big.Int) (*big.Int, error) { - return _CoreGoerli.Contract.GetMarketReportedDebt(&_CoreGoerli.CallOpts, marketId) +func (_Core *CoreSession) GetMarketReportedDebt(marketId *big.Int) (*big.Int, error) { + return _Core.Contract.GetMarketReportedDebt(&_Core.CallOpts, marketId) } // GetMarketReportedDebt is a free data retrieval call binding the contract method 0x86e3b1cf. // // Solidity: function getMarketReportedDebt(uint128 marketId) view returns(uint256) -func (_CoreGoerli *CoreGoerliCallerSession) GetMarketReportedDebt(marketId *big.Int) (*big.Int, error) { - return _CoreGoerli.Contract.GetMarketReportedDebt(&_CoreGoerli.CallOpts, marketId) +func (_Core *CoreCallerSession) GetMarketReportedDebt(marketId *big.Int) (*big.Int, error) { + return _Core.Contract.GetMarketReportedDebt(&_Core.CallOpts, marketId) } // GetMarketTotalDebt is a free data retrieval call binding the contract method 0xbaa2a264. // // Solidity: function getMarketTotalDebt(uint128 marketId) view returns(int256) -func (_CoreGoerli *CoreGoerliCaller) GetMarketTotalDebt(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { +func (_Core *CoreCaller) GetMarketTotalDebt(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getMarketTotalDebt", marketId) + err := _Core.contract.Call(opts, &out, "getMarketTotalDebt", marketId) if err != nil { return *new(*big.Int), err @@ -1173,23 +1173,23 @@ func (_CoreGoerli *CoreGoerliCaller) GetMarketTotalDebt(opts *bind.CallOpts, mar // GetMarketTotalDebt is a free data retrieval call binding the contract method 0xbaa2a264. // // Solidity: function getMarketTotalDebt(uint128 marketId) view returns(int256) -func (_CoreGoerli *CoreGoerliSession) GetMarketTotalDebt(marketId *big.Int) (*big.Int, error) { - return _CoreGoerli.Contract.GetMarketTotalDebt(&_CoreGoerli.CallOpts, marketId) +func (_Core *CoreSession) GetMarketTotalDebt(marketId *big.Int) (*big.Int, error) { + return _Core.Contract.GetMarketTotalDebt(&_Core.CallOpts, marketId) } // GetMarketTotalDebt is a free data retrieval call binding the contract method 0xbaa2a264. // // Solidity: function getMarketTotalDebt(uint128 marketId) view returns(int256) -func (_CoreGoerli *CoreGoerliCallerSession) GetMarketTotalDebt(marketId *big.Int) (*big.Int, error) { - return _CoreGoerli.Contract.GetMarketTotalDebt(&_CoreGoerli.CallOpts, marketId) +func (_Core *CoreCallerSession) GetMarketTotalDebt(marketId *big.Int) (*big.Int, error) { + return _Core.Contract.GetMarketTotalDebt(&_Core.CallOpts, marketId) } // GetMaximumMarketCollateral is a free data retrieval call binding the contract method 0x12e1c673. // // Solidity: function getMaximumMarketCollateral(uint128 marketId, address collateralType) view returns(uint256) -func (_CoreGoerli *CoreGoerliCaller) GetMaximumMarketCollateral(opts *bind.CallOpts, marketId *big.Int, collateralType common.Address) (*big.Int, error) { +func (_Core *CoreCaller) GetMaximumMarketCollateral(opts *bind.CallOpts, marketId *big.Int, collateralType common.Address) (*big.Int, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getMaximumMarketCollateral", marketId, collateralType) + err := _Core.contract.Call(opts, &out, "getMaximumMarketCollateral", marketId, collateralType) if err != nil { return *new(*big.Int), err @@ -1204,54 +1204,23 @@ func (_CoreGoerli *CoreGoerliCaller) GetMaximumMarketCollateral(opts *bind.CallO // GetMaximumMarketCollateral is a free data retrieval call binding the contract method 0x12e1c673. // // Solidity: function getMaximumMarketCollateral(uint128 marketId, address collateralType) view returns(uint256) -func (_CoreGoerli *CoreGoerliSession) GetMaximumMarketCollateral(marketId *big.Int, collateralType common.Address) (*big.Int, error) { - return _CoreGoerli.Contract.GetMaximumMarketCollateral(&_CoreGoerli.CallOpts, marketId, collateralType) +func (_Core *CoreSession) GetMaximumMarketCollateral(marketId *big.Int, collateralType common.Address) (*big.Int, error) { + return _Core.Contract.GetMaximumMarketCollateral(&_Core.CallOpts, marketId, collateralType) } // GetMaximumMarketCollateral is a free data retrieval call binding the contract method 0x12e1c673. // // Solidity: function getMaximumMarketCollateral(uint128 marketId, address collateralType) view returns(uint256) -func (_CoreGoerli *CoreGoerliCallerSession) GetMaximumMarketCollateral(marketId *big.Int, collateralType common.Address) (*big.Int, error) { - return _CoreGoerli.Contract.GetMaximumMarketCollateral(&_CoreGoerli.CallOpts, marketId, collateralType) -} - -// GetMessageSender is a free data retrieval call binding the contract method 0x76167a89. -// -// Solidity: function getMessageSender() view returns(address) -func (_CoreGoerli *CoreGoerliCaller) GetMessageSender(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getMessageSender") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// GetMessageSender is a free data retrieval call binding the contract method 0x76167a89. -// -// Solidity: function getMessageSender() view returns(address) -func (_CoreGoerli *CoreGoerliSession) GetMessageSender() (common.Address, error) { - return _CoreGoerli.Contract.GetMessageSender(&_CoreGoerli.CallOpts) -} - -// GetMessageSender is a free data retrieval call binding the contract method 0x76167a89. -// -// Solidity: function getMessageSender() view returns(address) -func (_CoreGoerli *CoreGoerliCallerSession) GetMessageSender() (common.Address, error) { - return _CoreGoerli.Contract.GetMessageSender(&_CoreGoerli.CallOpts) +func (_Core *CoreCallerSession) GetMaximumMarketCollateral(marketId *big.Int, collateralType common.Address) (*big.Int, error) { + return _Core.Contract.GetMaximumMarketCollateral(&_Core.CallOpts, marketId, collateralType) } // GetMinLiquidityRatio is a free data retrieval call binding the contract method 0x84f29b6d. // // Solidity: function getMinLiquidityRatio(uint128 marketId) view returns(uint256) -func (_CoreGoerli *CoreGoerliCaller) GetMinLiquidityRatio(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { +func (_Core *CoreCaller) GetMinLiquidityRatio(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getMinLiquidityRatio", marketId) + err := _Core.contract.Call(opts, &out, "getMinLiquidityRatio", marketId) if err != nil { return *new(*big.Int), err @@ -1266,23 +1235,23 @@ func (_CoreGoerli *CoreGoerliCaller) GetMinLiquidityRatio(opts *bind.CallOpts, m // GetMinLiquidityRatio is a free data retrieval call binding the contract method 0x84f29b6d. // // Solidity: function getMinLiquidityRatio(uint128 marketId) view returns(uint256) -func (_CoreGoerli *CoreGoerliSession) GetMinLiquidityRatio(marketId *big.Int) (*big.Int, error) { - return _CoreGoerli.Contract.GetMinLiquidityRatio(&_CoreGoerli.CallOpts, marketId) +func (_Core *CoreSession) GetMinLiquidityRatio(marketId *big.Int) (*big.Int, error) { + return _Core.Contract.GetMinLiquidityRatio(&_Core.CallOpts, marketId) } // GetMinLiquidityRatio is a free data retrieval call binding the contract method 0x84f29b6d. // // Solidity: function getMinLiquidityRatio(uint128 marketId) view returns(uint256) -func (_CoreGoerli *CoreGoerliCallerSession) GetMinLiquidityRatio(marketId *big.Int) (*big.Int, error) { - return _CoreGoerli.Contract.GetMinLiquidityRatio(&_CoreGoerli.CallOpts, marketId) +func (_Core *CoreCallerSession) GetMinLiquidityRatio(marketId *big.Int) (*big.Int, error) { + return _Core.Contract.GetMinLiquidityRatio(&_Core.CallOpts, marketId) } // GetMinLiquidityRatio0 is a free data retrieval call binding the contract method 0xfd85c1f8. // // Solidity: function getMinLiquidityRatio() view returns(uint256) -func (_CoreGoerli *CoreGoerliCaller) GetMinLiquidityRatio0(opts *bind.CallOpts) (*big.Int, error) { +func (_Core *CoreCaller) GetMinLiquidityRatio0(opts *bind.CallOpts) (*big.Int, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getMinLiquidityRatio0") + err := _Core.contract.Call(opts, &out, "getMinLiquidityRatio0") if err != nil { return *new(*big.Int), err @@ -1297,23 +1266,23 @@ func (_CoreGoerli *CoreGoerliCaller) GetMinLiquidityRatio0(opts *bind.CallOpts) // GetMinLiquidityRatio0 is a free data retrieval call binding the contract method 0xfd85c1f8. // // Solidity: function getMinLiquidityRatio() view returns(uint256) -func (_CoreGoerli *CoreGoerliSession) GetMinLiquidityRatio0() (*big.Int, error) { - return _CoreGoerli.Contract.GetMinLiquidityRatio0(&_CoreGoerli.CallOpts) +func (_Core *CoreSession) GetMinLiquidityRatio0() (*big.Int, error) { + return _Core.Contract.GetMinLiquidityRatio0(&_Core.CallOpts) } // GetMinLiquidityRatio0 is a free data retrieval call binding the contract method 0xfd85c1f8. // // Solidity: function getMinLiquidityRatio() view returns(uint256) -func (_CoreGoerli *CoreGoerliCallerSession) GetMinLiquidityRatio0() (*big.Int, error) { - return _CoreGoerli.Contract.GetMinLiquidityRatio0(&_CoreGoerli.CallOpts) +func (_Core *CoreCallerSession) GetMinLiquidityRatio0() (*big.Int, error) { + return _Core.Contract.GetMinLiquidityRatio0(&_Core.CallOpts) } // GetNominatedPoolOwner is a free data retrieval call binding the contract method 0x9851af01. // // Solidity: function getNominatedPoolOwner(uint128 poolId) view returns(address) -func (_CoreGoerli *CoreGoerliCaller) GetNominatedPoolOwner(opts *bind.CallOpts, poolId *big.Int) (common.Address, error) { +func (_Core *CoreCaller) GetNominatedPoolOwner(opts *bind.CallOpts, poolId *big.Int) (common.Address, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getNominatedPoolOwner", poolId) + err := _Core.contract.Call(opts, &out, "getNominatedPoolOwner", poolId) if err != nil { return *new(common.Address), err @@ -1328,23 +1297,23 @@ func (_CoreGoerli *CoreGoerliCaller) GetNominatedPoolOwner(opts *bind.CallOpts, // GetNominatedPoolOwner is a free data retrieval call binding the contract method 0x9851af01. // // Solidity: function getNominatedPoolOwner(uint128 poolId) view returns(address) -func (_CoreGoerli *CoreGoerliSession) GetNominatedPoolOwner(poolId *big.Int) (common.Address, error) { - return _CoreGoerli.Contract.GetNominatedPoolOwner(&_CoreGoerli.CallOpts, poolId) +func (_Core *CoreSession) GetNominatedPoolOwner(poolId *big.Int) (common.Address, error) { + return _Core.Contract.GetNominatedPoolOwner(&_Core.CallOpts, poolId) } // GetNominatedPoolOwner is a free data retrieval call binding the contract method 0x9851af01. // // Solidity: function getNominatedPoolOwner(uint128 poolId) view returns(address) -func (_CoreGoerli *CoreGoerliCallerSession) GetNominatedPoolOwner(poolId *big.Int) (common.Address, error) { - return _CoreGoerli.Contract.GetNominatedPoolOwner(&_CoreGoerli.CallOpts, poolId) +func (_Core *CoreCallerSession) GetNominatedPoolOwner(poolId *big.Int) (common.Address, error) { + return _Core.Contract.GetNominatedPoolOwner(&_Core.CallOpts, poolId) } // GetOracleManager is a free data retrieval call binding the contract method 0xb01ceccd. // // Solidity: function getOracleManager() view returns(address) -func (_CoreGoerli *CoreGoerliCaller) GetOracleManager(opts *bind.CallOpts) (common.Address, error) { +func (_Core *CoreCaller) GetOracleManager(opts *bind.CallOpts) (common.Address, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getOracleManager") + err := _Core.contract.Call(opts, &out, "getOracleManager") if err != nil { return *new(common.Address), err @@ -1359,23 +1328,23 @@ func (_CoreGoerli *CoreGoerliCaller) GetOracleManager(opts *bind.CallOpts) (comm // GetOracleManager is a free data retrieval call binding the contract method 0xb01ceccd. // // Solidity: function getOracleManager() view returns(address) -func (_CoreGoerli *CoreGoerliSession) GetOracleManager() (common.Address, error) { - return _CoreGoerli.Contract.GetOracleManager(&_CoreGoerli.CallOpts) +func (_Core *CoreSession) GetOracleManager() (common.Address, error) { + return _Core.Contract.GetOracleManager(&_Core.CallOpts) } // GetOracleManager is a free data retrieval call binding the contract method 0xb01ceccd. // // Solidity: function getOracleManager() view returns(address) -func (_CoreGoerli *CoreGoerliCallerSession) GetOracleManager() (common.Address, error) { - return _CoreGoerli.Contract.GetOracleManager(&_CoreGoerli.CallOpts) +func (_Core *CoreCallerSession) GetOracleManager() (common.Address, error) { + return _Core.Contract.GetOracleManager(&_Core.CallOpts) } // GetPoolCollateralIssuanceRatio is a free data retrieval call binding the contract method 0xc4d2aad3. // // Solidity: function getPoolCollateralIssuanceRatio(uint128 poolId, address collateral) view returns(uint256) -func (_CoreGoerli *CoreGoerliCaller) GetPoolCollateralIssuanceRatio(opts *bind.CallOpts, poolId *big.Int, collateral common.Address) (*big.Int, error) { +func (_Core *CoreCaller) GetPoolCollateralIssuanceRatio(opts *bind.CallOpts, poolId *big.Int, collateral common.Address) (*big.Int, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getPoolCollateralIssuanceRatio", poolId, collateral) + err := _Core.contract.Call(opts, &out, "getPoolCollateralIssuanceRatio", poolId, collateral) if err != nil { return *new(*big.Int), err @@ -1390,23 +1359,23 @@ func (_CoreGoerli *CoreGoerliCaller) GetPoolCollateralIssuanceRatio(opts *bind.C // GetPoolCollateralIssuanceRatio is a free data retrieval call binding the contract method 0xc4d2aad3. // // Solidity: function getPoolCollateralIssuanceRatio(uint128 poolId, address collateral) view returns(uint256) -func (_CoreGoerli *CoreGoerliSession) GetPoolCollateralIssuanceRatio(poolId *big.Int, collateral common.Address) (*big.Int, error) { - return _CoreGoerli.Contract.GetPoolCollateralIssuanceRatio(&_CoreGoerli.CallOpts, poolId, collateral) +func (_Core *CoreSession) GetPoolCollateralIssuanceRatio(poolId *big.Int, collateral common.Address) (*big.Int, error) { + return _Core.Contract.GetPoolCollateralIssuanceRatio(&_Core.CallOpts, poolId, collateral) } // GetPoolCollateralIssuanceRatio is a free data retrieval call binding the contract method 0xc4d2aad3. // // Solidity: function getPoolCollateralIssuanceRatio(uint128 poolId, address collateral) view returns(uint256) -func (_CoreGoerli *CoreGoerliCallerSession) GetPoolCollateralIssuanceRatio(poolId *big.Int, collateral common.Address) (*big.Int, error) { - return _CoreGoerli.Contract.GetPoolCollateralIssuanceRatio(&_CoreGoerli.CallOpts, poolId, collateral) +func (_Core *CoreCallerSession) GetPoolCollateralIssuanceRatio(poolId *big.Int, collateral common.Address) (*big.Int, error) { + return _Core.Contract.GetPoolCollateralIssuanceRatio(&_Core.CallOpts, poolId, collateral) } // GetPoolConfiguration is a free data retrieval call binding the contract method 0xefecf137. // // Solidity: function getPoolConfiguration(uint128 poolId) view returns((uint128,uint128,int128)[]) -func (_CoreGoerli *CoreGoerliCaller) GetPoolConfiguration(opts *bind.CallOpts, poolId *big.Int) ([]MarketConfigurationData, error) { +func (_Core *CoreCaller) GetPoolConfiguration(opts *bind.CallOpts, poolId *big.Int) ([]MarketConfigurationData, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getPoolConfiguration", poolId) + err := _Core.contract.Call(opts, &out, "getPoolConfiguration", poolId) if err != nil { return *new([]MarketConfigurationData), err @@ -1421,23 +1390,23 @@ func (_CoreGoerli *CoreGoerliCaller) GetPoolConfiguration(opts *bind.CallOpts, p // GetPoolConfiguration is a free data retrieval call binding the contract method 0xefecf137. // // Solidity: function getPoolConfiguration(uint128 poolId) view returns((uint128,uint128,int128)[]) -func (_CoreGoerli *CoreGoerliSession) GetPoolConfiguration(poolId *big.Int) ([]MarketConfigurationData, error) { - return _CoreGoerli.Contract.GetPoolConfiguration(&_CoreGoerli.CallOpts, poolId) +func (_Core *CoreSession) GetPoolConfiguration(poolId *big.Int) ([]MarketConfigurationData, error) { + return _Core.Contract.GetPoolConfiguration(&_Core.CallOpts, poolId) } // GetPoolConfiguration is a free data retrieval call binding the contract method 0xefecf137. // // Solidity: function getPoolConfiguration(uint128 poolId) view returns((uint128,uint128,int128)[]) -func (_CoreGoerli *CoreGoerliCallerSession) GetPoolConfiguration(poolId *big.Int) ([]MarketConfigurationData, error) { - return _CoreGoerli.Contract.GetPoolConfiguration(&_CoreGoerli.CallOpts, poolId) +func (_Core *CoreCallerSession) GetPoolConfiguration(poolId *big.Int) ([]MarketConfigurationData, error) { + return _Core.Contract.GetPoolConfiguration(&_Core.CallOpts, poolId) } // GetPoolName is a free data retrieval call binding the contract method 0xf86e6f91. // // Solidity: function getPoolName(uint128 poolId) view returns(string poolName) -func (_CoreGoerli *CoreGoerliCaller) GetPoolName(opts *bind.CallOpts, poolId *big.Int) (string, error) { +func (_Core *CoreCaller) GetPoolName(opts *bind.CallOpts, poolId *big.Int) (string, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getPoolName", poolId) + err := _Core.contract.Call(opts, &out, "getPoolName", poolId) if err != nil { return *new(string), err @@ -1452,23 +1421,23 @@ func (_CoreGoerli *CoreGoerliCaller) GetPoolName(opts *bind.CallOpts, poolId *bi // GetPoolName is a free data retrieval call binding the contract method 0xf86e6f91. // // Solidity: function getPoolName(uint128 poolId) view returns(string poolName) -func (_CoreGoerli *CoreGoerliSession) GetPoolName(poolId *big.Int) (string, error) { - return _CoreGoerli.Contract.GetPoolName(&_CoreGoerli.CallOpts, poolId) +func (_Core *CoreSession) GetPoolName(poolId *big.Int) (string, error) { + return _Core.Contract.GetPoolName(&_Core.CallOpts, poolId) } // GetPoolName is a free data retrieval call binding the contract method 0xf86e6f91. // // Solidity: function getPoolName(uint128 poolId) view returns(string poolName) -func (_CoreGoerli *CoreGoerliCallerSession) GetPoolName(poolId *big.Int) (string, error) { - return _CoreGoerli.Contract.GetPoolName(&_CoreGoerli.CallOpts, poolId) +func (_Core *CoreCallerSession) GetPoolName(poolId *big.Int) (string, error) { + return _Core.Contract.GetPoolName(&_Core.CallOpts, poolId) } // GetPoolOwner is a free data retrieval call binding the contract method 0xbbdd7c5a. // // Solidity: function getPoolOwner(uint128 poolId) view returns(address) -func (_CoreGoerli *CoreGoerliCaller) GetPoolOwner(opts *bind.CallOpts, poolId *big.Int) (common.Address, error) { +func (_Core *CoreCaller) GetPoolOwner(opts *bind.CallOpts, poolId *big.Int) (common.Address, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getPoolOwner", poolId) + err := _Core.contract.Call(opts, &out, "getPoolOwner", poolId) if err != nil { return *new(common.Address), err @@ -1483,26 +1452,26 @@ func (_CoreGoerli *CoreGoerliCaller) GetPoolOwner(opts *bind.CallOpts, poolId *b // GetPoolOwner is a free data retrieval call binding the contract method 0xbbdd7c5a. // // Solidity: function getPoolOwner(uint128 poolId) view returns(address) -func (_CoreGoerli *CoreGoerliSession) GetPoolOwner(poolId *big.Int) (common.Address, error) { - return _CoreGoerli.Contract.GetPoolOwner(&_CoreGoerli.CallOpts, poolId) +func (_Core *CoreSession) GetPoolOwner(poolId *big.Int) (common.Address, error) { + return _Core.Contract.GetPoolOwner(&_Core.CallOpts, poolId) } // GetPoolOwner is a free data retrieval call binding the contract method 0xbbdd7c5a. // // Solidity: function getPoolOwner(uint128 poolId) view returns(address) -func (_CoreGoerli *CoreGoerliCallerSession) GetPoolOwner(poolId *big.Int) (common.Address, error) { - return _CoreGoerli.Contract.GetPoolOwner(&_CoreGoerli.CallOpts, poolId) +func (_Core *CoreCallerSession) GetPoolOwner(poolId *big.Int) (common.Address, error) { + return _Core.Contract.GetPoolOwner(&_Core.CallOpts, poolId) } // GetPositionCollateral is a free data retrieval call binding the contract method 0x33cc422b. // // Solidity: function getPositionCollateral(uint128 accountId, uint128 poolId, address collateralType) view returns(uint256 amount, uint256 value) -func (_CoreGoerli *CoreGoerliCaller) GetPositionCollateral(opts *bind.CallOpts, accountId *big.Int, poolId *big.Int, collateralType common.Address) (struct { +func (_Core *CoreCaller) GetPositionCollateral(opts *bind.CallOpts, accountId *big.Int, poolId *big.Int, collateralType common.Address) (struct { Amount *big.Int Value *big.Int }, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getPositionCollateral", accountId, poolId, collateralType) + err := _Core.contract.Call(opts, &out, "getPositionCollateral", accountId, poolId, collateralType) outstruct := new(struct { Amount *big.Int @@ -1522,29 +1491,29 @@ func (_CoreGoerli *CoreGoerliCaller) GetPositionCollateral(opts *bind.CallOpts, // GetPositionCollateral is a free data retrieval call binding the contract method 0x33cc422b. // // Solidity: function getPositionCollateral(uint128 accountId, uint128 poolId, address collateralType) view returns(uint256 amount, uint256 value) -func (_CoreGoerli *CoreGoerliSession) GetPositionCollateral(accountId *big.Int, poolId *big.Int, collateralType common.Address) (struct { +func (_Core *CoreSession) GetPositionCollateral(accountId *big.Int, poolId *big.Int, collateralType common.Address) (struct { Amount *big.Int Value *big.Int }, error) { - return _CoreGoerli.Contract.GetPositionCollateral(&_CoreGoerli.CallOpts, accountId, poolId, collateralType) + return _Core.Contract.GetPositionCollateral(&_Core.CallOpts, accountId, poolId, collateralType) } // GetPositionCollateral is a free data retrieval call binding the contract method 0x33cc422b. // // Solidity: function getPositionCollateral(uint128 accountId, uint128 poolId, address collateralType) view returns(uint256 amount, uint256 value) -func (_CoreGoerli *CoreGoerliCallerSession) GetPositionCollateral(accountId *big.Int, poolId *big.Int, collateralType common.Address) (struct { +func (_Core *CoreCallerSession) GetPositionCollateral(accountId *big.Int, poolId *big.Int, collateralType common.Address) (struct { Amount *big.Int Value *big.Int }, error) { - return _CoreGoerli.Contract.GetPositionCollateral(&_CoreGoerli.CallOpts, accountId, poolId, collateralType) + return _Core.Contract.GetPositionCollateral(&_Core.CallOpts, accountId, poolId, collateralType) } // GetPreferredPool is a free data retrieval call binding the contract method 0x3b390b57. // // Solidity: function getPreferredPool() view returns(uint128) -func (_CoreGoerli *CoreGoerliCaller) GetPreferredPool(opts *bind.CallOpts) (*big.Int, error) { +func (_Core *CoreCaller) GetPreferredPool(opts *bind.CallOpts) (*big.Int, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getPreferredPool") + err := _Core.contract.Call(opts, &out, "getPreferredPool") if err != nil { return *new(*big.Int), err @@ -1559,23 +1528,23 @@ func (_CoreGoerli *CoreGoerliCaller) GetPreferredPool(opts *bind.CallOpts) (*big // GetPreferredPool is a free data retrieval call binding the contract method 0x3b390b57. // // Solidity: function getPreferredPool() view returns(uint128) -func (_CoreGoerli *CoreGoerliSession) GetPreferredPool() (*big.Int, error) { - return _CoreGoerli.Contract.GetPreferredPool(&_CoreGoerli.CallOpts) +func (_Core *CoreSession) GetPreferredPool() (*big.Int, error) { + return _Core.Contract.GetPreferredPool(&_Core.CallOpts) } // GetPreferredPool is a free data retrieval call binding the contract method 0x3b390b57. // // Solidity: function getPreferredPool() view returns(uint128) -func (_CoreGoerli *CoreGoerliCallerSession) GetPreferredPool() (*big.Int, error) { - return _CoreGoerli.Contract.GetPreferredPool(&_CoreGoerli.CallOpts) +func (_Core *CoreCallerSession) GetPreferredPool() (*big.Int, error) { + return _Core.Contract.GetPreferredPool(&_Core.CallOpts) } // GetRewardRate is a free data retrieval call binding the contract method 0x0dd2395a. // // Solidity: function getRewardRate(uint128 poolId, address collateralType, address distributor) view returns(uint256) -func (_CoreGoerli *CoreGoerliCaller) GetRewardRate(opts *bind.CallOpts, poolId *big.Int, collateralType common.Address, distributor common.Address) (*big.Int, error) { +func (_Core *CoreCaller) GetRewardRate(opts *bind.CallOpts, poolId *big.Int, collateralType common.Address, distributor common.Address) (*big.Int, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getRewardRate", poolId, collateralType, distributor) + err := _Core.contract.Call(opts, &out, "getRewardRate", poolId, collateralType, distributor) if err != nil { return *new(*big.Int), err @@ -1590,23 +1559,54 @@ func (_CoreGoerli *CoreGoerliCaller) GetRewardRate(opts *bind.CallOpts, poolId * // GetRewardRate is a free data retrieval call binding the contract method 0x0dd2395a. // // Solidity: function getRewardRate(uint128 poolId, address collateralType, address distributor) view returns(uint256) -func (_CoreGoerli *CoreGoerliSession) GetRewardRate(poolId *big.Int, collateralType common.Address, distributor common.Address) (*big.Int, error) { - return _CoreGoerli.Contract.GetRewardRate(&_CoreGoerli.CallOpts, poolId, collateralType, distributor) +func (_Core *CoreSession) GetRewardRate(poolId *big.Int, collateralType common.Address, distributor common.Address) (*big.Int, error) { + return _Core.Contract.GetRewardRate(&_Core.CallOpts, poolId, collateralType, distributor) } // GetRewardRate is a free data retrieval call binding the contract method 0x0dd2395a. // // Solidity: function getRewardRate(uint128 poolId, address collateralType, address distributor) view returns(uint256) -func (_CoreGoerli *CoreGoerliCallerSession) GetRewardRate(poolId *big.Int, collateralType common.Address, distributor common.Address) (*big.Int, error) { - return _CoreGoerli.Contract.GetRewardRate(&_CoreGoerli.CallOpts, poolId, collateralType, distributor) +func (_Core *CoreCallerSession) GetRewardRate(poolId *big.Int, collateralType common.Address, distributor common.Address) (*big.Int, error) { + return _Core.Contract.GetRewardRate(&_Core.CallOpts, poolId, collateralType, distributor) +} + +// GetTrustedForwarder is a free data retrieval call binding the contract method 0xce1b815f. +// +// Solidity: function getTrustedForwarder() pure returns(address) +func (_Core *CoreCaller) GetTrustedForwarder(opts *bind.CallOpts) (common.Address, error) { + var out []interface{} + err := _Core.contract.Call(opts, &out, "getTrustedForwarder") + + if err != nil { + return *new(common.Address), err + } + + out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) + + return out0, err + +} + +// GetTrustedForwarder is a free data retrieval call binding the contract method 0xce1b815f. +// +// Solidity: function getTrustedForwarder() pure returns(address) +func (_Core *CoreSession) GetTrustedForwarder() (common.Address, error) { + return _Core.Contract.GetTrustedForwarder(&_Core.CallOpts) +} + +// GetTrustedForwarder is a free data retrieval call binding the contract method 0xce1b815f. +// +// Solidity: function getTrustedForwarder() pure returns(address) +func (_Core *CoreCallerSession) GetTrustedForwarder() (common.Address, error) { + return _Core.Contract.GetTrustedForwarder(&_Core.CallOpts) } // GetUsdToken is a free data retrieval call binding the contract method 0x21f1d9e5. // // Solidity: function getUsdToken() view returns(address) -func (_CoreGoerli *CoreGoerliCaller) GetUsdToken(opts *bind.CallOpts) (common.Address, error) { +func (_Core *CoreCaller) GetUsdToken(opts *bind.CallOpts) (common.Address, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getUsdToken") + err := _Core.contract.Call(opts, &out, "getUsdToken") if err != nil { return *new(common.Address), err @@ -1621,26 +1621,26 @@ func (_CoreGoerli *CoreGoerliCaller) GetUsdToken(opts *bind.CallOpts) (common.Ad // GetUsdToken is a free data retrieval call binding the contract method 0x21f1d9e5. // // Solidity: function getUsdToken() view returns(address) -func (_CoreGoerli *CoreGoerliSession) GetUsdToken() (common.Address, error) { - return _CoreGoerli.Contract.GetUsdToken(&_CoreGoerli.CallOpts) +func (_Core *CoreSession) GetUsdToken() (common.Address, error) { + return _Core.Contract.GetUsdToken(&_Core.CallOpts) } // GetUsdToken is a free data retrieval call binding the contract method 0x21f1d9e5. // // Solidity: function getUsdToken() view returns(address) -func (_CoreGoerli *CoreGoerliCallerSession) GetUsdToken() (common.Address, error) { - return _CoreGoerli.Contract.GetUsdToken(&_CoreGoerli.CallOpts) +func (_Core *CoreCallerSession) GetUsdToken() (common.Address, error) { + return _Core.Contract.GetUsdToken(&_Core.CallOpts) } // GetVaultCollateral is a free data retrieval call binding the contract method 0x078145a8. // // Solidity: function getVaultCollateral(uint128 poolId, address collateralType) view returns(uint256 amount, uint256 value) -func (_CoreGoerli *CoreGoerliCaller) GetVaultCollateral(opts *bind.CallOpts, poolId *big.Int, collateralType common.Address) (struct { +func (_Core *CoreCaller) GetVaultCollateral(opts *bind.CallOpts, poolId *big.Int, collateralType common.Address) (struct { Amount *big.Int Value *big.Int }, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getVaultCollateral", poolId, collateralType) + err := _Core.contract.Call(opts, &out, "getVaultCollateral", poolId, collateralType) outstruct := new(struct { Amount *big.Int @@ -1660,29 +1660,29 @@ func (_CoreGoerli *CoreGoerliCaller) GetVaultCollateral(opts *bind.CallOpts, poo // GetVaultCollateral is a free data retrieval call binding the contract method 0x078145a8. // // Solidity: function getVaultCollateral(uint128 poolId, address collateralType) view returns(uint256 amount, uint256 value) -func (_CoreGoerli *CoreGoerliSession) GetVaultCollateral(poolId *big.Int, collateralType common.Address) (struct { +func (_Core *CoreSession) GetVaultCollateral(poolId *big.Int, collateralType common.Address) (struct { Amount *big.Int Value *big.Int }, error) { - return _CoreGoerli.Contract.GetVaultCollateral(&_CoreGoerli.CallOpts, poolId, collateralType) + return _Core.Contract.GetVaultCollateral(&_Core.CallOpts, poolId, collateralType) } // GetVaultCollateral is a free data retrieval call binding the contract method 0x078145a8. // // Solidity: function getVaultCollateral(uint128 poolId, address collateralType) view returns(uint256 amount, uint256 value) -func (_CoreGoerli *CoreGoerliCallerSession) GetVaultCollateral(poolId *big.Int, collateralType common.Address) (struct { +func (_Core *CoreCallerSession) GetVaultCollateral(poolId *big.Int, collateralType common.Address) (struct { Amount *big.Int Value *big.Int }, error) { - return _CoreGoerli.Contract.GetVaultCollateral(&_CoreGoerli.CallOpts, poolId, collateralType) + return _Core.Contract.GetVaultCollateral(&_Core.CallOpts, poolId, collateralType) } // GetWithdrawableMarketUsd is a free data retrieval call binding the contract method 0x1eb60770. // // Solidity: function getWithdrawableMarketUsd(uint128 marketId) view returns(uint256) -func (_CoreGoerli *CoreGoerliCaller) GetWithdrawableMarketUsd(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { +func (_Core *CoreCaller) GetWithdrawableMarketUsd(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "getWithdrawableMarketUsd", marketId) + err := _Core.contract.Call(opts, &out, "getWithdrawableMarketUsd", marketId) if err != nil { return *new(*big.Int), err @@ -1697,23 +1697,23 @@ func (_CoreGoerli *CoreGoerliCaller) GetWithdrawableMarketUsd(opts *bind.CallOpt // GetWithdrawableMarketUsd is a free data retrieval call binding the contract method 0x1eb60770. // // Solidity: function getWithdrawableMarketUsd(uint128 marketId) view returns(uint256) -func (_CoreGoerli *CoreGoerliSession) GetWithdrawableMarketUsd(marketId *big.Int) (*big.Int, error) { - return _CoreGoerli.Contract.GetWithdrawableMarketUsd(&_CoreGoerli.CallOpts, marketId) +func (_Core *CoreSession) GetWithdrawableMarketUsd(marketId *big.Int) (*big.Int, error) { + return _Core.Contract.GetWithdrawableMarketUsd(&_Core.CallOpts, marketId) } // GetWithdrawableMarketUsd is a free data retrieval call binding the contract method 0x1eb60770. // // Solidity: function getWithdrawableMarketUsd(uint128 marketId) view returns(uint256) -func (_CoreGoerli *CoreGoerliCallerSession) GetWithdrawableMarketUsd(marketId *big.Int) (*big.Int, error) { - return _CoreGoerli.Contract.GetWithdrawableMarketUsd(&_CoreGoerli.CallOpts, marketId) +func (_Core *CoreCallerSession) GetWithdrawableMarketUsd(marketId *big.Int) (*big.Int, error) { + return _Core.Contract.GetWithdrawableMarketUsd(&_Core.CallOpts, marketId) } // HasPermission is a free data retrieval call binding the contract method 0x8d34166b. // // Solidity: function hasPermission(uint128 accountId, bytes32 permission, address user) view returns(bool) -func (_CoreGoerli *CoreGoerliCaller) HasPermission(opts *bind.CallOpts, accountId *big.Int, permission [32]byte, user common.Address) (bool, error) { +func (_Core *CoreCaller) HasPermission(opts *bind.CallOpts, accountId *big.Int, permission [32]byte, user common.Address) (bool, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "hasPermission", accountId, permission, user) + err := _Core.contract.Call(opts, &out, "hasPermission", accountId, permission, user) if err != nil { return *new(bool), err @@ -1728,23 +1728,23 @@ func (_CoreGoerli *CoreGoerliCaller) HasPermission(opts *bind.CallOpts, accountI // HasPermission is a free data retrieval call binding the contract method 0x8d34166b. // // Solidity: function hasPermission(uint128 accountId, bytes32 permission, address user) view returns(bool) -func (_CoreGoerli *CoreGoerliSession) HasPermission(accountId *big.Int, permission [32]byte, user common.Address) (bool, error) { - return _CoreGoerli.Contract.HasPermission(&_CoreGoerli.CallOpts, accountId, permission, user) +func (_Core *CoreSession) HasPermission(accountId *big.Int, permission [32]byte, user common.Address) (bool, error) { + return _Core.Contract.HasPermission(&_Core.CallOpts, accountId, permission, user) } // HasPermission is a free data retrieval call binding the contract method 0x8d34166b. // // Solidity: function hasPermission(uint128 accountId, bytes32 permission, address user) view returns(bool) -func (_CoreGoerli *CoreGoerliCallerSession) HasPermission(accountId *big.Int, permission [32]byte, user common.Address) (bool, error) { - return _CoreGoerli.Contract.HasPermission(&_CoreGoerli.CallOpts, accountId, permission, user) +func (_Core *CoreCallerSession) HasPermission(accountId *big.Int, permission [32]byte, user common.Address) (bool, error) { + return _Core.Contract.HasPermission(&_Core.CallOpts, accountId, permission, user) } // IsAuthorized is a free data retrieval call binding the contract method 0x1213d453. // // Solidity: function isAuthorized(uint128 accountId, bytes32 permission, address user) view returns(bool) -func (_CoreGoerli *CoreGoerliCaller) IsAuthorized(opts *bind.CallOpts, accountId *big.Int, permission [32]byte, user common.Address) (bool, error) { +func (_Core *CoreCaller) IsAuthorized(opts *bind.CallOpts, accountId *big.Int, permission [32]byte, user common.Address) (bool, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "isAuthorized", accountId, permission, user) + err := _Core.contract.Call(opts, &out, "isAuthorized", accountId, permission, user) if err != nil { return *new(bool), err @@ -1759,23 +1759,23 @@ func (_CoreGoerli *CoreGoerliCaller) IsAuthorized(opts *bind.CallOpts, accountId // IsAuthorized is a free data retrieval call binding the contract method 0x1213d453. // // Solidity: function isAuthorized(uint128 accountId, bytes32 permission, address user) view returns(bool) -func (_CoreGoerli *CoreGoerliSession) IsAuthorized(accountId *big.Int, permission [32]byte, user common.Address) (bool, error) { - return _CoreGoerli.Contract.IsAuthorized(&_CoreGoerli.CallOpts, accountId, permission, user) +func (_Core *CoreSession) IsAuthorized(accountId *big.Int, permission [32]byte, user common.Address) (bool, error) { + return _Core.Contract.IsAuthorized(&_Core.CallOpts, accountId, permission, user) } // IsAuthorized is a free data retrieval call binding the contract method 0x1213d453. // // Solidity: function isAuthorized(uint128 accountId, bytes32 permission, address user) view returns(bool) -func (_CoreGoerli *CoreGoerliCallerSession) IsAuthorized(accountId *big.Int, permission [32]byte, user common.Address) (bool, error) { - return _CoreGoerli.Contract.IsAuthorized(&_CoreGoerli.CallOpts, accountId, permission, user) +func (_Core *CoreCallerSession) IsAuthorized(accountId *big.Int, permission [32]byte, user common.Address) (bool, error) { + return _Core.Contract.IsAuthorized(&_Core.CallOpts, accountId, permission, user) } // IsFeatureAllowed is a free data retrieval call binding the contract method 0xcf635949. // // Solidity: function isFeatureAllowed(bytes32 feature, address account) view returns(bool) -func (_CoreGoerli *CoreGoerliCaller) IsFeatureAllowed(opts *bind.CallOpts, feature [32]byte, account common.Address) (bool, error) { +func (_Core *CoreCaller) IsFeatureAllowed(opts *bind.CallOpts, feature [32]byte, account common.Address) (bool, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "isFeatureAllowed", feature, account) + err := _Core.contract.Call(opts, &out, "isFeatureAllowed", feature, account) if err != nil { return *new(bool), err @@ -1790,23 +1790,23 @@ func (_CoreGoerli *CoreGoerliCaller) IsFeatureAllowed(opts *bind.CallOpts, featu // IsFeatureAllowed is a free data retrieval call binding the contract method 0xcf635949. // // Solidity: function isFeatureAllowed(bytes32 feature, address account) view returns(bool) -func (_CoreGoerli *CoreGoerliSession) IsFeatureAllowed(feature [32]byte, account common.Address) (bool, error) { - return _CoreGoerli.Contract.IsFeatureAllowed(&_CoreGoerli.CallOpts, feature, account) +func (_Core *CoreSession) IsFeatureAllowed(feature [32]byte, account common.Address) (bool, error) { + return _Core.Contract.IsFeatureAllowed(&_Core.CallOpts, feature, account) } // IsFeatureAllowed is a free data retrieval call binding the contract method 0xcf635949. // // Solidity: function isFeatureAllowed(bytes32 feature, address account) view returns(bool) -func (_CoreGoerli *CoreGoerliCallerSession) IsFeatureAllowed(feature [32]byte, account common.Address) (bool, error) { - return _CoreGoerli.Contract.IsFeatureAllowed(&_CoreGoerli.CallOpts, feature, account) +func (_Core *CoreCallerSession) IsFeatureAllowed(feature [32]byte, account common.Address) (bool, error) { + return _Core.Contract.IsFeatureAllowed(&_Core.CallOpts, feature, account) } // IsMarketCapacityLocked is a free data retrieval call binding the contract method 0x07003f0a. // // Solidity: function isMarketCapacityLocked(uint128 marketId) view returns(bool) -func (_CoreGoerli *CoreGoerliCaller) IsMarketCapacityLocked(opts *bind.CallOpts, marketId *big.Int) (bool, error) { +func (_Core *CoreCaller) IsMarketCapacityLocked(opts *bind.CallOpts, marketId *big.Int) (bool, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "isMarketCapacityLocked", marketId) + err := _Core.contract.Call(opts, &out, "isMarketCapacityLocked", marketId) if err != nil { return *new(bool), err @@ -1821,23 +1821,54 @@ func (_CoreGoerli *CoreGoerliCaller) IsMarketCapacityLocked(opts *bind.CallOpts, // IsMarketCapacityLocked is a free data retrieval call binding the contract method 0x07003f0a. // // Solidity: function isMarketCapacityLocked(uint128 marketId) view returns(bool) -func (_CoreGoerli *CoreGoerliSession) IsMarketCapacityLocked(marketId *big.Int) (bool, error) { - return _CoreGoerli.Contract.IsMarketCapacityLocked(&_CoreGoerli.CallOpts, marketId) +func (_Core *CoreSession) IsMarketCapacityLocked(marketId *big.Int) (bool, error) { + return _Core.Contract.IsMarketCapacityLocked(&_Core.CallOpts, marketId) } // IsMarketCapacityLocked is a free data retrieval call binding the contract method 0x07003f0a. // // Solidity: function isMarketCapacityLocked(uint128 marketId) view returns(bool) -func (_CoreGoerli *CoreGoerliCallerSession) IsMarketCapacityLocked(marketId *big.Int) (bool, error) { - return _CoreGoerli.Contract.IsMarketCapacityLocked(&_CoreGoerli.CallOpts, marketId) +func (_Core *CoreCallerSession) IsMarketCapacityLocked(marketId *big.Int) (bool, error) { + return _Core.Contract.IsMarketCapacityLocked(&_Core.CallOpts, marketId) +} + +// IsTrustedForwarder is a free data retrieval call binding the contract method 0x572b6c05. +// +// Solidity: function isTrustedForwarder(address forwarder) pure returns(bool) +func (_Core *CoreCaller) IsTrustedForwarder(opts *bind.CallOpts, forwarder common.Address) (bool, error) { + var out []interface{} + err := _Core.contract.Call(opts, &out, "isTrustedForwarder", forwarder) + + if err != nil { + return *new(bool), err + } + + out0 := *abi.ConvertType(out[0], new(bool)).(*bool) + + return out0, err + +} + +// IsTrustedForwarder is a free data retrieval call binding the contract method 0x572b6c05. +// +// Solidity: function isTrustedForwarder(address forwarder) pure returns(bool) +func (_Core *CoreSession) IsTrustedForwarder(forwarder common.Address) (bool, error) { + return _Core.Contract.IsTrustedForwarder(&_Core.CallOpts, forwarder) +} + +// IsTrustedForwarder is a free data retrieval call binding the contract method 0x572b6c05. +// +// Solidity: function isTrustedForwarder(address forwarder) pure returns(bool) +func (_Core *CoreCallerSession) IsTrustedForwarder(forwarder common.Address) (bool, error) { + return _Core.Contract.IsTrustedForwarder(&_Core.CallOpts, forwarder) } // NominatedOwner is a free data retrieval call binding the contract method 0x53a47bb7. // // Solidity: function nominatedOwner() view returns(address) -func (_CoreGoerli *CoreGoerliCaller) NominatedOwner(opts *bind.CallOpts) (common.Address, error) { +func (_Core *CoreCaller) NominatedOwner(opts *bind.CallOpts) (common.Address, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "nominatedOwner") + err := _Core.contract.Call(opts, &out, "nominatedOwner") if err != nil { return *new(common.Address), err @@ -1852,23 +1883,23 @@ func (_CoreGoerli *CoreGoerliCaller) NominatedOwner(opts *bind.CallOpts) (common // NominatedOwner is a free data retrieval call binding the contract method 0x53a47bb7. // // Solidity: function nominatedOwner() view returns(address) -func (_CoreGoerli *CoreGoerliSession) NominatedOwner() (common.Address, error) { - return _CoreGoerli.Contract.NominatedOwner(&_CoreGoerli.CallOpts) +func (_Core *CoreSession) NominatedOwner() (common.Address, error) { + return _Core.Contract.NominatedOwner(&_Core.CallOpts) } // NominatedOwner is a free data retrieval call binding the contract method 0x53a47bb7. // // Solidity: function nominatedOwner() view returns(address) -func (_CoreGoerli *CoreGoerliCallerSession) NominatedOwner() (common.Address, error) { - return _CoreGoerli.Contract.NominatedOwner(&_CoreGoerli.CallOpts) +func (_Core *CoreCallerSession) NominatedOwner() (common.Address, error) { + return _Core.Contract.NominatedOwner(&_Core.CallOpts) } // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. // // Solidity: function owner() view returns(address) -func (_CoreGoerli *CoreGoerliCaller) Owner(opts *bind.CallOpts) (common.Address, error) { +func (_Core *CoreCaller) Owner(opts *bind.CallOpts) (common.Address, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "owner") + err := _Core.contract.Call(opts, &out, "owner") if err != nil { return *new(common.Address), err @@ -1883,23 +1914,23 @@ func (_CoreGoerli *CoreGoerliCaller) Owner(opts *bind.CallOpts) (common.Address, // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. // // Solidity: function owner() view returns(address) -func (_CoreGoerli *CoreGoerliSession) Owner() (common.Address, error) { - return _CoreGoerli.Contract.Owner(&_CoreGoerli.CallOpts) +func (_Core *CoreSession) Owner() (common.Address, error) { + return _Core.Contract.Owner(&_Core.CallOpts) } // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. // // Solidity: function owner() view returns(address) -func (_CoreGoerli *CoreGoerliCallerSession) Owner() (common.Address, error) { - return _CoreGoerli.Contract.Owner(&_CoreGoerli.CallOpts) +func (_Core *CoreCallerSession) Owner() (common.Address, error) { + return _Core.Contract.Owner(&_Core.CallOpts) } // SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7. // // Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool) -func (_CoreGoerli *CoreGoerliCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error) { +func (_Core *CoreCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error) { var out []interface{} - err := _CoreGoerli.contract.Call(opts, &out, "supportsInterface", interfaceId) + err := _Core.contract.Call(opts, &out, "supportsInterface", interfaceId) if err != nil { return *new(bool), err @@ -1914,1637 +1945,1595 @@ func (_CoreGoerli *CoreGoerliCaller) SupportsInterface(opts *bind.CallOpts, inte // SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7. // // Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool) -func (_CoreGoerli *CoreGoerliSession) SupportsInterface(interfaceId [4]byte) (bool, error) { - return _CoreGoerli.Contract.SupportsInterface(&_CoreGoerli.CallOpts, interfaceId) +func (_Core *CoreSession) SupportsInterface(interfaceId [4]byte) (bool, error) { + return _Core.Contract.SupportsInterface(&_Core.CallOpts, interfaceId) } // SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7. // // Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool) -func (_CoreGoerli *CoreGoerliCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error) { - return _CoreGoerli.Contract.SupportsInterface(&_CoreGoerli.CallOpts, interfaceId) +func (_Core *CoreCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error) { + return _Core.Contract.SupportsInterface(&_Core.CallOpts, interfaceId) } // AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. // // Solidity: function acceptOwnership() returns() -func (_CoreGoerli *CoreGoerliTransactor) AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "acceptOwnership") +func (_Core *CoreTransactor) AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "acceptOwnership") } // AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. // // Solidity: function acceptOwnership() returns() -func (_CoreGoerli *CoreGoerliSession) AcceptOwnership() (*types.Transaction, error) { - return _CoreGoerli.Contract.AcceptOwnership(&_CoreGoerli.TransactOpts) +func (_Core *CoreSession) AcceptOwnership() (*types.Transaction, error) { + return _Core.Contract.AcceptOwnership(&_Core.TransactOpts) } // AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. // // Solidity: function acceptOwnership() returns() -func (_CoreGoerli *CoreGoerliTransactorSession) AcceptOwnership() (*types.Transaction, error) { - return _CoreGoerli.Contract.AcceptOwnership(&_CoreGoerli.TransactOpts) +func (_Core *CoreTransactorSession) AcceptOwnership() (*types.Transaction, error) { + return _Core.Contract.AcceptOwnership(&_Core.TransactOpts) } // AcceptPoolOwnership is a paid mutator transaction binding the contract method 0xc707a39f. // // Solidity: function acceptPoolOwnership(uint128 poolId) returns() -func (_CoreGoerli *CoreGoerliTransactor) AcceptPoolOwnership(opts *bind.TransactOpts, poolId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "acceptPoolOwnership", poolId) +func (_Core *CoreTransactor) AcceptPoolOwnership(opts *bind.TransactOpts, poolId *big.Int) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "acceptPoolOwnership", poolId) } // AcceptPoolOwnership is a paid mutator transaction binding the contract method 0xc707a39f. // // Solidity: function acceptPoolOwnership(uint128 poolId) returns() -func (_CoreGoerli *CoreGoerliSession) AcceptPoolOwnership(poolId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.AcceptPoolOwnership(&_CoreGoerli.TransactOpts, poolId) +func (_Core *CoreSession) AcceptPoolOwnership(poolId *big.Int) (*types.Transaction, error) { + return _Core.Contract.AcceptPoolOwnership(&_Core.TransactOpts, poolId) } // AcceptPoolOwnership is a paid mutator transaction binding the contract method 0xc707a39f. // // Solidity: function acceptPoolOwnership(uint128 poolId) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) AcceptPoolOwnership(poolId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.AcceptPoolOwnership(&_CoreGoerli.TransactOpts, poolId) +func (_Core *CoreTransactorSession) AcceptPoolOwnership(poolId *big.Int) (*types.Transaction, error) { + return _Core.Contract.AcceptPoolOwnership(&_Core.TransactOpts, poolId) } // AddApprovedPool is a paid mutator transaction binding the contract method 0xb790a1ae. // // Solidity: function addApprovedPool(uint128 poolId) returns() -func (_CoreGoerli *CoreGoerliTransactor) AddApprovedPool(opts *bind.TransactOpts, poolId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "addApprovedPool", poolId) +func (_Core *CoreTransactor) AddApprovedPool(opts *bind.TransactOpts, poolId *big.Int) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "addApprovedPool", poolId) } // AddApprovedPool is a paid mutator transaction binding the contract method 0xb790a1ae. // // Solidity: function addApprovedPool(uint128 poolId) returns() -func (_CoreGoerli *CoreGoerliSession) AddApprovedPool(poolId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.AddApprovedPool(&_CoreGoerli.TransactOpts, poolId) +func (_Core *CoreSession) AddApprovedPool(poolId *big.Int) (*types.Transaction, error) { + return _Core.Contract.AddApprovedPool(&_Core.TransactOpts, poolId) } // AddApprovedPool is a paid mutator transaction binding the contract method 0xb790a1ae. // // Solidity: function addApprovedPool(uint128 poolId) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) AddApprovedPool(poolId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.AddApprovedPool(&_CoreGoerli.TransactOpts, poolId) +func (_Core *CoreTransactorSession) AddApprovedPool(poolId *big.Int) (*types.Transaction, error) { + return _Core.Contract.AddApprovedPool(&_Core.TransactOpts, poolId) } // AddToFeatureFlagAllowlist is a paid mutator transaction binding the contract method 0xa0778144. // // Solidity: function addToFeatureFlagAllowlist(bytes32 feature, address account) returns() -func (_CoreGoerli *CoreGoerliTransactor) AddToFeatureFlagAllowlist(opts *bind.TransactOpts, feature [32]byte, account common.Address) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "addToFeatureFlagAllowlist", feature, account) +func (_Core *CoreTransactor) AddToFeatureFlagAllowlist(opts *bind.TransactOpts, feature [32]byte, account common.Address) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "addToFeatureFlagAllowlist", feature, account) } // AddToFeatureFlagAllowlist is a paid mutator transaction binding the contract method 0xa0778144. // // Solidity: function addToFeatureFlagAllowlist(bytes32 feature, address account) returns() -func (_CoreGoerli *CoreGoerliSession) AddToFeatureFlagAllowlist(feature [32]byte, account common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.AddToFeatureFlagAllowlist(&_CoreGoerli.TransactOpts, feature, account) +func (_Core *CoreSession) AddToFeatureFlagAllowlist(feature [32]byte, account common.Address) (*types.Transaction, error) { + return _Core.Contract.AddToFeatureFlagAllowlist(&_Core.TransactOpts, feature, account) } // AddToFeatureFlagAllowlist is a paid mutator transaction binding the contract method 0xa0778144. // // Solidity: function addToFeatureFlagAllowlist(bytes32 feature, address account) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) AddToFeatureFlagAllowlist(feature [32]byte, account common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.AddToFeatureFlagAllowlist(&_CoreGoerli.TransactOpts, feature, account) +func (_Core *CoreTransactorSession) AddToFeatureFlagAllowlist(feature [32]byte, account common.Address) (*types.Transaction, error) { + return _Core.Contract.AddToFeatureFlagAllowlist(&_Core.TransactOpts, feature, account) } // AssociateDebt is a paid mutator transaction binding the contract method 0x11aa282d. // // Solidity: function associateDebt(uint128 marketId, uint128 poolId, address collateralType, uint128 accountId, uint256 amount) returns(int256) -func (_CoreGoerli *CoreGoerliTransactor) AssociateDebt(opts *bind.TransactOpts, marketId *big.Int, poolId *big.Int, collateralType common.Address, accountId *big.Int, amount *big.Int) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "associateDebt", marketId, poolId, collateralType, accountId, amount) +func (_Core *CoreTransactor) AssociateDebt(opts *bind.TransactOpts, marketId *big.Int, poolId *big.Int, collateralType common.Address, accountId *big.Int, amount *big.Int) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "associateDebt", marketId, poolId, collateralType, accountId, amount) } // AssociateDebt is a paid mutator transaction binding the contract method 0x11aa282d. // // Solidity: function associateDebt(uint128 marketId, uint128 poolId, address collateralType, uint128 accountId, uint256 amount) returns(int256) -func (_CoreGoerli *CoreGoerliSession) AssociateDebt(marketId *big.Int, poolId *big.Int, collateralType common.Address, accountId *big.Int, amount *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.AssociateDebt(&_CoreGoerli.TransactOpts, marketId, poolId, collateralType, accountId, amount) +func (_Core *CoreSession) AssociateDebt(marketId *big.Int, poolId *big.Int, collateralType common.Address, accountId *big.Int, amount *big.Int) (*types.Transaction, error) { + return _Core.Contract.AssociateDebt(&_Core.TransactOpts, marketId, poolId, collateralType, accountId, amount) } // AssociateDebt is a paid mutator transaction binding the contract method 0x11aa282d. // // Solidity: function associateDebt(uint128 marketId, uint128 poolId, address collateralType, uint128 accountId, uint256 amount) returns(int256) -func (_CoreGoerli *CoreGoerliTransactorSession) AssociateDebt(marketId *big.Int, poolId *big.Int, collateralType common.Address, accountId *big.Int, amount *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.AssociateDebt(&_CoreGoerli.TransactOpts, marketId, poolId, collateralType, accountId, amount) +func (_Core *CoreTransactorSession) AssociateDebt(marketId *big.Int, poolId *big.Int, collateralType common.Address, accountId *big.Int, amount *big.Int) (*types.Transaction, error) { + return _Core.Contract.AssociateDebt(&_Core.TransactOpts, marketId, poolId, collateralType, accountId, amount) } // BurnUsd is a paid mutator transaction binding the contract method 0xd3264e43. // // Solidity: function burnUsd(uint128 accountId, uint128 poolId, address collateralType, uint256 amount) returns() -func (_CoreGoerli *CoreGoerliTransactor) BurnUsd(opts *bind.TransactOpts, accountId *big.Int, poolId *big.Int, collateralType common.Address, amount *big.Int) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "burnUsd", accountId, poolId, collateralType, amount) +func (_Core *CoreTransactor) BurnUsd(opts *bind.TransactOpts, accountId *big.Int, poolId *big.Int, collateralType common.Address, amount *big.Int) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "burnUsd", accountId, poolId, collateralType, amount) } // BurnUsd is a paid mutator transaction binding the contract method 0xd3264e43. // // Solidity: function burnUsd(uint128 accountId, uint128 poolId, address collateralType, uint256 amount) returns() -func (_CoreGoerli *CoreGoerliSession) BurnUsd(accountId *big.Int, poolId *big.Int, collateralType common.Address, amount *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.BurnUsd(&_CoreGoerli.TransactOpts, accountId, poolId, collateralType, amount) +func (_Core *CoreSession) BurnUsd(accountId *big.Int, poolId *big.Int, collateralType common.Address, amount *big.Int) (*types.Transaction, error) { + return _Core.Contract.BurnUsd(&_Core.TransactOpts, accountId, poolId, collateralType, amount) } // BurnUsd is a paid mutator transaction binding the contract method 0xd3264e43. // // Solidity: function burnUsd(uint128 accountId, uint128 poolId, address collateralType, uint256 amount) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) BurnUsd(accountId *big.Int, poolId *big.Int, collateralType common.Address, amount *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.BurnUsd(&_CoreGoerli.TransactOpts, accountId, poolId, collateralType, amount) +func (_Core *CoreTransactorSession) BurnUsd(accountId *big.Int, poolId *big.Int, collateralType common.Address, amount *big.Int) (*types.Transaction, error) { + return _Core.Contract.BurnUsd(&_Core.TransactOpts, accountId, poolId, collateralType, amount) } // CcipReceive is a paid mutator transaction binding the contract method 0x85572ffb. // // Solidity: function ccipReceive((bytes32,uint64,bytes,bytes,(address,uint256)[]) message) returns() -func (_CoreGoerli *CoreGoerliTransactor) CcipReceive(opts *bind.TransactOpts, message CcipClientAny2EVMMessage) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "ccipReceive", message) +func (_Core *CoreTransactor) CcipReceive(opts *bind.TransactOpts, message CcipClientAny2EVMMessage) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "ccipReceive", message) } // CcipReceive is a paid mutator transaction binding the contract method 0x85572ffb. // // Solidity: function ccipReceive((bytes32,uint64,bytes,bytes,(address,uint256)[]) message) returns() -func (_CoreGoerli *CoreGoerliSession) CcipReceive(message CcipClientAny2EVMMessage) (*types.Transaction, error) { - return _CoreGoerli.Contract.CcipReceive(&_CoreGoerli.TransactOpts, message) +func (_Core *CoreSession) CcipReceive(message CcipClientAny2EVMMessage) (*types.Transaction, error) { + return _Core.Contract.CcipReceive(&_Core.TransactOpts, message) } // CcipReceive is a paid mutator transaction binding the contract method 0x85572ffb. // // Solidity: function ccipReceive((bytes32,uint64,bytes,bytes,(address,uint256)[]) message) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) CcipReceive(message CcipClientAny2EVMMessage) (*types.Transaction, error) { - return _CoreGoerli.Contract.CcipReceive(&_CoreGoerli.TransactOpts, message) +func (_Core *CoreTransactorSession) CcipReceive(message CcipClientAny2EVMMessage) (*types.Transaction, error) { + return _Core.Contract.CcipReceive(&_Core.TransactOpts, message) } // ClaimRewards is a paid mutator transaction binding the contract method 0x460d2049. // // Solidity: function claimRewards(uint128 accountId, uint128 poolId, address collateralType, address distributor) returns(uint256) -func (_CoreGoerli *CoreGoerliTransactor) ClaimRewards(opts *bind.TransactOpts, accountId *big.Int, poolId *big.Int, collateralType common.Address, distributor common.Address) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "claimRewards", accountId, poolId, collateralType, distributor) +func (_Core *CoreTransactor) ClaimRewards(opts *bind.TransactOpts, accountId *big.Int, poolId *big.Int, collateralType common.Address, distributor common.Address) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "claimRewards", accountId, poolId, collateralType, distributor) } // ClaimRewards is a paid mutator transaction binding the contract method 0x460d2049. // // Solidity: function claimRewards(uint128 accountId, uint128 poolId, address collateralType, address distributor) returns(uint256) -func (_CoreGoerli *CoreGoerliSession) ClaimRewards(accountId *big.Int, poolId *big.Int, collateralType common.Address, distributor common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.ClaimRewards(&_CoreGoerli.TransactOpts, accountId, poolId, collateralType, distributor) +func (_Core *CoreSession) ClaimRewards(accountId *big.Int, poolId *big.Int, collateralType common.Address, distributor common.Address) (*types.Transaction, error) { + return _Core.Contract.ClaimRewards(&_Core.TransactOpts, accountId, poolId, collateralType, distributor) } // ClaimRewards is a paid mutator transaction binding the contract method 0x460d2049. // // Solidity: function claimRewards(uint128 accountId, uint128 poolId, address collateralType, address distributor) returns(uint256) -func (_CoreGoerli *CoreGoerliTransactorSession) ClaimRewards(accountId *big.Int, poolId *big.Int, collateralType common.Address, distributor common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.ClaimRewards(&_CoreGoerli.TransactOpts, accountId, poolId, collateralType, distributor) +func (_Core *CoreTransactorSession) ClaimRewards(accountId *big.Int, poolId *big.Int, collateralType common.Address, distributor common.Address) (*types.Transaction, error) { + return _Core.Contract.ClaimRewards(&_Core.TransactOpts, accountId, poolId, collateralType, distributor) } // CleanExpiredLocks is a paid mutator transaction binding the contract method 0x198f0aa1. // // Solidity: function cleanExpiredLocks(uint128 accountId, address collateralType, uint256 offset, uint256 count) returns(uint256 cleared) -func (_CoreGoerli *CoreGoerliTransactor) CleanExpiredLocks(opts *bind.TransactOpts, accountId *big.Int, collateralType common.Address, offset *big.Int, count *big.Int) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "cleanExpiredLocks", accountId, collateralType, offset, count) +func (_Core *CoreTransactor) CleanExpiredLocks(opts *bind.TransactOpts, accountId *big.Int, collateralType common.Address, offset *big.Int, count *big.Int) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "cleanExpiredLocks", accountId, collateralType, offset, count) } // CleanExpiredLocks is a paid mutator transaction binding the contract method 0x198f0aa1. // // Solidity: function cleanExpiredLocks(uint128 accountId, address collateralType, uint256 offset, uint256 count) returns(uint256 cleared) -func (_CoreGoerli *CoreGoerliSession) CleanExpiredLocks(accountId *big.Int, collateralType common.Address, offset *big.Int, count *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.CleanExpiredLocks(&_CoreGoerli.TransactOpts, accountId, collateralType, offset, count) +func (_Core *CoreSession) CleanExpiredLocks(accountId *big.Int, collateralType common.Address, offset *big.Int, count *big.Int) (*types.Transaction, error) { + return _Core.Contract.CleanExpiredLocks(&_Core.TransactOpts, accountId, collateralType, offset, count) } // CleanExpiredLocks is a paid mutator transaction binding the contract method 0x198f0aa1. // // Solidity: function cleanExpiredLocks(uint128 accountId, address collateralType, uint256 offset, uint256 count) returns(uint256 cleared) -func (_CoreGoerli *CoreGoerliTransactorSession) CleanExpiredLocks(accountId *big.Int, collateralType common.Address, offset *big.Int, count *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.CleanExpiredLocks(&_CoreGoerli.TransactOpts, accountId, collateralType, offset, count) +func (_Core *CoreTransactorSession) CleanExpiredLocks(accountId *big.Int, collateralType common.Address, offset *big.Int, count *big.Int) (*types.Transaction, error) { + return _Core.Contract.CleanExpiredLocks(&_Core.TransactOpts, accountId, collateralType, offset, count) } // ConfigureChainlinkCrossChain is a paid mutator transaction binding the contract method 0x10d52805. // // Solidity: function configureChainlinkCrossChain(address ccipRouter, address ccipTokenPool) returns() -func (_CoreGoerli *CoreGoerliTransactor) ConfigureChainlinkCrossChain(opts *bind.TransactOpts, ccipRouter common.Address, ccipTokenPool common.Address) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "configureChainlinkCrossChain", ccipRouter, ccipTokenPool) +func (_Core *CoreTransactor) ConfigureChainlinkCrossChain(opts *bind.TransactOpts, ccipRouter common.Address, ccipTokenPool common.Address) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "configureChainlinkCrossChain", ccipRouter, ccipTokenPool) } // ConfigureChainlinkCrossChain is a paid mutator transaction binding the contract method 0x10d52805. // // Solidity: function configureChainlinkCrossChain(address ccipRouter, address ccipTokenPool) returns() -func (_CoreGoerli *CoreGoerliSession) ConfigureChainlinkCrossChain(ccipRouter common.Address, ccipTokenPool common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.ConfigureChainlinkCrossChain(&_CoreGoerli.TransactOpts, ccipRouter, ccipTokenPool) +func (_Core *CoreSession) ConfigureChainlinkCrossChain(ccipRouter common.Address, ccipTokenPool common.Address) (*types.Transaction, error) { + return _Core.Contract.ConfigureChainlinkCrossChain(&_Core.TransactOpts, ccipRouter, ccipTokenPool) } // ConfigureChainlinkCrossChain is a paid mutator transaction binding the contract method 0x10d52805. // // Solidity: function configureChainlinkCrossChain(address ccipRouter, address ccipTokenPool) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) ConfigureChainlinkCrossChain(ccipRouter common.Address, ccipTokenPool common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.ConfigureChainlinkCrossChain(&_CoreGoerli.TransactOpts, ccipRouter, ccipTokenPool) +func (_Core *CoreTransactorSession) ConfigureChainlinkCrossChain(ccipRouter common.Address, ccipTokenPool common.Address) (*types.Transaction, error) { + return _Core.Contract.ConfigureChainlinkCrossChain(&_Core.TransactOpts, ccipRouter, ccipTokenPool) } // ConfigureCollateral is a paid mutator transaction binding the contract method 0x644cb0f3. // // Solidity: function configureCollateral((bool,uint256,uint256,uint256,bytes32,address,uint256) config) returns() -func (_CoreGoerli *CoreGoerliTransactor) ConfigureCollateral(opts *bind.TransactOpts, config CollateralConfigurationData) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "configureCollateral", config) +func (_Core *CoreTransactor) ConfigureCollateral(opts *bind.TransactOpts, config CollateralConfigurationData) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "configureCollateral", config) } // ConfigureCollateral is a paid mutator transaction binding the contract method 0x644cb0f3. // // Solidity: function configureCollateral((bool,uint256,uint256,uint256,bytes32,address,uint256) config) returns() -func (_CoreGoerli *CoreGoerliSession) ConfigureCollateral(config CollateralConfigurationData) (*types.Transaction, error) { - return _CoreGoerli.Contract.ConfigureCollateral(&_CoreGoerli.TransactOpts, config) +func (_Core *CoreSession) ConfigureCollateral(config CollateralConfigurationData) (*types.Transaction, error) { + return _Core.Contract.ConfigureCollateral(&_Core.TransactOpts, config) } // ConfigureCollateral is a paid mutator transaction binding the contract method 0x644cb0f3. // // Solidity: function configureCollateral((bool,uint256,uint256,uint256,bytes32,address,uint256) config) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) ConfigureCollateral(config CollateralConfigurationData) (*types.Transaction, error) { - return _CoreGoerli.Contract.ConfigureCollateral(&_CoreGoerli.TransactOpts, config) +func (_Core *CoreTransactorSession) ConfigureCollateral(config CollateralConfigurationData) (*types.Transaction, error) { + return _Core.Contract.ConfigureCollateral(&_Core.TransactOpts, config) } // ConfigureMaximumMarketCollateral is a paid mutator transaction binding the contract method 0xdbdea94c. // // Solidity: function configureMaximumMarketCollateral(uint128 marketId, address collateralType, uint256 amount) returns() -func (_CoreGoerli *CoreGoerliTransactor) ConfigureMaximumMarketCollateral(opts *bind.TransactOpts, marketId *big.Int, collateralType common.Address, amount *big.Int) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "configureMaximumMarketCollateral", marketId, collateralType, amount) +func (_Core *CoreTransactor) ConfigureMaximumMarketCollateral(opts *bind.TransactOpts, marketId *big.Int, collateralType common.Address, amount *big.Int) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "configureMaximumMarketCollateral", marketId, collateralType, amount) } // ConfigureMaximumMarketCollateral is a paid mutator transaction binding the contract method 0xdbdea94c. // // Solidity: function configureMaximumMarketCollateral(uint128 marketId, address collateralType, uint256 amount) returns() -func (_CoreGoerli *CoreGoerliSession) ConfigureMaximumMarketCollateral(marketId *big.Int, collateralType common.Address, amount *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.ConfigureMaximumMarketCollateral(&_CoreGoerli.TransactOpts, marketId, collateralType, amount) +func (_Core *CoreSession) ConfigureMaximumMarketCollateral(marketId *big.Int, collateralType common.Address, amount *big.Int) (*types.Transaction, error) { + return _Core.Contract.ConfigureMaximumMarketCollateral(&_Core.TransactOpts, marketId, collateralType, amount) } // ConfigureMaximumMarketCollateral is a paid mutator transaction binding the contract method 0xdbdea94c. // // Solidity: function configureMaximumMarketCollateral(uint128 marketId, address collateralType, uint256 amount) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) ConfigureMaximumMarketCollateral(marketId *big.Int, collateralType common.Address, amount *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.ConfigureMaximumMarketCollateral(&_CoreGoerli.TransactOpts, marketId, collateralType, amount) +func (_Core *CoreTransactorSession) ConfigureMaximumMarketCollateral(marketId *big.Int, collateralType common.Address, amount *big.Int) (*types.Transaction, error) { + return _Core.Contract.ConfigureMaximumMarketCollateral(&_Core.TransactOpts, marketId, collateralType, amount) } // ConfigureOracleManager is a paid mutator transaction binding the contract method 0xa5d49393. // // Solidity: function configureOracleManager(address oracleManagerAddress) returns() -func (_CoreGoerli *CoreGoerliTransactor) ConfigureOracleManager(opts *bind.TransactOpts, oracleManagerAddress common.Address) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "configureOracleManager", oracleManagerAddress) +func (_Core *CoreTransactor) ConfigureOracleManager(opts *bind.TransactOpts, oracleManagerAddress common.Address) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "configureOracleManager", oracleManagerAddress) } // ConfigureOracleManager is a paid mutator transaction binding the contract method 0xa5d49393. // // Solidity: function configureOracleManager(address oracleManagerAddress) returns() -func (_CoreGoerli *CoreGoerliSession) ConfigureOracleManager(oracleManagerAddress common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.ConfigureOracleManager(&_CoreGoerli.TransactOpts, oracleManagerAddress) +func (_Core *CoreSession) ConfigureOracleManager(oracleManagerAddress common.Address) (*types.Transaction, error) { + return _Core.Contract.ConfigureOracleManager(&_Core.TransactOpts, oracleManagerAddress) } // ConfigureOracleManager is a paid mutator transaction binding the contract method 0xa5d49393. // // Solidity: function configureOracleManager(address oracleManagerAddress) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) ConfigureOracleManager(oracleManagerAddress common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.ConfigureOracleManager(&_CoreGoerli.TransactOpts, oracleManagerAddress) +func (_Core *CoreTransactorSession) ConfigureOracleManager(oracleManagerAddress common.Address) (*types.Transaction, error) { + return _Core.Contract.ConfigureOracleManager(&_Core.TransactOpts, oracleManagerAddress) } // CreateAccount is a paid mutator transaction binding the contract method 0x9dca362f. // // Solidity: function createAccount() returns(uint128 accountId) -func (_CoreGoerli *CoreGoerliTransactor) CreateAccount(opts *bind.TransactOpts) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "createAccount") +func (_Core *CoreTransactor) CreateAccount(opts *bind.TransactOpts) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "createAccount") } // CreateAccount is a paid mutator transaction binding the contract method 0x9dca362f. // // Solidity: function createAccount() returns(uint128 accountId) -func (_CoreGoerli *CoreGoerliSession) CreateAccount() (*types.Transaction, error) { - return _CoreGoerli.Contract.CreateAccount(&_CoreGoerli.TransactOpts) +func (_Core *CoreSession) CreateAccount() (*types.Transaction, error) { + return _Core.Contract.CreateAccount(&_Core.TransactOpts) } // CreateAccount is a paid mutator transaction binding the contract method 0x9dca362f. // // Solidity: function createAccount() returns(uint128 accountId) -func (_CoreGoerli *CoreGoerliTransactorSession) CreateAccount() (*types.Transaction, error) { - return _CoreGoerli.Contract.CreateAccount(&_CoreGoerli.TransactOpts) +func (_Core *CoreTransactorSession) CreateAccount() (*types.Transaction, error) { + return _Core.Contract.CreateAccount(&_Core.TransactOpts) } // CreateAccount0 is a paid mutator transaction binding the contract method 0xcadb09a5. // // Solidity: function createAccount(uint128 requestedAccountId) returns() -func (_CoreGoerli *CoreGoerliTransactor) CreateAccount0(opts *bind.TransactOpts, requestedAccountId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "createAccount0", requestedAccountId) +func (_Core *CoreTransactor) CreateAccount0(opts *bind.TransactOpts, requestedAccountId *big.Int) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "createAccount0", requestedAccountId) } // CreateAccount0 is a paid mutator transaction binding the contract method 0xcadb09a5. // // Solidity: function createAccount(uint128 requestedAccountId) returns() -func (_CoreGoerli *CoreGoerliSession) CreateAccount0(requestedAccountId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.CreateAccount0(&_CoreGoerli.TransactOpts, requestedAccountId) +func (_Core *CoreSession) CreateAccount0(requestedAccountId *big.Int) (*types.Transaction, error) { + return _Core.Contract.CreateAccount0(&_Core.TransactOpts, requestedAccountId) } // CreateAccount0 is a paid mutator transaction binding the contract method 0xcadb09a5. // // Solidity: function createAccount(uint128 requestedAccountId) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) CreateAccount0(requestedAccountId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.CreateAccount0(&_CoreGoerli.TransactOpts, requestedAccountId) +func (_Core *CoreTransactorSession) CreateAccount0(requestedAccountId *big.Int) (*types.Transaction, error) { + return _Core.Contract.CreateAccount0(&_Core.TransactOpts, requestedAccountId) } // CreateLock is a paid mutator transaction binding the contract method 0x0bae9893. // // Solidity: function createLock(uint128 accountId, address collateralType, uint256 amount, uint64 expireTimestamp) returns() -func (_CoreGoerli *CoreGoerliTransactor) CreateLock(opts *bind.TransactOpts, accountId *big.Int, collateralType common.Address, amount *big.Int, expireTimestamp uint64) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "createLock", accountId, collateralType, amount, expireTimestamp) +func (_Core *CoreTransactor) CreateLock(opts *bind.TransactOpts, accountId *big.Int, collateralType common.Address, amount *big.Int, expireTimestamp uint64) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "createLock", accountId, collateralType, amount, expireTimestamp) } // CreateLock is a paid mutator transaction binding the contract method 0x0bae9893. // // Solidity: function createLock(uint128 accountId, address collateralType, uint256 amount, uint64 expireTimestamp) returns() -func (_CoreGoerli *CoreGoerliSession) CreateLock(accountId *big.Int, collateralType common.Address, amount *big.Int, expireTimestamp uint64) (*types.Transaction, error) { - return _CoreGoerli.Contract.CreateLock(&_CoreGoerli.TransactOpts, accountId, collateralType, amount, expireTimestamp) +func (_Core *CoreSession) CreateLock(accountId *big.Int, collateralType common.Address, amount *big.Int, expireTimestamp uint64) (*types.Transaction, error) { + return _Core.Contract.CreateLock(&_Core.TransactOpts, accountId, collateralType, amount, expireTimestamp) } // CreateLock is a paid mutator transaction binding the contract method 0x0bae9893. // // Solidity: function createLock(uint128 accountId, address collateralType, uint256 amount, uint64 expireTimestamp) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) CreateLock(accountId *big.Int, collateralType common.Address, amount *big.Int, expireTimestamp uint64) (*types.Transaction, error) { - return _CoreGoerli.Contract.CreateLock(&_CoreGoerli.TransactOpts, accountId, collateralType, amount, expireTimestamp) +func (_Core *CoreTransactorSession) CreateLock(accountId *big.Int, collateralType common.Address, amount *big.Int, expireTimestamp uint64) (*types.Transaction, error) { + return _Core.Contract.CreateLock(&_Core.TransactOpts, accountId, collateralType, amount, expireTimestamp) } // CreatePool is a paid mutator transaction binding the contract method 0xcaab529b. // // Solidity: function createPool(uint128 requestedPoolId, address owner) returns() -func (_CoreGoerli *CoreGoerliTransactor) CreatePool(opts *bind.TransactOpts, requestedPoolId *big.Int, owner common.Address) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "createPool", requestedPoolId, owner) +func (_Core *CoreTransactor) CreatePool(opts *bind.TransactOpts, requestedPoolId *big.Int, owner common.Address) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "createPool", requestedPoolId, owner) } // CreatePool is a paid mutator transaction binding the contract method 0xcaab529b. // // Solidity: function createPool(uint128 requestedPoolId, address owner) returns() -func (_CoreGoerli *CoreGoerliSession) CreatePool(requestedPoolId *big.Int, owner common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.CreatePool(&_CoreGoerli.TransactOpts, requestedPoolId, owner) +func (_Core *CoreSession) CreatePool(requestedPoolId *big.Int, owner common.Address) (*types.Transaction, error) { + return _Core.Contract.CreatePool(&_Core.TransactOpts, requestedPoolId, owner) } // CreatePool is a paid mutator transaction binding the contract method 0xcaab529b. // // Solidity: function createPool(uint128 requestedPoolId, address owner) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) CreatePool(requestedPoolId *big.Int, owner common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.CreatePool(&_CoreGoerli.TransactOpts, requestedPoolId, owner) +func (_Core *CoreTransactorSession) CreatePool(requestedPoolId *big.Int, owner common.Address) (*types.Transaction, error) { + return _Core.Contract.CreatePool(&_Core.TransactOpts, requestedPoolId, owner) } // DelegateCollateral is a paid mutator transaction binding the contract method 0x7b0532a4. // // Solidity: function delegateCollateral(uint128 accountId, uint128 poolId, address collateralType, uint256 newCollateralAmountD18, uint256 leverage) returns() -func (_CoreGoerli *CoreGoerliTransactor) DelegateCollateral(opts *bind.TransactOpts, accountId *big.Int, poolId *big.Int, collateralType common.Address, newCollateralAmountD18 *big.Int, leverage *big.Int) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "delegateCollateral", accountId, poolId, collateralType, newCollateralAmountD18, leverage) +func (_Core *CoreTransactor) DelegateCollateral(opts *bind.TransactOpts, accountId *big.Int, poolId *big.Int, collateralType common.Address, newCollateralAmountD18 *big.Int, leverage *big.Int) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "delegateCollateral", accountId, poolId, collateralType, newCollateralAmountD18, leverage) } // DelegateCollateral is a paid mutator transaction binding the contract method 0x7b0532a4. // // Solidity: function delegateCollateral(uint128 accountId, uint128 poolId, address collateralType, uint256 newCollateralAmountD18, uint256 leverage) returns() -func (_CoreGoerli *CoreGoerliSession) DelegateCollateral(accountId *big.Int, poolId *big.Int, collateralType common.Address, newCollateralAmountD18 *big.Int, leverage *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.DelegateCollateral(&_CoreGoerli.TransactOpts, accountId, poolId, collateralType, newCollateralAmountD18, leverage) +func (_Core *CoreSession) DelegateCollateral(accountId *big.Int, poolId *big.Int, collateralType common.Address, newCollateralAmountD18 *big.Int, leverage *big.Int) (*types.Transaction, error) { + return _Core.Contract.DelegateCollateral(&_Core.TransactOpts, accountId, poolId, collateralType, newCollateralAmountD18, leverage) } // DelegateCollateral is a paid mutator transaction binding the contract method 0x7b0532a4. // // Solidity: function delegateCollateral(uint128 accountId, uint128 poolId, address collateralType, uint256 newCollateralAmountD18, uint256 leverage) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) DelegateCollateral(accountId *big.Int, poolId *big.Int, collateralType common.Address, newCollateralAmountD18 *big.Int, leverage *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.DelegateCollateral(&_CoreGoerli.TransactOpts, accountId, poolId, collateralType, newCollateralAmountD18, leverage) +func (_Core *CoreTransactorSession) DelegateCollateral(accountId *big.Int, poolId *big.Int, collateralType common.Address, newCollateralAmountD18 *big.Int, leverage *big.Int) (*types.Transaction, error) { + return _Core.Contract.DelegateCollateral(&_Core.TransactOpts, accountId, poolId, collateralType, newCollateralAmountD18, leverage) } // Deposit is a paid mutator transaction binding the contract method 0x83802968. // // Solidity: function deposit(uint128 accountId, address collateralType, uint256 tokenAmount) returns() -func (_CoreGoerli *CoreGoerliTransactor) Deposit(opts *bind.TransactOpts, accountId *big.Int, collateralType common.Address, tokenAmount *big.Int) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "deposit", accountId, collateralType, tokenAmount) +func (_Core *CoreTransactor) Deposit(opts *bind.TransactOpts, accountId *big.Int, collateralType common.Address, tokenAmount *big.Int) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "deposit", accountId, collateralType, tokenAmount) } // Deposit is a paid mutator transaction binding the contract method 0x83802968. // // Solidity: function deposit(uint128 accountId, address collateralType, uint256 tokenAmount) returns() -func (_CoreGoerli *CoreGoerliSession) Deposit(accountId *big.Int, collateralType common.Address, tokenAmount *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.Deposit(&_CoreGoerli.TransactOpts, accountId, collateralType, tokenAmount) +func (_Core *CoreSession) Deposit(accountId *big.Int, collateralType common.Address, tokenAmount *big.Int) (*types.Transaction, error) { + return _Core.Contract.Deposit(&_Core.TransactOpts, accountId, collateralType, tokenAmount) } // Deposit is a paid mutator transaction binding the contract method 0x83802968. // // Solidity: function deposit(uint128 accountId, address collateralType, uint256 tokenAmount) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) Deposit(accountId *big.Int, collateralType common.Address, tokenAmount *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.Deposit(&_CoreGoerli.TransactOpts, accountId, collateralType, tokenAmount) +func (_Core *CoreTransactorSession) Deposit(accountId *big.Int, collateralType common.Address, tokenAmount *big.Int) (*types.Transaction, error) { + return _Core.Contract.Deposit(&_Core.TransactOpts, accountId, collateralType, tokenAmount) } // DepositMarketCollateral is a paid mutator transaction binding the contract method 0xa4e6306b. // // Solidity: function depositMarketCollateral(uint128 marketId, address collateralType, uint256 tokenAmount) returns() -func (_CoreGoerli *CoreGoerliTransactor) DepositMarketCollateral(opts *bind.TransactOpts, marketId *big.Int, collateralType common.Address, tokenAmount *big.Int) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "depositMarketCollateral", marketId, collateralType, tokenAmount) +func (_Core *CoreTransactor) DepositMarketCollateral(opts *bind.TransactOpts, marketId *big.Int, collateralType common.Address, tokenAmount *big.Int) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "depositMarketCollateral", marketId, collateralType, tokenAmount) } // DepositMarketCollateral is a paid mutator transaction binding the contract method 0xa4e6306b. // // Solidity: function depositMarketCollateral(uint128 marketId, address collateralType, uint256 tokenAmount) returns() -func (_CoreGoerli *CoreGoerliSession) DepositMarketCollateral(marketId *big.Int, collateralType common.Address, tokenAmount *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.DepositMarketCollateral(&_CoreGoerli.TransactOpts, marketId, collateralType, tokenAmount) +func (_Core *CoreSession) DepositMarketCollateral(marketId *big.Int, collateralType common.Address, tokenAmount *big.Int) (*types.Transaction, error) { + return _Core.Contract.DepositMarketCollateral(&_Core.TransactOpts, marketId, collateralType, tokenAmount) } // DepositMarketCollateral is a paid mutator transaction binding the contract method 0xa4e6306b. // // Solidity: function depositMarketCollateral(uint128 marketId, address collateralType, uint256 tokenAmount) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) DepositMarketCollateral(marketId *big.Int, collateralType common.Address, tokenAmount *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.DepositMarketCollateral(&_CoreGoerli.TransactOpts, marketId, collateralType, tokenAmount) +func (_Core *CoreTransactorSession) DepositMarketCollateral(marketId *big.Int, collateralType common.Address, tokenAmount *big.Int) (*types.Transaction, error) { + return _Core.Contract.DepositMarketCollateral(&_Core.TransactOpts, marketId, collateralType, tokenAmount) } // DepositMarketUsd is a paid mutator transaction binding the contract method 0x10b0cf76. // // Solidity: function depositMarketUsd(uint128 marketId, address target, uint256 amount) returns(uint256 feeAmount) -func (_CoreGoerli *CoreGoerliTransactor) DepositMarketUsd(opts *bind.TransactOpts, marketId *big.Int, target common.Address, amount *big.Int) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "depositMarketUsd", marketId, target, amount) +func (_Core *CoreTransactor) DepositMarketUsd(opts *bind.TransactOpts, marketId *big.Int, target common.Address, amount *big.Int) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "depositMarketUsd", marketId, target, amount) } // DepositMarketUsd is a paid mutator transaction binding the contract method 0x10b0cf76. // // Solidity: function depositMarketUsd(uint128 marketId, address target, uint256 amount) returns(uint256 feeAmount) -func (_CoreGoerli *CoreGoerliSession) DepositMarketUsd(marketId *big.Int, target common.Address, amount *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.DepositMarketUsd(&_CoreGoerli.TransactOpts, marketId, target, amount) +func (_Core *CoreSession) DepositMarketUsd(marketId *big.Int, target common.Address, amount *big.Int) (*types.Transaction, error) { + return _Core.Contract.DepositMarketUsd(&_Core.TransactOpts, marketId, target, amount) } // DepositMarketUsd is a paid mutator transaction binding the contract method 0x10b0cf76. // // Solidity: function depositMarketUsd(uint128 marketId, address target, uint256 amount) returns(uint256 feeAmount) -func (_CoreGoerli *CoreGoerliTransactorSession) DepositMarketUsd(marketId *big.Int, target common.Address, amount *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.DepositMarketUsd(&_CoreGoerli.TransactOpts, marketId, target, amount) +func (_Core *CoreTransactorSession) DepositMarketUsd(marketId *big.Int, target common.Address, amount *big.Int) (*types.Transaction, error) { + return _Core.Contract.DepositMarketUsd(&_Core.TransactOpts, marketId, target, amount) } // DistributeDebtToPools is a paid mutator transaction binding the contract method 0xa0c12269. // // Solidity: function distributeDebtToPools(uint128 marketId, uint256 maxIter) returns(bool) -func (_CoreGoerli *CoreGoerliTransactor) DistributeDebtToPools(opts *bind.TransactOpts, marketId *big.Int, maxIter *big.Int) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "distributeDebtToPools", marketId, maxIter) +func (_Core *CoreTransactor) DistributeDebtToPools(opts *bind.TransactOpts, marketId *big.Int, maxIter *big.Int) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "distributeDebtToPools", marketId, maxIter) } // DistributeDebtToPools is a paid mutator transaction binding the contract method 0xa0c12269. // // Solidity: function distributeDebtToPools(uint128 marketId, uint256 maxIter) returns(bool) -func (_CoreGoerli *CoreGoerliSession) DistributeDebtToPools(marketId *big.Int, maxIter *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.DistributeDebtToPools(&_CoreGoerli.TransactOpts, marketId, maxIter) +func (_Core *CoreSession) DistributeDebtToPools(marketId *big.Int, maxIter *big.Int) (*types.Transaction, error) { + return _Core.Contract.DistributeDebtToPools(&_Core.TransactOpts, marketId, maxIter) } // DistributeDebtToPools is a paid mutator transaction binding the contract method 0xa0c12269. // // Solidity: function distributeDebtToPools(uint128 marketId, uint256 maxIter) returns(bool) -func (_CoreGoerli *CoreGoerliTransactorSession) DistributeDebtToPools(marketId *big.Int, maxIter *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.DistributeDebtToPools(&_CoreGoerli.TransactOpts, marketId, maxIter) +func (_Core *CoreTransactorSession) DistributeDebtToPools(marketId *big.Int, maxIter *big.Int) (*types.Transaction, error) { + return _Core.Contract.DistributeDebtToPools(&_Core.TransactOpts, marketId, maxIter) } // DistributeRewards is a paid mutator transaction binding the contract method 0x5a7ff7c5. // // Solidity: function distributeRewards(uint128 poolId, address collateralType, uint256 amount, uint64 start, uint32 duration) returns() -func (_CoreGoerli *CoreGoerliTransactor) DistributeRewards(opts *bind.TransactOpts, poolId *big.Int, collateralType common.Address, amount *big.Int, start uint64, duration uint32) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "distributeRewards", poolId, collateralType, amount, start, duration) +func (_Core *CoreTransactor) DistributeRewards(opts *bind.TransactOpts, poolId *big.Int, collateralType common.Address, amount *big.Int, start uint64, duration uint32) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "distributeRewards", poolId, collateralType, amount, start, duration) } // DistributeRewards is a paid mutator transaction binding the contract method 0x5a7ff7c5. // // Solidity: function distributeRewards(uint128 poolId, address collateralType, uint256 amount, uint64 start, uint32 duration) returns() -func (_CoreGoerli *CoreGoerliSession) DistributeRewards(poolId *big.Int, collateralType common.Address, amount *big.Int, start uint64, duration uint32) (*types.Transaction, error) { - return _CoreGoerli.Contract.DistributeRewards(&_CoreGoerli.TransactOpts, poolId, collateralType, amount, start, duration) +func (_Core *CoreSession) DistributeRewards(poolId *big.Int, collateralType common.Address, amount *big.Int, start uint64, duration uint32) (*types.Transaction, error) { + return _Core.Contract.DistributeRewards(&_Core.TransactOpts, poolId, collateralType, amount, start, duration) } // DistributeRewards is a paid mutator transaction binding the contract method 0x5a7ff7c5. // // Solidity: function distributeRewards(uint128 poolId, address collateralType, uint256 amount, uint64 start, uint32 duration) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) DistributeRewards(poolId *big.Int, collateralType common.Address, amount *big.Int, start uint64, duration uint32) (*types.Transaction, error) { - return _CoreGoerli.Contract.DistributeRewards(&_CoreGoerli.TransactOpts, poolId, collateralType, amount, start, duration) +func (_Core *CoreTransactorSession) DistributeRewards(poolId *big.Int, collateralType common.Address, amount *big.Int, start uint64, duration uint32) (*types.Transaction, error) { + return _Core.Contract.DistributeRewards(&_Core.TransactOpts, poolId, collateralType, amount, start, duration) } // GetMarketDebtPerShare is a paid mutator transaction binding the contract method 0x95909ba3. // // Solidity: function getMarketDebtPerShare(uint128 marketId) returns(int256) -func (_CoreGoerli *CoreGoerliTransactor) GetMarketDebtPerShare(opts *bind.TransactOpts, marketId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "getMarketDebtPerShare", marketId) +func (_Core *CoreTransactor) GetMarketDebtPerShare(opts *bind.TransactOpts, marketId *big.Int) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "getMarketDebtPerShare", marketId) } // GetMarketDebtPerShare is a paid mutator transaction binding the contract method 0x95909ba3. // // Solidity: function getMarketDebtPerShare(uint128 marketId) returns(int256) -func (_CoreGoerli *CoreGoerliSession) GetMarketDebtPerShare(marketId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.GetMarketDebtPerShare(&_CoreGoerli.TransactOpts, marketId) +func (_Core *CoreSession) GetMarketDebtPerShare(marketId *big.Int) (*types.Transaction, error) { + return _Core.Contract.GetMarketDebtPerShare(&_Core.TransactOpts, marketId) } // GetMarketDebtPerShare is a paid mutator transaction binding the contract method 0x95909ba3. // // Solidity: function getMarketDebtPerShare(uint128 marketId) returns(int256) -func (_CoreGoerli *CoreGoerliTransactorSession) GetMarketDebtPerShare(marketId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.GetMarketDebtPerShare(&_CoreGoerli.TransactOpts, marketId) +func (_Core *CoreTransactorSession) GetMarketDebtPerShare(marketId *big.Int) (*types.Transaction, error) { + return _Core.Contract.GetMarketDebtPerShare(&_Core.TransactOpts, marketId) } // GetMarketPoolDebtDistribution is a paid mutator transaction binding the contract method 0x25eeea4b. // // Solidity: function getMarketPoolDebtDistribution(uint128 marketId, uint128 poolId) returns(uint256 sharesD18, uint128 totalSharesD18, int128 valuePerShareD27) -func (_CoreGoerli *CoreGoerliTransactor) GetMarketPoolDebtDistribution(opts *bind.TransactOpts, marketId *big.Int, poolId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "getMarketPoolDebtDistribution", marketId, poolId) +func (_Core *CoreTransactor) GetMarketPoolDebtDistribution(opts *bind.TransactOpts, marketId *big.Int, poolId *big.Int) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "getMarketPoolDebtDistribution", marketId, poolId) } // GetMarketPoolDebtDistribution is a paid mutator transaction binding the contract method 0x25eeea4b. // // Solidity: function getMarketPoolDebtDistribution(uint128 marketId, uint128 poolId) returns(uint256 sharesD18, uint128 totalSharesD18, int128 valuePerShareD27) -func (_CoreGoerli *CoreGoerliSession) GetMarketPoolDebtDistribution(marketId *big.Int, poolId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.GetMarketPoolDebtDistribution(&_CoreGoerli.TransactOpts, marketId, poolId) +func (_Core *CoreSession) GetMarketPoolDebtDistribution(marketId *big.Int, poolId *big.Int) (*types.Transaction, error) { + return _Core.Contract.GetMarketPoolDebtDistribution(&_Core.TransactOpts, marketId, poolId) } // GetMarketPoolDebtDistribution is a paid mutator transaction binding the contract method 0x25eeea4b. // // Solidity: function getMarketPoolDebtDistribution(uint128 marketId, uint128 poolId) returns(uint256 sharesD18, uint128 totalSharesD18, int128 valuePerShareD27) -func (_CoreGoerli *CoreGoerliTransactorSession) GetMarketPoolDebtDistribution(marketId *big.Int, poolId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.GetMarketPoolDebtDistribution(&_CoreGoerli.TransactOpts, marketId, poolId) +func (_Core *CoreTransactorSession) GetMarketPoolDebtDistribution(marketId *big.Int, poolId *big.Int) (*types.Transaction, error) { + return _Core.Contract.GetMarketPoolDebtDistribution(&_Core.TransactOpts, marketId, poolId) } // GetMarketPools is a paid mutator transaction binding the contract method 0xbe0b8e6f. // // Solidity: function getMarketPools(uint128 marketId) returns(uint128[] inRangePoolIds, uint128[] outRangePoolIds) -func (_CoreGoerli *CoreGoerliTransactor) GetMarketPools(opts *bind.TransactOpts, marketId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "getMarketPools", marketId) +func (_Core *CoreTransactor) GetMarketPools(opts *bind.TransactOpts, marketId *big.Int) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "getMarketPools", marketId) } // GetMarketPools is a paid mutator transaction binding the contract method 0xbe0b8e6f. // // Solidity: function getMarketPools(uint128 marketId) returns(uint128[] inRangePoolIds, uint128[] outRangePoolIds) -func (_CoreGoerli *CoreGoerliSession) GetMarketPools(marketId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.GetMarketPools(&_CoreGoerli.TransactOpts, marketId) +func (_Core *CoreSession) GetMarketPools(marketId *big.Int) (*types.Transaction, error) { + return _Core.Contract.GetMarketPools(&_Core.TransactOpts, marketId) } // GetMarketPools is a paid mutator transaction binding the contract method 0xbe0b8e6f. // // Solidity: function getMarketPools(uint128 marketId) returns(uint128[] inRangePoolIds, uint128[] outRangePoolIds) -func (_CoreGoerli *CoreGoerliTransactorSession) GetMarketPools(marketId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.GetMarketPools(&_CoreGoerli.TransactOpts, marketId) +func (_Core *CoreTransactorSession) GetMarketPools(marketId *big.Int) (*types.Transaction, error) { + return _Core.Contract.GetMarketPools(&_Core.TransactOpts, marketId) } // GetPosition is a paid mutator transaction binding the contract method 0xf544d66e. // // Solidity: function getPosition(uint128 accountId, uint128 poolId, address collateralType) returns(uint256 collateralAmount, uint256 collateralValue, int256 debt, uint256 collateralizationRatio) -func (_CoreGoerli *CoreGoerliTransactor) GetPosition(opts *bind.TransactOpts, accountId *big.Int, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "getPosition", accountId, poolId, collateralType) +func (_Core *CoreTransactor) GetPosition(opts *bind.TransactOpts, accountId *big.Int, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "getPosition", accountId, poolId, collateralType) } // GetPosition is a paid mutator transaction binding the contract method 0xf544d66e. // // Solidity: function getPosition(uint128 accountId, uint128 poolId, address collateralType) returns(uint256 collateralAmount, uint256 collateralValue, int256 debt, uint256 collateralizationRatio) -func (_CoreGoerli *CoreGoerliSession) GetPosition(accountId *big.Int, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.GetPosition(&_CoreGoerli.TransactOpts, accountId, poolId, collateralType) +func (_Core *CoreSession) GetPosition(accountId *big.Int, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { + return _Core.Contract.GetPosition(&_Core.TransactOpts, accountId, poolId, collateralType) } // GetPosition is a paid mutator transaction binding the contract method 0xf544d66e. // // Solidity: function getPosition(uint128 accountId, uint128 poolId, address collateralType) returns(uint256 collateralAmount, uint256 collateralValue, int256 debt, uint256 collateralizationRatio) -func (_CoreGoerli *CoreGoerliTransactorSession) GetPosition(accountId *big.Int, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.GetPosition(&_CoreGoerli.TransactOpts, accountId, poolId, collateralType) +func (_Core *CoreTransactorSession) GetPosition(accountId *big.Int, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { + return _Core.Contract.GetPosition(&_Core.TransactOpts, accountId, poolId, collateralType) } // GetPositionCollateralRatio is a paid mutator transaction binding the contract method 0xdc0a5384. // // Solidity: function getPositionCollateralRatio(uint128 accountId, uint128 poolId, address collateralType) returns(uint256) -func (_CoreGoerli *CoreGoerliTransactor) GetPositionCollateralRatio(opts *bind.TransactOpts, accountId *big.Int, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "getPositionCollateralRatio", accountId, poolId, collateralType) +func (_Core *CoreTransactor) GetPositionCollateralRatio(opts *bind.TransactOpts, accountId *big.Int, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "getPositionCollateralRatio", accountId, poolId, collateralType) } // GetPositionCollateralRatio is a paid mutator transaction binding the contract method 0xdc0a5384. // // Solidity: function getPositionCollateralRatio(uint128 accountId, uint128 poolId, address collateralType) returns(uint256) -func (_CoreGoerli *CoreGoerliSession) GetPositionCollateralRatio(accountId *big.Int, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.GetPositionCollateralRatio(&_CoreGoerli.TransactOpts, accountId, poolId, collateralType) +func (_Core *CoreSession) GetPositionCollateralRatio(accountId *big.Int, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { + return _Core.Contract.GetPositionCollateralRatio(&_Core.TransactOpts, accountId, poolId, collateralType) } // GetPositionCollateralRatio is a paid mutator transaction binding the contract method 0xdc0a5384. // // Solidity: function getPositionCollateralRatio(uint128 accountId, uint128 poolId, address collateralType) returns(uint256) -func (_CoreGoerli *CoreGoerliTransactorSession) GetPositionCollateralRatio(accountId *big.Int, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.GetPositionCollateralRatio(&_CoreGoerli.TransactOpts, accountId, poolId, collateralType) +func (_Core *CoreTransactorSession) GetPositionCollateralRatio(accountId *big.Int, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { + return _Core.Contract.GetPositionCollateralRatio(&_Core.TransactOpts, accountId, poolId, collateralType) } // GetPositionDebt is a paid mutator transaction binding the contract method 0x3593bbd2. // // Solidity: function getPositionDebt(uint128 accountId, uint128 poolId, address collateralType) returns(int256 debt) -func (_CoreGoerli *CoreGoerliTransactor) GetPositionDebt(opts *bind.TransactOpts, accountId *big.Int, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "getPositionDebt", accountId, poolId, collateralType) +func (_Core *CoreTransactor) GetPositionDebt(opts *bind.TransactOpts, accountId *big.Int, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "getPositionDebt", accountId, poolId, collateralType) } // GetPositionDebt is a paid mutator transaction binding the contract method 0x3593bbd2. // // Solidity: function getPositionDebt(uint128 accountId, uint128 poolId, address collateralType) returns(int256 debt) -func (_CoreGoerli *CoreGoerliSession) GetPositionDebt(accountId *big.Int, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.GetPositionDebt(&_CoreGoerli.TransactOpts, accountId, poolId, collateralType) +func (_Core *CoreSession) GetPositionDebt(accountId *big.Int, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { + return _Core.Contract.GetPositionDebt(&_Core.TransactOpts, accountId, poolId, collateralType) } // GetPositionDebt is a paid mutator transaction binding the contract method 0x3593bbd2. // // Solidity: function getPositionDebt(uint128 accountId, uint128 poolId, address collateralType) returns(int256 debt) -func (_CoreGoerli *CoreGoerliTransactorSession) GetPositionDebt(accountId *big.Int, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.GetPositionDebt(&_CoreGoerli.TransactOpts, accountId, poolId, collateralType) +func (_Core *CoreTransactorSession) GetPositionDebt(accountId *big.Int, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { + return _Core.Contract.GetPositionDebt(&_Core.TransactOpts, accountId, poolId, collateralType) } // GetVaultCollateralRatio is a paid mutator transaction binding the contract method 0x60248c55. // // Solidity: function getVaultCollateralRatio(uint128 poolId, address collateralType) returns(uint256) -func (_CoreGoerli *CoreGoerliTransactor) GetVaultCollateralRatio(opts *bind.TransactOpts, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "getVaultCollateralRatio", poolId, collateralType) +func (_Core *CoreTransactor) GetVaultCollateralRatio(opts *bind.TransactOpts, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "getVaultCollateralRatio", poolId, collateralType) } // GetVaultCollateralRatio is a paid mutator transaction binding the contract method 0x60248c55. // // Solidity: function getVaultCollateralRatio(uint128 poolId, address collateralType) returns(uint256) -func (_CoreGoerli *CoreGoerliSession) GetVaultCollateralRatio(poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.GetVaultCollateralRatio(&_CoreGoerli.TransactOpts, poolId, collateralType) +func (_Core *CoreSession) GetVaultCollateralRatio(poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { + return _Core.Contract.GetVaultCollateralRatio(&_Core.TransactOpts, poolId, collateralType) } // GetVaultCollateralRatio is a paid mutator transaction binding the contract method 0x60248c55. // // Solidity: function getVaultCollateralRatio(uint128 poolId, address collateralType) returns(uint256) -func (_CoreGoerli *CoreGoerliTransactorSession) GetVaultCollateralRatio(poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.GetVaultCollateralRatio(&_CoreGoerli.TransactOpts, poolId, collateralType) +func (_Core *CoreTransactorSession) GetVaultCollateralRatio(poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { + return _Core.Contract.GetVaultCollateralRatio(&_Core.TransactOpts, poolId, collateralType) } // GetVaultDebt is a paid mutator transaction binding the contract method 0x2fb8ff24. // // Solidity: function getVaultDebt(uint128 poolId, address collateralType) returns(int256) -func (_CoreGoerli *CoreGoerliTransactor) GetVaultDebt(opts *bind.TransactOpts, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "getVaultDebt", poolId, collateralType) +func (_Core *CoreTransactor) GetVaultDebt(opts *bind.TransactOpts, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "getVaultDebt", poolId, collateralType) } // GetVaultDebt is a paid mutator transaction binding the contract method 0x2fb8ff24. // // Solidity: function getVaultDebt(uint128 poolId, address collateralType) returns(int256) -func (_CoreGoerli *CoreGoerliSession) GetVaultDebt(poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.GetVaultDebt(&_CoreGoerli.TransactOpts, poolId, collateralType) +func (_Core *CoreSession) GetVaultDebt(poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { + return _Core.Contract.GetVaultDebt(&_Core.TransactOpts, poolId, collateralType) } // GetVaultDebt is a paid mutator transaction binding the contract method 0x2fb8ff24. // // Solidity: function getVaultDebt(uint128 poolId, address collateralType) returns(int256) -func (_CoreGoerli *CoreGoerliTransactorSession) GetVaultDebt(poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.GetVaultDebt(&_CoreGoerli.TransactOpts, poolId, collateralType) +func (_Core *CoreTransactorSession) GetVaultDebt(poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { + return _Core.Contract.GetVaultDebt(&_Core.TransactOpts, poolId, collateralType) } // GrantPermission is a paid mutator transaction binding the contract method 0x00cd9ef3. // // Solidity: function grantPermission(uint128 accountId, bytes32 permission, address user) returns() -func (_CoreGoerli *CoreGoerliTransactor) GrantPermission(opts *bind.TransactOpts, accountId *big.Int, permission [32]byte, user common.Address) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "grantPermission", accountId, permission, user) +func (_Core *CoreTransactor) GrantPermission(opts *bind.TransactOpts, accountId *big.Int, permission [32]byte, user common.Address) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "grantPermission", accountId, permission, user) } // GrantPermission is a paid mutator transaction binding the contract method 0x00cd9ef3. // // Solidity: function grantPermission(uint128 accountId, bytes32 permission, address user) returns() -func (_CoreGoerli *CoreGoerliSession) GrantPermission(accountId *big.Int, permission [32]byte, user common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.GrantPermission(&_CoreGoerli.TransactOpts, accountId, permission, user) +func (_Core *CoreSession) GrantPermission(accountId *big.Int, permission [32]byte, user common.Address) (*types.Transaction, error) { + return _Core.Contract.GrantPermission(&_Core.TransactOpts, accountId, permission, user) } // GrantPermission is a paid mutator transaction binding the contract method 0x00cd9ef3. // // Solidity: function grantPermission(uint128 accountId, bytes32 permission, address user) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) GrantPermission(accountId *big.Int, permission [32]byte, user common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.GrantPermission(&_CoreGoerli.TransactOpts, accountId, permission, user) +func (_Core *CoreTransactorSession) GrantPermission(accountId *big.Int, permission [32]byte, user common.Address) (*types.Transaction, error) { + return _Core.Contract.GrantPermission(&_Core.TransactOpts, accountId, permission, user) } // InitOrUpgradeNft is a paid mutator transaction binding the contract method 0x2d22bef9. // // Solidity: function initOrUpgradeNft(bytes32 id, string name, string symbol, string uri, address impl) returns() -func (_CoreGoerli *CoreGoerliTransactor) InitOrUpgradeNft(opts *bind.TransactOpts, id [32]byte, name string, symbol string, uri string, impl common.Address) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "initOrUpgradeNft", id, name, symbol, uri, impl) +func (_Core *CoreTransactor) InitOrUpgradeNft(opts *bind.TransactOpts, id [32]byte, name string, symbol string, uri string, impl common.Address) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "initOrUpgradeNft", id, name, symbol, uri, impl) } // InitOrUpgradeNft is a paid mutator transaction binding the contract method 0x2d22bef9. // // Solidity: function initOrUpgradeNft(bytes32 id, string name, string symbol, string uri, address impl) returns() -func (_CoreGoerli *CoreGoerliSession) InitOrUpgradeNft(id [32]byte, name string, symbol string, uri string, impl common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.InitOrUpgradeNft(&_CoreGoerli.TransactOpts, id, name, symbol, uri, impl) +func (_Core *CoreSession) InitOrUpgradeNft(id [32]byte, name string, symbol string, uri string, impl common.Address) (*types.Transaction, error) { + return _Core.Contract.InitOrUpgradeNft(&_Core.TransactOpts, id, name, symbol, uri, impl) } // InitOrUpgradeNft is a paid mutator transaction binding the contract method 0x2d22bef9. // // Solidity: function initOrUpgradeNft(bytes32 id, string name, string symbol, string uri, address impl) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) InitOrUpgradeNft(id [32]byte, name string, symbol string, uri string, impl common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.InitOrUpgradeNft(&_CoreGoerli.TransactOpts, id, name, symbol, uri, impl) +func (_Core *CoreTransactorSession) InitOrUpgradeNft(id [32]byte, name string, symbol string, uri string, impl common.Address) (*types.Transaction, error) { + return _Core.Contract.InitOrUpgradeNft(&_Core.TransactOpts, id, name, symbol, uri, impl) } // InitOrUpgradeToken is a paid mutator transaction binding the contract method 0xc6f79537. // // Solidity: function initOrUpgradeToken(bytes32 id, string name, string symbol, uint8 decimals, address impl) returns() -func (_CoreGoerli *CoreGoerliTransactor) InitOrUpgradeToken(opts *bind.TransactOpts, id [32]byte, name string, symbol string, decimals uint8, impl common.Address) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "initOrUpgradeToken", id, name, symbol, decimals, impl) +func (_Core *CoreTransactor) InitOrUpgradeToken(opts *bind.TransactOpts, id [32]byte, name string, symbol string, decimals uint8, impl common.Address) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "initOrUpgradeToken", id, name, symbol, decimals, impl) } // InitOrUpgradeToken is a paid mutator transaction binding the contract method 0xc6f79537. // // Solidity: function initOrUpgradeToken(bytes32 id, string name, string symbol, uint8 decimals, address impl) returns() -func (_CoreGoerli *CoreGoerliSession) InitOrUpgradeToken(id [32]byte, name string, symbol string, decimals uint8, impl common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.InitOrUpgradeToken(&_CoreGoerli.TransactOpts, id, name, symbol, decimals, impl) +func (_Core *CoreSession) InitOrUpgradeToken(id [32]byte, name string, symbol string, decimals uint8, impl common.Address) (*types.Transaction, error) { + return _Core.Contract.InitOrUpgradeToken(&_Core.TransactOpts, id, name, symbol, decimals, impl) } // InitOrUpgradeToken is a paid mutator transaction binding the contract method 0xc6f79537. // // Solidity: function initOrUpgradeToken(bytes32 id, string name, string symbol, uint8 decimals, address impl) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) InitOrUpgradeToken(id [32]byte, name string, symbol string, decimals uint8, impl common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.InitOrUpgradeToken(&_CoreGoerli.TransactOpts, id, name, symbol, decimals, impl) +func (_Core *CoreTransactorSession) InitOrUpgradeToken(id [32]byte, name string, symbol string, decimals uint8, impl common.Address) (*types.Transaction, error) { + return _Core.Contract.InitOrUpgradeToken(&_Core.TransactOpts, id, name, symbol, decimals, impl) } // IsPositionLiquidatable is a paid mutator transaction binding the contract method 0x2fa7bb65. // // Solidity: function isPositionLiquidatable(uint128 accountId, uint128 poolId, address collateralType) returns(bool) -func (_CoreGoerli *CoreGoerliTransactor) IsPositionLiquidatable(opts *bind.TransactOpts, accountId *big.Int, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "isPositionLiquidatable", accountId, poolId, collateralType) +func (_Core *CoreTransactor) IsPositionLiquidatable(opts *bind.TransactOpts, accountId *big.Int, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "isPositionLiquidatable", accountId, poolId, collateralType) } // IsPositionLiquidatable is a paid mutator transaction binding the contract method 0x2fa7bb65. // // Solidity: function isPositionLiquidatable(uint128 accountId, uint128 poolId, address collateralType) returns(bool) -func (_CoreGoerli *CoreGoerliSession) IsPositionLiquidatable(accountId *big.Int, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.IsPositionLiquidatable(&_CoreGoerli.TransactOpts, accountId, poolId, collateralType) +func (_Core *CoreSession) IsPositionLiquidatable(accountId *big.Int, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { + return _Core.Contract.IsPositionLiquidatable(&_Core.TransactOpts, accountId, poolId, collateralType) } // IsPositionLiquidatable is a paid mutator transaction binding the contract method 0x2fa7bb65. // // Solidity: function isPositionLiquidatable(uint128 accountId, uint128 poolId, address collateralType) returns(bool) -func (_CoreGoerli *CoreGoerliTransactorSession) IsPositionLiquidatable(accountId *big.Int, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.IsPositionLiquidatable(&_CoreGoerli.TransactOpts, accountId, poolId, collateralType) +func (_Core *CoreTransactorSession) IsPositionLiquidatable(accountId *big.Int, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { + return _Core.Contract.IsPositionLiquidatable(&_Core.TransactOpts, accountId, poolId, collateralType) } // IsVaultLiquidatable is a paid mutator transaction binding the contract method 0x2a5354d2. // // Solidity: function isVaultLiquidatable(uint128 poolId, address collateralType) returns(bool) -func (_CoreGoerli *CoreGoerliTransactor) IsVaultLiquidatable(opts *bind.TransactOpts, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "isVaultLiquidatable", poolId, collateralType) +func (_Core *CoreTransactor) IsVaultLiquidatable(opts *bind.TransactOpts, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "isVaultLiquidatable", poolId, collateralType) } // IsVaultLiquidatable is a paid mutator transaction binding the contract method 0x2a5354d2. // // Solidity: function isVaultLiquidatable(uint128 poolId, address collateralType) returns(bool) -func (_CoreGoerli *CoreGoerliSession) IsVaultLiquidatable(poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.IsVaultLiquidatable(&_CoreGoerli.TransactOpts, poolId, collateralType) +func (_Core *CoreSession) IsVaultLiquidatable(poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { + return _Core.Contract.IsVaultLiquidatable(&_Core.TransactOpts, poolId, collateralType) } // IsVaultLiquidatable is a paid mutator transaction binding the contract method 0x2a5354d2. // // Solidity: function isVaultLiquidatable(uint128 poolId, address collateralType) returns(bool) -func (_CoreGoerli *CoreGoerliTransactorSession) IsVaultLiquidatable(poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.IsVaultLiquidatable(&_CoreGoerli.TransactOpts, poolId, collateralType) +func (_Core *CoreTransactorSession) IsVaultLiquidatable(poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { + return _Core.Contract.IsVaultLiquidatable(&_Core.TransactOpts, poolId, collateralType) } // Liquidate is a paid mutator transaction binding the contract method 0x3e033a06. // // Solidity: function liquidate(uint128 accountId, uint128 poolId, address collateralType, uint128 liquidateAsAccountId) returns((uint256,uint256,uint256) liquidationData) -func (_CoreGoerli *CoreGoerliTransactor) Liquidate(opts *bind.TransactOpts, accountId *big.Int, poolId *big.Int, collateralType common.Address, liquidateAsAccountId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "liquidate", accountId, poolId, collateralType, liquidateAsAccountId) +func (_Core *CoreTransactor) Liquidate(opts *bind.TransactOpts, accountId *big.Int, poolId *big.Int, collateralType common.Address, liquidateAsAccountId *big.Int) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "liquidate", accountId, poolId, collateralType, liquidateAsAccountId) } // Liquidate is a paid mutator transaction binding the contract method 0x3e033a06. // // Solidity: function liquidate(uint128 accountId, uint128 poolId, address collateralType, uint128 liquidateAsAccountId) returns((uint256,uint256,uint256) liquidationData) -func (_CoreGoerli *CoreGoerliSession) Liquidate(accountId *big.Int, poolId *big.Int, collateralType common.Address, liquidateAsAccountId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.Liquidate(&_CoreGoerli.TransactOpts, accountId, poolId, collateralType, liquidateAsAccountId) +func (_Core *CoreSession) Liquidate(accountId *big.Int, poolId *big.Int, collateralType common.Address, liquidateAsAccountId *big.Int) (*types.Transaction, error) { + return _Core.Contract.Liquidate(&_Core.TransactOpts, accountId, poolId, collateralType, liquidateAsAccountId) } // Liquidate is a paid mutator transaction binding the contract method 0x3e033a06. // // Solidity: function liquidate(uint128 accountId, uint128 poolId, address collateralType, uint128 liquidateAsAccountId) returns((uint256,uint256,uint256) liquidationData) -func (_CoreGoerli *CoreGoerliTransactorSession) Liquidate(accountId *big.Int, poolId *big.Int, collateralType common.Address, liquidateAsAccountId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.Liquidate(&_CoreGoerli.TransactOpts, accountId, poolId, collateralType, liquidateAsAccountId) +func (_Core *CoreTransactorSession) Liquidate(accountId *big.Int, poolId *big.Int, collateralType common.Address, liquidateAsAccountId *big.Int) (*types.Transaction, error) { + return _Core.Contract.Liquidate(&_Core.TransactOpts, accountId, poolId, collateralType, liquidateAsAccountId) } // LiquidateVault is a paid mutator transaction binding the contract method 0x7d8a4140. // // Solidity: function liquidateVault(uint128 poolId, address collateralType, uint128 liquidateAsAccountId, uint256 maxUsd) returns((uint256,uint256,uint256) liquidationData) -func (_CoreGoerli *CoreGoerliTransactor) LiquidateVault(opts *bind.TransactOpts, poolId *big.Int, collateralType common.Address, liquidateAsAccountId *big.Int, maxUsd *big.Int) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "liquidateVault", poolId, collateralType, liquidateAsAccountId, maxUsd) +func (_Core *CoreTransactor) LiquidateVault(opts *bind.TransactOpts, poolId *big.Int, collateralType common.Address, liquidateAsAccountId *big.Int, maxUsd *big.Int) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "liquidateVault", poolId, collateralType, liquidateAsAccountId, maxUsd) } // LiquidateVault is a paid mutator transaction binding the contract method 0x7d8a4140. // // Solidity: function liquidateVault(uint128 poolId, address collateralType, uint128 liquidateAsAccountId, uint256 maxUsd) returns((uint256,uint256,uint256) liquidationData) -func (_CoreGoerli *CoreGoerliSession) LiquidateVault(poolId *big.Int, collateralType common.Address, liquidateAsAccountId *big.Int, maxUsd *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.LiquidateVault(&_CoreGoerli.TransactOpts, poolId, collateralType, liquidateAsAccountId, maxUsd) +func (_Core *CoreSession) LiquidateVault(poolId *big.Int, collateralType common.Address, liquidateAsAccountId *big.Int, maxUsd *big.Int) (*types.Transaction, error) { + return _Core.Contract.LiquidateVault(&_Core.TransactOpts, poolId, collateralType, liquidateAsAccountId, maxUsd) } // LiquidateVault is a paid mutator transaction binding the contract method 0x7d8a4140. // // Solidity: function liquidateVault(uint128 poolId, address collateralType, uint128 liquidateAsAccountId, uint256 maxUsd) returns((uint256,uint256,uint256) liquidationData) -func (_CoreGoerli *CoreGoerliTransactorSession) LiquidateVault(poolId *big.Int, collateralType common.Address, liquidateAsAccountId *big.Int, maxUsd *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.LiquidateVault(&_CoreGoerli.TransactOpts, poolId, collateralType, liquidateAsAccountId, maxUsd) +func (_Core *CoreTransactorSession) LiquidateVault(poolId *big.Int, collateralType common.Address, liquidateAsAccountId *big.Int, maxUsd *big.Int) (*types.Transaction, error) { + return _Core.Contract.LiquidateVault(&_Core.TransactOpts, poolId, collateralType, liquidateAsAccountId, maxUsd) } // MintUsd is a paid mutator transaction binding the contract method 0xdf16a074. // // Solidity: function mintUsd(uint128 accountId, uint128 poolId, address collateralType, uint256 amount) returns() -func (_CoreGoerli *CoreGoerliTransactor) MintUsd(opts *bind.TransactOpts, accountId *big.Int, poolId *big.Int, collateralType common.Address, amount *big.Int) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "mintUsd", accountId, poolId, collateralType, amount) +func (_Core *CoreTransactor) MintUsd(opts *bind.TransactOpts, accountId *big.Int, poolId *big.Int, collateralType common.Address, amount *big.Int) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "mintUsd", accountId, poolId, collateralType, amount) } // MintUsd is a paid mutator transaction binding the contract method 0xdf16a074. // // Solidity: function mintUsd(uint128 accountId, uint128 poolId, address collateralType, uint256 amount) returns() -func (_CoreGoerli *CoreGoerliSession) MintUsd(accountId *big.Int, poolId *big.Int, collateralType common.Address, amount *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.MintUsd(&_CoreGoerli.TransactOpts, accountId, poolId, collateralType, amount) +func (_Core *CoreSession) MintUsd(accountId *big.Int, poolId *big.Int, collateralType common.Address, amount *big.Int) (*types.Transaction, error) { + return _Core.Contract.MintUsd(&_Core.TransactOpts, accountId, poolId, collateralType, amount) } // MintUsd is a paid mutator transaction binding the contract method 0xdf16a074. // // Solidity: function mintUsd(uint128 accountId, uint128 poolId, address collateralType, uint256 amount) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) MintUsd(accountId *big.Int, poolId *big.Int, collateralType common.Address, amount *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.MintUsd(&_CoreGoerli.TransactOpts, accountId, poolId, collateralType, amount) +func (_Core *CoreTransactorSession) MintUsd(accountId *big.Int, poolId *big.Int, collateralType common.Address, amount *big.Int) (*types.Transaction, error) { + return _Core.Contract.MintUsd(&_Core.TransactOpts, accountId, poolId, collateralType, amount) } // Multicall is a paid mutator transaction binding the contract method 0xac9650d8. // -// Solidity: function multicall(bytes[] data) returns(bytes[] results) -func (_CoreGoerli *CoreGoerliTransactor) Multicall(opts *bind.TransactOpts, data [][]byte) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "multicall", data) +// Solidity: function multicall(bytes[] data) payable returns(bytes[] results) +func (_Core *CoreTransactor) Multicall(opts *bind.TransactOpts, data [][]byte) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "multicall", data) } // Multicall is a paid mutator transaction binding the contract method 0xac9650d8. // -// Solidity: function multicall(bytes[] data) returns(bytes[] results) -func (_CoreGoerli *CoreGoerliSession) Multicall(data [][]byte) (*types.Transaction, error) { - return _CoreGoerli.Contract.Multicall(&_CoreGoerli.TransactOpts, data) +// Solidity: function multicall(bytes[] data) payable returns(bytes[] results) +func (_Core *CoreSession) Multicall(data [][]byte) (*types.Transaction, error) { + return _Core.Contract.Multicall(&_Core.TransactOpts, data) } // Multicall is a paid mutator transaction binding the contract method 0xac9650d8. // -// Solidity: function multicall(bytes[] data) returns(bytes[] results) -func (_CoreGoerli *CoreGoerliTransactorSession) Multicall(data [][]byte) (*types.Transaction, error) { - return _CoreGoerli.Contract.Multicall(&_CoreGoerli.TransactOpts, data) -} - -// MulticallThrough is a paid mutator transaction binding the contract method 0xc0694da0. -// -// Solidity: function multicallThrough(address[] to, bytes[] data, uint256[] values) payable returns(bytes[] results) -func (_CoreGoerli *CoreGoerliTransactor) MulticallThrough(opts *bind.TransactOpts, to []common.Address, data [][]byte, values []*big.Int) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "multicallThrough", to, data, values) -} - -// MulticallThrough is a paid mutator transaction binding the contract method 0xc0694da0. -// -// Solidity: function multicallThrough(address[] to, bytes[] data, uint256[] values) payable returns(bytes[] results) -func (_CoreGoerli *CoreGoerliSession) MulticallThrough(to []common.Address, data [][]byte, values []*big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.MulticallThrough(&_CoreGoerli.TransactOpts, to, data, values) -} - -// MulticallThrough is a paid mutator transaction binding the contract method 0xc0694da0. -// -// Solidity: function multicallThrough(address[] to, bytes[] data, uint256[] values) payable returns(bytes[] results) -func (_CoreGoerli *CoreGoerliTransactorSession) MulticallThrough(to []common.Address, data [][]byte, values []*big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.MulticallThrough(&_CoreGoerli.TransactOpts, to, data, values) +// Solidity: function multicall(bytes[] data) payable returns(bytes[] results) +func (_Core *CoreTransactorSession) Multicall(data [][]byte) (*types.Transaction, error) { + return _Core.Contract.Multicall(&_Core.TransactOpts, data) } // NominateNewOwner is a paid mutator transaction binding the contract method 0x1627540c. // // Solidity: function nominateNewOwner(address newNominatedOwner) returns() -func (_CoreGoerli *CoreGoerliTransactor) NominateNewOwner(opts *bind.TransactOpts, newNominatedOwner common.Address) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "nominateNewOwner", newNominatedOwner) +func (_Core *CoreTransactor) NominateNewOwner(opts *bind.TransactOpts, newNominatedOwner common.Address) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "nominateNewOwner", newNominatedOwner) } // NominateNewOwner is a paid mutator transaction binding the contract method 0x1627540c. // // Solidity: function nominateNewOwner(address newNominatedOwner) returns() -func (_CoreGoerli *CoreGoerliSession) NominateNewOwner(newNominatedOwner common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.NominateNewOwner(&_CoreGoerli.TransactOpts, newNominatedOwner) +func (_Core *CoreSession) NominateNewOwner(newNominatedOwner common.Address) (*types.Transaction, error) { + return _Core.Contract.NominateNewOwner(&_Core.TransactOpts, newNominatedOwner) } // NominateNewOwner is a paid mutator transaction binding the contract method 0x1627540c. // // Solidity: function nominateNewOwner(address newNominatedOwner) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) NominateNewOwner(newNominatedOwner common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.NominateNewOwner(&_CoreGoerli.TransactOpts, newNominatedOwner) +func (_Core *CoreTransactorSession) NominateNewOwner(newNominatedOwner common.Address) (*types.Transaction, error) { + return _Core.Contract.NominateNewOwner(&_Core.TransactOpts, newNominatedOwner) } // NominatePoolOwner is a paid mutator transaction binding the contract method 0x6141f7a2. // // Solidity: function nominatePoolOwner(address nominatedOwner, uint128 poolId) returns() -func (_CoreGoerli *CoreGoerliTransactor) NominatePoolOwner(opts *bind.TransactOpts, nominatedOwner common.Address, poolId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "nominatePoolOwner", nominatedOwner, poolId) +func (_Core *CoreTransactor) NominatePoolOwner(opts *bind.TransactOpts, nominatedOwner common.Address, poolId *big.Int) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "nominatePoolOwner", nominatedOwner, poolId) } // NominatePoolOwner is a paid mutator transaction binding the contract method 0x6141f7a2. // // Solidity: function nominatePoolOwner(address nominatedOwner, uint128 poolId) returns() -func (_CoreGoerli *CoreGoerliSession) NominatePoolOwner(nominatedOwner common.Address, poolId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.NominatePoolOwner(&_CoreGoerli.TransactOpts, nominatedOwner, poolId) +func (_Core *CoreSession) NominatePoolOwner(nominatedOwner common.Address, poolId *big.Int) (*types.Transaction, error) { + return _Core.Contract.NominatePoolOwner(&_Core.TransactOpts, nominatedOwner, poolId) } // NominatePoolOwner is a paid mutator transaction binding the contract method 0x6141f7a2. // // Solidity: function nominatePoolOwner(address nominatedOwner, uint128 poolId) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) NominatePoolOwner(nominatedOwner common.Address, poolId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.NominatePoolOwner(&_CoreGoerli.TransactOpts, nominatedOwner, poolId) +func (_Core *CoreTransactorSession) NominatePoolOwner(nominatedOwner common.Address, poolId *big.Int) (*types.Transaction, error) { + return _Core.Contract.NominatePoolOwner(&_Core.TransactOpts, nominatedOwner, poolId) } // NotifyAccountTransfer is a paid mutator transaction binding the contract method 0x7dec8b55. // // Solidity: function notifyAccountTransfer(address to, uint128 accountId) returns() -func (_CoreGoerli *CoreGoerliTransactor) NotifyAccountTransfer(opts *bind.TransactOpts, to common.Address, accountId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "notifyAccountTransfer", to, accountId) +func (_Core *CoreTransactor) NotifyAccountTransfer(opts *bind.TransactOpts, to common.Address, accountId *big.Int) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "notifyAccountTransfer", to, accountId) } // NotifyAccountTransfer is a paid mutator transaction binding the contract method 0x7dec8b55. // // Solidity: function notifyAccountTransfer(address to, uint128 accountId) returns() -func (_CoreGoerli *CoreGoerliSession) NotifyAccountTransfer(to common.Address, accountId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.NotifyAccountTransfer(&_CoreGoerli.TransactOpts, to, accountId) +func (_Core *CoreSession) NotifyAccountTransfer(to common.Address, accountId *big.Int) (*types.Transaction, error) { + return _Core.Contract.NotifyAccountTransfer(&_Core.TransactOpts, to, accountId) } // NotifyAccountTransfer is a paid mutator transaction binding the contract method 0x7dec8b55. // // Solidity: function notifyAccountTransfer(address to, uint128 accountId) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) NotifyAccountTransfer(to common.Address, accountId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.NotifyAccountTransfer(&_CoreGoerli.TransactOpts, to, accountId) +func (_Core *CoreTransactorSession) NotifyAccountTransfer(to common.Address, accountId *big.Int) (*types.Transaction, error) { + return _Core.Contract.NotifyAccountTransfer(&_Core.TransactOpts, to, accountId) } // RebalancePool is a paid mutator transaction binding the contract method 0x183231d7. // // Solidity: function rebalancePool(uint128 poolId, address optionalCollateralType) returns() -func (_CoreGoerli *CoreGoerliTransactor) RebalancePool(opts *bind.TransactOpts, poolId *big.Int, optionalCollateralType common.Address) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "rebalancePool", poolId, optionalCollateralType) +func (_Core *CoreTransactor) RebalancePool(opts *bind.TransactOpts, poolId *big.Int, optionalCollateralType common.Address) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "rebalancePool", poolId, optionalCollateralType) } // RebalancePool is a paid mutator transaction binding the contract method 0x183231d7. // // Solidity: function rebalancePool(uint128 poolId, address optionalCollateralType) returns() -func (_CoreGoerli *CoreGoerliSession) RebalancePool(poolId *big.Int, optionalCollateralType common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.RebalancePool(&_CoreGoerli.TransactOpts, poolId, optionalCollateralType) +func (_Core *CoreSession) RebalancePool(poolId *big.Int, optionalCollateralType common.Address) (*types.Transaction, error) { + return _Core.Contract.RebalancePool(&_Core.TransactOpts, poolId, optionalCollateralType) } // RebalancePool is a paid mutator transaction binding the contract method 0x183231d7. // // Solidity: function rebalancePool(uint128 poolId, address optionalCollateralType) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) RebalancePool(poolId *big.Int, optionalCollateralType common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.RebalancePool(&_CoreGoerli.TransactOpts, poolId, optionalCollateralType) +func (_Core *CoreTransactorSession) RebalancePool(poolId *big.Int, optionalCollateralType common.Address) (*types.Transaction, error) { + return _Core.Contract.RebalancePool(&_Core.TransactOpts, poolId, optionalCollateralType) } // RegisterMarket is a paid mutator transaction binding the contract method 0xa79b9ec9. // // Solidity: function registerMarket(address market) returns(uint128 marketId) -func (_CoreGoerli *CoreGoerliTransactor) RegisterMarket(opts *bind.TransactOpts, market common.Address) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "registerMarket", market) +func (_Core *CoreTransactor) RegisterMarket(opts *bind.TransactOpts, market common.Address) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "registerMarket", market) } // RegisterMarket is a paid mutator transaction binding the contract method 0xa79b9ec9. // // Solidity: function registerMarket(address market) returns(uint128 marketId) -func (_CoreGoerli *CoreGoerliSession) RegisterMarket(market common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.RegisterMarket(&_CoreGoerli.TransactOpts, market) +func (_Core *CoreSession) RegisterMarket(market common.Address) (*types.Transaction, error) { + return _Core.Contract.RegisterMarket(&_Core.TransactOpts, market) } // RegisterMarket is a paid mutator transaction binding the contract method 0xa79b9ec9. // // Solidity: function registerMarket(address market) returns(uint128 marketId) -func (_CoreGoerli *CoreGoerliTransactorSession) RegisterMarket(market common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.RegisterMarket(&_CoreGoerli.TransactOpts, market) +func (_Core *CoreTransactorSession) RegisterMarket(market common.Address) (*types.Transaction, error) { + return _Core.Contract.RegisterMarket(&_Core.TransactOpts, market) } // RegisterRewardsDistributor is a paid mutator transaction binding the contract method 0x170c1351. // // Solidity: function registerRewardsDistributor(uint128 poolId, address collateralType, address distributor) returns() -func (_CoreGoerli *CoreGoerliTransactor) RegisterRewardsDistributor(opts *bind.TransactOpts, poolId *big.Int, collateralType common.Address, distributor common.Address) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "registerRewardsDistributor", poolId, collateralType, distributor) +func (_Core *CoreTransactor) RegisterRewardsDistributor(opts *bind.TransactOpts, poolId *big.Int, collateralType common.Address, distributor common.Address) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "registerRewardsDistributor", poolId, collateralType, distributor) } // RegisterRewardsDistributor is a paid mutator transaction binding the contract method 0x170c1351. // // Solidity: function registerRewardsDistributor(uint128 poolId, address collateralType, address distributor) returns() -func (_CoreGoerli *CoreGoerliSession) RegisterRewardsDistributor(poolId *big.Int, collateralType common.Address, distributor common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.RegisterRewardsDistributor(&_CoreGoerli.TransactOpts, poolId, collateralType, distributor) +func (_Core *CoreSession) RegisterRewardsDistributor(poolId *big.Int, collateralType common.Address, distributor common.Address) (*types.Transaction, error) { + return _Core.Contract.RegisterRewardsDistributor(&_Core.TransactOpts, poolId, collateralType, distributor) } // RegisterRewardsDistributor is a paid mutator transaction binding the contract method 0x170c1351. // // Solidity: function registerRewardsDistributor(uint128 poolId, address collateralType, address distributor) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) RegisterRewardsDistributor(poolId *big.Int, collateralType common.Address, distributor common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.RegisterRewardsDistributor(&_CoreGoerli.TransactOpts, poolId, collateralType, distributor) +func (_Core *CoreTransactorSession) RegisterRewardsDistributor(poolId *big.Int, collateralType common.Address, distributor common.Address) (*types.Transaction, error) { + return _Core.Contract.RegisterRewardsDistributor(&_Core.TransactOpts, poolId, collateralType, distributor) } // RegisterUnmanagedSystem is a paid mutator transaction binding the contract method 0xd245d983. // // Solidity: function registerUnmanagedSystem(bytes32 id, address endpoint) returns() -func (_CoreGoerli *CoreGoerliTransactor) RegisterUnmanagedSystem(opts *bind.TransactOpts, id [32]byte, endpoint common.Address) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "registerUnmanagedSystem", id, endpoint) +func (_Core *CoreTransactor) RegisterUnmanagedSystem(opts *bind.TransactOpts, id [32]byte, endpoint common.Address) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "registerUnmanagedSystem", id, endpoint) } // RegisterUnmanagedSystem is a paid mutator transaction binding the contract method 0xd245d983. // // Solidity: function registerUnmanagedSystem(bytes32 id, address endpoint) returns() -func (_CoreGoerli *CoreGoerliSession) RegisterUnmanagedSystem(id [32]byte, endpoint common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.RegisterUnmanagedSystem(&_CoreGoerli.TransactOpts, id, endpoint) +func (_Core *CoreSession) RegisterUnmanagedSystem(id [32]byte, endpoint common.Address) (*types.Transaction, error) { + return _Core.Contract.RegisterUnmanagedSystem(&_Core.TransactOpts, id, endpoint) } // RegisterUnmanagedSystem is a paid mutator transaction binding the contract method 0xd245d983. // // Solidity: function registerUnmanagedSystem(bytes32 id, address endpoint) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) RegisterUnmanagedSystem(id [32]byte, endpoint common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.RegisterUnmanagedSystem(&_CoreGoerli.TransactOpts, id, endpoint) +func (_Core *CoreTransactorSession) RegisterUnmanagedSystem(id [32]byte, endpoint common.Address) (*types.Transaction, error) { + return _Core.Contract.RegisterUnmanagedSystem(&_Core.TransactOpts, id, endpoint) } // RemoveApprovedPool is a paid mutator transaction binding the contract method 0xe1b440d0. // // Solidity: function removeApprovedPool(uint128 poolId) returns() -func (_CoreGoerli *CoreGoerliTransactor) RemoveApprovedPool(opts *bind.TransactOpts, poolId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "removeApprovedPool", poolId) +func (_Core *CoreTransactor) RemoveApprovedPool(opts *bind.TransactOpts, poolId *big.Int) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "removeApprovedPool", poolId) } // RemoveApprovedPool is a paid mutator transaction binding the contract method 0xe1b440d0. // // Solidity: function removeApprovedPool(uint128 poolId) returns() -func (_CoreGoerli *CoreGoerliSession) RemoveApprovedPool(poolId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.RemoveApprovedPool(&_CoreGoerli.TransactOpts, poolId) +func (_Core *CoreSession) RemoveApprovedPool(poolId *big.Int) (*types.Transaction, error) { + return _Core.Contract.RemoveApprovedPool(&_Core.TransactOpts, poolId) } // RemoveApprovedPool is a paid mutator transaction binding the contract method 0xe1b440d0. // // Solidity: function removeApprovedPool(uint128 poolId) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) RemoveApprovedPool(poolId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.RemoveApprovedPool(&_CoreGoerli.TransactOpts, poolId) +func (_Core *CoreTransactorSession) RemoveApprovedPool(poolId *big.Int) (*types.Transaction, error) { + return _Core.Contract.RemoveApprovedPool(&_Core.TransactOpts, poolId) } // RemoveFromFeatureFlagAllowlist is a paid mutator transaction binding the contract method 0xb7746b59. // // Solidity: function removeFromFeatureFlagAllowlist(bytes32 feature, address account) returns() -func (_CoreGoerli *CoreGoerliTransactor) RemoveFromFeatureFlagAllowlist(opts *bind.TransactOpts, feature [32]byte, account common.Address) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "removeFromFeatureFlagAllowlist", feature, account) +func (_Core *CoreTransactor) RemoveFromFeatureFlagAllowlist(opts *bind.TransactOpts, feature [32]byte, account common.Address) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "removeFromFeatureFlagAllowlist", feature, account) } // RemoveFromFeatureFlagAllowlist is a paid mutator transaction binding the contract method 0xb7746b59. // // Solidity: function removeFromFeatureFlagAllowlist(bytes32 feature, address account) returns() -func (_CoreGoerli *CoreGoerliSession) RemoveFromFeatureFlagAllowlist(feature [32]byte, account common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.RemoveFromFeatureFlagAllowlist(&_CoreGoerli.TransactOpts, feature, account) +func (_Core *CoreSession) RemoveFromFeatureFlagAllowlist(feature [32]byte, account common.Address) (*types.Transaction, error) { + return _Core.Contract.RemoveFromFeatureFlagAllowlist(&_Core.TransactOpts, feature, account) } // RemoveFromFeatureFlagAllowlist is a paid mutator transaction binding the contract method 0xb7746b59. // // Solidity: function removeFromFeatureFlagAllowlist(bytes32 feature, address account) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) RemoveFromFeatureFlagAllowlist(feature [32]byte, account common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.RemoveFromFeatureFlagAllowlist(&_CoreGoerli.TransactOpts, feature, account) +func (_Core *CoreTransactorSession) RemoveFromFeatureFlagAllowlist(feature [32]byte, account common.Address) (*types.Transaction, error) { + return _Core.Contract.RemoveFromFeatureFlagAllowlist(&_Core.TransactOpts, feature, account) } // RemoveRewardsDistributor is a paid mutator transaction binding the contract method 0x2685f42b. // // Solidity: function removeRewardsDistributor(uint128 poolId, address collateralType, address distributor) returns() -func (_CoreGoerli *CoreGoerliTransactor) RemoveRewardsDistributor(opts *bind.TransactOpts, poolId *big.Int, collateralType common.Address, distributor common.Address) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "removeRewardsDistributor", poolId, collateralType, distributor) +func (_Core *CoreTransactor) RemoveRewardsDistributor(opts *bind.TransactOpts, poolId *big.Int, collateralType common.Address, distributor common.Address) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "removeRewardsDistributor", poolId, collateralType, distributor) } // RemoveRewardsDistributor is a paid mutator transaction binding the contract method 0x2685f42b. // // Solidity: function removeRewardsDistributor(uint128 poolId, address collateralType, address distributor) returns() -func (_CoreGoerli *CoreGoerliSession) RemoveRewardsDistributor(poolId *big.Int, collateralType common.Address, distributor common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.RemoveRewardsDistributor(&_CoreGoerli.TransactOpts, poolId, collateralType, distributor) +func (_Core *CoreSession) RemoveRewardsDistributor(poolId *big.Int, collateralType common.Address, distributor common.Address) (*types.Transaction, error) { + return _Core.Contract.RemoveRewardsDistributor(&_Core.TransactOpts, poolId, collateralType, distributor) } // RemoveRewardsDistributor is a paid mutator transaction binding the contract method 0x2685f42b. // // Solidity: function removeRewardsDistributor(uint128 poolId, address collateralType, address distributor) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) RemoveRewardsDistributor(poolId *big.Int, collateralType common.Address, distributor common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.RemoveRewardsDistributor(&_CoreGoerli.TransactOpts, poolId, collateralType, distributor) +func (_Core *CoreTransactorSession) RemoveRewardsDistributor(poolId *big.Int, collateralType common.Address, distributor common.Address) (*types.Transaction, error) { + return _Core.Contract.RemoveRewardsDistributor(&_Core.TransactOpts, poolId, collateralType, distributor) } // RenounceNomination is a paid mutator transaction binding the contract method 0x718fe928. // // Solidity: function renounceNomination() returns() -func (_CoreGoerli *CoreGoerliTransactor) RenounceNomination(opts *bind.TransactOpts) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "renounceNomination") +func (_Core *CoreTransactor) RenounceNomination(opts *bind.TransactOpts) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "renounceNomination") } // RenounceNomination is a paid mutator transaction binding the contract method 0x718fe928. // // Solidity: function renounceNomination() returns() -func (_CoreGoerli *CoreGoerliSession) RenounceNomination() (*types.Transaction, error) { - return _CoreGoerli.Contract.RenounceNomination(&_CoreGoerli.TransactOpts) +func (_Core *CoreSession) RenounceNomination() (*types.Transaction, error) { + return _Core.Contract.RenounceNomination(&_Core.TransactOpts) } // RenounceNomination is a paid mutator transaction binding the contract method 0x718fe928. // // Solidity: function renounceNomination() returns() -func (_CoreGoerli *CoreGoerliTransactorSession) RenounceNomination() (*types.Transaction, error) { - return _CoreGoerli.Contract.RenounceNomination(&_CoreGoerli.TransactOpts) +func (_Core *CoreTransactorSession) RenounceNomination() (*types.Transaction, error) { + return _Core.Contract.RenounceNomination(&_Core.TransactOpts) } // RenouncePermission is a paid mutator transaction binding the contract method 0x47c1c561. // // Solidity: function renouncePermission(uint128 accountId, bytes32 permission) returns() -func (_CoreGoerli *CoreGoerliTransactor) RenouncePermission(opts *bind.TransactOpts, accountId *big.Int, permission [32]byte) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "renouncePermission", accountId, permission) +func (_Core *CoreTransactor) RenouncePermission(opts *bind.TransactOpts, accountId *big.Int, permission [32]byte) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "renouncePermission", accountId, permission) } // RenouncePermission is a paid mutator transaction binding the contract method 0x47c1c561. // // Solidity: function renouncePermission(uint128 accountId, bytes32 permission) returns() -func (_CoreGoerli *CoreGoerliSession) RenouncePermission(accountId *big.Int, permission [32]byte) (*types.Transaction, error) { - return _CoreGoerli.Contract.RenouncePermission(&_CoreGoerli.TransactOpts, accountId, permission) +func (_Core *CoreSession) RenouncePermission(accountId *big.Int, permission [32]byte) (*types.Transaction, error) { + return _Core.Contract.RenouncePermission(&_Core.TransactOpts, accountId, permission) } // RenouncePermission is a paid mutator transaction binding the contract method 0x47c1c561. // // Solidity: function renouncePermission(uint128 accountId, bytes32 permission) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) RenouncePermission(accountId *big.Int, permission [32]byte) (*types.Transaction, error) { - return _CoreGoerli.Contract.RenouncePermission(&_CoreGoerli.TransactOpts, accountId, permission) +func (_Core *CoreTransactorSession) RenouncePermission(accountId *big.Int, permission [32]byte) (*types.Transaction, error) { + return _Core.Contract.RenouncePermission(&_Core.TransactOpts, accountId, permission) } // RenouncePoolNomination is a paid mutator transaction binding the contract method 0xca5bed77. // // Solidity: function renouncePoolNomination(uint128 poolId) returns() -func (_CoreGoerli *CoreGoerliTransactor) RenouncePoolNomination(opts *bind.TransactOpts, poolId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "renouncePoolNomination", poolId) +func (_Core *CoreTransactor) RenouncePoolNomination(opts *bind.TransactOpts, poolId *big.Int) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "renouncePoolNomination", poolId) } // RenouncePoolNomination is a paid mutator transaction binding the contract method 0xca5bed77. // // Solidity: function renouncePoolNomination(uint128 poolId) returns() -func (_CoreGoerli *CoreGoerliSession) RenouncePoolNomination(poolId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.RenouncePoolNomination(&_CoreGoerli.TransactOpts, poolId) +func (_Core *CoreSession) RenouncePoolNomination(poolId *big.Int) (*types.Transaction, error) { + return _Core.Contract.RenouncePoolNomination(&_Core.TransactOpts, poolId) } // RenouncePoolNomination is a paid mutator transaction binding the contract method 0xca5bed77. // // Solidity: function renouncePoolNomination(uint128 poolId) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) RenouncePoolNomination(poolId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.RenouncePoolNomination(&_CoreGoerli.TransactOpts, poolId) +func (_Core *CoreTransactorSession) RenouncePoolNomination(poolId *big.Int) (*types.Transaction, error) { + return _Core.Contract.RenouncePoolNomination(&_Core.TransactOpts, poolId) } // RevokePermission is a paid mutator transaction binding the contract method 0xa7627288. // // Solidity: function revokePermission(uint128 accountId, bytes32 permission, address user) returns() -func (_CoreGoerli *CoreGoerliTransactor) RevokePermission(opts *bind.TransactOpts, accountId *big.Int, permission [32]byte, user common.Address) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "revokePermission", accountId, permission, user) +func (_Core *CoreTransactor) RevokePermission(opts *bind.TransactOpts, accountId *big.Int, permission [32]byte, user common.Address) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "revokePermission", accountId, permission, user) } // RevokePermission is a paid mutator transaction binding the contract method 0xa7627288. // // Solidity: function revokePermission(uint128 accountId, bytes32 permission, address user) returns() -func (_CoreGoerli *CoreGoerliSession) RevokePermission(accountId *big.Int, permission [32]byte, user common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.RevokePermission(&_CoreGoerli.TransactOpts, accountId, permission, user) +func (_Core *CoreSession) RevokePermission(accountId *big.Int, permission [32]byte, user common.Address) (*types.Transaction, error) { + return _Core.Contract.RevokePermission(&_Core.TransactOpts, accountId, permission, user) } // RevokePermission is a paid mutator transaction binding the contract method 0xa7627288. // // Solidity: function revokePermission(uint128 accountId, bytes32 permission, address user) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) RevokePermission(accountId *big.Int, permission [32]byte, user common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.RevokePermission(&_CoreGoerli.TransactOpts, accountId, permission, user) +func (_Core *CoreTransactorSession) RevokePermission(accountId *big.Int, permission [32]byte, user common.Address) (*types.Transaction, error) { + return _Core.Contract.RevokePermission(&_Core.TransactOpts, accountId, permission, user) } // RevokePoolNomination is a paid mutator transaction binding the contract method 0x1f1b33b9. // // Solidity: function revokePoolNomination(uint128 poolId) returns() -func (_CoreGoerli *CoreGoerliTransactor) RevokePoolNomination(opts *bind.TransactOpts, poolId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "revokePoolNomination", poolId) +func (_Core *CoreTransactor) RevokePoolNomination(opts *bind.TransactOpts, poolId *big.Int) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "revokePoolNomination", poolId) } // RevokePoolNomination is a paid mutator transaction binding the contract method 0x1f1b33b9. // // Solidity: function revokePoolNomination(uint128 poolId) returns() -func (_CoreGoerli *CoreGoerliSession) RevokePoolNomination(poolId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.RevokePoolNomination(&_CoreGoerli.TransactOpts, poolId) +func (_Core *CoreSession) RevokePoolNomination(poolId *big.Int) (*types.Transaction, error) { + return _Core.Contract.RevokePoolNomination(&_Core.TransactOpts, poolId) } // RevokePoolNomination is a paid mutator transaction binding the contract method 0x1f1b33b9. // // Solidity: function revokePoolNomination(uint128 poolId) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) RevokePoolNomination(poolId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.RevokePoolNomination(&_CoreGoerli.TransactOpts, poolId) -} - -// SetAllowlistedMulticallTarget is a paid mutator transaction binding the contract method 0x0a6c7553. -// -// Solidity: function setAllowlistedMulticallTarget(address target, bool allowlisted) returns() -func (_CoreGoerli *CoreGoerliTransactor) SetAllowlistedMulticallTarget(opts *bind.TransactOpts, target common.Address, allowlisted bool) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "setAllowlistedMulticallTarget", target, allowlisted) -} - -// SetAllowlistedMulticallTarget is a paid mutator transaction binding the contract method 0x0a6c7553. -// -// Solidity: function setAllowlistedMulticallTarget(address target, bool allowlisted) returns() -func (_CoreGoerli *CoreGoerliSession) SetAllowlistedMulticallTarget(target common.Address, allowlisted bool) (*types.Transaction, error) { - return _CoreGoerli.Contract.SetAllowlistedMulticallTarget(&_CoreGoerli.TransactOpts, target, allowlisted) -} - -// SetAllowlistedMulticallTarget is a paid mutator transaction binding the contract method 0x0a6c7553. -// -// Solidity: function setAllowlistedMulticallTarget(address target, bool allowlisted) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) SetAllowlistedMulticallTarget(target common.Address, allowlisted bool) (*types.Transaction, error) { - return _CoreGoerli.Contract.SetAllowlistedMulticallTarget(&_CoreGoerli.TransactOpts, target, allowlisted) +func (_Core *CoreTransactorSession) RevokePoolNomination(poolId *big.Int) (*types.Transaction, error) { + return _Core.Contract.RevokePoolNomination(&_Core.TransactOpts, poolId) } // SetConfig is a paid mutator transaction binding the contract method 0xd1fd27b3. // // Solidity: function setConfig(bytes32 k, bytes32 v) returns() -func (_CoreGoerli *CoreGoerliTransactor) SetConfig(opts *bind.TransactOpts, k [32]byte, v [32]byte) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "setConfig", k, v) +func (_Core *CoreTransactor) SetConfig(opts *bind.TransactOpts, k [32]byte, v [32]byte) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "setConfig", k, v) } // SetConfig is a paid mutator transaction binding the contract method 0xd1fd27b3. // // Solidity: function setConfig(bytes32 k, bytes32 v) returns() -func (_CoreGoerli *CoreGoerliSession) SetConfig(k [32]byte, v [32]byte) (*types.Transaction, error) { - return _CoreGoerli.Contract.SetConfig(&_CoreGoerli.TransactOpts, k, v) +func (_Core *CoreSession) SetConfig(k [32]byte, v [32]byte) (*types.Transaction, error) { + return _Core.Contract.SetConfig(&_Core.TransactOpts, k, v) } // SetConfig is a paid mutator transaction binding the contract method 0xd1fd27b3. // // Solidity: function setConfig(bytes32 k, bytes32 v) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) SetConfig(k [32]byte, v [32]byte) (*types.Transaction, error) { - return _CoreGoerli.Contract.SetConfig(&_CoreGoerli.TransactOpts, k, v) +func (_Core *CoreTransactorSession) SetConfig(k [32]byte, v [32]byte) (*types.Transaction, error) { + return _Core.Contract.SetConfig(&_Core.TransactOpts, k, v) } // SetDeniers is a paid mutator transaction binding the contract method 0x715cb7d2. // // Solidity: function setDeniers(bytes32 feature, address[] deniers) returns() -func (_CoreGoerli *CoreGoerliTransactor) SetDeniers(opts *bind.TransactOpts, feature [32]byte, deniers []common.Address) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "setDeniers", feature, deniers) +func (_Core *CoreTransactor) SetDeniers(opts *bind.TransactOpts, feature [32]byte, deniers []common.Address) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "setDeniers", feature, deniers) } // SetDeniers is a paid mutator transaction binding the contract method 0x715cb7d2. // // Solidity: function setDeniers(bytes32 feature, address[] deniers) returns() -func (_CoreGoerli *CoreGoerliSession) SetDeniers(feature [32]byte, deniers []common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.SetDeniers(&_CoreGoerli.TransactOpts, feature, deniers) +func (_Core *CoreSession) SetDeniers(feature [32]byte, deniers []common.Address) (*types.Transaction, error) { + return _Core.Contract.SetDeniers(&_Core.TransactOpts, feature, deniers) } // SetDeniers is a paid mutator transaction binding the contract method 0x715cb7d2. // // Solidity: function setDeniers(bytes32 feature, address[] deniers) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) SetDeniers(feature [32]byte, deniers []common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.SetDeniers(&_CoreGoerli.TransactOpts, feature, deniers) +func (_Core *CoreTransactorSession) SetDeniers(feature [32]byte, deniers []common.Address) (*types.Transaction, error) { + return _Core.Contract.SetDeniers(&_Core.TransactOpts, feature, deniers) } // SetFeatureFlagAllowAll is a paid mutator transaction binding the contract method 0x7d632bd2. // // Solidity: function setFeatureFlagAllowAll(bytes32 feature, bool allowAll) returns() -func (_CoreGoerli *CoreGoerliTransactor) SetFeatureFlagAllowAll(opts *bind.TransactOpts, feature [32]byte, allowAll bool) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "setFeatureFlagAllowAll", feature, allowAll) +func (_Core *CoreTransactor) SetFeatureFlagAllowAll(opts *bind.TransactOpts, feature [32]byte, allowAll bool) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "setFeatureFlagAllowAll", feature, allowAll) } // SetFeatureFlagAllowAll is a paid mutator transaction binding the contract method 0x7d632bd2. // // Solidity: function setFeatureFlagAllowAll(bytes32 feature, bool allowAll) returns() -func (_CoreGoerli *CoreGoerliSession) SetFeatureFlagAllowAll(feature [32]byte, allowAll bool) (*types.Transaction, error) { - return _CoreGoerli.Contract.SetFeatureFlagAllowAll(&_CoreGoerli.TransactOpts, feature, allowAll) +func (_Core *CoreSession) SetFeatureFlagAllowAll(feature [32]byte, allowAll bool) (*types.Transaction, error) { + return _Core.Contract.SetFeatureFlagAllowAll(&_Core.TransactOpts, feature, allowAll) } // SetFeatureFlagAllowAll is a paid mutator transaction binding the contract method 0x7d632bd2. // // Solidity: function setFeatureFlagAllowAll(bytes32 feature, bool allowAll) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) SetFeatureFlagAllowAll(feature [32]byte, allowAll bool) (*types.Transaction, error) { - return _CoreGoerli.Contract.SetFeatureFlagAllowAll(&_CoreGoerli.TransactOpts, feature, allowAll) +func (_Core *CoreTransactorSession) SetFeatureFlagAllowAll(feature [32]byte, allowAll bool) (*types.Transaction, error) { + return _Core.Contract.SetFeatureFlagAllowAll(&_Core.TransactOpts, feature, allowAll) } // SetFeatureFlagDenyAll is a paid mutator transaction binding the contract method 0x5e52ad6e. // // Solidity: function setFeatureFlagDenyAll(bytes32 feature, bool denyAll) returns() -func (_CoreGoerli *CoreGoerliTransactor) SetFeatureFlagDenyAll(opts *bind.TransactOpts, feature [32]byte, denyAll bool) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "setFeatureFlagDenyAll", feature, denyAll) +func (_Core *CoreTransactor) SetFeatureFlagDenyAll(opts *bind.TransactOpts, feature [32]byte, denyAll bool) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "setFeatureFlagDenyAll", feature, denyAll) } // SetFeatureFlagDenyAll is a paid mutator transaction binding the contract method 0x5e52ad6e. // // Solidity: function setFeatureFlagDenyAll(bytes32 feature, bool denyAll) returns() -func (_CoreGoerli *CoreGoerliSession) SetFeatureFlagDenyAll(feature [32]byte, denyAll bool) (*types.Transaction, error) { - return _CoreGoerli.Contract.SetFeatureFlagDenyAll(&_CoreGoerli.TransactOpts, feature, denyAll) +func (_Core *CoreSession) SetFeatureFlagDenyAll(feature [32]byte, denyAll bool) (*types.Transaction, error) { + return _Core.Contract.SetFeatureFlagDenyAll(&_Core.TransactOpts, feature, denyAll) } // SetFeatureFlagDenyAll is a paid mutator transaction binding the contract method 0x5e52ad6e. // // Solidity: function setFeatureFlagDenyAll(bytes32 feature, bool denyAll) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) SetFeatureFlagDenyAll(feature [32]byte, denyAll bool) (*types.Transaction, error) { - return _CoreGoerli.Contract.SetFeatureFlagDenyAll(&_CoreGoerli.TransactOpts, feature, denyAll) +func (_Core *CoreTransactorSession) SetFeatureFlagDenyAll(feature [32]byte, denyAll bool) (*types.Transaction, error) { + return _Core.Contract.SetFeatureFlagDenyAll(&_Core.TransactOpts, feature, denyAll) } // SetMarketMinDelegateTime is a paid mutator transaction binding the contract method 0x1d90e392. // // Solidity: function setMarketMinDelegateTime(uint128 marketId, uint32 minDelegateTime) returns() -func (_CoreGoerli *CoreGoerliTransactor) SetMarketMinDelegateTime(opts *bind.TransactOpts, marketId *big.Int, minDelegateTime uint32) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "setMarketMinDelegateTime", marketId, minDelegateTime) +func (_Core *CoreTransactor) SetMarketMinDelegateTime(opts *bind.TransactOpts, marketId *big.Int, minDelegateTime uint32) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "setMarketMinDelegateTime", marketId, minDelegateTime) } // SetMarketMinDelegateTime is a paid mutator transaction binding the contract method 0x1d90e392. // // Solidity: function setMarketMinDelegateTime(uint128 marketId, uint32 minDelegateTime) returns() -func (_CoreGoerli *CoreGoerliSession) SetMarketMinDelegateTime(marketId *big.Int, minDelegateTime uint32) (*types.Transaction, error) { - return _CoreGoerli.Contract.SetMarketMinDelegateTime(&_CoreGoerli.TransactOpts, marketId, minDelegateTime) +func (_Core *CoreSession) SetMarketMinDelegateTime(marketId *big.Int, minDelegateTime uint32) (*types.Transaction, error) { + return _Core.Contract.SetMarketMinDelegateTime(&_Core.TransactOpts, marketId, minDelegateTime) } // SetMarketMinDelegateTime is a paid mutator transaction binding the contract method 0x1d90e392. // // Solidity: function setMarketMinDelegateTime(uint128 marketId, uint32 minDelegateTime) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) SetMarketMinDelegateTime(marketId *big.Int, minDelegateTime uint32) (*types.Transaction, error) { - return _CoreGoerli.Contract.SetMarketMinDelegateTime(&_CoreGoerli.TransactOpts, marketId, minDelegateTime) +func (_Core *CoreTransactorSession) SetMarketMinDelegateTime(marketId *big.Int, minDelegateTime uint32) (*types.Transaction, error) { + return _Core.Contract.SetMarketMinDelegateTime(&_Core.TransactOpts, marketId, minDelegateTime) } // SetMinLiquidityRatio is a paid mutator transaction binding the contract method 0x6fd5bdce. // // Solidity: function setMinLiquidityRatio(uint128 marketId, uint256 minLiquidityRatio) returns() -func (_CoreGoerli *CoreGoerliTransactor) SetMinLiquidityRatio(opts *bind.TransactOpts, marketId *big.Int, minLiquidityRatio *big.Int) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "setMinLiquidityRatio", marketId, minLiquidityRatio) +func (_Core *CoreTransactor) SetMinLiquidityRatio(opts *bind.TransactOpts, marketId *big.Int, minLiquidityRatio *big.Int) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "setMinLiquidityRatio", marketId, minLiquidityRatio) } // SetMinLiquidityRatio is a paid mutator transaction binding the contract method 0x6fd5bdce. // // Solidity: function setMinLiquidityRatio(uint128 marketId, uint256 minLiquidityRatio) returns() -func (_CoreGoerli *CoreGoerliSession) SetMinLiquidityRatio(marketId *big.Int, minLiquidityRatio *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.SetMinLiquidityRatio(&_CoreGoerli.TransactOpts, marketId, minLiquidityRatio) +func (_Core *CoreSession) SetMinLiquidityRatio(marketId *big.Int, minLiquidityRatio *big.Int) (*types.Transaction, error) { + return _Core.Contract.SetMinLiquidityRatio(&_Core.TransactOpts, marketId, minLiquidityRatio) } // SetMinLiquidityRatio is a paid mutator transaction binding the contract method 0x6fd5bdce. // // Solidity: function setMinLiquidityRatio(uint128 marketId, uint256 minLiquidityRatio) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) SetMinLiquidityRatio(marketId *big.Int, minLiquidityRatio *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.SetMinLiquidityRatio(&_CoreGoerli.TransactOpts, marketId, minLiquidityRatio) +func (_Core *CoreTransactorSession) SetMinLiquidityRatio(marketId *big.Int, minLiquidityRatio *big.Int) (*types.Transaction, error) { + return _Core.Contract.SetMinLiquidityRatio(&_Core.TransactOpts, marketId, minLiquidityRatio) } // SetMinLiquidityRatio0 is a paid mutator transaction binding the contract method 0x34078a01. // // Solidity: function setMinLiquidityRatio(uint256 minLiquidityRatio) returns() -func (_CoreGoerli *CoreGoerliTransactor) SetMinLiquidityRatio0(opts *bind.TransactOpts, minLiquidityRatio *big.Int) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "setMinLiquidityRatio0", minLiquidityRatio) +func (_Core *CoreTransactor) SetMinLiquidityRatio0(opts *bind.TransactOpts, minLiquidityRatio *big.Int) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "setMinLiquidityRatio0", minLiquidityRatio) } // SetMinLiquidityRatio0 is a paid mutator transaction binding the contract method 0x34078a01. // // Solidity: function setMinLiquidityRatio(uint256 minLiquidityRatio) returns() -func (_CoreGoerli *CoreGoerliSession) SetMinLiquidityRatio0(minLiquidityRatio *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.SetMinLiquidityRatio0(&_CoreGoerli.TransactOpts, minLiquidityRatio) +func (_Core *CoreSession) SetMinLiquidityRatio0(minLiquidityRatio *big.Int) (*types.Transaction, error) { + return _Core.Contract.SetMinLiquidityRatio0(&_Core.TransactOpts, minLiquidityRatio) } // SetMinLiquidityRatio0 is a paid mutator transaction binding the contract method 0x34078a01. // // Solidity: function setMinLiquidityRatio(uint256 minLiquidityRatio) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) SetMinLiquidityRatio0(minLiquidityRatio *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.SetMinLiquidityRatio0(&_CoreGoerli.TransactOpts, minLiquidityRatio) +func (_Core *CoreTransactorSession) SetMinLiquidityRatio0(minLiquidityRatio *big.Int) (*types.Transaction, error) { + return _Core.Contract.SetMinLiquidityRatio0(&_Core.TransactOpts, minLiquidityRatio) } // SetPoolCollateralConfiguration is a paid mutator transaction binding the contract method 0x5a4aabb1. // // Solidity: function setPoolCollateralConfiguration(uint128 poolId, address collateralType, (uint256,uint256) newConfig) returns() -func (_CoreGoerli *CoreGoerliTransactor) SetPoolCollateralConfiguration(opts *bind.TransactOpts, poolId *big.Int, collateralType common.Address, newConfig PoolCollateralConfigurationData) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "setPoolCollateralConfiguration", poolId, collateralType, newConfig) +func (_Core *CoreTransactor) SetPoolCollateralConfiguration(opts *bind.TransactOpts, poolId *big.Int, collateralType common.Address, newConfig PoolCollateralConfigurationData) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "setPoolCollateralConfiguration", poolId, collateralType, newConfig) } // SetPoolCollateralConfiguration is a paid mutator transaction binding the contract method 0x5a4aabb1. // // Solidity: function setPoolCollateralConfiguration(uint128 poolId, address collateralType, (uint256,uint256) newConfig) returns() -func (_CoreGoerli *CoreGoerliSession) SetPoolCollateralConfiguration(poolId *big.Int, collateralType common.Address, newConfig PoolCollateralConfigurationData) (*types.Transaction, error) { - return _CoreGoerli.Contract.SetPoolCollateralConfiguration(&_CoreGoerli.TransactOpts, poolId, collateralType, newConfig) +func (_Core *CoreSession) SetPoolCollateralConfiguration(poolId *big.Int, collateralType common.Address, newConfig PoolCollateralConfigurationData) (*types.Transaction, error) { + return _Core.Contract.SetPoolCollateralConfiguration(&_Core.TransactOpts, poolId, collateralType, newConfig) } // SetPoolCollateralConfiguration is a paid mutator transaction binding the contract method 0x5a4aabb1. // // Solidity: function setPoolCollateralConfiguration(uint128 poolId, address collateralType, (uint256,uint256) newConfig) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) SetPoolCollateralConfiguration(poolId *big.Int, collateralType common.Address, newConfig PoolCollateralConfigurationData) (*types.Transaction, error) { - return _CoreGoerli.Contract.SetPoolCollateralConfiguration(&_CoreGoerli.TransactOpts, poolId, collateralType, newConfig) +func (_Core *CoreTransactorSession) SetPoolCollateralConfiguration(poolId *big.Int, collateralType common.Address, newConfig PoolCollateralConfigurationData) (*types.Transaction, error) { + return _Core.Contract.SetPoolCollateralConfiguration(&_Core.TransactOpts, poolId, collateralType, newConfig) } // SetPoolCollateralDisabledByDefault is a paid mutator transaction binding the contract method 0x4c6568b1. // // Solidity: function setPoolCollateralDisabledByDefault(uint128 poolId, bool disabled) returns() -func (_CoreGoerli *CoreGoerliTransactor) SetPoolCollateralDisabledByDefault(opts *bind.TransactOpts, poolId *big.Int, disabled bool) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "setPoolCollateralDisabledByDefault", poolId, disabled) +func (_Core *CoreTransactor) SetPoolCollateralDisabledByDefault(opts *bind.TransactOpts, poolId *big.Int, disabled bool) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "setPoolCollateralDisabledByDefault", poolId, disabled) } // SetPoolCollateralDisabledByDefault is a paid mutator transaction binding the contract method 0x4c6568b1. // // Solidity: function setPoolCollateralDisabledByDefault(uint128 poolId, bool disabled) returns() -func (_CoreGoerli *CoreGoerliSession) SetPoolCollateralDisabledByDefault(poolId *big.Int, disabled bool) (*types.Transaction, error) { - return _CoreGoerli.Contract.SetPoolCollateralDisabledByDefault(&_CoreGoerli.TransactOpts, poolId, disabled) +func (_Core *CoreSession) SetPoolCollateralDisabledByDefault(poolId *big.Int, disabled bool) (*types.Transaction, error) { + return _Core.Contract.SetPoolCollateralDisabledByDefault(&_Core.TransactOpts, poolId, disabled) } // SetPoolCollateralDisabledByDefault is a paid mutator transaction binding the contract method 0x4c6568b1. // // Solidity: function setPoolCollateralDisabledByDefault(uint128 poolId, bool disabled) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) SetPoolCollateralDisabledByDefault(poolId *big.Int, disabled bool) (*types.Transaction, error) { - return _CoreGoerli.Contract.SetPoolCollateralDisabledByDefault(&_CoreGoerli.TransactOpts, poolId, disabled) +func (_Core *CoreTransactorSession) SetPoolCollateralDisabledByDefault(poolId *big.Int, disabled bool) (*types.Transaction, error) { + return _Core.Contract.SetPoolCollateralDisabledByDefault(&_Core.TransactOpts, poolId, disabled) } // SetPoolConfiguration is a paid mutator transaction binding the contract method 0x5d8c8844. // // Solidity: function setPoolConfiguration(uint128 poolId, (uint128,uint128,int128)[] newMarketConfigurations) returns() -func (_CoreGoerli *CoreGoerliTransactor) SetPoolConfiguration(opts *bind.TransactOpts, poolId *big.Int, newMarketConfigurations []MarketConfigurationData) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "setPoolConfiguration", poolId, newMarketConfigurations) +func (_Core *CoreTransactor) SetPoolConfiguration(opts *bind.TransactOpts, poolId *big.Int, newMarketConfigurations []MarketConfigurationData) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "setPoolConfiguration", poolId, newMarketConfigurations) } // SetPoolConfiguration is a paid mutator transaction binding the contract method 0x5d8c8844. // // Solidity: function setPoolConfiguration(uint128 poolId, (uint128,uint128,int128)[] newMarketConfigurations) returns() -func (_CoreGoerli *CoreGoerliSession) SetPoolConfiguration(poolId *big.Int, newMarketConfigurations []MarketConfigurationData) (*types.Transaction, error) { - return _CoreGoerli.Contract.SetPoolConfiguration(&_CoreGoerli.TransactOpts, poolId, newMarketConfigurations) +func (_Core *CoreSession) SetPoolConfiguration(poolId *big.Int, newMarketConfigurations []MarketConfigurationData) (*types.Transaction, error) { + return _Core.Contract.SetPoolConfiguration(&_Core.TransactOpts, poolId, newMarketConfigurations) } // SetPoolConfiguration is a paid mutator transaction binding the contract method 0x5d8c8844. // // Solidity: function setPoolConfiguration(uint128 poolId, (uint128,uint128,int128)[] newMarketConfigurations) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) SetPoolConfiguration(poolId *big.Int, newMarketConfigurations []MarketConfigurationData) (*types.Transaction, error) { - return _CoreGoerli.Contract.SetPoolConfiguration(&_CoreGoerli.TransactOpts, poolId, newMarketConfigurations) +func (_Core *CoreTransactorSession) SetPoolConfiguration(poolId *big.Int, newMarketConfigurations []MarketConfigurationData) (*types.Transaction, error) { + return _Core.Contract.SetPoolConfiguration(&_Core.TransactOpts, poolId, newMarketConfigurations) } // SetPoolName is a paid mutator transaction binding the contract method 0x11e72a43. // // Solidity: function setPoolName(uint128 poolId, string name) returns() -func (_CoreGoerli *CoreGoerliTransactor) SetPoolName(opts *bind.TransactOpts, poolId *big.Int, name string) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "setPoolName", poolId, name) +func (_Core *CoreTransactor) SetPoolName(opts *bind.TransactOpts, poolId *big.Int, name string) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "setPoolName", poolId, name) } // SetPoolName is a paid mutator transaction binding the contract method 0x11e72a43. // // Solidity: function setPoolName(uint128 poolId, string name) returns() -func (_CoreGoerli *CoreGoerliSession) SetPoolName(poolId *big.Int, name string) (*types.Transaction, error) { - return _CoreGoerli.Contract.SetPoolName(&_CoreGoerli.TransactOpts, poolId, name) +func (_Core *CoreSession) SetPoolName(poolId *big.Int, name string) (*types.Transaction, error) { + return _Core.Contract.SetPoolName(&_Core.TransactOpts, poolId, name) } // SetPoolName is a paid mutator transaction binding the contract method 0x11e72a43. // // Solidity: function setPoolName(uint128 poolId, string name) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) SetPoolName(poolId *big.Int, name string) (*types.Transaction, error) { - return _CoreGoerli.Contract.SetPoolName(&_CoreGoerli.TransactOpts, poolId, name) +func (_Core *CoreTransactorSession) SetPoolName(poolId *big.Int, name string) (*types.Transaction, error) { + return _Core.Contract.SetPoolName(&_Core.TransactOpts, poolId, name) } // SetPreferredPool is a paid mutator transaction binding the contract method 0xe7098c0c. // // Solidity: function setPreferredPool(uint128 poolId) returns() -func (_CoreGoerli *CoreGoerliTransactor) SetPreferredPool(opts *bind.TransactOpts, poolId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "setPreferredPool", poolId) +func (_Core *CoreTransactor) SetPreferredPool(opts *bind.TransactOpts, poolId *big.Int) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "setPreferredPool", poolId) } // SetPreferredPool is a paid mutator transaction binding the contract method 0xe7098c0c. // // Solidity: function setPreferredPool(uint128 poolId) returns() -func (_CoreGoerli *CoreGoerliSession) SetPreferredPool(poolId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.SetPreferredPool(&_CoreGoerli.TransactOpts, poolId) +func (_Core *CoreSession) SetPreferredPool(poolId *big.Int) (*types.Transaction, error) { + return _Core.Contract.SetPreferredPool(&_Core.TransactOpts, poolId) } // SetPreferredPool is a paid mutator transaction binding the contract method 0xe7098c0c. // // Solidity: function setPreferredPool(uint128 poolId) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) SetPreferredPool(poolId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.SetPreferredPool(&_CoreGoerli.TransactOpts, poolId) +func (_Core *CoreTransactorSession) SetPreferredPool(poolId *big.Int) (*types.Transaction, error) { + return _Core.Contract.SetPreferredPool(&_Core.TransactOpts, poolId) } // SetSupportedCrossChainNetworks is a paid mutator transaction binding the contract method 0x830e23b5. // // Solidity: function setSupportedCrossChainNetworks(uint64[] supportedNetworks, uint64[] ccipSelectors) returns(uint256 numRegistered) -func (_CoreGoerli *CoreGoerliTransactor) SetSupportedCrossChainNetworks(opts *bind.TransactOpts, supportedNetworks []uint64, ccipSelectors []uint64) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "setSupportedCrossChainNetworks", supportedNetworks, ccipSelectors) +func (_Core *CoreTransactor) SetSupportedCrossChainNetworks(opts *bind.TransactOpts, supportedNetworks []uint64, ccipSelectors []uint64) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "setSupportedCrossChainNetworks", supportedNetworks, ccipSelectors) } // SetSupportedCrossChainNetworks is a paid mutator transaction binding the contract method 0x830e23b5. // // Solidity: function setSupportedCrossChainNetworks(uint64[] supportedNetworks, uint64[] ccipSelectors) returns(uint256 numRegistered) -func (_CoreGoerli *CoreGoerliSession) SetSupportedCrossChainNetworks(supportedNetworks []uint64, ccipSelectors []uint64) (*types.Transaction, error) { - return _CoreGoerli.Contract.SetSupportedCrossChainNetworks(&_CoreGoerli.TransactOpts, supportedNetworks, ccipSelectors) +func (_Core *CoreSession) SetSupportedCrossChainNetworks(supportedNetworks []uint64, ccipSelectors []uint64) (*types.Transaction, error) { + return _Core.Contract.SetSupportedCrossChainNetworks(&_Core.TransactOpts, supportedNetworks, ccipSelectors) } // SetSupportedCrossChainNetworks is a paid mutator transaction binding the contract method 0x830e23b5. // // Solidity: function setSupportedCrossChainNetworks(uint64[] supportedNetworks, uint64[] ccipSelectors) returns(uint256 numRegistered) -func (_CoreGoerli *CoreGoerliTransactorSession) SetSupportedCrossChainNetworks(supportedNetworks []uint64, ccipSelectors []uint64) (*types.Transaction, error) { - return _CoreGoerli.Contract.SetSupportedCrossChainNetworks(&_CoreGoerli.TransactOpts, supportedNetworks, ccipSelectors) +func (_Core *CoreTransactorSession) SetSupportedCrossChainNetworks(supportedNetworks []uint64, ccipSelectors []uint64) (*types.Transaction, error) { + return _Core.Contract.SetSupportedCrossChainNetworks(&_Core.TransactOpts, supportedNetworks, ccipSelectors) } // SimulateUpgradeTo is a paid mutator transaction binding the contract method 0xc7f62cda. // // Solidity: function simulateUpgradeTo(address newImplementation) returns() -func (_CoreGoerli *CoreGoerliTransactor) SimulateUpgradeTo(opts *bind.TransactOpts, newImplementation common.Address) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "simulateUpgradeTo", newImplementation) +func (_Core *CoreTransactor) SimulateUpgradeTo(opts *bind.TransactOpts, newImplementation common.Address) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "simulateUpgradeTo", newImplementation) } // SimulateUpgradeTo is a paid mutator transaction binding the contract method 0xc7f62cda. // // Solidity: function simulateUpgradeTo(address newImplementation) returns() -func (_CoreGoerli *CoreGoerliSession) SimulateUpgradeTo(newImplementation common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.SimulateUpgradeTo(&_CoreGoerli.TransactOpts, newImplementation) +func (_Core *CoreSession) SimulateUpgradeTo(newImplementation common.Address) (*types.Transaction, error) { + return _Core.Contract.SimulateUpgradeTo(&_Core.TransactOpts, newImplementation) } // SimulateUpgradeTo is a paid mutator transaction binding the contract method 0xc7f62cda. // // Solidity: function simulateUpgradeTo(address newImplementation) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) SimulateUpgradeTo(newImplementation common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.SimulateUpgradeTo(&_CoreGoerli.TransactOpts, newImplementation) +func (_Core *CoreTransactorSession) SimulateUpgradeTo(newImplementation common.Address) (*types.Transaction, error) { + return _Core.Contract.SimulateUpgradeTo(&_Core.TransactOpts, newImplementation) } // TransferCrossChain is a paid mutator transaction binding the contract method 0x340824d7. // // Solidity: function transferCrossChain(uint64 destChainId, uint256 amount) payable returns(uint256 gasTokenUsed) -func (_CoreGoerli *CoreGoerliTransactor) TransferCrossChain(opts *bind.TransactOpts, destChainId uint64, amount *big.Int) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "transferCrossChain", destChainId, amount) +func (_Core *CoreTransactor) TransferCrossChain(opts *bind.TransactOpts, destChainId uint64, amount *big.Int) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "transferCrossChain", destChainId, amount) } // TransferCrossChain is a paid mutator transaction binding the contract method 0x340824d7. // // Solidity: function transferCrossChain(uint64 destChainId, uint256 amount) payable returns(uint256 gasTokenUsed) -func (_CoreGoerli *CoreGoerliSession) TransferCrossChain(destChainId uint64, amount *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.TransferCrossChain(&_CoreGoerli.TransactOpts, destChainId, amount) +func (_Core *CoreSession) TransferCrossChain(destChainId uint64, amount *big.Int) (*types.Transaction, error) { + return _Core.Contract.TransferCrossChain(&_Core.TransactOpts, destChainId, amount) } // TransferCrossChain is a paid mutator transaction binding the contract method 0x340824d7. // // Solidity: function transferCrossChain(uint64 destChainId, uint256 amount) payable returns(uint256 gasTokenUsed) -func (_CoreGoerli *CoreGoerliTransactorSession) TransferCrossChain(destChainId uint64, amount *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.TransferCrossChain(&_CoreGoerli.TransactOpts, destChainId, amount) +func (_Core *CoreTransactorSession) TransferCrossChain(destChainId uint64, amount *big.Int) (*types.Transaction, error) { + return _Core.Contract.TransferCrossChain(&_Core.TransactOpts, destChainId, amount) } // UpdateRewards is a paid mutator transaction binding the contract method 0x645657d8. // // Solidity: function updateRewards(uint128 poolId, address collateralType, uint128 accountId) returns(uint256[], address[]) -func (_CoreGoerli *CoreGoerliTransactor) UpdateRewards(opts *bind.TransactOpts, poolId *big.Int, collateralType common.Address, accountId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "updateRewards", poolId, collateralType, accountId) +func (_Core *CoreTransactor) UpdateRewards(opts *bind.TransactOpts, poolId *big.Int, collateralType common.Address, accountId *big.Int) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "updateRewards", poolId, collateralType, accountId) } // UpdateRewards is a paid mutator transaction binding the contract method 0x645657d8. // // Solidity: function updateRewards(uint128 poolId, address collateralType, uint128 accountId) returns(uint256[], address[]) -func (_CoreGoerli *CoreGoerliSession) UpdateRewards(poolId *big.Int, collateralType common.Address, accountId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.UpdateRewards(&_CoreGoerli.TransactOpts, poolId, collateralType, accountId) +func (_Core *CoreSession) UpdateRewards(poolId *big.Int, collateralType common.Address, accountId *big.Int) (*types.Transaction, error) { + return _Core.Contract.UpdateRewards(&_Core.TransactOpts, poolId, collateralType, accountId) } // UpdateRewards is a paid mutator transaction binding the contract method 0x645657d8. // // Solidity: function updateRewards(uint128 poolId, address collateralType, uint128 accountId) returns(uint256[], address[]) -func (_CoreGoerli *CoreGoerliTransactorSession) UpdateRewards(poolId *big.Int, collateralType common.Address, accountId *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.UpdateRewards(&_CoreGoerli.TransactOpts, poolId, collateralType, accountId) +func (_Core *CoreTransactorSession) UpdateRewards(poolId *big.Int, collateralType common.Address, accountId *big.Int) (*types.Transaction, error) { + return _Core.Contract.UpdateRewards(&_Core.TransactOpts, poolId, collateralType, accountId) } // UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6. // // Solidity: function upgradeTo(address newImplementation) returns() -func (_CoreGoerli *CoreGoerliTransactor) UpgradeTo(opts *bind.TransactOpts, newImplementation common.Address) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "upgradeTo", newImplementation) +func (_Core *CoreTransactor) UpgradeTo(opts *bind.TransactOpts, newImplementation common.Address) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "upgradeTo", newImplementation) } // UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6. // // Solidity: function upgradeTo(address newImplementation) returns() -func (_CoreGoerli *CoreGoerliSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.UpgradeTo(&_CoreGoerli.TransactOpts, newImplementation) +func (_Core *CoreSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error) { + return _Core.Contract.UpgradeTo(&_Core.TransactOpts, newImplementation) } // UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6. // // Solidity: function upgradeTo(address newImplementation) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error) { - return _CoreGoerli.Contract.UpgradeTo(&_CoreGoerli.TransactOpts, newImplementation) +func (_Core *CoreTransactorSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error) { + return _Core.Contract.UpgradeTo(&_Core.TransactOpts, newImplementation) } // Withdraw is a paid mutator transaction binding the contract method 0x95997c51. // // Solidity: function withdraw(uint128 accountId, address collateralType, uint256 tokenAmount) returns() -func (_CoreGoerli *CoreGoerliTransactor) Withdraw(opts *bind.TransactOpts, accountId *big.Int, collateralType common.Address, tokenAmount *big.Int) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "withdraw", accountId, collateralType, tokenAmount) +func (_Core *CoreTransactor) Withdraw(opts *bind.TransactOpts, accountId *big.Int, collateralType common.Address, tokenAmount *big.Int) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "withdraw", accountId, collateralType, tokenAmount) } // Withdraw is a paid mutator transaction binding the contract method 0x95997c51. // // Solidity: function withdraw(uint128 accountId, address collateralType, uint256 tokenAmount) returns() -func (_CoreGoerli *CoreGoerliSession) Withdraw(accountId *big.Int, collateralType common.Address, tokenAmount *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.Withdraw(&_CoreGoerli.TransactOpts, accountId, collateralType, tokenAmount) +func (_Core *CoreSession) Withdraw(accountId *big.Int, collateralType common.Address, tokenAmount *big.Int) (*types.Transaction, error) { + return _Core.Contract.Withdraw(&_Core.TransactOpts, accountId, collateralType, tokenAmount) } // Withdraw is a paid mutator transaction binding the contract method 0x95997c51. // // Solidity: function withdraw(uint128 accountId, address collateralType, uint256 tokenAmount) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) Withdraw(accountId *big.Int, collateralType common.Address, tokenAmount *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.Withdraw(&_CoreGoerli.TransactOpts, accountId, collateralType, tokenAmount) +func (_Core *CoreTransactorSession) Withdraw(accountId *big.Int, collateralType common.Address, tokenAmount *big.Int) (*types.Transaction, error) { + return _Core.Contract.Withdraw(&_Core.TransactOpts, accountId, collateralType, tokenAmount) } // WithdrawMarketCollateral is a paid mutator transaction binding the contract method 0xa3aa8b51. // // Solidity: function withdrawMarketCollateral(uint128 marketId, address collateralType, uint256 tokenAmount) returns() -func (_CoreGoerli *CoreGoerliTransactor) WithdrawMarketCollateral(opts *bind.TransactOpts, marketId *big.Int, collateralType common.Address, tokenAmount *big.Int) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "withdrawMarketCollateral", marketId, collateralType, tokenAmount) +func (_Core *CoreTransactor) WithdrawMarketCollateral(opts *bind.TransactOpts, marketId *big.Int, collateralType common.Address, tokenAmount *big.Int) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "withdrawMarketCollateral", marketId, collateralType, tokenAmount) } // WithdrawMarketCollateral is a paid mutator transaction binding the contract method 0xa3aa8b51. // // Solidity: function withdrawMarketCollateral(uint128 marketId, address collateralType, uint256 tokenAmount) returns() -func (_CoreGoerli *CoreGoerliSession) WithdrawMarketCollateral(marketId *big.Int, collateralType common.Address, tokenAmount *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.WithdrawMarketCollateral(&_CoreGoerli.TransactOpts, marketId, collateralType, tokenAmount) +func (_Core *CoreSession) WithdrawMarketCollateral(marketId *big.Int, collateralType common.Address, tokenAmount *big.Int) (*types.Transaction, error) { + return _Core.Contract.WithdrawMarketCollateral(&_Core.TransactOpts, marketId, collateralType, tokenAmount) } // WithdrawMarketCollateral is a paid mutator transaction binding the contract method 0xa3aa8b51. // // Solidity: function withdrawMarketCollateral(uint128 marketId, address collateralType, uint256 tokenAmount) returns() -func (_CoreGoerli *CoreGoerliTransactorSession) WithdrawMarketCollateral(marketId *big.Int, collateralType common.Address, tokenAmount *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.WithdrawMarketCollateral(&_CoreGoerli.TransactOpts, marketId, collateralType, tokenAmount) +func (_Core *CoreTransactorSession) WithdrawMarketCollateral(marketId *big.Int, collateralType common.Address, tokenAmount *big.Int) (*types.Transaction, error) { + return _Core.Contract.WithdrawMarketCollateral(&_Core.TransactOpts, marketId, collateralType, tokenAmount) } // WithdrawMarketUsd is a paid mutator transaction binding the contract method 0x140a7cfe. // // Solidity: function withdrawMarketUsd(uint128 marketId, address target, uint256 amount) returns(uint256 feeAmount) -func (_CoreGoerli *CoreGoerliTransactor) WithdrawMarketUsd(opts *bind.TransactOpts, marketId *big.Int, target common.Address, amount *big.Int) (*types.Transaction, error) { - return _CoreGoerli.contract.Transact(opts, "withdrawMarketUsd", marketId, target, amount) +func (_Core *CoreTransactor) WithdrawMarketUsd(opts *bind.TransactOpts, marketId *big.Int, target common.Address, amount *big.Int) (*types.Transaction, error) { + return _Core.contract.Transact(opts, "withdrawMarketUsd", marketId, target, amount) } // WithdrawMarketUsd is a paid mutator transaction binding the contract method 0x140a7cfe. // // Solidity: function withdrawMarketUsd(uint128 marketId, address target, uint256 amount) returns(uint256 feeAmount) -func (_CoreGoerli *CoreGoerliSession) WithdrawMarketUsd(marketId *big.Int, target common.Address, amount *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.WithdrawMarketUsd(&_CoreGoerli.TransactOpts, marketId, target, amount) +func (_Core *CoreSession) WithdrawMarketUsd(marketId *big.Int, target common.Address, amount *big.Int) (*types.Transaction, error) { + return _Core.Contract.WithdrawMarketUsd(&_Core.TransactOpts, marketId, target, amount) } // WithdrawMarketUsd is a paid mutator transaction binding the contract method 0x140a7cfe. // // Solidity: function withdrawMarketUsd(uint128 marketId, address target, uint256 amount) returns(uint256 feeAmount) -func (_CoreGoerli *CoreGoerliTransactorSession) WithdrawMarketUsd(marketId *big.Int, target common.Address, amount *big.Int) (*types.Transaction, error) { - return _CoreGoerli.Contract.WithdrawMarketUsd(&_CoreGoerli.TransactOpts, marketId, target, amount) +func (_Core *CoreTransactorSession) WithdrawMarketUsd(marketId *big.Int, target common.Address, amount *big.Int) (*types.Transaction, error) { + return _Core.Contract.WithdrawMarketUsd(&_Core.TransactOpts, marketId, target, amount) } -// CoreGoerliAccountCreatedIterator is returned from FilterAccountCreated and is used to iterate over the raw logs and unpacked data for AccountCreated events raised by the CoreGoerli contract. -type CoreGoerliAccountCreatedIterator struct { - Event *CoreGoerliAccountCreated // Event containing the contract specifics and raw log +// CoreAccountCreatedIterator is returned from FilterAccountCreated and is used to iterate over the raw logs and unpacked data for AccountCreated events raised by the Core contract. +type CoreAccountCreatedIterator struct { + Event *CoreAccountCreated // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -3558,7 +3547,7 @@ type CoreGoerliAccountCreatedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliAccountCreatedIterator) Next() bool { +func (it *CoreAccountCreatedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -3567,7 +3556,7 @@ func (it *CoreGoerliAccountCreatedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliAccountCreated) + it.Event = new(CoreAccountCreated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -3582,7 +3571,7 @@ func (it *CoreGoerliAccountCreatedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliAccountCreated) + it.Event = new(CoreAccountCreated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -3598,19 +3587,19 @@ func (it *CoreGoerliAccountCreatedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliAccountCreatedIterator) Error() error { +func (it *CoreAccountCreatedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliAccountCreatedIterator) Close() error { +func (it *CoreAccountCreatedIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliAccountCreated represents a AccountCreated event raised by the CoreGoerli contract. -type CoreGoerliAccountCreated struct { +// CoreAccountCreated represents a AccountCreated event raised by the Core contract. +type CoreAccountCreated struct { AccountId *big.Int Owner common.Address Raw types.Log // Blockchain specific contextual infos @@ -3619,7 +3608,7 @@ type CoreGoerliAccountCreated struct { // FilterAccountCreated is a free log retrieval operation binding the contract event 0xa9e04d307e860938fa63307df8b8090e365276e59fcca12ed55656c25e538019. // // Solidity: event AccountCreated(uint128 indexed accountId, address indexed owner) -func (_CoreGoerli *CoreGoerliFilterer) FilterAccountCreated(opts *bind.FilterOpts, accountId []*big.Int, owner []common.Address) (*CoreGoerliAccountCreatedIterator, error) { +func (_Core *CoreFilterer) FilterAccountCreated(opts *bind.FilterOpts, accountId []*big.Int, owner []common.Address) (*CoreAccountCreatedIterator, error) { var accountIdRule []interface{} for _, accountIdItem := range accountId { @@ -3630,17 +3619,17 @@ func (_CoreGoerli *CoreGoerliFilterer) FilterAccountCreated(opts *bind.FilterOpt ownerRule = append(ownerRule, ownerItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "AccountCreated", accountIdRule, ownerRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "AccountCreated", accountIdRule, ownerRule) if err != nil { return nil, err } - return &CoreGoerliAccountCreatedIterator{contract: _CoreGoerli.contract, event: "AccountCreated", logs: logs, sub: sub}, nil + return &CoreAccountCreatedIterator{contract: _Core.contract, event: "AccountCreated", logs: logs, sub: sub}, nil } // WatchAccountCreated is a free log subscription operation binding the contract event 0xa9e04d307e860938fa63307df8b8090e365276e59fcca12ed55656c25e538019. // // Solidity: event AccountCreated(uint128 indexed accountId, address indexed owner) -func (_CoreGoerli *CoreGoerliFilterer) WatchAccountCreated(opts *bind.WatchOpts, sink chan<- *CoreGoerliAccountCreated, accountId []*big.Int, owner []common.Address) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchAccountCreated(opts *bind.WatchOpts, sink chan<- *CoreAccountCreated, accountId []*big.Int, owner []common.Address) (event.Subscription, error) { var accountIdRule []interface{} for _, accountIdItem := range accountId { @@ -3651,7 +3640,7 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchAccountCreated(opts *bind.WatchOpts, ownerRule = append(ownerRule, ownerItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "AccountCreated", accountIdRule, ownerRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "AccountCreated", accountIdRule, ownerRule) if err != nil { return nil, err } @@ -3661,8 +3650,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchAccountCreated(opts *bind.WatchOpts, select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliAccountCreated) - if err := _CoreGoerli.contract.UnpackLog(event, "AccountCreated", log); err != nil { + event := new(CoreAccountCreated) + if err := _Core.contract.UnpackLog(event, "AccountCreated", log); err != nil { return err } event.Raw = log @@ -3686,18 +3675,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchAccountCreated(opts *bind.WatchOpts, // ParseAccountCreated is a log parse operation binding the contract event 0xa9e04d307e860938fa63307df8b8090e365276e59fcca12ed55656c25e538019. // // Solidity: event AccountCreated(uint128 indexed accountId, address indexed owner) -func (_CoreGoerli *CoreGoerliFilterer) ParseAccountCreated(log types.Log) (*CoreGoerliAccountCreated, error) { - event := new(CoreGoerliAccountCreated) - if err := _CoreGoerli.contract.UnpackLog(event, "AccountCreated", log); err != nil { +func (_Core *CoreFilterer) ParseAccountCreated(log types.Log) (*CoreAccountCreated, error) { + event := new(CoreAccountCreated) + if err := _Core.contract.UnpackLog(event, "AccountCreated", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliAssociatedSystemSetIterator is returned from FilterAssociatedSystemSet and is used to iterate over the raw logs and unpacked data for AssociatedSystemSet events raised by the CoreGoerli contract. -type CoreGoerliAssociatedSystemSetIterator struct { - Event *CoreGoerliAssociatedSystemSet // Event containing the contract specifics and raw log +// CoreAssociatedSystemSetIterator is returned from FilterAssociatedSystemSet and is used to iterate over the raw logs and unpacked data for AssociatedSystemSet events raised by the Core contract. +type CoreAssociatedSystemSetIterator struct { + Event *CoreAssociatedSystemSet // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -3711,7 +3700,7 @@ type CoreGoerliAssociatedSystemSetIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliAssociatedSystemSetIterator) Next() bool { +func (it *CoreAssociatedSystemSetIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -3720,7 +3709,7 @@ func (it *CoreGoerliAssociatedSystemSetIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliAssociatedSystemSet) + it.Event = new(CoreAssociatedSystemSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -3735,7 +3724,7 @@ func (it *CoreGoerliAssociatedSystemSetIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliAssociatedSystemSet) + it.Event = new(CoreAssociatedSystemSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -3751,19 +3740,19 @@ func (it *CoreGoerliAssociatedSystemSetIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliAssociatedSystemSetIterator) Error() error { +func (it *CoreAssociatedSystemSetIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliAssociatedSystemSetIterator) Close() error { +func (it *CoreAssociatedSystemSetIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliAssociatedSystemSet represents a AssociatedSystemSet event raised by the CoreGoerli contract. -type CoreGoerliAssociatedSystemSet struct { +// CoreAssociatedSystemSet represents a AssociatedSystemSet event raised by the Core contract. +type CoreAssociatedSystemSet struct { Kind [32]byte Id [32]byte Proxy common.Address @@ -3774,7 +3763,7 @@ type CoreGoerliAssociatedSystemSet struct { // FilterAssociatedSystemSet is a free log retrieval operation binding the contract event 0xc8551a5a03a7b06d5d20159b3b8839429a7aefab4bf3d020f1b65fa903ccb3d2. // // Solidity: event AssociatedSystemSet(bytes32 indexed kind, bytes32 indexed id, address proxy, address impl) -func (_CoreGoerli *CoreGoerliFilterer) FilterAssociatedSystemSet(opts *bind.FilterOpts, kind [][32]byte, id [][32]byte) (*CoreGoerliAssociatedSystemSetIterator, error) { +func (_Core *CoreFilterer) FilterAssociatedSystemSet(opts *bind.FilterOpts, kind [][32]byte, id [][32]byte) (*CoreAssociatedSystemSetIterator, error) { var kindRule []interface{} for _, kindItem := range kind { @@ -3785,17 +3774,17 @@ func (_CoreGoerli *CoreGoerliFilterer) FilterAssociatedSystemSet(opts *bind.Filt idRule = append(idRule, idItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "AssociatedSystemSet", kindRule, idRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "AssociatedSystemSet", kindRule, idRule) if err != nil { return nil, err } - return &CoreGoerliAssociatedSystemSetIterator{contract: _CoreGoerli.contract, event: "AssociatedSystemSet", logs: logs, sub: sub}, nil + return &CoreAssociatedSystemSetIterator{contract: _Core.contract, event: "AssociatedSystemSet", logs: logs, sub: sub}, nil } // WatchAssociatedSystemSet is a free log subscription operation binding the contract event 0xc8551a5a03a7b06d5d20159b3b8839429a7aefab4bf3d020f1b65fa903ccb3d2. // // Solidity: event AssociatedSystemSet(bytes32 indexed kind, bytes32 indexed id, address proxy, address impl) -func (_CoreGoerli *CoreGoerliFilterer) WatchAssociatedSystemSet(opts *bind.WatchOpts, sink chan<- *CoreGoerliAssociatedSystemSet, kind [][32]byte, id [][32]byte) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchAssociatedSystemSet(opts *bind.WatchOpts, sink chan<- *CoreAssociatedSystemSet, kind [][32]byte, id [][32]byte) (event.Subscription, error) { var kindRule []interface{} for _, kindItem := range kind { @@ -3806,7 +3795,7 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchAssociatedSystemSet(opts *bind.Watch idRule = append(idRule, idItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "AssociatedSystemSet", kindRule, idRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "AssociatedSystemSet", kindRule, idRule) if err != nil { return nil, err } @@ -3816,8 +3805,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchAssociatedSystemSet(opts *bind.Watch select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliAssociatedSystemSet) - if err := _CoreGoerli.contract.UnpackLog(event, "AssociatedSystemSet", log); err != nil { + event := new(CoreAssociatedSystemSet) + if err := _Core.contract.UnpackLog(event, "AssociatedSystemSet", log); err != nil { return err } event.Raw = log @@ -3841,18 +3830,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchAssociatedSystemSet(opts *bind.Watch // ParseAssociatedSystemSet is a log parse operation binding the contract event 0xc8551a5a03a7b06d5d20159b3b8839429a7aefab4bf3d020f1b65fa903ccb3d2. // // Solidity: event AssociatedSystemSet(bytes32 indexed kind, bytes32 indexed id, address proxy, address impl) -func (_CoreGoerli *CoreGoerliFilterer) ParseAssociatedSystemSet(log types.Log) (*CoreGoerliAssociatedSystemSet, error) { - event := new(CoreGoerliAssociatedSystemSet) - if err := _CoreGoerli.contract.UnpackLog(event, "AssociatedSystemSet", log); err != nil { +func (_Core *CoreFilterer) ParseAssociatedSystemSet(log types.Log) (*CoreAssociatedSystemSet, error) { + event := new(CoreAssociatedSystemSet) + if err := _Core.contract.UnpackLog(event, "AssociatedSystemSet", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliCollateralConfiguredIterator is returned from FilterCollateralConfigured and is used to iterate over the raw logs and unpacked data for CollateralConfigured events raised by the CoreGoerli contract. -type CoreGoerliCollateralConfiguredIterator struct { - Event *CoreGoerliCollateralConfigured // Event containing the contract specifics and raw log +// CoreCollateralConfiguredIterator is returned from FilterCollateralConfigured and is used to iterate over the raw logs and unpacked data for CollateralConfigured events raised by the Core contract. +type CoreCollateralConfiguredIterator struct { + Event *CoreCollateralConfigured // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -3866,7 +3855,7 @@ type CoreGoerliCollateralConfiguredIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliCollateralConfiguredIterator) Next() bool { +func (it *CoreCollateralConfiguredIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -3875,7 +3864,7 @@ func (it *CoreGoerliCollateralConfiguredIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliCollateralConfigured) + it.Event = new(CoreCollateralConfigured) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -3890,7 +3879,7 @@ func (it *CoreGoerliCollateralConfiguredIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliCollateralConfigured) + it.Event = new(CoreCollateralConfigured) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -3906,19 +3895,19 @@ func (it *CoreGoerliCollateralConfiguredIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliCollateralConfiguredIterator) Error() error { +func (it *CoreCollateralConfiguredIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliCollateralConfiguredIterator) Close() error { +func (it *CoreCollateralConfiguredIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliCollateralConfigured represents a CollateralConfigured event raised by the CoreGoerli contract. -type CoreGoerliCollateralConfigured struct { +// CoreCollateralConfigured represents a CollateralConfigured event raised by the Core contract. +type CoreCollateralConfigured struct { CollateralType common.Address Config CollateralConfigurationData Raw types.Log // Blockchain specific contextual infos @@ -3927,31 +3916,31 @@ type CoreGoerliCollateralConfigured struct { // FilterCollateralConfigured is a free log retrieval operation binding the contract event 0xefc23317f58afd6b22480bd22174cc7da0913bce25c03d9859216dacddebe6fe. // // Solidity: event CollateralConfigured(address indexed collateralType, (bool,uint256,uint256,uint256,bytes32,address,uint256) config) -func (_CoreGoerli *CoreGoerliFilterer) FilterCollateralConfigured(opts *bind.FilterOpts, collateralType []common.Address) (*CoreGoerliCollateralConfiguredIterator, error) { +func (_Core *CoreFilterer) FilterCollateralConfigured(opts *bind.FilterOpts, collateralType []common.Address) (*CoreCollateralConfiguredIterator, error) { var collateralTypeRule []interface{} for _, collateralTypeItem := range collateralType { collateralTypeRule = append(collateralTypeRule, collateralTypeItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "CollateralConfigured", collateralTypeRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "CollateralConfigured", collateralTypeRule) if err != nil { return nil, err } - return &CoreGoerliCollateralConfiguredIterator{contract: _CoreGoerli.contract, event: "CollateralConfigured", logs: logs, sub: sub}, nil + return &CoreCollateralConfiguredIterator{contract: _Core.contract, event: "CollateralConfigured", logs: logs, sub: sub}, nil } // WatchCollateralConfigured is a free log subscription operation binding the contract event 0xefc23317f58afd6b22480bd22174cc7da0913bce25c03d9859216dacddebe6fe. // // Solidity: event CollateralConfigured(address indexed collateralType, (bool,uint256,uint256,uint256,bytes32,address,uint256) config) -func (_CoreGoerli *CoreGoerliFilterer) WatchCollateralConfigured(opts *bind.WatchOpts, sink chan<- *CoreGoerliCollateralConfigured, collateralType []common.Address) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchCollateralConfigured(opts *bind.WatchOpts, sink chan<- *CoreCollateralConfigured, collateralType []common.Address) (event.Subscription, error) { var collateralTypeRule []interface{} for _, collateralTypeItem := range collateralType { collateralTypeRule = append(collateralTypeRule, collateralTypeItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "CollateralConfigured", collateralTypeRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "CollateralConfigured", collateralTypeRule) if err != nil { return nil, err } @@ -3961,8 +3950,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchCollateralConfigured(opts *bind.Watc select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliCollateralConfigured) - if err := _CoreGoerli.contract.UnpackLog(event, "CollateralConfigured", log); err != nil { + event := new(CoreCollateralConfigured) + if err := _Core.contract.UnpackLog(event, "CollateralConfigured", log); err != nil { return err } event.Raw = log @@ -3986,18 +3975,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchCollateralConfigured(opts *bind.Watc // ParseCollateralConfigured is a log parse operation binding the contract event 0xefc23317f58afd6b22480bd22174cc7da0913bce25c03d9859216dacddebe6fe. // // Solidity: event CollateralConfigured(address indexed collateralType, (bool,uint256,uint256,uint256,bytes32,address,uint256) config) -func (_CoreGoerli *CoreGoerliFilterer) ParseCollateralConfigured(log types.Log) (*CoreGoerliCollateralConfigured, error) { - event := new(CoreGoerliCollateralConfigured) - if err := _CoreGoerli.contract.UnpackLog(event, "CollateralConfigured", log); err != nil { +func (_Core *CoreFilterer) ParseCollateralConfigured(log types.Log) (*CoreCollateralConfigured, error) { + event := new(CoreCollateralConfigured) + if err := _Core.contract.UnpackLog(event, "CollateralConfigured", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliCollateralLockCreatedIterator is returned from FilterCollateralLockCreated and is used to iterate over the raw logs and unpacked data for CollateralLockCreated events raised by the CoreGoerli contract. -type CoreGoerliCollateralLockCreatedIterator struct { - Event *CoreGoerliCollateralLockCreated // Event containing the contract specifics and raw log +// CoreCollateralLockCreatedIterator is returned from FilterCollateralLockCreated and is used to iterate over the raw logs and unpacked data for CollateralLockCreated events raised by the Core contract. +type CoreCollateralLockCreatedIterator struct { + Event *CoreCollateralLockCreated // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -4011,7 +4000,7 @@ type CoreGoerliCollateralLockCreatedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliCollateralLockCreatedIterator) Next() bool { +func (it *CoreCollateralLockCreatedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -4020,7 +4009,7 @@ func (it *CoreGoerliCollateralLockCreatedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliCollateralLockCreated) + it.Event = new(CoreCollateralLockCreated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -4035,7 +4024,7 @@ func (it *CoreGoerliCollateralLockCreatedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliCollateralLockCreated) + it.Event = new(CoreCollateralLockCreated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -4051,19 +4040,19 @@ func (it *CoreGoerliCollateralLockCreatedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliCollateralLockCreatedIterator) Error() error { +func (it *CoreCollateralLockCreatedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliCollateralLockCreatedIterator) Close() error { +func (it *CoreCollateralLockCreatedIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliCollateralLockCreated represents a CollateralLockCreated event raised by the CoreGoerli contract. -type CoreGoerliCollateralLockCreated struct { +// CoreCollateralLockCreated represents a CollateralLockCreated event raised by the Core contract. +type CoreCollateralLockCreated struct { AccountId *big.Int CollateralType common.Address TokenAmount *big.Int @@ -4074,7 +4063,7 @@ type CoreGoerliCollateralLockCreated struct { // FilterCollateralLockCreated is a free log retrieval operation binding the contract event 0x8a78446a234220d3ee3f46aa6ea1ea5bc438bd153398ebcbd171843744b452a6. // // Solidity: event CollateralLockCreated(uint128 indexed accountId, address indexed collateralType, uint256 tokenAmount, uint64 expireTimestamp) -func (_CoreGoerli *CoreGoerliFilterer) FilterCollateralLockCreated(opts *bind.FilterOpts, accountId []*big.Int, collateralType []common.Address) (*CoreGoerliCollateralLockCreatedIterator, error) { +func (_Core *CoreFilterer) FilterCollateralLockCreated(opts *bind.FilterOpts, accountId []*big.Int, collateralType []common.Address) (*CoreCollateralLockCreatedIterator, error) { var accountIdRule []interface{} for _, accountIdItem := range accountId { @@ -4085,17 +4074,17 @@ func (_CoreGoerli *CoreGoerliFilterer) FilterCollateralLockCreated(opts *bind.Fi collateralTypeRule = append(collateralTypeRule, collateralTypeItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "CollateralLockCreated", accountIdRule, collateralTypeRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "CollateralLockCreated", accountIdRule, collateralTypeRule) if err != nil { return nil, err } - return &CoreGoerliCollateralLockCreatedIterator{contract: _CoreGoerli.contract, event: "CollateralLockCreated", logs: logs, sub: sub}, nil + return &CoreCollateralLockCreatedIterator{contract: _Core.contract, event: "CollateralLockCreated", logs: logs, sub: sub}, nil } // WatchCollateralLockCreated is a free log subscription operation binding the contract event 0x8a78446a234220d3ee3f46aa6ea1ea5bc438bd153398ebcbd171843744b452a6. // // Solidity: event CollateralLockCreated(uint128 indexed accountId, address indexed collateralType, uint256 tokenAmount, uint64 expireTimestamp) -func (_CoreGoerli *CoreGoerliFilterer) WatchCollateralLockCreated(opts *bind.WatchOpts, sink chan<- *CoreGoerliCollateralLockCreated, accountId []*big.Int, collateralType []common.Address) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchCollateralLockCreated(opts *bind.WatchOpts, sink chan<- *CoreCollateralLockCreated, accountId []*big.Int, collateralType []common.Address) (event.Subscription, error) { var accountIdRule []interface{} for _, accountIdItem := range accountId { @@ -4106,7 +4095,7 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchCollateralLockCreated(opts *bind.Wat collateralTypeRule = append(collateralTypeRule, collateralTypeItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "CollateralLockCreated", accountIdRule, collateralTypeRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "CollateralLockCreated", accountIdRule, collateralTypeRule) if err != nil { return nil, err } @@ -4116,8 +4105,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchCollateralLockCreated(opts *bind.Wat select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliCollateralLockCreated) - if err := _CoreGoerli.contract.UnpackLog(event, "CollateralLockCreated", log); err != nil { + event := new(CoreCollateralLockCreated) + if err := _Core.contract.UnpackLog(event, "CollateralLockCreated", log); err != nil { return err } event.Raw = log @@ -4141,18 +4130,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchCollateralLockCreated(opts *bind.Wat // ParseCollateralLockCreated is a log parse operation binding the contract event 0x8a78446a234220d3ee3f46aa6ea1ea5bc438bd153398ebcbd171843744b452a6. // // Solidity: event CollateralLockCreated(uint128 indexed accountId, address indexed collateralType, uint256 tokenAmount, uint64 expireTimestamp) -func (_CoreGoerli *CoreGoerliFilterer) ParseCollateralLockCreated(log types.Log) (*CoreGoerliCollateralLockCreated, error) { - event := new(CoreGoerliCollateralLockCreated) - if err := _CoreGoerli.contract.UnpackLog(event, "CollateralLockCreated", log); err != nil { +func (_Core *CoreFilterer) ParseCollateralLockCreated(log types.Log) (*CoreCollateralLockCreated, error) { + event := new(CoreCollateralLockCreated) + if err := _Core.contract.UnpackLog(event, "CollateralLockCreated", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliCollateralLockExpiredIterator is returned from FilterCollateralLockExpired and is used to iterate over the raw logs and unpacked data for CollateralLockExpired events raised by the CoreGoerli contract. -type CoreGoerliCollateralLockExpiredIterator struct { - Event *CoreGoerliCollateralLockExpired // Event containing the contract specifics and raw log +// CoreCollateralLockExpiredIterator is returned from FilterCollateralLockExpired and is used to iterate over the raw logs and unpacked data for CollateralLockExpired events raised by the Core contract. +type CoreCollateralLockExpiredIterator struct { + Event *CoreCollateralLockExpired // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -4166,7 +4155,7 @@ type CoreGoerliCollateralLockExpiredIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliCollateralLockExpiredIterator) Next() bool { +func (it *CoreCollateralLockExpiredIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -4175,7 +4164,7 @@ func (it *CoreGoerliCollateralLockExpiredIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliCollateralLockExpired) + it.Event = new(CoreCollateralLockExpired) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -4190,7 +4179,7 @@ func (it *CoreGoerliCollateralLockExpiredIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliCollateralLockExpired) + it.Event = new(CoreCollateralLockExpired) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -4206,19 +4195,19 @@ func (it *CoreGoerliCollateralLockExpiredIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliCollateralLockExpiredIterator) Error() error { +func (it *CoreCollateralLockExpiredIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliCollateralLockExpiredIterator) Close() error { +func (it *CoreCollateralLockExpiredIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliCollateralLockExpired represents a CollateralLockExpired event raised by the CoreGoerli contract. -type CoreGoerliCollateralLockExpired struct { +// CoreCollateralLockExpired represents a CollateralLockExpired event raised by the Core contract. +type CoreCollateralLockExpired struct { AccountId *big.Int CollateralType common.Address TokenAmount *big.Int @@ -4229,7 +4218,7 @@ type CoreGoerliCollateralLockExpired struct { // FilterCollateralLockExpired is a free log retrieval operation binding the contract event 0xc5e2c7afc4e54d998977e11260a0bfc0ad5678a3a8b6628162f9d4e642d7f160. // // Solidity: event CollateralLockExpired(uint128 indexed accountId, address indexed collateralType, uint256 tokenAmount, uint64 expireTimestamp) -func (_CoreGoerli *CoreGoerliFilterer) FilterCollateralLockExpired(opts *bind.FilterOpts, accountId []*big.Int, collateralType []common.Address) (*CoreGoerliCollateralLockExpiredIterator, error) { +func (_Core *CoreFilterer) FilterCollateralLockExpired(opts *bind.FilterOpts, accountId []*big.Int, collateralType []common.Address) (*CoreCollateralLockExpiredIterator, error) { var accountIdRule []interface{} for _, accountIdItem := range accountId { @@ -4240,17 +4229,17 @@ func (_CoreGoerli *CoreGoerliFilterer) FilterCollateralLockExpired(opts *bind.Fi collateralTypeRule = append(collateralTypeRule, collateralTypeItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "CollateralLockExpired", accountIdRule, collateralTypeRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "CollateralLockExpired", accountIdRule, collateralTypeRule) if err != nil { return nil, err } - return &CoreGoerliCollateralLockExpiredIterator{contract: _CoreGoerli.contract, event: "CollateralLockExpired", logs: logs, sub: sub}, nil + return &CoreCollateralLockExpiredIterator{contract: _Core.contract, event: "CollateralLockExpired", logs: logs, sub: sub}, nil } // WatchCollateralLockExpired is a free log subscription operation binding the contract event 0xc5e2c7afc4e54d998977e11260a0bfc0ad5678a3a8b6628162f9d4e642d7f160. // // Solidity: event CollateralLockExpired(uint128 indexed accountId, address indexed collateralType, uint256 tokenAmount, uint64 expireTimestamp) -func (_CoreGoerli *CoreGoerliFilterer) WatchCollateralLockExpired(opts *bind.WatchOpts, sink chan<- *CoreGoerliCollateralLockExpired, accountId []*big.Int, collateralType []common.Address) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchCollateralLockExpired(opts *bind.WatchOpts, sink chan<- *CoreCollateralLockExpired, accountId []*big.Int, collateralType []common.Address) (event.Subscription, error) { var accountIdRule []interface{} for _, accountIdItem := range accountId { @@ -4261,7 +4250,7 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchCollateralLockExpired(opts *bind.Wat collateralTypeRule = append(collateralTypeRule, collateralTypeItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "CollateralLockExpired", accountIdRule, collateralTypeRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "CollateralLockExpired", accountIdRule, collateralTypeRule) if err != nil { return nil, err } @@ -4271,8 +4260,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchCollateralLockExpired(opts *bind.Wat select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliCollateralLockExpired) - if err := _CoreGoerli.contract.UnpackLog(event, "CollateralLockExpired", log); err != nil { + event := new(CoreCollateralLockExpired) + if err := _Core.contract.UnpackLog(event, "CollateralLockExpired", log); err != nil { return err } event.Raw = log @@ -4296,18 +4285,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchCollateralLockExpired(opts *bind.Wat // ParseCollateralLockExpired is a log parse operation binding the contract event 0xc5e2c7afc4e54d998977e11260a0bfc0ad5678a3a8b6628162f9d4e642d7f160. // // Solidity: event CollateralLockExpired(uint128 indexed accountId, address indexed collateralType, uint256 tokenAmount, uint64 expireTimestamp) -func (_CoreGoerli *CoreGoerliFilterer) ParseCollateralLockExpired(log types.Log) (*CoreGoerliCollateralLockExpired, error) { - event := new(CoreGoerliCollateralLockExpired) - if err := _CoreGoerli.contract.UnpackLog(event, "CollateralLockExpired", log); err != nil { +func (_Core *CoreFilterer) ParseCollateralLockExpired(log types.Log) (*CoreCollateralLockExpired, error) { + event := new(CoreCollateralLockExpired) + if err := _Core.contract.UnpackLog(event, "CollateralLockExpired", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliDebtAssociatedIterator is returned from FilterDebtAssociated and is used to iterate over the raw logs and unpacked data for DebtAssociated events raised by the CoreGoerli contract. -type CoreGoerliDebtAssociatedIterator struct { - Event *CoreGoerliDebtAssociated // Event containing the contract specifics and raw log +// CoreDebtAssociatedIterator is returned from FilterDebtAssociated and is used to iterate over the raw logs and unpacked data for DebtAssociated events raised by the Core contract. +type CoreDebtAssociatedIterator struct { + Event *CoreDebtAssociated // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -4321,7 +4310,7 @@ type CoreGoerliDebtAssociatedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliDebtAssociatedIterator) Next() bool { +func (it *CoreDebtAssociatedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -4330,7 +4319,7 @@ func (it *CoreGoerliDebtAssociatedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliDebtAssociated) + it.Event = new(CoreDebtAssociated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -4345,7 +4334,7 @@ func (it *CoreGoerliDebtAssociatedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliDebtAssociated) + it.Event = new(CoreDebtAssociated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -4361,19 +4350,19 @@ func (it *CoreGoerliDebtAssociatedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliDebtAssociatedIterator) Error() error { +func (it *CoreDebtAssociatedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliDebtAssociatedIterator) Close() error { +func (it *CoreDebtAssociatedIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliDebtAssociated represents a DebtAssociated event raised by the CoreGoerli contract. -type CoreGoerliDebtAssociated struct { +// CoreDebtAssociated represents a DebtAssociated event raised by the Core contract. +type CoreDebtAssociated struct { MarketId *big.Int PoolId *big.Int CollateralType common.Address @@ -4386,7 +4375,7 @@ type CoreGoerliDebtAssociated struct { // FilterDebtAssociated is a free log retrieval operation binding the contract event 0xb03bc7530b5650601d2c8bc86c81a45b6b50b0099defd3f17a6bdb48660180ad. // // Solidity: event DebtAssociated(uint128 indexed marketId, uint128 indexed poolId, address indexed collateralType, uint128 accountId, uint256 amount, int256 updatedDebt) -func (_CoreGoerli *CoreGoerliFilterer) FilterDebtAssociated(opts *bind.FilterOpts, marketId []*big.Int, poolId []*big.Int, collateralType []common.Address) (*CoreGoerliDebtAssociatedIterator, error) { +func (_Core *CoreFilterer) FilterDebtAssociated(opts *bind.FilterOpts, marketId []*big.Int, poolId []*big.Int, collateralType []common.Address) (*CoreDebtAssociatedIterator, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { @@ -4401,17 +4390,17 @@ func (_CoreGoerli *CoreGoerliFilterer) FilterDebtAssociated(opts *bind.FilterOpt collateralTypeRule = append(collateralTypeRule, collateralTypeItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "DebtAssociated", marketIdRule, poolIdRule, collateralTypeRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "DebtAssociated", marketIdRule, poolIdRule, collateralTypeRule) if err != nil { return nil, err } - return &CoreGoerliDebtAssociatedIterator{contract: _CoreGoerli.contract, event: "DebtAssociated", logs: logs, sub: sub}, nil + return &CoreDebtAssociatedIterator{contract: _Core.contract, event: "DebtAssociated", logs: logs, sub: sub}, nil } // WatchDebtAssociated is a free log subscription operation binding the contract event 0xb03bc7530b5650601d2c8bc86c81a45b6b50b0099defd3f17a6bdb48660180ad. // // Solidity: event DebtAssociated(uint128 indexed marketId, uint128 indexed poolId, address indexed collateralType, uint128 accountId, uint256 amount, int256 updatedDebt) -func (_CoreGoerli *CoreGoerliFilterer) WatchDebtAssociated(opts *bind.WatchOpts, sink chan<- *CoreGoerliDebtAssociated, marketId []*big.Int, poolId []*big.Int, collateralType []common.Address) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchDebtAssociated(opts *bind.WatchOpts, sink chan<- *CoreDebtAssociated, marketId []*big.Int, poolId []*big.Int, collateralType []common.Address) (event.Subscription, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { @@ -4426,7 +4415,7 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchDebtAssociated(opts *bind.WatchOpts, collateralTypeRule = append(collateralTypeRule, collateralTypeItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "DebtAssociated", marketIdRule, poolIdRule, collateralTypeRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "DebtAssociated", marketIdRule, poolIdRule, collateralTypeRule) if err != nil { return nil, err } @@ -4436,8 +4425,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchDebtAssociated(opts *bind.WatchOpts, select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliDebtAssociated) - if err := _CoreGoerli.contract.UnpackLog(event, "DebtAssociated", log); err != nil { + event := new(CoreDebtAssociated) + if err := _Core.contract.UnpackLog(event, "DebtAssociated", log); err != nil { return err } event.Raw = log @@ -4461,18 +4450,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchDebtAssociated(opts *bind.WatchOpts, // ParseDebtAssociated is a log parse operation binding the contract event 0xb03bc7530b5650601d2c8bc86c81a45b6b50b0099defd3f17a6bdb48660180ad. // // Solidity: event DebtAssociated(uint128 indexed marketId, uint128 indexed poolId, address indexed collateralType, uint128 accountId, uint256 amount, int256 updatedDebt) -func (_CoreGoerli *CoreGoerliFilterer) ParseDebtAssociated(log types.Log) (*CoreGoerliDebtAssociated, error) { - event := new(CoreGoerliDebtAssociated) - if err := _CoreGoerli.contract.UnpackLog(event, "DebtAssociated", log); err != nil { +func (_Core *CoreFilterer) ParseDebtAssociated(log types.Log) (*CoreDebtAssociated, error) { + event := new(CoreDebtAssociated) + if err := _Core.contract.UnpackLog(event, "DebtAssociated", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliDelegationUpdatedIterator is returned from FilterDelegationUpdated and is used to iterate over the raw logs and unpacked data for DelegationUpdated events raised by the CoreGoerli contract. -type CoreGoerliDelegationUpdatedIterator struct { - Event *CoreGoerliDelegationUpdated // Event containing the contract specifics and raw log +// CoreDelegationUpdatedIterator is returned from FilterDelegationUpdated and is used to iterate over the raw logs and unpacked data for DelegationUpdated events raised by the Core contract. +type CoreDelegationUpdatedIterator struct { + Event *CoreDelegationUpdated // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -4486,7 +4475,7 @@ type CoreGoerliDelegationUpdatedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliDelegationUpdatedIterator) Next() bool { +func (it *CoreDelegationUpdatedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -4495,7 +4484,7 @@ func (it *CoreGoerliDelegationUpdatedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliDelegationUpdated) + it.Event = new(CoreDelegationUpdated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -4510,7 +4499,7 @@ func (it *CoreGoerliDelegationUpdatedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliDelegationUpdated) + it.Event = new(CoreDelegationUpdated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -4526,19 +4515,19 @@ func (it *CoreGoerliDelegationUpdatedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliDelegationUpdatedIterator) Error() error { +func (it *CoreDelegationUpdatedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliDelegationUpdatedIterator) Close() error { +func (it *CoreDelegationUpdatedIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliDelegationUpdated represents a DelegationUpdated event raised by the CoreGoerli contract. -type CoreGoerliDelegationUpdated struct { +// CoreDelegationUpdated represents a DelegationUpdated event raised by the Core contract. +type CoreDelegationUpdated struct { AccountId *big.Int PoolId *big.Int CollateralType common.Address @@ -4551,7 +4540,7 @@ type CoreGoerliDelegationUpdated struct { // FilterDelegationUpdated is a free log retrieval operation binding the contract event 0x7b12dd38f18c0ff77ae702f6da13fbbcb28f53f807ecc7d39ee8d8b1ea8295ad. // // Solidity: event DelegationUpdated(uint128 indexed accountId, uint128 indexed poolId, address collateralType, uint256 amount, uint256 leverage, address indexed sender) -func (_CoreGoerli *CoreGoerliFilterer) FilterDelegationUpdated(opts *bind.FilterOpts, accountId []*big.Int, poolId []*big.Int, sender []common.Address) (*CoreGoerliDelegationUpdatedIterator, error) { +func (_Core *CoreFilterer) FilterDelegationUpdated(opts *bind.FilterOpts, accountId []*big.Int, poolId []*big.Int, sender []common.Address) (*CoreDelegationUpdatedIterator, error) { var accountIdRule []interface{} for _, accountIdItem := range accountId { @@ -4567,17 +4556,17 @@ func (_CoreGoerli *CoreGoerliFilterer) FilterDelegationUpdated(opts *bind.Filter senderRule = append(senderRule, senderItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "DelegationUpdated", accountIdRule, poolIdRule, senderRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "DelegationUpdated", accountIdRule, poolIdRule, senderRule) if err != nil { return nil, err } - return &CoreGoerliDelegationUpdatedIterator{contract: _CoreGoerli.contract, event: "DelegationUpdated", logs: logs, sub: sub}, nil + return &CoreDelegationUpdatedIterator{contract: _Core.contract, event: "DelegationUpdated", logs: logs, sub: sub}, nil } // WatchDelegationUpdated is a free log subscription operation binding the contract event 0x7b12dd38f18c0ff77ae702f6da13fbbcb28f53f807ecc7d39ee8d8b1ea8295ad. // // Solidity: event DelegationUpdated(uint128 indexed accountId, uint128 indexed poolId, address collateralType, uint256 amount, uint256 leverage, address indexed sender) -func (_CoreGoerli *CoreGoerliFilterer) WatchDelegationUpdated(opts *bind.WatchOpts, sink chan<- *CoreGoerliDelegationUpdated, accountId []*big.Int, poolId []*big.Int, sender []common.Address) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchDelegationUpdated(opts *bind.WatchOpts, sink chan<- *CoreDelegationUpdated, accountId []*big.Int, poolId []*big.Int, sender []common.Address) (event.Subscription, error) { var accountIdRule []interface{} for _, accountIdItem := range accountId { @@ -4593,7 +4582,7 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchDelegationUpdated(opts *bind.WatchOp senderRule = append(senderRule, senderItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "DelegationUpdated", accountIdRule, poolIdRule, senderRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "DelegationUpdated", accountIdRule, poolIdRule, senderRule) if err != nil { return nil, err } @@ -4603,8 +4592,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchDelegationUpdated(opts *bind.WatchOp select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliDelegationUpdated) - if err := _CoreGoerli.contract.UnpackLog(event, "DelegationUpdated", log); err != nil { + event := new(CoreDelegationUpdated) + if err := _Core.contract.UnpackLog(event, "DelegationUpdated", log); err != nil { return err } event.Raw = log @@ -4628,18 +4617,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchDelegationUpdated(opts *bind.WatchOp // ParseDelegationUpdated is a log parse operation binding the contract event 0x7b12dd38f18c0ff77ae702f6da13fbbcb28f53f807ecc7d39ee8d8b1ea8295ad. // // Solidity: event DelegationUpdated(uint128 indexed accountId, uint128 indexed poolId, address collateralType, uint256 amount, uint256 leverage, address indexed sender) -func (_CoreGoerli *CoreGoerliFilterer) ParseDelegationUpdated(log types.Log) (*CoreGoerliDelegationUpdated, error) { - event := new(CoreGoerliDelegationUpdated) - if err := _CoreGoerli.contract.UnpackLog(event, "DelegationUpdated", log); err != nil { +func (_Core *CoreFilterer) ParseDelegationUpdated(log types.Log) (*CoreDelegationUpdated, error) { + event := new(CoreDelegationUpdated) + if err := _Core.contract.UnpackLog(event, "DelegationUpdated", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliDepositedIterator is returned from FilterDeposited and is used to iterate over the raw logs and unpacked data for Deposited events raised by the CoreGoerli contract. -type CoreGoerliDepositedIterator struct { - Event *CoreGoerliDeposited // Event containing the contract specifics and raw log +// CoreDepositedIterator is returned from FilterDeposited and is used to iterate over the raw logs and unpacked data for Deposited events raised by the Core contract. +type CoreDepositedIterator struct { + Event *CoreDeposited // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -4653,7 +4642,7 @@ type CoreGoerliDepositedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliDepositedIterator) Next() bool { +func (it *CoreDepositedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -4662,7 +4651,7 @@ func (it *CoreGoerliDepositedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliDeposited) + it.Event = new(CoreDeposited) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -4677,7 +4666,7 @@ func (it *CoreGoerliDepositedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliDeposited) + it.Event = new(CoreDeposited) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -4693,19 +4682,19 @@ func (it *CoreGoerliDepositedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliDepositedIterator) Error() error { +func (it *CoreDepositedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliDepositedIterator) Close() error { +func (it *CoreDepositedIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliDeposited represents a Deposited event raised by the CoreGoerli contract. -type CoreGoerliDeposited struct { +// CoreDeposited represents a Deposited event raised by the Core contract. +type CoreDeposited struct { AccountId *big.Int CollateralType common.Address TokenAmount *big.Int @@ -4716,7 +4705,7 @@ type CoreGoerliDeposited struct { // FilterDeposited is a free log retrieval operation binding the contract event 0xd92122e67326e9313bfae33ccb1fccf5194584c6bf93a8529a6b006d8c6e24a9. // // Solidity: event Deposited(uint128 indexed accountId, address indexed collateralType, uint256 tokenAmount, address indexed sender) -func (_CoreGoerli *CoreGoerliFilterer) FilterDeposited(opts *bind.FilterOpts, accountId []*big.Int, collateralType []common.Address, sender []common.Address) (*CoreGoerliDepositedIterator, error) { +func (_Core *CoreFilterer) FilterDeposited(opts *bind.FilterOpts, accountId []*big.Int, collateralType []common.Address, sender []common.Address) (*CoreDepositedIterator, error) { var accountIdRule []interface{} for _, accountIdItem := range accountId { @@ -4732,17 +4721,17 @@ func (_CoreGoerli *CoreGoerliFilterer) FilterDeposited(opts *bind.FilterOpts, ac senderRule = append(senderRule, senderItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "Deposited", accountIdRule, collateralTypeRule, senderRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "Deposited", accountIdRule, collateralTypeRule, senderRule) if err != nil { return nil, err } - return &CoreGoerliDepositedIterator{contract: _CoreGoerli.contract, event: "Deposited", logs: logs, sub: sub}, nil + return &CoreDepositedIterator{contract: _Core.contract, event: "Deposited", logs: logs, sub: sub}, nil } // WatchDeposited is a free log subscription operation binding the contract event 0xd92122e67326e9313bfae33ccb1fccf5194584c6bf93a8529a6b006d8c6e24a9. // // Solidity: event Deposited(uint128 indexed accountId, address indexed collateralType, uint256 tokenAmount, address indexed sender) -func (_CoreGoerli *CoreGoerliFilterer) WatchDeposited(opts *bind.WatchOpts, sink chan<- *CoreGoerliDeposited, accountId []*big.Int, collateralType []common.Address, sender []common.Address) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchDeposited(opts *bind.WatchOpts, sink chan<- *CoreDeposited, accountId []*big.Int, collateralType []common.Address, sender []common.Address) (event.Subscription, error) { var accountIdRule []interface{} for _, accountIdItem := range accountId { @@ -4758,7 +4747,7 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchDeposited(opts *bind.WatchOpts, sink senderRule = append(senderRule, senderItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "Deposited", accountIdRule, collateralTypeRule, senderRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "Deposited", accountIdRule, collateralTypeRule, senderRule) if err != nil { return nil, err } @@ -4768,8 +4757,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchDeposited(opts *bind.WatchOpts, sink select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliDeposited) - if err := _CoreGoerli.contract.UnpackLog(event, "Deposited", log); err != nil { + event := new(CoreDeposited) + if err := _Core.contract.UnpackLog(event, "Deposited", log); err != nil { return err } event.Raw = log @@ -4793,18 +4782,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchDeposited(opts *bind.WatchOpts, sink // ParseDeposited is a log parse operation binding the contract event 0xd92122e67326e9313bfae33ccb1fccf5194584c6bf93a8529a6b006d8c6e24a9. // // Solidity: event Deposited(uint128 indexed accountId, address indexed collateralType, uint256 tokenAmount, address indexed sender) -func (_CoreGoerli *CoreGoerliFilterer) ParseDeposited(log types.Log) (*CoreGoerliDeposited, error) { - event := new(CoreGoerliDeposited) - if err := _CoreGoerli.contract.UnpackLog(event, "Deposited", log); err != nil { +func (_Core *CoreFilterer) ParseDeposited(log types.Log) (*CoreDeposited, error) { + event := new(CoreDeposited) + if err := _Core.contract.UnpackLog(event, "Deposited", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliFeatureFlagAllowAllSetIterator is returned from FilterFeatureFlagAllowAllSet and is used to iterate over the raw logs and unpacked data for FeatureFlagAllowAllSet events raised by the CoreGoerli contract. -type CoreGoerliFeatureFlagAllowAllSetIterator struct { - Event *CoreGoerliFeatureFlagAllowAllSet // Event containing the contract specifics and raw log +// CoreFeatureFlagAllowAllSetIterator is returned from FilterFeatureFlagAllowAllSet and is used to iterate over the raw logs and unpacked data for FeatureFlagAllowAllSet events raised by the Core contract. +type CoreFeatureFlagAllowAllSetIterator struct { + Event *CoreFeatureFlagAllowAllSet // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -4818,7 +4807,7 @@ type CoreGoerliFeatureFlagAllowAllSetIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliFeatureFlagAllowAllSetIterator) Next() bool { +func (it *CoreFeatureFlagAllowAllSetIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -4827,7 +4816,7 @@ func (it *CoreGoerliFeatureFlagAllowAllSetIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliFeatureFlagAllowAllSet) + it.Event = new(CoreFeatureFlagAllowAllSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -4842,7 +4831,7 @@ func (it *CoreGoerliFeatureFlagAllowAllSetIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliFeatureFlagAllowAllSet) + it.Event = new(CoreFeatureFlagAllowAllSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -4858,19 +4847,19 @@ func (it *CoreGoerliFeatureFlagAllowAllSetIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliFeatureFlagAllowAllSetIterator) Error() error { +func (it *CoreFeatureFlagAllowAllSetIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliFeatureFlagAllowAllSetIterator) Close() error { +func (it *CoreFeatureFlagAllowAllSetIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliFeatureFlagAllowAllSet represents a FeatureFlagAllowAllSet event raised by the CoreGoerli contract. -type CoreGoerliFeatureFlagAllowAllSet struct { +// CoreFeatureFlagAllowAllSet represents a FeatureFlagAllowAllSet event raised by the Core contract. +type CoreFeatureFlagAllowAllSet struct { Feature [32]byte AllowAll bool Raw types.Log // Blockchain specific contextual infos @@ -4879,31 +4868,31 @@ type CoreGoerliFeatureFlagAllowAllSet struct { // FilterFeatureFlagAllowAllSet is a free log retrieval operation binding the contract event 0xa806035d8c8de7cd43725250d3fbf9ee7abe3b99ffb892897913d8a21721121d. // // Solidity: event FeatureFlagAllowAllSet(bytes32 indexed feature, bool allowAll) -func (_CoreGoerli *CoreGoerliFilterer) FilterFeatureFlagAllowAllSet(opts *bind.FilterOpts, feature [][32]byte) (*CoreGoerliFeatureFlagAllowAllSetIterator, error) { +func (_Core *CoreFilterer) FilterFeatureFlagAllowAllSet(opts *bind.FilterOpts, feature [][32]byte) (*CoreFeatureFlagAllowAllSetIterator, error) { var featureRule []interface{} for _, featureItem := range feature { featureRule = append(featureRule, featureItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "FeatureFlagAllowAllSet", featureRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "FeatureFlagAllowAllSet", featureRule) if err != nil { return nil, err } - return &CoreGoerliFeatureFlagAllowAllSetIterator{contract: _CoreGoerli.contract, event: "FeatureFlagAllowAllSet", logs: logs, sub: sub}, nil + return &CoreFeatureFlagAllowAllSetIterator{contract: _Core.contract, event: "FeatureFlagAllowAllSet", logs: logs, sub: sub}, nil } // WatchFeatureFlagAllowAllSet is a free log subscription operation binding the contract event 0xa806035d8c8de7cd43725250d3fbf9ee7abe3b99ffb892897913d8a21721121d. // // Solidity: event FeatureFlagAllowAllSet(bytes32 indexed feature, bool allowAll) -func (_CoreGoerli *CoreGoerliFilterer) WatchFeatureFlagAllowAllSet(opts *bind.WatchOpts, sink chan<- *CoreGoerliFeatureFlagAllowAllSet, feature [][32]byte) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchFeatureFlagAllowAllSet(opts *bind.WatchOpts, sink chan<- *CoreFeatureFlagAllowAllSet, feature [][32]byte) (event.Subscription, error) { var featureRule []interface{} for _, featureItem := range feature { featureRule = append(featureRule, featureItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "FeatureFlagAllowAllSet", featureRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "FeatureFlagAllowAllSet", featureRule) if err != nil { return nil, err } @@ -4913,8 +4902,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchFeatureFlagAllowAllSet(opts *bind.Wa select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliFeatureFlagAllowAllSet) - if err := _CoreGoerli.contract.UnpackLog(event, "FeatureFlagAllowAllSet", log); err != nil { + event := new(CoreFeatureFlagAllowAllSet) + if err := _Core.contract.UnpackLog(event, "FeatureFlagAllowAllSet", log); err != nil { return err } event.Raw = log @@ -4938,18 +4927,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchFeatureFlagAllowAllSet(opts *bind.Wa // ParseFeatureFlagAllowAllSet is a log parse operation binding the contract event 0xa806035d8c8de7cd43725250d3fbf9ee7abe3b99ffb892897913d8a21721121d. // // Solidity: event FeatureFlagAllowAllSet(bytes32 indexed feature, bool allowAll) -func (_CoreGoerli *CoreGoerliFilterer) ParseFeatureFlagAllowAllSet(log types.Log) (*CoreGoerliFeatureFlagAllowAllSet, error) { - event := new(CoreGoerliFeatureFlagAllowAllSet) - if err := _CoreGoerli.contract.UnpackLog(event, "FeatureFlagAllowAllSet", log); err != nil { +func (_Core *CoreFilterer) ParseFeatureFlagAllowAllSet(log types.Log) (*CoreFeatureFlagAllowAllSet, error) { + event := new(CoreFeatureFlagAllowAllSet) + if err := _Core.contract.UnpackLog(event, "FeatureFlagAllowAllSet", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliFeatureFlagAllowlistAddedIterator is returned from FilterFeatureFlagAllowlistAdded and is used to iterate over the raw logs and unpacked data for FeatureFlagAllowlistAdded events raised by the CoreGoerli contract. -type CoreGoerliFeatureFlagAllowlistAddedIterator struct { - Event *CoreGoerliFeatureFlagAllowlistAdded // Event containing the contract specifics and raw log +// CoreFeatureFlagAllowlistAddedIterator is returned from FilterFeatureFlagAllowlistAdded and is used to iterate over the raw logs and unpacked data for FeatureFlagAllowlistAdded events raised by the Core contract. +type CoreFeatureFlagAllowlistAddedIterator struct { + Event *CoreFeatureFlagAllowlistAdded // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -4963,7 +4952,7 @@ type CoreGoerliFeatureFlagAllowlistAddedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliFeatureFlagAllowlistAddedIterator) Next() bool { +func (it *CoreFeatureFlagAllowlistAddedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -4972,7 +4961,7 @@ func (it *CoreGoerliFeatureFlagAllowlistAddedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliFeatureFlagAllowlistAdded) + it.Event = new(CoreFeatureFlagAllowlistAdded) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -4987,7 +4976,7 @@ func (it *CoreGoerliFeatureFlagAllowlistAddedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliFeatureFlagAllowlistAdded) + it.Event = new(CoreFeatureFlagAllowlistAdded) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -5003,19 +4992,19 @@ func (it *CoreGoerliFeatureFlagAllowlistAddedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliFeatureFlagAllowlistAddedIterator) Error() error { +func (it *CoreFeatureFlagAllowlistAddedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliFeatureFlagAllowlistAddedIterator) Close() error { +func (it *CoreFeatureFlagAllowlistAddedIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliFeatureFlagAllowlistAdded represents a FeatureFlagAllowlistAdded event raised by the CoreGoerli contract. -type CoreGoerliFeatureFlagAllowlistAdded struct { +// CoreFeatureFlagAllowlistAdded represents a FeatureFlagAllowlistAdded event raised by the Core contract. +type CoreFeatureFlagAllowlistAdded struct { Feature [32]byte Account common.Address Raw types.Log // Blockchain specific contextual infos @@ -5024,31 +5013,31 @@ type CoreGoerliFeatureFlagAllowlistAdded struct { // FilterFeatureFlagAllowlistAdded is a free log retrieval operation binding the contract event 0x30b9b4104e2fb00b4f980e414dcd828e691c8fcb286f0c73d7267c3a2de49383. // // Solidity: event FeatureFlagAllowlistAdded(bytes32 indexed feature, address account) -func (_CoreGoerli *CoreGoerliFilterer) FilterFeatureFlagAllowlistAdded(opts *bind.FilterOpts, feature [][32]byte) (*CoreGoerliFeatureFlagAllowlistAddedIterator, error) { +func (_Core *CoreFilterer) FilterFeatureFlagAllowlistAdded(opts *bind.FilterOpts, feature [][32]byte) (*CoreFeatureFlagAllowlistAddedIterator, error) { var featureRule []interface{} for _, featureItem := range feature { featureRule = append(featureRule, featureItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "FeatureFlagAllowlistAdded", featureRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "FeatureFlagAllowlistAdded", featureRule) if err != nil { return nil, err } - return &CoreGoerliFeatureFlagAllowlistAddedIterator{contract: _CoreGoerli.contract, event: "FeatureFlagAllowlistAdded", logs: logs, sub: sub}, nil + return &CoreFeatureFlagAllowlistAddedIterator{contract: _Core.contract, event: "FeatureFlagAllowlistAdded", logs: logs, sub: sub}, nil } // WatchFeatureFlagAllowlistAdded is a free log subscription operation binding the contract event 0x30b9b4104e2fb00b4f980e414dcd828e691c8fcb286f0c73d7267c3a2de49383. // // Solidity: event FeatureFlagAllowlistAdded(bytes32 indexed feature, address account) -func (_CoreGoerli *CoreGoerliFilterer) WatchFeatureFlagAllowlistAdded(opts *bind.WatchOpts, sink chan<- *CoreGoerliFeatureFlagAllowlistAdded, feature [][32]byte) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchFeatureFlagAllowlistAdded(opts *bind.WatchOpts, sink chan<- *CoreFeatureFlagAllowlistAdded, feature [][32]byte) (event.Subscription, error) { var featureRule []interface{} for _, featureItem := range feature { featureRule = append(featureRule, featureItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "FeatureFlagAllowlistAdded", featureRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "FeatureFlagAllowlistAdded", featureRule) if err != nil { return nil, err } @@ -5058,8 +5047,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchFeatureFlagAllowlistAdded(opts *bind select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliFeatureFlagAllowlistAdded) - if err := _CoreGoerli.contract.UnpackLog(event, "FeatureFlagAllowlistAdded", log); err != nil { + event := new(CoreFeatureFlagAllowlistAdded) + if err := _Core.contract.UnpackLog(event, "FeatureFlagAllowlistAdded", log); err != nil { return err } event.Raw = log @@ -5083,18 +5072,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchFeatureFlagAllowlistAdded(opts *bind // ParseFeatureFlagAllowlistAdded is a log parse operation binding the contract event 0x30b9b4104e2fb00b4f980e414dcd828e691c8fcb286f0c73d7267c3a2de49383. // // Solidity: event FeatureFlagAllowlistAdded(bytes32 indexed feature, address account) -func (_CoreGoerli *CoreGoerliFilterer) ParseFeatureFlagAllowlistAdded(log types.Log) (*CoreGoerliFeatureFlagAllowlistAdded, error) { - event := new(CoreGoerliFeatureFlagAllowlistAdded) - if err := _CoreGoerli.contract.UnpackLog(event, "FeatureFlagAllowlistAdded", log); err != nil { +func (_Core *CoreFilterer) ParseFeatureFlagAllowlistAdded(log types.Log) (*CoreFeatureFlagAllowlistAdded, error) { + event := new(CoreFeatureFlagAllowlistAdded) + if err := _Core.contract.UnpackLog(event, "FeatureFlagAllowlistAdded", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliFeatureFlagAllowlistRemovedIterator is returned from FilterFeatureFlagAllowlistRemoved and is used to iterate over the raw logs and unpacked data for FeatureFlagAllowlistRemoved events raised by the CoreGoerli contract. -type CoreGoerliFeatureFlagAllowlistRemovedIterator struct { - Event *CoreGoerliFeatureFlagAllowlistRemoved // Event containing the contract specifics and raw log +// CoreFeatureFlagAllowlistRemovedIterator is returned from FilterFeatureFlagAllowlistRemoved and is used to iterate over the raw logs and unpacked data for FeatureFlagAllowlistRemoved events raised by the Core contract. +type CoreFeatureFlagAllowlistRemovedIterator struct { + Event *CoreFeatureFlagAllowlistRemoved // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -5108,7 +5097,7 @@ type CoreGoerliFeatureFlagAllowlistRemovedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliFeatureFlagAllowlistRemovedIterator) Next() bool { +func (it *CoreFeatureFlagAllowlistRemovedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -5117,7 +5106,7 @@ func (it *CoreGoerliFeatureFlagAllowlistRemovedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliFeatureFlagAllowlistRemoved) + it.Event = new(CoreFeatureFlagAllowlistRemoved) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -5132,7 +5121,7 @@ func (it *CoreGoerliFeatureFlagAllowlistRemovedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliFeatureFlagAllowlistRemoved) + it.Event = new(CoreFeatureFlagAllowlistRemoved) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -5148,19 +5137,19 @@ func (it *CoreGoerliFeatureFlagAllowlistRemovedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliFeatureFlagAllowlistRemovedIterator) Error() error { +func (it *CoreFeatureFlagAllowlistRemovedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliFeatureFlagAllowlistRemovedIterator) Close() error { +func (it *CoreFeatureFlagAllowlistRemovedIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliFeatureFlagAllowlistRemoved represents a FeatureFlagAllowlistRemoved event raised by the CoreGoerli contract. -type CoreGoerliFeatureFlagAllowlistRemoved struct { +// CoreFeatureFlagAllowlistRemoved represents a FeatureFlagAllowlistRemoved event raised by the Core contract. +type CoreFeatureFlagAllowlistRemoved struct { Feature [32]byte Account common.Address Raw types.Log // Blockchain specific contextual infos @@ -5169,31 +5158,31 @@ type CoreGoerliFeatureFlagAllowlistRemoved struct { // FilterFeatureFlagAllowlistRemoved is a free log retrieval operation binding the contract event 0xb44a47e11880cc865e8ea382561e406dea8c895366c58e3908f05708b2880890. // // Solidity: event FeatureFlagAllowlistRemoved(bytes32 indexed feature, address account) -func (_CoreGoerli *CoreGoerliFilterer) FilterFeatureFlagAllowlistRemoved(opts *bind.FilterOpts, feature [][32]byte) (*CoreGoerliFeatureFlagAllowlistRemovedIterator, error) { +func (_Core *CoreFilterer) FilterFeatureFlagAllowlistRemoved(opts *bind.FilterOpts, feature [][32]byte) (*CoreFeatureFlagAllowlistRemovedIterator, error) { var featureRule []interface{} for _, featureItem := range feature { featureRule = append(featureRule, featureItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "FeatureFlagAllowlistRemoved", featureRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "FeatureFlagAllowlistRemoved", featureRule) if err != nil { return nil, err } - return &CoreGoerliFeatureFlagAllowlistRemovedIterator{contract: _CoreGoerli.contract, event: "FeatureFlagAllowlistRemoved", logs: logs, sub: sub}, nil + return &CoreFeatureFlagAllowlistRemovedIterator{contract: _Core.contract, event: "FeatureFlagAllowlistRemoved", logs: logs, sub: sub}, nil } // WatchFeatureFlagAllowlistRemoved is a free log subscription operation binding the contract event 0xb44a47e11880cc865e8ea382561e406dea8c895366c58e3908f05708b2880890. // // Solidity: event FeatureFlagAllowlistRemoved(bytes32 indexed feature, address account) -func (_CoreGoerli *CoreGoerliFilterer) WatchFeatureFlagAllowlistRemoved(opts *bind.WatchOpts, sink chan<- *CoreGoerliFeatureFlagAllowlistRemoved, feature [][32]byte) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchFeatureFlagAllowlistRemoved(opts *bind.WatchOpts, sink chan<- *CoreFeatureFlagAllowlistRemoved, feature [][32]byte) (event.Subscription, error) { var featureRule []interface{} for _, featureItem := range feature { featureRule = append(featureRule, featureItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "FeatureFlagAllowlistRemoved", featureRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "FeatureFlagAllowlistRemoved", featureRule) if err != nil { return nil, err } @@ -5203,8 +5192,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchFeatureFlagAllowlistRemoved(opts *bi select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliFeatureFlagAllowlistRemoved) - if err := _CoreGoerli.contract.UnpackLog(event, "FeatureFlagAllowlistRemoved", log); err != nil { + event := new(CoreFeatureFlagAllowlistRemoved) + if err := _Core.contract.UnpackLog(event, "FeatureFlagAllowlistRemoved", log); err != nil { return err } event.Raw = log @@ -5228,18 +5217,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchFeatureFlagAllowlistRemoved(opts *bi // ParseFeatureFlagAllowlistRemoved is a log parse operation binding the contract event 0xb44a47e11880cc865e8ea382561e406dea8c895366c58e3908f05708b2880890. // // Solidity: event FeatureFlagAllowlistRemoved(bytes32 indexed feature, address account) -func (_CoreGoerli *CoreGoerliFilterer) ParseFeatureFlagAllowlistRemoved(log types.Log) (*CoreGoerliFeatureFlagAllowlistRemoved, error) { - event := new(CoreGoerliFeatureFlagAllowlistRemoved) - if err := _CoreGoerli.contract.UnpackLog(event, "FeatureFlagAllowlistRemoved", log); err != nil { +func (_Core *CoreFilterer) ParseFeatureFlagAllowlistRemoved(log types.Log) (*CoreFeatureFlagAllowlistRemoved, error) { + event := new(CoreFeatureFlagAllowlistRemoved) + if err := _Core.contract.UnpackLog(event, "FeatureFlagAllowlistRemoved", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliFeatureFlagDeniersResetIterator is returned from FilterFeatureFlagDeniersReset and is used to iterate over the raw logs and unpacked data for FeatureFlagDeniersReset events raised by the CoreGoerli contract. -type CoreGoerliFeatureFlagDeniersResetIterator struct { - Event *CoreGoerliFeatureFlagDeniersReset // Event containing the contract specifics and raw log +// CoreFeatureFlagDeniersResetIterator is returned from FilterFeatureFlagDeniersReset and is used to iterate over the raw logs and unpacked data for FeatureFlagDeniersReset events raised by the Core contract. +type CoreFeatureFlagDeniersResetIterator struct { + Event *CoreFeatureFlagDeniersReset // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -5253,7 +5242,7 @@ type CoreGoerliFeatureFlagDeniersResetIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliFeatureFlagDeniersResetIterator) Next() bool { +func (it *CoreFeatureFlagDeniersResetIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -5262,7 +5251,7 @@ func (it *CoreGoerliFeatureFlagDeniersResetIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliFeatureFlagDeniersReset) + it.Event = new(CoreFeatureFlagDeniersReset) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -5277,7 +5266,7 @@ func (it *CoreGoerliFeatureFlagDeniersResetIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliFeatureFlagDeniersReset) + it.Event = new(CoreFeatureFlagDeniersReset) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -5293,19 +5282,19 @@ func (it *CoreGoerliFeatureFlagDeniersResetIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliFeatureFlagDeniersResetIterator) Error() error { +func (it *CoreFeatureFlagDeniersResetIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliFeatureFlagDeniersResetIterator) Close() error { +func (it *CoreFeatureFlagDeniersResetIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliFeatureFlagDeniersReset represents a FeatureFlagDeniersReset event raised by the CoreGoerli contract. -type CoreGoerliFeatureFlagDeniersReset struct { +// CoreFeatureFlagDeniersReset represents a FeatureFlagDeniersReset event raised by the Core contract. +type CoreFeatureFlagDeniersReset struct { Feature [32]byte Deniers []common.Address Raw types.Log // Blockchain specific contextual infos @@ -5314,31 +5303,31 @@ type CoreGoerliFeatureFlagDeniersReset struct { // FilterFeatureFlagDeniersReset is a free log retrieval operation binding the contract event 0x74d48d0b51a70680130c00decd06b4d536fbb3cee16a3b0bdd2309c264dcbd13. // // Solidity: event FeatureFlagDeniersReset(bytes32 indexed feature, address[] deniers) -func (_CoreGoerli *CoreGoerliFilterer) FilterFeatureFlagDeniersReset(opts *bind.FilterOpts, feature [][32]byte) (*CoreGoerliFeatureFlagDeniersResetIterator, error) { +func (_Core *CoreFilterer) FilterFeatureFlagDeniersReset(opts *bind.FilterOpts, feature [][32]byte) (*CoreFeatureFlagDeniersResetIterator, error) { var featureRule []interface{} for _, featureItem := range feature { featureRule = append(featureRule, featureItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "FeatureFlagDeniersReset", featureRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "FeatureFlagDeniersReset", featureRule) if err != nil { return nil, err } - return &CoreGoerliFeatureFlagDeniersResetIterator{contract: _CoreGoerli.contract, event: "FeatureFlagDeniersReset", logs: logs, sub: sub}, nil + return &CoreFeatureFlagDeniersResetIterator{contract: _Core.contract, event: "FeatureFlagDeniersReset", logs: logs, sub: sub}, nil } // WatchFeatureFlagDeniersReset is a free log subscription operation binding the contract event 0x74d48d0b51a70680130c00decd06b4d536fbb3cee16a3b0bdd2309c264dcbd13. // // Solidity: event FeatureFlagDeniersReset(bytes32 indexed feature, address[] deniers) -func (_CoreGoerli *CoreGoerliFilterer) WatchFeatureFlagDeniersReset(opts *bind.WatchOpts, sink chan<- *CoreGoerliFeatureFlagDeniersReset, feature [][32]byte) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchFeatureFlagDeniersReset(opts *bind.WatchOpts, sink chan<- *CoreFeatureFlagDeniersReset, feature [][32]byte) (event.Subscription, error) { var featureRule []interface{} for _, featureItem := range feature { featureRule = append(featureRule, featureItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "FeatureFlagDeniersReset", featureRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "FeatureFlagDeniersReset", featureRule) if err != nil { return nil, err } @@ -5348,8 +5337,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchFeatureFlagDeniersReset(opts *bind.W select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliFeatureFlagDeniersReset) - if err := _CoreGoerli.contract.UnpackLog(event, "FeatureFlagDeniersReset", log); err != nil { + event := new(CoreFeatureFlagDeniersReset) + if err := _Core.contract.UnpackLog(event, "FeatureFlagDeniersReset", log); err != nil { return err } event.Raw = log @@ -5373,18 +5362,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchFeatureFlagDeniersReset(opts *bind.W // ParseFeatureFlagDeniersReset is a log parse operation binding the contract event 0x74d48d0b51a70680130c00decd06b4d536fbb3cee16a3b0bdd2309c264dcbd13. // // Solidity: event FeatureFlagDeniersReset(bytes32 indexed feature, address[] deniers) -func (_CoreGoerli *CoreGoerliFilterer) ParseFeatureFlagDeniersReset(log types.Log) (*CoreGoerliFeatureFlagDeniersReset, error) { - event := new(CoreGoerliFeatureFlagDeniersReset) - if err := _CoreGoerli.contract.UnpackLog(event, "FeatureFlagDeniersReset", log); err != nil { +func (_Core *CoreFilterer) ParseFeatureFlagDeniersReset(log types.Log) (*CoreFeatureFlagDeniersReset, error) { + event := new(CoreFeatureFlagDeniersReset) + if err := _Core.contract.UnpackLog(event, "FeatureFlagDeniersReset", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliFeatureFlagDenyAllSetIterator is returned from FilterFeatureFlagDenyAllSet and is used to iterate over the raw logs and unpacked data for FeatureFlagDenyAllSet events raised by the CoreGoerli contract. -type CoreGoerliFeatureFlagDenyAllSetIterator struct { - Event *CoreGoerliFeatureFlagDenyAllSet // Event containing the contract specifics and raw log +// CoreFeatureFlagDenyAllSetIterator is returned from FilterFeatureFlagDenyAllSet and is used to iterate over the raw logs and unpacked data for FeatureFlagDenyAllSet events raised by the Core contract. +type CoreFeatureFlagDenyAllSetIterator struct { + Event *CoreFeatureFlagDenyAllSet // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -5398,7 +5387,7 @@ type CoreGoerliFeatureFlagDenyAllSetIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliFeatureFlagDenyAllSetIterator) Next() bool { +func (it *CoreFeatureFlagDenyAllSetIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -5407,7 +5396,7 @@ func (it *CoreGoerliFeatureFlagDenyAllSetIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliFeatureFlagDenyAllSet) + it.Event = new(CoreFeatureFlagDenyAllSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -5422,7 +5411,7 @@ func (it *CoreGoerliFeatureFlagDenyAllSetIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliFeatureFlagDenyAllSet) + it.Event = new(CoreFeatureFlagDenyAllSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -5438,19 +5427,19 @@ func (it *CoreGoerliFeatureFlagDenyAllSetIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliFeatureFlagDenyAllSetIterator) Error() error { +func (it *CoreFeatureFlagDenyAllSetIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliFeatureFlagDenyAllSetIterator) Close() error { +func (it *CoreFeatureFlagDenyAllSetIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliFeatureFlagDenyAllSet represents a FeatureFlagDenyAllSet event raised by the CoreGoerli contract. -type CoreGoerliFeatureFlagDenyAllSet struct { +// CoreFeatureFlagDenyAllSet represents a FeatureFlagDenyAllSet event raised by the Core contract. +type CoreFeatureFlagDenyAllSet struct { Feature [32]byte DenyAll bool Raw types.Log // Blockchain specific contextual infos @@ -5459,31 +5448,31 @@ type CoreGoerliFeatureFlagDenyAllSet struct { // FilterFeatureFlagDenyAllSet is a free log retrieval operation binding the contract event 0x97f76d2e384948e28ddd4280a4e76e8600acc328a0c0910c93682a0fccc02018. // // Solidity: event FeatureFlagDenyAllSet(bytes32 indexed feature, bool denyAll) -func (_CoreGoerli *CoreGoerliFilterer) FilterFeatureFlagDenyAllSet(opts *bind.FilterOpts, feature [][32]byte) (*CoreGoerliFeatureFlagDenyAllSetIterator, error) { +func (_Core *CoreFilterer) FilterFeatureFlagDenyAllSet(opts *bind.FilterOpts, feature [][32]byte) (*CoreFeatureFlagDenyAllSetIterator, error) { var featureRule []interface{} for _, featureItem := range feature { featureRule = append(featureRule, featureItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "FeatureFlagDenyAllSet", featureRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "FeatureFlagDenyAllSet", featureRule) if err != nil { return nil, err } - return &CoreGoerliFeatureFlagDenyAllSetIterator{contract: _CoreGoerli.contract, event: "FeatureFlagDenyAllSet", logs: logs, sub: sub}, nil + return &CoreFeatureFlagDenyAllSetIterator{contract: _Core.contract, event: "FeatureFlagDenyAllSet", logs: logs, sub: sub}, nil } // WatchFeatureFlagDenyAllSet is a free log subscription operation binding the contract event 0x97f76d2e384948e28ddd4280a4e76e8600acc328a0c0910c93682a0fccc02018. // // Solidity: event FeatureFlagDenyAllSet(bytes32 indexed feature, bool denyAll) -func (_CoreGoerli *CoreGoerliFilterer) WatchFeatureFlagDenyAllSet(opts *bind.WatchOpts, sink chan<- *CoreGoerliFeatureFlagDenyAllSet, feature [][32]byte) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchFeatureFlagDenyAllSet(opts *bind.WatchOpts, sink chan<- *CoreFeatureFlagDenyAllSet, feature [][32]byte) (event.Subscription, error) { var featureRule []interface{} for _, featureItem := range feature { featureRule = append(featureRule, featureItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "FeatureFlagDenyAllSet", featureRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "FeatureFlagDenyAllSet", featureRule) if err != nil { return nil, err } @@ -5493,8 +5482,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchFeatureFlagDenyAllSet(opts *bind.Wat select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliFeatureFlagDenyAllSet) - if err := _CoreGoerli.contract.UnpackLog(event, "FeatureFlagDenyAllSet", log); err != nil { + event := new(CoreFeatureFlagDenyAllSet) + if err := _Core.contract.UnpackLog(event, "FeatureFlagDenyAllSet", log); err != nil { return err } event.Raw = log @@ -5518,18 +5507,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchFeatureFlagDenyAllSet(opts *bind.Wat // ParseFeatureFlagDenyAllSet is a log parse operation binding the contract event 0x97f76d2e384948e28ddd4280a4e76e8600acc328a0c0910c93682a0fccc02018. // // Solidity: event FeatureFlagDenyAllSet(bytes32 indexed feature, bool denyAll) -func (_CoreGoerli *CoreGoerliFilterer) ParseFeatureFlagDenyAllSet(log types.Log) (*CoreGoerliFeatureFlagDenyAllSet, error) { - event := new(CoreGoerliFeatureFlagDenyAllSet) - if err := _CoreGoerli.contract.UnpackLog(event, "FeatureFlagDenyAllSet", log); err != nil { +func (_Core *CoreFilterer) ParseFeatureFlagDenyAllSet(log types.Log) (*CoreFeatureFlagDenyAllSet, error) { + event := new(CoreFeatureFlagDenyAllSet) + if err := _Core.contract.UnpackLog(event, "FeatureFlagDenyAllSet", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliIssuanceFeePaidIterator is returned from FilterIssuanceFeePaid and is used to iterate over the raw logs and unpacked data for IssuanceFeePaid events raised by the CoreGoerli contract. -type CoreGoerliIssuanceFeePaidIterator struct { - Event *CoreGoerliIssuanceFeePaid // Event containing the contract specifics and raw log +// CoreIssuanceFeePaidIterator is returned from FilterIssuanceFeePaid and is used to iterate over the raw logs and unpacked data for IssuanceFeePaid events raised by the Core contract. +type CoreIssuanceFeePaidIterator struct { + Event *CoreIssuanceFeePaid // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -5543,7 +5532,7 @@ type CoreGoerliIssuanceFeePaidIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliIssuanceFeePaidIterator) Next() bool { +func (it *CoreIssuanceFeePaidIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -5552,7 +5541,7 @@ func (it *CoreGoerliIssuanceFeePaidIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliIssuanceFeePaid) + it.Event = new(CoreIssuanceFeePaid) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -5567,7 +5556,7 @@ func (it *CoreGoerliIssuanceFeePaidIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliIssuanceFeePaid) + it.Event = new(CoreIssuanceFeePaid) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -5583,19 +5572,19 @@ func (it *CoreGoerliIssuanceFeePaidIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliIssuanceFeePaidIterator) Error() error { +func (it *CoreIssuanceFeePaidIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliIssuanceFeePaidIterator) Close() error { +func (it *CoreIssuanceFeePaidIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliIssuanceFeePaid represents a IssuanceFeePaid event raised by the CoreGoerli contract. -type CoreGoerliIssuanceFeePaid struct { +// CoreIssuanceFeePaid represents a IssuanceFeePaid event raised by the Core contract. +type CoreIssuanceFeePaid struct { AccountId *big.Int PoolId *big.Int CollateralType common.Address @@ -5606,7 +5595,7 @@ type CoreGoerliIssuanceFeePaid struct { // FilterIssuanceFeePaid is a free log retrieval operation binding the contract event 0x28d0fb10e1c8ce51490a16fb3b40bf23f8064f7c624d3a3852ad66683a25995d. // // Solidity: event IssuanceFeePaid(uint128 indexed accountId, uint128 indexed poolId, address collateralType, uint256 feeAmount) -func (_CoreGoerli *CoreGoerliFilterer) FilterIssuanceFeePaid(opts *bind.FilterOpts, accountId []*big.Int, poolId []*big.Int) (*CoreGoerliIssuanceFeePaidIterator, error) { +func (_Core *CoreFilterer) FilterIssuanceFeePaid(opts *bind.FilterOpts, accountId []*big.Int, poolId []*big.Int) (*CoreIssuanceFeePaidIterator, error) { var accountIdRule []interface{} for _, accountIdItem := range accountId { @@ -5617,17 +5606,17 @@ func (_CoreGoerli *CoreGoerliFilterer) FilterIssuanceFeePaid(opts *bind.FilterOp poolIdRule = append(poolIdRule, poolIdItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "IssuanceFeePaid", accountIdRule, poolIdRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "IssuanceFeePaid", accountIdRule, poolIdRule) if err != nil { return nil, err } - return &CoreGoerliIssuanceFeePaidIterator{contract: _CoreGoerli.contract, event: "IssuanceFeePaid", logs: logs, sub: sub}, nil + return &CoreIssuanceFeePaidIterator{contract: _Core.contract, event: "IssuanceFeePaid", logs: logs, sub: sub}, nil } // WatchIssuanceFeePaid is a free log subscription operation binding the contract event 0x28d0fb10e1c8ce51490a16fb3b40bf23f8064f7c624d3a3852ad66683a25995d. // // Solidity: event IssuanceFeePaid(uint128 indexed accountId, uint128 indexed poolId, address collateralType, uint256 feeAmount) -func (_CoreGoerli *CoreGoerliFilterer) WatchIssuanceFeePaid(opts *bind.WatchOpts, sink chan<- *CoreGoerliIssuanceFeePaid, accountId []*big.Int, poolId []*big.Int) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchIssuanceFeePaid(opts *bind.WatchOpts, sink chan<- *CoreIssuanceFeePaid, accountId []*big.Int, poolId []*big.Int) (event.Subscription, error) { var accountIdRule []interface{} for _, accountIdItem := range accountId { @@ -5638,7 +5627,7 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchIssuanceFeePaid(opts *bind.WatchOpts poolIdRule = append(poolIdRule, poolIdItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "IssuanceFeePaid", accountIdRule, poolIdRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "IssuanceFeePaid", accountIdRule, poolIdRule) if err != nil { return nil, err } @@ -5648,8 +5637,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchIssuanceFeePaid(opts *bind.WatchOpts select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliIssuanceFeePaid) - if err := _CoreGoerli.contract.UnpackLog(event, "IssuanceFeePaid", log); err != nil { + event := new(CoreIssuanceFeePaid) + if err := _Core.contract.UnpackLog(event, "IssuanceFeePaid", log); err != nil { return err } event.Raw = log @@ -5673,18 +5662,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchIssuanceFeePaid(opts *bind.WatchOpts // ParseIssuanceFeePaid is a log parse operation binding the contract event 0x28d0fb10e1c8ce51490a16fb3b40bf23f8064f7c624d3a3852ad66683a25995d. // // Solidity: event IssuanceFeePaid(uint128 indexed accountId, uint128 indexed poolId, address collateralType, uint256 feeAmount) -func (_CoreGoerli *CoreGoerliFilterer) ParseIssuanceFeePaid(log types.Log) (*CoreGoerliIssuanceFeePaid, error) { - event := new(CoreGoerliIssuanceFeePaid) - if err := _CoreGoerli.contract.UnpackLog(event, "IssuanceFeePaid", log); err != nil { +func (_Core *CoreFilterer) ParseIssuanceFeePaid(log types.Log) (*CoreIssuanceFeePaid, error) { + event := new(CoreIssuanceFeePaid) + if err := _Core.contract.UnpackLog(event, "IssuanceFeePaid", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliLiquidationIterator is returned from FilterLiquidation and is used to iterate over the raw logs and unpacked data for Liquidation events raised by the CoreGoerli contract. -type CoreGoerliLiquidationIterator struct { - Event *CoreGoerliLiquidation // Event containing the contract specifics and raw log +// CoreLiquidationIterator is returned from FilterLiquidation and is used to iterate over the raw logs and unpacked data for Liquidation events raised by the Core contract. +type CoreLiquidationIterator struct { + Event *CoreLiquidation // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -5698,7 +5687,7 @@ type CoreGoerliLiquidationIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliLiquidationIterator) Next() bool { +func (it *CoreLiquidationIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -5707,7 +5696,7 @@ func (it *CoreGoerliLiquidationIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliLiquidation) + it.Event = new(CoreLiquidation) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -5722,7 +5711,7 @@ func (it *CoreGoerliLiquidationIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliLiquidation) + it.Event = new(CoreLiquidation) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -5738,19 +5727,19 @@ func (it *CoreGoerliLiquidationIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliLiquidationIterator) Error() error { +func (it *CoreLiquidationIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliLiquidationIterator) Close() error { +func (it *CoreLiquidationIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliLiquidation represents a Liquidation event raised by the CoreGoerli contract. -type CoreGoerliLiquidation struct { +// CoreLiquidation represents a Liquidation event raised by the Core contract. +type CoreLiquidation struct { AccountId *big.Int PoolId *big.Int CollateralType common.Address @@ -5763,7 +5752,7 @@ type CoreGoerliLiquidation struct { // FilterLiquidation is a free log retrieval operation binding the contract event 0xe6c1b26644f880854bf954d4186be9f0b2d06d50fa0484b596e79d409c07a5fd. // // Solidity: event Liquidation(uint128 indexed accountId, uint128 indexed poolId, address indexed collateralType, (uint256,uint256,uint256) liquidationData, uint128 liquidateAsAccountId, address sender) -func (_CoreGoerli *CoreGoerliFilterer) FilterLiquidation(opts *bind.FilterOpts, accountId []*big.Int, poolId []*big.Int, collateralType []common.Address) (*CoreGoerliLiquidationIterator, error) { +func (_Core *CoreFilterer) FilterLiquidation(opts *bind.FilterOpts, accountId []*big.Int, poolId []*big.Int, collateralType []common.Address) (*CoreLiquidationIterator, error) { var accountIdRule []interface{} for _, accountIdItem := range accountId { @@ -5778,17 +5767,17 @@ func (_CoreGoerli *CoreGoerliFilterer) FilterLiquidation(opts *bind.FilterOpts, collateralTypeRule = append(collateralTypeRule, collateralTypeItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "Liquidation", accountIdRule, poolIdRule, collateralTypeRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "Liquidation", accountIdRule, poolIdRule, collateralTypeRule) if err != nil { return nil, err } - return &CoreGoerliLiquidationIterator{contract: _CoreGoerli.contract, event: "Liquidation", logs: logs, sub: sub}, nil + return &CoreLiquidationIterator{contract: _Core.contract, event: "Liquidation", logs: logs, sub: sub}, nil } // WatchLiquidation is a free log subscription operation binding the contract event 0xe6c1b26644f880854bf954d4186be9f0b2d06d50fa0484b596e79d409c07a5fd. // // Solidity: event Liquidation(uint128 indexed accountId, uint128 indexed poolId, address indexed collateralType, (uint256,uint256,uint256) liquidationData, uint128 liquidateAsAccountId, address sender) -func (_CoreGoerli *CoreGoerliFilterer) WatchLiquidation(opts *bind.WatchOpts, sink chan<- *CoreGoerliLiquidation, accountId []*big.Int, poolId []*big.Int, collateralType []common.Address) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchLiquidation(opts *bind.WatchOpts, sink chan<- *CoreLiquidation, accountId []*big.Int, poolId []*big.Int, collateralType []common.Address) (event.Subscription, error) { var accountIdRule []interface{} for _, accountIdItem := range accountId { @@ -5803,7 +5792,7 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchLiquidation(opts *bind.WatchOpts, si collateralTypeRule = append(collateralTypeRule, collateralTypeItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "Liquidation", accountIdRule, poolIdRule, collateralTypeRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "Liquidation", accountIdRule, poolIdRule, collateralTypeRule) if err != nil { return nil, err } @@ -5813,8 +5802,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchLiquidation(opts *bind.WatchOpts, si select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliLiquidation) - if err := _CoreGoerli.contract.UnpackLog(event, "Liquidation", log); err != nil { + event := new(CoreLiquidation) + if err := _Core.contract.UnpackLog(event, "Liquidation", log); err != nil { return err } event.Raw = log @@ -5838,18 +5827,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchLiquidation(opts *bind.WatchOpts, si // ParseLiquidation is a log parse operation binding the contract event 0xe6c1b26644f880854bf954d4186be9f0b2d06d50fa0484b596e79d409c07a5fd. // // Solidity: event Liquidation(uint128 indexed accountId, uint128 indexed poolId, address indexed collateralType, (uint256,uint256,uint256) liquidationData, uint128 liquidateAsAccountId, address sender) -func (_CoreGoerli *CoreGoerliFilterer) ParseLiquidation(log types.Log) (*CoreGoerliLiquidation, error) { - event := new(CoreGoerliLiquidation) - if err := _CoreGoerli.contract.UnpackLog(event, "Liquidation", log); err != nil { +func (_Core *CoreFilterer) ParseLiquidation(log types.Log) (*CoreLiquidation, error) { + event := new(CoreLiquidation) + if err := _Core.contract.UnpackLog(event, "Liquidation", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliMarketCollateralDepositedIterator is returned from FilterMarketCollateralDeposited and is used to iterate over the raw logs and unpacked data for MarketCollateralDeposited events raised by the CoreGoerli contract. -type CoreGoerliMarketCollateralDepositedIterator struct { - Event *CoreGoerliMarketCollateralDeposited // Event containing the contract specifics and raw log +// CoreMarketCollateralDepositedIterator is returned from FilterMarketCollateralDeposited and is used to iterate over the raw logs and unpacked data for MarketCollateralDeposited events raised by the Core contract. +type CoreMarketCollateralDepositedIterator struct { + Event *CoreMarketCollateralDeposited // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -5863,7 +5852,7 @@ type CoreGoerliMarketCollateralDepositedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliMarketCollateralDepositedIterator) Next() bool { +func (it *CoreMarketCollateralDepositedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -5872,7 +5861,7 @@ func (it *CoreGoerliMarketCollateralDepositedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliMarketCollateralDeposited) + it.Event = new(CoreMarketCollateralDeposited) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -5887,7 +5876,7 @@ func (it *CoreGoerliMarketCollateralDepositedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliMarketCollateralDeposited) + it.Event = new(CoreMarketCollateralDeposited) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -5903,19 +5892,19 @@ func (it *CoreGoerliMarketCollateralDepositedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliMarketCollateralDepositedIterator) Error() error { +func (it *CoreMarketCollateralDepositedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliMarketCollateralDepositedIterator) Close() error { +func (it *CoreMarketCollateralDepositedIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliMarketCollateralDeposited represents a MarketCollateralDeposited event raised by the CoreGoerli contract. -type CoreGoerliMarketCollateralDeposited struct { +// CoreMarketCollateralDeposited represents a MarketCollateralDeposited event raised by the Core contract. +type CoreMarketCollateralDeposited struct { MarketId *big.Int CollateralType common.Address TokenAmount *big.Int @@ -5926,7 +5915,7 @@ type CoreGoerliMarketCollateralDeposited struct { // FilterMarketCollateralDeposited is a free log retrieval operation binding the contract event 0x6affa35c1a0ba6198bd74578c93e3a0eb32a96af0af26ce8adf06b933212ca1b. // // Solidity: event MarketCollateralDeposited(uint128 indexed marketId, address indexed collateralType, uint256 tokenAmount, address indexed sender) -func (_CoreGoerli *CoreGoerliFilterer) FilterMarketCollateralDeposited(opts *bind.FilterOpts, marketId []*big.Int, collateralType []common.Address, sender []common.Address) (*CoreGoerliMarketCollateralDepositedIterator, error) { +func (_Core *CoreFilterer) FilterMarketCollateralDeposited(opts *bind.FilterOpts, marketId []*big.Int, collateralType []common.Address, sender []common.Address) (*CoreMarketCollateralDepositedIterator, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { @@ -5942,17 +5931,17 @@ func (_CoreGoerli *CoreGoerliFilterer) FilterMarketCollateralDeposited(opts *bin senderRule = append(senderRule, senderItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "MarketCollateralDeposited", marketIdRule, collateralTypeRule, senderRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "MarketCollateralDeposited", marketIdRule, collateralTypeRule, senderRule) if err != nil { return nil, err } - return &CoreGoerliMarketCollateralDepositedIterator{contract: _CoreGoerli.contract, event: "MarketCollateralDeposited", logs: logs, sub: sub}, nil + return &CoreMarketCollateralDepositedIterator{contract: _Core.contract, event: "MarketCollateralDeposited", logs: logs, sub: sub}, nil } // WatchMarketCollateralDeposited is a free log subscription operation binding the contract event 0x6affa35c1a0ba6198bd74578c93e3a0eb32a96af0af26ce8adf06b933212ca1b. // // Solidity: event MarketCollateralDeposited(uint128 indexed marketId, address indexed collateralType, uint256 tokenAmount, address indexed sender) -func (_CoreGoerli *CoreGoerliFilterer) WatchMarketCollateralDeposited(opts *bind.WatchOpts, sink chan<- *CoreGoerliMarketCollateralDeposited, marketId []*big.Int, collateralType []common.Address, sender []common.Address) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchMarketCollateralDeposited(opts *bind.WatchOpts, sink chan<- *CoreMarketCollateralDeposited, marketId []*big.Int, collateralType []common.Address, sender []common.Address) (event.Subscription, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { @@ -5968,7 +5957,7 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchMarketCollateralDeposited(opts *bind senderRule = append(senderRule, senderItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "MarketCollateralDeposited", marketIdRule, collateralTypeRule, senderRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "MarketCollateralDeposited", marketIdRule, collateralTypeRule, senderRule) if err != nil { return nil, err } @@ -5978,8 +5967,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchMarketCollateralDeposited(opts *bind select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliMarketCollateralDeposited) - if err := _CoreGoerli.contract.UnpackLog(event, "MarketCollateralDeposited", log); err != nil { + event := new(CoreMarketCollateralDeposited) + if err := _Core.contract.UnpackLog(event, "MarketCollateralDeposited", log); err != nil { return err } event.Raw = log @@ -6003,18 +5992,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchMarketCollateralDeposited(opts *bind // ParseMarketCollateralDeposited is a log parse operation binding the contract event 0x6affa35c1a0ba6198bd74578c93e3a0eb32a96af0af26ce8adf06b933212ca1b. // // Solidity: event MarketCollateralDeposited(uint128 indexed marketId, address indexed collateralType, uint256 tokenAmount, address indexed sender) -func (_CoreGoerli *CoreGoerliFilterer) ParseMarketCollateralDeposited(log types.Log) (*CoreGoerliMarketCollateralDeposited, error) { - event := new(CoreGoerliMarketCollateralDeposited) - if err := _CoreGoerli.contract.UnpackLog(event, "MarketCollateralDeposited", log); err != nil { +func (_Core *CoreFilterer) ParseMarketCollateralDeposited(log types.Log) (*CoreMarketCollateralDeposited, error) { + event := new(CoreMarketCollateralDeposited) + if err := _Core.contract.UnpackLog(event, "MarketCollateralDeposited", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliMarketCollateralWithdrawnIterator is returned from FilterMarketCollateralWithdrawn and is used to iterate over the raw logs and unpacked data for MarketCollateralWithdrawn events raised by the CoreGoerli contract. -type CoreGoerliMarketCollateralWithdrawnIterator struct { - Event *CoreGoerliMarketCollateralWithdrawn // Event containing the contract specifics and raw log +// CoreMarketCollateralWithdrawnIterator is returned from FilterMarketCollateralWithdrawn and is used to iterate over the raw logs and unpacked data for MarketCollateralWithdrawn events raised by the Core contract. +type CoreMarketCollateralWithdrawnIterator struct { + Event *CoreMarketCollateralWithdrawn // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -6028,7 +6017,7 @@ type CoreGoerliMarketCollateralWithdrawnIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliMarketCollateralWithdrawnIterator) Next() bool { +func (it *CoreMarketCollateralWithdrawnIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -6037,7 +6026,7 @@ func (it *CoreGoerliMarketCollateralWithdrawnIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliMarketCollateralWithdrawn) + it.Event = new(CoreMarketCollateralWithdrawn) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -6052,7 +6041,7 @@ func (it *CoreGoerliMarketCollateralWithdrawnIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliMarketCollateralWithdrawn) + it.Event = new(CoreMarketCollateralWithdrawn) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -6068,19 +6057,19 @@ func (it *CoreGoerliMarketCollateralWithdrawnIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliMarketCollateralWithdrawnIterator) Error() error { +func (it *CoreMarketCollateralWithdrawnIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliMarketCollateralWithdrawnIterator) Close() error { +func (it *CoreMarketCollateralWithdrawnIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliMarketCollateralWithdrawn represents a MarketCollateralWithdrawn event raised by the CoreGoerli contract. -type CoreGoerliMarketCollateralWithdrawn struct { +// CoreMarketCollateralWithdrawn represents a MarketCollateralWithdrawn event raised by the Core contract. +type CoreMarketCollateralWithdrawn struct { MarketId *big.Int CollateralType common.Address TokenAmount *big.Int @@ -6091,7 +6080,7 @@ type CoreGoerliMarketCollateralWithdrawn struct { // FilterMarketCollateralWithdrawn is a free log retrieval operation binding the contract event 0x31fd88ca973dd7ee814313c50c2aaa7cd2d2142634582332b1e2671e6d97fd9a. // // Solidity: event MarketCollateralWithdrawn(uint128 indexed marketId, address indexed collateralType, uint256 tokenAmount, address indexed sender) -func (_CoreGoerli *CoreGoerliFilterer) FilterMarketCollateralWithdrawn(opts *bind.FilterOpts, marketId []*big.Int, collateralType []common.Address, sender []common.Address) (*CoreGoerliMarketCollateralWithdrawnIterator, error) { +func (_Core *CoreFilterer) FilterMarketCollateralWithdrawn(opts *bind.FilterOpts, marketId []*big.Int, collateralType []common.Address, sender []common.Address) (*CoreMarketCollateralWithdrawnIterator, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { @@ -6107,17 +6096,17 @@ func (_CoreGoerli *CoreGoerliFilterer) FilterMarketCollateralWithdrawn(opts *bin senderRule = append(senderRule, senderItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "MarketCollateralWithdrawn", marketIdRule, collateralTypeRule, senderRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "MarketCollateralWithdrawn", marketIdRule, collateralTypeRule, senderRule) if err != nil { return nil, err } - return &CoreGoerliMarketCollateralWithdrawnIterator{contract: _CoreGoerli.contract, event: "MarketCollateralWithdrawn", logs: logs, sub: sub}, nil + return &CoreMarketCollateralWithdrawnIterator{contract: _Core.contract, event: "MarketCollateralWithdrawn", logs: logs, sub: sub}, nil } // WatchMarketCollateralWithdrawn is a free log subscription operation binding the contract event 0x31fd88ca973dd7ee814313c50c2aaa7cd2d2142634582332b1e2671e6d97fd9a. // // Solidity: event MarketCollateralWithdrawn(uint128 indexed marketId, address indexed collateralType, uint256 tokenAmount, address indexed sender) -func (_CoreGoerli *CoreGoerliFilterer) WatchMarketCollateralWithdrawn(opts *bind.WatchOpts, sink chan<- *CoreGoerliMarketCollateralWithdrawn, marketId []*big.Int, collateralType []common.Address, sender []common.Address) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchMarketCollateralWithdrawn(opts *bind.WatchOpts, sink chan<- *CoreMarketCollateralWithdrawn, marketId []*big.Int, collateralType []common.Address, sender []common.Address) (event.Subscription, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { @@ -6133,7 +6122,7 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchMarketCollateralWithdrawn(opts *bind senderRule = append(senderRule, senderItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "MarketCollateralWithdrawn", marketIdRule, collateralTypeRule, senderRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "MarketCollateralWithdrawn", marketIdRule, collateralTypeRule, senderRule) if err != nil { return nil, err } @@ -6143,8 +6132,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchMarketCollateralWithdrawn(opts *bind select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliMarketCollateralWithdrawn) - if err := _CoreGoerli.contract.UnpackLog(event, "MarketCollateralWithdrawn", log); err != nil { + event := new(CoreMarketCollateralWithdrawn) + if err := _Core.contract.UnpackLog(event, "MarketCollateralWithdrawn", log); err != nil { return err } event.Raw = log @@ -6168,18 +6157,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchMarketCollateralWithdrawn(opts *bind // ParseMarketCollateralWithdrawn is a log parse operation binding the contract event 0x31fd88ca973dd7ee814313c50c2aaa7cd2d2142634582332b1e2671e6d97fd9a. // // Solidity: event MarketCollateralWithdrawn(uint128 indexed marketId, address indexed collateralType, uint256 tokenAmount, address indexed sender) -func (_CoreGoerli *CoreGoerliFilterer) ParseMarketCollateralWithdrawn(log types.Log) (*CoreGoerliMarketCollateralWithdrawn, error) { - event := new(CoreGoerliMarketCollateralWithdrawn) - if err := _CoreGoerli.contract.UnpackLog(event, "MarketCollateralWithdrawn", log); err != nil { +func (_Core *CoreFilterer) ParseMarketCollateralWithdrawn(log types.Log) (*CoreMarketCollateralWithdrawn, error) { + event := new(CoreMarketCollateralWithdrawn) + if err := _Core.contract.UnpackLog(event, "MarketCollateralWithdrawn", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliMarketRegisteredIterator is returned from FilterMarketRegistered and is used to iterate over the raw logs and unpacked data for MarketRegistered events raised by the CoreGoerli contract. -type CoreGoerliMarketRegisteredIterator struct { - Event *CoreGoerliMarketRegistered // Event containing the contract specifics and raw log +// CoreMarketRegisteredIterator is returned from FilterMarketRegistered and is used to iterate over the raw logs and unpacked data for MarketRegistered events raised by the Core contract. +type CoreMarketRegisteredIterator struct { + Event *CoreMarketRegistered // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -6193,7 +6182,7 @@ type CoreGoerliMarketRegisteredIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliMarketRegisteredIterator) Next() bool { +func (it *CoreMarketRegisteredIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -6202,7 +6191,7 @@ func (it *CoreGoerliMarketRegisteredIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliMarketRegistered) + it.Event = new(CoreMarketRegistered) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -6217,7 +6206,7 @@ func (it *CoreGoerliMarketRegisteredIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliMarketRegistered) + it.Event = new(CoreMarketRegistered) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -6233,19 +6222,19 @@ func (it *CoreGoerliMarketRegisteredIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliMarketRegisteredIterator) Error() error { +func (it *CoreMarketRegisteredIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliMarketRegisteredIterator) Close() error { +func (it *CoreMarketRegisteredIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliMarketRegistered represents a MarketRegistered event raised by the CoreGoerli contract. -type CoreGoerliMarketRegistered struct { +// CoreMarketRegistered represents a MarketRegistered event raised by the Core contract. +type CoreMarketRegistered struct { Market common.Address MarketId *big.Int Sender common.Address @@ -6255,7 +6244,7 @@ type CoreGoerliMarketRegistered struct { // FilterMarketRegistered is a free log retrieval operation binding the contract event 0xeb87361ace8c1947e121293eb214f68d889d9cf273c48246b38c3cbf185748d0. // // Solidity: event MarketRegistered(address indexed market, uint128 indexed marketId, address indexed sender) -func (_CoreGoerli *CoreGoerliFilterer) FilterMarketRegistered(opts *bind.FilterOpts, market []common.Address, marketId []*big.Int, sender []common.Address) (*CoreGoerliMarketRegisteredIterator, error) { +func (_Core *CoreFilterer) FilterMarketRegistered(opts *bind.FilterOpts, market []common.Address, marketId []*big.Int, sender []common.Address) (*CoreMarketRegisteredIterator, error) { var marketRule []interface{} for _, marketItem := range market { @@ -6270,17 +6259,17 @@ func (_CoreGoerli *CoreGoerliFilterer) FilterMarketRegistered(opts *bind.FilterO senderRule = append(senderRule, senderItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "MarketRegistered", marketRule, marketIdRule, senderRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "MarketRegistered", marketRule, marketIdRule, senderRule) if err != nil { return nil, err } - return &CoreGoerliMarketRegisteredIterator{contract: _CoreGoerli.contract, event: "MarketRegistered", logs: logs, sub: sub}, nil + return &CoreMarketRegisteredIterator{contract: _Core.contract, event: "MarketRegistered", logs: logs, sub: sub}, nil } // WatchMarketRegistered is a free log subscription operation binding the contract event 0xeb87361ace8c1947e121293eb214f68d889d9cf273c48246b38c3cbf185748d0. // // Solidity: event MarketRegistered(address indexed market, uint128 indexed marketId, address indexed sender) -func (_CoreGoerli *CoreGoerliFilterer) WatchMarketRegistered(opts *bind.WatchOpts, sink chan<- *CoreGoerliMarketRegistered, market []common.Address, marketId []*big.Int, sender []common.Address) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchMarketRegistered(opts *bind.WatchOpts, sink chan<- *CoreMarketRegistered, market []common.Address, marketId []*big.Int, sender []common.Address) (event.Subscription, error) { var marketRule []interface{} for _, marketItem := range market { @@ -6295,7 +6284,7 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchMarketRegistered(opts *bind.WatchOpt senderRule = append(senderRule, senderItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "MarketRegistered", marketRule, marketIdRule, senderRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "MarketRegistered", marketRule, marketIdRule, senderRule) if err != nil { return nil, err } @@ -6305,8 +6294,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchMarketRegistered(opts *bind.WatchOpt select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliMarketRegistered) - if err := _CoreGoerli.contract.UnpackLog(event, "MarketRegistered", log); err != nil { + event := new(CoreMarketRegistered) + if err := _Core.contract.UnpackLog(event, "MarketRegistered", log); err != nil { return err } event.Raw = log @@ -6330,18 +6319,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchMarketRegistered(opts *bind.WatchOpt // ParseMarketRegistered is a log parse operation binding the contract event 0xeb87361ace8c1947e121293eb214f68d889d9cf273c48246b38c3cbf185748d0. // // Solidity: event MarketRegistered(address indexed market, uint128 indexed marketId, address indexed sender) -func (_CoreGoerli *CoreGoerliFilterer) ParseMarketRegistered(log types.Log) (*CoreGoerliMarketRegistered, error) { - event := new(CoreGoerliMarketRegistered) - if err := _CoreGoerli.contract.UnpackLog(event, "MarketRegistered", log); err != nil { +func (_Core *CoreFilterer) ParseMarketRegistered(log types.Log) (*CoreMarketRegistered, error) { + event := new(CoreMarketRegistered) + if err := _Core.contract.UnpackLog(event, "MarketRegistered", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliMarketSystemFeePaidIterator is returned from FilterMarketSystemFeePaid and is used to iterate over the raw logs and unpacked data for MarketSystemFeePaid events raised by the CoreGoerli contract. -type CoreGoerliMarketSystemFeePaidIterator struct { - Event *CoreGoerliMarketSystemFeePaid // Event containing the contract specifics and raw log +// CoreMarketSystemFeePaidIterator is returned from FilterMarketSystemFeePaid and is used to iterate over the raw logs and unpacked data for MarketSystemFeePaid events raised by the Core contract. +type CoreMarketSystemFeePaidIterator struct { + Event *CoreMarketSystemFeePaid // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -6355,7 +6344,7 @@ type CoreGoerliMarketSystemFeePaidIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliMarketSystemFeePaidIterator) Next() bool { +func (it *CoreMarketSystemFeePaidIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -6364,7 +6353,7 @@ func (it *CoreGoerliMarketSystemFeePaidIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliMarketSystemFeePaid) + it.Event = new(CoreMarketSystemFeePaid) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -6379,7 +6368,7 @@ func (it *CoreGoerliMarketSystemFeePaidIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliMarketSystemFeePaid) + it.Event = new(CoreMarketSystemFeePaid) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -6395,19 +6384,19 @@ func (it *CoreGoerliMarketSystemFeePaidIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliMarketSystemFeePaidIterator) Error() error { +func (it *CoreMarketSystemFeePaidIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliMarketSystemFeePaidIterator) Close() error { +func (it *CoreMarketSystemFeePaidIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliMarketSystemFeePaid represents a MarketSystemFeePaid event raised by the CoreGoerli contract. -type CoreGoerliMarketSystemFeePaid struct { +// CoreMarketSystemFeePaid represents a MarketSystemFeePaid event raised by the Core contract. +type CoreMarketSystemFeePaid struct { MarketId *big.Int FeeAmount *big.Int Raw types.Log // Blockchain specific contextual infos @@ -6416,31 +6405,31 @@ type CoreGoerliMarketSystemFeePaid struct { // FilterMarketSystemFeePaid is a free log retrieval operation binding the contract event 0x8b69fed8aed97ef9572216662359ece45fa52f2b5ff44a78b7ec3c5ef05153f8. // // Solidity: event MarketSystemFeePaid(uint128 indexed marketId, uint256 feeAmount) -func (_CoreGoerli *CoreGoerliFilterer) FilterMarketSystemFeePaid(opts *bind.FilterOpts, marketId []*big.Int) (*CoreGoerliMarketSystemFeePaidIterator, error) { +func (_Core *CoreFilterer) FilterMarketSystemFeePaid(opts *bind.FilterOpts, marketId []*big.Int) (*CoreMarketSystemFeePaidIterator, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { marketIdRule = append(marketIdRule, marketIdItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "MarketSystemFeePaid", marketIdRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "MarketSystemFeePaid", marketIdRule) if err != nil { return nil, err } - return &CoreGoerliMarketSystemFeePaidIterator{contract: _CoreGoerli.contract, event: "MarketSystemFeePaid", logs: logs, sub: sub}, nil + return &CoreMarketSystemFeePaidIterator{contract: _Core.contract, event: "MarketSystemFeePaid", logs: logs, sub: sub}, nil } // WatchMarketSystemFeePaid is a free log subscription operation binding the contract event 0x8b69fed8aed97ef9572216662359ece45fa52f2b5ff44a78b7ec3c5ef05153f8. // // Solidity: event MarketSystemFeePaid(uint128 indexed marketId, uint256 feeAmount) -func (_CoreGoerli *CoreGoerliFilterer) WatchMarketSystemFeePaid(opts *bind.WatchOpts, sink chan<- *CoreGoerliMarketSystemFeePaid, marketId []*big.Int) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchMarketSystemFeePaid(opts *bind.WatchOpts, sink chan<- *CoreMarketSystemFeePaid, marketId []*big.Int) (event.Subscription, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { marketIdRule = append(marketIdRule, marketIdItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "MarketSystemFeePaid", marketIdRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "MarketSystemFeePaid", marketIdRule) if err != nil { return nil, err } @@ -6450,8 +6439,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchMarketSystemFeePaid(opts *bind.Watch select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliMarketSystemFeePaid) - if err := _CoreGoerli.contract.UnpackLog(event, "MarketSystemFeePaid", log); err != nil { + event := new(CoreMarketSystemFeePaid) + if err := _Core.contract.UnpackLog(event, "MarketSystemFeePaid", log); err != nil { return err } event.Raw = log @@ -6475,18 +6464,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchMarketSystemFeePaid(opts *bind.Watch // ParseMarketSystemFeePaid is a log parse operation binding the contract event 0x8b69fed8aed97ef9572216662359ece45fa52f2b5ff44a78b7ec3c5ef05153f8. // // Solidity: event MarketSystemFeePaid(uint128 indexed marketId, uint256 feeAmount) -func (_CoreGoerli *CoreGoerliFilterer) ParseMarketSystemFeePaid(log types.Log) (*CoreGoerliMarketSystemFeePaid, error) { - event := new(CoreGoerliMarketSystemFeePaid) - if err := _CoreGoerli.contract.UnpackLog(event, "MarketSystemFeePaid", log); err != nil { +func (_Core *CoreFilterer) ParseMarketSystemFeePaid(log types.Log) (*CoreMarketSystemFeePaid, error) { + event := new(CoreMarketSystemFeePaid) + if err := _Core.contract.UnpackLog(event, "MarketSystemFeePaid", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliMarketUsdDepositedIterator is returned from FilterMarketUsdDeposited and is used to iterate over the raw logs and unpacked data for MarketUsdDeposited events raised by the CoreGoerli contract. -type CoreGoerliMarketUsdDepositedIterator struct { - Event *CoreGoerliMarketUsdDeposited // Event containing the contract specifics and raw log +// CoreMarketUsdDepositedIterator is returned from FilterMarketUsdDeposited and is used to iterate over the raw logs and unpacked data for MarketUsdDeposited events raised by the Core contract. +type CoreMarketUsdDepositedIterator struct { + Event *CoreMarketUsdDeposited // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -6500,7 +6489,7 @@ type CoreGoerliMarketUsdDepositedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliMarketUsdDepositedIterator) Next() bool { +func (it *CoreMarketUsdDepositedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -6509,7 +6498,7 @@ func (it *CoreGoerliMarketUsdDepositedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliMarketUsdDeposited) + it.Event = new(CoreMarketUsdDeposited) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -6524,7 +6513,7 @@ func (it *CoreGoerliMarketUsdDepositedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliMarketUsdDeposited) + it.Event = new(CoreMarketUsdDeposited) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -6540,19 +6529,19 @@ func (it *CoreGoerliMarketUsdDepositedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliMarketUsdDepositedIterator) Error() error { +func (it *CoreMarketUsdDepositedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliMarketUsdDepositedIterator) Close() error { +func (it *CoreMarketUsdDepositedIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliMarketUsdDeposited represents a MarketUsdDeposited event raised by the CoreGoerli contract. -type CoreGoerliMarketUsdDeposited struct { +// CoreMarketUsdDeposited represents a MarketUsdDeposited event raised by the Core contract. +type CoreMarketUsdDeposited struct { MarketId *big.Int Target common.Address Amount *big.Int @@ -6563,7 +6552,7 @@ type CoreGoerliMarketUsdDeposited struct { // FilterMarketUsdDeposited is a free log retrieval operation binding the contract event 0xcbdbec7c74466ca0e764de5f6bca5bef859e31a7d6284be22ac6b4beabddf835. // // Solidity: event MarketUsdDeposited(uint128 indexed marketId, address indexed target, uint256 amount, address indexed market) -func (_CoreGoerli *CoreGoerliFilterer) FilterMarketUsdDeposited(opts *bind.FilterOpts, marketId []*big.Int, target []common.Address, market []common.Address) (*CoreGoerliMarketUsdDepositedIterator, error) { +func (_Core *CoreFilterer) FilterMarketUsdDeposited(opts *bind.FilterOpts, marketId []*big.Int, target []common.Address, market []common.Address) (*CoreMarketUsdDepositedIterator, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { @@ -6579,17 +6568,17 @@ func (_CoreGoerli *CoreGoerliFilterer) FilterMarketUsdDeposited(opts *bind.Filte marketRule = append(marketRule, marketItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "MarketUsdDeposited", marketIdRule, targetRule, marketRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "MarketUsdDeposited", marketIdRule, targetRule, marketRule) if err != nil { return nil, err } - return &CoreGoerliMarketUsdDepositedIterator{contract: _CoreGoerli.contract, event: "MarketUsdDeposited", logs: logs, sub: sub}, nil + return &CoreMarketUsdDepositedIterator{contract: _Core.contract, event: "MarketUsdDeposited", logs: logs, sub: sub}, nil } // WatchMarketUsdDeposited is a free log subscription operation binding the contract event 0xcbdbec7c74466ca0e764de5f6bca5bef859e31a7d6284be22ac6b4beabddf835. // // Solidity: event MarketUsdDeposited(uint128 indexed marketId, address indexed target, uint256 amount, address indexed market) -func (_CoreGoerli *CoreGoerliFilterer) WatchMarketUsdDeposited(opts *bind.WatchOpts, sink chan<- *CoreGoerliMarketUsdDeposited, marketId []*big.Int, target []common.Address, market []common.Address) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchMarketUsdDeposited(opts *bind.WatchOpts, sink chan<- *CoreMarketUsdDeposited, marketId []*big.Int, target []common.Address, market []common.Address) (event.Subscription, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { @@ -6605,7 +6594,7 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchMarketUsdDeposited(opts *bind.WatchO marketRule = append(marketRule, marketItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "MarketUsdDeposited", marketIdRule, targetRule, marketRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "MarketUsdDeposited", marketIdRule, targetRule, marketRule) if err != nil { return nil, err } @@ -6615,8 +6604,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchMarketUsdDeposited(opts *bind.WatchO select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliMarketUsdDeposited) - if err := _CoreGoerli.contract.UnpackLog(event, "MarketUsdDeposited", log); err != nil { + event := new(CoreMarketUsdDeposited) + if err := _Core.contract.UnpackLog(event, "MarketUsdDeposited", log); err != nil { return err } event.Raw = log @@ -6640,18 +6629,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchMarketUsdDeposited(opts *bind.WatchO // ParseMarketUsdDeposited is a log parse operation binding the contract event 0xcbdbec7c74466ca0e764de5f6bca5bef859e31a7d6284be22ac6b4beabddf835. // // Solidity: event MarketUsdDeposited(uint128 indexed marketId, address indexed target, uint256 amount, address indexed market) -func (_CoreGoerli *CoreGoerliFilterer) ParseMarketUsdDeposited(log types.Log) (*CoreGoerliMarketUsdDeposited, error) { - event := new(CoreGoerliMarketUsdDeposited) - if err := _CoreGoerli.contract.UnpackLog(event, "MarketUsdDeposited", log); err != nil { +func (_Core *CoreFilterer) ParseMarketUsdDeposited(log types.Log) (*CoreMarketUsdDeposited, error) { + event := new(CoreMarketUsdDeposited) + if err := _Core.contract.UnpackLog(event, "MarketUsdDeposited", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliMarketUsdWithdrawnIterator is returned from FilterMarketUsdWithdrawn and is used to iterate over the raw logs and unpacked data for MarketUsdWithdrawn events raised by the CoreGoerli contract. -type CoreGoerliMarketUsdWithdrawnIterator struct { - Event *CoreGoerliMarketUsdWithdrawn // Event containing the contract specifics and raw log +// CoreMarketUsdWithdrawnIterator is returned from FilterMarketUsdWithdrawn and is used to iterate over the raw logs and unpacked data for MarketUsdWithdrawn events raised by the Core contract. +type CoreMarketUsdWithdrawnIterator struct { + Event *CoreMarketUsdWithdrawn // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -6665,7 +6654,7 @@ type CoreGoerliMarketUsdWithdrawnIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliMarketUsdWithdrawnIterator) Next() bool { +func (it *CoreMarketUsdWithdrawnIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -6674,7 +6663,7 @@ func (it *CoreGoerliMarketUsdWithdrawnIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliMarketUsdWithdrawn) + it.Event = new(CoreMarketUsdWithdrawn) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -6689,7 +6678,7 @@ func (it *CoreGoerliMarketUsdWithdrawnIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliMarketUsdWithdrawn) + it.Event = new(CoreMarketUsdWithdrawn) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -6705,19 +6694,19 @@ func (it *CoreGoerliMarketUsdWithdrawnIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliMarketUsdWithdrawnIterator) Error() error { +func (it *CoreMarketUsdWithdrawnIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliMarketUsdWithdrawnIterator) Close() error { +func (it *CoreMarketUsdWithdrawnIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliMarketUsdWithdrawn represents a MarketUsdWithdrawn event raised by the CoreGoerli contract. -type CoreGoerliMarketUsdWithdrawn struct { +// CoreMarketUsdWithdrawn represents a MarketUsdWithdrawn event raised by the Core contract. +type CoreMarketUsdWithdrawn struct { MarketId *big.Int Target common.Address Amount *big.Int @@ -6728,7 +6717,7 @@ type CoreGoerliMarketUsdWithdrawn struct { // FilterMarketUsdWithdrawn is a free log retrieval operation binding the contract event 0x8669e4526579b1f1da479be2f96d1c7953fff439a4f98362a1c9ca07fe42ba41. // // Solidity: event MarketUsdWithdrawn(uint128 indexed marketId, address indexed target, uint256 amount, address indexed market) -func (_CoreGoerli *CoreGoerliFilterer) FilterMarketUsdWithdrawn(opts *bind.FilterOpts, marketId []*big.Int, target []common.Address, market []common.Address) (*CoreGoerliMarketUsdWithdrawnIterator, error) { +func (_Core *CoreFilterer) FilterMarketUsdWithdrawn(opts *bind.FilterOpts, marketId []*big.Int, target []common.Address, market []common.Address) (*CoreMarketUsdWithdrawnIterator, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { @@ -6744,17 +6733,17 @@ func (_CoreGoerli *CoreGoerliFilterer) FilterMarketUsdWithdrawn(opts *bind.Filte marketRule = append(marketRule, marketItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "MarketUsdWithdrawn", marketIdRule, targetRule, marketRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "MarketUsdWithdrawn", marketIdRule, targetRule, marketRule) if err != nil { return nil, err } - return &CoreGoerliMarketUsdWithdrawnIterator{contract: _CoreGoerli.contract, event: "MarketUsdWithdrawn", logs: logs, sub: sub}, nil + return &CoreMarketUsdWithdrawnIterator{contract: _Core.contract, event: "MarketUsdWithdrawn", logs: logs, sub: sub}, nil } // WatchMarketUsdWithdrawn is a free log subscription operation binding the contract event 0x8669e4526579b1f1da479be2f96d1c7953fff439a4f98362a1c9ca07fe42ba41. // // Solidity: event MarketUsdWithdrawn(uint128 indexed marketId, address indexed target, uint256 amount, address indexed market) -func (_CoreGoerli *CoreGoerliFilterer) WatchMarketUsdWithdrawn(opts *bind.WatchOpts, sink chan<- *CoreGoerliMarketUsdWithdrawn, marketId []*big.Int, target []common.Address, market []common.Address) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchMarketUsdWithdrawn(opts *bind.WatchOpts, sink chan<- *CoreMarketUsdWithdrawn, marketId []*big.Int, target []common.Address, market []common.Address) (event.Subscription, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { @@ -6770,7 +6759,7 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchMarketUsdWithdrawn(opts *bind.WatchO marketRule = append(marketRule, marketItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "MarketUsdWithdrawn", marketIdRule, targetRule, marketRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "MarketUsdWithdrawn", marketIdRule, targetRule, marketRule) if err != nil { return nil, err } @@ -6780,8 +6769,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchMarketUsdWithdrawn(opts *bind.WatchO select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliMarketUsdWithdrawn) - if err := _CoreGoerli.contract.UnpackLog(event, "MarketUsdWithdrawn", log); err != nil { + event := new(CoreMarketUsdWithdrawn) + if err := _Core.contract.UnpackLog(event, "MarketUsdWithdrawn", log); err != nil { return err } event.Raw = log @@ -6805,18 +6794,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchMarketUsdWithdrawn(opts *bind.WatchO // ParseMarketUsdWithdrawn is a log parse operation binding the contract event 0x8669e4526579b1f1da479be2f96d1c7953fff439a4f98362a1c9ca07fe42ba41. // // Solidity: event MarketUsdWithdrawn(uint128 indexed marketId, address indexed target, uint256 amount, address indexed market) -func (_CoreGoerli *CoreGoerliFilterer) ParseMarketUsdWithdrawn(log types.Log) (*CoreGoerliMarketUsdWithdrawn, error) { - event := new(CoreGoerliMarketUsdWithdrawn) - if err := _CoreGoerli.contract.UnpackLog(event, "MarketUsdWithdrawn", log); err != nil { +func (_Core *CoreFilterer) ParseMarketUsdWithdrawn(log types.Log) (*CoreMarketUsdWithdrawn, error) { + event := new(CoreMarketUsdWithdrawn) + if err := _Core.contract.UnpackLog(event, "MarketUsdWithdrawn", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliMaximumMarketCollateralConfiguredIterator is returned from FilterMaximumMarketCollateralConfigured and is used to iterate over the raw logs and unpacked data for MaximumMarketCollateralConfigured events raised by the CoreGoerli contract. -type CoreGoerliMaximumMarketCollateralConfiguredIterator struct { - Event *CoreGoerliMaximumMarketCollateralConfigured // Event containing the contract specifics and raw log +// CoreMaximumMarketCollateralConfiguredIterator is returned from FilterMaximumMarketCollateralConfigured and is used to iterate over the raw logs and unpacked data for MaximumMarketCollateralConfigured events raised by the Core contract. +type CoreMaximumMarketCollateralConfiguredIterator struct { + Event *CoreMaximumMarketCollateralConfigured // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -6830,7 +6819,7 @@ type CoreGoerliMaximumMarketCollateralConfiguredIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliMaximumMarketCollateralConfiguredIterator) Next() bool { +func (it *CoreMaximumMarketCollateralConfiguredIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -6839,7 +6828,7 @@ func (it *CoreGoerliMaximumMarketCollateralConfiguredIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliMaximumMarketCollateralConfigured) + it.Event = new(CoreMaximumMarketCollateralConfigured) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -6854,7 +6843,7 @@ func (it *CoreGoerliMaximumMarketCollateralConfiguredIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliMaximumMarketCollateralConfigured) + it.Event = new(CoreMaximumMarketCollateralConfigured) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -6870,19 +6859,19 @@ func (it *CoreGoerliMaximumMarketCollateralConfiguredIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliMaximumMarketCollateralConfiguredIterator) Error() error { +func (it *CoreMaximumMarketCollateralConfiguredIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliMaximumMarketCollateralConfiguredIterator) Close() error { +func (it *CoreMaximumMarketCollateralConfiguredIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliMaximumMarketCollateralConfigured represents a MaximumMarketCollateralConfigured event raised by the CoreGoerli contract. -type CoreGoerliMaximumMarketCollateralConfigured struct { +// CoreMaximumMarketCollateralConfigured represents a MaximumMarketCollateralConfigured event raised by the Core contract. +type CoreMaximumMarketCollateralConfigured struct { MarketId *big.Int CollateralType common.Address SystemAmount *big.Int @@ -6893,7 +6882,7 @@ type CoreGoerliMaximumMarketCollateralConfigured struct { // FilterMaximumMarketCollateralConfigured is a free log retrieval operation binding the contract event 0x499c8fcfbc4341c37dcf444c890d42ef888d46aa586f97ceb20577c2635c8075. // // Solidity: event MaximumMarketCollateralConfigured(uint128 indexed marketId, address indexed collateralType, uint256 systemAmount, address indexed owner) -func (_CoreGoerli *CoreGoerliFilterer) FilterMaximumMarketCollateralConfigured(opts *bind.FilterOpts, marketId []*big.Int, collateralType []common.Address, owner []common.Address) (*CoreGoerliMaximumMarketCollateralConfiguredIterator, error) { +func (_Core *CoreFilterer) FilterMaximumMarketCollateralConfigured(opts *bind.FilterOpts, marketId []*big.Int, collateralType []common.Address, owner []common.Address) (*CoreMaximumMarketCollateralConfiguredIterator, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { @@ -6909,17 +6898,17 @@ func (_CoreGoerli *CoreGoerliFilterer) FilterMaximumMarketCollateralConfigured(o ownerRule = append(ownerRule, ownerItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "MaximumMarketCollateralConfigured", marketIdRule, collateralTypeRule, ownerRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "MaximumMarketCollateralConfigured", marketIdRule, collateralTypeRule, ownerRule) if err != nil { return nil, err } - return &CoreGoerliMaximumMarketCollateralConfiguredIterator{contract: _CoreGoerli.contract, event: "MaximumMarketCollateralConfigured", logs: logs, sub: sub}, nil + return &CoreMaximumMarketCollateralConfiguredIterator{contract: _Core.contract, event: "MaximumMarketCollateralConfigured", logs: logs, sub: sub}, nil } // WatchMaximumMarketCollateralConfigured is a free log subscription operation binding the contract event 0x499c8fcfbc4341c37dcf444c890d42ef888d46aa586f97ceb20577c2635c8075. // // Solidity: event MaximumMarketCollateralConfigured(uint128 indexed marketId, address indexed collateralType, uint256 systemAmount, address indexed owner) -func (_CoreGoerli *CoreGoerliFilterer) WatchMaximumMarketCollateralConfigured(opts *bind.WatchOpts, sink chan<- *CoreGoerliMaximumMarketCollateralConfigured, marketId []*big.Int, collateralType []common.Address, owner []common.Address) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchMaximumMarketCollateralConfigured(opts *bind.WatchOpts, sink chan<- *CoreMaximumMarketCollateralConfigured, marketId []*big.Int, collateralType []common.Address, owner []common.Address) (event.Subscription, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { @@ -6935,7 +6924,7 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchMaximumMarketCollateralConfigured(op ownerRule = append(ownerRule, ownerItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "MaximumMarketCollateralConfigured", marketIdRule, collateralTypeRule, ownerRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "MaximumMarketCollateralConfigured", marketIdRule, collateralTypeRule, ownerRule) if err != nil { return nil, err } @@ -6945,8 +6934,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchMaximumMarketCollateralConfigured(op select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliMaximumMarketCollateralConfigured) - if err := _CoreGoerli.contract.UnpackLog(event, "MaximumMarketCollateralConfigured", log); err != nil { + event := new(CoreMaximumMarketCollateralConfigured) + if err := _Core.contract.UnpackLog(event, "MaximumMarketCollateralConfigured", log); err != nil { return err } event.Raw = log @@ -6970,18 +6959,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchMaximumMarketCollateralConfigured(op // ParseMaximumMarketCollateralConfigured is a log parse operation binding the contract event 0x499c8fcfbc4341c37dcf444c890d42ef888d46aa586f97ceb20577c2635c8075. // // Solidity: event MaximumMarketCollateralConfigured(uint128 indexed marketId, address indexed collateralType, uint256 systemAmount, address indexed owner) -func (_CoreGoerli *CoreGoerliFilterer) ParseMaximumMarketCollateralConfigured(log types.Log) (*CoreGoerliMaximumMarketCollateralConfigured, error) { - event := new(CoreGoerliMaximumMarketCollateralConfigured) - if err := _CoreGoerli.contract.UnpackLog(event, "MaximumMarketCollateralConfigured", log); err != nil { +func (_Core *CoreFilterer) ParseMaximumMarketCollateralConfigured(log types.Log) (*CoreMaximumMarketCollateralConfigured, error) { + event := new(CoreMaximumMarketCollateralConfigured) + if err := _Core.contract.UnpackLog(event, "MaximumMarketCollateralConfigured", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliNewSupportedCrossChainNetworkIterator is returned from FilterNewSupportedCrossChainNetwork and is used to iterate over the raw logs and unpacked data for NewSupportedCrossChainNetwork events raised by the CoreGoerli contract. -type CoreGoerliNewSupportedCrossChainNetworkIterator struct { - Event *CoreGoerliNewSupportedCrossChainNetwork // Event containing the contract specifics and raw log +// CoreNewSupportedCrossChainNetworkIterator is returned from FilterNewSupportedCrossChainNetwork and is used to iterate over the raw logs and unpacked data for NewSupportedCrossChainNetwork events raised by the Core contract. +type CoreNewSupportedCrossChainNetworkIterator struct { + Event *CoreNewSupportedCrossChainNetwork // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -6995,7 +6984,7 @@ type CoreGoerliNewSupportedCrossChainNetworkIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliNewSupportedCrossChainNetworkIterator) Next() bool { +func (it *CoreNewSupportedCrossChainNetworkIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -7004,7 +6993,7 @@ func (it *CoreGoerliNewSupportedCrossChainNetworkIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliNewSupportedCrossChainNetwork) + it.Event = new(CoreNewSupportedCrossChainNetwork) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -7019,7 +7008,7 @@ func (it *CoreGoerliNewSupportedCrossChainNetworkIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliNewSupportedCrossChainNetwork) + it.Event = new(CoreNewSupportedCrossChainNetwork) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -7035,19 +7024,19 @@ func (it *CoreGoerliNewSupportedCrossChainNetworkIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliNewSupportedCrossChainNetworkIterator) Error() error { +func (it *CoreNewSupportedCrossChainNetworkIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliNewSupportedCrossChainNetworkIterator) Close() error { +func (it *CoreNewSupportedCrossChainNetworkIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliNewSupportedCrossChainNetwork represents a NewSupportedCrossChainNetwork event raised by the CoreGoerli contract. -type CoreGoerliNewSupportedCrossChainNetwork struct { +// CoreNewSupportedCrossChainNetwork represents a NewSupportedCrossChainNetwork event raised by the Core contract. +type CoreNewSupportedCrossChainNetwork struct { NewChainId uint64 Raw types.Log // Blockchain specific contextual infos } @@ -7055,21 +7044,21 @@ type CoreGoerliNewSupportedCrossChainNetwork struct { // FilterNewSupportedCrossChainNetwork is a free log retrieval operation binding the contract event 0x1874eb2a5288e478dcedf1d33291bd7293eeef5946ec516d2ef54a364b3f63d8. // // Solidity: event NewSupportedCrossChainNetwork(uint64 newChainId) -func (_CoreGoerli *CoreGoerliFilterer) FilterNewSupportedCrossChainNetwork(opts *bind.FilterOpts) (*CoreGoerliNewSupportedCrossChainNetworkIterator, error) { +func (_Core *CoreFilterer) FilterNewSupportedCrossChainNetwork(opts *bind.FilterOpts) (*CoreNewSupportedCrossChainNetworkIterator, error) { - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "NewSupportedCrossChainNetwork") + logs, sub, err := _Core.contract.FilterLogs(opts, "NewSupportedCrossChainNetwork") if err != nil { return nil, err } - return &CoreGoerliNewSupportedCrossChainNetworkIterator{contract: _CoreGoerli.contract, event: "NewSupportedCrossChainNetwork", logs: logs, sub: sub}, nil + return &CoreNewSupportedCrossChainNetworkIterator{contract: _Core.contract, event: "NewSupportedCrossChainNetwork", logs: logs, sub: sub}, nil } // WatchNewSupportedCrossChainNetwork is a free log subscription operation binding the contract event 0x1874eb2a5288e478dcedf1d33291bd7293eeef5946ec516d2ef54a364b3f63d8. // // Solidity: event NewSupportedCrossChainNetwork(uint64 newChainId) -func (_CoreGoerli *CoreGoerliFilterer) WatchNewSupportedCrossChainNetwork(opts *bind.WatchOpts, sink chan<- *CoreGoerliNewSupportedCrossChainNetwork) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchNewSupportedCrossChainNetwork(opts *bind.WatchOpts, sink chan<- *CoreNewSupportedCrossChainNetwork) (event.Subscription, error) { - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "NewSupportedCrossChainNetwork") + logs, sub, err := _Core.contract.WatchLogs(opts, "NewSupportedCrossChainNetwork") if err != nil { return nil, err } @@ -7079,8 +7068,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchNewSupportedCrossChainNetwork(opts * select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliNewSupportedCrossChainNetwork) - if err := _CoreGoerli.contract.UnpackLog(event, "NewSupportedCrossChainNetwork", log); err != nil { + event := new(CoreNewSupportedCrossChainNetwork) + if err := _Core.contract.UnpackLog(event, "NewSupportedCrossChainNetwork", log); err != nil { return err } event.Raw = log @@ -7104,18 +7093,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchNewSupportedCrossChainNetwork(opts * // ParseNewSupportedCrossChainNetwork is a log parse operation binding the contract event 0x1874eb2a5288e478dcedf1d33291bd7293eeef5946ec516d2ef54a364b3f63d8. // // Solidity: event NewSupportedCrossChainNetwork(uint64 newChainId) -func (_CoreGoerli *CoreGoerliFilterer) ParseNewSupportedCrossChainNetwork(log types.Log) (*CoreGoerliNewSupportedCrossChainNetwork, error) { - event := new(CoreGoerliNewSupportedCrossChainNetwork) - if err := _CoreGoerli.contract.UnpackLog(event, "NewSupportedCrossChainNetwork", log); err != nil { +func (_Core *CoreFilterer) ParseNewSupportedCrossChainNetwork(log types.Log) (*CoreNewSupportedCrossChainNetwork, error) { + event := new(CoreNewSupportedCrossChainNetwork) + if err := _Core.contract.UnpackLog(event, "NewSupportedCrossChainNetwork", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliOwnerChangedIterator is returned from FilterOwnerChanged and is used to iterate over the raw logs and unpacked data for OwnerChanged events raised by the CoreGoerli contract. -type CoreGoerliOwnerChangedIterator struct { - Event *CoreGoerliOwnerChanged // Event containing the contract specifics and raw log +// CoreOwnerChangedIterator is returned from FilterOwnerChanged and is used to iterate over the raw logs and unpacked data for OwnerChanged events raised by the Core contract. +type CoreOwnerChangedIterator struct { + Event *CoreOwnerChanged // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -7129,7 +7118,7 @@ type CoreGoerliOwnerChangedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliOwnerChangedIterator) Next() bool { +func (it *CoreOwnerChangedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -7138,7 +7127,7 @@ func (it *CoreGoerliOwnerChangedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliOwnerChanged) + it.Event = new(CoreOwnerChanged) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -7153,7 +7142,7 @@ func (it *CoreGoerliOwnerChangedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliOwnerChanged) + it.Event = new(CoreOwnerChanged) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -7169,19 +7158,19 @@ func (it *CoreGoerliOwnerChangedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliOwnerChangedIterator) Error() error { +func (it *CoreOwnerChangedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliOwnerChangedIterator) Close() error { +func (it *CoreOwnerChangedIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliOwnerChanged represents a OwnerChanged event raised by the CoreGoerli contract. -type CoreGoerliOwnerChanged struct { +// CoreOwnerChanged represents a OwnerChanged event raised by the Core contract. +type CoreOwnerChanged struct { OldOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos @@ -7190,21 +7179,21 @@ type CoreGoerliOwnerChanged struct { // FilterOwnerChanged is a free log retrieval operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c. // // Solidity: event OwnerChanged(address oldOwner, address newOwner) -func (_CoreGoerli *CoreGoerliFilterer) FilterOwnerChanged(opts *bind.FilterOpts) (*CoreGoerliOwnerChangedIterator, error) { +func (_Core *CoreFilterer) FilterOwnerChanged(opts *bind.FilterOpts) (*CoreOwnerChangedIterator, error) { - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "OwnerChanged") + logs, sub, err := _Core.contract.FilterLogs(opts, "OwnerChanged") if err != nil { return nil, err } - return &CoreGoerliOwnerChangedIterator{contract: _CoreGoerli.contract, event: "OwnerChanged", logs: logs, sub: sub}, nil + return &CoreOwnerChangedIterator{contract: _Core.contract, event: "OwnerChanged", logs: logs, sub: sub}, nil } // WatchOwnerChanged is a free log subscription operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c. // // Solidity: event OwnerChanged(address oldOwner, address newOwner) -func (_CoreGoerli *CoreGoerliFilterer) WatchOwnerChanged(opts *bind.WatchOpts, sink chan<- *CoreGoerliOwnerChanged) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchOwnerChanged(opts *bind.WatchOpts, sink chan<- *CoreOwnerChanged) (event.Subscription, error) { - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "OwnerChanged") + logs, sub, err := _Core.contract.WatchLogs(opts, "OwnerChanged") if err != nil { return nil, err } @@ -7214,8 +7203,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchOwnerChanged(opts *bind.WatchOpts, s select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliOwnerChanged) - if err := _CoreGoerli.contract.UnpackLog(event, "OwnerChanged", log); err != nil { + event := new(CoreOwnerChanged) + if err := _Core.contract.UnpackLog(event, "OwnerChanged", log); err != nil { return err } event.Raw = log @@ -7239,18 +7228,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchOwnerChanged(opts *bind.WatchOpts, s // ParseOwnerChanged is a log parse operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c. // // Solidity: event OwnerChanged(address oldOwner, address newOwner) -func (_CoreGoerli *CoreGoerliFilterer) ParseOwnerChanged(log types.Log) (*CoreGoerliOwnerChanged, error) { - event := new(CoreGoerliOwnerChanged) - if err := _CoreGoerli.contract.UnpackLog(event, "OwnerChanged", log); err != nil { +func (_Core *CoreFilterer) ParseOwnerChanged(log types.Log) (*CoreOwnerChanged, error) { + event := new(CoreOwnerChanged) + if err := _Core.contract.UnpackLog(event, "OwnerChanged", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliOwnerNominatedIterator is returned from FilterOwnerNominated and is used to iterate over the raw logs and unpacked data for OwnerNominated events raised by the CoreGoerli contract. -type CoreGoerliOwnerNominatedIterator struct { - Event *CoreGoerliOwnerNominated // Event containing the contract specifics and raw log +// CoreOwnerNominatedIterator is returned from FilterOwnerNominated and is used to iterate over the raw logs and unpacked data for OwnerNominated events raised by the Core contract. +type CoreOwnerNominatedIterator struct { + Event *CoreOwnerNominated // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -7264,7 +7253,7 @@ type CoreGoerliOwnerNominatedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliOwnerNominatedIterator) Next() bool { +func (it *CoreOwnerNominatedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -7273,7 +7262,7 @@ func (it *CoreGoerliOwnerNominatedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliOwnerNominated) + it.Event = new(CoreOwnerNominated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -7288,7 +7277,7 @@ func (it *CoreGoerliOwnerNominatedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliOwnerNominated) + it.Event = new(CoreOwnerNominated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -7304,19 +7293,19 @@ func (it *CoreGoerliOwnerNominatedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliOwnerNominatedIterator) Error() error { +func (it *CoreOwnerNominatedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliOwnerNominatedIterator) Close() error { +func (it *CoreOwnerNominatedIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliOwnerNominated represents a OwnerNominated event raised by the CoreGoerli contract. -type CoreGoerliOwnerNominated struct { +// CoreOwnerNominated represents a OwnerNominated event raised by the Core contract. +type CoreOwnerNominated struct { NewOwner common.Address Raw types.Log // Blockchain specific contextual infos } @@ -7324,21 +7313,21 @@ type CoreGoerliOwnerNominated struct { // FilterOwnerNominated is a free log retrieval operation binding the contract event 0x906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22. // // Solidity: event OwnerNominated(address newOwner) -func (_CoreGoerli *CoreGoerliFilterer) FilterOwnerNominated(opts *bind.FilterOpts) (*CoreGoerliOwnerNominatedIterator, error) { +func (_Core *CoreFilterer) FilterOwnerNominated(opts *bind.FilterOpts) (*CoreOwnerNominatedIterator, error) { - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "OwnerNominated") + logs, sub, err := _Core.contract.FilterLogs(opts, "OwnerNominated") if err != nil { return nil, err } - return &CoreGoerliOwnerNominatedIterator{contract: _CoreGoerli.contract, event: "OwnerNominated", logs: logs, sub: sub}, nil + return &CoreOwnerNominatedIterator{contract: _Core.contract, event: "OwnerNominated", logs: logs, sub: sub}, nil } // WatchOwnerNominated is a free log subscription operation binding the contract event 0x906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22. // // Solidity: event OwnerNominated(address newOwner) -func (_CoreGoerli *CoreGoerliFilterer) WatchOwnerNominated(opts *bind.WatchOpts, sink chan<- *CoreGoerliOwnerNominated) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchOwnerNominated(opts *bind.WatchOpts, sink chan<- *CoreOwnerNominated) (event.Subscription, error) { - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "OwnerNominated") + logs, sub, err := _Core.contract.WatchLogs(opts, "OwnerNominated") if err != nil { return nil, err } @@ -7348,8 +7337,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchOwnerNominated(opts *bind.WatchOpts, select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliOwnerNominated) - if err := _CoreGoerli.contract.UnpackLog(event, "OwnerNominated", log); err != nil { + event := new(CoreOwnerNominated) + if err := _Core.contract.UnpackLog(event, "OwnerNominated", log); err != nil { return err } event.Raw = log @@ -7373,18 +7362,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchOwnerNominated(opts *bind.WatchOpts, // ParseOwnerNominated is a log parse operation binding the contract event 0x906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22. // // Solidity: event OwnerNominated(address newOwner) -func (_CoreGoerli *CoreGoerliFilterer) ParseOwnerNominated(log types.Log) (*CoreGoerliOwnerNominated, error) { - event := new(CoreGoerliOwnerNominated) - if err := _CoreGoerli.contract.UnpackLog(event, "OwnerNominated", log); err != nil { +func (_Core *CoreFilterer) ParseOwnerNominated(log types.Log) (*CoreOwnerNominated, error) { + event := new(CoreOwnerNominated) + if err := _Core.contract.UnpackLog(event, "OwnerNominated", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliPermissionGrantedIterator is returned from FilterPermissionGranted and is used to iterate over the raw logs and unpacked data for PermissionGranted events raised by the CoreGoerli contract. -type CoreGoerliPermissionGrantedIterator struct { - Event *CoreGoerliPermissionGranted // Event containing the contract specifics and raw log +// CorePermissionGrantedIterator is returned from FilterPermissionGranted and is used to iterate over the raw logs and unpacked data for PermissionGranted events raised by the Core contract. +type CorePermissionGrantedIterator struct { + Event *CorePermissionGranted // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -7398,7 +7387,7 @@ type CoreGoerliPermissionGrantedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliPermissionGrantedIterator) Next() bool { +func (it *CorePermissionGrantedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -7407,7 +7396,7 @@ func (it *CoreGoerliPermissionGrantedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliPermissionGranted) + it.Event = new(CorePermissionGranted) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -7422,7 +7411,7 @@ func (it *CoreGoerliPermissionGrantedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliPermissionGranted) + it.Event = new(CorePermissionGranted) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -7438,19 +7427,19 @@ func (it *CoreGoerliPermissionGrantedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliPermissionGrantedIterator) Error() error { +func (it *CorePermissionGrantedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliPermissionGrantedIterator) Close() error { +func (it *CorePermissionGrantedIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliPermissionGranted represents a PermissionGranted event raised by the CoreGoerli contract. -type CoreGoerliPermissionGranted struct { +// CorePermissionGranted represents a PermissionGranted event raised by the Core contract. +type CorePermissionGranted struct { AccountId *big.Int Permission [32]byte User common.Address @@ -7461,7 +7450,7 @@ type CoreGoerliPermissionGranted struct { // FilterPermissionGranted is a free log retrieval operation binding the contract event 0x32ff7c3f84299a3543c1e89057e98ba962f4fbe7786c52289e184c57b9a36a50. // // Solidity: event PermissionGranted(uint128 indexed accountId, bytes32 indexed permission, address indexed user, address sender) -func (_CoreGoerli *CoreGoerliFilterer) FilterPermissionGranted(opts *bind.FilterOpts, accountId []*big.Int, permission [][32]byte, user []common.Address) (*CoreGoerliPermissionGrantedIterator, error) { +func (_Core *CoreFilterer) FilterPermissionGranted(opts *bind.FilterOpts, accountId []*big.Int, permission [][32]byte, user []common.Address) (*CorePermissionGrantedIterator, error) { var accountIdRule []interface{} for _, accountIdItem := range accountId { @@ -7476,17 +7465,17 @@ func (_CoreGoerli *CoreGoerliFilterer) FilterPermissionGranted(opts *bind.Filter userRule = append(userRule, userItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "PermissionGranted", accountIdRule, permissionRule, userRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "PermissionGranted", accountIdRule, permissionRule, userRule) if err != nil { return nil, err } - return &CoreGoerliPermissionGrantedIterator{contract: _CoreGoerli.contract, event: "PermissionGranted", logs: logs, sub: sub}, nil + return &CorePermissionGrantedIterator{contract: _Core.contract, event: "PermissionGranted", logs: logs, sub: sub}, nil } // WatchPermissionGranted is a free log subscription operation binding the contract event 0x32ff7c3f84299a3543c1e89057e98ba962f4fbe7786c52289e184c57b9a36a50. // // Solidity: event PermissionGranted(uint128 indexed accountId, bytes32 indexed permission, address indexed user, address sender) -func (_CoreGoerli *CoreGoerliFilterer) WatchPermissionGranted(opts *bind.WatchOpts, sink chan<- *CoreGoerliPermissionGranted, accountId []*big.Int, permission [][32]byte, user []common.Address) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchPermissionGranted(opts *bind.WatchOpts, sink chan<- *CorePermissionGranted, accountId []*big.Int, permission [][32]byte, user []common.Address) (event.Subscription, error) { var accountIdRule []interface{} for _, accountIdItem := range accountId { @@ -7501,7 +7490,7 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchPermissionGranted(opts *bind.WatchOp userRule = append(userRule, userItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "PermissionGranted", accountIdRule, permissionRule, userRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "PermissionGranted", accountIdRule, permissionRule, userRule) if err != nil { return nil, err } @@ -7511,8 +7500,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchPermissionGranted(opts *bind.WatchOp select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliPermissionGranted) - if err := _CoreGoerli.contract.UnpackLog(event, "PermissionGranted", log); err != nil { + event := new(CorePermissionGranted) + if err := _Core.contract.UnpackLog(event, "PermissionGranted", log); err != nil { return err } event.Raw = log @@ -7536,18 +7525,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchPermissionGranted(opts *bind.WatchOp // ParsePermissionGranted is a log parse operation binding the contract event 0x32ff7c3f84299a3543c1e89057e98ba962f4fbe7786c52289e184c57b9a36a50. // // Solidity: event PermissionGranted(uint128 indexed accountId, bytes32 indexed permission, address indexed user, address sender) -func (_CoreGoerli *CoreGoerliFilterer) ParsePermissionGranted(log types.Log) (*CoreGoerliPermissionGranted, error) { - event := new(CoreGoerliPermissionGranted) - if err := _CoreGoerli.contract.UnpackLog(event, "PermissionGranted", log); err != nil { +func (_Core *CoreFilterer) ParsePermissionGranted(log types.Log) (*CorePermissionGranted, error) { + event := new(CorePermissionGranted) + if err := _Core.contract.UnpackLog(event, "PermissionGranted", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliPermissionRevokedIterator is returned from FilterPermissionRevoked and is used to iterate over the raw logs and unpacked data for PermissionRevoked events raised by the CoreGoerli contract. -type CoreGoerliPermissionRevokedIterator struct { - Event *CoreGoerliPermissionRevoked // Event containing the contract specifics and raw log +// CorePermissionRevokedIterator is returned from FilterPermissionRevoked and is used to iterate over the raw logs and unpacked data for PermissionRevoked events raised by the Core contract. +type CorePermissionRevokedIterator struct { + Event *CorePermissionRevoked // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -7561,7 +7550,7 @@ type CoreGoerliPermissionRevokedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliPermissionRevokedIterator) Next() bool { +func (it *CorePermissionRevokedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -7570,7 +7559,7 @@ func (it *CoreGoerliPermissionRevokedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliPermissionRevoked) + it.Event = new(CorePermissionRevoked) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -7585,7 +7574,7 @@ func (it *CoreGoerliPermissionRevokedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliPermissionRevoked) + it.Event = new(CorePermissionRevoked) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -7601,19 +7590,19 @@ func (it *CoreGoerliPermissionRevokedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliPermissionRevokedIterator) Error() error { +func (it *CorePermissionRevokedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliPermissionRevokedIterator) Close() error { +func (it *CorePermissionRevokedIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliPermissionRevoked represents a PermissionRevoked event raised by the CoreGoerli contract. -type CoreGoerliPermissionRevoked struct { +// CorePermissionRevoked represents a PermissionRevoked event raised by the Core contract. +type CorePermissionRevoked struct { AccountId *big.Int Permission [32]byte User common.Address @@ -7624,7 +7613,7 @@ type CoreGoerliPermissionRevoked struct { // FilterPermissionRevoked is a free log retrieval operation binding the contract event 0x116c7e9cd2db316974fb473babcbcd625be1350842d0319e761d30aefb09a58a. // // Solidity: event PermissionRevoked(uint128 indexed accountId, bytes32 indexed permission, address indexed user, address sender) -func (_CoreGoerli *CoreGoerliFilterer) FilterPermissionRevoked(opts *bind.FilterOpts, accountId []*big.Int, permission [][32]byte, user []common.Address) (*CoreGoerliPermissionRevokedIterator, error) { +func (_Core *CoreFilterer) FilterPermissionRevoked(opts *bind.FilterOpts, accountId []*big.Int, permission [][32]byte, user []common.Address) (*CorePermissionRevokedIterator, error) { var accountIdRule []interface{} for _, accountIdItem := range accountId { @@ -7639,17 +7628,17 @@ func (_CoreGoerli *CoreGoerliFilterer) FilterPermissionRevoked(opts *bind.Filter userRule = append(userRule, userItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "PermissionRevoked", accountIdRule, permissionRule, userRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "PermissionRevoked", accountIdRule, permissionRule, userRule) if err != nil { return nil, err } - return &CoreGoerliPermissionRevokedIterator{contract: _CoreGoerli.contract, event: "PermissionRevoked", logs: logs, sub: sub}, nil + return &CorePermissionRevokedIterator{contract: _Core.contract, event: "PermissionRevoked", logs: logs, sub: sub}, nil } // WatchPermissionRevoked is a free log subscription operation binding the contract event 0x116c7e9cd2db316974fb473babcbcd625be1350842d0319e761d30aefb09a58a. // // Solidity: event PermissionRevoked(uint128 indexed accountId, bytes32 indexed permission, address indexed user, address sender) -func (_CoreGoerli *CoreGoerliFilterer) WatchPermissionRevoked(opts *bind.WatchOpts, sink chan<- *CoreGoerliPermissionRevoked, accountId []*big.Int, permission [][32]byte, user []common.Address) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchPermissionRevoked(opts *bind.WatchOpts, sink chan<- *CorePermissionRevoked, accountId []*big.Int, permission [][32]byte, user []common.Address) (event.Subscription, error) { var accountIdRule []interface{} for _, accountIdItem := range accountId { @@ -7664,7 +7653,7 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchPermissionRevoked(opts *bind.WatchOp userRule = append(userRule, userItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "PermissionRevoked", accountIdRule, permissionRule, userRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "PermissionRevoked", accountIdRule, permissionRule, userRule) if err != nil { return nil, err } @@ -7674,8 +7663,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchPermissionRevoked(opts *bind.WatchOp select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliPermissionRevoked) - if err := _CoreGoerli.contract.UnpackLog(event, "PermissionRevoked", log); err != nil { + event := new(CorePermissionRevoked) + if err := _Core.contract.UnpackLog(event, "PermissionRevoked", log); err != nil { return err } event.Raw = log @@ -7699,18 +7688,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchPermissionRevoked(opts *bind.WatchOp // ParsePermissionRevoked is a log parse operation binding the contract event 0x116c7e9cd2db316974fb473babcbcd625be1350842d0319e761d30aefb09a58a. // // Solidity: event PermissionRevoked(uint128 indexed accountId, bytes32 indexed permission, address indexed user, address sender) -func (_CoreGoerli *CoreGoerliFilterer) ParsePermissionRevoked(log types.Log) (*CoreGoerliPermissionRevoked, error) { - event := new(CoreGoerliPermissionRevoked) - if err := _CoreGoerli.contract.UnpackLog(event, "PermissionRevoked", log); err != nil { +func (_Core *CoreFilterer) ParsePermissionRevoked(log types.Log) (*CorePermissionRevoked, error) { + event := new(CorePermissionRevoked) + if err := _Core.contract.UnpackLog(event, "PermissionRevoked", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliPoolApprovedAddedIterator is returned from FilterPoolApprovedAdded and is used to iterate over the raw logs and unpacked data for PoolApprovedAdded events raised by the CoreGoerli contract. -type CoreGoerliPoolApprovedAddedIterator struct { - Event *CoreGoerliPoolApprovedAdded // Event containing the contract specifics and raw log +// CorePoolApprovedAddedIterator is returned from FilterPoolApprovedAdded and is used to iterate over the raw logs and unpacked data for PoolApprovedAdded events raised by the Core contract. +type CorePoolApprovedAddedIterator struct { + Event *CorePoolApprovedAdded // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -7724,7 +7713,7 @@ type CoreGoerliPoolApprovedAddedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliPoolApprovedAddedIterator) Next() bool { +func (it *CorePoolApprovedAddedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -7733,7 +7722,7 @@ func (it *CoreGoerliPoolApprovedAddedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliPoolApprovedAdded) + it.Event = new(CorePoolApprovedAdded) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -7748,7 +7737,7 @@ func (it *CoreGoerliPoolApprovedAddedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliPoolApprovedAdded) + it.Event = new(CorePoolApprovedAdded) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -7764,19 +7753,19 @@ func (it *CoreGoerliPoolApprovedAddedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliPoolApprovedAddedIterator) Error() error { +func (it *CorePoolApprovedAddedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliPoolApprovedAddedIterator) Close() error { +func (it *CorePoolApprovedAddedIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliPoolApprovedAdded represents a PoolApprovedAdded event raised by the CoreGoerli contract. -type CoreGoerliPoolApprovedAdded struct { +// CorePoolApprovedAdded represents a PoolApprovedAdded event raised by the Core contract. +type CorePoolApprovedAdded struct { PoolId *big.Int Raw types.Log // Blockchain specific contextual infos } @@ -7784,21 +7773,21 @@ type CoreGoerliPoolApprovedAdded struct { // FilterPoolApprovedAdded is a free log retrieval operation binding the contract event 0x7d5bdf4e8c44e0b5a8249bf03c2a1febd848cc7f580efd7b1703301c5b1a9e4e. // // Solidity: event PoolApprovedAdded(uint256 poolId) -func (_CoreGoerli *CoreGoerliFilterer) FilterPoolApprovedAdded(opts *bind.FilterOpts) (*CoreGoerliPoolApprovedAddedIterator, error) { +func (_Core *CoreFilterer) FilterPoolApprovedAdded(opts *bind.FilterOpts) (*CorePoolApprovedAddedIterator, error) { - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "PoolApprovedAdded") + logs, sub, err := _Core.contract.FilterLogs(opts, "PoolApprovedAdded") if err != nil { return nil, err } - return &CoreGoerliPoolApprovedAddedIterator{contract: _CoreGoerli.contract, event: "PoolApprovedAdded", logs: logs, sub: sub}, nil + return &CorePoolApprovedAddedIterator{contract: _Core.contract, event: "PoolApprovedAdded", logs: logs, sub: sub}, nil } // WatchPoolApprovedAdded is a free log subscription operation binding the contract event 0x7d5bdf4e8c44e0b5a8249bf03c2a1febd848cc7f580efd7b1703301c5b1a9e4e. // // Solidity: event PoolApprovedAdded(uint256 poolId) -func (_CoreGoerli *CoreGoerliFilterer) WatchPoolApprovedAdded(opts *bind.WatchOpts, sink chan<- *CoreGoerliPoolApprovedAdded) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchPoolApprovedAdded(opts *bind.WatchOpts, sink chan<- *CorePoolApprovedAdded) (event.Subscription, error) { - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "PoolApprovedAdded") + logs, sub, err := _Core.contract.WatchLogs(opts, "PoolApprovedAdded") if err != nil { return nil, err } @@ -7808,8 +7797,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchPoolApprovedAdded(opts *bind.WatchOp select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliPoolApprovedAdded) - if err := _CoreGoerli.contract.UnpackLog(event, "PoolApprovedAdded", log); err != nil { + event := new(CorePoolApprovedAdded) + if err := _Core.contract.UnpackLog(event, "PoolApprovedAdded", log); err != nil { return err } event.Raw = log @@ -7833,18 +7822,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchPoolApprovedAdded(opts *bind.WatchOp // ParsePoolApprovedAdded is a log parse operation binding the contract event 0x7d5bdf4e8c44e0b5a8249bf03c2a1febd848cc7f580efd7b1703301c5b1a9e4e. // // Solidity: event PoolApprovedAdded(uint256 poolId) -func (_CoreGoerli *CoreGoerliFilterer) ParsePoolApprovedAdded(log types.Log) (*CoreGoerliPoolApprovedAdded, error) { - event := new(CoreGoerliPoolApprovedAdded) - if err := _CoreGoerli.contract.UnpackLog(event, "PoolApprovedAdded", log); err != nil { +func (_Core *CoreFilterer) ParsePoolApprovedAdded(log types.Log) (*CorePoolApprovedAdded, error) { + event := new(CorePoolApprovedAdded) + if err := _Core.contract.UnpackLog(event, "PoolApprovedAdded", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliPoolApprovedRemovedIterator is returned from FilterPoolApprovedRemoved and is used to iterate over the raw logs and unpacked data for PoolApprovedRemoved events raised by the CoreGoerli contract. -type CoreGoerliPoolApprovedRemovedIterator struct { - Event *CoreGoerliPoolApprovedRemoved // Event containing the contract specifics and raw log +// CorePoolApprovedRemovedIterator is returned from FilterPoolApprovedRemoved and is used to iterate over the raw logs and unpacked data for PoolApprovedRemoved events raised by the Core contract. +type CorePoolApprovedRemovedIterator struct { + Event *CorePoolApprovedRemoved // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -7858,7 +7847,7 @@ type CoreGoerliPoolApprovedRemovedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliPoolApprovedRemovedIterator) Next() bool { +func (it *CorePoolApprovedRemovedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -7867,7 +7856,7 @@ func (it *CoreGoerliPoolApprovedRemovedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliPoolApprovedRemoved) + it.Event = new(CorePoolApprovedRemoved) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -7882,7 +7871,7 @@ func (it *CoreGoerliPoolApprovedRemovedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliPoolApprovedRemoved) + it.Event = new(CorePoolApprovedRemoved) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -7898,19 +7887,19 @@ func (it *CoreGoerliPoolApprovedRemovedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliPoolApprovedRemovedIterator) Error() error { +func (it *CorePoolApprovedRemovedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliPoolApprovedRemovedIterator) Close() error { +func (it *CorePoolApprovedRemovedIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliPoolApprovedRemoved represents a PoolApprovedRemoved event raised by the CoreGoerli contract. -type CoreGoerliPoolApprovedRemoved struct { +// CorePoolApprovedRemoved represents a PoolApprovedRemoved event raised by the Core contract. +type CorePoolApprovedRemoved struct { PoolId *big.Int Raw types.Log // Blockchain specific contextual infos } @@ -7918,21 +7907,21 @@ type CoreGoerliPoolApprovedRemoved struct { // FilterPoolApprovedRemoved is a free log retrieval operation binding the contract event 0xc1567ee9983f306f073ea7d59a7fb5680ce07985f8b49cc50d00a3a9f748d3c2. // // Solidity: event PoolApprovedRemoved(uint256 poolId) -func (_CoreGoerli *CoreGoerliFilterer) FilterPoolApprovedRemoved(opts *bind.FilterOpts) (*CoreGoerliPoolApprovedRemovedIterator, error) { +func (_Core *CoreFilterer) FilterPoolApprovedRemoved(opts *bind.FilterOpts) (*CorePoolApprovedRemovedIterator, error) { - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "PoolApprovedRemoved") + logs, sub, err := _Core.contract.FilterLogs(opts, "PoolApprovedRemoved") if err != nil { return nil, err } - return &CoreGoerliPoolApprovedRemovedIterator{contract: _CoreGoerli.contract, event: "PoolApprovedRemoved", logs: logs, sub: sub}, nil + return &CorePoolApprovedRemovedIterator{contract: _Core.contract, event: "PoolApprovedRemoved", logs: logs, sub: sub}, nil } // WatchPoolApprovedRemoved is a free log subscription operation binding the contract event 0xc1567ee9983f306f073ea7d59a7fb5680ce07985f8b49cc50d00a3a9f748d3c2. // // Solidity: event PoolApprovedRemoved(uint256 poolId) -func (_CoreGoerli *CoreGoerliFilterer) WatchPoolApprovedRemoved(opts *bind.WatchOpts, sink chan<- *CoreGoerliPoolApprovedRemoved) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchPoolApprovedRemoved(opts *bind.WatchOpts, sink chan<- *CorePoolApprovedRemoved) (event.Subscription, error) { - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "PoolApprovedRemoved") + logs, sub, err := _Core.contract.WatchLogs(opts, "PoolApprovedRemoved") if err != nil { return nil, err } @@ -7942,8 +7931,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchPoolApprovedRemoved(opts *bind.Watch select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliPoolApprovedRemoved) - if err := _CoreGoerli.contract.UnpackLog(event, "PoolApprovedRemoved", log); err != nil { + event := new(CorePoolApprovedRemoved) + if err := _Core.contract.UnpackLog(event, "PoolApprovedRemoved", log); err != nil { return err } event.Raw = log @@ -7967,18 +7956,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchPoolApprovedRemoved(opts *bind.Watch // ParsePoolApprovedRemoved is a log parse operation binding the contract event 0xc1567ee9983f306f073ea7d59a7fb5680ce07985f8b49cc50d00a3a9f748d3c2. // // Solidity: event PoolApprovedRemoved(uint256 poolId) -func (_CoreGoerli *CoreGoerliFilterer) ParsePoolApprovedRemoved(log types.Log) (*CoreGoerliPoolApprovedRemoved, error) { - event := new(CoreGoerliPoolApprovedRemoved) - if err := _CoreGoerli.contract.UnpackLog(event, "PoolApprovedRemoved", log); err != nil { +func (_Core *CoreFilterer) ParsePoolApprovedRemoved(log types.Log) (*CorePoolApprovedRemoved, error) { + event := new(CorePoolApprovedRemoved) + if err := _Core.contract.UnpackLog(event, "PoolApprovedRemoved", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliPoolCollateralConfigurationUpdatedIterator is returned from FilterPoolCollateralConfigurationUpdated and is used to iterate over the raw logs and unpacked data for PoolCollateralConfigurationUpdated events raised by the CoreGoerli contract. -type CoreGoerliPoolCollateralConfigurationUpdatedIterator struct { - Event *CoreGoerliPoolCollateralConfigurationUpdated // Event containing the contract specifics and raw log +// CorePoolCollateralConfigurationUpdatedIterator is returned from FilterPoolCollateralConfigurationUpdated and is used to iterate over the raw logs and unpacked data for PoolCollateralConfigurationUpdated events raised by the Core contract. +type CorePoolCollateralConfigurationUpdatedIterator struct { + Event *CorePoolCollateralConfigurationUpdated // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -7992,7 +7981,7 @@ type CoreGoerliPoolCollateralConfigurationUpdatedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliPoolCollateralConfigurationUpdatedIterator) Next() bool { +func (it *CorePoolCollateralConfigurationUpdatedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -8001,7 +7990,7 @@ func (it *CoreGoerliPoolCollateralConfigurationUpdatedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliPoolCollateralConfigurationUpdated) + it.Event = new(CorePoolCollateralConfigurationUpdated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -8016,7 +8005,7 @@ func (it *CoreGoerliPoolCollateralConfigurationUpdatedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliPoolCollateralConfigurationUpdated) + it.Event = new(CorePoolCollateralConfigurationUpdated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -8032,19 +8021,19 @@ func (it *CoreGoerliPoolCollateralConfigurationUpdatedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliPoolCollateralConfigurationUpdatedIterator) Error() error { +func (it *CorePoolCollateralConfigurationUpdatedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliPoolCollateralConfigurationUpdatedIterator) Close() error { +func (it *CorePoolCollateralConfigurationUpdatedIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliPoolCollateralConfigurationUpdated represents a PoolCollateralConfigurationUpdated event raised by the CoreGoerli contract. -type CoreGoerliPoolCollateralConfigurationUpdated struct { +// CorePoolCollateralConfigurationUpdated represents a PoolCollateralConfigurationUpdated event raised by the Core contract. +type CorePoolCollateralConfigurationUpdated struct { PoolId *big.Int CollateralType common.Address Config PoolCollateralConfigurationData @@ -8054,31 +8043,31 @@ type CoreGoerliPoolCollateralConfigurationUpdated struct { // FilterPoolCollateralConfigurationUpdated is a free log retrieval operation binding the contract event 0x5ebb5c59166ab9735b293a159ee2129e61d16b526867763f25557a275a2aad92. // // Solidity: event PoolCollateralConfigurationUpdated(uint128 indexed poolId, address collateralType, (uint256,uint256) config) -func (_CoreGoerli *CoreGoerliFilterer) FilterPoolCollateralConfigurationUpdated(opts *bind.FilterOpts, poolId []*big.Int) (*CoreGoerliPoolCollateralConfigurationUpdatedIterator, error) { +func (_Core *CoreFilterer) FilterPoolCollateralConfigurationUpdated(opts *bind.FilterOpts, poolId []*big.Int) (*CorePoolCollateralConfigurationUpdatedIterator, error) { var poolIdRule []interface{} for _, poolIdItem := range poolId { poolIdRule = append(poolIdRule, poolIdItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "PoolCollateralConfigurationUpdated", poolIdRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "PoolCollateralConfigurationUpdated", poolIdRule) if err != nil { return nil, err } - return &CoreGoerliPoolCollateralConfigurationUpdatedIterator{contract: _CoreGoerli.contract, event: "PoolCollateralConfigurationUpdated", logs: logs, sub: sub}, nil + return &CorePoolCollateralConfigurationUpdatedIterator{contract: _Core.contract, event: "PoolCollateralConfigurationUpdated", logs: logs, sub: sub}, nil } // WatchPoolCollateralConfigurationUpdated is a free log subscription operation binding the contract event 0x5ebb5c59166ab9735b293a159ee2129e61d16b526867763f25557a275a2aad92. // // Solidity: event PoolCollateralConfigurationUpdated(uint128 indexed poolId, address collateralType, (uint256,uint256) config) -func (_CoreGoerli *CoreGoerliFilterer) WatchPoolCollateralConfigurationUpdated(opts *bind.WatchOpts, sink chan<- *CoreGoerliPoolCollateralConfigurationUpdated, poolId []*big.Int) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchPoolCollateralConfigurationUpdated(opts *bind.WatchOpts, sink chan<- *CorePoolCollateralConfigurationUpdated, poolId []*big.Int) (event.Subscription, error) { var poolIdRule []interface{} for _, poolIdItem := range poolId { poolIdRule = append(poolIdRule, poolIdItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "PoolCollateralConfigurationUpdated", poolIdRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "PoolCollateralConfigurationUpdated", poolIdRule) if err != nil { return nil, err } @@ -8088,8 +8077,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchPoolCollateralConfigurationUpdated(o select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliPoolCollateralConfigurationUpdated) - if err := _CoreGoerli.contract.UnpackLog(event, "PoolCollateralConfigurationUpdated", log); err != nil { + event := new(CorePoolCollateralConfigurationUpdated) + if err := _Core.contract.UnpackLog(event, "PoolCollateralConfigurationUpdated", log); err != nil { return err } event.Raw = log @@ -8113,18 +8102,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchPoolCollateralConfigurationUpdated(o // ParsePoolCollateralConfigurationUpdated is a log parse operation binding the contract event 0x5ebb5c59166ab9735b293a159ee2129e61d16b526867763f25557a275a2aad92. // // Solidity: event PoolCollateralConfigurationUpdated(uint128 indexed poolId, address collateralType, (uint256,uint256) config) -func (_CoreGoerli *CoreGoerliFilterer) ParsePoolCollateralConfigurationUpdated(log types.Log) (*CoreGoerliPoolCollateralConfigurationUpdated, error) { - event := new(CoreGoerliPoolCollateralConfigurationUpdated) - if err := _CoreGoerli.contract.UnpackLog(event, "PoolCollateralConfigurationUpdated", log); err != nil { +func (_Core *CoreFilterer) ParsePoolCollateralConfigurationUpdated(log types.Log) (*CorePoolCollateralConfigurationUpdated, error) { + event := new(CorePoolCollateralConfigurationUpdated) + if err := _Core.contract.UnpackLog(event, "PoolCollateralConfigurationUpdated", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliPoolCollateralDisabledByDefaultSetIterator is returned from FilterPoolCollateralDisabledByDefaultSet and is used to iterate over the raw logs and unpacked data for PoolCollateralDisabledByDefaultSet events raised by the CoreGoerli contract. -type CoreGoerliPoolCollateralDisabledByDefaultSetIterator struct { - Event *CoreGoerliPoolCollateralDisabledByDefaultSet // Event containing the contract specifics and raw log +// CorePoolCollateralDisabledByDefaultSetIterator is returned from FilterPoolCollateralDisabledByDefaultSet and is used to iterate over the raw logs and unpacked data for PoolCollateralDisabledByDefaultSet events raised by the Core contract. +type CorePoolCollateralDisabledByDefaultSetIterator struct { + Event *CorePoolCollateralDisabledByDefaultSet // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -8138,7 +8127,7 @@ type CoreGoerliPoolCollateralDisabledByDefaultSetIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliPoolCollateralDisabledByDefaultSetIterator) Next() bool { +func (it *CorePoolCollateralDisabledByDefaultSetIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -8147,7 +8136,7 @@ func (it *CoreGoerliPoolCollateralDisabledByDefaultSetIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliPoolCollateralDisabledByDefaultSet) + it.Event = new(CorePoolCollateralDisabledByDefaultSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -8162,7 +8151,7 @@ func (it *CoreGoerliPoolCollateralDisabledByDefaultSetIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliPoolCollateralDisabledByDefaultSet) + it.Event = new(CorePoolCollateralDisabledByDefaultSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -8178,19 +8167,19 @@ func (it *CoreGoerliPoolCollateralDisabledByDefaultSetIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliPoolCollateralDisabledByDefaultSetIterator) Error() error { +func (it *CorePoolCollateralDisabledByDefaultSetIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliPoolCollateralDisabledByDefaultSetIterator) Close() error { +func (it *CorePoolCollateralDisabledByDefaultSetIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliPoolCollateralDisabledByDefaultSet represents a PoolCollateralDisabledByDefaultSet event raised by the CoreGoerli contract. -type CoreGoerliPoolCollateralDisabledByDefaultSet struct { +// CorePoolCollateralDisabledByDefaultSet represents a PoolCollateralDisabledByDefaultSet event raised by the Core contract. +type CorePoolCollateralDisabledByDefaultSet struct { PoolId *big.Int Disabled bool Raw types.Log // Blockchain specific contextual infos @@ -8199,21 +8188,21 @@ type CoreGoerliPoolCollateralDisabledByDefaultSet struct { // FilterPoolCollateralDisabledByDefaultSet is a free log retrieval operation binding the contract event 0xe0ed98ef42e6a4a881ae0d3c4459c9ed06a36a2144e02efc11823c6cae515bf2. // // Solidity: event PoolCollateralDisabledByDefaultSet(uint128 poolId, bool disabled) -func (_CoreGoerli *CoreGoerliFilterer) FilterPoolCollateralDisabledByDefaultSet(opts *bind.FilterOpts) (*CoreGoerliPoolCollateralDisabledByDefaultSetIterator, error) { +func (_Core *CoreFilterer) FilterPoolCollateralDisabledByDefaultSet(opts *bind.FilterOpts) (*CorePoolCollateralDisabledByDefaultSetIterator, error) { - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "PoolCollateralDisabledByDefaultSet") + logs, sub, err := _Core.contract.FilterLogs(opts, "PoolCollateralDisabledByDefaultSet") if err != nil { return nil, err } - return &CoreGoerliPoolCollateralDisabledByDefaultSetIterator{contract: _CoreGoerli.contract, event: "PoolCollateralDisabledByDefaultSet", logs: logs, sub: sub}, nil + return &CorePoolCollateralDisabledByDefaultSetIterator{contract: _Core.contract, event: "PoolCollateralDisabledByDefaultSet", logs: logs, sub: sub}, nil } // WatchPoolCollateralDisabledByDefaultSet is a free log subscription operation binding the contract event 0xe0ed98ef42e6a4a881ae0d3c4459c9ed06a36a2144e02efc11823c6cae515bf2. // // Solidity: event PoolCollateralDisabledByDefaultSet(uint128 poolId, bool disabled) -func (_CoreGoerli *CoreGoerliFilterer) WatchPoolCollateralDisabledByDefaultSet(opts *bind.WatchOpts, sink chan<- *CoreGoerliPoolCollateralDisabledByDefaultSet) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchPoolCollateralDisabledByDefaultSet(opts *bind.WatchOpts, sink chan<- *CorePoolCollateralDisabledByDefaultSet) (event.Subscription, error) { - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "PoolCollateralDisabledByDefaultSet") + logs, sub, err := _Core.contract.WatchLogs(opts, "PoolCollateralDisabledByDefaultSet") if err != nil { return nil, err } @@ -8223,8 +8212,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchPoolCollateralDisabledByDefaultSet(o select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliPoolCollateralDisabledByDefaultSet) - if err := _CoreGoerli.contract.UnpackLog(event, "PoolCollateralDisabledByDefaultSet", log); err != nil { + event := new(CorePoolCollateralDisabledByDefaultSet) + if err := _Core.contract.UnpackLog(event, "PoolCollateralDisabledByDefaultSet", log); err != nil { return err } event.Raw = log @@ -8248,18 +8237,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchPoolCollateralDisabledByDefaultSet(o // ParsePoolCollateralDisabledByDefaultSet is a log parse operation binding the contract event 0xe0ed98ef42e6a4a881ae0d3c4459c9ed06a36a2144e02efc11823c6cae515bf2. // // Solidity: event PoolCollateralDisabledByDefaultSet(uint128 poolId, bool disabled) -func (_CoreGoerli *CoreGoerliFilterer) ParsePoolCollateralDisabledByDefaultSet(log types.Log) (*CoreGoerliPoolCollateralDisabledByDefaultSet, error) { - event := new(CoreGoerliPoolCollateralDisabledByDefaultSet) - if err := _CoreGoerli.contract.UnpackLog(event, "PoolCollateralDisabledByDefaultSet", log); err != nil { +func (_Core *CoreFilterer) ParsePoolCollateralDisabledByDefaultSet(log types.Log) (*CorePoolCollateralDisabledByDefaultSet, error) { + event := new(CorePoolCollateralDisabledByDefaultSet) + if err := _Core.contract.UnpackLog(event, "PoolCollateralDisabledByDefaultSet", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliPoolConfigurationSetIterator is returned from FilterPoolConfigurationSet and is used to iterate over the raw logs and unpacked data for PoolConfigurationSet events raised by the CoreGoerli contract. -type CoreGoerliPoolConfigurationSetIterator struct { - Event *CoreGoerliPoolConfigurationSet // Event containing the contract specifics and raw log +// CorePoolConfigurationSetIterator is returned from FilterPoolConfigurationSet and is used to iterate over the raw logs and unpacked data for PoolConfigurationSet events raised by the Core contract. +type CorePoolConfigurationSetIterator struct { + Event *CorePoolConfigurationSet // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -8273,7 +8262,7 @@ type CoreGoerliPoolConfigurationSetIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliPoolConfigurationSetIterator) Next() bool { +func (it *CorePoolConfigurationSetIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -8282,7 +8271,7 @@ func (it *CoreGoerliPoolConfigurationSetIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliPoolConfigurationSet) + it.Event = new(CorePoolConfigurationSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -8297,7 +8286,7 @@ func (it *CoreGoerliPoolConfigurationSetIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliPoolConfigurationSet) + it.Event = new(CorePoolConfigurationSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -8313,19 +8302,19 @@ func (it *CoreGoerliPoolConfigurationSetIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliPoolConfigurationSetIterator) Error() error { +func (it *CorePoolConfigurationSetIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliPoolConfigurationSetIterator) Close() error { +func (it *CorePoolConfigurationSetIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliPoolConfigurationSet represents a PoolConfigurationSet event raised by the CoreGoerli contract. -type CoreGoerliPoolConfigurationSet struct { +// CorePoolConfigurationSet represents a PoolConfigurationSet event raised by the Core contract. +type CorePoolConfigurationSet struct { PoolId *big.Int Markets []MarketConfigurationData Sender common.Address @@ -8335,7 +8324,7 @@ type CoreGoerliPoolConfigurationSet struct { // FilterPoolConfigurationSet is a free log retrieval operation binding the contract event 0xdd812c2e47943d98e6c66b2b9872d1f9270b8523c82eb60ad5c8d580a614081c. // // Solidity: event PoolConfigurationSet(uint128 indexed poolId, (uint128,uint128,int128)[] markets, address indexed sender) -func (_CoreGoerli *CoreGoerliFilterer) FilterPoolConfigurationSet(opts *bind.FilterOpts, poolId []*big.Int, sender []common.Address) (*CoreGoerliPoolConfigurationSetIterator, error) { +func (_Core *CoreFilterer) FilterPoolConfigurationSet(opts *bind.FilterOpts, poolId []*big.Int, sender []common.Address) (*CorePoolConfigurationSetIterator, error) { var poolIdRule []interface{} for _, poolIdItem := range poolId { @@ -8347,17 +8336,17 @@ func (_CoreGoerli *CoreGoerliFilterer) FilterPoolConfigurationSet(opts *bind.Fil senderRule = append(senderRule, senderItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "PoolConfigurationSet", poolIdRule, senderRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "PoolConfigurationSet", poolIdRule, senderRule) if err != nil { return nil, err } - return &CoreGoerliPoolConfigurationSetIterator{contract: _CoreGoerli.contract, event: "PoolConfigurationSet", logs: logs, sub: sub}, nil + return &CorePoolConfigurationSetIterator{contract: _Core.contract, event: "PoolConfigurationSet", logs: logs, sub: sub}, nil } // WatchPoolConfigurationSet is a free log subscription operation binding the contract event 0xdd812c2e47943d98e6c66b2b9872d1f9270b8523c82eb60ad5c8d580a614081c. // // Solidity: event PoolConfigurationSet(uint128 indexed poolId, (uint128,uint128,int128)[] markets, address indexed sender) -func (_CoreGoerli *CoreGoerliFilterer) WatchPoolConfigurationSet(opts *bind.WatchOpts, sink chan<- *CoreGoerliPoolConfigurationSet, poolId []*big.Int, sender []common.Address) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchPoolConfigurationSet(opts *bind.WatchOpts, sink chan<- *CorePoolConfigurationSet, poolId []*big.Int, sender []common.Address) (event.Subscription, error) { var poolIdRule []interface{} for _, poolIdItem := range poolId { @@ -8369,7 +8358,7 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchPoolConfigurationSet(opts *bind.Watc senderRule = append(senderRule, senderItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "PoolConfigurationSet", poolIdRule, senderRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "PoolConfigurationSet", poolIdRule, senderRule) if err != nil { return nil, err } @@ -8379,8 +8368,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchPoolConfigurationSet(opts *bind.Watc select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliPoolConfigurationSet) - if err := _CoreGoerli.contract.UnpackLog(event, "PoolConfigurationSet", log); err != nil { + event := new(CorePoolConfigurationSet) + if err := _Core.contract.UnpackLog(event, "PoolConfigurationSet", log); err != nil { return err } event.Raw = log @@ -8404,18 +8393,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchPoolConfigurationSet(opts *bind.Watc // ParsePoolConfigurationSet is a log parse operation binding the contract event 0xdd812c2e47943d98e6c66b2b9872d1f9270b8523c82eb60ad5c8d580a614081c. // // Solidity: event PoolConfigurationSet(uint128 indexed poolId, (uint128,uint128,int128)[] markets, address indexed sender) -func (_CoreGoerli *CoreGoerliFilterer) ParsePoolConfigurationSet(log types.Log) (*CoreGoerliPoolConfigurationSet, error) { - event := new(CoreGoerliPoolConfigurationSet) - if err := _CoreGoerli.contract.UnpackLog(event, "PoolConfigurationSet", log); err != nil { +func (_Core *CoreFilterer) ParsePoolConfigurationSet(log types.Log) (*CorePoolConfigurationSet, error) { + event := new(CorePoolConfigurationSet) + if err := _Core.contract.UnpackLog(event, "PoolConfigurationSet", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliPoolCreatedIterator is returned from FilterPoolCreated and is used to iterate over the raw logs and unpacked data for PoolCreated events raised by the CoreGoerli contract. -type CoreGoerliPoolCreatedIterator struct { - Event *CoreGoerliPoolCreated // Event containing the contract specifics and raw log +// CorePoolCreatedIterator is returned from FilterPoolCreated and is used to iterate over the raw logs and unpacked data for PoolCreated events raised by the Core contract. +type CorePoolCreatedIterator struct { + Event *CorePoolCreated // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -8429,7 +8418,7 @@ type CoreGoerliPoolCreatedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliPoolCreatedIterator) Next() bool { +func (it *CorePoolCreatedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -8438,7 +8427,7 @@ func (it *CoreGoerliPoolCreatedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliPoolCreated) + it.Event = new(CorePoolCreated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -8453,7 +8442,7 @@ func (it *CoreGoerliPoolCreatedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliPoolCreated) + it.Event = new(CorePoolCreated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -8469,19 +8458,19 @@ func (it *CoreGoerliPoolCreatedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliPoolCreatedIterator) Error() error { +func (it *CorePoolCreatedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliPoolCreatedIterator) Close() error { +func (it *CorePoolCreatedIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliPoolCreated represents a PoolCreated event raised by the CoreGoerli contract. -type CoreGoerliPoolCreated struct { +// CorePoolCreated represents a PoolCreated event raised by the Core contract. +type CorePoolCreated struct { PoolId *big.Int Owner common.Address Sender common.Address @@ -8491,7 +8480,7 @@ type CoreGoerliPoolCreated struct { // FilterPoolCreated is a free log retrieval operation binding the contract event 0xb1517ad708e5f9a104c30d3f1ff749d55833b1d03bf472013c29888e741cf340. // // Solidity: event PoolCreated(uint128 indexed poolId, address indexed owner, address indexed sender) -func (_CoreGoerli *CoreGoerliFilterer) FilterPoolCreated(opts *bind.FilterOpts, poolId []*big.Int, owner []common.Address, sender []common.Address) (*CoreGoerliPoolCreatedIterator, error) { +func (_Core *CoreFilterer) FilterPoolCreated(opts *bind.FilterOpts, poolId []*big.Int, owner []common.Address, sender []common.Address) (*CorePoolCreatedIterator, error) { var poolIdRule []interface{} for _, poolIdItem := range poolId { @@ -8506,17 +8495,17 @@ func (_CoreGoerli *CoreGoerliFilterer) FilterPoolCreated(opts *bind.FilterOpts, senderRule = append(senderRule, senderItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "PoolCreated", poolIdRule, ownerRule, senderRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "PoolCreated", poolIdRule, ownerRule, senderRule) if err != nil { return nil, err } - return &CoreGoerliPoolCreatedIterator{contract: _CoreGoerli.contract, event: "PoolCreated", logs: logs, sub: sub}, nil + return &CorePoolCreatedIterator{contract: _Core.contract, event: "PoolCreated", logs: logs, sub: sub}, nil } // WatchPoolCreated is a free log subscription operation binding the contract event 0xb1517ad708e5f9a104c30d3f1ff749d55833b1d03bf472013c29888e741cf340. // // Solidity: event PoolCreated(uint128 indexed poolId, address indexed owner, address indexed sender) -func (_CoreGoerli *CoreGoerliFilterer) WatchPoolCreated(opts *bind.WatchOpts, sink chan<- *CoreGoerliPoolCreated, poolId []*big.Int, owner []common.Address, sender []common.Address) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchPoolCreated(opts *bind.WatchOpts, sink chan<- *CorePoolCreated, poolId []*big.Int, owner []common.Address, sender []common.Address) (event.Subscription, error) { var poolIdRule []interface{} for _, poolIdItem := range poolId { @@ -8531,7 +8520,7 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchPoolCreated(opts *bind.WatchOpts, si senderRule = append(senderRule, senderItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "PoolCreated", poolIdRule, ownerRule, senderRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "PoolCreated", poolIdRule, ownerRule, senderRule) if err != nil { return nil, err } @@ -8541,8 +8530,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchPoolCreated(opts *bind.WatchOpts, si select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliPoolCreated) - if err := _CoreGoerli.contract.UnpackLog(event, "PoolCreated", log); err != nil { + event := new(CorePoolCreated) + if err := _Core.contract.UnpackLog(event, "PoolCreated", log); err != nil { return err } event.Raw = log @@ -8566,18 +8555,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchPoolCreated(opts *bind.WatchOpts, si // ParsePoolCreated is a log parse operation binding the contract event 0xb1517ad708e5f9a104c30d3f1ff749d55833b1d03bf472013c29888e741cf340. // // Solidity: event PoolCreated(uint128 indexed poolId, address indexed owner, address indexed sender) -func (_CoreGoerli *CoreGoerliFilterer) ParsePoolCreated(log types.Log) (*CoreGoerliPoolCreated, error) { - event := new(CoreGoerliPoolCreated) - if err := _CoreGoerli.contract.UnpackLog(event, "PoolCreated", log); err != nil { +func (_Core *CoreFilterer) ParsePoolCreated(log types.Log) (*CorePoolCreated, error) { + event := new(CorePoolCreated) + if err := _Core.contract.UnpackLog(event, "PoolCreated", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliPoolNameUpdatedIterator is returned from FilterPoolNameUpdated and is used to iterate over the raw logs and unpacked data for PoolNameUpdated events raised by the CoreGoerli contract. -type CoreGoerliPoolNameUpdatedIterator struct { - Event *CoreGoerliPoolNameUpdated // Event containing the contract specifics and raw log +// CorePoolNameUpdatedIterator is returned from FilterPoolNameUpdated and is used to iterate over the raw logs and unpacked data for PoolNameUpdated events raised by the Core contract. +type CorePoolNameUpdatedIterator struct { + Event *CorePoolNameUpdated // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -8591,7 +8580,7 @@ type CoreGoerliPoolNameUpdatedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliPoolNameUpdatedIterator) Next() bool { +func (it *CorePoolNameUpdatedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -8600,7 +8589,7 @@ func (it *CoreGoerliPoolNameUpdatedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliPoolNameUpdated) + it.Event = new(CorePoolNameUpdated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -8615,7 +8604,7 @@ func (it *CoreGoerliPoolNameUpdatedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliPoolNameUpdated) + it.Event = new(CorePoolNameUpdated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -8631,19 +8620,19 @@ func (it *CoreGoerliPoolNameUpdatedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliPoolNameUpdatedIterator) Error() error { +func (it *CorePoolNameUpdatedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliPoolNameUpdatedIterator) Close() error { +func (it *CorePoolNameUpdatedIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliPoolNameUpdated represents a PoolNameUpdated event raised by the CoreGoerli contract. -type CoreGoerliPoolNameUpdated struct { +// CorePoolNameUpdated represents a PoolNameUpdated event raised by the Core contract. +type CorePoolNameUpdated struct { PoolId *big.Int Name string Sender common.Address @@ -8653,7 +8642,7 @@ type CoreGoerliPoolNameUpdated struct { // FilterPoolNameUpdated is a free log retrieval operation binding the contract event 0x63b42abaf7e145a993f20bc64259f45d09c43d18838ab0bca078b15093ac55f4. // // Solidity: event PoolNameUpdated(uint128 indexed poolId, string name, address indexed sender) -func (_CoreGoerli *CoreGoerliFilterer) FilterPoolNameUpdated(opts *bind.FilterOpts, poolId []*big.Int, sender []common.Address) (*CoreGoerliPoolNameUpdatedIterator, error) { +func (_Core *CoreFilterer) FilterPoolNameUpdated(opts *bind.FilterOpts, poolId []*big.Int, sender []common.Address) (*CorePoolNameUpdatedIterator, error) { var poolIdRule []interface{} for _, poolIdItem := range poolId { @@ -8665,17 +8654,17 @@ func (_CoreGoerli *CoreGoerliFilterer) FilterPoolNameUpdated(opts *bind.FilterOp senderRule = append(senderRule, senderItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "PoolNameUpdated", poolIdRule, senderRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "PoolNameUpdated", poolIdRule, senderRule) if err != nil { return nil, err } - return &CoreGoerliPoolNameUpdatedIterator{contract: _CoreGoerli.contract, event: "PoolNameUpdated", logs: logs, sub: sub}, nil + return &CorePoolNameUpdatedIterator{contract: _Core.contract, event: "PoolNameUpdated", logs: logs, sub: sub}, nil } // WatchPoolNameUpdated is a free log subscription operation binding the contract event 0x63b42abaf7e145a993f20bc64259f45d09c43d18838ab0bca078b15093ac55f4. // // Solidity: event PoolNameUpdated(uint128 indexed poolId, string name, address indexed sender) -func (_CoreGoerli *CoreGoerliFilterer) WatchPoolNameUpdated(opts *bind.WatchOpts, sink chan<- *CoreGoerliPoolNameUpdated, poolId []*big.Int, sender []common.Address) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchPoolNameUpdated(opts *bind.WatchOpts, sink chan<- *CorePoolNameUpdated, poolId []*big.Int, sender []common.Address) (event.Subscription, error) { var poolIdRule []interface{} for _, poolIdItem := range poolId { @@ -8687,7 +8676,7 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchPoolNameUpdated(opts *bind.WatchOpts senderRule = append(senderRule, senderItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "PoolNameUpdated", poolIdRule, senderRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "PoolNameUpdated", poolIdRule, senderRule) if err != nil { return nil, err } @@ -8697,8 +8686,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchPoolNameUpdated(opts *bind.WatchOpts select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliPoolNameUpdated) - if err := _CoreGoerli.contract.UnpackLog(event, "PoolNameUpdated", log); err != nil { + event := new(CorePoolNameUpdated) + if err := _Core.contract.UnpackLog(event, "PoolNameUpdated", log); err != nil { return err } event.Raw = log @@ -8722,18 +8711,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchPoolNameUpdated(opts *bind.WatchOpts // ParsePoolNameUpdated is a log parse operation binding the contract event 0x63b42abaf7e145a993f20bc64259f45d09c43d18838ab0bca078b15093ac55f4. // // Solidity: event PoolNameUpdated(uint128 indexed poolId, string name, address indexed sender) -func (_CoreGoerli *CoreGoerliFilterer) ParsePoolNameUpdated(log types.Log) (*CoreGoerliPoolNameUpdated, error) { - event := new(CoreGoerliPoolNameUpdated) - if err := _CoreGoerli.contract.UnpackLog(event, "PoolNameUpdated", log); err != nil { +func (_Core *CoreFilterer) ParsePoolNameUpdated(log types.Log) (*CorePoolNameUpdated, error) { + event := new(CorePoolNameUpdated) + if err := _Core.contract.UnpackLog(event, "PoolNameUpdated", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliPoolNominationRenouncedIterator is returned from FilterPoolNominationRenounced and is used to iterate over the raw logs and unpacked data for PoolNominationRenounced events raised by the CoreGoerli contract. -type CoreGoerliPoolNominationRenouncedIterator struct { - Event *CoreGoerliPoolNominationRenounced // Event containing the contract specifics and raw log +// CorePoolNominationRenouncedIterator is returned from FilterPoolNominationRenounced and is used to iterate over the raw logs and unpacked data for PoolNominationRenounced events raised by the Core contract. +type CorePoolNominationRenouncedIterator struct { + Event *CorePoolNominationRenounced // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -8747,7 +8736,7 @@ type CoreGoerliPoolNominationRenouncedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliPoolNominationRenouncedIterator) Next() bool { +func (it *CorePoolNominationRenouncedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -8756,7 +8745,7 @@ func (it *CoreGoerliPoolNominationRenouncedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliPoolNominationRenounced) + it.Event = new(CorePoolNominationRenounced) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -8771,7 +8760,7 @@ func (it *CoreGoerliPoolNominationRenouncedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliPoolNominationRenounced) + it.Event = new(CorePoolNominationRenounced) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -8787,19 +8776,19 @@ func (it *CoreGoerliPoolNominationRenouncedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliPoolNominationRenouncedIterator) Error() error { +func (it *CorePoolNominationRenouncedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliPoolNominationRenouncedIterator) Close() error { +func (it *CorePoolNominationRenouncedIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliPoolNominationRenounced represents a PoolNominationRenounced event raised by the CoreGoerli contract. -type CoreGoerliPoolNominationRenounced struct { +// CorePoolNominationRenounced represents a PoolNominationRenounced event raised by the Core contract. +type CorePoolNominationRenounced struct { PoolId *big.Int Owner common.Address Raw types.Log // Blockchain specific contextual infos @@ -8808,7 +8797,7 @@ type CoreGoerliPoolNominationRenounced struct { // FilterPoolNominationRenounced is a free log retrieval operation binding the contract event 0x28301da5fb0feefb138efa6310af4547a74f415d62616f90519436dc169c3ae0. // // Solidity: event PoolNominationRenounced(uint128 indexed poolId, address indexed owner) -func (_CoreGoerli *CoreGoerliFilterer) FilterPoolNominationRenounced(opts *bind.FilterOpts, poolId []*big.Int, owner []common.Address) (*CoreGoerliPoolNominationRenouncedIterator, error) { +func (_Core *CoreFilterer) FilterPoolNominationRenounced(opts *bind.FilterOpts, poolId []*big.Int, owner []common.Address) (*CorePoolNominationRenouncedIterator, error) { var poolIdRule []interface{} for _, poolIdItem := range poolId { @@ -8819,17 +8808,17 @@ func (_CoreGoerli *CoreGoerliFilterer) FilterPoolNominationRenounced(opts *bind. ownerRule = append(ownerRule, ownerItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "PoolNominationRenounced", poolIdRule, ownerRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "PoolNominationRenounced", poolIdRule, ownerRule) if err != nil { return nil, err } - return &CoreGoerliPoolNominationRenouncedIterator{contract: _CoreGoerli.contract, event: "PoolNominationRenounced", logs: logs, sub: sub}, nil + return &CorePoolNominationRenouncedIterator{contract: _Core.contract, event: "PoolNominationRenounced", logs: logs, sub: sub}, nil } // WatchPoolNominationRenounced is a free log subscription operation binding the contract event 0x28301da5fb0feefb138efa6310af4547a74f415d62616f90519436dc169c3ae0. // // Solidity: event PoolNominationRenounced(uint128 indexed poolId, address indexed owner) -func (_CoreGoerli *CoreGoerliFilterer) WatchPoolNominationRenounced(opts *bind.WatchOpts, sink chan<- *CoreGoerliPoolNominationRenounced, poolId []*big.Int, owner []common.Address) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchPoolNominationRenounced(opts *bind.WatchOpts, sink chan<- *CorePoolNominationRenounced, poolId []*big.Int, owner []common.Address) (event.Subscription, error) { var poolIdRule []interface{} for _, poolIdItem := range poolId { @@ -8840,7 +8829,7 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchPoolNominationRenounced(opts *bind.W ownerRule = append(ownerRule, ownerItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "PoolNominationRenounced", poolIdRule, ownerRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "PoolNominationRenounced", poolIdRule, ownerRule) if err != nil { return nil, err } @@ -8850,8 +8839,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchPoolNominationRenounced(opts *bind.W select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliPoolNominationRenounced) - if err := _CoreGoerli.contract.UnpackLog(event, "PoolNominationRenounced", log); err != nil { + event := new(CorePoolNominationRenounced) + if err := _Core.contract.UnpackLog(event, "PoolNominationRenounced", log); err != nil { return err } event.Raw = log @@ -8875,18 +8864,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchPoolNominationRenounced(opts *bind.W // ParsePoolNominationRenounced is a log parse operation binding the contract event 0x28301da5fb0feefb138efa6310af4547a74f415d62616f90519436dc169c3ae0. // // Solidity: event PoolNominationRenounced(uint128 indexed poolId, address indexed owner) -func (_CoreGoerli *CoreGoerliFilterer) ParsePoolNominationRenounced(log types.Log) (*CoreGoerliPoolNominationRenounced, error) { - event := new(CoreGoerliPoolNominationRenounced) - if err := _CoreGoerli.contract.UnpackLog(event, "PoolNominationRenounced", log); err != nil { +func (_Core *CoreFilterer) ParsePoolNominationRenounced(log types.Log) (*CorePoolNominationRenounced, error) { + event := new(CorePoolNominationRenounced) + if err := _Core.contract.UnpackLog(event, "PoolNominationRenounced", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliPoolNominationRevokedIterator is returned from FilterPoolNominationRevoked and is used to iterate over the raw logs and unpacked data for PoolNominationRevoked events raised by the CoreGoerli contract. -type CoreGoerliPoolNominationRevokedIterator struct { - Event *CoreGoerliPoolNominationRevoked // Event containing the contract specifics and raw log +// CorePoolNominationRevokedIterator is returned from FilterPoolNominationRevoked and is used to iterate over the raw logs and unpacked data for PoolNominationRevoked events raised by the Core contract. +type CorePoolNominationRevokedIterator struct { + Event *CorePoolNominationRevoked // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -8900,7 +8889,7 @@ type CoreGoerliPoolNominationRevokedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliPoolNominationRevokedIterator) Next() bool { +func (it *CorePoolNominationRevokedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -8909,7 +8898,7 @@ func (it *CoreGoerliPoolNominationRevokedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliPoolNominationRevoked) + it.Event = new(CorePoolNominationRevoked) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -8924,7 +8913,7 @@ func (it *CoreGoerliPoolNominationRevokedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliPoolNominationRevoked) + it.Event = new(CorePoolNominationRevoked) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -8940,19 +8929,19 @@ func (it *CoreGoerliPoolNominationRevokedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliPoolNominationRevokedIterator) Error() error { +func (it *CorePoolNominationRevokedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliPoolNominationRevokedIterator) Close() error { +func (it *CorePoolNominationRevokedIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliPoolNominationRevoked represents a PoolNominationRevoked event raised by the CoreGoerli contract. -type CoreGoerliPoolNominationRevoked struct { +// CorePoolNominationRevoked represents a PoolNominationRevoked event raised by the Core contract. +type CorePoolNominationRevoked struct { PoolId *big.Int Owner common.Address Raw types.Log // Blockchain specific contextual infos @@ -8961,7 +8950,7 @@ type CoreGoerliPoolNominationRevoked struct { // FilterPoolNominationRevoked is a free log retrieval operation binding the contract event 0xa20a605599b6da4a06e0662f1284c442a576bc452b77a38c8c55805cb82a1865. // // Solidity: event PoolNominationRevoked(uint128 indexed poolId, address indexed owner) -func (_CoreGoerli *CoreGoerliFilterer) FilterPoolNominationRevoked(opts *bind.FilterOpts, poolId []*big.Int, owner []common.Address) (*CoreGoerliPoolNominationRevokedIterator, error) { +func (_Core *CoreFilterer) FilterPoolNominationRevoked(opts *bind.FilterOpts, poolId []*big.Int, owner []common.Address) (*CorePoolNominationRevokedIterator, error) { var poolIdRule []interface{} for _, poolIdItem := range poolId { @@ -8972,17 +8961,17 @@ func (_CoreGoerli *CoreGoerliFilterer) FilterPoolNominationRevoked(opts *bind.Fi ownerRule = append(ownerRule, ownerItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "PoolNominationRevoked", poolIdRule, ownerRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "PoolNominationRevoked", poolIdRule, ownerRule) if err != nil { return nil, err } - return &CoreGoerliPoolNominationRevokedIterator{contract: _CoreGoerli.contract, event: "PoolNominationRevoked", logs: logs, sub: sub}, nil + return &CorePoolNominationRevokedIterator{contract: _Core.contract, event: "PoolNominationRevoked", logs: logs, sub: sub}, nil } // WatchPoolNominationRevoked is a free log subscription operation binding the contract event 0xa20a605599b6da4a06e0662f1284c442a576bc452b77a38c8c55805cb82a1865. // // Solidity: event PoolNominationRevoked(uint128 indexed poolId, address indexed owner) -func (_CoreGoerli *CoreGoerliFilterer) WatchPoolNominationRevoked(opts *bind.WatchOpts, sink chan<- *CoreGoerliPoolNominationRevoked, poolId []*big.Int, owner []common.Address) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchPoolNominationRevoked(opts *bind.WatchOpts, sink chan<- *CorePoolNominationRevoked, poolId []*big.Int, owner []common.Address) (event.Subscription, error) { var poolIdRule []interface{} for _, poolIdItem := range poolId { @@ -8993,7 +8982,7 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchPoolNominationRevoked(opts *bind.Wat ownerRule = append(ownerRule, ownerItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "PoolNominationRevoked", poolIdRule, ownerRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "PoolNominationRevoked", poolIdRule, ownerRule) if err != nil { return nil, err } @@ -9003,8 +8992,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchPoolNominationRevoked(opts *bind.Wat select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliPoolNominationRevoked) - if err := _CoreGoerli.contract.UnpackLog(event, "PoolNominationRevoked", log); err != nil { + event := new(CorePoolNominationRevoked) + if err := _Core.contract.UnpackLog(event, "PoolNominationRevoked", log); err != nil { return err } event.Raw = log @@ -9028,18 +9017,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchPoolNominationRevoked(opts *bind.Wat // ParsePoolNominationRevoked is a log parse operation binding the contract event 0xa20a605599b6da4a06e0662f1284c442a576bc452b77a38c8c55805cb82a1865. // // Solidity: event PoolNominationRevoked(uint128 indexed poolId, address indexed owner) -func (_CoreGoerli *CoreGoerliFilterer) ParsePoolNominationRevoked(log types.Log) (*CoreGoerliPoolNominationRevoked, error) { - event := new(CoreGoerliPoolNominationRevoked) - if err := _CoreGoerli.contract.UnpackLog(event, "PoolNominationRevoked", log); err != nil { +func (_Core *CoreFilterer) ParsePoolNominationRevoked(log types.Log) (*CorePoolNominationRevoked, error) { + event := new(CorePoolNominationRevoked) + if err := _Core.contract.UnpackLog(event, "PoolNominationRevoked", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliPoolOwnerNominatedIterator is returned from FilterPoolOwnerNominated and is used to iterate over the raw logs and unpacked data for PoolOwnerNominated events raised by the CoreGoerli contract. -type CoreGoerliPoolOwnerNominatedIterator struct { - Event *CoreGoerliPoolOwnerNominated // Event containing the contract specifics and raw log +// CorePoolOwnerNominatedIterator is returned from FilterPoolOwnerNominated and is used to iterate over the raw logs and unpacked data for PoolOwnerNominated events raised by the Core contract. +type CorePoolOwnerNominatedIterator struct { + Event *CorePoolOwnerNominated // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -9053,7 +9042,7 @@ type CoreGoerliPoolOwnerNominatedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliPoolOwnerNominatedIterator) Next() bool { +func (it *CorePoolOwnerNominatedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -9062,7 +9051,7 @@ func (it *CoreGoerliPoolOwnerNominatedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliPoolOwnerNominated) + it.Event = new(CorePoolOwnerNominated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -9077,7 +9066,7 @@ func (it *CoreGoerliPoolOwnerNominatedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliPoolOwnerNominated) + it.Event = new(CorePoolOwnerNominated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -9093,19 +9082,19 @@ func (it *CoreGoerliPoolOwnerNominatedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliPoolOwnerNominatedIterator) Error() error { +func (it *CorePoolOwnerNominatedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliPoolOwnerNominatedIterator) Close() error { +func (it *CorePoolOwnerNominatedIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliPoolOwnerNominated represents a PoolOwnerNominated event raised by the CoreGoerli contract. -type CoreGoerliPoolOwnerNominated struct { +// CorePoolOwnerNominated represents a PoolOwnerNominated event raised by the Core contract. +type CorePoolOwnerNominated struct { PoolId *big.Int NominatedOwner common.Address Owner common.Address @@ -9115,7 +9104,7 @@ type CoreGoerliPoolOwnerNominated struct { // FilterPoolOwnerNominated is a free log retrieval operation binding the contract event 0x55d98f82a53fb5776e9ea48d624ab9cb015b51a45249b1ed8425fc857c82f4f8. // // Solidity: event PoolOwnerNominated(uint128 indexed poolId, address indexed nominatedOwner, address indexed owner) -func (_CoreGoerli *CoreGoerliFilterer) FilterPoolOwnerNominated(opts *bind.FilterOpts, poolId []*big.Int, nominatedOwner []common.Address, owner []common.Address) (*CoreGoerliPoolOwnerNominatedIterator, error) { +func (_Core *CoreFilterer) FilterPoolOwnerNominated(opts *bind.FilterOpts, poolId []*big.Int, nominatedOwner []common.Address, owner []common.Address) (*CorePoolOwnerNominatedIterator, error) { var poolIdRule []interface{} for _, poolIdItem := range poolId { @@ -9130,17 +9119,17 @@ func (_CoreGoerli *CoreGoerliFilterer) FilterPoolOwnerNominated(opts *bind.Filte ownerRule = append(ownerRule, ownerItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "PoolOwnerNominated", poolIdRule, nominatedOwnerRule, ownerRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "PoolOwnerNominated", poolIdRule, nominatedOwnerRule, ownerRule) if err != nil { return nil, err } - return &CoreGoerliPoolOwnerNominatedIterator{contract: _CoreGoerli.contract, event: "PoolOwnerNominated", logs: logs, sub: sub}, nil + return &CorePoolOwnerNominatedIterator{contract: _Core.contract, event: "PoolOwnerNominated", logs: logs, sub: sub}, nil } // WatchPoolOwnerNominated is a free log subscription operation binding the contract event 0x55d98f82a53fb5776e9ea48d624ab9cb015b51a45249b1ed8425fc857c82f4f8. // // Solidity: event PoolOwnerNominated(uint128 indexed poolId, address indexed nominatedOwner, address indexed owner) -func (_CoreGoerli *CoreGoerliFilterer) WatchPoolOwnerNominated(opts *bind.WatchOpts, sink chan<- *CoreGoerliPoolOwnerNominated, poolId []*big.Int, nominatedOwner []common.Address, owner []common.Address) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchPoolOwnerNominated(opts *bind.WatchOpts, sink chan<- *CorePoolOwnerNominated, poolId []*big.Int, nominatedOwner []common.Address, owner []common.Address) (event.Subscription, error) { var poolIdRule []interface{} for _, poolIdItem := range poolId { @@ -9155,7 +9144,7 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchPoolOwnerNominated(opts *bind.WatchO ownerRule = append(ownerRule, ownerItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "PoolOwnerNominated", poolIdRule, nominatedOwnerRule, ownerRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "PoolOwnerNominated", poolIdRule, nominatedOwnerRule, ownerRule) if err != nil { return nil, err } @@ -9165,8 +9154,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchPoolOwnerNominated(opts *bind.WatchO select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliPoolOwnerNominated) - if err := _CoreGoerli.contract.UnpackLog(event, "PoolOwnerNominated", log); err != nil { + event := new(CorePoolOwnerNominated) + if err := _Core.contract.UnpackLog(event, "PoolOwnerNominated", log); err != nil { return err } event.Raw = log @@ -9190,18 +9179,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchPoolOwnerNominated(opts *bind.WatchO // ParsePoolOwnerNominated is a log parse operation binding the contract event 0x55d98f82a53fb5776e9ea48d624ab9cb015b51a45249b1ed8425fc857c82f4f8. // // Solidity: event PoolOwnerNominated(uint128 indexed poolId, address indexed nominatedOwner, address indexed owner) -func (_CoreGoerli *CoreGoerliFilterer) ParsePoolOwnerNominated(log types.Log) (*CoreGoerliPoolOwnerNominated, error) { - event := new(CoreGoerliPoolOwnerNominated) - if err := _CoreGoerli.contract.UnpackLog(event, "PoolOwnerNominated", log); err != nil { +func (_Core *CoreFilterer) ParsePoolOwnerNominated(log types.Log) (*CorePoolOwnerNominated, error) { + event := new(CorePoolOwnerNominated) + if err := _Core.contract.UnpackLog(event, "PoolOwnerNominated", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliPoolOwnershipAcceptedIterator is returned from FilterPoolOwnershipAccepted and is used to iterate over the raw logs and unpacked data for PoolOwnershipAccepted events raised by the CoreGoerli contract. -type CoreGoerliPoolOwnershipAcceptedIterator struct { - Event *CoreGoerliPoolOwnershipAccepted // Event containing the contract specifics and raw log +// CorePoolOwnershipAcceptedIterator is returned from FilterPoolOwnershipAccepted and is used to iterate over the raw logs and unpacked data for PoolOwnershipAccepted events raised by the Core contract. +type CorePoolOwnershipAcceptedIterator struct { + Event *CorePoolOwnershipAccepted // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -9215,7 +9204,7 @@ type CoreGoerliPoolOwnershipAcceptedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliPoolOwnershipAcceptedIterator) Next() bool { +func (it *CorePoolOwnershipAcceptedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -9224,7 +9213,7 @@ func (it *CoreGoerliPoolOwnershipAcceptedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliPoolOwnershipAccepted) + it.Event = new(CorePoolOwnershipAccepted) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -9239,7 +9228,7 @@ func (it *CoreGoerliPoolOwnershipAcceptedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliPoolOwnershipAccepted) + it.Event = new(CorePoolOwnershipAccepted) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -9255,19 +9244,19 @@ func (it *CoreGoerliPoolOwnershipAcceptedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliPoolOwnershipAcceptedIterator) Error() error { +func (it *CorePoolOwnershipAcceptedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliPoolOwnershipAcceptedIterator) Close() error { +func (it *CorePoolOwnershipAcceptedIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliPoolOwnershipAccepted represents a PoolOwnershipAccepted event raised by the CoreGoerli contract. -type CoreGoerliPoolOwnershipAccepted struct { +// CorePoolOwnershipAccepted represents a PoolOwnershipAccepted event raised by the Core contract. +type CorePoolOwnershipAccepted struct { PoolId *big.Int Owner common.Address Raw types.Log // Blockchain specific contextual infos @@ -9276,7 +9265,7 @@ type CoreGoerliPoolOwnershipAccepted struct { // FilterPoolOwnershipAccepted is a free log retrieval operation binding the contract event 0x4f86f2ce8b08e27d0e470f4269b71c3bbc68407d51a2e692f6573236074ebc5a. // // Solidity: event PoolOwnershipAccepted(uint128 indexed poolId, address indexed owner) -func (_CoreGoerli *CoreGoerliFilterer) FilterPoolOwnershipAccepted(opts *bind.FilterOpts, poolId []*big.Int, owner []common.Address) (*CoreGoerliPoolOwnershipAcceptedIterator, error) { +func (_Core *CoreFilterer) FilterPoolOwnershipAccepted(opts *bind.FilterOpts, poolId []*big.Int, owner []common.Address) (*CorePoolOwnershipAcceptedIterator, error) { var poolIdRule []interface{} for _, poolIdItem := range poolId { @@ -9287,17 +9276,17 @@ func (_CoreGoerli *CoreGoerliFilterer) FilterPoolOwnershipAccepted(opts *bind.Fi ownerRule = append(ownerRule, ownerItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "PoolOwnershipAccepted", poolIdRule, ownerRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "PoolOwnershipAccepted", poolIdRule, ownerRule) if err != nil { return nil, err } - return &CoreGoerliPoolOwnershipAcceptedIterator{contract: _CoreGoerli.contract, event: "PoolOwnershipAccepted", logs: logs, sub: sub}, nil + return &CorePoolOwnershipAcceptedIterator{contract: _Core.contract, event: "PoolOwnershipAccepted", logs: logs, sub: sub}, nil } // WatchPoolOwnershipAccepted is a free log subscription operation binding the contract event 0x4f86f2ce8b08e27d0e470f4269b71c3bbc68407d51a2e692f6573236074ebc5a. // // Solidity: event PoolOwnershipAccepted(uint128 indexed poolId, address indexed owner) -func (_CoreGoerli *CoreGoerliFilterer) WatchPoolOwnershipAccepted(opts *bind.WatchOpts, sink chan<- *CoreGoerliPoolOwnershipAccepted, poolId []*big.Int, owner []common.Address) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchPoolOwnershipAccepted(opts *bind.WatchOpts, sink chan<- *CorePoolOwnershipAccepted, poolId []*big.Int, owner []common.Address) (event.Subscription, error) { var poolIdRule []interface{} for _, poolIdItem := range poolId { @@ -9308,7 +9297,7 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchPoolOwnershipAccepted(opts *bind.Wat ownerRule = append(ownerRule, ownerItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "PoolOwnershipAccepted", poolIdRule, ownerRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "PoolOwnershipAccepted", poolIdRule, ownerRule) if err != nil { return nil, err } @@ -9318,8 +9307,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchPoolOwnershipAccepted(opts *bind.Wat select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliPoolOwnershipAccepted) - if err := _CoreGoerli.contract.UnpackLog(event, "PoolOwnershipAccepted", log); err != nil { + event := new(CorePoolOwnershipAccepted) + if err := _Core.contract.UnpackLog(event, "PoolOwnershipAccepted", log); err != nil { return err } event.Raw = log @@ -9343,18 +9332,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchPoolOwnershipAccepted(opts *bind.Wat // ParsePoolOwnershipAccepted is a log parse operation binding the contract event 0x4f86f2ce8b08e27d0e470f4269b71c3bbc68407d51a2e692f6573236074ebc5a. // // Solidity: event PoolOwnershipAccepted(uint128 indexed poolId, address indexed owner) -func (_CoreGoerli *CoreGoerliFilterer) ParsePoolOwnershipAccepted(log types.Log) (*CoreGoerliPoolOwnershipAccepted, error) { - event := new(CoreGoerliPoolOwnershipAccepted) - if err := _CoreGoerli.contract.UnpackLog(event, "PoolOwnershipAccepted", log); err != nil { +func (_Core *CoreFilterer) ParsePoolOwnershipAccepted(log types.Log) (*CorePoolOwnershipAccepted, error) { + event := new(CorePoolOwnershipAccepted) + if err := _Core.contract.UnpackLog(event, "PoolOwnershipAccepted", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliPreferredPoolSetIterator is returned from FilterPreferredPoolSet and is used to iterate over the raw logs and unpacked data for PreferredPoolSet events raised by the CoreGoerli contract. -type CoreGoerliPreferredPoolSetIterator struct { - Event *CoreGoerliPreferredPoolSet // Event containing the contract specifics and raw log +// CorePreferredPoolSetIterator is returned from FilterPreferredPoolSet and is used to iterate over the raw logs and unpacked data for PreferredPoolSet events raised by the Core contract. +type CorePreferredPoolSetIterator struct { + Event *CorePreferredPoolSet // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -9368,7 +9357,7 @@ type CoreGoerliPreferredPoolSetIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliPreferredPoolSetIterator) Next() bool { +func (it *CorePreferredPoolSetIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -9377,7 +9366,7 @@ func (it *CoreGoerliPreferredPoolSetIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliPreferredPoolSet) + it.Event = new(CorePreferredPoolSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -9392,7 +9381,7 @@ func (it *CoreGoerliPreferredPoolSetIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliPreferredPoolSet) + it.Event = new(CorePreferredPoolSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -9408,19 +9397,19 @@ func (it *CoreGoerliPreferredPoolSetIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliPreferredPoolSetIterator) Error() error { +func (it *CorePreferredPoolSetIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliPreferredPoolSetIterator) Close() error { +func (it *CorePreferredPoolSetIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliPreferredPoolSet represents a PreferredPoolSet event raised by the CoreGoerli contract. -type CoreGoerliPreferredPoolSet struct { +// CorePreferredPoolSet represents a PreferredPoolSet event raised by the Core contract. +type CorePreferredPoolSet struct { PoolId *big.Int Raw types.Log // Blockchain specific contextual infos } @@ -9428,21 +9417,21 @@ type CoreGoerliPreferredPoolSet struct { // FilterPreferredPoolSet is a free log retrieval operation binding the contract event 0x7e7cb4726e710dc12fad41f158c37a4a71af3a6f053b8b13670d35c710139a56. // // Solidity: event PreferredPoolSet(uint256 poolId) -func (_CoreGoerli *CoreGoerliFilterer) FilterPreferredPoolSet(opts *bind.FilterOpts) (*CoreGoerliPreferredPoolSetIterator, error) { +func (_Core *CoreFilterer) FilterPreferredPoolSet(opts *bind.FilterOpts) (*CorePreferredPoolSetIterator, error) { - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "PreferredPoolSet") + logs, sub, err := _Core.contract.FilterLogs(opts, "PreferredPoolSet") if err != nil { return nil, err } - return &CoreGoerliPreferredPoolSetIterator{contract: _CoreGoerli.contract, event: "PreferredPoolSet", logs: logs, sub: sub}, nil + return &CorePreferredPoolSetIterator{contract: _Core.contract, event: "PreferredPoolSet", logs: logs, sub: sub}, nil } // WatchPreferredPoolSet is a free log subscription operation binding the contract event 0x7e7cb4726e710dc12fad41f158c37a4a71af3a6f053b8b13670d35c710139a56. // // Solidity: event PreferredPoolSet(uint256 poolId) -func (_CoreGoerli *CoreGoerliFilterer) WatchPreferredPoolSet(opts *bind.WatchOpts, sink chan<- *CoreGoerliPreferredPoolSet) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchPreferredPoolSet(opts *bind.WatchOpts, sink chan<- *CorePreferredPoolSet) (event.Subscription, error) { - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "PreferredPoolSet") + logs, sub, err := _Core.contract.WatchLogs(opts, "PreferredPoolSet") if err != nil { return nil, err } @@ -9452,8 +9441,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchPreferredPoolSet(opts *bind.WatchOpt select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliPreferredPoolSet) - if err := _CoreGoerli.contract.UnpackLog(event, "PreferredPoolSet", log); err != nil { + event := new(CorePreferredPoolSet) + if err := _Core.contract.UnpackLog(event, "PreferredPoolSet", log); err != nil { return err } event.Raw = log @@ -9477,18 +9466,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchPreferredPoolSet(opts *bind.WatchOpt // ParsePreferredPoolSet is a log parse operation binding the contract event 0x7e7cb4726e710dc12fad41f158c37a4a71af3a6f053b8b13670d35c710139a56. // // Solidity: event PreferredPoolSet(uint256 poolId) -func (_CoreGoerli *CoreGoerliFilterer) ParsePreferredPoolSet(log types.Log) (*CoreGoerliPreferredPoolSet, error) { - event := new(CoreGoerliPreferredPoolSet) - if err := _CoreGoerli.contract.UnpackLog(event, "PreferredPoolSet", log); err != nil { +func (_Core *CoreFilterer) ParsePreferredPoolSet(log types.Log) (*CorePreferredPoolSet, error) { + event := new(CorePreferredPoolSet) + if err := _Core.contract.UnpackLog(event, "PreferredPoolSet", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliRewardsClaimedIterator is returned from FilterRewardsClaimed and is used to iterate over the raw logs and unpacked data for RewardsClaimed events raised by the CoreGoerli contract. -type CoreGoerliRewardsClaimedIterator struct { - Event *CoreGoerliRewardsClaimed // Event containing the contract specifics and raw log +// CoreRewardsClaimedIterator is returned from FilterRewardsClaimed and is used to iterate over the raw logs and unpacked data for RewardsClaimed events raised by the Core contract. +type CoreRewardsClaimedIterator struct { + Event *CoreRewardsClaimed // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -9502,7 +9491,7 @@ type CoreGoerliRewardsClaimedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliRewardsClaimedIterator) Next() bool { +func (it *CoreRewardsClaimedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -9511,7 +9500,7 @@ func (it *CoreGoerliRewardsClaimedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliRewardsClaimed) + it.Event = new(CoreRewardsClaimed) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -9526,7 +9515,7 @@ func (it *CoreGoerliRewardsClaimedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliRewardsClaimed) + it.Event = new(CoreRewardsClaimed) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -9542,19 +9531,19 @@ func (it *CoreGoerliRewardsClaimedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliRewardsClaimedIterator) Error() error { +func (it *CoreRewardsClaimedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliRewardsClaimedIterator) Close() error { +func (it *CoreRewardsClaimedIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliRewardsClaimed represents a RewardsClaimed event raised by the CoreGoerli contract. -type CoreGoerliRewardsClaimed struct { +// CoreRewardsClaimed represents a RewardsClaimed event raised by the Core contract. +type CoreRewardsClaimed struct { AccountId *big.Int PoolId *big.Int CollateralType common.Address @@ -9566,7 +9555,7 @@ type CoreGoerliRewardsClaimed struct { // FilterRewardsClaimed is a free log retrieval operation binding the contract event 0xa4a60be4203e7975e54ab5314c7e9e18aba9ad71e8da714d8de987f4f05410f2. // // Solidity: event RewardsClaimed(uint128 indexed accountId, uint128 indexed poolId, address indexed collateralType, address distributor, uint256 amount) -func (_CoreGoerli *CoreGoerliFilterer) FilterRewardsClaimed(opts *bind.FilterOpts, accountId []*big.Int, poolId []*big.Int, collateralType []common.Address) (*CoreGoerliRewardsClaimedIterator, error) { +func (_Core *CoreFilterer) FilterRewardsClaimed(opts *bind.FilterOpts, accountId []*big.Int, poolId []*big.Int, collateralType []common.Address) (*CoreRewardsClaimedIterator, error) { var accountIdRule []interface{} for _, accountIdItem := range accountId { @@ -9581,17 +9570,17 @@ func (_CoreGoerli *CoreGoerliFilterer) FilterRewardsClaimed(opts *bind.FilterOpt collateralTypeRule = append(collateralTypeRule, collateralTypeItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "RewardsClaimed", accountIdRule, poolIdRule, collateralTypeRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "RewardsClaimed", accountIdRule, poolIdRule, collateralTypeRule) if err != nil { return nil, err } - return &CoreGoerliRewardsClaimedIterator{contract: _CoreGoerli.contract, event: "RewardsClaimed", logs: logs, sub: sub}, nil + return &CoreRewardsClaimedIterator{contract: _Core.contract, event: "RewardsClaimed", logs: logs, sub: sub}, nil } // WatchRewardsClaimed is a free log subscription operation binding the contract event 0xa4a60be4203e7975e54ab5314c7e9e18aba9ad71e8da714d8de987f4f05410f2. // // Solidity: event RewardsClaimed(uint128 indexed accountId, uint128 indexed poolId, address indexed collateralType, address distributor, uint256 amount) -func (_CoreGoerli *CoreGoerliFilterer) WatchRewardsClaimed(opts *bind.WatchOpts, sink chan<- *CoreGoerliRewardsClaimed, accountId []*big.Int, poolId []*big.Int, collateralType []common.Address) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchRewardsClaimed(opts *bind.WatchOpts, sink chan<- *CoreRewardsClaimed, accountId []*big.Int, poolId []*big.Int, collateralType []common.Address) (event.Subscription, error) { var accountIdRule []interface{} for _, accountIdItem := range accountId { @@ -9606,7 +9595,7 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchRewardsClaimed(opts *bind.WatchOpts, collateralTypeRule = append(collateralTypeRule, collateralTypeItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "RewardsClaimed", accountIdRule, poolIdRule, collateralTypeRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "RewardsClaimed", accountIdRule, poolIdRule, collateralTypeRule) if err != nil { return nil, err } @@ -9616,8 +9605,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchRewardsClaimed(opts *bind.WatchOpts, select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliRewardsClaimed) - if err := _CoreGoerli.contract.UnpackLog(event, "RewardsClaimed", log); err != nil { + event := new(CoreRewardsClaimed) + if err := _Core.contract.UnpackLog(event, "RewardsClaimed", log); err != nil { return err } event.Raw = log @@ -9641,18 +9630,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchRewardsClaimed(opts *bind.WatchOpts, // ParseRewardsClaimed is a log parse operation binding the contract event 0xa4a60be4203e7975e54ab5314c7e9e18aba9ad71e8da714d8de987f4f05410f2. // // Solidity: event RewardsClaimed(uint128 indexed accountId, uint128 indexed poolId, address indexed collateralType, address distributor, uint256 amount) -func (_CoreGoerli *CoreGoerliFilterer) ParseRewardsClaimed(log types.Log) (*CoreGoerliRewardsClaimed, error) { - event := new(CoreGoerliRewardsClaimed) - if err := _CoreGoerli.contract.UnpackLog(event, "RewardsClaimed", log); err != nil { +func (_Core *CoreFilterer) ParseRewardsClaimed(log types.Log) (*CoreRewardsClaimed, error) { + event := new(CoreRewardsClaimed) + if err := _Core.contract.UnpackLog(event, "RewardsClaimed", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliRewardsDistributedIterator is returned from FilterRewardsDistributed and is used to iterate over the raw logs and unpacked data for RewardsDistributed events raised by the CoreGoerli contract. -type CoreGoerliRewardsDistributedIterator struct { - Event *CoreGoerliRewardsDistributed // Event containing the contract specifics and raw log +// CoreRewardsDistributedIterator is returned from FilterRewardsDistributed and is used to iterate over the raw logs and unpacked data for RewardsDistributed events raised by the Core contract. +type CoreRewardsDistributedIterator struct { + Event *CoreRewardsDistributed // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -9666,7 +9655,7 @@ type CoreGoerliRewardsDistributedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliRewardsDistributedIterator) Next() bool { +func (it *CoreRewardsDistributedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -9675,7 +9664,7 @@ func (it *CoreGoerliRewardsDistributedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliRewardsDistributed) + it.Event = new(CoreRewardsDistributed) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -9690,7 +9679,7 @@ func (it *CoreGoerliRewardsDistributedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliRewardsDistributed) + it.Event = new(CoreRewardsDistributed) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -9706,19 +9695,19 @@ func (it *CoreGoerliRewardsDistributedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliRewardsDistributedIterator) Error() error { +func (it *CoreRewardsDistributedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliRewardsDistributedIterator) Close() error { +func (it *CoreRewardsDistributedIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliRewardsDistributed represents a RewardsDistributed event raised by the CoreGoerli contract. -type CoreGoerliRewardsDistributed struct { +// CoreRewardsDistributed represents a RewardsDistributed event raised by the Core contract. +type CoreRewardsDistributed struct { PoolId *big.Int CollateralType common.Address Distributor common.Address @@ -9731,7 +9720,7 @@ type CoreGoerliRewardsDistributed struct { // FilterRewardsDistributed is a free log retrieval operation binding the contract event 0x19ced31d71d1db45f99d5a8d3a7616fe9d78828df58f2a28feb68c9f9ab876ca. // // Solidity: event RewardsDistributed(uint128 indexed poolId, address indexed collateralType, address distributor, uint256 amount, uint256 start, uint256 duration) -func (_CoreGoerli *CoreGoerliFilterer) FilterRewardsDistributed(opts *bind.FilterOpts, poolId []*big.Int, collateralType []common.Address) (*CoreGoerliRewardsDistributedIterator, error) { +func (_Core *CoreFilterer) FilterRewardsDistributed(opts *bind.FilterOpts, poolId []*big.Int, collateralType []common.Address) (*CoreRewardsDistributedIterator, error) { var poolIdRule []interface{} for _, poolIdItem := range poolId { @@ -9742,17 +9731,17 @@ func (_CoreGoerli *CoreGoerliFilterer) FilterRewardsDistributed(opts *bind.Filte collateralTypeRule = append(collateralTypeRule, collateralTypeItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "RewardsDistributed", poolIdRule, collateralTypeRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "RewardsDistributed", poolIdRule, collateralTypeRule) if err != nil { return nil, err } - return &CoreGoerliRewardsDistributedIterator{contract: _CoreGoerli.contract, event: "RewardsDistributed", logs: logs, sub: sub}, nil + return &CoreRewardsDistributedIterator{contract: _Core.contract, event: "RewardsDistributed", logs: logs, sub: sub}, nil } // WatchRewardsDistributed is a free log subscription operation binding the contract event 0x19ced31d71d1db45f99d5a8d3a7616fe9d78828df58f2a28feb68c9f9ab876ca. // // Solidity: event RewardsDistributed(uint128 indexed poolId, address indexed collateralType, address distributor, uint256 amount, uint256 start, uint256 duration) -func (_CoreGoerli *CoreGoerliFilterer) WatchRewardsDistributed(opts *bind.WatchOpts, sink chan<- *CoreGoerliRewardsDistributed, poolId []*big.Int, collateralType []common.Address) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchRewardsDistributed(opts *bind.WatchOpts, sink chan<- *CoreRewardsDistributed, poolId []*big.Int, collateralType []common.Address) (event.Subscription, error) { var poolIdRule []interface{} for _, poolIdItem := range poolId { @@ -9763,7 +9752,7 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchRewardsDistributed(opts *bind.WatchO collateralTypeRule = append(collateralTypeRule, collateralTypeItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "RewardsDistributed", poolIdRule, collateralTypeRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "RewardsDistributed", poolIdRule, collateralTypeRule) if err != nil { return nil, err } @@ -9773,8 +9762,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchRewardsDistributed(opts *bind.WatchO select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliRewardsDistributed) - if err := _CoreGoerli.contract.UnpackLog(event, "RewardsDistributed", log); err != nil { + event := new(CoreRewardsDistributed) + if err := _Core.contract.UnpackLog(event, "RewardsDistributed", log); err != nil { return err } event.Raw = log @@ -9798,18 +9787,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchRewardsDistributed(opts *bind.WatchO // ParseRewardsDistributed is a log parse operation binding the contract event 0x19ced31d71d1db45f99d5a8d3a7616fe9d78828df58f2a28feb68c9f9ab876ca. // // Solidity: event RewardsDistributed(uint128 indexed poolId, address indexed collateralType, address distributor, uint256 amount, uint256 start, uint256 duration) -func (_CoreGoerli *CoreGoerliFilterer) ParseRewardsDistributed(log types.Log) (*CoreGoerliRewardsDistributed, error) { - event := new(CoreGoerliRewardsDistributed) - if err := _CoreGoerli.contract.UnpackLog(event, "RewardsDistributed", log); err != nil { +func (_Core *CoreFilterer) ParseRewardsDistributed(log types.Log) (*CoreRewardsDistributed, error) { + event := new(CoreRewardsDistributed) + if err := _Core.contract.UnpackLog(event, "RewardsDistributed", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliRewardsDistributorRegisteredIterator is returned from FilterRewardsDistributorRegistered and is used to iterate over the raw logs and unpacked data for RewardsDistributorRegistered events raised by the CoreGoerli contract. -type CoreGoerliRewardsDistributorRegisteredIterator struct { - Event *CoreGoerliRewardsDistributorRegistered // Event containing the contract specifics and raw log +// CoreRewardsDistributorRegisteredIterator is returned from FilterRewardsDistributorRegistered and is used to iterate over the raw logs and unpacked data for RewardsDistributorRegistered events raised by the Core contract. +type CoreRewardsDistributorRegisteredIterator struct { + Event *CoreRewardsDistributorRegistered // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -9823,7 +9812,7 @@ type CoreGoerliRewardsDistributorRegisteredIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliRewardsDistributorRegisteredIterator) Next() bool { +func (it *CoreRewardsDistributorRegisteredIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -9832,7 +9821,7 @@ func (it *CoreGoerliRewardsDistributorRegisteredIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliRewardsDistributorRegistered) + it.Event = new(CoreRewardsDistributorRegistered) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -9847,7 +9836,7 @@ func (it *CoreGoerliRewardsDistributorRegisteredIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliRewardsDistributorRegistered) + it.Event = new(CoreRewardsDistributorRegistered) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -9863,19 +9852,19 @@ func (it *CoreGoerliRewardsDistributorRegisteredIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliRewardsDistributorRegisteredIterator) Error() error { +func (it *CoreRewardsDistributorRegisteredIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliRewardsDistributorRegisteredIterator) Close() error { +func (it *CoreRewardsDistributorRegisteredIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliRewardsDistributorRegistered represents a RewardsDistributorRegistered event raised by the CoreGoerli contract. -type CoreGoerliRewardsDistributorRegistered struct { +// CoreRewardsDistributorRegistered represents a RewardsDistributorRegistered event raised by the Core contract. +type CoreRewardsDistributorRegistered struct { PoolId *big.Int CollateralType common.Address Distributor common.Address @@ -9885,7 +9874,7 @@ type CoreGoerliRewardsDistributorRegistered struct { // FilterRewardsDistributorRegistered is a free log retrieval operation binding the contract event 0x9d3609c05a83dc93a5b355d62c2b37dfde8f0833b1184d4d05c6f51cd46b6e5b. // // Solidity: event RewardsDistributorRegistered(uint128 indexed poolId, address indexed collateralType, address indexed distributor) -func (_CoreGoerli *CoreGoerliFilterer) FilterRewardsDistributorRegistered(opts *bind.FilterOpts, poolId []*big.Int, collateralType []common.Address, distributor []common.Address) (*CoreGoerliRewardsDistributorRegisteredIterator, error) { +func (_Core *CoreFilterer) FilterRewardsDistributorRegistered(opts *bind.FilterOpts, poolId []*big.Int, collateralType []common.Address, distributor []common.Address) (*CoreRewardsDistributorRegisteredIterator, error) { var poolIdRule []interface{} for _, poolIdItem := range poolId { @@ -9900,17 +9889,17 @@ func (_CoreGoerli *CoreGoerliFilterer) FilterRewardsDistributorRegistered(opts * distributorRule = append(distributorRule, distributorItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "RewardsDistributorRegistered", poolIdRule, collateralTypeRule, distributorRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "RewardsDistributorRegistered", poolIdRule, collateralTypeRule, distributorRule) if err != nil { return nil, err } - return &CoreGoerliRewardsDistributorRegisteredIterator{contract: _CoreGoerli.contract, event: "RewardsDistributorRegistered", logs: logs, sub: sub}, nil + return &CoreRewardsDistributorRegisteredIterator{contract: _Core.contract, event: "RewardsDistributorRegistered", logs: logs, sub: sub}, nil } // WatchRewardsDistributorRegistered is a free log subscription operation binding the contract event 0x9d3609c05a83dc93a5b355d62c2b37dfde8f0833b1184d4d05c6f51cd46b6e5b. // // Solidity: event RewardsDistributorRegistered(uint128 indexed poolId, address indexed collateralType, address indexed distributor) -func (_CoreGoerli *CoreGoerliFilterer) WatchRewardsDistributorRegistered(opts *bind.WatchOpts, sink chan<- *CoreGoerliRewardsDistributorRegistered, poolId []*big.Int, collateralType []common.Address, distributor []common.Address) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchRewardsDistributorRegistered(opts *bind.WatchOpts, sink chan<- *CoreRewardsDistributorRegistered, poolId []*big.Int, collateralType []common.Address, distributor []common.Address) (event.Subscription, error) { var poolIdRule []interface{} for _, poolIdItem := range poolId { @@ -9925,7 +9914,7 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchRewardsDistributorRegistered(opts *b distributorRule = append(distributorRule, distributorItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "RewardsDistributorRegistered", poolIdRule, collateralTypeRule, distributorRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "RewardsDistributorRegistered", poolIdRule, collateralTypeRule, distributorRule) if err != nil { return nil, err } @@ -9935,8 +9924,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchRewardsDistributorRegistered(opts *b select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliRewardsDistributorRegistered) - if err := _CoreGoerli.contract.UnpackLog(event, "RewardsDistributorRegistered", log); err != nil { + event := new(CoreRewardsDistributorRegistered) + if err := _Core.contract.UnpackLog(event, "RewardsDistributorRegistered", log); err != nil { return err } event.Raw = log @@ -9960,18 +9949,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchRewardsDistributorRegistered(opts *b // ParseRewardsDistributorRegistered is a log parse operation binding the contract event 0x9d3609c05a83dc93a5b355d62c2b37dfde8f0833b1184d4d05c6f51cd46b6e5b. // // Solidity: event RewardsDistributorRegistered(uint128 indexed poolId, address indexed collateralType, address indexed distributor) -func (_CoreGoerli *CoreGoerliFilterer) ParseRewardsDistributorRegistered(log types.Log) (*CoreGoerliRewardsDistributorRegistered, error) { - event := new(CoreGoerliRewardsDistributorRegistered) - if err := _CoreGoerli.contract.UnpackLog(event, "RewardsDistributorRegistered", log); err != nil { +func (_Core *CoreFilterer) ParseRewardsDistributorRegistered(log types.Log) (*CoreRewardsDistributorRegistered, error) { + event := new(CoreRewardsDistributorRegistered) + if err := _Core.contract.UnpackLog(event, "RewardsDistributorRegistered", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliRewardsDistributorRemovedIterator is returned from FilterRewardsDistributorRemoved and is used to iterate over the raw logs and unpacked data for RewardsDistributorRemoved events raised by the CoreGoerli contract. -type CoreGoerliRewardsDistributorRemovedIterator struct { - Event *CoreGoerliRewardsDistributorRemoved // Event containing the contract specifics and raw log +// CoreRewardsDistributorRemovedIterator is returned from FilterRewardsDistributorRemoved and is used to iterate over the raw logs and unpacked data for RewardsDistributorRemoved events raised by the Core contract. +type CoreRewardsDistributorRemovedIterator struct { + Event *CoreRewardsDistributorRemoved // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -9985,7 +9974,7 @@ type CoreGoerliRewardsDistributorRemovedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliRewardsDistributorRemovedIterator) Next() bool { +func (it *CoreRewardsDistributorRemovedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -9994,7 +9983,7 @@ func (it *CoreGoerliRewardsDistributorRemovedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliRewardsDistributorRemoved) + it.Event = new(CoreRewardsDistributorRemoved) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -10009,7 +9998,7 @@ func (it *CoreGoerliRewardsDistributorRemovedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliRewardsDistributorRemoved) + it.Event = new(CoreRewardsDistributorRemoved) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -10025,19 +10014,19 @@ func (it *CoreGoerliRewardsDistributorRemovedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliRewardsDistributorRemovedIterator) Error() error { +func (it *CoreRewardsDistributorRemovedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliRewardsDistributorRemovedIterator) Close() error { +func (it *CoreRewardsDistributorRemovedIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliRewardsDistributorRemoved represents a RewardsDistributorRemoved event raised by the CoreGoerli contract. -type CoreGoerliRewardsDistributorRemoved struct { +// CoreRewardsDistributorRemoved represents a RewardsDistributorRemoved event raised by the Core contract. +type CoreRewardsDistributorRemoved struct { PoolId *big.Int CollateralType common.Address Distributor common.Address @@ -10047,7 +10036,7 @@ type CoreGoerliRewardsDistributorRemoved struct { // FilterRewardsDistributorRemoved is a free log retrieval operation binding the contract event 0x375c4507f463c55a506be95e2cfd3cfdc0610be055087eac6049588a1bcfacba. // // Solidity: event RewardsDistributorRemoved(uint128 indexed poolId, address indexed collateralType, address indexed distributor) -func (_CoreGoerli *CoreGoerliFilterer) FilterRewardsDistributorRemoved(opts *bind.FilterOpts, poolId []*big.Int, collateralType []common.Address, distributor []common.Address) (*CoreGoerliRewardsDistributorRemovedIterator, error) { +func (_Core *CoreFilterer) FilterRewardsDistributorRemoved(opts *bind.FilterOpts, poolId []*big.Int, collateralType []common.Address, distributor []common.Address) (*CoreRewardsDistributorRemovedIterator, error) { var poolIdRule []interface{} for _, poolIdItem := range poolId { @@ -10062,17 +10051,17 @@ func (_CoreGoerli *CoreGoerliFilterer) FilterRewardsDistributorRemoved(opts *bin distributorRule = append(distributorRule, distributorItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "RewardsDistributorRemoved", poolIdRule, collateralTypeRule, distributorRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "RewardsDistributorRemoved", poolIdRule, collateralTypeRule, distributorRule) if err != nil { return nil, err } - return &CoreGoerliRewardsDistributorRemovedIterator{contract: _CoreGoerli.contract, event: "RewardsDistributorRemoved", logs: logs, sub: sub}, nil + return &CoreRewardsDistributorRemovedIterator{contract: _Core.contract, event: "RewardsDistributorRemoved", logs: logs, sub: sub}, nil } // WatchRewardsDistributorRemoved is a free log subscription operation binding the contract event 0x375c4507f463c55a506be95e2cfd3cfdc0610be055087eac6049588a1bcfacba. // // Solidity: event RewardsDistributorRemoved(uint128 indexed poolId, address indexed collateralType, address indexed distributor) -func (_CoreGoerli *CoreGoerliFilterer) WatchRewardsDistributorRemoved(opts *bind.WatchOpts, sink chan<- *CoreGoerliRewardsDistributorRemoved, poolId []*big.Int, collateralType []common.Address, distributor []common.Address) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchRewardsDistributorRemoved(opts *bind.WatchOpts, sink chan<- *CoreRewardsDistributorRemoved, poolId []*big.Int, collateralType []common.Address, distributor []common.Address) (event.Subscription, error) { var poolIdRule []interface{} for _, poolIdItem := range poolId { @@ -10087,7 +10076,7 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchRewardsDistributorRemoved(opts *bind distributorRule = append(distributorRule, distributorItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "RewardsDistributorRemoved", poolIdRule, collateralTypeRule, distributorRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "RewardsDistributorRemoved", poolIdRule, collateralTypeRule, distributorRule) if err != nil { return nil, err } @@ -10097,8 +10086,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchRewardsDistributorRemoved(opts *bind select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliRewardsDistributorRemoved) - if err := _CoreGoerli.contract.UnpackLog(event, "RewardsDistributorRemoved", log); err != nil { + event := new(CoreRewardsDistributorRemoved) + if err := _Core.contract.UnpackLog(event, "RewardsDistributorRemoved", log); err != nil { return err } event.Raw = log @@ -10122,18 +10111,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchRewardsDistributorRemoved(opts *bind // ParseRewardsDistributorRemoved is a log parse operation binding the contract event 0x375c4507f463c55a506be95e2cfd3cfdc0610be055087eac6049588a1bcfacba. // // Solidity: event RewardsDistributorRemoved(uint128 indexed poolId, address indexed collateralType, address indexed distributor) -func (_CoreGoerli *CoreGoerliFilterer) ParseRewardsDistributorRemoved(log types.Log) (*CoreGoerliRewardsDistributorRemoved, error) { - event := new(CoreGoerliRewardsDistributorRemoved) - if err := _CoreGoerli.contract.UnpackLog(event, "RewardsDistributorRemoved", log); err != nil { +func (_Core *CoreFilterer) ParseRewardsDistributorRemoved(log types.Log) (*CoreRewardsDistributorRemoved, error) { + event := new(CoreRewardsDistributorRemoved) + if err := _Core.contract.UnpackLog(event, "RewardsDistributorRemoved", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliSetMarketMinLiquidityRatioIterator is returned from FilterSetMarketMinLiquidityRatio and is used to iterate over the raw logs and unpacked data for SetMarketMinLiquidityRatio events raised by the CoreGoerli contract. -type CoreGoerliSetMarketMinLiquidityRatioIterator struct { - Event *CoreGoerliSetMarketMinLiquidityRatio // Event containing the contract specifics and raw log +// CoreSetMarketMinLiquidityRatioIterator is returned from FilterSetMarketMinLiquidityRatio and is used to iterate over the raw logs and unpacked data for SetMarketMinLiquidityRatio events raised by the Core contract. +type CoreSetMarketMinLiquidityRatioIterator struct { + Event *CoreSetMarketMinLiquidityRatio // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -10147,7 +10136,7 @@ type CoreGoerliSetMarketMinLiquidityRatioIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliSetMarketMinLiquidityRatioIterator) Next() bool { +func (it *CoreSetMarketMinLiquidityRatioIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -10156,7 +10145,7 @@ func (it *CoreGoerliSetMarketMinLiquidityRatioIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliSetMarketMinLiquidityRatio) + it.Event = new(CoreSetMarketMinLiquidityRatio) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -10171,7 +10160,7 @@ func (it *CoreGoerliSetMarketMinLiquidityRatioIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliSetMarketMinLiquidityRatio) + it.Event = new(CoreSetMarketMinLiquidityRatio) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -10187,19 +10176,19 @@ func (it *CoreGoerliSetMarketMinLiquidityRatioIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliSetMarketMinLiquidityRatioIterator) Error() error { +func (it *CoreSetMarketMinLiquidityRatioIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliSetMarketMinLiquidityRatioIterator) Close() error { +func (it *CoreSetMarketMinLiquidityRatioIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliSetMarketMinLiquidityRatio represents a SetMarketMinLiquidityRatio event raised by the CoreGoerli contract. -type CoreGoerliSetMarketMinLiquidityRatio struct { +// CoreSetMarketMinLiquidityRatio represents a SetMarketMinLiquidityRatio event raised by the Core contract. +type CoreSetMarketMinLiquidityRatio struct { MarketId *big.Int MinLiquidityRatio *big.Int Raw types.Log // Blockchain specific contextual infos @@ -10208,31 +10197,31 @@ type CoreGoerliSetMarketMinLiquidityRatio struct { // FilterSetMarketMinLiquidityRatio is a free log retrieval operation binding the contract event 0x563eb723f21b3e87ec8932cfb4ffa64d1b68c42053c28d6b4db019a40f6daf47. // // Solidity: event SetMarketMinLiquidityRatio(uint128 indexed marketId, uint256 minLiquidityRatio) -func (_CoreGoerli *CoreGoerliFilterer) FilterSetMarketMinLiquidityRatio(opts *bind.FilterOpts, marketId []*big.Int) (*CoreGoerliSetMarketMinLiquidityRatioIterator, error) { +func (_Core *CoreFilterer) FilterSetMarketMinLiquidityRatio(opts *bind.FilterOpts, marketId []*big.Int) (*CoreSetMarketMinLiquidityRatioIterator, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { marketIdRule = append(marketIdRule, marketIdItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "SetMarketMinLiquidityRatio", marketIdRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "SetMarketMinLiquidityRatio", marketIdRule) if err != nil { return nil, err } - return &CoreGoerliSetMarketMinLiquidityRatioIterator{contract: _CoreGoerli.contract, event: "SetMarketMinLiquidityRatio", logs: logs, sub: sub}, nil + return &CoreSetMarketMinLiquidityRatioIterator{contract: _Core.contract, event: "SetMarketMinLiquidityRatio", logs: logs, sub: sub}, nil } // WatchSetMarketMinLiquidityRatio is a free log subscription operation binding the contract event 0x563eb723f21b3e87ec8932cfb4ffa64d1b68c42053c28d6b4db019a40f6daf47. // // Solidity: event SetMarketMinLiquidityRatio(uint128 indexed marketId, uint256 minLiquidityRatio) -func (_CoreGoerli *CoreGoerliFilterer) WatchSetMarketMinLiquidityRatio(opts *bind.WatchOpts, sink chan<- *CoreGoerliSetMarketMinLiquidityRatio, marketId []*big.Int) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchSetMarketMinLiquidityRatio(opts *bind.WatchOpts, sink chan<- *CoreSetMarketMinLiquidityRatio, marketId []*big.Int) (event.Subscription, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { marketIdRule = append(marketIdRule, marketIdItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "SetMarketMinLiquidityRatio", marketIdRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "SetMarketMinLiquidityRatio", marketIdRule) if err != nil { return nil, err } @@ -10242,8 +10231,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchSetMarketMinLiquidityRatio(opts *bin select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliSetMarketMinLiquidityRatio) - if err := _CoreGoerli.contract.UnpackLog(event, "SetMarketMinLiquidityRatio", log); err != nil { + event := new(CoreSetMarketMinLiquidityRatio) + if err := _Core.contract.UnpackLog(event, "SetMarketMinLiquidityRatio", log); err != nil { return err } event.Raw = log @@ -10267,18 +10256,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchSetMarketMinLiquidityRatio(opts *bin // ParseSetMarketMinLiquidityRatio is a log parse operation binding the contract event 0x563eb723f21b3e87ec8932cfb4ffa64d1b68c42053c28d6b4db019a40f6daf47. // // Solidity: event SetMarketMinLiquidityRatio(uint128 indexed marketId, uint256 minLiquidityRatio) -func (_CoreGoerli *CoreGoerliFilterer) ParseSetMarketMinLiquidityRatio(log types.Log) (*CoreGoerliSetMarketMinLiquidityRatio, error) { - event := new(CoreGoerliSetMarketMinLiquidityRatio) - if err := _CoreGoerli.contract.UnpackLog(event, "SetMarketMinLiquidityRatio", log); err != nil { +func (_Core *CoreFilterer) ParseSetMarketMinLiquidityRatio(log types.Log) (*CoreSetMarketMinLiquidityRatio, error) { + event := new(CoreSetMarketMinLiquidityRatio) + if err := _Core.contract.UnpackLog(event, "SetMarketMinLiquidityRatio", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliSetMinDelegateTimeIterator is returned from FilterSetMinDelegateTime and is used to iterate over the raw logs and unpacked data for SetMinDelegateTime events raised by the CoreGoerli contract. -type CoreGoerliSetMinDelegateTimeIterator struct { - Event *CoreGoerliSetMinDelegateTime // Event containing the contract specifics and raw log +// CoreSetMinDelegateTimeIterator is returned from FilterSetMinDelegateTime and is used to iterate over the raw logs and unpacked data for SetMinDelegateTime events raised by the Core contract. +type CoreSetMinDelegateTimeIterator struct { + Event *CoreSetMinDelegateTime // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -10292,7 +10281,7 @@ type CoreGoerliSetMinDelegateTimeIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliSetMinDelegateTimeIterator) Next() bool { +func (it *CoreSetMinDelegateTimeIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -10301,7 +10290,7 @@ func (it *CoreGoerliSetMinDelegateTimeIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliSetMinDelegateTime) + it.Event = new(CoreSetMinDelegateTime) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -10316,7 +10305,7 @@ func (it *CoreGoerliSetMinDelegateTimeIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliSetMinDelegateTime) + it.Event = new(CoreSetMinDelegateTime) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -10332,19 +10321,19 @@ func (it *CoreGoerliSetMinDelegateTimeIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliSetMinDelegateTimeIterator) Error() error { +func (it *CoreSetMinDelegateTimeIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliSetMinDelegateTimeIterator) Close() error { +func (it *CoreSetMinDelegateTimeIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliSetMinDelegateTime represents a SetMinDelegateTime event raised by the CoreGoerli contract. -type CoreGoerliSetMinDelegateTime struct { +// CoreSetMinDelegateTime represents a SetMinDelegateTime event raised by the Core contract. +type CoreSetMinDelegateTime struct { MarketId *big.Int MinDelegateTime uint32 Raw types.Log // Blockchain specific contextual infos @@ -10353,31 +10342,31 @@ type CoreGoerliSetMinDelegateTime struct { // FilterSetMinDelegateTime is a free log retrieval operation binding the contract event 0x6942a68d151863c1fed3c0c4c5f3258af738218527147ac69290ab23ca7d26c6. // // Solidity: event SetMinDelegateTime(uint128 indexed marketId, uint32 minDelegateTime) -func (_CoreGoerli *CoreGoerliFilterer) FilterSetMinDelegateTime(opts *bind.FilterOpts, marketId []*big.Int) (*CoreGoerliSetMinDelegateTimeIterator, error) { +func (_Core *CoreFilterer) FilterSetMinDelegateTime(opts *bind.FilterOpts, marketId []*big.Int) (*CoreSetMinDelegateTimeIterator, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { marketIdRule = append(marketIdRule, marketIdItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "SetMinDelegateTime", marketIdRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "SetMinDelegateTime", marketIdRule) if err != nil { return nil, err } - return &CoreGoerliSetMinDelegateTimeIterator{contract: _CoreGoerli.contract, event: "SetMinDelegateTime", logs: logs, sub: sub}, nil + return &CoreSetMinDelegateTimeIterator{contract: _Core.contract, event: "SetMinDelegateTime", logs: logs, sub: sub}, nil } // WatchSetMinDelegateTime is a free log subscription operation binding the contract event 0x6942a68d151863c1fed3c0c4c5f3258af738218527147ac69290ab23ca7d26c6. // // Solidity: event SetMinDelegateTime(uint128 indexed marketId, uint32 minDelegateTime) -func (_CoreGoerli *CoreGoerliFilterer) WatchSetMinDelegateTime(opts *bind.WatchOpts, sink chan<- *CoreGoerliSetMinDelegateTime, marketId []*big.Int) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchSetMinDelegateTime(opts *bind.WatchOpts, sink chan<- *CoreSetMinDelegateTime, marketId []*big.Int) (event.Subscription, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { marketIdRule = append(marketIdRule, marketIdItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "SetMinDelegateTime", marketIdRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "SetMinDelegateTime", marketIdRule) if err != nil { return nil, err } @@ -10387,8 +10376,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchSetMinDelegateTime(opts *bind.WatchO select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliSetMinDelegateTime) - if err := _CoreGoerli.contract.UnpackLog(event, "SetMinDelegateTime", log); err != nil { + event := new(CoreSetMinDelegateTime) + if err := _Core.contract.UnpackLog(event, "SetMinDelegateTime", log); err != nil { return err } event.Raw = log @@ -10412,18 +10401,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchSetMinDelegateTime(opts *bind.WatchO // ParseSetMinDelegateTime is a log parse operation binding the contract event 0x6942a68d151863c1fed3c0c4c5f3258af738218527147ac69290ab23ca7d26c6. // // Solidity: event SetMinDelegateTime(uint128 indexed marketId, uint32 minDelegateTime) -func (_CoreGoerli *CoreGoerliFilterer) ParseSetMinDelegateTime(log types.Log) (*CoreGoerliSetMinDelegateTime, error) { - event := new(CoreGoerliSetMinDelegateTime) - if err := _CoreGoerli.contract.UnpackLog(event, "SetMinDelegateTime", log); err != nil { +func (_Core *CoreFilterer) ParseSetMinDelegateTime(log types.Log) (*CoreSetMinDelegateTime, error) { + event := new(CoreSetMinDelegateTime) + if err := _Core.contract.UnpackLog(event, "SetMinDelegateTime", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliSetMinLiquidityRatioIterator is returned from FilterSetMinLiquidityRatio and is used to iterate over the raw logs and unpacked data for SetMinLiquidityRatio events raised by the CoreGoerli contract. -type CoreGoerliSetMinLiquidityRatioIterator struct { - Event *CoreGoerliSetMinLiquidityRatio // Event containing the contract specifics and raw log +// CoreSetMinLiquidityRatioIterator is returned from FilterSetMinLiquidityRatio and is used to iterate over the raw logs and unpacked data for SetMinLiquidityRatio events raised by the Core contract. +type CoreSetMinLiquidityRatioIterator struct { + Event *CoreSetMinLiquidityRatio // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -10437,7 +10426,7 @@ type CoreGoerliSetMinLiquidityRatioIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliSetMinLiquidityRatioIterator) Next() bool { +func (it *CoreSetMinLiquidityRatioIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -10446,7 +10435,7 @@ func (it *CoreGoerliSetMinLiquidityRatioIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliSetMinLiquidityRatio) + it.Event = new(CoreSetMinLiquidityRatio) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -10461,7 +10450,7 @@ func (it *CoreGoerliSetMinLiquidityRatioIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliSetMinLiquidityRatio) + it.Event = new(CoreSetMinLiquidityRatio) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -10477,19 +10466,19 @@ func (it *CoreGoerliSetMinLiquidityRatioIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliSetMinLiquidityRatioIterator) Error() error { +func (it *CoreSetMinLiquidityRatioIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliSetMinLiquidityRatioIterator) Close() error { +func (it *CoreSetMinLiquidityRatioIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliSetMinLiquidityRatio represents a SetMinLiquidityRatio event raised by the CoreGoerli contract. -type CoreGoerliSetMinLiquidityRatio struct { +// CoreSetMinLiquidityRatio represents a SetMinLiquidityRatio event raised by the Core contract. +type CoreSetMinLiquidityRatio struct { MinLiquidityRatio *big.Int Raw types.Log // Blockchain specific contextual infos } @@ -10497,21 +10486,21 @@ type CoreGoerliSetMinLiquidityRatio struct { // FilterSetMinLiquidityRatio is a free log retrieval operation binding the contract event 0x66fd484d9868d1faddc8fef1f3faed0ed25eb4e6acde49dd1f2cbf0fba903635. // // Solidity: event SetMinLiquidityRatio(uint256 minLiquidityRatio) -func (_CoreGoerli *CoreGoerliFilterer) FilterSetMinLiquidityRatio(opts *bind.FilterOpts) (*CoreGoerliSetMinLiquidityRatioIterator, error) { +func (_Core *CoreFilterer) FilterSetMinLiquidityRatio(opts *bind.FilterOpts) (*CoreSetMinLiquidityRatioIterator, error) { - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "SetMinLiquidityRatio") + logs, sub, err := _Core.contract.FilterLogs(opts, "SetMinLiquidityRatio") if err != nil { return nil, err } - return &CoreGoerliSetMinLiquidityRatioIterator{contract: _CoreGoerli.contract, event: "SetMinLiquidityRatio", logs: logs, sub: sub}, nil + return &CoreSetMinLiquidityRatioIterator{contract: _Core.contract, event: "SetMinLiquidityRatio", logs: logs, sub: sub}, nil } // WatchSetMinLiquidityRatio is a free log subscription operation binding the contract event 0x66fd484d9868d1faddc8fef1f3faed0ed25eb4e6acde49dd1f2cbf0fba903635. // // Solidity: event SetMinLiquidityRatio(uint256 minLiquidityRatio) -func (_CoreGoerli *CoreGoerliFilterer) WatchSetMinLiquidityRatio(opts *bind.WatchOpts, sink chan<- *CoreGoerliSetMinLiquidityRatio) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchSetMinLiquidityRatio(opts *bind.WatchOpts, sink chan<- *CoreSetMinLiquidityRatio) (event.Subscription, error) { - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "SetMinLiquidityRatio") + logs, sub, err := _Core.contract.WatchLogs(opts, "SetMinLiquidityRatio") if err != nil { return nil, err } @@ -10521,8 +10510,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchSetMinLiquidityRatio(opts *bind.Watc select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliSetMinLiquidityRatio) - if err := _CoreGoerli.contract.UnpackLog(event, "SetMinLiquidityRatio", log); err != nil { + event := new(CoreSetMinLiquidityRatio) + if err := _Core.contract.UnpackLog(event, "SetMinLiquidityRatio", log); err != nil { return err } event.Raw = log @@ -10546,18 +10535,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchSetMinLiquidityRatio(opts *bind.Watc // ParseSetMinLiquidityRatio is a log parse operation binding the contract event 0x66fd484d9868d1faddc8fef1f3faed0ed25eb4e6acde49dd1f2cbf0fba903635. // // Solidity: event SetMinLiquidityRatio(uint256 minLiquidityRatio) -func (_CoreGoerli *CoreGoerliFilterer) ParseSetMinLiquidityRatio(log types.Log) (*CoreGoerliSetMinLiquidityRatio, error) { - event := new(CoreGoerliSetMinLiquidityRatio) - if err := _CoreGoerli.contract.UnpackLog(event, "SetMinLiquidityRatio", log); err != nil { +func (_Core *CoreFilterer) ParseSetMinLiquidityRatio(log types.Log) (*CoreSetMinLiquidityRatio, error) { + event := new(CoreSetMinLiquidityRatio) + if err := _Core.contract.UnpackLog(event, "SetMinLiquidityRatio", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliTransferCrossChainInitiatedIterator is returned from FilterTransferCrossChainInitiated and is used to iterate over the raw logs and unpacked data for TransferCrossChainInitiated events raised by the CoreGoerli contract. -type CoreGoerliTransferCrossChainInitiatedIterator struct { - Event *CoreGoerliTransferCrossChainInitiated // Event containing the contract specifics and raw log +// CoreTransferCrossChainInitiatedIterator is returned from FilterTransferCrossChainInitiated and is used to iterate over the raw logs and unpacked data for TransferCrossChainInitiated events raised by the Core contract. +type CoreTransferCrossChainInitiatedIterator struct { + Event *CoreTransferCrossChainInitiated // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -10571,7 +10560,7 @@ type CoreGoerliTransferCrossChainInitiatedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliTransferCrossChainInitiatedIterator) Next() bool { +func (it *CoreTransferCrossChainInitiatedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -10580,7 +10569,7 @@ func (it *CoreGoerliTransferCrossChainInitiatedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliTransferCrossChainInitiated) + it.Event = new(CoreTransferCrossChainInitiated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -10595,7 +10584,7 @@ func (it *CoreGoerliTransferCrossChainInitiatedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliTransferCrossChainInitiated) + it.Event = new(CoreTransferCrossChainInitiated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -10611,19 +10600,19 @@ func (it *CoreGoerliTransferCrossChainInitiatedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliTransferCrossChainInitiatedIterator) Error() error { +func (it *CoreTransferCrossChainInitiatedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliTransferCrossChainInitiatedIterator) Close() error { +func (it *CoreTransferCrossChainInitiatedIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliTransferCrossChainInitiated represents a TransferCrossChainInitiated event raised by the CoreGoerli contract. -type CoreGoerliTransferCrossChainInitiated struct { +// CoreTransferCrossChainInitiated represents a TransferCrossChainInitiated event raised by the Core contract. +type CoreTransferCrossChainInitiated struct { DestChainId uint64 Amount *big.Int Sender common.Address @@ -10633,7 +10622,7 @@ type CoreGoerliTransferCrossChainInitiated struct { // FilterTransferCrossChainInitiated is a free log retrieval operation binding the contract event 0xb87c3097d7f9145a4915e8e434f04a1b7b91646d8a6e66a5cdab25caccb644c4. // // Solidity: event TransferCrossChainInitiated(uint64 indexed destChainId, uint256 indexed amount, address sender) -func (_CoreGoerli *CoreGoerliFilterer) FilterTransferCrossChainInitiated(opts *bind.FilterOpts, destChainId []uint64, amount []*big.Int) (*CoreGoerliTransferCrossChainInitiatedIterator, error) { +func (_Core *CoreFilterer) FilterTransferCrossChainInitiated(opts *bind.FilterOpts, destChainId []uint64, amount []*big.Int) (*CoreTransferCrossChainInitiatedIterator, error) { var destChainIdRule []interface{} for _, destChainIdItem := range destChainId { @@ -10644,17 +10633,17 @@ func (_CoreGoerli *CoreGoerliFilterer) FilterTransferCrossChainInitiated(opts *b amountRule = append(amountRule, amountItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "TransferCrossChainInitiated", destChainIdRule, amountRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "TransferCrossChainInitiated", destChainIdRule, amountRule) if err != nil { return nil, err } - return &CoreGoerliTransferCrossChainInitiatedIterator{contract: _CoreGoerli.contract, event: "TransferCrossChainInitiated", logs: logs, sub: sub}, nil + return &CoreTransferCrossChainInitiatedIterator{contract: _Core.contract, event: "TransferCrossChainInitiated", logs: logs, sub: sub}, nil } // WatchTransferCrossChainInitiated is a free log subscription operation binding the contract event 0xb87c3097d7f9145a4915e8e434f04a1b7b91646d8a6e66a5cdab25caccb644c4. // // Solidity: event TransferCrossChainInitiated(uint64 indexed destChainId, uint256 indexed amount, address sender) -func (_CoreGoerli *CoreGoerliFilterer) WatchTransferCrossChainInitiated(opts *bind.WatchOpts, sink chan<- *CoreGoerliTransferCrossChainInitiated, destChainId []uint64, amount []*big.Int) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchTransferCrossChainInitiated(opts *bind.WatchOpts, sink chan<- *CoreTransferCrossChainInitiated, destChainId []uint64, amount []*big.Int) (event.Subscription, error) { var destChainIdRule []interface{} for _, destChainIdItem := range destChainId { @@ -10665,7 +10654,7 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchTransferCrossChainInitiated(opts *bi amountRule = append(amountRule, amountItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "TransferCrossChainInitiated", destChainIdRule, amountRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "TransferCrossChainInitiated", destChainIdRule, amountRule) if err != nil { return nil, err } @@ -10675,8 +10664,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchTransferCrossChainInitiated(opts *bi select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliTransferCrossChainInitiated) - if err := _CoreGoerli.contract.UnpackLog(event, "TransferCrossChainInitiated", log); err != nil { + event := new(CoreTransferCrossChainInitiated) + if err := _Core.contract.UnpackLog(event, "TransferCrossChainInitiated", log); err != nil { return err } event.Raw = log @@ -10700,18 +10689,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchTransferCrossChainInitiated(opts *bi // ParseTransferCrossChainInitiated is a log parse operation binding the contract event 0xb87c3097d7f9145a4915e8e434f04a1b7b91646d8a6e66a5cdab25caccb644c4. // // Solidity: event TransferCrossChainInitiated(uint64 indexed destChainId, uint256 indexed amount, address sender) -func (_CoreGoerli *CoreGoerliFilterer) ParseTransferCrossChainInitiated(log types.Log) (*CoreGoerliTransferCrossChainInitiated, error) { - event := new(CoreGoerliTransferCrossChainInitiated) - if err := _CoreGoerli.contract.UnpackLog(event, "TransferCrossChainInitiated", log); err != nil { +func (_Core *CoreFilterer) ParseTransferCrossChainInitiated(log types.Log) (*CoreTransferCrossChainInitiated, error) { + event := new(CoreTransferCrossChainInitiated) + if err := _Core.contract.UnpackLog(event, "TransferCrossChainInitiated", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliUpgradedIterator is returned from FilterUpgraded and is used to iterate over the raw logs and unpacked data for Upgraded events raised by the CoreGoerli contract. -type CoreGoerliUpgradedIterator struct { - Event *CoreGoerliUpgraded // Event containing the contract specifics and raw log +// CoreUpgradedIterator is returned from FilterUpgraded and is used to iterate over the raw logs and unpacked data for Upgraded events raised by the Core contract. +type CoreUpgradedIterator struct { + Event *CoreUpgraded // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -10725,7 +10714,7 @@ type CoreGoerliUpgradedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliUpgradedIterator) Next() bool { +func (it *CoreUpgradedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -10734,7 +10723,7 @@ func (it *CoreGoerliUpgradedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliUpgraded) + it.Event = new(CoreUpgraded) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -10749,7 +10738,7 @@ func (it *CoreGoerliUpgradedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliUpgraded) + it.Event = new(CoreUpgraded) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -10765,19 +10754,19 @@ func (it *CoreGoerliUpgradedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliUpgradedIterator) Error() error { +func (it *CoreUpgradedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliUpgradedIterator) Close() error { +func (it *CoreUpgradedIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliUpgraded represents a Upgraded event raised by the CoreGoerli contract. -type CoreGoerliUpgraded struct { +// CoreUpgraded represents a Upgraded event raised by the Core contract. +type CoreUpgraded struct { Self common.Address Implementation common.Address Raw types.Log // Blockchain specific contextual infos @@ -10786,31 +10775,31 @@ type CoreGoerliUpgraded struct { // FilterUpgraded is a free log retrieval operation binding the contract event 0x5d611f318680d00598bb735d61bacf0c514c6b50e1e5ad30040a4df2b12791c7. // // Solidity: event Upgraded(address indexed self, address implementation) -func (_CoreGoerli *CoreGoerliFilterer) FilterUpgraded(opts *bind.FilterOpts, self []common.Address) (*CoreGoerliUpgradedIterator, error) { +func (_Core *CoreFilterer) FilterUpgraded(opts *bind.FilterOpts, self []common.Address) (*CoreUpgradedIterator, error) { var selfRule []interface{} for _, selfItem := range self { selfRule = append(selfRule, selfItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "Upgraded", selfRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "Upgraded", selfRule) if err != nil { return nil, err } - return &CoreGoerliUpgradedIterator{contract: _CoreGoerli.contract, event: "Upgraded", logs: logs, sub: sub}, nil + return &CoreUpgradedIterator{contract: _Core.contract, event: "Upgraded", logs: logs, sub: sub}, nil } // WatchUpgraded is a free log subscription operation binding the contract event 0x5d611f318680d00598bb735d61bacf0c514c6b50e1e5ad30040a4df2b12791c7. // // Solidity: event Upgraded(address indexed self, address implementation) -func (_CoreGoerli *CoreGoerliFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *CoreGoerliUpgraded, self []common.Address) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *CoreUpgraded, self []common.Address) (event.Subscription, error) { var selfRule []interface{} for _, selfItem := range self { selfRule = append(selfRule, selfItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "Upgraded", selfRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "Upgraded", selfRule) if err != nil { return nil, err } @@ -10820,8 +10809,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchUpgraded(opts *bind.WatchOpts, sink select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliUpgraded) - if err := _CoreGoerli.contract.UnpackLog(event, "Upgraded", log); err != nil { + event := new(CoreUpgraded) + if err := _Core.contract.UnpackLog(event, "Upgraded", log); err != nil { return err } event.Raw = log @@ -10845,18 +10834,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchUpgraded(opts *bind.WatchOpts, sink // ParseUpgraded is a log parse operation binding the contract event 0x5d611f318680d00598bb735d61bacf0c514c6b50e1e5ad30040a4df2b12791c7. // // Solidity: event Upgraded(address indexed self, address implementation) -func (_CoreGoerli *CoreGoerliFilterer) ParseUpgraded(log types.Log) (*CoreGoerliUpgraded, error) { - event := new(CoreGoerliUpgraded) - if err := _CoreGoerli.contract.UnpackLog(event, "Upgraded", log); err != nil { +func (_Core *CoreFilterer) ParseUpgraded(log types.Log) (*CoreUpgraded, error) { + event := new(CoreUpgraded) + if err := _Core.contract.UnpackLog(event, "Upgraded", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliUsdBurnedIterator is returned from FilterUsdBurned and is used to iterate over the raw logs and unpacked data for UsdBurned events raised by the CoreGoerli contract. -type CoreGoerliUsdBurnedIterator struct { - Event *CoreGoerliUsdBurned // Event containing the contract specifics and raw log +// CoreUsdBurnedIterator is returned from FilterUsdBurned and is used to iterate over the raw logs and unpacked data for UsdBurned events raised by the Core contract. +type CoreUsdBurnedIterator struct { + Event *CoreUsdBurned // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -10870,7 +10859,7 @@ type CoreGoerliUsdBurnedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliUsdBurnedIterator) Next() bool { +func (it *CoreUsdBurnedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -10879,7 +10868,7 @@ func (it *CoreGoerliUsdBurnedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliUsdBurned) + it.Event = new(CoreUsdBurned) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -10894,7 +10883,7 @@ func (it *CoreGoerliUsdBurnedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliUsdBurned) + it.Event = new(CoreUsdBurned) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -10910,19 +10899,19 @@ func (it *CoreGoerliUsdBurnedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliUsdBurnedIterator) Error() error { +func (it *CoreUsdBurnedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliUsdBurnedIterator) Close() error { +func (it *CoreUsdBurnedIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliUsdBurned represents a UsdBurned event raised by the CoreGoerli contract. -type CoreGoerliUsdBurned struct { +// CoreUsdBurned represents a UsdBurned event raised by the Core contract. +type CoreUsdBurned struct { AccountId *big.Int PoolId *big.Int CollateralType common.Address @@ -10934,7 +10923,7 @@ type CoreGoerliUsdBurned struct { // FilterUsdBurned is a free log retrieval operation binding the contract event 0x6b0230f0abe9188cbdbb1c816a4c5e213758b5b743d8a94af056280cc1e7aeb1. // // Solidity: event UsdBurned(uint128 indexed accountId, uint128 indexed poolId, address collateralType, uint256 amount, address indexed sender) -func (_CoreGoerli *CoreGoerliFilterer) FilterUsdBurned(opts *bind.FilterOpts, accountId []*big.Int, poolId []*big.Int, sender []common.Address) (*CoreGoerliUsdBurnedIterator, error) { +func (_Core *CoreFilterer) FilterUsdBurned(opts *bind.FilterOpts, accountId []*big.Int, poolId []*big.Int, sender []common.Address) (*CoreUsdBurnedIterator, error) { var accountIdRule []interface{} for _, accountIdItem := range accountId { @@ -10950,17 +10939,17 @@ func (_CoreGoerli *CoreGoerliFilterer) FilterUsdBurned(opts *bind.FilterOpts, ac senderRule = append(senderRule, senderItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "UsdBurned", accountIdRule, poolIdRule, senderRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "UsdBurned", accountIdRule, poolIdRule, senderRule) if err != nil { return nil, err } - return &CoreGoerliUsdBurnedIterator{contract: _CoreGoerli.contract, event: "UsdBurned", logs: logs, sub: sub}, nil + return &CoreUsdBurnedIterator{contract: _Core.contract, event: "UsdBurned", logs: logs, sub: sub}, nil } // WatchUsdBurned is a free log subscription operation binding the contract event 0x6b0230f0abe9188cbdbb1c816a4c5e213758b5b743d8a94af056280cc1e7aeb1. // // Solidity: event UsdBurned(uint128 indexed accountId, uint128 indexed poolId, address collateralType, uint256 amount, address indexed sender) -func (_CoreGoerli *CoreGoerliFilterer) WatchUsdBurned(opts *bind.WatchOpts, sink chan<- *CoreGoerliUsdBurned, accountId []*big.Int, poolId []*big.Int, sender []common.Address) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchUsdBurned(opts *bind.WatchOpts, sink chan<- *CoreUsdBurned, accountId []*big.Int, poolId []*big.Int, sender []common.Address) (event.Subscription, error) { var accountIdRule []interface{} for _, accountIdItem := range accountId { @@ -10976,7 +10965,7 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchUsdBurned(opts *bind.WatchOpts, sink senderRule = append(senderRule, senderItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "UsdBurned", accountIdRule, poolIdRule, senderRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "UsdBurned", accountIdRule, poolIdRule, senderRule) if err != nil { return nil, err } @@ -10986,8 +10975,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchUsdBurned(opts *bind.WatchOpts, sink select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliUsdBurned) - if err := _CoreGoerli.contract.UnpackLog(event, "UsdBurned", log); err != nil { + event := new(CoreUsdBurned) + if err := _Core.contract.UnpackLog(event, "UsdBurned", log); err != nil { return err } event.Raw = log @@ -11011,18 +11000,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchUsdBurned(opts *bind.WatchOpts, sink // ParseUsdBurned is a log parse operation binding the contract event 0x6b0230f0abe9188cbdbb1c816a4c5e213758b5b743d8a94af056280cc1e7aeb1. // // Solidity: event UsdBurned(uint128 indexed accountId, uint128 indexed poolId, address collateralType, uint256 amount, address indexed sender) -func (_CoreGoerli *CoreGoerliFilterer) ParseUsdBurned(log types.Log) (*CoreGoerliUsdBurned, error) { - event := new(CoreGoerliUsdBurned) - if err := _CoreGoerli.contract.UnpackLog(event, "UsdBurned", log); err != nil { +func (_Core *CoreFilterer) ParseUsdBurned(log types.Log) (*CoreUsdBurned, error) { + event := new(CoreUsdBurned) + if err := _Core.contract.UnpackLog(event, "UsdBurned", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliUsdMintedIterator is returned from FilterUsdMinted and is used to iterate over the raw logs and unpacked data for UsdMinted events raised by the CoreGoerli contract. -type CoreGoerliUsdMintedIterator struct { - Event *CoreGoerliUsdMinted // Event containing the contract specifics and raw log +// CoreUsdMintedIterator is returned from FilterUsdMinted and is used to iterate over the raw logs and unpacked data for UsdMinted events raised by the Core contract. +type CoreUsdMintedIterator struct { + Event *CoreUsdMinted // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -11036,7 +11025,7 @@ type CoreGoerliUsdMintedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliUsdMintedIterator) Next() bool { +func (it *CoreUsdMintedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -11045,7 +11034,7 @@ func (it *CoreGoerliUsdMintedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliUsdMinted) + it.Event = new(CoreUsdMinted) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -11060,7 +11049,7 @@ func (it *CoreGoerliUsdMintedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliUsdMinted) + it.Event = new(CoreUsdMinted) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -11076,19 +11065,19 @@ func (it *CoreGoerliUsdMintedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliUsdMintedIterator) Error() error { +func (it *CoreUsdMintedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliUsdMintedIterator) Close() error { +func (it *CoreUsdMintedIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliUsdMinted represents a UsdMinted event raised by the CoreGoerli contract. -type CoreGoerliUsdMinted struct { +// CoreUsdMinted represents a UsdMinted event raised by the Core contract. +type CoreUsdMinted struct { AccountId *big.Int PoolId *big.Int CollateralType common.Address @@ -11100,7 +11089,7 @@ type CoreGoerliUsdMinted struct { // FilterUsdMinted is a free log retrieval operation binding the contract event 0x2100f67dc9a5917400f799bb13194553e3f74c19a207c56350d2c223ac9c36c9. // // Solidity: event UsdMinted(uint128 indexed accountId, uint128 indexed poolId, address collateralType, uint256 amount, address indexed sender) -func (_CoreGoerli *CoreGoerliFilterer) FilterUsdMinted(opts *bind.FilterOpts, accountId []*big.Int, poolId []*big.Int, sender []common.Address) (*CoreGoerliUsdMintedIterator, error) { +func (_Core *CoreFilterer) FilterUsdMinted(opts *bind.FilterOpts, accountId []*big.Int, poolId []*big.Int, sender []common.Address) (*CoreUsdMintedIterator, error) { var accountIdRule []interface{} for _, accountIdItem := range accountId { @@ -11116,17 +11105,17 @@ func (_CoreGoerli *CoreGoerliFilterer) FilterUsdMinted(opts *bind.FilterOpts, ac senderRule = append(senderRule, senderItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "UsdMinted", accountIdRule, poolIdRule, senderRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "UsdMinted", accountIdRule, poolIdRule, senderRule) if err != nil { return nil, err } - return &CoreGoerliUsdMintedIterator{contract: _CoreGoerli.contract, event: "UsdMinted", logs: logs, sub: sub}, nil + return &CoreUsdMintedIterator{contract: _Core.contract, event: "UsdMinted", logs: logs, sub: sub}, nil } // WatchUsdMinted is a free log subscription operation binding the contract event 0x2100f67dc9a5917400f799bb13194553e3f74c19a207c56350d2c223ac9c36c9. // // Solidity: event UsdMinted(uint128 indexed accountId, uint128 indexed poolId, address collateralType, uint256 amount, address indexed sender) -func (_CoreGoerli *CoreGoerliFilterer) WatchUsdMinted(opts *bind.WatchOpts, sink chan<- *CoreGoerliUsdMinted, accountId []*big.Int, poolId []*big.Int, sender []common.Address) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchUsdMinted(opts *bind.WatchOpts, sink chan<- *CoreUsdMinted, accountId []*big.Int, poolId []*big.Int, sender []common.Address) (event.Subscription, error) { var accountIdRule []interface{} for _, accountIdItem := range accountId { @@ -11142,7 +11131,7 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchUsdMinted(opts *bind.WatchOpts, sink senderRule = append(senderRule, senderItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "UsdMinted", accountIdRule, poolIdRule, senderRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "UsdMinted", accountIdRule, poolIdRule, senderRule) if err != nil { return nil, err } @@ -11152,8 +11141,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchUsdMinted(opts *bind.WatchOpts, sink select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliUsdMinted) - if err := _CoreGoerli.contract.UnpackLog(event, "UsdMinted", log); err != nil { + event := new(CoreUsdMinted) + if err := _Core.contract.UnpackLog(event, "UsdMinted", log); err != nil { return err } event.Raw = log @@ -11177,18 +11166,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchUsdMinted(opts *bind.WatchOpts, sink // ParseUsdMinted is a log parse operation binding the contract event 0x2100f67dc9a5917400f799bb13194553e3f74c19a207c56350d2c223ac9c36c9. // // Solidity: event UsdMinted(uint128 indexed accountId, uint128 indexed poolId, address collateralType, uint256 amount, address indexed sender) -func (_CoreGoerli *CoreGoerliFilterer) ParseUsdMinted(log types.Log) (*CoreGoerliUsdMinted, error) { - event := new(CoreGoerliUsdMinted) - if err := _CoreGoerli.contract.UnpackLog(event, "UsdMinted", log); err != nil { +func (_Core *CoreFilterer) ParseUsdMinted(log types.Log) (*CoreUsdMinted, error) { + event := new(CoreUsdMinted) + if err := _Core.contract.UnpackLog(event, "UsdMinted", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliVaultLiquidationIterator is returned from FilterVaultLiquidation and is used to iterate over the raw logs and unpacked data for VaultLiquidation events raised by the CoreGoerli contract. -type CoreGoerliVaultLiquidationIterator struct { - Event *CoreGoerliVaultLiquidation // Event containing the contract specifics and raw log +// CoreVaultLiquidationIterator is returned from FilterVaultLiquidation and is used to iterate over the raw logs and unpacked data for VaultLiquidation events raised by the Core contract. +type CoreVaultLiquidationIterator struct { + Event *CoreVaultLiquidation // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -11202,7 +11191,7 @@ type CoreGoerliVaultLiquidationIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliVaultLiquidationIterator) Next() bool { +func (it *CoreVaultLiquidationIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -11211,7 +11200,7 @@ func (it *CoreGoerliVaultLiquidationIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliVaultLiquidation) + it.Event = new(CoreVaultLiquidation) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -11226,7 +11215,7 @@ func (it *CoreGoerliVaultLiquidationIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliVaultLiquidation) + it.Event = new(CoreVaultLiquidation) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -11242,19 +11231,19 @@ func (it *CoreGoerliVaultLiquidationIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliVaultLiquidationIterator) Error() error { +func (it *CoreVaultLiquidationIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliVaultLiquidationIterator) Close() error { +func (it *CoreVaultLiquidationIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliVaultLiquidation represents a VaultLiquidation event raised by the CoreGoerli contract. -type CoreGoerliVaultLiquidation struct { +// CoreVaultLiquidation represents a VaultLiquidation event raised by the Core contract. +type CoreVaultLiquidation struct { PoolId *big.Int CollateralType common.Address LiquidationData ILiquidationModuleLiquidationData @@ -11266,7 +11255,7 @@ type CoreGoerliVaultLiquidation struct { // FilterVaultLiquidation is a free log retrieval operation binding the contract event 0x1834a7cc9d14f9bfa482df5c0404dadd1b8ec123b41f082e76ae28a3b2ea68d5. // // Solidity: event VaultLiquidation(uint128 indexed poolId, address indexed collateralType, (uint256,uint256,uint256) liquidationData, uint128 liquidateAsAccountId, address sender) -func (_CoreGoerli *CoreGoerliFilterer) FilterVaultLiquidation(opts *bind.FilterOpts, poolId []*big.Int, collateralType []common.Address) (*CoreGoerliVaultLiquidationIterator, error) { +func (_Core *CoreFilterer) FilterVaultLiquidation(opts *bind.FilterOpts, poolId []*big.Int, collateralType []common.Address) (*CoreVaultLiquidationIterator, error) { var poolIdRule []interface{} for _, poolIdItem := range poolId { @@ -11277,17 +11266,17 @@ func (_CoreGoerli *CoreGoerliFilterer) FilterVaultLiquidation(opts *bind.FilterO collateralTypeRule = append(collateralTypeRule, collateralTypeItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "VaultLiquidation", poolIdRule, collateralTypeRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "VaultLiquidation", poolIdRule, collateralTypeRule) if err != nil { return nil, err } - return &CoreGoerliVaultLiquidationIterator{contract: _CoreGoerli.contract, event: "VaultLiquidation", logs: logs, sub: sub}, nil + return &CoreVaultLiquidationIterator{contract: _Core.contract, event: "VaultLiquidation", logs: logs, sub: sub}, nil } // WatchVaultLiquidation is a free log subscription operation binding the contract event 0x1834a7cc9d14f9bfa482df5c0404dadd1b8ec123b41f082e76ae28a3b2ea68d5. // // Solidity: event VaultLiquidation(uint128 indexed poolId, address indexed collateralType, (uint256,uint256,uint256) liquidationData, uint128 liquidateAsAccountId, address sender) -func (_CoreGoerli *CoreGoerliFilterer) WatchVaultLiquidation(opts *bind.WatchOpts, sink chan<- *CoreGoerliVaultLiquidation, poolId []*big.Int, collateralType []common.Address) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchVaultLiquidation(opts *bind.WatchOpts, sink chan<- *CoreVaultLiquidation, poolId []*big.Int, collateralType []common.Address) (event.Subscription, error) { var poolIdRule []interface{} for _, poolIdItem := range poolId { @@ -11298,7 +11287,7 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchVaultLiquidation(opts *bind.WatchOpt collateralTypeRule = append(collateralTypeRule, collateralTypeItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "VaultLiquidation", poolIdRule, collateralTypeRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "VaultLiquidation", poolIdRule, collateralTypeRule) if err != nil { return nil, err } @@ -11308,8 +11297,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchVaultLiquidation(opts *bind.WatchOpt select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliVaultLiquidation) - if err := _CoreGoerli.contract.UnpackLog(event, "VaultLiquidation", log); err != nil { + event := new(CoreVaultLiquidation) + if err := _Core.contract.UnpackLog(event, "VaultLiquidation", log); err != nil { return err } event.Raw = log @@ -11333,18 +11322,18 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchVaultLiquidation(opts *bind.WatchOpt // ParseVaultLiquidation is a log parse operation binding the contract event 0x1834a7cc9d14f9bfa482df5c0404dadd1b8ec123b41f082e76ae28a3b2ea68d5. // // Solidity: event VaultLiquidation(uint128 indexed poolId, address indexed collateralType, (uint256,uint256,uint256) liquidationData, uint128 liquidateAsAccountId, address sender) -func (_CoreGoerli *CoreGoerliFilterer) ParseVaultLiquidation(log types.Log) (*CoreGoerliVaultLiquidation, error) { - event := new(CoreGoerliVaultLiquidation) - if err := _CoreGoerli.contract.UnpackLog(event, "VaultLiquidation", log); err != nil { +func (_Core *CoreFilterer) ParseVaultLiquidation(log types.Log) (*CoreVaultLiquidation, error) { + event := new(CoreVaultLiquidation) + if err := _Core.contract.UnpackLog(event, "VaultLiquidation", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CoreGoerliWithdrawnIterator is returned from FilterWithdrawn and is used to iterate over the raw logs and unpacked data for Withdrawn events raised by the CoreGoerli contract. -type CoreGoerliWithdrawnIterator struct { - Event *CoreGoerliWithdrawn // Event containing the contract specifics and raw log +// CoreWithdrawnIterator is returned from FilterWithdrawn and is used to iterate over the raw logs and unpacked data for Withdrawn events raised by the Core contract. +type CoreWithdrawnIterator struct { + Event *CoreWithdrawn // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -11358,7 +11347,7 @@ type CoreGoerliWithdrawnIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CoreGoerliWithdrawnIterator) Next() bool { +func (it *CoreWithdrawnIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -11367,7 +11356,7 @@ func (it *CoreGoerliWithdrawnIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CoreGoerliWithdrawn) + it.Event = new(CoreWithdrawn) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -11382,7 +11371,7 @@ func (it *CoreGoerliWithdrawnIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CoreGoerliWithdrawn) + it.Event = new(CoreWithdrawn) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -11398,19 +11387,19 @@ func (it *CoreGoerliWithdrawnIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreGoerliWithdrawnIterator) Error() error { +func (it *CoreWithdrawnIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CoreGoerliWithdrawnIterator) Close() error { +func (it *CoreWithdrawnIterator) Close() error { it.sub.Unsubscribe() return nil } -// CoreGoerliWithdrawn represents a Withdrawn event raised by the CoreGoerli contract. -type CoreGoerliWithdrawn struct { +// CoreWithdrawn represents a Withdrawn event raised by the Core contract. +type CoreWithdrawn struct { AccountId *big.Int CollateralType common.Address TokenAmount *big.Int @@ -11421,7 +11410,7 @@ type CoreGoerliWithdrawn struct { // FilterWithdrawn is a free log retrieval operation binding the contract event 0x8b5f9d7ce522936589c630db08c0fa2405b21c4a5ff8ef19899900172736ba38. // // Solidity: event Withdrawn(uint128 indexed accountId, address indexed collateralType, uint256 tokenAmount, address indexed sender) -func (_CoreGoerli *CoreGoerliFilterer) FilterWithdrawn(opts *bind.FilterOpts, accountId []*big.Int, collateralType []common.Address, sender []common.Address) (*CoreGoerliWithdrawnIterator, error) { +func (_Core *CoreFilterer) FilterWithdrawn(opts *bind.FilterOpts, accountId []*big.Int, collateralType []common.Address, sender []common.Address) (*CoreWithdrawnIterator, error) { var accountIdRule []interface{} for _, accountIdItem := range accountId { @@ -11437,17 +11426,17 @@ func (_CoreGoerli *CoreGoerliFilterer) FilterWithdrawn(opts *bind.FilterOpts, ac senderRule = append(senderRule, senderItem) } - logs, sub, err := _CoreGoerli.contract.FilterLogs(opts, "Withdrawn", accountIdRule, collateralTypeRule, senderRule) + logs, sub, err := _Core.contract.FilterLogs(opts, "Withdrawn", accountIdRule, collateralTypeRule, senderRule) if err != nil { return nil, err } - return &CoreGoerliWithdrawnIterator{contract: _CoreGoerli.contract, event: "Withdrawn", logs: logs, sub: sub}, nil + return &CoreWithdrawnIterator{contract: _Core.contract, event: "Withdrawn", logs: logs, sub: sub}, nil } // WatchWithdrawn is a free log subscription operation binding the contract event 0x8b5f9d7ce522936589c630db08c0fa2405b21c4a5ff8ef19899900172736ba38. // // Solidity: event Withdrawn(uint128 indexed accountId, address indexed collateralType, uint256 tokenAmount, address indexed sender) -func (_CoreGoerli *CoreGoerliFilterer) WatchWithdrawn(opts *bind.WatchOpts, sink chan<- *CoreGoerliWithdrawn, accountId []*big.Int, collateralType []common.Address, sender []common.Address) (event.Subscription, error) { +func (_Core *CoreFilterer) WatchWithdrawn(opts *bind.WatchOpts, sink chan<- *CoreWithdrawn, accountId []*big.Int, collateralType []common.Address, sender []common.Address) (event.Subscription, error) { var accountIdRule []interface{} for _, accountIdItem := range accountId { @@ -11463,7 +11452,7 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchWithdrawn(opts *bind.WatchOpts, sink senderRule = append(senderRule, senderItem) } - logs, sub, err := _CoreGoerli.contract.WatchLogs(opts, "Withdrawn", accountIdRule, collateralTypeRule, senderRule) + logs, sub, err := _Core.contract.WatchLogs(opts, "Withdrawn", accountIdRule, collateralTypeRule, senderRule) if err != nil { return nil, err } @@ -11473,8 +11462,8 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchWithdrawn(opts *bind.WatchOpts, sink select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CoreGoerliWithdrawn) - if err := _CoreGoerli.contract.UnpackLog(event, "Withdrawn", log); err != nil { + event := new(CoreWithdrawn) + if err := _Core.contract.UnpackLog(event, "Withdrawn", log); err != nil { return err } event.Raw = log @@ -11498,9 +11487,9 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchWithdrawn(opts *bind.WatchOpts, sink // ParseWithdrawn is a log parse operation binding the contract event 0x8b5f9d7ce522936589c630db08c0fa2405b21c4a5ff8ef19899900172736ba38. // // Solidity: event Withdrawn(uint128 indexed accountId, address indexed collateralType, uint256 tokenAmount, address indexed sender) -func (_CoreGoerli *CoreGoerliFilterer) ParseWithdrawn(log types.Log) (*CoreGoerliWithdrawn, error) { - event := new(CoreGoerliWithdrawn) - if err := _CoreGoerli.contract.UnpackLog(event, "Withdrawn", log); err != nil { +func (_Core *CoreFilterer) ParseWithdrawn(log types.Log) (*CoreWithdrawn, error) { + event := new(CoreWithdrawn) + if err := _Core.contract.UnpackLog(event, "Withdrawn", log); err != nil { return nil, err } event.Raw = log diff --git a/contracts/coreOptimism/contract.go b/contracts/coreOptimism/contract.go deleted file mode 100644 index b3bedfa..0000000 --- a/contracts/coreOptimism/contract.go +++ /dev/null @@ -1,11508 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package coreOptimism - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// CcipClientAny2EVMMessage is an auto generated low-level Go binding around an user-defined struct. -type CcipClientAny2EVMMessage struct { - MessageId [32]byte - SourceChainSelector uint64 - Sender []byte - Data []byte - TokenAmounts []CcipClientEVMTokenAmount -} - -// CcipClientEVMTokenAmount is an auto generated low-level Go binding around an user-defined struct. -type CcipClientEVMTokenAmount struct { - Token common.Address - Amount *big.Int -} - -// CollateralConfigurationData is an auto generated low-level Go binding around an user-defined struct. -type CollateralConfigurationData struct { - DepositingEnabled bool - IssuanceRatioD18 *big.Int - LiquidationRatioD18 *big.Int - LiquidationRewardD18 *big.Int - OracleNodeId [32]byte - TokenAddress common.Address - MinDelegationD18 *big.Int -} - -// CollateralLockData is an auto generated low-level Go binding around an user-defined struct. -type CollateralLockData struct { - AmountD18 *big.Int - LockExpirationTime uint64 -} - -// IAccountModuleAccountPermissions is an auto generated low-level Go binding around an user-defined struct. -type IAccountModuleAccountPermissions struct { - User common.Address - Permissions [][32]byte -} - -// ILiquidationModuleLiquidationData is an auto generated low-level Go binding around an user-defined struct. -type ILiquidationModuleLiquidationData struct { - DebtLiquidated *big.Int - CollateralLiquidated *big.Int - AmountRewarded *big.Int -} - -// MarketConfigurationData is an auto generated low-level Go binding around an user-defined struct. -type MarketConfigurationData struct { - MarketId *big.Int - WeightD18 *big.Int - MaxDebtShareValueD18 *big.Int -} - -// PoolCollateralConfigurationData is an auto generated low-level Go binding around an user-defined struct. -type PoolCollateralConfigurationData struct { - CollateralLimitD18 *big.Int - IssuanceRatioD18 *big.Int -} - -// CoreOptimismMetaData contains all meta data concerning the CoreOptimism contract. -var CoreOptimismMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"ImplementationIsSterile\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NoChange\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"contr\",\"type\":\"address\"}],\"name\":\"NotAContract\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"NotNominated\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"Unauthorized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UpgradeSimulationFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroAddress\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldOwner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnerChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnerNominated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"self\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getImplementation\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newNominatedOwner\",\"type\":\"address\"}],\"name\":\"nominateNewOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nominatedOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceNomination\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"simulateUpgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"upgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ValueAlreadyInSet\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ValueNotInSet\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"allowAll\",\"type\":\"bool\"}],\"name\":\"FeatureFlagAllowAllSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"FeatureFlagAllowlistAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"FeatureFlagAllowlistRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"deniers\",\"type\":\"address[]\"}],\"name\":\"FeatureFlagDeniersReset\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"denyAll\",\"type\":\"bool\"}],\"name\":\"FeatureFlagDenyAllSet\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"addToFeatureFlagAllowlist\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"}],\"name\":\"getDeniers\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"}],\"name\":\"getFeatureFlagAllowAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"}],\"name\":\"getFeatureFlagAllowlist\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"}],\"name\":\"getFeatureFlagDenyAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"isFeatureAllowed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"removeFromFeatureFlagAllowlist\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"address[]\",\"name\":\"deniers\",\"type\":\"address[]\"}],\"name\":\"setDeniers\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"bool\",\"name\":\"allowAll\",\"type\":\"bool\"}],\"name\":\"setFeatureFlagAllowAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"bool\",\"name\":\"denyAll\",\"type\":\"bool\"}],\"name\":\"setFeatureFlagDenyAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"which\",\"type\":\"bytes32\"}],\"name\":\"FeatureUnavailable\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"InvalidAccountId\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"}],\"name\":\"InvalidPermission\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"origin\",\"type\":\"address\"}],\"name\":\"OnlyAccountTokenProxy\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"}],\"name\":\"PermissionDenied\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"PermissionNotGranted\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"PositionOutOfBounds\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"AccountCreated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"PermissionGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"PermissionRevoked\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"createAccount\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"requestedAccountId\",\"type\":\"uint128\"}],\"name\":\"createAccount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"getAccountLastInteraction\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"getAccountOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"getAccountPermissions\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"bytes32[]\",\"name\":\"permissions\",\"type\":\"bytes32[]\"}],\"internalType\":\"structIAccountModule.AccountPermissions[]\",\"name\":\"accountPerms\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAccountTokenAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"grantPermission\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"hasPermission\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"isAuthorized\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"notifyAccountTransfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"}],\"name\":\"renouncePermission\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"revokePermission\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"AccountNotFound\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EmptyDistribution\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"collateralValue\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"debt\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"ratio\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minRatio\",\"type\":\"uint256\"}],\"name\":\"InsufficientCollateralRatio\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"MarketNotFound\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"marketId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"poolId\",\"type\":\"uint256\"}],\"name\":\"NotFundedByPool\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowInt256ToInt128\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowInt256ToUint256\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowUint128ToInt128\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowUint256ToInt256\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowUint256ToUint128\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"updatedDebt\",\"type\":\"int256\"}],\"name\":\"DebtAssociated\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"associateDebt\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"expected\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"actual\",\"type\":\"bytes32\"}],\"name\":\"MismatchAssociatedSystemKind\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"MissingAssociatedSystem\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"kind\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"impl\",\"type\":\"address\"}],\"name\":\"AssociatedSystemSet\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"getAssociatedSystem\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"kind\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"impl\",\"type\":\"address\"}],\"name\":\"initOrUpgradeNft\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"uint8\",\"name\":\"decimals\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"impl\",\"type\":\"address\"}],\"name\":\"initOrUpgradeToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"endpoint\",\"type\":\"address\"}],\"name\":\"registerUnmanagedSystem\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"InvalidMessage\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"NotCcipRouter\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"name\":\"UnsupportedNetwork\",\"type\":\"error\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"messageId\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"sourceChainSelector\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"sender\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structCcipClient.EVMTokenAmount[]\",\"name\":\"tokenAmounts\",\"type\":\"tuple[]\"}],\"internalType\":\"structCcipClient.Any2EVMMessage\",\"name\":\"message\",\"type\":\"tuple\"}],\"name\":\"ccipReceive\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"currentTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"requiredTime\",\"type\":\"uint256\"}],\"name\":\"AccountActivityTimeoutPending\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"CollateralDepositDisabled\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CollateralNotFound\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"FailedTransfer\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountAvailableForDelegationD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountD18\",\"type\":\"uint256\"}],\"name\":\"InsufficentAvailableCollateral\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"InsufficientAccountCollateral\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"required\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"existing\",\"type\":\"uint256\"}],\"name\":\"InsufficientAllowance\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"parameter\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"reason\",\"type\":\"string\"}],\"name\":\"InvalidParameter\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowUint256ToUint64\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"decimals\",\"type\":\"uint8\"}],\"name\":\"PrecisionLost\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"expireTimestamp\",\"type\":\"uint64\"}],\"name\":\"CollateralLockCreated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"expireTimestamp\",\"type\":\"uint64\"}],\"name\":\"CollateralLockExpired\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"Deposited\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"Withdrawn\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"offset\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"count\",\"type\":\"uint256\"}],\"name\":\"cleanExpiredLocks\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"cleared\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"expireTimestamp\",\"type\":\"uint64\"}],\"name\":\"createLock\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getAccountAvailableCollateral\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getAccountCollateral\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"totalDeposited\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalAssigned\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalLocked\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"offset\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"count\",\"type\":\"uint256\"}],\"name\":\"getLocks\",\"outputs\":[{\"components\":[{\"internalType\":\"uint128\",\"name\":\"amountD18\",\"type\":\"uint128\"},{\"internalType\":\"uint64\",\"name\":\"lockExpirationTime\",\"type\":\"uint64\"}],\"internalType\":\"structCollateralLock.Data[]\",\"name\":\"locks\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"depositingEnabled\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"issuanceRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidationRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidationRewardD18\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"oracleNodeId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minDelegationD18\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"structCollateralConfiguration.Data\",\"name\":\"config\",\"type\":\"tuple\"}],\"name\":\"CollateralConfigured\",\"type\":\"event\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"depositingEnabled\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"issuanceRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidationRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidationRewardD18\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"oracleNodeId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minDelegationD18\",\"type\":\"uint256\"}],\"internalType\":\"structCollateralConfiguration.Data\",\"name\":\"config\",\"type\":\"tuple\"}],\"name\":\"configureCollateral\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getCollateralConfiguration\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"depositingEnabled\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"issuanceRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidationRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidationRewardD18\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"oracleNodeId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minDelegationD18\",\"type\":\"uint256\"}],\"internalType\":\"structCollateralConfiguration.Data\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"hideDisabled\",\"type\":\"bool\"}],\"name\":\"getCollateralConfigurations\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"depositingEnabled\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"issuanceRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidationRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidationRewardD18\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"oracleNodeId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minDelegationD18\",\"type\":\"uint256\"}],\"internalType\":\"structCollateralConfiguration.Data[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getCollateralPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"requiredAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"availableAmount\",\"type\":\"uint256\"}],\"name\":\"InsufficientCcipFee\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"destChainId\",\"type\":\"uint64\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"TransferCrossChainInitiated\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"destChainId\",\"type\":\"uint64\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferCrossChain\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"gasTokenUsed\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int256\",\"name\":\"currentDebt\",\"type\":\"int256\"}],\"name\":\"InsufficientDebt\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"PoolNotFound\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"}],\"name\":\"IssuanceFeePaid\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"UsdBurned\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"UsdMinted\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"burnUsd\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"mintUsd\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"CannotScaleEmptyMapping\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"collateralValue\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"debt\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"currentCRatio\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"cratio\",\"type\":\"uint256\"}],\"name\":\"IneligibleForLiquidation\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InsufficientMappedAmount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MustBeVaultLiquidated\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowInt128ToUint128\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"debtLiquidated\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"collateralLiquidated\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountRewarded\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"structILiquidationModule.LiquidationData\",\"name\":\"liquidationData\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidateAsAccountId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"Liquidation\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"debtLiquidated\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"collateralLiquidated\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountRewarded\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"structILiquidationModule.LiquidationData\",\"name\":\"liquidationData\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidateAsAccountId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"VaultLiquidation\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"isPositionLiquidatable\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"isVaultLiquidatable\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"liquidateAsAccountId\",\"type\":\"uint128\"}],\"name\":\"liquidate\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"debtLiquidated\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"collateralLiquidated\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountRewarded\",\"type\":\"uint256\"}],\"internalType\":\"structILiquidationModule.LiquidationData\",\"name\":\"liquidationData\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"liquidateAsAccountId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"maxUsd\",\"type\":\"uint256\"}],\"name\":\"liquidateVault\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"debtLiquidated\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"collateralLiquidated\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountRewarded\",\"type\":\"uint256\"}],\"internalType\":\"structILiquidationModule.LiquidationData\",\"name\":\"liquidationData\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenAmountToDeposit\",\"type\":\"uint256\"}],\"name\":\"InsufficientMarketCollateralDepositable\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenAmountToWithdraw\",\"type\":\"uint256\"}],\"name\":\"InsufficientMarketCollateralWithdrawable\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"MarketCollateralDeposited\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"MarketCollateralWithdrawn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"systemAmount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"MaximumMarketCollateralConfigured\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"configureMaximumMarketCollateral\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"}],\"name\":\"depositMarketCollateral\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getMarketCollateralAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"collateralAmountD18\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMarketCollateralValue\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getMaximumMarketCollateral\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"}],\"name\":\"withdrawMarketCollateral\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"}],\"name\":\"IncorrectMarketInterface\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"NotEnoughLiquidity\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"MarketRegistered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"}],\"name\":\"MarketSystemFeePaid\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"}],\"name\":\"MarketUsdDeposited\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"}],\"name\":\"MarketUsdWithdrawn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"minLiquidityRatio\",\"type\":\"uint256\"}],\"name\":\"SetMarketMinLiquidityRatio\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"minDelegateTime\",\"type\":\"uint32\"}],\"name\":\"SetMinDelegateTime\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"depositMarketUsd\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"maxIter\",\"type\":\"uint256\"}],\"name\":\"distributeDebtToPools\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMarketAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMarketCollateral\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMarketDebtPerShare\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"getMarketFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"depositFeeAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"withdrawFeeAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMarketMinDelegateTime\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMarketNetIssuance\",\"outputs\":[{\"internalType\":\"int128\",\"name\":\"\",\"type\":\"int128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"getMarketPoolDebtDistribution\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"sharesD18\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"totalSharesD18\",\"type\":\"uint128\"},{\"internalType\":\"int128\",\"name\":\"valuePerShareD27\",\"type\":\"int128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMarketPools\",\"outputs\":[{\"internalType\":\"uint128[]\",\"name\":\"inRangePoolIds\",\"type\":\"uint128[]\"},{\"internalType\":\"uint128[]\",\"name\":\"outRangePoolIds\",\"type\":\"uint128[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMarketReportedDebt\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMarketTotalDebt\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMinLiquidityRatio\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getOracleManager\",\"outputs\":[{\"internalType\":\"contractIOracleManager\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getUsdToken\",\"outputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getWithdrawableMarketUsd\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"isMarketCapacityLocked\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"}],\"name\":\"registerMarket\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint32\",\"name\":\"minDelegateTime\",\"type\":\"uint32\"}],\"name\":\"setMarketMinDelegateTime\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"minLiquidityRatio\",\"type\":\"uint256\"}],\"name\":\"setMinLiquidityRatio\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdrawMarketUsd\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"DeniedMulticallTarget\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"RecursiveMulticall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"getMessageSender\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"results\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"to\",\"type\":\"address[]\"},{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"},{\"internalType\":\"uint256[]\",\"name\":\"values\",\"type\":\"uint256[]\"}],\"name\":\"multicallThrough\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"results\",\"type\":\"bytes[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"allowlisted\",\"type\":\"bool\"}],\"name\":\"setAllowlistedMulticallTarget\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"poolId\",\"type\":\"uint256\"}],\"name\":\"PoolApprovedAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"poolId\",\"type\":\"uint256\"}],\"name\":\"PoolApprovedRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"poolId\",\"type\":\"uint256\"}],\"name\":\"PreferredPoolSet\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"addApprovedPool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getApprovedPools\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPreferredPool\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"removeApprovedPool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"setPreferredPool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"marketId\",\"type\":\"uint256\"}],\"name\":\"CapacityLocked\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"uint32\",\"name\":\"timeRemaining\",\"type\":\"uint32\"}],\"name\":\"MinDelegationTimeoutPending\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"PoolAlreadyExists\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"collateralLimitD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"issuanceRatioD18\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"structPoolCollateralConfiguration.Data\",\"name\":\"config\",\"type\":\"tuple\"}],\"name\":\"PoolCollateralConfigurationUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"disabled\",\"type\":\"bool\"}],\"name\":\"PoolCollateralDisabledByDefaultSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"components\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"weightD18\",\"type\":\"uint128\"},{\"internalType\":\"int128\",\"name\":\"maxDebtShareValueD18\",\"type\":\"int128\"}],\"indexed\":false,\"internalType\":\"structMarketConfiguration.Data[]\",\"name\":\"markets\",\"type\":\"tuple[]\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"PoolConfigurationSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"PoolCreated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"PoolNameUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"PoolNominationRenounced\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"PoolNominationRevoked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"nominatedOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"PoolOwnerNominated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"PoolOwnershipAccepted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"minLiquidityRatio\",\"type\":\"uint256\"}],\"name\":\"SetMinLiquidityRatio\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"acceptPoolOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"requestedPoolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"createPool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getMinLiquidityRatio\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"getNominatedPoolOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateral\",\"type\":\"address\"}],\"name\":\"getPoolCollateralIssuanceRatio\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"getPoolConfiguration\",\"outputs\":[{\"components\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"weightD18\",\"type\":\"uint128\"},{\"internalType\":\"int128\",\"name\":\"maxDebtShareValueD18\",\"type\":\"int128\"}],\"internalType\":\"structMarketConfiguration.Data[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"getPoolName\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"poolName\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"getPoolOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"nominatedOwner\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"nominatePoolOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"optionalCollateralType\",\"type\":\"address\"}],\"name\":\"rebalancePool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"renouncePoolNomination\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"}],\"name\":\"revokePoolNomination\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"minLiquidityRatio\",\"type\":\"uint256\"}],\"name\":\"setMinLiquidityRatio\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"collateralLimitD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"issuanceRatioD18\",\"type\":\"uint256\"}],\"internalType\":\"structPoolCollateralConfiguration.Data\",\"name\":\"newConfig\",\"type\":\"tuple\"}],\"name\":\"setPoolCollateralConfiguration\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"bool\",\"name\":\"disabled\",\"type\":\"bool\"}],\"name\":\"setPoolCollateralDisabledByDefault\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"components\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"weightD18\",\"type\":\"uint128\"},{\"internalType\":\"int128\",\"name\":\"maxDebtShareValueD18\",\"type\":\"int128\"}],\"internalType\":\"structMarketConfiguration.Data[]\",\"name\":\"newMarketConfigurations\",\"type\":\"tuple[]\"}],\"name\":\"setPoolConfiguration\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"}],\"name\":\"setPoolName\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"OverflowUint256ToUint32\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowUint32ToInt32\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowUint64ToInt64\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"RewardDistributorNotFound\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"distributor\",\"type\":\"address\"}],\"name\":\"RewardUnavailable\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"distributor\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"RewardsClaimed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"distributor\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"start\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"}],\"name\":\"RewardsDistributed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"distributor\",\"type\":\"address\"}],\"name\":\"RewardsDistributorRegistered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"distributor\",\"type\":\"address\"}],\"name\":\"RewardsDistributorRemoved\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"distributor\",\"type\":\"address\"}],\"name\":\"claimRewards\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"start\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"duration\",\"type\":\"uint32\"}],\"name\":\"distributeRewards\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"distributor\",\"type\":\"address\"}],\"name\":\"getRewardRate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"distributor\",\"type\":\"address\"}],\"name\":\"registerRewardsDistributor\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"distributor\",\"type\":\"address\"}],\"name\":\"removeRewardsDistributor\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"updateRewards\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"newChainId\",\"type\":\"uint64\"}],\"name\":\"NewSupportedCrossChainNetwork\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"ccipRouter\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"ccipTokenPool\",\"type\":\"address\"}],\"name\":\"configureChainlinkCrossChain\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"oracleManagerAddress\",\"type\":\"address\"}],\"name\":\"configureOracleManager\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"k\",\"type\":\"bytes32\"}],\"name\":\"getConfig\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"v\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"k\",\"type\":\"bytes32\"}],\"name\":\"getConfigAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"v\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"k\",\"type\":\"bytes32\"}],\"name\":\"getConfigUint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"v\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"k\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"v\",\"type\":\"bytes32\"}],\"name\":\"setConfig\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64[]\",\"name\":\"supportedNetworks\",\"type\":\"uint64[]\"},{\"internalType\":\"uint64[]\",\"name\":\"ccipSelectors\",\"type\":\"uint64[]\"}],\"name\":\"setSupportedCrossChainNetworks\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"numRegistered\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"minDelegation\",\"type\":\"uint256\"}],\"name\":\"InsufficientDelegation\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidCollateralAmount\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"leverage\",\"type\":\"uint256\"}],\"name\":\"InvalidLeverage\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"currentCollateral\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxCollateral\",\"type\":\"uint256\"}],\"name\":\"PoolCollateralLimitExceeded\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"leverage\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"DelegationUpdated\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"newCollateralAmountD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"leverage\",\"type\":\"uint256\"}],\"name\":\"delegateCollateral\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getPosition\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"collateralAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"collateralValue\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"debt\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"collateralizationRatio\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getPositionCollateral\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getPositionCollateralRatio\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getPositionDebt\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"debt\",\"type\":\"int256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getVaultCollateral\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getVaultCollateralRatio\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getVaultDebt\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", -} - -// CoreOptimismABI is the input ABI used to generate the binding from. -// Deprecated: Use CoreOptimismMetaData.ABI instead. -var CoreOptimismABI = CoreOptimismMetaData.ABI - -// CoreOptimism is an auto generated Go binding around an Ethereum contract. -type CoreOptimism struct { - CoreOptimismCaller // Read-only binding to the contract - CoreOptimismTransactor // Write-only binding to the contract - CoreOptimismFilterer // Log filterer for contract events -} - -// CoreOptimismCaller is an auto generated read-only Go binding around an Ethereum contract. -type CoreOptimismCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// CoreOptimismTransactor is an auto generated write-only Go binding around an Ethereum contract. -type CoreOptimismTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// CoreOptimismFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type CoreOptimismFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// CoreOptimismSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type CoreOptimismSession struct { - Contract *CoreOptimism // 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 -} - -// CoreOptimismCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type CoreOptimismCallerSession struct { - Contract *CoreOptimismCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// CoreOptimismTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type CoreOptimismTransactorSession struct { - Contract *CoreOptimismTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// CoreOptimismRaw is an auto generated low-level Go binding around an Ethereum contract. -type CoreOptimismRaw struct { - Contract *CoreOptimism // Generic contract binding to access the raw methods on -} - -// CoreOptimismCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type CoreOptimismCallerRaw struct { - Contract *CoreOptimismCaller // Generic read-only contract binding to access the raw methods on -} - -// CoreOptimismTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type CoreOptimismTransactorRaw struct { - Contract *CoreOptimismTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewCoreOptimism creates a new instance of CoreOptimism, bound to a specific deployed contract. -func NewCoreOptimism(address common.Address, backend bind.ContractBackend) (*CoreOptimism, error) { - contract, err := bindCoreOptimism(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &CoreOptimism{CoreOptimismCaller: CoreOptimismCaller{contract: contract}, CoreOptimismTransactor: CoreOptimismTransactor{contract: contract}, CoreOptimismFilterer: CoreOptimismFilterer{contract: contract}}, nil -} - -// NewCoreOptimismCaller creates a new read-only instance of CoreOptimism, bound to a specific deployed contract. -func NewCoreOptimismCaller(address common.Address, caller bind.ContractCaller) (*CoreOptimismCaller, error) { - contract, err := bindCoreOptimism(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &CoreOptimismCaller{contract: contract}, nil -} - -// NewCoreOptimismTransactor creates a new write-only instance of CoreOptimism, bound to a specific deployed contract. -func NewCoreOptimismTransactor(address common.Address, transactor bind.ContractTransactor) (*CoreOptimismTransactor, error) { - contract, err := bindCoreOptimism(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &CoreOptimismTransactor{contract: contract}, nil -} - -// NewCoreOptimismFilterer creates a new log filterer instance of CoreOptimism, bound to a specific deployed contract. -func NewCoreOptimismFilterer(address common.Address, filterer bind.ContractFilterer) (*CoreOptimismFilterer, error) { - contract, err := bindCoreOptimism(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &CoreOptimismFilterer{contract: contract}, nil -} - -// bindCoreOptimism binds a generic wrapper to an already deployed contract. -func bindCoreOptimism(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := CoreOptimismMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// 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 (_CoreOptimism *CoreOptimismRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _CoreOptimism.Contract.CoreOptimismCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_CoreOptimism *CoreOptimismRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _CoreOptimism.Contract.CoreOptimismTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_CoreOptimism *CoreOptimismRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _CoreOptimism.Contract.CoreOptimismTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_CoreOptimism *CoreOptimismCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _CoreOptimism.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_CoreOptimism *CoreOptimismTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _CoreOptimism.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_CoreOptimism *CoreOptimismTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _CoreOptimism.Contract.contract.Transact(opts, method, params...) -} - -// GetAccountAvailableCollateral is a free data retrieval call binding the contract method 0x927482ff. -// -// Solidity: function getAccountAvailableCollateral(uint128 accountId, address collateralType) view returns(uint256) -func (_CoreOptimism *CoreOptimismCaller) GetAccountAvailableCollateral(opts *bind.CallOpts, accountId *big.Int, collateralType common.Address) (*big.Int, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getAccountAvailableCollateral", accountId, collateralType) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetAccountAvailableCollateral is a free data retrieval call binding the contract method 0x927482ff. -// -// Solidity: function getAccountAvailableCollateral(uint128 accountId, address collateralType) view returns(uint256) -func (_CoreOptimism *CoreOptimismSession) GetAccountAvailableCollateral(accountId *big.Int, collateralType common.Address) (*big.Int, error) { - return _CoreOptimism.Contract.GetAccountAvailableCollateral(&_CoreOptimism.CallOpts, accountId, collateralType) -} - -// GetAccountAvailableCollateral is a free data retrieval call binding the contract method 0x927482ff. -// -// Solidity: function getAccountAvailableCollateral(uint128 accountId, address collateralType) view returns(uint256) -func (_CoreOptimism *CoreOptimismCallerSession) GetAccountAvailableCollateral(accountId *big.Int, collateralType common.Address) (*big.Int, error) { - return _CoreOptimism.Contract.GetAccountAvailableCollateral(&_CoreOptimism.CallOpts, accountId, collateralType) -} - -// GetAccountCollateral is a free data retrieval call binding the contract method 0xef45148e. -// -// Solidity: function getAccountCollateral(uint128 accountId, address collateralType) view returns(uint256 totalDeposited, uint256 totalAssigned, uint256 totalLocked) -func (_CoreOptimism *CoreOptimismCaller) GetAccountCollateral(opts *bind.CallOpts, accountId *big.Int, collateralType common.Address) (struct { - TotalDeposited *big.Int - TotalAssigned *big.Int - TotalLocked *big.Int -}, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getAccountCollateral", accountId, collateralType) - - outstruct := new(struct { - TotalDeposited *big.Int - TotalAssigned *big.Int - TotalLocked *big.Int - }) - if err != nil { - return *outstruct, err - } - - outstruct.TotalDeposited = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - outstruct.TotalAssigned = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int) - outstruct.TotalLocked = *abi.ConvertType(out[2], new(*big.Int)).(**big.Int) - - return *outstruct, err - -} - -// GetAccountCollateral is a free data retrieval call binding the contract method 0xef45148e. -// -// Solidity: function getAccountCollateral(uint128 accountId, address collateralType) view returns(uint256 totalDeposited, uint256 totalAssigned, uint256 totalLocked) -func (_CoreOptimism *CoreOptimismSession) GetAccountCollateral(accountId *big.Int, collateralType common.Address) (struct { - TotalDeposited *big.Int - TotalAssigned *big.Int - TotalLocked *big.Int -}, error) { - return _CoreOptimism.Contract.GetAccountCollateral(&_CoreOptimism.CallOpts, accountId, collateralType) -} - -// GetAccountCollateral is a free data retrieval call binding the contract method 0xef45148e. -// -// Solidity: function getAccountCollateral(uint128 accountId, address collateralType) view returns(uint256 totalDeposited, uint256 totalAssigned, uint256 totalLocked) -func (_CoreOptimism *CoreOptimismCallerSession) GetAccountCollateral(accountId *big.Int, collateralType common.Address) (struct { - TotalDeposited *big.Int - TotalAssigned *big.Int - TotalLocked *big.Int -}, error) { - return _CoreOptimism.Contract.GetAccountCollateral(&_CoreOptimism.CallOpts, accountId, collateralType) -} - -// GetAccountLastInteraction is a free data retrieval call binding the contract method 0x1b5dccdb. -// -// Solidity: function getAccountLastInteraction(uint128 accountId) view returns(uint256) -func (_CoreOptimism *CoreOptimismCaller) GetAccountLastInteraction(opts *bind.CallOpts, accountId *big.Int) (*big.Int, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getAccountLastInteraction", accountId) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetAccountLastInteraction is a free data retrieval call binding the contract method 0x1b5dccdb. -// -// Solidity: function getAccountLastInteraction(uint128 accountId) view returns(uint256) -func (_CoreOptimism *CoreOptimismSession) GetAccountLastInteraction(accountId *big.Int) (*big.Int, error) { - return _CoreOptimism.Contract.GetAccountLastInteraction(&_CoreOptimism.CallOpts, accountId) -} - -// GetAccountLastInteraction is a free data retrieval call binding the contract method 0x1b5dccdb. -// -// Solidity: function getAccountLastInteraction(uint128 accountId) view returns(uint256) -func (_CoreOptimism *CoreOptimismCallerSession) GetAccountLastInteraction(accountId *big.Int) (*big.Int, error) { - return _CoreOptimism.Contract.GetAccountLastInteraction(&_CoreOptimism.CallOpts, accountId) -} - -// GetAccountOwner is a free data retrieval call binding the contract method 0xbf60c31d. -// -// Solidity: function getAccountOwner(uint128 accountId) view returns(address) -func (_CoreOptimism *CoreOptimismCaller) GetAccountOwner(opts *bind.CallOpts, accountId *big.Int) (common.Address, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getAccountOwner", accountId) - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// GetAccountOwner is a free data retrieval call binding the contract method 0xbf60c31d. -// -// Solidity: function getAccountOwner(uint128 accountId) view returns(address) -func (_CoreOptimism *CoreOptimismSession) GetAccountOwner(accountId *big.Int) (common.Address, error) { - return _CoreOptimism.Contract.GetAccountOwner(&_CoreOptimism.CallOpts, accountId) -} - -// GetAccountOwner is a free data retrieval call binding the contract method 0xbf60c31d. -// -// Solidity: function getAccountOwner(uint128 accountId) view returns(address) -func (_CoreOptimism *CoreOptimismCallerSession) GetAccountOwner(accountId *big.Int) (common.Address, error) { - return _CoreOptimism.Contract.GetAccountOwner(&_CoreOptimism.CallOpts, accountId) -} - -// GetAccountPermissions is a free data retrieval call binding the contract method 0xa796fecd. -// -// Solidity: function getAccountPermissions(uint128 accountId) view returns((address,bytes32[])[] accountPerms) -func (_CoreOptimism *CoreOptimismCaller) GetAccountPermissions(opts *bind.CallOpts, accountId *big.Int) ([]IAccountModuleAccountPermissions, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getAccountPermissions", accountId) - - if err != nil { - return *new([]IAccountModuleAccountPermissions), err - } - - out0 := *abi.ConvertType(out[0], new([]IAccountModuleAccountPermissions)).(*[]IAccountModuleAccountPermissions) - - return out0, err - -} - -// GetAccountPermissions is a free data retrieval call binding the contract method 0xa796fecd. -// -// Solidity: function getAccountPermissions(uint128 accountId) view returns((address,bytes32[])[] accountPerms) -func (_CoreOptimism *CoreOptimismSession) GetAccountPermissions(accountId *big.Int) ([]IAccountModuleAccountPermissions, error) { - return _CoreOptimism.Contract.GetAccountPermissions(&_CoreOptimism.CallOpts, accountId) -} - -// GetAccountPermissions is a free data retrieval call binding the contract method 0xa796fecd. -// -// Solidity: function getAccountPermissions(uint128 accountId) view returns((address,bytes32[])[] accountPerms) -func (_CoreOptimism *CoreOptimismCallerSession) GetAccountPermissions(accountId *big.Int) ([]IAccountModuleAccountPermissions, error) { - return _CoreOptimism.Contract.GetAccountPermissions(&_CoreOptimism.CallOpts, accountId) -} - -// GetAccountTokenAddress is a free data retrieval call binding the contract method 0xa148bf10. -// -// Solidity: function getAccountTokenAddress() view returns(address) -func (_CoreOptimism *CoreOptimismCaller) GetAccountTokenAddress(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getAccountTokenAddress") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// GetAccountTokenAddress is a free data retrieval call binding the contract method 0xa148bf10. -// -// Solidity: function getAccountTokenAddress() view returns(address) -func (_CoreOptimism *CoreOptimismSession) GetAccountTokenAddress() (common.Address, error) { - return _CoreOptimism.Contract.GetAccountTokenAddress(&_CoreOptimism.CallOpts) -} - -// GetAccountTokenAddress is a free data retrieval call binding the contract method 0xa148bf10. -// -// Solidity: function getAccountTokenAddress() view returns(address) -func (_CoreOptimism *CoreOptimismCallerSession) GetAccountTokenAddress() (common.Address, error) { - return _CoreOptimism.Contract.GetAccountTokenAddress(&_CoreOptimism.CallOpts) -} - -// GetApprovedPools is a free data retrieval call binding the contract method 0x48741626. -// -// Solidity: function getApprovedPools() view returns(uint256[]) -func (_CoreOptimism *CoreOptimismCaller) GetApprovedPools(opts *bind.CallOpts) ([]*big.Int, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getApprovedPools") - - if err != nil { - return *new([]*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new([]*big.Int)).(*[]*big.Int) - - return out0, err - -} - -// GetApprovedPools is a free data retrieval call binding the contract method 0x48741626. -// -// Solidity: function getApprovedPools() view returns(uint256[]) -func (_CoreOptimism *CoreOptimismSession) GetApprovedPools() ([]*big.Int, error) { - return _CoreOptimism.Contract.GetApprovedPools(&_CoreOptimism.CallOpts) -} - -// GetApprovedPools is a free data retrieval call binding the contract method 0x48741626. -// -// Solidity: function getApprovedPools() view returns(uint256[]) -func (_CoreOptimism *CoreOptimismCallerSession) GetApprovedPools() ([]*big.Int, error) { - return _CoreOptimism.Contract.GetApprovedPools(&_CoreOptimism.CallOpts) -} - -// GetAssociatedSystem is a free data retrieval call binding the contract method 0x60988e09. -// -// Solidity: function getAssociatedSystem(bytes32 id) view returns(address addr, bytes32 kind) -func (_CoreOptimism *CoreOptimismCaller) GetAssociatedSystem(opts *bind.CallOpts, id [32]byte) (struct { - Addr common.Address - Kind [32]byte -}, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getAssociatedSystem", id) - - outstruct := new(struct { - Addr common.Address - Kind [32]byte - }) - if err != nil { - return *outstruct, err - } - - outstruct.Addr = *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - outstruct.Kind = *abi.ConvertType(out[1], new([32]byte)).(*[32]byte) - - return *outstruct, err - -} - -// GetAssociatedSystem is a free data retrieval call binding the contract method 0x60988e09. -// -// Solidity: function getAssociatedSystem(bytes32 id) view returns(address addr, bytes32 kind) -func (_CoreOptimism *CoreOptimismSession) GetAssociatedSystem(id [32]byte) (struct { - Addr common.Address - Kind [32]byte -}, error) { - return _CoreOptimism.Contract.GetAssociatedSystem(&_CoreOptimism.CallOpts, id) -} - -// GetAssociatedSystem is a free data retrieval call binding the contract method 0x60988e09. -// -// Solidity: function getAssociatedSystem(bytes32 id) view returns(address addr, bytes32 kind) -func (_CoreOptimism *CoreOptimismCallerSession) GetAssociatedSystem(id [32]byte) (struct { - Addr common.Address - Kind [32]byte -}, error) { - return _CoreOptimism.Contract.GetAssociatedSystem(&_CoreOptimism.CallOpts, id) -} - -// GetCollateralConfiguration is a free data retrieval call binding the contract method 0xdc0b3f52. -// -// Solidity: function getCollateralConfiguration(address collateralType) pure returns((bool,uint256,uint256,uint256,bytes32,address,uint256)) -func (_CoreOptimism *CoreOptimismCaller) GetCollateralConfiguration(opts *bind.CallOpts, collateralType common.Address) (CollateralConfigurationData, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getCollateralConfiguration", collateralType) - - if err != nil { - return *new(CollateralConfigurationData), err - } - - out0 := *abi.ConvertType(out[0], new(CollateralConfigurationData)).(*CollateralConfigurationData) - - return out0, err - -} - -// GetCollateralConfiguration is a free data retrieval call binding the contract method 0xdc0b3f52. -// -// Solidity: function getCollateralConfiguration(address collateralType) pure returns((bool,uint256,uint256,uint256,bytes32,address,uint256)) -func (_CoreOptimism *CoreOptimismSession) GetCollateralConfiguration(collateralType common.Address) (CollateralConfigurationData, error) { - return _CoreOptimism.Contract.GetCollateralConfiguration(&_CoreOptimism.CallOpts, collateralType) -} - -// GetCollateralConfiguration is a free data retrieval call binding the contract method 0xdc0b3f52. -// -// Solidity: function getCollateralConfiguration(address collateralType) pure returns((bool,uint256,uint256,uint256,bytes32,address,uint256)) -func (_CoreOptimism *CoreOptimismCallerSession) GetCollateralConfiguration(collateralType common.Address) (CollateralConfigurationData, error) { - return _CoreOptimism.Contract.GetCollateralConfiguration(&_CoreOptimism.CallOpts, collateralType) -} - -// GetCollateralConfigurations is a free data retrieval call binding the contract method 0x75bf2444. -// -// Solidity: function getCollateralConfigurations(bool hideDisabled) view returns((bool,uint256,uint256,uint256,bytes32,address,uint256)[]) -func (_CoreOptimism *CoreOptimismCaller) GetCollateralConfigurations(opts *bind.CallOpts, hideDisabled bool) ([]CollateralConfigurationData, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getCollateralConfigurations", hideDisabled) - - if err != nil { - return *new([]CollateralConfigurationData), err - } - - out0 := *abi.ConvertType(out[0], new([]CollateralConfigurationData)).(*[]CollateralConfigurationData) - - return out0, err - -} - -// GetCollateralConfigurations is a free data retrieval call binding the contract method 0x75bf2444. -// -// Solidity: function getCollateralConfigurations(bool hideDisabled) view returns((bool,uint256,uint256,uint256,bytes32,address,uint256)[]) -func (_CoreOptimism *CoreOptimismSession) GetCollateralConfigurations(hideDisabled bool) ([]CollateralConfigurationData, error) { - return _CoreOptimism.Contract.GetCollateralConfigurations(&_CoreOptimism.CallOpts, hideDisabled) -} - -// GetCollateralConfigurations is a free data retrieval call binding the contract method 0x75bf2444. -// -// Solidity: function getCollateralConfigurations(bool hideDisabled) view returns((bool,uint256,uint256,uint256,bytes32,address,uint256)[]) -func (_CoreOptimism *CoreOptimismCallerSession) GetCollateralConfigurations(hideDisabled bool) ([]CollateralConfigurationData, error) { - return _CoreOptimism.Contract.GetCollateralConfigurations(&_CoreOptimism.CallOpts, hideDisabled) -} - -// GetCollateralPrice is a free data retrieval call binding the contract method 0x51a40994. -// -// Solidity: function getCollateralPrice(address collateralType) view returns(uint256) -func (_CoreOptimism *CoreOptimismCaller) GetCollateralPrice(opts *bind.CallOpts, collateralType common.Address) (*big.Int, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getCollateralPrice", collateralType) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetCollateralPrice is a free data retrieval call binding the contract method 0x51a40994. -// -// Solidity: function getCollateralPrice(address collateralType) view returns(uint256) -func (_CoreOptimism *CoreOptimismSession) GetCollateralPrice(collateralType common.Address) (*big.Int, error) { - return _CoreOptimism.Contract.GetCollateralPrice(&_CoreOptimism.CallOpts, collateralType) -} - -// GetCollateralPrice is a free data retrieval call binding the contract method 0x51a40994. -// -// Solidity: function getCollateralPrice(address collateralType) view returns(uint256) -func (_CoreOptimism *CoreOptimismCallerSession) GetCollateralPrice(collateralType common.Address) (*big.Int, error) { - return _CoreOptimism.Contract.GetCollateralPrice(&_CoreOptimism.CallOpts, collateralType) -} - -// GetConfig is a free data retrieval call binding the contract method 0x6dd5b69d. -// -// Solidity: function getConfig(bytes32 k) view returns(bytes32 v) -func (_CoreOptimism *CoreOptimismCaller) GetConfig(opts *bind.CallOpts, k [32]byte) ([32]byte, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getConfig", k) - - if err != nil { - return *new([32]byte), err - } - - out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte) - - return out0, err - -} - -// GetConfig is a free data retrieval call binding the contract method 0x6dd5b69d. -// -// Solidity: function getConfig(bytes32 k) view returns(bytes32 v) -func (_CoreOptimism *CoreOptimismSession) GetConfig(k [32]byte) ([32]byte, error) { - return _CoreOptimism.Contract.GetConfig(&_CoreOptimism.CallOpts, k) -} - -// GetConfig is a free data retrieval call binding the contract method 0x6dd5b69d. -// -// Solidity: function getConfig(bytes32 k) view returns(bytes32 v) -func (_CoreOptimism *CoreOptimismCallerSession) GetConfig(k [32]byte) ([32]byte, error) { - return _CoreOptimism.Contract.GetConfig(&_CoreOptimism.CallOpts, k) -} - -// GetConfigAddress is a free data retrieval call binding the contract method 0xf896503a. -// -// Solidity: function getConfigAddress(bytes32 k) view returns(address v) -func (_CoreOptimism *CoreOptimismCaller) GetConfigAddress(opts *bind.CallOpts, k [32]byte) (common.Address, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getConfigAddress", k) - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// GetConfigAddress is a free data retrieval call binding the contract method 0xf896503a. -// -// Solidity: function getConfigAddress(bytes32 k) view returns(address v) -func (_CoreOptimism *CoreOptimismSession) GetConfigAddress(k [32]byte) (common.Address, error) { - return _CoreOptimism.Contract.GetConfigAddress(&_CoreOptimism.CallOpts, k) -} - -// GetConfigAddress is a free data retrieval call binding the contract method 0xf896503a. -// -// Solidity: function getConfigAddress(bytes32 k) view returns(address v) -func (_CoreOptimism *CoreOptimismCallerSession) GetConfigAddress(k [32]byte) (common.Address, error) { - return _CoreOptimism.Contract.GetConfigAddress(&_CoreOptimism.CallOpts, k) -} - -// GetConfigUint is a free data retrieval call binding the contract method 0xf92bb8c9. -// -// Solidity: function getConfigUint(bytes32 k) view returns(uint256 v) -func (_CoreOptimism *CoreOptimismCaller) GetConfigUint(opts *bind.CallOpts, k [32]byte) (*big.Int, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getConfigUint", k) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetConfigUint is a free data retrieval call binding the contract method 0xf92bb8c9. -// -// Solidity: function getConfigUint(bytes32 k) view returns(uint256 v) -func (_CoreOptimism *CoreOptimismSession) GetConfigUint(k [32]byte) (*big.Int, error) { - return _CoreOptimism.Contract.GetConfigUint(&_CoreOptimism.CallOpts, k) -} - -// GetConfigUint is a free data retrieval call binding the contract method 0xf92bb8c9. -// -// Solidity: function getConfigUint(bytes32 k) view returns(uint256 v) -func (_CoreOptimism *CoreOptimismCallerSession) GetConfigUint(k [32]byte) (*big.Int, error) { - return _CoreOptimism.Contract.GetConfigUint(&_CoreOptimism.CallOpts, k) -} - -// GetDeniers is a free data retrieval call binding the contract method 0xed429cf7. -// -// Solidity: function getDeniers(bytes32 feature) view returns(address[]) -func (_CoreOptimism *CoreOptimismCaller) GetDeniers(opts *bind.CallOpts, feature [32]byte) ([]common.Address, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getDeniers", feature) - - if err != nil { - return *new([]common.Address), err - } - - out0 := *abi.ConvertType(out[0], new([]common.Address)).(*[]common.Address) - - return out0, err - -} - -// GetDeniers is a free data retrieval call binding the contract method 0xed429cf7. -// -// Solidity: function getDeniers(bytes32 feature) view returns(address[]) -func (_CoreOptimism *CoreOptimismSession) GetDeniers(feature [32]byte) ([]common.Address, error) { - return _CoreOptimism.Contract.GetDeniers(&_CoreOptimism.CallOpts, feature) -} - -// GetDeniers is a free data retrieval call binding the contract method 0xed429cf7. -// -// Solidity: function getDeniers(bytes32 feature) view returns(address[]) -func (_CoreOptimism *CoreOptimismCallerSession) GetDeniers(feature [32]byte) ([]common.Address, error) { - return _CoreOptimism.Contract.GetDeniers(&_CoreOptimism.CallOpts, feature) -} - -// GetFeatureFlagAllowAll is a free data retrieval call binding the contract method 0x40a399ef. -// -// Solidity: function getFeatureFlagAllowAll(bytes32 feature) view returns(bool) -func (_CoreOptimism *CoreOptimismCaller) GetFeatureFlagAllowAll(opts *bind.CallOpts, feature [32]byte) (bool, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getFeatureFlagAllowAll", feature) - - if err != nil { - return *new(bool), err - } - - out0 := *abi.ConvertType(out[0], new(bool)).(*bool) - - return out0, err - -} - -// GetFeatureFlagAllowAll is a free data retrieval call binding the contract method 0x40a399ef. -// -// Solidity: function getFeatureFlagAllowAll(bytes32 feature) view returns(bool) -func (_CoreOptimism *CoreOptimismSession) GetFeatureFlagAllowAll(feature [32]byte) (bool, error) { - return _CoreOptimism.Contract.GetFeatureFlagAllowAll(&_CoreOptimism.CallOpts, feature) -} - -// GetFeatureFlagAllowAll is a free data retrieval call binding the contract method 0x40a399ef. -// -// Solidity: function getFeatureFlagAllowAll(bytes32 feature) view returns(bool) -func (_CoreOptimism *CoreOptimismCallerSession) GetFeatureFlagAllowAll(feature [32]byte) (bool, error) { - return _CoreOptimism.Contract.GetFeatureFlagAllowAll(&_CoreOptimism.CallOpts, feature) -} - -// GetFeatureFlagAllowlist is a free data retrieval call binding the contract method 0xe12c8160. -// -// Solidity: function getFeatureFlagAllowlist(bytes32 feature) view returns(address[]) -func (_CoreOptimism *CoreOptimismCaller) GetFeatureFlagAllowlist(opts *bind.CallOpts, feature [32]byte) ([]common.Address, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getFeatureFlagAllowlist", feature) - - if err != nil { - return *new([]common.Address), err - } - - out0 := *abi.ConvertType(out[0], new([]common.Address)).(*[]common.Address) - - return out0, err - -} - -// GetFeatureFlagAllowlist is a free data retrieval call binding the contract method 0xe12c8160. -// -// Solidity: function getFeatureFlagAllowlist(bytes32 feature) view returns(address[]) -func (_CoreOptimism *CoreOptimismSession) GetFeatureFlagAllowlist(feature [32]byte) ([]common.Address, error) { - return _CoreOptimism.Contract.GetFeatureFlagAllowlist(&_CoreOptimism.CallOpts, feature) -} - -// GetFeatureFlagAllowlist is a free data retrieval call binding the contract method 0xe12c8160. -// -// Solidity: function getFeatureFlagAllowlist(bytes32 feature) view returns(address[]) -func (_CoreOptimism *CoreOptimismCallerSession) GetFeatureFlagAllowlist(feature [32]byte) ([]common.Address, error) { - return _CoreOptimism.Contract.GetFeatureFlagAllowlist(&_CoreOptimism.CallOpts, feature) -} - -// GetFeatureFlagDenyAll is a free data retrieval call binding the contract method 0xbcae3ea0. -// -// Solidity: function getFeatureFlagDenyAll(bytes32 feature) view returns(bool) -func (_CoreOptimism *CoreOptimismCaller) GetFeatureFlagDenyAll(opts *bind.CallOpts, feature [32]byte) (bool, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getFeatureFlagDenyAll", feature) - - if err != nil { - return *new(bool), err - } - - out0 := *abi.ConvertType(out[0], new(bool)).(*bool) - - return out0, err - -} - -// GetFeatureFlagDenyAll is a free data retrieval call binding the contract method 0xbcae3ea0. -// -// Solidity: function getFeatureFlagDenyAll(bytes32 feature) view returns(bool) -func (_CoreOptimism *CoreOptimismSession) GetFeatureFlagDenyAll(feature [32]byte) (bool, error) { - return _CoreOptimism.Contract.GetFeatureFlagDenyAll(&_CoreOptimism.CallOpts, feature) -} - -// GetFeatureFlagDenyAll is a free data retrieval call binding the contract method 0xbcae3ea0. -// -// Solidity: function getFeatureFlagDenyAll(bytes32 feature) view returns(bool) -func (_CoreOptimism *CoreOptimismCallerSession) GetFeatureFlagDenyAll(feature [32]byte) (bool, error) { - return _CoreOptimism.Contract.GetFeatureFlagDenyAll(&_CoreOptimism.CallOpts, feature) -} - -// GetImplementation is a free data retrieval call binding the contract method 0xaaf10f42. -// -// Solidity: function getImplementation() view returns(address) -func (_CoreOptimism *CoreOptimismCaller) GetImplementation(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getImplementation") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// GetImplementation is a free data retrieval call binding the contract method 0xaaf10f42. -// -// Solidity: function getImplementation() view returns(address) -func (_CoreOptimism *CoreOptimismSession) GetImplementation() (common.Address, error) { - return _CoreOptimism.Contract.GetImplementation(&_CoreOptimism.CallOpts) -} - -// GetImplementation is a free data retrieval call binding the contract method 0xaaf10f42. -// -// Solidity: function getImplementation() view returns(address) -func (_CoreOptimism *CoreOptimismCallerSession) GetImplementation() (common.Address, error) { - return _CoreOptimism.Contract.GetImplementation(&_CoreOptimism.CallOpts) -} - -// GetLocks is a free data retrieval call binding the contract method 0xaa8c6369. -// -// Solidity: function getLocks(uint128 accountId, address collateralType, uint256 offset, uint256 count) view returns((uint128,uint64)[] locks) -func (_CoreOptimism *CoreOptimismCaller) GetLocks(opts *bind.CallOpts, accountId *big.Int, collateralType common.Address, offset *big.Int, count *big.Int) ([]CollateralLockData, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getLocks", accountId, collateralType, offset, count) - - if err != nil { - return *new([]CollateralLockData), err - } - - out0 := *abi.ConvertType(out[0], new([]CollateralLockData)).(*[]CollateralLockData) - - return out0, err - -} - -// GetLocks is a free data retrieval call binding the contract method 0xaa8c6369. -// -// Solidity: function getLocks(uint128 accountId, address collateralType, uint256 offset, uint256 count) view returns((uint128,uint64)[] locks) -func (_CoreOptimism *CoreOptimismSession) GetLocks(accountId *big.Int, collateralType common.Address, offset *big.Int, count *big.Int) ([]CollateralLockData, error) { - return _CoreOptimism.Contract.GetLocks(&_CoreOptimism.CallOpts, accountId, collateralType, offset, count) -} - -// GetLocks is a free data retrieval call binding the contract method 0xaa8c6369. -// -// Solidity: function getLocks(uint128 accountId, address collateralType, uint256 offset, uint256 count) view returns((uint128,uint64)[] locks) -func (_CoreOptimism *CoreOptimismCallerSession) GetLocks(accountId *big.Int, collateralType common.Address, offset *big.Int, count *big.Int) ([]CollateralLockData, error) { - return _CoreOptimism.Contract.GetLocks(&_CoreOptimism.CallOpts, accountId, collateralType, offset, count) -} - -// GetMarketAddress is a free data retrieval call binding the contract method 0xd24437f1. -// -// Solidity: function getMarketAddress(uint128 marketId) view returns(address) -func (_CoreOptimism *CoreOptimismCaller) GetMarketAddress(opts *bind.CallOpts, marketId *big.Int) (common.Address, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getMarketAddress", marketId) - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// GetMarketAddress is a free data retrieval call binding the contract method 0xd24437f1. -// -// Solidity: function getMarketAddress(uint128 marketId) view returns(address) -func (_CoreOptimism *CoreOptimismSession) GetMarketAddress(marketId *big.Int) (common.Address, error) { - return _CoreOptimism.Contract.GetMarketAddress(&_CoreOptimism.CallOpts, marketId) -} - -// GetMarketAddress is a free data retrieval call binding the contract method 0xd24437f1. -// -// Solidity: function getMarketAddress(uint128 marketId) view returns(address) -func (_CoreOptimism *CoreOptimismCallerSession) GetMarketAddress(marketId *big.Int) (common.Address, error) { - return _CoreOptimism.Contract.GetMarketAddress(&_CoreOptimism.CallOpts, marketId) -} - -// GetMarketCollateral is a free data retrieval call binding the contract method 0x150834a3. -// -// Solidity: function getMarketCollateral(uint128 marketId) view returns(uint256) -func (_CoreOptimism *CoreOptimismCaller) GetMarketCollateral(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getMarketCollateral", marketId) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetMarketCollateral is a free data retrieval call binding the contract method 0x150834a3. -// -// Solidity: function getMarketCollateral(uint128 marketId) view returns(uint256) -func (_CoreOptimism *CoreOptimismSession) GetMarketCollateral(marketId *big.Int) (*big.Int, error) { - return _CoreOptimism.Contract.GetMarketCollateral(&_CoreOptimism.CallOpts, marketId) -} - -// GetMarketCollateral is a free data retrieval call binding the contract method 0x150834a3. -// -// Solidity: function getMarketCollateral(uint128 marketId) view returns(uint256) -func (_CoreOptimism *CoreOptimismCallerSession) GetMarketCollateral(marketId *big.Int) (*big.Int, error) { - return _CoreOptimism.Contract.GetMarketCollateral(&_CoreOptimism.CallOpts, marketId) -} - -// GetMarketCollateralAmount is a free data retrieval call binding the contract method 0xc2b0cf41. -// -// Solidity: function getMarketCollateralAmount(uint128 marketId, address collateralType) view returns(uint256 collateralAmountD18) -func (_CoreOptimism *CoreOptimismCaller) GetMarketCollateralAmount(opts *bind.CallOpts, marketId *big.Int, collateralType common.Address) (*big.Int, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getMarketCollateralAmount", marketId, collateralType) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetMarketCollateralAmount is a free data retrieval call binding the contract method 0xc2b0cf41. -// -// Solidity: function getMarketCollateralAmount(uint128 marketId, address collateralType) view returns(uint256 collateralAmountD18) -func (_CoreOptimism *CoreOptimismSession) GetMarketCollateralAmount(marketId *big.Int, collateralType common.Address) (*big.Int, error) { - return _CoreOptimism.Contract.GetMarketCollateralAmount(&_CoreOptimism.CallOpts, marketId, collateralType) -} - -// GetMarketCollateralAmount is a free data retrieval call binding the contract method 0xc2b0cf41. -// -// Solidity: function getMarketCollateralAmount(uint128 marketId, address collateralType) view returns(uint256 collateralAmountD18) -func (_CoreOptimism *CoreOptimismCallerSession) GetMarketCollateralAmount(marketId *big.Int, collateralType common.Address) (*big.Int, error) { - return _CoreOptimism.Contract.GetMarketCollateralAmount(&_CoreOptimism.CallOpts, marketId, collateralType) -} - -// GetMarketCollateralValue is a free data retrieval call binding the contract method 0xd4f88381. -// -// Solidity: function getMarketCollateralValue(uint128 marketId) view returns(uint256) -func (_CoreOptimism *CoreOptimismCaller) GetMarketCollateralValue(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getMarketCollateralValue", marketId) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetMarketCollateralValue is a free data retrieval call binding the contract method 0xd4f88381. -// -// Solidity: function getMarketCollateralValue(uint128 marketId) view returns(uint256) -func (_CoreOptimism *CoreOptimismSession) GetMarketCollateralValue(marketId *big.Int) (*big.Int, error) { - return _CoreOptimism.Contract.GetMarketCollateralValue(&_CoreOptimism.CallOpts, marketId) -} - -// GetMarketCollateralValue is a free data retrieval call binding the contract method 0xd4f88381. -// -// Solidity: function getMarketCollateralValue(uint128 marketId) view returns(uint256) -func (_CoreOptimism *CoreOptimismCallerSession) GetMarketCollateralValue(marketId *big.Int) (*big.Int, error) { - return _CoreOptimism.Contract.GetMarketCollateralValue(&_CoreOptimism.CallOpts, marketId) -} - -// GetMarketFees is a free data retrieval call binding the contract method 0xdfb83437. -// -// Solidity: function getMarketFees(uint128 , uint256 amount) view returns(uint256 depositFeeAmount, uint256 withdrawFeeAmount) -func (_CoreOptimism *CoreOptimismCaller) GetMarketFees(opts *bind.CallOpts, arg0 *big.Int, amount *big.Int) (struct { - DepositFeeAmount *big.Int - WithdrawFeeAmount *big.Int -}, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getMarketFees", arg0, amount) - - outstruct := new(struct { - DepositFeeAmount *big.Int - WithdrawFeeAmount *big.Int - }) - if err != nil { - return *outstruct, err - } - - outstruct.DepositFeeAmount = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - outstruct.WithdrawFeeAmount = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int) - - return *outstruct, err - -} - -// GetMarketFees is a free data retrieval call binding the contract method 0xdfb83437. -// -// Solidity: function getMarketFees(uint128 , uint256 amount) view returns(uint256 depositFeeAmount, uint256 withdrawFeeAmount) -func (_CoreOptimism *CoreOptimismSession) GetMarketFees(arg0 *big.Int, amount *big.Int) (struct { - DepositFeeAmount *big.Int - WithdrawFeeAmount *big.Int -}, error) { - return _CoreOptimism.Contract.GetMarketFees(&_CoreOptimism.CallOpts, arg0, amount) -} - -// GetMarketFees is a free data retrieval call binding the contract method 0xdfb83437. -// -// Solidity: function getMarketFees(uint128 , uint256 amount) view returns(uint256 depositFeeAmount, uint256 withdrawFeeAmount) -func (_CoreOptimism *CoreOptimismCallerSession) GetMarketFees(arg0 *big.Int, amount *big.Int) (struct { - DepositFeeAmount *big.Int - WithdrawFeeAmount *big.Int -}, error) { - return _CoreOptimism.Contract.GetMarketFees(&_CoreOptimism.CallOpts, arg0, amount) -} - -// GetMarketMinDelegateTime is a free data retrieval call binding the contract method 0x5424901b. -// -// Solidity: function getMarketMinDelegateTime(uint128 marketId) view returns(uint32) -func (_CoreOptimism *CoreOptimismCaller) GetMarketMinDelegateTime(opts *bind.CallOpts, marketId *big.Int) (uint32, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getMarketMinDelegateTime", marketId) - - if err != nil { - return *new(uint32), err - } - - out0 := *abi.ConvertType(out[0], new(uint32)).(*uint32) - - return out0, err - -} - -// GetMarketMinDelegateTime is a free data retrieval call binding the contract method 0x5424901b. -// -// Solidity: function getMarketMinDelegateTime(uint128 marketId) view returns(uint32) -func (_CoreOptimism *CoreOptimismSession) GetMarketMinDelegateTime(marketId *big.Int) (uint32, error) { - return _CoreOptimism.Contract.GetMarketMinDelegateTime(&_CoreOptimism.CallOpts, marketId) -} - -// GetMarketMinDelegateTime is a free data retrieval call binding the contract method 0x5424901b. -// -// Solidity: function getMarketMinDelegateTime(uint128 marketId) view returns(uint32) -func (_CoreOptimism *CoreOptimismCallerSession) GetMarketMinDelegateTime(marketId *big.Int) (uint32, error) { - return _CoreOptimism.Contract.GetMarketMinDelegateTime(&_CoreOptimism.CallOpts, marketId) -} - -// GetMarketNetIssuance is a free data retrieval call binding the contract method 0x85d99ebc. -// -// Solidity: function getMarketNetIssuance(uint128 marketId) view returns(int128) -func (_CoreOptimism *CoreOptimismCaller) GetMarketNetIssuance(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getMarketNetIssuance", marketId) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetMarketNetIssuance is a free data retrieval call binding the contract method 0x85d99ebc. -// -// Solidity: function getMarketNetIssuance(uint128 marketId) view returns(int128) -func (_CoreOptimism *CoreOptimismSession) GetMarketNetIssuance(marketId *big.Int) (*big.Int, error) { - return _CoreOptimism.Contract.GetMarketNetIssuance(&_CoreOptimism.CallOpts, marketId) -} - -// GetMarketNetIssuance is a free data retrieval call binding the contract method 0x85d99ebc. -// -// Solidity: function getMarketNetIssuance(uint128 marketId) view returns(int128) -func (_CoreOptimism *CoreOptimismCallerSession) GetMarketNetIssuance(marketId *big.Int) (*big.Int, error) { - return _CoreOptimism.Contract.GetMarketNetIssuance(&_CoreOptimism.CallOpts, marketId) -} - -// GetMarketReportedDebt is a free data retrieval call binding the contract method 0x86e3b1cf. -// -// Solidity: function getMarketReportedDebt(uint128 marketId) view returns(uint256) -func (_CoreOptimism *CoreOptimismCaller) GetMarketReportedDebt(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getMarketReportedDebt", marketId) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetMarketReportedDebt is a free data retrieval call binding the contract method 0x86e3b1cf. -// -// Solidity: function getMarketReportedDebt(uint128 marketId) view returns(uint256) -func (_CoreOptimism *CoreOptimismSession) GetMarketReportedDebt(marketId *big.Int) (*big.Int, error) { - return _CoreOptimism.Contract.GetMarketReportedDebt(&_CoreOptimism.CallOpts, marketId) -} - -// GetMarketReportedDebt is a free data retrieval call binding the contract method 0x86e3b1cf. -// -// Solidity: function getMarketReportedDebt(uint128 marketId) view returns(uint256) -func (_CoreOptimism *CoreOptimismCallerSession) GetMarketReportedDebt(marketId *big.Int) (*big.Int, error) { - return _CoreOptimism.Contract.GetMarketReportedDebt(&_CoreOptimism.CallOpts, marketId) -} - -// GetMarketTotalDebt is a free data retrieval call binding the contract method 0xbaa2a264. -// -// Solidity: function getMarketTotalDebt(uint128 marketId) view returns(int256) -func (_CoreOptimism *CoreOptimismCaller) GetMarketTotalDebt(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getMarketTotalDebt", marketId) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetMarketTotalDebt is a free data retrieval call binding the contract method 0xbaa2a264. -// -// Solidity: function getMarketTotalDebt(uint128 marketId) view returns(int256) -func (_CoreOptimism *CoreOptimismSession) GetMarketTotalDebt(marketId *big.Int) (*big.Int, error) { - return _CoreOptimism.Contract.GetMarketTotalDebt(&_CoreOptimism.CallOpts, marketId) -} - -// GetMarketTotalDebt is a free data retrieval call binding the contract method 0xbaa2a264. -// -// Solidity: function getMarketTotalDebt(uint128 marketId) view returns(int256) -func (_CoreOptimism *CoreOptimismCallerSession) GetMarketTotalDebt(marketId *big.Int) (*big.Int, error) { - return _CoreOptimism.Contract.GetMarketTotalDebt(&_CoreOptimism.CallOpts, marketId) -} - -// GetMaximumMarketCollateral is a free data retrieval call binding the contract method 0x12e1c673. -// -// Solidity: function getMaximumMarketCollateral(uint128 marketId, address collateralType) view returns(uint256) -func (_CoreOptimism *CoreOptimismCaller) GetMaximumMarketCollateral(opts *bind.CallOpts, marketId *big.Int, collateralType common.Address) (*big.Int, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getMaximumMarketCollateral", marketId, collateralType) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetMaximumMarketCollateral is a free data retrieval call binding the contract method 0x12e1c673. -// -// Solidity: function getMaximumMarketCollateral(uint128 marketId, address collateralType) view returns(uint256) -func (_CoreOptimism *CoreOptimismSession) GetMaximumMarketCollateral(marketId *big.Int, collateralType common.Address) (*big.Int, error) { - return _CoreOptimism.Contract.GetMaximumMarketCollateral(&_CoreOptimism.CallOpts, marketId, collateralType) -} - -// GetMaximumMarketCollateral is a free data retrieval call binding the contract method 0x12e1c673. -// -// Solidity: function getMaximumMarketCollateral(uint128 marketId, address collateralType) view returns(uint256) -func (_CoreOptimism *CoreOptimismCallerSession) GetMaximumMarketCollateral(marketId *big.Int, collateralType common.Address) (*big.Int, error) { - return _CoreOptimism.Contract.GetMaximumMarketCollateral(&_CoreOptimism.CallOpts, marketId, collateralType) -} - -// GetMessageSender is a free data retrieval call binding the contract method 0x76167a89. -// -// Solidity: function getMessageSender() view returns(address) -func (_CoreOptimism *CoreOptimismCaller) GetMessageSender(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getMessageSender") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// GetMessageSender is a free data retrieval call binding the contract method 0x76167a89. -// -// Solidity: function getMessageSender() view returns(address) -func (_CoreOptimism *CoreOptimismSession) GetMessageSender() (common.Address, error) { - return _CoreOptimism.Contract.GetMessageSender(&_CoreOptimism.CallOpts) -} - -// GetMessageSender is a free data retrieval call binding the contract method 0x76167a89. -// -// Solidity: function getMessageSender() view returns(address) -func (_CoreOptimism *CoreOptimismCallerSession) GetMessageSender() (common.Address, error) { - return _CoreOptimism.Contract.GetMessageSender(&_CoreOptimism.CallOpts) -} - -// GetMinLiquidityRatio is a free data retrieval call binding the contract method 0x84f29b6d. -// -// Solidity: function getMinLiquidityRatio(uint128 marketId) view returns(uint256) -func (_CoreOptimism *CoreOptimismCaller) GetMinLiquidityRatio(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getMinLiquidityRatio", marketId) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetMinLiquidityRatio is a free data retrieval call binding the contract method 0x84f29b6d. -// -// Solidity: function getMinLiquidityRatio(uint128 marketId) view returns(uint256) -func (_CoreOptimism *CoreOptimismSession) GetMinLiquidityRatio(marketId *big.Int) (*big.Int, error) { - return _CoreOptimism.Contract.GetMinLiquidityRatio(&_CoreOptimism.CallOpts, marketId) -} - -// GetMinLiquidityRatio is a free data retrieval call binding the contract method 0x84f29b6d. -// -// Solidity: function getMinLiquidityRatio(uint128 marketId) view returns(uint256) -func (_CoreOptimism *CoreOptimismCallerSession) GetMinLiquidityRatio(marketId *big.Int) (*big.Int, error) { - return _CoreOptimism.Contract.GetMinLiquidityRatio(&_CoreOptimism.CallOpts, marketId) -} - -// GetMinLiquidityRatio0 is a free data retrieval call binding the contract method 0xfd85c1f8. -// -// Solidity: function getMinLiquidityRatio() view returns(uint256) -func (_CoreOptimism *CoreOptimismCaller) GetMinLiquidityRatio0(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getMinLiquidityRatio0") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetMinLiquidityRatio0 is a free data retrieval call binding the contract method 0xfd85c1f8. -// -// Solidity: function getMinLiquidityRatio() view returns(uint256) -func (_CoreOptimism *CoreOptimismSession) GetMinLiquidityRatio0() (*big.Int, error) { - return _CoreOptimism.Contract.GetMinLiquidityRatio0(&_CoreOptimism.CallOpts) -} - -// GetMinLiquidityRatio0 is a free data retrieval call binding the contract method 0xfd85c1f8. -// -// Solidity: function getMinLiquidityRatio() view returns(uint256) -func (_CoreOptimism *CoreOptimismCallerSession) GetMinLiquidityRatio0() (*big.Int, error) { - return _CoreOptimism.Contract.GetMinLiquidityRatio0(&_CoreOptimism.CallOpts) -} - -// GetNominatedPoolOwner is a free data retrieval call binding the contract method 0x9851af01. -// -// Solidity: function getNominatedPoolOwner(uint128 poolId) view returns(address) -func (_CoreOptimism *CoreOptimismCaller) GetNominatedPoolOwner(opts *bind.CallOpts, poolId *big.Int) (common.Address, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getNominatedPoolOwner", poolId) - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// GetNominatedPoolOwner is a free data retrieval call binding the contract method 0x9851af01. -// -// Solidity: function getNominatedPoolOwner(uint128 poolId) view returns(address) -func (_CoreOptimism *CoreOptimismSession) GetNominatedPoolOwner(poolId *big.Int) (common.Address, error) { - return _CoreOptimism.Contract.GetNominatedPoolOwner(&_CoreOptimism.CallOpts, poolId) -} - -// GetNominatedPoolOwner is a free data retrieval call binding the contract method 0x9851af01. -// -// Solidity: function getNominatedPoolOwner(uint128 poolId) view returns(address) -func (_CoreOptimism *CoreOptimismCallerSession) GetNominatedPoolOwner(poolId *big.Int) (common.Address, error) { - return _CoreOptimism.Contract.GetNominatedPoolOwner(&_CoreOptimism.CallOpts, poolId) -} - -// GetOracleManager is a free data retrieval call binding the contract method 0xb01ceccd. -// -// Solidity: function getOracleManager() view returns(address) -func (_CoreOptimism *CoreOptimismCaller) GetOracleManager(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getOracleManager") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// GetOracleManager is a free data retrieval call binding the contract method 0xb01ceccd. -// -// Solidity: function getOracleManager() view returns(address) -func (_CoreOptimism *CoreOptimismSession) GetOracleManager() (common.Address, error) { - return _CoreOptimism.Contract.GetOracleManager(&_CoreOptimism.CallOpts) -} - -// GetOracleManager is a free data retrieval call binding the contract method 0xb01ceccd. -// -// Solidity: function getOracleManager() view returns(address) -func (_CoreOptimism *CoreOptimismCallerSession) GetOracleManager() (common.Address, error) { - return _CoreOptimism.Contract.GetOracleManager(&_CoreOptimism.CallOpts) -} - -// GetPoolCollateralIssuanceRatio is a free data retrieval call binding the contract method 0xc4d2aad3. -// -// Solidity: function getPoolCollateralIssuanceRatio(uint128 poolId, address collateral) view returns(uint256) -func (_CoreOptimism *CoreOptimismCaller) GetPoolCollateralIssuanceRatio(opts *bind.CallOpts, poolId *big.Int, collateral common.Address) (*big.Int, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getPoolCollateralIssuanceRatio", poolId, collateral) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetPoolCollateralIssuanceRatio is a free data retrieval call binding the contract method 0xc4d2aad3. -// -// Solidity: function getPoolCollateralIssuanceRatio(uint128 poolId, address collateral) view returns(uint256) -func (_CoreOptimism *CoreOptimismSession) GetPoolCollateralIssuanceRatio(poolId *big.Int, collateral common.Address) (*big.Int, error) { - return _CoreOptimism.Contract.GetPoolCollateralIssuanceRatio(&_CoreOptimism.CallOpts, poolId, collateral) -} - -// GetPoolCollateralIssuanceRatio is a free data retrieval call binding the contract method 0xc4d2aad3. -// -// Solidity: function getPoolCollateralIssuanceRatio(uint128 poolId, address collateral) view returns(uint256) -func (_CoreOptimism *CoreOptimismCallerSession) GetPoolCollateralIssuanceRatio(poolId *big.Int, collateral common.Address) (*big.Int, error) { - return _CoreOptimism.Contract.GetPoolCollateralIssuanceRatio(&_CoreOptimism.CallOpts, poolId, collateral) -} - -// GetPoolConfiguration is a free data retrieval call binding the contract method 0xefecf137. -// -// Solidity: function getPoolConfiguration(uint128 poolId) view returns((uint128,uint128,int128)[]) -func (_CoreOptimism *CoreOptimismCaller) GetPoolConfiguration(opts *bind.CallOpts, poolId *big.Int) ([]MarketConfigurationData, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getPoolConfiguration", poolId) - - if err != nil { - return *new([]MarketConfigurationData), err - } - - out0 := *abi.ConvertType(out[0], new([]MarketConfigurationData)).(*[]MarketConfigurationData) - - return out0, err - -} - -// GetPoolConfiguration is a free data retrieval call binding the contract method 0xefecf137. -// -// Solidity: function getPoolConfiguration(uint128 poolId) view returns((uint128,uint128,int128)[]) -func (_CoreOptimism *CoreOptimismSession) GetPoolConfiguration(poolId *big.Int) ([]MarketConfigurationData, error) { - return _CoreOptimism.Contract.GetPoolConfiguration(&_CoreOptimism.CallOpts, poolId) -} - -// GetPoolConfiguration is a free data retrieval call binding the contract method 0xefecf137. -// -// Solidity: function getPoolConfiguration(uint128 poolId) view returns((uint128,uint128,int128)[]) -func (_CoreOptimism *CoreOptimismCallerSession) GetPoolConfiguration(poolId *big.Int) ([]MarketConfigurationData, error) { - return _CoreOptimism.Contract.GetPoolConfiguration(&_CoreOptimism.CallOpts, poolId) -} - -// GetPoolName is a free data retrieval call binding the contract method 0xf86e6f91. -// -// Solidity: function getPoolName(uint128 poolId) view returns(string poolName) -func (_CoreOptimism *CoreOptimismCaller) GetPoolName(opts *bind.CallOpts, poolId *big.Int) (string, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getPoolName", poolId) - - if err != nil { - return *new(string), err - } - - out0 := *abi.ConvertType(out[0], new(string)).(*string) - - return out0, err - -} - -// GetPoolName is a free data retrieval call binding the contract method 0xf86e6f91. -// -// Solidity: function getPoolName(uint128 poolId) view returns(string poolName) -func (_CoreOptimism *CoreOptimismSession) GetPoolName(poolId *big.Int) (string, error) { - return _CoreOptimism.Contract.GetPoolName(&_CoreOptimism.CallOpts, poolId) -} - -// GetPoolName is a free data retrieval call binding the contract method 0xf86e6f91. -// -// Solidity: function getPoolName(uint128 poolId) view returns(string poolName) -func (_CoreOptimism *CoreOptimismCallerSession) GetPoolName(poolId *big.Int) (string, error) { - return _CoreOptimism.Contract.GetPoolName(&_CoreOptimism.CallOpts, poolId) -} - -// GetPoolOwner is a free data retrieval call binding the contract method 0xbbdd7c5a. -// -// Solidity: function getPoolOwner(uint128 poolId) view returns(address) -func (_CoreOptimism *CoreOptimismCaller) GetPoolOwner(opts *bind.CallOpts, poolId *big.Int) (common.Address, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getPoolOwner", poolId) - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// GetPoolOwner is a free data retrieval call binding the contract method 0xbbdd7c5a. -// -// Solidity: function getPoolOwner(uint128 poolId) view returns(address) -func (_CoreOptimism *CoreOptimismSession) GetPoolOwner(poolId *big.Int) (common.Address, error) { - return _CoreOptimism.Contract.GetPoolOwner(&_CoreOptimism.CallOpts, poolId) -} - -// GetPoolOwner is a free data retrieval call binding the contract method 0xbbdd7c5a. -// -// Solidity: function getPoolOwner(uint128 poolId) view returns(address) -func (_CoreOptimism *CoreOptimismCallerSession) GetPoolOwner(poolId *big.Int) (common.Address, error) { - return _CoreOptimism.Contract.GetPoolOwner(&_CoreOptimism.CallOpts, poolId) -} - -// GetPositionCollateral is a free data retrieval call binding the contract method 0x33cc422b. -// -// Solidity: function getPositionCollateral(uint128 accountId, uint128 poolId, address collateralType) view returns(uint256 amount, uint256 value) -func (_CoreOptimism *CoreOptimismCaller) GetPositionCollateral(opts *bind.CallOpts, accountId *big.Int, poolId *big.Int, collateralType common.Address) (struct { - Amount *big.Int - Value *big.Int -}, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getPositionCollateral", accountId, poolId, collateralType) - - outstruct := new(struct { - Amount *big.Int - Value *big.Int - }) - if err != nil { - return *outstruct, err - } - - outstruct.Amount = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - outstruct.Value = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int) - - return *outstruct, err - -} - -// GetPositionCollateral is a free data retrieval call binding the contract method 0x33cc422b. -// -// Solidity: function getPositionCollateral(uint128 accountId, uint128 poolId, address collateralType) view returns(uint256 amount, uint256 value) -func (_CoreOptimism *CoreOptimismSession) GetPositionCollateral(accountId *big.Int, poolId *big.Int, collateralType common.Address) (struct { - Amount *big.Int - Value *big.Int -}, error) { - return _CoreOptimism.Contract.GetPositionCollateral(&_CoreOptimism.CallOpts, accountId, poolId, collateralType) -} - -// GetPositionCollateral is a free data retrieval call binding the contract method 0x33cc422b. -// -// Solidity: function getPositionCollateral(uint128 accountId, uint128 poolId, address collateralType) view returns(uint256 amount, uint256 value) -func (_CoreOptimism *CoreOptimismCallerSession) GetPositionCollateral(accountId *big.Int, poolId *big.Int, collateralType common.Address) (struct { - Amount *big.Int - Value *big.Int -}, error) { - return _CoreOptimism.Contract.GetPositionCollateral(&_CoreOptimism.CallOpts, accountId, poolId, collateralType) -} - -// GetPreferredPool is a free data retrieval call binding the contract method 0x3b390b57. -// -// Solidity: function getPreferredPool() view returns(uint128) -func (_CoreOptimism *CoreOptimismCaller) GetPreferredPool(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getPreferredPool") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetPreferredPool is a free data retrieval call binding the contract method 0x3b390b57. -// -// Solidity: function getPreferredPool() view returns(uint128) -func (_CoreOptimism *CoreOptimismSession) GetPreferredPool() (*big.Int, error) { - return _CoreOptimism.Contract.GetPreferredPool(&_CoreOptimism.CallOpts) -} - -// GetPreferredPool is a free data retrieval call binding the contract method 0x3b390b57. -// -// Solidity: function getPreferredPool() view returns(uint128) -func (_CoreOptimism *CoreOptimismCallerSession) GetPreferredPool() (*big.Int, error) { - return _CoreOptimism.Contract.GetPreferredPool(&_CoreOptimism.CallOpts) -} - -// GetRewardRate is a free data retrieval call binding the contract method 0x0dd2395a. -// -// Solidity: function getRewardRate(uint128 poolId, address collateralType, address distributor) view returns(uint256) -func (_CoreOptimism *CoreOptimismCaller) GetRewardRate(opts *bind.CallOpts, poolId *big.Int, collateralType common.Address, distributor common.Address) (*big.Int, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getRewardRate", poolId, collateralType, distributor) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetRewardRate is a free data retrieval call binding the contract method 0x0dd2395a. -// -// Solidity: function getRewardRate(uint128 poolId, address collateralType, address distributor) view returns(uint256) -func (_CoreOptimism *CoreOptimismSession) GetRewardRate(poolId *big.Int, collateralType common.Address, distributor common.Address) (*big.Int, error) { - return _CoreOptimism.Contract.GetRewardRate(&_CoreOptimism.CallOpts, poolId, collateralType, distributor) -} - -// GetRewardRate is a free data retrieval call binding the contract method 0x0dd2395a. -// -// Solidity: function getRewardRate(uint128 poolId, address collateralType, address distributor) view returns(uint256) -func (_CoreOptimism *CoreOptimismCallerSession) GetRewardRate(poolId *big.Int, collateralType common.Address, distributor common.Address) (*big.Int, error) { - return _CoreOptimism.Contract.GetRewardRate(&_CoreOptimism.CallOpts, poolId, collateralType, distributor) -} - -// GetUsdToken is a free data retrieval call binding the contract method 0x21f1d9e5. -// -// Solidity: function getUsdToken() view returns(address) -func (_CoreOptimism *CoreOptimismCaller) GetUsdToken(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getUsdToken") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// GetUsdToken is a free data retrieval call binding the contract method 0x21f1d9e5. -// -// Solidity: function getUsdToken() view returns(address) -func (_CoreOptimism *CoreOptimismSession) GetUsdToken() (common.Address, error) { - return _CoreOptimism.Contract.GetUsdToken(&_CoreOptimism.CallOpts) -} - -// GetUsdToken is a free data retrieval call binding the contract method 0x21f1d9e5. -// -// Solidity: function getUsdToken() view returns(address) -func (_CoreOptimism *CoreOptimismCallerSession) GetUsdToken() (common.Address, error) { - return _CoreOptimism.Contract.GetUsdToken(&_CoreOptimism.CallOpts) -} - -// GetVaultCollateral is a free data retrieval call binding the contract method 0x078145a8. -// -// Solidity: function getVaultCollateral(uint128 poolId, address collateralType) view returns(uint256 amount, uint256 value) -func (_CoreOptimism *CoreOptimismCaller) GetVaultCollateral(opts *bind.CallOpts, poolId *big.Int, collateralType common.Address) (struct { - Amount *big.Int - Value *big.Int -}, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getVaultCollateral", poolId, collateralType) - - outstruct := new(struct { - Amount *big.Int - Value *big.Int - }) - if err != nil { - return *outstruct, err - } - - outstruct.Amount = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - outstruct.Value = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int) - - return *outstruct, err - -} - -// GetVaultCollateral is a free data retrieval call binding the contract method 0x078145a8. -// -// Solidity: function getVaultCollateral(uint128 poolId, address collateralType) view returns(uint256 amount, uint256 value) -func (_CoreOptimism *CoreOptimismSession) GetVaultCollateral(poolId *big.Int, collateralType common.Address) (struct { - Amount *big.Int - Value *big.Int -}, error) { - return _CoreOptimism.Contract.GetVaultCollateral(&_CoreOptimism.CallOpts, poolId, collateralType) -} - -// GetVaultCollateral is a free data retrieval call binding the contract method 0x078145a8. -// -// Solidity: function getVaultCollateral(uint128 poolId, address collateralType) view returns(uint256 amount, uint256 value) -func (_CoreOptimism *CoreOptimismCallerSession) GetVaultCollateral(poolId *big.Int, collateralType common.Address) (struct { - Amount *big.Int - Value *big.Int -}, error) { - return _CoreOptimism.Contract.GetVaultCollateral(&_CoreOptimism.CallOpts, poolId, collateralType) -} - -// GetWithdrawableMarketUsd is a free data retrieval call binding the contract method 0x1eb60770. -// -// Solidity: function getWithdrawableMarketUsd(uint128 marketId) view returns(uint256) -func (_CoreOptimism *CoreOptimismCaller) GetWithdrawableMarketUsd(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "getWithdrawableMarketUsd", marketId) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetWithdrawableMarketUsd is a free data retrieval call binding the contract method 0x1eb60770. -// -// Solidity: function getWithdrawableMarketUsd(uint128 marketId) view returns(uint256) -func (_CoreOptimism *CoreOptimismSession) GetWithdrawableMarketUsd(marketId *big.Int) (*big.Int, error) { - return _CoreOptimism.Contract.GetWithdrawableMarketUsd(&_CoreOptimism.CallOpts, marketId) -} - -// GetWithdrawableMarketUsd is a free data retrieval call binding the contract method 0x1eb60770. -// -// Solidity: function getWithdrawableMarketUsd(uint128 marketId) view returns(uint256) -func (_CoreOptimism *CoreOptimismCallerSession) GetWithdrawableMarketUsd(marketId *big.Int) (*big.Int, error) { - return _CoreOptimism.Contract.GetWithdrawableMarketUsd(&_CoreOptimism.CallOpts, marketId) -} - -// HasPermission is a free data retrieval call binding the contract method 0x8d34166b. -// -// Solidity: function hasPermission(uint128 accountId, bytes32 permission, address user) view returns(bool) -func (_CoreOptimism *CoreOptimismCaller) HasPermission(opts *bind.CallOpts, accountId *big.Int, permission [32]byte, user common.Address) (bool, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "hasPermission", accountId, permission, user) - - if err != nil { - return *new(bool), err - } - - out0 := *abi.ConvertType(out[0], new(bool)).(*bool) - - return out0, err - -} - -// HasPermission is a free data retrieval call binding the contract method 0x8d34166b. -// -// Solidity: function hasPermission(uint128 accountId, bytes32 permission, address user) view returns(bool) -func (_CoreOptimism *CoreOptimismSession) HasPermission(accountId *big.Int, permission [32]byte, user common.Address) (bool, error) { - return _CoreOptimism.Contract.HasPermission(&_CoreOptimism.CallOpts, accountId, permission, user) -} - -// HasPermission is a free data retrieval call binding the contract method 0x8d34166b. -// -// Solidity: function hasPermission(uint128 accountId, bytes32 permission, address user) view returns(bool) -func (_CoreOptimism *CoreOptimismCallerSession) HasPermission(accountId *big.Int, permission [32]byte, user common.Address) (bool, error) { - return _CoreOptimism.Contract.HasPermission(&_CoreOptimism.CallOpts, accountId, permission, user) -} - -// IsAuthorized is a free data retrieval call binding the contract method 0x1213d453. -// -// Solidity: function isAuthorized(uint128 accountId, bytes32 permission, address user) view returns(bool) -func (_CoreOptimism *CoreOptimismCaller) IsAuthorized(opts *bind.CallOpts, accountId *big.Int, permission [32]byte, user common.Address) (bool, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "isAuthorized", accountId, permission, user) - - if err != nil { - return *new(bool), err - } - - out0 := *abi.ConvertType(out[0], new(bool)).(*bool) - - return out0, err - -} - -// IsAuthorized is a free data retrieval call binding the contract method 0x1213d453. -// -// Solidity: function isAuthorized(uint128 accountId, bytes32 permission, address user) view returns(bool) -func (_CoreOptimism *CoreOptimismSession) IsAuthorized(accountId *big.Int, permission [32]byte, user common.Address) (bool, error) { - return _CoreOptimism.Contract.IsAuthorized(&_CoreOptimism.CallOpts, accountId, permission, user) -} - -// IsAuthorized is a free data retrieval call binding the contract method 0x1213d453. -// -// Solidity: function isAuthorized(uint128 accountId, bytes32 permission, address user) view returns(bool) -func (_CoreOptimism *CoreOptimismCallerSession) IsAuthorized(accountId *big.Int, permission [32]byte, user common.Address) (bool, error) { - return _CoreOptimism.Contract.IsAuthorized(&_CoreOptimism.CallOpts, accountId, permission, user) -} - -// IsFeatureAllowed is a free data retrieval call binding the contract method 0xcf635949. -// -// Solidity: function isFeatureAllowed(bytes32 feature, address account) view returns(bool) -func (_CoreOptimism *CoreOptimismCaller) IsFeatureAllowed(opts *bind.CallOpts, feature [32]byte, account common.Address) (bool, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "isFeatureAllowed", feature, account) - - if err != nil { - return *new(bool), err - } - - out0 := *abi.ConvertType(out[0], new(bool)).(*bool) - - return out0, err - -} - -// IsFeatureAllowed is a free data retrieval call binding the contract method 0xcf635949. -// -// Solidity: function isFeatureAllowed(bytes32 feature, address account) view returns(bool) -func (_CoreOptimism *CoreOptimismSession) IsFeatureAllowed(feature [32]byte, account common.Address) (bool, error) { - return _CoreOptimism.Contract.IsFeatureAllowed(&_CoreOptimism.CallOpts, feature, account) -} - -// IsFeatureAllowed is a free data retrieval call binding the contract method 0xcf635949. -// -// Solidity: function isFeatureAllowed(bytes32 feature, address account) view returns(bool) -func (_CoreOptimism *CoreOptimismCallerSession) IsFeatureAllowed(feature [32]byte, account common.Address) (bool, error) { - return _CoreOptimism.Contract.IsFeatureAllowed(&_CoreOptimism.CallOpts, feature, account) -} - -// IsMarketCapacityLocked is a free data retrieval call binding the contract method 0x07003f0a. -// -// Solidity: function isMarketCapacityLocked(uint128 marketId) view returns(bool) -func (_CoreOptimism *CoreOptimismCaller) IsMarketCapacityLocked(opts *bind.CallOpts, marketId *big.Int) (bool, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "isMarketCapacityLocked", marketId) - - if err != nil { - return *new(bool), err - } - - out0 := *abi.ConvertType(out[0], new(bool)).(*bool) - - return out0, err - -} - -// IsMarketCapacityLocked is a free data retrieval call binding the contract method 0x07003f0a. -// -// Solidity: function isMarketCapacityLocked(uint128 marketId) view returns(bool) -func (_CoreOptimism *CoreOptimismSession) IsMarketCapacityLocked(marketId *big.Int) (bool, error) { - return _CoreOptimism.Contract.IsMarketCapacityLocked(&_CoreOptimism.CallOpts, marketId) -} - -// IsMarketCapacityLocked is a free data retrieval call binding the contract method 0x07003f0a. -// -// Solidity: function isMarketCapacityLocked(uint128 marketId) view returns(bool) -func (_CoreOptimism *CoreOptimismCallerSession) IsMarketCapacityLocked(marketId *big.Int) (bool, error) { - return _CoreOptimism.Contract.IsMarketCapacityLocked(&_CoreOptimism.CallOpts, marketId) -} - -// NominatedOwner is a free data retrieval call binding the contract method 0x53a47bb7. -// -// Solidity: function nominatedOwner() view returns(address) -func (_CoreOptimism *CoreOptimismCaller) NominatedOwner(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "nominatedOwner") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// NominatedOwner is a free data retrieval call binding the contract method 0x53a47bb7. -// -// Solidity: function nominatedOwner() view returns(address) -func (_CoreOptimism *CoreOptimismSession) NominatedOwner() (common.Address, error) { - return _CoreOptimism.Contract.NominatedOwner(&_CoreOptimism.CallOpts) -} - -// NominatedOwner is a free data retrieval call binding the contract method 0x53a47bb7. -// -// Solidity: function nominatedOwner() view returns(address) -func (_CoreOptimism *CoreOptimismCallerSession) NominatedOwner() (common.Address, error) { - return _CoreOptimism.Contract.NominatedOwner(&_CoreOptimism.CallOpts) -} - -// Owner is a free data retrieval call binding the contract method 0x8da5cb5b. -// -// Solidity: function owner() view returns(address) -func (_CoreOptimism *CoreOptimismCaller) Owner(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "owner") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// Owner is a free data retrieval call binding the contract method 0x8da5cb5b. -// -// Solidity: function owner() view returns(address) -func (_CoreOptimism *CoreOptimismSession) Owner() (common.Address, error) { - return _CoreOptimism.Contract.Owner(&_CoreOptimism.CallOpts) -} - -// Owner is a free data retrieval call binding the contract method 0x8da5cb5b. -// -// Solidity: function owner() view returns(address) -func (_CoreOptimism *CoreOptimismCallerSession) Owner() (common.Address, error) { - return _CoreOptimism.Contract.Owner(&_CoreOptimism.CallOpts) -} - -// SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7. -// -// Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool) -func (_CoreOptimism *CoreOptimismCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error) { - var out []interface{} - err := _CoreOptimism.contract.Call(opts, &out, "supportsInterface", interfaceId) - - if err != nil { - return *new(bool), err - } - - out0 := *abi.ConvertType(out[0], new(bool)).(*bool) - - return out0, err - -} - -// SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7. -// -// Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool) -func (_CoreOptimism *CoreOptimismSession) SupportsInterface(interfaceId [4]byte) (bool, error) { - return _CoreOptimism.Contract.SupportsInterface(&_CoreOptimism.CallOpts, interfaceId) -} - -// SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7. -// -// Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool) -func (_CoreOptimism *CoreOptimismCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error) { - return _CoreOptimism.Contract.SupportsInterface(&_CoreOptimism.CallOpts, interfaceId) -} - -// AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. -// -// Solidity: function acceptOwnership() returns() -func (_CoreOptimism *CoreOptimismTransactor) AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "acceptOwnership") -} - -// AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. -// -// Solidity: function acceptOwnership() returns() -func (_CoreOptimism *CoreOptimismSession) AcceptOwnership() (*types.Transaction, error) { - return _CoreOptimism.Contract.AcceptOwnership(&_CoreOptimism.TransactOpts) -} - -// AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. -// -// Solidity: function acceptOwnership() returns() -func (_CoreOptimism *CoreOptimismTransactorSession) AcceptOwnership() (*types.Transaction, error) { - return _CoreOptimism.Contract.AcceptOwnership(&_CoreOptimism.TransactOpts) -} - -// AcceptPoolOwnership is a paid mutator transaction binding the contract method 0xc707a39f. -// -// Solidity: function acceptPoolOwnership(uint128 poolId) returns() -func (_CoreOptimism *CoreOptimismTransactor) AcceptPoolOwnership(opts *bind.TransactOpts, poolId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "acceptPoolOwnership", poolId) -} - -// AcceptPoolOwnership is a paid mutator transaction binding the contract method 0xc707a39f. -// -// Solidity: function acceptPoolOwnership(uint128 poolId) returns() -func (_CoreOptimism *CoreOptimismSession) AcceptPoolOwnership(poolId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.AcceptPoolOwnership(&_CoreOptimism.TransactOpts, poolId) -} - -// AcceptPoolOwnership is a paid mutator transaction binding the contract method 0xc707a39f. -// -// Solidity: function acceptPoolOwnership(uint128 poolId) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) AcceptPoolOwnership(poolId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.AcceptPoolOwnership(&_CoreOptimism.TransactOpts, poolId) -} - -// AddApprovedPool is a paid mutator transaction binding the contract method 0xb790a1ae. -// -// Solidity: function addApprovedPool(uint128 poolId) returns() -func (_CoreOptimism *CoreOptimismTransactor) AddApprovedPool(opts *bind.TransactOpts, poolId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "addApprovedPool", poolId) -} - -// AddApprovedPool is a paid mutator transaction binding the contract method 0xb790a1ae. -// -// Solidity: function addApprovedPool(uint128 poolId) returns() -func (_CoreOptimism *CoreOptimismSession) AddApprovedPool(poolId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.AddApprovedPool(&_CoreOptimism.TransactOpts, poolId) -} - -// AddApprovedPool is a paid mutator transaction binding the contract method 0xb790a1ae. -// -// Solidity: function addApprovedPool(uint128 poolId) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) AddApprovedPool(poolId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.AddApprovedPool(&_CoreOptimism.TransactOpts, poolId) -} - -// AddToFeatureFlagAllowlist is a paid mutator transaction binding the contract method 0xa0778144. -// -// Solidity: function addToFeatureFlagAllowlist(bytes32 feature, address account) returns() -func (_CoreOptimism *CoreOptimismTransactor) AddToFeatureFlagAllowlist(opts *bind.TransactOpts, feature [32]byte, account common.Address) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "addToFeatureFlagAllowlist", feature, account) -} - -// AddToFeatureFlagAllowlist is a paid mutator transaction binding the contract method 0xa0778144. -// -// Solidity: function addToFeatureFlagAllowlist(bytes32 feature, address account) returns() -func (_CoreOptimism *CoreOptimismSession) AddToFeatureFlagAllowlist(feature [32]byte, account common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.AddToFeatureFlagAllowlist(&_CoreOptimism.TransactOpts, feature, account) -} - -// AddToFeatureFlagAllowlist is a paid mutator transaction binding the contract method 0xa0778144. -// -// Solidity: function addToFeatureFlagAllowlist(bytes32 feature, address account) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) AddToFeatureFlagAllowlist(feature [32]byte, account common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.AddToFeatureFlagAllowlist(&_CoreOptimism.TransactOpts, feature, account) -} - -// AssociateDebt is a paid mutator transaction binding the contract method 0x11aa282d. -// -// Solidity: function associateDebt(uint128 marketId, uint128 poolId, address collateralType, uint128 accountId, uint256 amount) returns(int256) -func (_CoreOptimism *CoreOptimismTransactor) AssociateDebt(opts *bind.TransactOpts, marketId *big.Int, poolId *big.Int, collateralType common.Address, accountId *big.Int, amount *big.Int) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "associateDebt", marketId, poolId, collateralType, accountId, amount) -} - -// AssociateDebt is a paid mutator transaction binding the contract method 0x11aa282d. -// -// Solidity: function associateDebt(uint128 marketId, uint128 poolId, address collateralType, uint128 accountId, uint256 amount) returns(int256) -func (_CoreOptimism *CoreOptimismSession) AssociateDebt(marketId *big.Int, poolId *big.Int, collateralType common.Address, accountId *big.Int, amount *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.AssociateDebt(&_CoreOptimism.TransactOpts, marketId, poolId, collateralType, accountId, amount) -} - -// AssociateDebt is a paid mutator transaction binding the contract method 0x11aa282d. -// -// Solidity: function associateDebt(uint128 marketId, uint128 poolId, address collateralType, uint128 accountId, uint256 amount) returns(int256) -func (_CoreOptimism *CoreOptimismTransactorSession) AssociateDebt(marketId *big.Int, poolId *big.Int, collateralType common.Address, accountId *big.Int, amount *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.AssociateDebt(&_CoreOptimism.TransactOpts, marketId, poolId, collateralType, accountId, amount) -} - -// BurnUsd is a paid mutator transaction binding the contract method 0xd3264e43. -// -// Solidity: function burnUsd(uint128 accountId, uint128 poolId, address collateralType, uint256 amount) returns() -func (_CoreOptimism *CoreOptimismTransactor) BurnUsd(opts *bind.TransactOpts, accountId *big.Int, poolId *big.Int, collateralType common.Address, amount *big.Int) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "burnUsd", accountId, poolId, collateralType, amount) -} - -// BurnUsd is a paid mutator transaction binding the contract method 0xd3264e43. -// -// Solidity: function burnUsd(uint128 accountId, uint128 poolId, address collateralType, uint256 amount) returns() -func (_CoreOptimism *CoreOptimismSession) BurnUsd(accountId *big.Int, poolId *big.Int, collateralType common.Address, amount *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.BurnUsd(&_CoreOptimism.TransactOpts, accountId, poolId, collateralType, amount) -} - -// BurnUsd is a paid mutator transaction binding the contract method 0xd3264e43. -// -// Solidity: function burnUsd(uint128 accountId, uint128 poolId, address collateralType, uint256 amount) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) BurnUsd(accountId *big.Int, poolId *big.Int, collateralType common.Address, amount *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.BurnUsd(&_CoreOptimism.TransactOpts, accountId, poolId, collateralType, amount) -} - -// CcipReceive is a paid mutator transaction binding the contract method 0x85572ffb. -// -// Solidity: function ccipReceive((bytes32,uint64,bytes,bytes,(address,uint256)[]) message) returns() -func (_CoreOptimism *CoreOptimismTransactor) CcipReceive(opts *bind.TransactOpts, message CcipClientAny2EVMMessage) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "ccipReceive", message) -} - -// CcipReceive is a paid mutator transaction binding the contract method 0x85572ffb. -// -// Solidity: function ccipReceive((bytes32,uint64,bytes,bytes,(address,uint256)[]) message) returns() -func (_CoreOptimism *CoreOptimismSession) CcipReceive(message CcipClientAny2EVMMessage) (*types.Transaction, error) { - return _CoreOptimism.Contract.CcipReceive(&_CoreOptimism.TransactOpts, message) -} - -// CcipReceive is a paid mutator transaction binding the contract method 0x85572ffb. -// -// Solidity: function ccipReceive((bytes32,uint64,bytes,bytes,(address,uint256)[]) message) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) CcipReceive(message CcipClientAny2EVMMessage) (*types.Transaction, error) { - return _CoreOptimism.Contract.CcipReceive(&_CoreOptimism.TransactOpts, message) -} - -// ClaimRewards is a paid mutator transaction binding the contract method 0x460d2049. -// -// Solidity: function claimRewards(uint128 accountId, uint128 poolId, address collateralType, address distributor) returns(uint256) -func (_CoreOptimism *CoreOptimismTransactor) ClaimRewards(opts *bind.TransactOpts, accountId *big.Int, poolId *big.Int, collateralType common.Address, distributor common.Address) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "claimRewards", accountId, poolId, collateralType, distributor) -} - -// ClaimRewards is a paid mutator transaction binding the contract method 0x460d2049. -// -// Solidity: function claimRewards(uint128 accountId, uint128 poolId, address collateralType, address distributor) returns(uint256) -func (_CoreOptimism *CoreOptimismSession) ClaimRewards(accountId *big.Int, poolId *big.Int, collateralType common.Address, distributor common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.ClaimRewards(&_CoreOptimism.TransactOpts, accountId, poolId, collateralType, distributor) -} - -// ClaimRewards is a paid mutator transaction binding the contract method 0x460d2049. -// -// Solidity: function claimRewards(uint128 accountId, uint128 poolId, address collateralType, address distributor) returns(uint256) -func (_CoreOptimism *CoreOptimismTransactorSession) ClaimRewards(accountId *big.Int, poolId *big.Int, collateralType common.Address, distributor common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.ClaimRewards(&_CoreOptimism.TransactOpts, accountId, poolId, collateralType, distributor) -} - -// CleanExpiredLocks is a paid mutator transaction binding the contract method 0x198f0aa1. -// -// Solidity: function cleanExpiredLocks(uint128 accountId, address collateralType, uint256 offset, uint256 count) returns(uint256 cleared) -func (_CoreOptimism *CoreOptimismTransactor) CleanExpiredLocks(opts *bind.TransactOpts, accountId *big.Int, collateralType common.Address, offset *big.Int, count *big.Int) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "cleanExpiredLocks", accountId, collateralType, offset, count) -} - -// CleanExpiredLocks is a paid mutator transaction binding the contract method 0x198f0aa1. -// -// Solidity: function cleanExpiredLocks(uint128 accountId, address collateralType, uint256 offset, uint256 count) returns(uint256 cleared) -func (_CoreOptimism *CoreOptimismSession) CleanExpiredLocks(accountId *big.Int, collateralType common.Address, offset *big.Int, count *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.CleanExpiredLocks(&_CoreOptimism.TransactOpts, accountId, collateralType, offset, count) -} - -// CleanExpiredLocks is a paid mutator transaction binding the contract method 0x198f0aa1. -// -// Solidity: function cleanExpiredLocks(uint128 accountId, address collateralType, uint256 offset, uint256 count) returns(uint256 cleared) -func (_CoreOptimism *CoreOptimismTransactorSession) CleanExpiredLocks(accountId *big.Int, collateralType common.Address, offset *big.Int, count *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.CleanExpiredLocks(&_CoreOptimism.TransactOpts, accountId, collateralType, offset, count) -} - -// ConfigureChainlinkCrossChain is a paid mutator transaction binding the contract method 0x10d52805. -// -// Solidity: function configureChainlinkCrossChain(address ccipRouter, address ccipTokenPool) returns() -func (_CoreOptimism *CoreOptimismTransactor) ConfigureChainlinkCrossChain(opts *bind.TransactOpts, ccipRouter common.Address, ccipTokenPool common.Address) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "configureChainlinkCrossChain", ccipRouter, ccipTokenPool) -} - -// ConfigureChainlinkCrossChain is a paid mutator transaction binding the contract method 0x10d52805. -// -// Solidity: function configureChainlinkCrossChain(address ccipRouter, address ccipTokenPool) returns() -func (_CoreOptimism *CoreOptimismSession) ConfigureChainlinkCrossChain(ccipRouter common.Address, ccipTokenPool common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.ConfigureChainlinkCrossChain(&_CoreOptimism.TransactOpts, ccipRouter, ccipTokenPool) -} - -// ConfigureChainlinkCrossChain is a paid mutator transaction binding the contract method 0x10d52805. -// -// Solidity: function configureChainlinkCrossChain(address ccipRouter, address ccipTokenPool) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) ConfigureChainlinkCrossChain(ccipRouter common.Address, ccipTokenPool common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.ConfigureChainlinkCrossChain(&_CoreOptimism.TransactOpts, ccipRouter, ccipTokenPool) -} - -// ConfigureCollateral is a paid mutator transaction binding the contract method 0x644cb0f3. -// -// Solidity: function configureCollateral((bool,uint256,uint256,uint256,bytes32,address,uint256) config) returns() -func (_CoreOptimism *CoreOptimismTransactor) ConfigureCollateral(opts *bind.TransactOpts, config CollateralConfigurationData) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "configureCollateral", config) -} - -// ConfigureCollateral is a paid mutator transaction binding the contract method 0x644cb0f3. -// -// Solidity: function configureCollateral((bool,uint256,uint256,uint256,bytes32,address,uint256) config) returns() -func (_CoreOptimism *CoreOptimismSession) ConfigureCollateral(config CollateralConfigurationData) (*types.Transaction, error) { - return _CoreOptimism.Contract.ConfigureCollateral(&_CoreOptimism.TransactOpts, config) -} - -// ConfigureCollateral is a paid mutator transaction binding the contract method 0x644cb0f3. -// -// Solidity: function configureCollateral((bool,uint256,uint256,uint256,bytes32,address,uint256) config) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) ConfigureCollateral(config CollateralConfigurationData) (*types.Transaction, error) { - return _CoreOptimism.Contract.ConfigureCollateral(&_CoreOptimism.TransactOpts, config) -} - -// ConfigureMaximumMarketCollateral is a paid mutator transaction binding the contract method 0xdbdea94c. -// -// Solidity: function configureMaximumMarketCollateral(uint128 marketId, address collateralType, uint256 amount) returns() -func (_CoreOptimism *CoreOptimismTransactor) ConfigureMaximumMarketCollateral(opts *bind.TransactOpts, marketId *big.Int, collateralType common.Address, amount *big.Int) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "configureMaximumMarketCollateral", marketId, collateralType, amount) -} - -// ConfigureMaximumMarketCollateral is a paid mutator transaction binding the contract method 0xdbdea94c. -// -// Solidity: function configureMaximumMarketCollateral(uint128 marketId, address collateralType, uint256 amount) returns() -func (_CoreOptimism *CoreOptimismSession) ConfigureMaximumMarketCollateral(marketId *big.Int, collateralType common.Address, amount *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.ConfigureMaximumMarketCollateral(&_CoreOptimism.TransactOpts, marketId, collateralType, amount) -} - -// ConfigureMaximumMarketCollateral is a paid mutator transaction binding the contract method 0xdbdea94c. -// -// Solidity: function configureMaximumMarketCollateral(uint128 marketId, address collateralType, uint256 amount) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) ConfigureMaximumMarketCollateral(marketId *big.Int, collateralType common.Address, amount *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.ConfigureMaximumMarketCollateral(&_CoreOptimism.TransactOpts, marketId, collateralType, amount) -} - -// ConfigureOracleManager is a paid mutator transaction binding the contract method 0xa5d49393. -// -// Solidity: function configureOracleManager(address oracleManagerAddress) returns() -func (_CoreOptimism *CoreOptimismTransactor) ConfigureOracleManager(opts *bind.TransactOpts, oracleManagerAddress common.Address) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "configureOracleManager", oracleManagerAddress) -} - -// ConfigureOracleManager is a paid mutator transaction binding the contract method 0xa5d49393. -// -// Solidity: function configureOracleManager(address oracleManagerAddress) returns() -func (_CoreOptimism *CoreOptimismSession) ConfigureOracleManager(oracleManagerAddress common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.ConfigureOracleManager(&_CoreOptimism.TransactOpts, oracleManagerAddress) -} - -// ConfigureOracleManager is a paid mutator transaction binding the contract method 0xa5d49393. -// -// Solidity: function configureOracleManager(address oracleManagerAddress) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) ConfigureOracleManager(oracleManagerAddress common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.ConfigureOracleManager(&_CoreOptimism.TransactOpts, oracleManagerAddress) -} - -// CreateAccount is a paid mutator transaction binding the contract method 0x9dca362f. -// -// Solidity: function createAccount() returns(uint128 accountId) -func (_CoreOptimism *CoreOptimismTransactor) CreateAccount(opts *bind.TransactOpts) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "createAccount") -} - -// CreateAccount is a paid mutator transaction binding the contract method 0x9dca362f. -// -// Solidity: function createAccount() returns(uint128 accountId) -func (_CoreOptimism *CoreOptimismSession) CreateAccount() (*types.Transaction, error) { - return _CoreOptimism.Contract.CreateAccount(&_CoreOptimism.TransactOpts) -} - -// CreateAccount is a paid mutator transaction binding the contract method 0x9dca362f. -// -// Solidity: function createAccount() returns(uint128 accountId) -func (_CoreOptimism *CoreOptimismTransactorSession) CreateAccount() (*types.Transaction, error) { - return _CoreOptimism.Contract.CreateAccount(&_CoreOptimism.TransactOpts) -} - -// CreateAccount0 is a paid mutator transaction binding the contract method 0xcadb09a5. -// -// Solidity: function createAccount(uint128 requestedAccountId) returns() -func (_CoreOptimism *CoreOptimismTransactor) CreateAccount0(opts *bind.TransactOpts, requestedAccountId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "createAccount0", requestedAccountId) -} - -// CreateAccount0 is a paid mutator transaction binding the contract method 0xcadb09a5. -// -// Solidity: function createAccount(uint128 requestedAccountId) returns() -func (_CoreOptimism *CoreOptimismSession) CreateAccount0(requestedAccountId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.CreateAccount0(&_CoreOptimism.TransactOpts, requestedAccountId) -} - -// CreateAccount0 is a paid mutator transaction binding the contract method 0xcadb09a5. -// -// Solidity: function createAccount(uint128 requestedAccountId) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) CreateAccount0(requestedAccountId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.CreateAccount0(&_CoreOptimism.TransactOpts, requestedAccountId) -} - -// CreateLock is a paid mutator transaction binding the contract method 0x0bae9893. -// -// Solidity: function createLock(uint128 accountId, address collateralType, uint256 amount, uint64 expireTimestamp) returns() -func (_CoreOptimism *CoreOptimismTransactor) CreateLock(opts *bind.TransactOpts, accountId *big.Int, collateralType common.Address, amount *big.Int, expireTimestamp uint64) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "createLock", accountId, collateralType, amount, expireTimestamp) -} - -// CreateLock is a paid mutator transaction binding the contract method 0x0bae9893. -// -// Solidity: function createLock(uint128 accountId, address collateralType, uint256 amount, uint64 expireTimestamp) returns() -func (_CoreOptimism *CoreOptimismSession) CreateLock(accountId *big.Int, collateralType common.Address, amount *big.Int, expireTimestamp uint64) (*types.Transaction, error) { - return _CoreOptimism.Contract.CreateLock(&_CoreOptimism.TransactOpts, accountId, collateralType, amount, expireTimestamp) -} - -// CreateLock is a paid mutator transaction binding the contract method 0x0bae9893. -// -// Solidity: function createLock(uint128 accountId, address collateralType, uint256 amount, uint64 expireTimestamp) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) CreateLock(accountId *big.Int, collateralType common.Address, amount *big.Int, expireTimestamp uint64) (*types.Transaction, error) { - return _CoreOptimism.Contract.CreateLock(&_CoreOptimism.TransactOpts, accountId, collateralType, amount, expireTimestamp) -} - -// CreatePool is a paid mutator transaction binding the contract method 0xcaab529b. -// -// Solidity: function createPool(uint128 requestedPoolId, address owner) returns() -func (_CoreOptimism *CoreOptimismTransactor) CreatePool(opts *bind.TransactOpts, requestedPoolId *big.Int, owner common.Address) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "createPool", requestedPoolId, owner) -} - -// CreatePool is a paid mutator transaction binding the contract method 0xcaab529b. -// -// Solidity: function createPool(uint128 requestedPoolId, address owner) returns() -func (_CoreOptimism *CoreOptimismSession) CreatePool(requestedPoolId *big.Int, owner common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.CreatePool(&_CoreOptimism.TransactOpts, requestedPoolId, owner) -} - -// CreatePool is a paid mutator transaction binding the contract method 0xcaab529b. -// -// Solidity: function createPool(uint128 requestedPoolId, address owner) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) CreatePool(requestedPoolId *big.Int, owner common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.CreatePool(&_CoreOptimism.TransactOpts, requestedPoolId, owner) -} - -// DelegateCollateral is a paid mutator transaction binding the contract method 0x7b0532a4. -// -// Solidity: function delegateCollateral(uint128 accountId, uint128 poolId, address collateralType, uint256 newCollateralAmountD18, uint256 leverage) returns() -func (_CoreOptimism *CoreOptimismTransactor) DelegateCollateral(opts *bind.TransactOpts, accountId *big.Int, poolId *big.Int, collateralType common.Address, newCollateralAmountD18 *big.Int, leverage *big.Int) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "delegateCollateral", accountId, poolId, collateralType, newCollateralAmountD18, leverage) -} - -// DelegateCollateral is a paid mutator transaction binding the contract method 0x7b0532a4. -// -// Solidity: function delegateCollateral(uint128 accountId, uint128 poolId, address collateralType, uint256 newCollateralAmountD18, uint256 leverage) returns() -func (_CoreOptimism *CoreOptimismSession) DelegateCollateral(accountId *big.Int, poolId *big.Int, collateralType common.Address, newCollateralAmountD18 *big.Int, leverage *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.DelegateCollateral(&_CoreOptimism.TransactOpts, accountId, poolId, collateralType, newCollateralAmountD18, leverage) -} - -// DelegateCollateral is a paid mutator transaction binding the contract method 0x7b0532a4. -// -// Solidity: function delegateCollateral(uint128 accountId, uint128 poolId, address collateralType, uint256 newCollateralAmountD18, uint256 leverage) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) DelegateCollateral(accountId *big.Int, poolId *big.Int, collateralType common.Address, newCollateralAmountD18 *big.Int, leverage *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.DelegateCollateral(&_CoreOptimism.TransactOpts, accountId, poolId, collateralType, newCollateralAmountD18, leverage) -} - -// Deposit is a paid mutator transaction binding the contract method 0x83802968. -// -// Solidity: function deposit(uint128 accountId, address collateralType, uint256 tokenAmount) returns() -func (_CoreOptimism *CoreOptimismTransactor) Deposit(opts *bind.TransactOpts, accountId *big.Int, collateralType common.Address, tokenAmount *big.Int) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "deposit", accountId, collateralType, tokenAmount) -} - -// Deposit is a paid mutator transaction binding the contract method 0x83802968. -// -// Solidity: function deposit(uint128 accountId, address collateralType, uint256 tokenAmount) returns() -func (_CoreOptimism *CoreOptimismSession) Deposit(accountId *big.Int, collateralType common.Address, tokenAmount *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.Deposit(&_CoreOptimism.TransactOpts, accountId, collateralType, tokenAmount) -} - -// Deposit is a paid mutator transaction binding the contract method 0x83802968. -// -// Solidity: function deposit(uint128 accountId, address collateralType, uint256 tokenAmount) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) Deposit(accountId *big.Int, collateralType common.Address, tokenAmount *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.Deposit(&_CoreOptimism.TransactOpts, accountId, collateralType, tokenAmount) -} - -// DepositMarketCollateral is a paid mutator transaction binding the contract method 0xa4e6306b. -// -// Solidity: function depositMarketCollateral(uint128 marketId, address collateralType, uint256 tokenAmount) returns() -func (_CoreOptimism *CoreOptimismTransactor) DepositMarketCollateral(opts *bind.TransactOpts, marketId *big.Int, collateralType common.Address, tokenAmount *big.Int) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "depositMarketCollateral", marketId, collateralType, tokenAmount) -} - -// DepositMarketCollateral is a paid mutator transaction binding the contract method 0xa4e6306b. -// -// Solidity: function depositMarketCollateral(uint128 marketId, address collateralType, uint256 tokenAmount) returns() -func (_CoreOptimism *CoreOptimismSession) DepositMarketCollateral(marketId *big.Int, collateralType common.Address, tokenAmount *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.DepositMarketCollateral(&_CoreOptimism.TransactOpts, marketId, collateralType, tokenAmount) -} - -// DepositMarketCollateral is a paid mutator transaction binding the contract method 0xa4e6306b. -// -// Solidity: function depositMarketCollateral(uint128 marketId, address collateralType, uint256 tokenAmount) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) DepositMarketCollateral(marketId *big.Int, collateralType common.Address, tokenAmount *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.DepositMarketCollateral(&_CoreOptimism.TransactOpts, marketId, collateralType, tokenAmount) -} - -// DepositMarketUsd is a paid mutator transaction binding the contract method 0x10b0cf76. -// -// Solidity: function depositMarketUsd(uint128 marketId, address target, uint256 amount) returns(uint256 feeAmount) -func (_CoreOptimism *CoreOptimismTransactor) DepositMarketUsd(opts *bind.TransactOpts, marketId *big.Int, target common.Address, amount *big.Int) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "depositMarketUsd", marketId, target, amount) -} - -// DepositMarketUsd is a paid mutator transaction binding the contract method 0x10b0cf76. -// -// Solidity: function depositMarketUsd(uint128 marketId, address target, uint256 amount) returns(uint256 feeAmount) -func (_CoreOptimism *CoreOptimismSession) DepositMarketUsd(marketId *big.Int, target common.Address, amount *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.DepositMarketUsd(&_CoreOptimism.TransactOpts, marketId, target, amount) -} - -// DepositMarketUsd is a paid mutator transaction binding the contract method 0x10b0cf76. -// -// Solidity: function depositMarketUsd(uint128 marketId, address target, uint256 amount) returns(uint256 feeAmount) -func (_CoreOptimism *CoreOptimismTransactorSession) DepositMarketUsd(marketId *big.Int, target common.Address, amount *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.DepositMarketUsd(&_CoreOptimism.TransactOpts, marketId, target, amount) -} - -// DistributeDebtToPools is a paid mutator transaction binding the contract method 0xa0c12269. -// -// Solidity: function distributeDebtToPools(uint128 marketId, uint256 maxIter) returns(bool) -func (_CoreOptimism *CoreOptimismTransactor) DistributeDebtToPools(opts *bind.TransactOpts, marketId *big.Int, maxIter *big.Int) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "distributeDebtToPools", marketId, maxIter) -} - -// DistributeDebtToPools is a paid mutator transaction binding the contract method 0xa0c12269. -// -// Solidity: function distributeDebtToPools(uint128 marketId, uint256 maxIter) returns(bool) -func (_CoreOptimism *CoreOptimismSession) DistributeDebtToPools(marketId *big.Int, maxIter *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.DistributeDebtToPools(&_CoreOptimism.TransactOpts, marketId, maxIter) -} - -// DistributeDebtToPools is a paid mutator transaction binding the contract method 0xa0c12269. -// -// Solidity: function distributeDebtToPools(uint128 marketId, uint256 maxIter) returns(bool) -func (_CoreOptimism *CoreOptimismTransactorSession) DistributeDebtToPools(marketId *big.Int, maxIter *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.DistributeDebtToPools(&_CoreOptimism.TransactOpts, marketId, maxIter) -} - -// DistributeRewards is a paid mutator transaction binding the contract method 0x5a7ff7c5. -// -// Solidity: function distributeRewards(uint128 poolId, address collateralType, uint256 amount, uint64 start, uint32 duration) returns() -func (_CoreOptimism *CoreOptimismTransactor) DistributeRewards(opts *bind.TransactOpts, poolId *big.Int, collateralType common.Address, amount *big.Int, start uint64, duration uint32) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "distributeRewards", poolId, collateralType, amount, start, duration) -} - -// DistributeRewards is a paid mutator transaction binding the contract method 0x5a7ff7c5. -// -// Solidity: function distributeRewards(uint128 poolId, address collateralType, uint256 amount, uint64 start, uint32 duration) returns() -func (_CoreOptimism *CoreOptimismSession) DistributeRewards(poolId *big.Int, collateralType common.Address, amount *big.Int, start uint64, duration uint32) (*types.Transaction, error) { - return _CoreOptimism.Contract.DistributeRewards(&_CoreOptimism.TransactOpts, poolId, collateralType, amount, start, duration) -} - -// DistributeRewards is a paid mutator transaction binding the contract method 0x5a7ff7c5. -// -// Solidity: function distributeRewards(uint128 poolId, address collateralType, uint256 amount, uint64 start, uint32 duration) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) DistributeRewards(poolId *big.Int, collateralType common.Address, amount *big.Int, start uint64, duration uint32) (*types.Transaction, error) { - return _CoreOptimism.Contract.DistributeRewards(&_CoreOptimism.TransactOpts, poolId, collateralType, amount, start, duration) -} - -// GetMarketDebtPerShare is a paid mutator transaction binding the contract method 0x95909ba3. -// -// Solidity: function getMarketDebtPerShare(uint128 marketId) returns(int256) -func (_CoreOptimism *CoreOptimismTransactor) GetMarketDebtPerShare(opts *bind.TransactOpts, marketId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "getMarketDebtPerShare", marketId) -} - -// GetMarketDebtPerShare is a paid mutator transaction binding the contract method 0x95909ba3. -// -// Solidity: function getMarketDebtPerShare(uint128 marketId) returns(int256) -func (_CoreOptimism *CoreOptimismSession) GetMarketDebtPerShare(marketId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.GetMarketDebtPerShare(&_CoreOptimism.TransactOpts, marketId) -} - -// GetMarketDebtPerShare is a paid mutator transaction binding the contract method 0x95909ba3. -// -// Solidity: function getMarketDebtPerShare(uint128 marketId) returns(int256) -func (_CoreOptimism *CoreOptimismTransactorSession) GetMarketDebtPerShare(marketId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.GetMarketDebtPerShare(&_CoreOptimism.TransactOpts, marketId) -} - -// GetMarketPoolDebtDistribution is a paid mutator transaction binding the contract method 0x25eeea4b. -// -// Solidity: function getMarketPoolDebtDistribution(uint128 marketId, uint128 poolId) returns(uint256 sharesD18, uint128 totalSharesD18, int128 valuePerShareD27) -func (_CoreOptimism *CoreOptimismTransactor) GetMarketPoolDebtDistribution(opts *bind.TransactOpts, marketId *big.Int, poolId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "getMarketPoolDebtDistribution", marketId, poolId) -} - -// GetMarketPoolDebtDistribution is a paid mutator transaction binding the contract method 0x25eeea4b. -// -// Solidity: function getMarketPoolDebtDistribution(uint128 marketId, uint128 poolId) returns(uint256 sharesD18, uint128 totalSharesD18, int128 valuePerShareD27) -func (_CoreOptimism *CoreOptimismSession) GetMarketPoolDebtDistribution(marketId *big.Int, poolId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.GetMarketPoolDebtDistribution(&_CoreOptimism.TransactOpts, marketId, poolId) -} - -// GetMarketPoolDebtDistribution is a paid mutator transaction binding the contract method 0x25eeea4b. -// -// Solidity: function getMarketPoolDebtDistribution(uint128 marketId, uint128 poolId) returns(uint256 sharesD18, uint128 totalSharesD18, int128 valuePerShareD27) -func (_CoreOptimism *CoreOptimismTransactorSession) GetMarketPoolDebtDistribution(marketId *big.Int, poolId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.GetMarketPoolDebtDistribution(&_CoreOptimism.TransactOpts, marketId, poolId) -} - -// GetMarketPools is a paid mutator transaction binding the contract method 0xbe0b8e6f. -// -// Solidity: function getMarketPools(uint128 marketId) returns(uint128[] inRangePoolIds, uint128[] outRangePoolIds) -func (_CoreOptimism *CoreOptimismTransactor) GetMarketPools(opts *bind.TransactOpts, marketId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "getMarketPools", marketId) -} - -// GetMarketPools is a paid mutator transaction binding the contract method 0xbe0b8e6f. -// -// Solidity: function getMarketPools(uint128 marketId) returns(uint128[] inRangePoolIds, uint128[] outRangePoolIds) -func (_CoreOptimism *CoreOptimismSession) GetMarketPools(marketId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.GetMarketPools(&_CoreOptimism.TransactOpts, marketId) -} - -// GetMarketPools is a paid mutator transaction binding the contract method 0xbe0b8e6f. -// -// Solidity: function getMarketPools(uint128 marketId) returns(uint128[] inRangePoolIds, uint128[] outRangePoolIds) -func (_CoreOptimism *CoreOptimismTransactorSession) GetMarketPools(marketId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.GetMarketPools(&_CoreOptimism.TransactOpts, marketId) -} - -// GetPosition is a paid mutator transaction binding the contract method 0xf544d66e. -// -// Solidity: function getPosition(uint128 accountId, uint128 poolId, address collateralType) returns(uint256 collateralAmount, uint256 collateralValue, int256 debt, uint256 collateralizationRatio) -func (_CoreOptimism *CoreOptimismTransactor) GetPosition(opts *bind.TransactOpts, accountId *big.Int, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "getPosition", accountId, poolId, collateralType) -} - -// GetPosition is a paid mutator transaction binding the contract method 0xf544d66e. -// -// Solidity: function getPosition(uint128 accountId, uint128 poolId, address collateralType) returns(uint256 collateralAmount, uint256 collateralValue, int256 debt, uint256 collateralizationRatio) -func (_CoreOptimism *CoreOptimismSession) GetPosition(accountId *big.Int, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.GetPosition(&_CoreOptimism.TransactOpts, accountId, poolId, collateralType) -} - -// GetPosition is a paid mutator transaction binding the contract method 0xf544d66e. -// -// Solidity: function getPosition(uint128 accountId, uint128 poolId, address collateralType) returns(uint256 collateralAmount, uint256 collateralValue, int256 debt, uint256 collateralizationRatio) -func (_CoreOptimism *CoreOptimismTransactorSession) GetPosition(accountId *big.Int, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.GetPosition(&_CoreOptimism.TransactOpts, accountId, poolId, collateralType) -} - -// GetPositionCollateralRatio is a paid mutator transaction binding the contract method 0xdc0a5384. -// -// Solidity: function getPositionCollateralRatio(uint128 accountId, uint128 poolId, address collateralType) returns(uint256) -func (_CoreOptimism *CoreOptimismTransactor) GetPositionCollateralRatio(opts *bind.TransactOpts, accountId *big.Int, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "getPositionCollateralRatio", accountId, poolId, collateralType) -} - -// GetPositionCollateralRatio is a paid mutator transaction binding the contract method 0xdc0a5384. -// -// Solidity: function getPositionCollateralRatio(uint128 accountId, uint128 poolId, address collateralType) returns(uint256) -func (_CoreOptimism *CoreOptimismSession) GetPositionCollateralRatio(accountId *big.Int, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.GetPositionCollateralRatio(&_CoreOptimism.TransactOpts, accountId, poolId, collateralType) -} - -// GetPositionCollateralRatio is a paid mutator transaction binding the contract method 0xdc0a5384. -// -// Solidity: function getPositionCollateralRatio(uint128 accountId, uint128 poolId, address collateralType) returns(uint256) -func (_CoreOptimism *CoreOptimismTransactorSession) GetPositionCollateralRatio(accountId *big.Int, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.GetPositionCollateralRatio(&_CoreOptimism.TransactOpts, accountId, poolId, collateralType) -} - -// GetPositionDebt is a paid mutator transaction binding the contract method 0x3593bbd2. -// -// Solidity: function getPositionDebt(uint128 accountId, uint128 poolId, address collateralType) returns(int256 debt) -func (_CoreOptimism *CoreOptimismTransactor) GetPositionDebt(opts *bind.TransactOpts, accountId *big.Int, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "getPositionDebt", accountId, poolId, collateralType) -} - -// GetPositionDebt is a paid mutator transaction binding the contract method 0x3593bbd2. -// -// Solidity: function getPositionDebt(uint128 accountId, uint128 poolId, address collateralType) returns(int256 debt) -func (_CoreOptimism *CoreOptimismSession) GetPositionDebt(accountId *big.Int, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.GetPositionDebt(&_CoreOptimism.TransactOpts, accountId, poolId, collateralType) -} - -// GetPositionDebt is a paid mutator transaction binding the contract method 0x3593bbd2. -// -// Solidity: function getPositionDebt(uint128 accountId, uint128 poolId, address collateralType) returns(int256 debt) -func (_CoreOptimism *CoreOptimismTransactorSession) GetPositionDebt(accountId *big.Int, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.GetPositionDebt(&_CoreOptimism.TransactOpts, accountId, poolId, collateralType) -} - -// GetVaultCollateralRatio is a paid mutator transaction binding the contract method 0x60248c55. -// -// Solidity: function getVaultCollateralRatio(uint128 poolId, address collateralType) returns(uint256) -func (_CoreOptimism *CoreOptimismTransactor) GetVaultCollateralRatio(opts *bind.TransactOpts, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "getVaultCollateralRatio", poolId, collateralType) -} - -// GetVaultCollateralRatio is a paid mutator transaction binding the contract method 0x60248c55. -// -// Solidity: function getVaultCollateralRatio(uint128 poolId, address collateralType) returns(uint256) -func (_CoreOptimism *CoreOptimismSession) GetVaultCollateralRatio(poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.GetVaultCollateralRatio(&_CoreOptimism.TransactOpts, poolId, collateralType) -} - -// GetVaultCollateralRatio is a paid mutator transaction binding the contract method 0x60248c55. -// -// Solidity: function getVaultCollateralRatio(uint128 poolId, address collateralType) returns(uint256) -func (_CoreOptimism *CoreOptimismTransactorSession) GetVaultCollateralRatio(poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.GetVaultCollateralRatio(&_CoreOptimism.TransactOpts, poolId, collateralType) -} - -// GetVaultDebt is a paid mutator transaction binding the contract method 0x2fb8ff24. -// -// Solidity: function getVaultDebt(uint128 poolId, address collateralType) returns(int256) -func (_CoreOptimism *CoreOptimismTransactor) GetVaultDebt(opts *bind.TransactOpts, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "getVaultDebt", poolId, collateralType) -} - -// GetVaultDebt is a paid mutator transaction binding the contract method 0x2fb8ff24. -// -// Solidity: function getVaultDebt(uint128 poolId, address collateralType) returns(int256) -func (_CoreOptimism *CoreOptimismSession) GetVaultDebt(poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.GetVaultDebt(&_CoreOptimism.TransactOpts, poolId, collateralType) -} - -// GetVaultDebt is a paid mutator transaction binding the contract method 0x2fb8ff24. -// -// Solidity: function getVaultDebt(uint128 poolId, address collateralType) returns(int256) -func (_CoreOptimism *CoreOptimismTransactorSession) GetVaultDebt(poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.GetVaultDebt(&_CoreOptimism.TransactOpts, poolId, collateralType) -} - -// GrantPermission is a paid mutator transaction binding the contract method 0x00cd9ef3. -// -// Solidity: function grantPermission(uint128 accountId, bytes32 permission, address user) returns() -func (_CoreOptimism *CoreOptimismTransactor) GrantPermission(opts *bind.TransactOpts, accountId *big.Int, permission [32]byte, user common.Address) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "grantPermission", accountId, permission, user) -} - -// GrantPermission is a paid mutator transaction binding the contract method 0x00cd9ef3. -// -// Solidity: function grantPermission(uint128 accountId, bytes32 permission, address user) returns() -func (_CoreOptimism *CoreOptimismSession) GrantPermission(accountId *big.Int, permission [32]byte, user common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.GrantPermission(&_CoreOptimism.TransactOpts, accountId, permission, user) -} - -// GrantPermission is a paid mutator transaction binding the contract method 0x00cd9ef3. -// -// Solidity: function grantPermission(uint128 accountId, bytes32 permission, address user) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) GrantPermission(accountId *big.Int, permission [32]byte, user common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.GrantPermission(&_CoreOptimism.TransactOpts, accountId, permission, user) -} - -// InitOrUpgradeNft is a paid mutator transaction binding the contract method 0x2d22bef9. -// -// Solidity: function initOrUpgradeNft(bytes32 id, string name, string symbol, string uri, address impl) returns() -func (_CoreOptimism *CoreOptimismTransactor) InitOrUpgradeNft(opts *bind.TransactOpts, id [32]byte, name string, symbol string, uri string, impl common.Address) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "initOrUpgradeNft", id, name, symbol, uri, impl) -} - -// InitOrUpgradeNft is a paid mutator transaction binding the contract method 0x2d22bef9. -// -// Solidity: function initOrUpgradeNft(bytes32 id, string name, string symbol, string uri, address impl) returns() -func (_CoreOptimism *CoreOptimismSession) InitOrUpgradeNft(id [32]byte, name string, symbol string, uri string, impl common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.InitOrUpgradeNft(&_CoreOptimism.TransactOpts, id, name, symbol, uri, impl) -} - -// InitOrUpgradeNft is a paid mutator transaction binding the contract method 0x2d22bef9. -// -// Solidity: function initOrUpgradeNft(bytes32 id, string name, string symbol, string uri, address impl) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) InitOrUpgradeNft(id [32]byte, name string, symbol string, uri string, impl common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.InitOrUpgradeNft(&_CoreOptimism.TransactOpts, id, name, symbol, uri, impl) -} - -// InitOrUpgradeToken is a paid mutator transaction binding the contract method 0xc6f79537. -// -// Solidity: function initOrUpgradeToken(bytes32 id, string name, string symbol, uint8 decimals, address impl) returns() -func (_CoreOptimism *CoreOptimismTransactor) InitOrUpgradeToken(opts *bind.TransactOpts, id [32]byte, name string, symbol string, decimals uint8, impl common.Address) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "initOrUpgradeToken", id, name, symbol, decimals, impl) -} - -// InitOrUpgradeToken is a paid mutator transaction binding the contract method 0xc6f79537. -// -// Solidity: function initOrUpgradeToken(bytes32 id, string name, string symbol, uint8 decimals, address impl) returns() -func (_CoreOptimism *CoreOptimismSession) InitOrUpgradeToken(id [32]byte, name string, symbol string, decimals uint8, impl common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.InitOrUpgradeToken(&_CoreOptimism.TransactOpts, id, name, symbol, decimals, impl) -} - -// InitOrUpgradeToken is a paid mutator transaction binding the contract method 0xc6f79537. -// -// Solidity: function initOrUpgradeToken(bytes32 id, string name, string symbol, uint8 decimals, address impl) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) InitOrUpgradeToken(id [32]byte, name string, symbol string, decimals uint8, impl common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.InitOrUpgradeToken(&_CoreOptimism.TransactOpts, id, name, symbol, decimals, impl) -} - -// IsPositionLiquidatable is a paid mutator transaction binding the contract method 0x2fa7bb65. -// -// Solidity: function isPositionLiquidatable(uint128 accountId, uint128 poolId, address collateralType) returns(bool) -func (_CoreOptimism *CoreOptimismTransactor) IsPositionLiquidatable(opts *bind.TransactOpts, accountId *big.Int, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "isPositionLiquidatable", accountId, poolId, collateralType) -} - -// IsPositionLiquidatable is a paid mutator transaction binding the contract method 0x2fa7bb65. -// -// Solidity: function isPositionLiquidatable(uint128 accountId, uint128 poolId, address collateralType) returns(bool) -func (_CoreOptimism *CoreOptimismSession) IsPositionLiquidatable(accountId *big.Int, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.IsPositionLiquidatable(&_CoreOptimism.TransactOpts, accountId, poolId, collateralType) -} - -// IsPositionLiquidatable is a paid mutator transaction binding the contract method 0x2fa7bb65. -// -// Solidity: function isPositionLiquidatable(uint128 accountId, uint128 poolId, address collateralType) returns(bool) -func (_CoreOptimism *CoreOptimismTransactorSession) IsPositionLiquidatable(accountId *big.Int, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.IsPositionLiquidatable(&_CoreOptimism.TransactOpts, accountId, poolId, collateralType) -} - -// IsVaultLiquidatable is a paid mutator transaction binding the contract method 0x2a5354d2. -// -// Solidity: function isVaultLiquidatable(uint128 poolId, address collateralType) returns(bool) -func (_CoreOptimism *CoreOptimismTransactor) IsVaultLiquidatable(opts *bind.TransactOpts, poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "isVaultLiquidatable", poolId, collateralType) -} - -// IsVaultLiquidatable is a paid mutator transaction binding the contract method 0x2a5354d2. -// -// Solidity: function isVaultLiquidatable(uint128 poolId, address collateralType) returns(bool) -func (_CoreOptimism *CoreOptimismSession) IsVaultLiquidatable(poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.IsVaultLiquidatable(&_CoreOptimism.TransactOpts, poolId, collateralType) -} - -// IsVaultLiquidatable is a paid mutator transaction binding the contract method 0x2a5354d2. -// -// Solidity: function isVaultLiquidatable(uint128 poolId, address collateralType) returns(bool) -func (_CoreOptimism *CoreOptimismTransactorSession) IsVaultLiquidatable(poolId *big.Int, collateralType common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.IsVaultLiquidatable(&_CoreOptimism.TransactOpts, poolId, collateralType) -} - -// Liquidate is a paid mutator transaction binding the contract method 0x3e033a06. -// -// Solidity: function liquidate(uint128 accountId, uint128 poolId, address collateralType, uint128 liquidateAsAccountId) returns((uint256,uint256,uint256) liquidationData) -func (_CoreOptimism *CoreOptimismTransactor) Liquidate(opts *bind.TransactOpts, accountId *big.Int, poolId *big.Int, collateralType common.Address, liquidateAsAccountId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "liquidate", accountId, poolId, collateralType, liquidateAsAccountId) -} - -// Liquidate is a paid mutator transaction binding the contract method 0x3e033a06. -// -// Solidity: function liquidate(uint128 accountId, uint128 poolId, address collateralType, uint128 liquidateAsAccountId) returns((uint256,uint256,uint256) liquidationData) -func (_CoreOptimism *CoreOptimismSession) Liquidate(accountId *big.Int, poolId *big.Int, collateralType common.Address, liquidateAsAccountId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.Liquidate(&_CoreOptimism.TransactOpts, accountId, poolId, collateralType, liquidateAsAccountId) -} - -// Liquidate is a paid mutator transaction binding the contract method 0x3e033a06. -// -// Solidity: function liquidate(uint128 accountId, uint128 poolId, address collateralType, uint128 liquidateAsAccountId) returns((uint256,uint256,uint256) liquidationData) -func (_CoreOptimism *CoreOptimismTransactorSession) Liquidate(accountId *big.Int, poolId *big.Int, collateralType common.Address, liquidateAsAccountId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.Liquidate(&_CoreOptimism.TransactOpts, accountId, poolId, collateralType, liquidateAsAccountId) -} - -// LiquidateVault is a paid mutator transaction binding the contract method 0x7d8a4140. -// -// Solidity: function liquidateVault(uint128 poolId, address collateralType, uint128 liquidateAsAccountId, uint256 maxUsd) returns((uint256,uint256,uint256) liquidationData) -func (_CoreOptimism *CoreOptimismTransactor) LiquidateVault(opts *bind.TransactOpts, poolId *big.Int, collateralType common.Address, liquidateAsAccountId *big.Int, maxUsd *big.Int) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "liquidateVault", poolId, collateralType, liquidateAsAccountId, maxUsd) -} - -// LiquidateVault is a paid mutator transaction binding the contract method 0x7d8a4140. -// -// Solidity: function liquidateVault(uint128 poolId, address collateralType, uint128 liquidateAsAccountId, uint256 maxUsd) returns((uint256,uint256,uint256) liquidationData) -func (_CoreOptimism *CoreOptimismSession) LiquidateVault(poolId *big.Int, collateralType common.Address, liquidateAsAccountId *big.Int, maxUsd *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.LiquidateVault(&_CoreOptimism.TransactOpts, poolId, collateralType, liquidateAsAccountId, maxUsd) -} - -// LiquidateVault is a paid mutator transaction binding the contract method 0x7d8a4140. -// -// Solidity: function liquidateVault(uint128 poolId, address collateralType, uint128 liquidateAsAccountId, uint256 maxUsd) returns((uint256,uint256,uint256) liquidationData) -func (_CoreOptimism *CoreOptimismTransactorSession) LiquidateVault(poolId *big.Int, collateralType common.Address, liquidateAsAccountId *big.Int, maxUsd *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.LiquidateVault(&_CoreOptimism.TransactOpts, poolId, collateralType, liquidateAsAccountId, maxUsd) -} - -// MintUsd is a paid mutator transaction binding the contract method 0xdf16a074. -// -// Solidity: function mintUsd(uint128 accountId, uint128 poolId, address collateralType, uint256 amount) returns() -func (_CoreOptimism *CoreOptimismTransactor) MintUsd(opts *bind.TransactOpts, accountId *big.Int, poolId *big.Int, collateralType common.Address, amount *big.Int) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "mintUsd", accountId, poolId, collateralType, amount) -} - -// MintUsd is a paid mutator transaction binding the contract method 0xdf16a074. -// -// Solidity: function mintUsd(uint128 accountId, uint128 poolId, address collateralType, uint256 amount) returns() -func (_CoreOptimism *CoreOptimismSession) MintUsd(accountId *big.Int, poolId *big.Int, collateralType common.Address, amount *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.MintUsd(&_CoreOptimism.TransactOpts, accountId, poolId, collateralType, amount) -} - -// MintUsd is a paid mutator transaction binding the contract method 0xdf16a074. -// -// Solidity: function mintUsd(uint128 accountId, uint128 poolId, address collateralType, uint256 amount) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) MintUsd(accountId *big.Int, poolId *big.Int, collateralType common.Address, amount *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.MintUsd(&_CoreOptimism.TransactOpts, accountId, poolId, collateralType, amount) -} - -// Multicall is a paid mutator transaction binding the contract method 0xac9650d8. -// -// Solidity: function multicall(bytes[] data) returns(bytes[] results) -func (_CoreOptimism *CoreOptimismTransactor) Multicall(opts *bind.TransactOpts, data [][]byte) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "multicall", data) -} - -// Multicall is a paid mutator transaction binding the contract method 0xac9650d8. -// -// Solidity: function multicall(bytes[] data) returns(bytes[] results) -func (_CoreOptimism *CoreOptimismSession) Multicall(data [][]byte) (*types.Transaction, error) { - return _CoreOptimism.Contract.Multicall(&_CoreOptimism.TransactOpts, data) -} - -// Multicall is a paid mutator transaction binding the contract method 0xac9650d8. -// -// Solidity: function multicall(bytes[] data) returns(bytes[] results) -func (_CoreOptimism *CoreOptimismTransactorSession) Multicall(data [][]byte) (*types.Transaction, error) { - return _CoreOptimism.Contract.Multicall(&_CoreOptimism.TransactOpts, data) -} - -// MulticallThrough is a paid mutator transaction binding the contract method 0xc0694da0. -// -// Solidity: function multicallThrough(address[] to, bytes[] data, uint256[] values) payable returns(bytes[] results) -func (_CoreOptimism *CoreOptimismTransactor) MulticallThrough(opts *bind.TransactOpts, to []common.Address, data [][]byte, values []*big.Int) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "multicallThrough", to, data, values) -} - -// MulticallThrough is a paid mutator transaction binding the contract method 0xc0694da0. -// -// Solidity: function multicallThrough(address[] to, bytes[] data, uint256[] values) payable returns(bytes[] results) -func (_CoreOptimism *CoreOptimismSession) MulticallThrough(to []common.Address, data [][]byte, values []*big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.MulticallThrough(&_CoreOptimism.TransactOpts, to, data, values) -} - -// MulticallThrough is a paid mutator transaction binding the contract method 0xc0694da0. -// -// Solidity: function multicallThrough(address[] to, bytes[] data, uint256[] values) payable returns(bytes[] results) -func (_CoreOptimism *CoreOptimismTransactorSession) MulticallThrough(to []common.Address, data [][]byte, values []*big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.MulticallThrough(&_CoreOptimism.TransactOpts, to, data, values) -} - -// NominateNewOwner is a paid mutator transaction binding the contract method 0x1627540c. -// -// Solidity: function nominateNewOwner(address newNominatedOwner) returns() -func (_CoreOptimism *CoreOptimismTransactor) NominateNewOwner(opts *bind.TransactOpts, newNominatedOwner common.Address) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "nominateNewOwner", newNominatedOwner) -} - -// NominateNewOwner is a paid mutator transaction binding the contract method 0x1627540c. -// -// Solidity: function nominateNewOwner(address newNominatedOwner) returns() -func (_CoreOptimism *CoreOptimismSession) NominateNewOwner(newNominatedOwner common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.NominateNewOwner(&_CoreOptimism.TransactOpts, newNominatedOwner) -} - -// NominateNewOwner is a paid mutator transaction binding the contract method 0x1627540c. -// -// Solidity: function nominateNewOwner(address newNominatedOwner) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) NominateNewOwner(newNominatedOwner common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.NominateNewOwner(&_CoreOptimism.TransactOpts, newNominatedOwner) -} - -// NominatePoolOwner is a paid mutator transaction binding the contract method 0x6141f7a2. -// -// Solidity: function nominatePoolOwner(address nominatedOwner, uint128 poolId) returns() -func (_CoreOptimism *CoreOptimismTransactor) NominatePoolOwner(opts *bind.TransactOpts, nominatedOwner common.Address, poolId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "nominatePoolOwner", nominatedOwner, poolId) -} - -// NominatePoolOwner is a paid mutator transaction binding the contract method 0x6141f7a2. -// -// Solidity: function nominatePoolOwner(address nominatedOwner, uint128 poolId) returns() -func (_CoreOptimism *CoreOptimismSession) NominatePoolOwner(nominatedOwner common.Address, poolId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.NominatePoolOwner(&_CoreOptimism.TransactOpts, nominatedOwner, poolId) -} - -// NominatePoolOwner is a paid mutator transaction binding the contract method 0x6141f7a2. -// -// Solidity: function nominatePoolOwner(address nominatedOwner, uint128 poolId) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) NominatePoolOwner(nominatedOwner common.Address, poolId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.NominatePoolOwner(&_CoreOptimism.TransactOpts, nominatedOwner, poolId) -} - -// NotifyAccountTransfer is a paid mutator transaction binding the contract method 0x7dec8b55. -// -// Solidity: function notifyAccountTransfer(address to, uint128 accountId) returns() -func (_CoreOptimism *CoreOptimismTransactor) NotifyAccountTransfer(opts *bind.TransactOpts, to common.Address, accountId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "notifyAccountTransfer", to, accountId) -} - -// NotifyAccountTransfer is a paid mutator transaction binding the contract method 0x7dec8b55. -// -// Solidity: function notifyAccountTransfer(address to, uint128 accountId) returns() -func (_CoreOptimism *CoreOptimismSession) NotifyAccountTransfer(to common.Address, accountId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.NotifyAccountTransfer(&_CoreOptimism.TransactOpts, to, accountId) -} - -// NotifyAccountTransfer is a paid mutator transaction binding the contract method 0x7dec8b55. -// -// Solidity: function notifyAccountTransfer(address to, uint128 accountId) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) NotifyAccountTransfer(to common.Address, accountId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.NotifyAccountTransfer(&_CoreOptimism.TransactOpts, to, accountId) -} - -// RebalancePool is a paid mutator transaction binding the contract method 0x183231d7. -// -// Solidity: function rebalancePool(uint128 poolId, address optionalCollateralType) returns() -func (_CoreOptimism *CoreOptimismTransactor) RebalancePool(opts *bind.TransactOpts, poolId *big.Int, optionalCollateralType common.Address) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "rebalancePool", poolId, optionalCollateralType) -} - -// RebalancePool is a paid mutator transaction binding the contract method 0x183231d7. -// -// Solidity: function rebalancePool(uint128 poolId, address optionalCollateralType) returns() -func (_CoreOptimism *CoreOptimismSession) RebalancePool(poolId *big.Int, optionalCollateralType common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.RebalancePool(&_CoreOptimism.TransactOpts, poolId, optionalCollateralType) -} - -// RebalancePool is a paid mutator transaction binding the contract method 0x183231d7. -// -// Solidity: function rebalancePool(uint128 poolId, address optionalCollateralType) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) RebalancePool(poolId *big.Int, optionalCollateralType common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.RebalancePool(&_CoreOptimism.TransactOpts, poolId, optionalCollateralType) -} - -// RegisterMarket is a paid mutator transaction binding the contract method 0xa79b9ec9. -// -// Solidity: function registerMarket(address market) returns(uint128 marketId) -func (_CoreOptimism *CoreOptimismTransactor) RegisterMarket(opts *bind.TransactOpts, market common.Address) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "registerMarket", market) -} - -// RegisterMarket is a paid mutator transaction binding the contract method 0xa79b9ec9. -// -// Solidity: function registerMarket(address market) returns(uint128 marketId) -func (_CoreOptimism *CoreOptimismSession) RegisterMarket(market common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.RegisterMarket(&_CoreOptimism.TransactOpts, market) -} - -// RegisterMarket is a paid mutator transaction binding the contract method 0xa79b9ec9. -// -// Solidity: function registerMarket(address market) returns(uint128 marketId) -func (_CoreOptimism *CoreOptimismTransactorSession) RegisterMarket(market common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.RegisterMarket(&_CoreOptimism.TransactOpts, market) -} - -// RegisterRewardsDistributor is a paid mutator transaction binding the contract method 0x170c1351. -// -// Solidity: function registerRewardsDistributor(uint128 poolId, address collateralType, address distributor) returns() -func (_CoreOptimism *CoreOptimismTransactor) RegisterRewardsDistributor(opts *bind.TransactOpts, poolId *big.Int, collateralType common.Address, distributor common.Address) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "registerRewardsDistributor", poolId, collateralType, distributor) -} - -// RegisterRewardsDistributor is a paid mutator transaction binding the contract method 0x170c1351. -// -// Solidity: function registerRewardsDistributor(uint128 poolId, address collateralType, address distributor) returns() -func (_CoreOptimism *CoreOptimismSession) RegisterRewardsDistributor(poolId *big.Int, collateralType common.Address, distributor common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.RegisterRewardsDistributor(&_CoreOptimism.TransactOpts, poolId, collateralType, distributor) -} - -// RegisterRewardsDistributor is a paid mutator transaction binding the contract method 0x170c1351. -// -// Solidity: function registerRewardsDistributor(uint128 poolId, address collateralType, address distributor) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) RegisterRewardsDistributor(poolId *big.Int, collateralType common.Address, distributor common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.RegisterRewardsDistributor(&_CoreOptimism.TransactOpts, poolId, collateralType, distributor) -} - -// RegisterUnmanagedSystem is a paid mutator transaction binding the contract method 0xd245d983. -// -// Solidity: function registerUnmanagedSystem(bytes32 id, address endpoint) returns() -func (_CoreOptimism *CoreOptimismTransactor) RegisterUnmanagedSystem(opts *bind.TransactOpts, id [32]byte, endpoint common.Address) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "registerUnmanagedSystem", id, endpoint) -} - -// RegisterUnmanagedSystem is a paid mutator transaction binding the contract method 0xd245d983. -// -// Solidity: function registerUnmanagedSystem(bytes32 id, address endpoint) returns() -func (_CoreOptimism *CoreOptimismSession) RegisterUnmanagedSystem(id [32]byte, endpoint common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.RegisterUnmanagedSystem(&_CoreOptimism.TransactOpts, id, endpoint) -} - -// RegisterUnmanagedSystem is a paid mutator transaction binding the contract method 0xd245d983. -// -// Solidity: function registerUnmanagedSystem(bytes32 id, address endpoint) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) RegisterUnmanagedSystem(id [32]byte, endpoint common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.RegisterUnmanagedSystem(&_CoreOptimism.TransactOpts, id, endpoint) -} - -// RemoveApprovedPool is a paid mutator transaction binding the contract method 0xe1b440d0. -// -// Solidity: function removeApprovedPool(uint128 poolId) returns() -func (_CoreOptimism *CoreOptimismTransactor) RemoveApprovedPool(opts *bind.TransactOpts, poolId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "removeApprovedPool", poolId) -} - -// RemoveApprovedPool is a paid mutator transaction binding the contract method 0xe1b440d0. -// -// Solidity: function removeApprovedPool(uint128 poolId) returns() -func (_CoreOptimism *CoreOptimismSession) RemoveApprovedPool(poolId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.RemoveApprovedPool(&_CoreOptimism.TransactOpts, poolId) -} - -// RemoveApprovedPool is a paid mutator transaction binding the contract method 0xe1b440d0. -// -// Solidity: function removeApprovedPool(uint128 poolId) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) RemoveApprovedPool(poolId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.RemoveApprovedPool(&_CoreOptimism.TransactOpts, poolId) -} - -// RemoveFromFeatureFlagAllowlist is a paid mutator transaction binding the contract method 0xb7746b59. -// -// Solidity: function removeFromFeatureFlagAllowlist(bytes32 feature, address account) returns() -func (_CoreOptimism *CoreOptimismTransactor) RemoveFromFeatureFlagAllowlist(opts *bind.TransactOpts, feature [32]byte, account common.Address) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "removeFromFeatureFlagAllowlist", feature, account) -} - -// RemoveFromFeatureFlagAllowlist is a paid mutator transaction binding the contract method 0xb7746b59. -// -// Solidity: function removeFromFeatureFlagAllowlist(bytes32 feature, address account) returns() -func (_CoreOptimism *CoreOptimismSession) RemoveFromFeatureFlagAllowlist(feature [32]byte, account common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.RemoveFromFeatureFlagAllowlist(&_CoreOptimism.TransactOpts, feature, account) -} - -// RemoveFromFeatureFlagAllowlist is a paid mutator transaction binding the contract method 0xb7746b59. -// -// Solidity: function removeFromFeatureFlagAllowlist(bytes32 feature, address account) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) RemoveFromFeatureFlagAllowlist(feature [32]byte, account common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.RemoveFromFeatureFlagAllowlist(&_CoreOptimism.TransactOpts, feature, account) -} - -// RemoveRewardsDistributor is a paid mutator transaction binding the contract method 0x2685f42b. -// -// Solidity: function removeRewardsDistributor(uint128 poolId, address collateralType, address distributor) returns() -func (_CoreOptimism *CoreOptimismTransactor) RemoveRewardsDistributor(opts *bind.TransactOpts, poolId *big.Int, collateralType common.Address, distributor common.Address) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "removeRewardsDistributor", poolId, collateralType, distributor) -} - -// RemoveRewardsDistributor is a paid mutator transaction binding the contract method 0x2685f42b. -// -// Solidity: function removeRewardsDistributor(uint128 poolId, address collateralType, address distributor) returns() -func (_CoreOptimism *CoreOptimismSession) RemoveRewardsDistributor(poolId *big.Int, collateralType common.Address, distributor common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.RemoveRewardsDistributor(&_CoreOptimism.TransactOpts, poolId, collateralType, distributor) -} - -// RemoveRewardsDistributor is a paid mutator transaction binding the contract method 0x2685f42b. -// -// Solidity: function removeRewardsDistributor(uint128 poolId, address collateralType, address distributor) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) RemoveRewardsDistributor(poolId *big.Int, collateralType common.Address, distributor common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.RemoveRewardsDistributor(&_CoreOptimism.TransactOpts, poolId, collateralType, distributor) -} - -// RenounceNomination is a paid mutator transaction binding the contract method 0x718fe928. -// -// Solidity: function renounceNomination() returns() -func (_CoreOptimism *CoreOptimismTransactor) RenounceNomination(opts *bind.TransactOpts) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "renounceNomination") -} - -// RenounceNomination is a paid mutator transaction binding the contract method 0x718fe928. -// -// Solidity: function renounceNomination() returns() -func (_CoreOptimism *CoreOptimismSession) RenounceNomination() (*types.Transaction, error) { - return _CoreOptimism.Contract.RenounceNomination(&_CoreOptimism.TransactOpts) -} - -// RenounceNomination is a paid mutator transaction binding the contract method 0x718fe928. -// -// Solidity: function renounceNomination() returns() -func (_CoreOptimism *CoreOptimismTransactorSession) RenounceNomination() (*types.Transaction, error) { - return _CoreOptimism.Contract.RenounceNomination(&_CoreOptimism.TransactOpts) -} - -// RenouncePermission is a paid mutator transaction binding the contract method 0x47c1c561. -// -// Solidity: function renouncePermission(uint128 accountId, bytes32 permission) returns() -func (_CoreOptimism *CoreOptimismTransactor) RenouncePermission(opts *bind.TransactOpts, accountId *big.Int, permission [32]byte) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "renouncePermission", accountId, permission) -} - -// RenouncePermission is a paid mutator transaction binding the contract method 0x47c1c561. -// -// Solidity: function renouncePermission(uint128 accountId, bytes32 permission) returns() -func (_CoreOptimism *CoreOptimismSession) RenouncePermission(accountId *big.Int, permission [32]byte) (*types.Transaction, error) { - return _CoreOptimism.Contract.RenouncePermission(&_CoreOptimism.TransactOpts, accountId, permission) -} - -// RenouncePermission is a paid mutator transaction binding the contract method 0x47c1c561. -// -// Solidity: function renouncePermission(uint128 accountId, bytes32 permission) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) RenouncePermission(accountId *big.Int, permission [32]byte) (*types.Transaction, error) { - return _CoreOptimism.Contract.RenouncePermission(&_CoreOptimism.TransactOpts, accountId, permission) -} - -// RenouncePoolNomination is a paid mutator transaction binding the contract method 0xca5bed77. -// -// Solidity: function renouncePoolNomination(uint128 poolId) returns() -func (_CoreOptimism *CoreOptimismTransactor) RenouncePoolNomination(opts *bind.TransactOpts, poolId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "renouncePoolNomination", poolId) -} - -// RenouncePoolNomination is a paid mutator transaction binding the contract method 0xca5bed77. -// -// Solidity: function renouncePoolNomination(uint128 poolId) returns() -func (_CoreOptimism *CoreOptimismSession) RenouncePoolNomination(poolId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.RenouncePoolNomination(&_CoreOptimism.TransactOpts, poolId) -} - -// RenouncePoolNomination is a paid mutator transaction binding the contract method 0xca5bed77. -// -// Solidity: function renouncePoolNomination(uint128 poolId) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) RenouncePoolNomination(poolId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.RenouncePoolNomination(&_CoreOptimism.TransactOpts, poolId) -} - -// RevokePermission is a paid mutator transaction binding the contract method 0xa7627288. -// -// Solidity: function revokePermission(uint128 accountId, bytes32 permission, address user) returns() -func (_CoreOptimism *CoreOptimismTransactor) RevokePermission(opts *bind.TransactOpts, accountId *big.Int, permission [32]byte, user common.Address) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "revokePermission", accountId, permission, user) -} - -// RevokePermission is a paid mutator transaction binding the contract method 0xa7627288. -// -// Solidity: function revokePermission(uint128 accountId, bytes32 permission, address user) returns() -func (_CoreOptimism *CoreOptimismSession) RevokePermission(accountId *big.Int, permission [32]byte, user common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.RevokePermission(&_CoreOptimism.TransactOpts, accountId, permission, user) -} - -// RevokePermission is a paid mutator transaction binding the contract method 0xa7627288. -// -// Solidity: function revokePermission(uint128 accountId, bytes32 permission, address user) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) RevokePermission(accountId *big.Int, permission [32]byte, user common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.RevokePermission(&_CoreOptimism.TransactOpts, accountId, permission, user) -} - -// RevokePoolNomination is a paid mutator transaction binding the contract method 0x1f1b33b9. -// -// Solidity: function revokePoolNomination(uint128 poolId) returns() -func (_CoreOptimism *CoreOptimismTransactor) RevokePoolNomination(opts *bind.TransactOpts, poolId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "revokePoolNomination", poolId) -} - -// RevokePoolNomination is a paid mutator transaction binding the contract method 0x1f1b33b9. -// -// Solidity: function revokePoolNomination(uint128 poolId) returns() -func (_CoreOptimism *CoreOptimismSession) RevokePoolNomination(poolId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.RevokePoolNomination(&_CoreOptimism.TransactOpts, poolId) -} - -// RevokePoolNomination is a paid mutator transaction binding the contract method 0x1f1b33b9. -// -// Solidity: function revokePoolNomination(uint128 poolId) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) RevokePoolNomination(poolId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.RevokePoolNomination(&_CoreOptimism.TransactOpts, poolId) -} - -// SetAllowlistedMulticallTarget is a paid mutator transaction binding the contract method 0x0a6c7553. -// -// Solidity: function setAllowlistedMulticallTarget(address target, bool allowlisted) returns() -func (_CoreOptimism *CoreOptimismTransactor) SetAllowlistedMulticallTarget(opts *bind.TransactOpts, target common.Address, allowlisted bool) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "setAllowlistedMulticallTarget", target, allowlisted) -} - -// SetAllowlistedMulticallTarget is a paid mutator transaction binding the contract method 0x0a6c7553. -// -// Solidity: function setAllowlistedMulticallTarget(address target, bool allowlisted) returns() -func (_CoreOptimism *CoreOptimismSession) SetAllowlistedMulticallTarget(target common.Address, allowlisted bool) (*types.Transaction, error) { - return _CoreOptimism.Contract.SetAllowlistedMulticallTarget(&_CoreOptimism.TransactOpts, target, allowlisted) -} - -// SetAllowlistedMulticallTarget is a paid mutator transaction binding the contract method 0x0a6c7553. -// -// Solidity: function setAllowlistedMulticallTarget(address target, bool allowlisted) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) SetAllowlistedMulticallTarget(target common.Address, allowlisted bool) (*types.Transaction, error) { - return _CoreOptimism.Contract.SetAllowlistedMulticallTarget(&_CoreOptimism.TransactOpts, target, allowlisted) -} - -// SetConfig is a paid mutator transaction binding the contract method 0xd1fd27b3. -// -// Solidity: function setConfig(bytes32 k, bytes32 v) returns() -func (_CoreOptimism *CoreOptimismTransactor) SetConfig(opts *bind.TransactOpts, k [32]byte, v [32]byte) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "setConfig", k, v) -} - -// SetConfig is a paid mutator transaction binding the contract method 0xd1fd27b3. -// -// Solidity: function setConfig(bytes32 k, bytes32 v) returns() -func (_CoreOptimism *CoreOptimismSession) SetConfig(k [32]byte, v [32]byte) (*types.Transaction, error) { - return _CoreOptimism.Contract.SetConfig(&_CoreOptimism.TransactOpts, k, v) -} - -// SetConfig is a paid mutator transaction binding the contract method 0xd1fd27b3. -// -// Solidity: function setConfig(bytes32 k, bytes32 v) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) SetConfig(k [32]byte, v [32]byte) (*types.Transaction, error) { - return _CoreOptimism.Contract.SetConfig(&_CoreOptimism.TransactOpts, k, v) -} - -// SetDeniers is a paid mutator transaction binding the contract method 0x715cb7d2. -// -// Solidity: function setDeniers(bytes32 feature, address[] deniers) returns() -func (_CoreOptimism *CoreOptimismTransactor) SetDeniers(opts *bind.TransactOpts, feature [32]byte, deniers []common.Address) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "setDeniers", feature, deniers) -} - -// SetDeniers is a paid mutator transaction binding the contract method 0x715cb7d2. -// -// Solidity: function setDeniers(bytes32 feature, address[] deniers) returns() -func (_CoreOptimism *CoreOptimismSession) SetDeniers(feature [32]byte, deniers []common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.SetDeniers(&_CoreOptimism.TransactOpts, feature, deniers) -} - -// SetDeniers is a paid mutator transaction binding the contract method 0x715cb7d2. -// -// Solidity: function setDeniers(bytes32 feature, address[] deniers) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) SetDeniers(feature [32]byte, deniers []common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.SetDeniers(&_CoreOptimism.TransactOpts, feature, deniers) -} - -// SetFeatureFlagAllowAll is a paid mutator transaction binding the contract method 0x7d632bd2. -// -// Solidity: function setFeatureFlagAllowAll(bytes32 feature, bool allowAll) returns() -func (_CoreOptimism *CoreOptimismTransactor) SetFeatureFlagAllowAll(opts *bind.TransactOpts, feature [32]byte, allowAll bool) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "setFeatureFlagAllowAll", feature, allowAll) -} - -// SetFeatureFlagAllowAll is a paid mutator transaction binding the contract method 0x7d632bd2. -// -// Solidity: function setFeatureFlagAllowAll(bytes32 feature, bool allowAll) returns() -func (_CoreOptimism *CoreOptimismSession) SetFeatureFlagAllowAll(feature [32]byte, allowAll bool) (*types.Transaction, error) { - return _CoreOptimism.Contract.SetFeatureFlagAllowAll(&_CoreOptimism.TransactOpts, feature, allowAll) -} - -// SetFeatureFlagAllowAll is a paid mutator transaction binding the contract method 0x7d632bd2. -// -// Solidity: function setFeatureFlagAllowAll(bytes32 feature, bool allowAll) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) SetFeatureFlagAllowAll(feature [32]byte, allowAll bool) (*types.Transaction, error) { - return _CoreOptimism.Contract.SetFeatureFlagAllowAll(&_CoreOptimism.TransactOpts, feature, allowAll) -} - -// SetFeatureFlagDenyAll is a paid mutator transaction binding the contract method 0x5e52ad6e. -// -// Solidity: function setFeatureFlagDenyAll(bytes32 feature, bool denyAll) returns() -func (_CoreOptimism *CoreOptimismTransactor) SetFeatureFlagDenyAll(opts *bind.TransactOpts, feature [32]byte, denyAll bool) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "setFeatureFlagDenyAll", feature, denyAll) -} - -// SetFeatureFlagDenyAll is a paid mutator transaction binding the contract method 0x5e52ad6e. -// -// Solidity: function setFeatureFlagDenyAll(bytes32 feature, bool denyAll) returns() -func (_CoreOptimism *CoreOptimismSession) SetFeatureFlagDenyAll(feature [32]byte, denyAll bool) (*types.Transaction, error) { - return _CoreOptimism.Contract.SetFeatureFlagDenyAll(&_CoreOptimism.TransactOpts, feature, denyAll) -} - -// SetFeatureFlagDenyAll is a paid mutator transaction binding the contract method 0x5e52ad6e. -// -// Solidity: function setFeatureFlagDenyAll(bytes32 feature, bool denyAll) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) SetFeatureFlagDenyAll(feature [32]byte, denyAll bool) (*types.Transaction, error) { - return _CoreOptimism.Contract.SetFeatureFlagDenyAll(&_CoreOptimism.TransactOpts, feature, denyAll) -} - -// SetMarketMinDelegateTime is a paid mutator transaction binding the contract method 0x1d90e392. -// -// Solidity: function setMarketMinDelegateTime(uint128 marketId, uint32 minDelegateTime) returns() -func (_CoreOptimism *CoreOptimismTransactor) SetMarketMinDelegateTime(opts *bind.TransactOpts, marketId *big.Int, minDelegateTime uint32) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "setMarketMinDelegateTime", marketId, minDelegateTime) -} - -// SetMarketMinDelegateTime is a paid mutator transaction binding the contract method 0x1d90e392. -// -// Solidity: function setMarketMinDelegateTime(uint128 marketId, uint32 minDelegateTime) returns() -func (_CoreOptimism *CoreOptimismSession) SetMarketMinDelegateTime(marketId *big.Int, minDelegateTime uint32) (*types.Transaction, error) { - return _CoreOptimism.Contract.SetMarketMinDelegateTime(&_CoreOptimism.TransactOpts, marketId, minDelegateTime) -} - -// SetMarketMinDelegateTime is a paid mutator transaction binding the contract method 0x1d90e392. -// -// Solidity: function setMarketMinDelegateTime(uint128 marketId, uint32 minDelegateTime) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) SetMarketMinDelegateTime(marketId *big.Int, minDelegateTime uint32) (*types.Transaction, error) { - return _CoreOptimism.Contract.SetMarketMinDelegateTime(&_CoreOptimism.TransactOpts, marketId, minDelegateTime) -} - -// SetMinLiquidityRatio is a paid mutator transaction binding the contract method 0x6fd5bdce. -// -// Solidity: function setMinLiquidityRatio(uint128 marketId, uint256 minLiquidityRatio) returns() -func (_CoreOptimism *CoreOptimismTransactor) SetMinLiquidityRatio(opts *bind.TransactOpts, marketId *big.Int, minLiquidityRatio *big.Int) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "setMinLiquidityRatio", marketId, minLiquidityRatio) -} - -// SetMinLiquidityRatio is a paid mutator transaction binding the contract method 0x6fd5bdce. -// -// Solidity: function setMinLiquidityRatio(uint128 marketId, uint256 minLiquidityRatio) returns() -func (_CoreOptimism *CoreOptimismSession) SetMinLiquidityRatio(marketId *big.Int, minLiquidityRatio *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.SetMinLiquidityRatio(&_CoreOptimism.TransactOpts, marketId, minLiquidityRatio) -} - -// SetMinLiquidityRatio is a paid mutator transaction binding the contract method 0x6fd5bdce. -// -// Solidity: function setMinLiquidityRatio(uint128 marketId, uint256 minLiquidityRatio) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) SetMinLiquidityRatio(marketId *big.Int, minLiquidityRatio *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.SetMinLiquidityRatio(&_CoreOptimism.TransactOpts, marketId, minLiquidityRatio) -} - -// SetMinLiquidityRatio0 is a paid mutator transaction binding the contract method 0x34078a01. -// -// Solidity: function setMinLiquidityRatio(uint256 minLiquidityRatio) returns() -func (_CoreOptimism *CoreOptimismTransactor) SetMinLiquidityRatio0(opts *bind.TransactOpts, minLiquidityRatio *big.Int) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "setMinLiquidityRatio0", minLiquidityRatio) -} - -// SetMinLiquidityRatio0 is a paid mutator transaction binding the contract method 0x34078a01. -// -// Solidity: function setMinLiquidityRatio(uint256 minLiquidityRatio) returns() -func (_CoreOptimism *CoreOptimismSession) SetMinLiquidityRatio0(minLiquidityRatio *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.SetMinLiquidityRatio0(&_CoreOptimism.TransactOpts, minLiquidityRatio) -} - -// SetMinLiquidityRatio0 is a paid mutator transaction binding the contract method 0x34078a01. -// -// Solidity: function setMinLiquidityRatio(uint256 minLiquidityRatio) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) SetMinLiquidityRatio0(minLiquidityRatio *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.SetMinLiquidityRatio0(&_CoreOptimism.TransactOpts, minLiquidityRatio) -} - -// SetPoolCollateralConfiguration is a paid mutator transaction binding the contract method 0x5a4aabb1. -// -// Solidity: function setPoolCollateralConfiguration(uint128 poolId, address collateralType, (uint256,uint256) newConfig) returns() -func (_CoreOptimism *CoreOptimismTransactor) SetPoolCollateralConfiguration(opts *bind.TransactOpts, poolId *big.Int, collateralType common.Address, newConfig PoolCollateralConfigurationData) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "setPoolCollateralConfiguration", poolId, collateralType, newConfig) -} - -// SetPoolCollateralConfiguration is a paid mutator transaction binding the contract method 0x5a4aabb1. -// -// Solidity: function setPoolCollateralConfiguration(uint128 poolId, address collateralType, (uint256,uint256) newConfig) returns() -func (_CoreOptimism *CoreOptimismSession) SetPoolCollateralConfiguration(poolId *big.Int, collateralType common.Address, newConfig PoolCollateralConfigurationData) (*types.Transaction, error) { - return _CoreOptimism.Contract.SetPoolCollateralConfiguration(&_CoreOptimism.TransactOpts, poolId, collateralType, newConfig) -} - -// SetPoolCollateralConfiguration is a paid mutator transaction binding the contract method 0x5a4aabb1. -// -// Solidity: function setPoolCollateralConfiguration(uint128 poolId, address collateralType, (uint256,uint256) newConfig) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) SetPoolCollateralConfiguration(poolId *big.Int, collateralType common.Address, newConfig PoolCollateralConfigurationData) (*types.Transaction, error) { - return _CoreOptimism.Contract.SetPoolCollateralConfiguration(&_CoreOptimism.TransactOpts, poolId, collateralType, newConfig) -} - -// SetPoolCollateralDisabledByDefault is a paid mutator transaction binding the contract method 0x4c6568b1. -// -// Solidity: function setPoolCollateralDisabledByDefault(uint128 poolId, bool disabled) returns() -func (_CoreOptimism *CoreOptimismTransactor) SetPoolCollateralDisabledByDefault(opts *bind.TransactOpts, poolId *big.Int, disabled bool) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "setPoolCollateralDisabledByDefault", poolId, disabled) -} - -// SetPoolCollateralDisabledByDefault is a paid mutator transaction binding the contract method 0x4c6568b1. -// -// Solidity: function setPoolCollateralDisabledByDefault(uint128 poolId, bool disabled) returns() -func (_CoreOptimism *CoreOptimismSession) SetPoolCollateralDisabledByDefault(poolId *big.Int, disabled bool) (*types.Transaction, error) { - return _CoreOptimism.Contract.SetPoolCollateralDisabledByDefault(&_CoreOptimism.TransactOpts, poolId, disabled) -} - -// SetPoolCollateralDisabledByDefault is a paid mutator transaction binding the contract method 0x4c6568b1. -// -// Solidity: function setPoolCollateralDisabledByDefault(uint128 poolId, bool disabled) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) SetPoolCollateralDisabledByDefault(poolId *big.Int, disabled bool) (*types.Transaction, error) { - return _CoreOptimism.Contract.SetPoolCollateralDisabledByDefault(&_CoreOptimism.TransactOpts, poolId, disabled) -} - -// SetPoolConfiguration is a paid mutator transaction binding the contract method 0x5d8c8844. -// -// Solidity: function setPoolConfiguration(uint128 poolId, (uint128,uint128,int128)[] newMarketConfigurations) returns() -func (_CoreOptimism *CoreOptimismTransactor) SetPoolConfiguration(opts *bind.TransactOpts, poolId *big.Int, newMarketConfigurations []MarketConfigurationData) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "setPoolConfiguration", poolId, newMarketConfigurations) -} - -// SetPoolConfiguration is a paid mutator transaction binding the contract method 0x5d8c8844. -// -// Solidity: function setPoolConfiguration(uint128 poolId, (uint128,uint128,int128)[] newMarketConfigurations) returns() -func (_CoreOptimism *CoreOptimismSession) SetPoolConfiguration(poolId *big.Int, newMarketConfigurations []MarketConfigurationData) (*types.Transaction, error) { - return _CoreOptimism.Contract.SetPoolConfiguration(&_CoreOptimism.TransactOpts, poolId, newMarketConfigurations) -} - -// SetPoolConfiguration is a paid mutator transaction binding the contract method 0x5d8c8844. -// -// Solidity: function setPoolConfiguration(uint128 poolId, (uint128,uint128,int128)[] newMarketConfigurations) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) SetPoolConfiguration(poolId *big.Int, newMarketConfigurations []MarketConfigurationData) (*types.Transaction, error) { - return _CoreOptimism.Contract.SetPoolConfiguration(&_CoreOptimism.TransactOpts, poolId, newMarketConfigurations) -} - -// SetPoolName is a paid mutator transaction binding the contract method 0x11e72a43. -// -// Solidity: function setPoolName(uint128 poolId, string name) returns() -func (_CoreOptimism *CoreOptimismTransactor) SetPoolName(opts *bind.TransactOpts, poolId *big.Int, name string) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "setPoolName", poolId, name) -} - -// SetPoolName is a paid mutator transaction binding the contract method 0x11e72a43. -// -// Solidity: function setPoolName(uint128 poolId, string name) returns() -func (_CoreOptimism *CoreOptimismSession) SetPoolName(poolId *big.Int, name string) (*types.Transaction, error) { - return _CoreOptimism.Contract.SetPoolName(&_CoreOptimism.TransactOpts, poolId, name) -} - -// SetPoolName is a paid mutator transaction binding the contract method 0x11e72a43. -// -// Solidity: function setPoolName(uint128 poolId, string name) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) SetPoolName(poolId *big.Int, name string) (*types.Transaction, error) { - return _CoreOptimism.Contract.SetPoolName(&_CoreOptimism.TransactOpts, poolId, name) -} - -// SetPreferredPool is a paid mutator transaction binding the contract method 0xe7098c0c. -// -// Solidity: function setPreferredPool(uint128 poolId) returns() -func (_CoreOptimism *CoreOptimismTransactor) SetPreferredPool(opts *bind.TransactOpts, poolId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "setPreferredPool", poolId) -} - -// SetPreferredPool is a paid mutator transaction binding the contract method 0xe7098c0c. -// -// Solidity: function setPreferredPool(uint128 poolId) returns() -func (_CoreOptimism *CoreOptimismSession) SetPreferredPool(poolId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.SetPreferredPool(&_CoreOptimism.TransactOpts, poolId) -} - -// SetPreferredPool is a paid mutator transaction binding the contract method 0xe7098c0c. -// -// Solidity: function setPreferredPool(uint128 poolId) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) SetPreferredPool(poolId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.SetPreferredPool(&_CoreOptimism.TransactOpts, poolId) -} - -// SetSupportedCrossChainNetworks is a paid mutator transaction binding the contract method 0x830e23b5. -// -// Solidity: function setSupportedCrossChainNetworks(uint64[] supportedNetworks, uint64[] ccipSelectors) returns(uint256 numRegistered) -func (_CoreOptimism *CoreOptimismTransactor) SetSupportedCrossChainNetworks(opts *bind.TransactOpts, supportedNetworks []uint64, ccipSelectors []uint64) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "setSupportedCrossChainNetworks", supportedNetworks, ccipSelectors) -} - -// SetSupportedCrossChainNetworks is a paid mutator transaction binding the contract method 0x830e23b5. -// -// Solidity: function setSupportedCrossChainNetworks(uint64[] supportedNetworks, uint64[] ccipSelectors) returns(uint256 numRegistered) -func (_CoreOptimism *CoreOptimismSession) SetSupportedCrossChainNetworks(supportedNetworks []uint64, ccipSelectors []uint64) (*types.Transaction, error) { - return _CoreOptimism.Contract.SetSupportedCrossChainNetworks(&_CoreOptimism.TransactOpts, supportedNetworks, ccipSelectors) -} - -// SetSupportedCrossChainNetworks is a paid mutator transaction binding the contract method 0x830e23b5. -// -// Solidity: function setSupportedCrossChainNetworks(uint64[] supportedNetworks, uint64[] ccipSelectors) returns(uint256 numRegistered) -func (_CoreOptimism *CoreOptimismTransactorSession) SetSupportedCrossChainNetworks(supportedNetworks []uint64, ccipSelectors []uint64) (*types.Transaction, error) { - return _CoreOptimism.Contract.SetSupportedCrossChainNetworks(&_CoreOptimism.TransactOpts, supportedNetworks, ccipSelectors) -} - -// SimulateUpgradeTo is a paid mutator transaction binding the contract method 0xc7f62cda. -// -// Solidity: function simulateUpgradeTo(address newImplementation) returns() -func (_CoreOptimism *CoreOptimismTransactor) SimulateUpgradeTo(opts *bind.TransactOpts, newImplementation common.Address) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "simulateUpgradeTo", newImplementation) -} - -// SimulateUpgradeTo is a paid mutator transaction binding the contract method 0xc7f62cda. -// -// Solidity: function simulateUpgradeTo(address newImplementation) returns() -func (_CoreOptimism *CoreOptimismSession) SimulateUpgradeTo(newImplementation common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.SimulateUpgradeTo(&_CoreOptimism.TransactOpts, newImplementation) -} - -// SimulateUpgradeTo is a paid mutator transaction binding the contract method 0xc7f62cda. -// -// Solidity: function simulateUpgradeTo(address newImplementation) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) SimulateUpgradeTo(newImplementation common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.SimulateUpgradeTo(&_CoreOptimism.TransactOpts, newImplementation) -} - -// TransferCrossChain is a paid mutator transaction binding the contract method 0x340824d7. -// -// Solidity: function transferCrossChain(uint64 destChainId, uint256 amount) payable returns(uint256 gasTokenUsed) -func (_CoreOptimism *CoreOptimismTransactor) TransferCrossChain(opts *bind.TransactOpts, destChainId uint64, amount *big.Int) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "transferCrossChain", destChainId, amount) -} - -// TransferCrossChain is a paid mutator transaction binding the contract method 0x340824d7. -// -// Solidity: function transferCrossChain(uint64 destChainId, uint256 amount) payable returns(uint256 gasTokenUsed) -func (_CoreOptimism *CoreOptimismSession) TransferCrossChain(destChainId uint64, amount *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.TransferCrossChain(&_CoreOptimism.TransactOpts, destChainId, amount) -} - -// TransferCrossChain is a paid mutator transaction binding the contract method 0x340824d7. -// -// Solidity: function transferCrossChain(uint64 destChainId, uint256 amount) payable returns(uint256 gasTokenUsed) -func (_CoreOptimism *CoreOptimismTransactorSession) TransferCrossChain(destChainId uint64, amount *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.TransferCrossChain(&_CoreOptimism.TransactOpts, destChainId, amount) -} - -// UpdateRewards is a paid mutator transaction binding the contract method 0x645657d8. -// -// Solidity: function updateRewards(uint128 poolId, address collateralType, uint128 accountId) returns(uint256[], address[]) -func (_CoreOptimism *CoreOptimismTransactor) UpdateRewards(opts *bind.TransactOpts, poolId *big.Int, collateralType common.Address, accountId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "updateRewards", poolId, collateralType, accountId) -} - -// UpdateRewards is a paid mutator transaction binding the contract method 0x645657d8. -// -// Solidity: function updateRewards(uint128 poolId, address collateralType, uint128 accountId) returns(uint256[], address[]) -func (_CoreOptimism *CoreOptimismSession) UpdateRewards(poolId *big.Int, collateralType common.Address, accountId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.UpdateRewards(&_CoreOptimism.TransactOpts, poolId, collateralType, accountId) -} - -// UpdateRewards is a paid mutator transaction binding the contract method 0x645657d8. -// -// Solidity: function updateRewards(uint128 poolId, address collateralType, uint128 accountId) returns(uint256[], address[]) -func (_CoreOptimism *CoreOptimismTransactorSession) UpdateRewards(poolId *big.Int, collateralType common.Address, accountId *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.UpdateRewards(&_CoreOptimism.TransactOpts, poolId, collateralType, accountId) -} - -// UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6. -// -// Solidity: function upgradeTo(address newImplementation) returns() -func (_CoreOptimism *CoreOptimismTransactor) UpgradeTo(opts *bind.TransactOpts, newImplementation common.Address) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "upgradeTo", newImplementation) -} - -// UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6. -// -// Solidity: function upgradeTo(address newImplementation) returns() -func (_CoreOptimism *CoreOptimismSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.UpgradeTo(&_CoreOptimism.TransactOpts, newImplementation) -} - -// UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6. -// -// Solidity: function upgradeTo(address newImplementation) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error) { - return _CoreOptimism.Contract.UpgradeTo(&_CoreOptimism.TransactOpts, newImplementation) -} - -// Withdraw is a paid mutator transaction binding the contract method 0x95997c51. -// -// Solidity: function withdraw(uint128 accountId, address collateralType, uint256 tokenAmount) returns() -func (_CoreOptimism *CoreOptimismTransactor) Withdraw(opts *bind.TransactOpts, accountId *big.Int, collateralType common.Address, tokenAmount *big.Int) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "withdraw", accountId, collateralType, tokenAmount) -} - -// Withdraw is a paid mutator transaction binding the contract method 0x95997c51. -// -// Solidity: function withdraw(uint128 accountId, address collateralType, uint256 tokenAmount) returns() -func (_CoreOptimism *CoreOptimismSession) Withdraw(accountId *big.Int, collateralType common.Address, tokenAmount *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.Withdraw(&_CoreOptimism.TransactOpts, accountId, collateralType, tokenAmount) -} - -// Withdraw is a paid mutator transaction binding the contract method 0x95997c51. -// -// Solidity: function withdraw(uint128 accountId, address collateralType, uint256 tokenAmount) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) Withdraw(accountId *big.Int, collateralType common.Address, tokenAmount *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.Withdraw(&_CoreOptimism.TransactOpts, accountId, collateralType, tokenAmount) -} - -// WithdrawMarketCollateral is a paid mutator transaction binding the contract method 0xa3aa8b51. -// -// Solidity: function withdrawMarketCollateral(uint128 marketId, address collateralType, uint256 tokenAmount) returns() -func (_CoreOptimism *CoreOptimismTransactor) WithdrawMarketCollateral(opts *bind.TransactOpts, marketId *big.Int, collateralType common.Address, tokenAmount *big.Int) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "withdrawMarketCollateral", marketId, collateralType, tokenAmount) -} - -// WithdrawMarketCollateral is a paid mutator transaction binding the contract method 0xa3aa8b51. -// -// Solidity: function withdrawMarketCollateral(uint128 marketId, address collateralType, uint256 tokenAmount) returns() -func (_CoreOptimism *CoreOptimismSession) WithdrawMarketCollateral(marketId *big.Int, collateralType common.Address, tokenAmount *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.WithdrawMarketCollateral(&_CoreOptimism.TransactOpts, marketId, collateralType, tokenAmount) -} - -// WithdrawMarketCollateral is a paid mutator transaction binding the contract method 0xa3aa8b51. -// -// Solidity: function withdrawMarketCollateral(uint128 marketId, address collateralType, uint256 tokenAmount) returns() -func (_CoreOptimism *CoreOptimismTransactorSession) WithdrawMarketCollateral(marketId *big.Int, collateralType common.Address, tokenAmount *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.WithdrawMarketCollateral(&_CoreOptimism.TransactOpts, marketId, collateralType, tokenAmount) -} - -// WithdrawMarketUsd is a paid mutator transaction binding the contract method 0x140a7cfe. -// -// Solidity: function withdrawMarketUsd(uint128 marketId, address target, uint256 amount) returns(uint256 feeAmount) -func (_CoreOptimism *CoreOptimismTransactor) WithdrawMarketUsd(opts *bind.TransactOpts, marketId *big.Int, target common.Address, amount *big.Int) (*types.Transaction, error) { - return _CoreOptimism.contract.Transact(opts, "withdrawMarketUsd", marketId, target, amount) -} - -// WithdrawMarketUsd is a paid mutator transaction binding the contract method 0x140a7cfe. -// -// Solidity: function withdrawMarketUsd(uint128 marketId, address target, uint256 amount) returns(uint256 feeAmount) -func (_CoreOptimism *CoreOptimismSession) WithdrawMarketUsd(marketId *big.Int, target common.Address, amount *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.WithdrawMarketUsd(&_CoreOptimism.TransactOpts, marketId, target, amount) -} - -// WithdrawMarketUsd is a paid mutator transaction binding the contract method 0x140a7cfe. -// -// Solidity: function withdrawMarketUsd(uint128 marketId, address target, uint256 amount) returns(uint256 feeAmount) -func (_CoreOptimism *CoreOptimismTransactorSession) WithdrawMarketUsd(marketId *big.Int, target common.Address, amount *big.Int) (*types.Transaction, error) { - return _CoreOptimism.Contract.WithdrawMarketUsd(&_CoreOptimism.TransactOpts, marketId, target, amount) -} - -// CoreOptimismAccountCreatedIterator is returned from FilterAccountCreated and is used to iterate over the raw logs and unpacked data for AccountCreated events raised by the CoreOptimism contract. -type CoreOptimismAccountCreatedIterator struct { - Event *CoreOptimismAccountCreated // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismAccountCreatedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismAccountCreated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismAccountCreated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismAccountCreatedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismAccountCreatedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismAccountCreated represents a AccountCreated event raised by the CoreOptimism contract. -type CoreOptimismAccountCreated struct { - AccountId *big.Int - Owner common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterAccountCreated is a free log retrieval operation binding the contract event 0xa9e04d307e860938fa63307df8b8090e365276e59fcca12ed55656c25e538019. -// -// Solidity: event AccountCreated(uint128 indexed accountId, address indexed owner) -func (_CoreOptimism *CoreOptimismFilterer) FilterAccountCreated(opts *bind.FilterOpts, accountId []*big.Int, owner []common.Address) (*CoreOptimismAccountCreatedIterator, error) { - - var accountIdRule []interface{} - for _, accountIdItem := range accountId { - accountIdRule = append(accountIdRule, accountIdItem) - } - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "AccountCreated", accountIdRule, ownerRule) - if err != nil { - return nil, err - } - return &CoreOptimismAccountCreatedIterator{contract: _CoreOptimism.contract, event: "AccountCreated", logs: logs, sub: sub}, nil -} - -// WatchAccountCreated is a free log subscription operation binding the contract event 0xa9e04d307e860938fa63307df8b8090e365276e59fcca12ed55656c25e538019. -// -// Solidity: event AccountCreated(uint128 indexed accountId, address indexed owner) -func (_CoreOptimism *CoreOptimismFilterer) WatchAccountCreated(opts *bind.WatchOpts, sink chan<- *CoreOptimismAccountCreated, accountId []*big.Int, owner []common.Address) (event.Subscription, error) { - - var accountIdRule []interface{} - for _, accountIdItem := range accountId { - accountIdRule = append(accountIdRule, accountIdItem) - } - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "AccountCreated", accountIdRule, ownerRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismAccountCreated) - if err := _CoreOptimism.contract.UnpackLog(event, "AccountCreated", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseAccountCreated is a log parse operation binding the contract event 0xa9e04d307e860938fa63307df8b8090e365276e59fcca12ed55656c25e538019. -// -// Solidity: event AccountCreated(uint128 indexed accountId, address indexed owner) -func (_CoreOptimism *CoreOptimismFilterer) ParseAccountCreated(log types.Log) (*CoreOptimismAccountCreated, error) { - event := new(CoreOptimismAccountCreated) - if err := _CoreOptimism.contract.UnpackLog(event, "AccountCreated", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismAssociatedSystemSetIterator is returned from FilterAssociatedSystemSet and is used to iterate over the raw logs and unpacked data for AssociatedSystemSet events raised by the CoreOptimism contract. -type CoreOptimismAssociatedSystemSetIterator struct { - Event *CoreOptimismAssociatedSystemSet // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismAssociatedSystemSetIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismAssociatedSystemSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismAssociatedSystemSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismAssociatedSystemSetIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismAssociatedSystemSetIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismAssociatedSystemSet represents a AssociatedSystemSet event raised by the CoreOptimism contract. -type CoreOptimismAssociatedSystemSet struct { - Kind [32]byte - Id [32]byte - Proxy common.Address - Impl common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterAssociatedSystemSet is a free log retrieval operation binding the contract event 0xc8551a5a03a7b06d5d20159b3b8839429a7aefab4bf3d020f1b65fa903ccb3d2. -// -// Solidity: event AssociatedSystemSet(bytes32 indexed kind, bytes32 indexed id, address proxy, address impl) -func (_CoreOptimism *CoreOptimismFilterer) FilterAssociatedSystemSet(opts *bind.FilterOpts, kind [][32]byte, id [][32]byte) (*CoreOptimismAssociatedSystemSetIterator, error) { - - var kindRule []interface{} - for _, kindItem := range kind { - kindRule = append(kindRule, kindItem) - } - var idRule []interface{} - for _, idItem := range id { - idRule = append(idRule, idItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "AssociatedSystemSet", kindRule, idRule) - if err != nil { - return nil, err - } - return &CoreOptimismAssociatedSystemSetIterator{contract: _CoreOptimism.contract, event: "AssociatedSystemSet", logs: logs, sub: sub}, nil -} - -// WatchAssociatedSystemSet is a free log subscription operation binding the contract event 0xc8551a5a03a7b06d5d20159b3b8839429a7aefab4bf3d020f1b65fa903ccb3d2. -// -// Solidity: event AssociatedSystemSet(bytes32 indexed kind, bytes32 indexed id, address proxy, address impl) -func (_CoreOptimism *CoreOptimismFilterer) WatchAssociatedSystemSet(opts *bind.WatchOpts, sink chan<- *CoreOptimismAssociatedSystemSet, kind [][32]byte, id [][32]byte) (event.Subscription, error) { - - var kindRule []interface{} - for _, kindItem := range kind { - kindRule = append(kindRule, kindItem) - } - var idRule []interface{} - for _, idItem := range id { - idRule = append(idRule, idItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "AssociatedSystemSet", kindRule, idRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismAssociatedSystemSet) - if err := _CoreOptimism.contract.UnpackLog(event, "AssociatedSystemSet", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseAssociatedSystemSet is a log parse operation binding the contract event 0xc8551a5a03a7b06d5d20159b3b8839429a7aefab4bf3d020f1b65fa903ccb3d2. -// -// Solidity: event AssociatedSystemSet(bytes32 indexed kind, bytes32 indexed id, address proxy, address impl) -func (_CoreOptimism *CoreOptimismFilterer) ParseAssociatedSystemSet(log types.Log) (*CoreOptimismAssociatedSystemSet, error) { - event := new(CoreOptimismAssociatedSystemSet) - if err := _CoreOptimism.contract.UnpackLog(event, "AssociatedSystemSet", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismCollateralConfiguredIterator is returned from FilterCollateralConfigured and is used to iterate over the raw logs and unpacked data for CollateralConfigured events raised by the CoreOptimism contract. -type CoreOptimismCollateralConfiguredIterator struct { - Event *CoreOptimismCollateralConfigured // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismCollateralConfiguredIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismCollateralConfigured) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismCollateralConfigured) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismCollateralConfiguredIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismCollateralConfiguredIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismCollateralConfigured represents a CollateralConfigured event raised by the CoreOptimism contract. -type CoreOptimismCollateralConfigured struct { - CollateralType common.Address - Config CollateralConfigurationData - Raw types.Log // Blockchain specific contextual infos -} - -// FilterCollateralConfigured is a free log retrieval operation binding the contract event 0xefc23317f58afd6b22480bd22174cc7da0913bce25c03d9859216dacddebe6fe. -// -// Solidity: event CollateralConfigured(address indexed collateralType, (bool,uint256,uint256,uint256,bytes32,address,uint256) config) -func (_CoreOptimism *CoreOptimismFilterer) FilterCollateralConfigured(opts *bind.FilterOpts, collateralType []common.Address) (*CoreOptimismCollateralConfiguredIterator, error) { - - var collateralTypeRule []interface{} - for _, collateralTypeItem := range collateralType { - collateralTypeRule = append(collateralTypeRule, collateralTypeItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "CollateralConfigured", collateralTypeRule) - if err != nil { - return nil, err - } - return &CoreOptimismCollateralConfiguredIterator{contract: _CoreOptimism.contract, event: "CollateralConfigured", logs: logs, sub: sub}, nil -} - -// WatchCollateralConfigured is a free log subscription operation binding the contract event 0xefc23317f58afd6b22480bd22174cc7da0913bce25c03d9859216dacddebe6fe. -// -// Solidity: event CollateralConfigured(address indexed collateralType, (bool,uint256,uint256,uint256,bytes32,address,uint256) config) -func (_CoreOptimism *CoreOptimismFilterer) WatchCollateralConfigured(opts *bind.WatchOpts, sink chan<- *CoreOptimismCollateralConfigured, collateralType []common.Address) (event.Subscription, error) { - - var collateralTypeRule []interface{} - for _, collateralTypeItem := range collateralType { - collateralTypeRule = append(collateralTypeRule, collateralTypeItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "CollateralConfigured", collateralTypeRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismCollateralConfigured) - if err := _CoreOptimism.contract.UnpackLog(event, "CollateralConfigured", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseCollateralConfigured is a log parse operation binding the contract event 0xefc23317f58afd6b22480bd22174cc7da0913bce25c03d9859216dacddebe6fe. -// -// Solidity: event CollateralConfigured(address indexed collateralType, (bool,uint256,uint256,uint256,bytes32,address,uint256) config) -func (_CoreOptimism *CoreOptimismFilterer) ParseCollateralConfigured(log types.Log) (*CoreOptimismCollateralConfigured, error) { - event := new(CoreOptimismCollateralConfigured) - if err := _CoreOptimism.contract.UnpackLog(event, "CollateralConfigured", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismCollateralLockCreatedIterator is returned from FilterCollateralLockCreated and is used to iterate over the raw logs and unpacked data for CollateralLockCreated events raised by the CoreOptimism contract. -type CoreOptimismCollateralLockCreatedIterator struct { - Event *CoreOptimismCollateralLockCreated // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismCollateralLockCreatedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismCollateralLockCreated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismCollateralLockCreated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismCollateralLockCreatedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismCollateralLockCreatedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismCollateralLockCreated represents a CollateralLockCreated event raised by the CoreOptimism contract. -type CoreOptimismCollateralLockCreated struct { - AccountId *big.Int - CollateralType common.Address - TokenAmount *big.Int - ExpireTimestamp uint64 - Raw types.Log // Blockchain specific contextual infos -} - -// FilterCollateralLockCreated is a free log retrieval operation binding the contract event 0x8a78446a234220d3ee3f46aa6ea1ea5bc438bd153398ebcbd171843744b452a6. -// -// Solidity: event CollateralLockCreated(uint128 indexed accountId, address indexed collateralType, uint256 tokenAmount, uint64 expireTimestamp) -func (_CoreOptimism *CoreOptimismFilterer) FilterCollateralLockCreated(opts *bind.FilterOpts, accountId []*big.Int, collateralType []common.Address) (*CoreOptimismCollateralLockCreatedIterator, error) { - - var accountIdRule []interface{} - for _, accountIdItem := range accountId { - accountIdRule = append(accountIdRule, accountIdItem) - } - var collateralTypeRule []interface{} - for _, collateralTypeItem := range collateralType { - collateralTypeRule = append(collateralTypeRule, collateralTypeItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "CollateralLockCreated", accountIdRule, collateralTypeRule) - if err != nil { - return nil, err - } - return &CoreOptimismCollateralLockCreatedIterator{contract: _CoreOptimism.contract, event: "CollateralLockCreated", logs: logs, sub: sub}, nil -} - -// WatchCollateralLockCreated is a free log subscription operation binding the contract event 0x8a78446a234220d3ee3f46aa6ea1ea5bc438bd153398ebcbd171843744b452a6. -// -// Solidity: event CollateralLockCreated(uint128 indexed accountId, address indexed collateralType, uint256 tokenAmount, uint64 expireTimestamp) -func (_CoreOptimism *CoreOptimismFilterer) WatchCollateralLockCreated(opts *bind.WatchOpts, sink chan<- *CoreOptimismCollateralLockCreated, accountId []*big.Int, collateralType []common.Address) (event.Subscription, error) { - - var accountIdRule []interface{} - for _, accountIdItem := range accountId { - accountIdRule = append(accountIdRule, accountIdItem) - } - var collateralTypeRule []interface{} - for _, collateralTypeItem := range collateralType { - collateralTypeRule = append(collateralTypeRule, collateralTypeItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "CollateralLockCreated", accountIdRule, collateralTypeRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismCollateralLockCreated) - if err := _CoreOptimism.contract.UnpackLog(event, "CollateralLockCreated", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseCollateralLockCreated is a log parse operation binding the contract event 0x8a78446a234220d3ee3f46aa6ea1ea5bc438bd153398ebcbd171843744b452a6. -// -// Solidity: event CollateralLockCreated(uint128 indexed accountId, address indexed collateralType, uint256 tokenAmount, uint64 expireTimestamp) -func (_CoreOptimism *CoreOptimismFilterer) ParseCollateralLockCreated(log types.Log) (*CoreOptimismCollateralLockCreated, error) { - event := new(CoreOptimismCollateralLockCreated) - if err := _CoreOptimism.contract.UnpackLog(event, "CollateralLockCreated", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismCollateralLockExpiredIterator is returned from FilterCollateralLockExpired and is used to iterate over the raw logs and unpacked data for CollateralLockExpired events raised by the CoreOptimism contract. -type CoreOptimismCollateralLockExpiredIterator struct { - Event *CoreOptimismCollateralLockExpired // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismCollateralLockExpiredIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismCollateralLockExpired) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismCollateralLockExpired) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismCollateralLockExpiredIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismCollateralLockExpiredIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismCollateralLockExpired represents a CollateralLockExpired event raised by the CoreOptimism contract. -type CoreOptimismCollateralLockExpired struct { - AccountId *big.Int - CollateralType common.Address - TokenAmount *big.Int - ExpireTimestamp uint64 - Raw types.Log // Blockchain specific contextual infos -} - -// FilterCollateralLockExpired is a free log retrieval operation binding the contract event 0xc5e2c7afc4e54d998977e11260a0bfc0ad5678a3a8b6628162f9d4e642d7f160. -// -// Solidity: event CollateralLockExpired(uint128 indexed accountId, address indexed collateralType, uint256 tokenAmount, uint64 expireTimestamp) -func (_CoreOptimism *CoreOptimismFilterer) FilterCollateralLockExpired(opts *bind.FilterOpts, accountId []*big.Int, collateralType []common.Address) (*CoreOptimismCollateralLockExpiredIterator, error) { - - var accountIdRule []interface{} - for _, accountIdItem := range accountId { - accountIdRule = append(accountIdRule, accountIdItem) - } - var collateralTypeRule []interface{} - for _, collateralTypeItem := range collateralType { - collateralTypeRule = append(collateralTypeRule, collateralTypeItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "CollateralLockExpired", accountIdRule, collateralTypeRule) - if err != nil { - return nil, err - } - return &CoreOptimismCollateralLockExpiredIterator{contract: _CoreOptimism.contract, event: "CollateralLockExpired", logs: logs, sub: sub}, nil -} - -// WatchCollateralLockExpired is a free log subscription operation binding the contract event 0xc5e2c7afc4e54d998977e11260a0bfc0ad5678a3a8b6628162f9d4e642d7f160. -// -// Solidity: event CollateralLockExpired(uint128 indexed accountId, address indexed collateralType, uint256 tokenAmount, uint64 expireTimestamp) -func (_CoreOptimism *CoreOptimismFilterer) WatchCollateralLockExpired(opts *bind.WatchOpts, sink chan<- *CoreOptimismCollateralLockExpired, accountId []*big.Int, collateralType []common.Address) (event.Subscription, error) { - - var accountIdRule []interface{} - for _, accountIdItem := range accountId { - accountIdRule = append(accountIdRule, accountIdItem) - } - var collateralTypeRule []interface{} - for _, collateralTypeItem := range collateralType { - collateralTypeRule = append(collateralTypeRule, collateralTypeItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "CollateralLockExpired", accountIdRule, collateralTypeRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismCollateralLockExpired) - if err := _CoreOptimism.contract.UnpackLog(event, "CollateralLockExpired", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseCollateralLockExpired is a log parse operation binding the contract event 0xc5e2c7afc4e54d998977e11260a0bfc0ad5678a3a8b6628162f9d4e642d7f160. -// -// Solidity: event CollateralLockExpired(uint128 indexed accountId, address indexed collateralType, uint256 tokenAmount, uint64 expireTimestamp) -func (_CoreOptimism *CoreOptimismFilterer) ParseCollateralLockExpired(log types.Log) (*CoreOptimismCollateralLockExpired, error) { - event := new(CoreOptimismCollateralLockExpired) - if err := _CoreOptimism.contract.UnpackLog(event, "CollateralLockExpired", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismDebtAssociatedIterator is returned from FilterDebtAssociated and is used to iterate over the raw logs and unpacked data for DebtAssociated events raised by the CoreOptimism contract. -type CoreOptimismDebtAssociatedIterator struct { - Event *CoreOptimismDebtAssociated // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismDebtAssociatedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismDebtAssociated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismDebtAssociated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismDebtAssociatedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismDebtAssociatedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismDebtAssociated represents a DebtAssociated event raised by the CoreOptimism contract. -type CoreOptimismDebtAssociated struct { - MarketId *big.Int - PoolId *big.Int - CollateralType common.Address - AccountId *big.Int - Amount *big.Int - UpdatedDebt *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterDebtAssociated is a free log retrieval operation binding the contract event 0xb03bc7530b5650601d2c8bc86c81a45b6b50b0099defd3f17a6bdb48660180ad. -// -// Solidity: event DebtAssociated(uint128 indexed marketId, uint128 indexed poolId, address indexed collateralType, uint128 accountId, uint256 amount, int256 updatedDebt) -func (_CoreOptimism *CoreOptimismFilterer) FilterDebtAssociated(opts *bind.FilterOpts, marketId []*big.Int, poolId []*big.Int, collateralType []common.Address) (*CoreOptimismDebtAssociatedIterator, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - var poolIdRule []interface{} - for _, poolIdItem := range poolId { - poolIdRule = append(poolIdRule, poolIdItem) - } - var collateralTypeRule []interface{} - for _, collateralTypeItem := range collateralType { - collateralTypeRule = append(collateralTypeRule, collateralTypeItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "DebtAssociated", marketIdRule, poolIdRule, collateralTypeRule) - if err != nil { - return nil, err - } - return &CoreOptimismDebtAssociatedIterator{contract: _CoreOptimism.contract, event: "DebtAssociated", logs: logs, sub: sub}, nil -} - -// WatchDebtAssociated is a free log subscription operation binding the contract event 0xb03bc7530b5650601d2c8bc86c81a45b6b50b0099defd3f17a6bdb48660180ad. -// -// Solidity: event DebtAssociated(uint128 indexed marketId, uint128 indexed poolId, address indexed collateralType, uint128 accountId, uint256 amount, int256 updatedDebt) -func (_CoreOptimism *CoreOptimismFilterer) WatchDebtAssociated(opts *bind.WatchOpts, sink chan<- *CoreOptimismDebtAssociated, marketId []*big.Int, poolId []*big.Int, collateralType []common.Address) (event.Subscription, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - var poolIdRule []interface{} - for _, poolIdItem := range poolId { - poolIdRule = append(poolIdRule, poolIdItem) - } - var collateralTypeRule []interface{} - for _, collateralTypeItem := range collateralType { - collateralTypeRule = append(collateralTypeRule, collateralTypeItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "DebtAssociated", marketIdRule, poolIdRule, collateralTypeRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismDebtAssociated) - if err := _CoreOptimism.contract.UnpackLog(event, "DebtAssociated", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseDebtAssociated is a log parse operation binding the contract event 0xb03bc7530b5650601d2c8bc86c81a45b6b50b0099defd3f17a6bdb48660180ad. -// -// Solidity: event DebtAssociated(uint128 indexed marketId, uint128 indexed poolId, address indexed collateralType, uint128 accountId, uint256 amount, int256 updatedDebt) -func (_CoreOptimism *CoreOptimismFilterer) ParseDebtAssociated(log types.Log) (*CoreOptimismDebtAssociated, error) { - event := new(CoreOptimismDebtAssociated) - if err := _CoreOptimism.contract.UnpackLog(event, "DebtAssociated", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismDelegationUpdatedIterator is returned from FilterDelegationUpdated and is used to iterate over the raw logs and unpacked data for DelegationUpdated events raised by the CoreOptimism contract. -type CoreOptimismDelegationUpdatedIterator struct { - Event *CoreOptimismDelegationUpdated // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismDelegationUpdatedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismDelegationUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismDelegationUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismDelegationUpdatedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismDelegationUpdatedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismDelegationUpdated represents a DelegationUpdated event raised by the CoreOptimism contract. -type CoreOptimismDelegationUpdated struct { - AccountId *big.Int - PoolId *big.Int - CollateralType common.Address - Amount *big.Int - Leverage *big.Int - Sender common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterDelegationUpdated is a free log retrieval operation binding the contract event 0x7b12dd38f18c0ff77ae702f6da13fbbcb28f53f807ecc7d39ee8d8b1ea8295ad. -// -// Solidity: event DelegationUpdated(uint128 indexed accountId, uint128 indexed poolId, address collateralType, uint256 amount, uint256 leverage, address indexed sender) -func (_CoreOptimism *CoreOptimismFilterer) FilterDelegationUpdated(opts *bind.FilterOpts, accountId []*big.Int, poolId []*big.Int, sender []common.Address) (*CoreOptimismDelegationUpdatedIterator, error) { - - var accountIdRule []interface{} - for _, accountIdItem := range accountId { - accountIdRule = append(accountIdRule, accountIdItem) - } - var poolIdRule []interface{} - for _, poolIdItem := range poolId { - poolIdRule = append(poolIdRule, poolIdItem) - } - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "DelegationUpdated", accountIdRule, poolIdRule, senderRule) - if err != nil { - return nil, err - } - return &CoreOptimismDelegationUpdatedIterator{contract: _CoreOptimism.contract, event: "DelegationUpdated", logs: logs, sub: sub}, nil -} - -// WatchDelegationUpdated is a free log subscription operation binding the contract event 0x7b12dd38f18c0ff77ae702f6da13fbbcb28f53f807ecc7d39ee8d8b1ea8295ad. -// -// Solidity: event DelegationUpdated(uint128 indexed accountId, uint128 indexed poolId, address collateralType, uint256 amount, uint256 leverage, address indexed sender) -func (_CoreOptimism *CoreOptimismFilterer) WatchDelegationUpdated(opts *bind.WatchOpts, sink chan<- *CoreOptimismDelegationUpdated, accountId []*big.Int, poolId []*big.Int, sender []common.Address) (event.Subscription, error) { - - var accountIdRule []interface{} - for _, accountIdItem := range accountId { - accountIdRule = append(accountIdRule, accountIdItem) - } - var poolIdRule []interface{} - for _, poolIdItem := range poolId { - poolIdRule = append(poolIdRule, poolIdItem) - } - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "DelegationUpdated", accountIdRule, poolIdRule, senderRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismDelegationUpdated) - if err := _CoreOptimism.contract.UnpackLog(event, "DelegationUpdated", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseDelegationUpdated is a log parse operation binding the contract event 0x7b12dd38f18c0ff77ae702f6da13fbbcb28f53f807ecc7d39ee8d8b1ea8295ad. -// -// Solidity: event DelegationUpdated(uint128 indexed accountId, uint128 indexed poolId, address collateralType, uint256 amount, uint256 leverage, address indexed sender) -func (_CoreOptimism *CoreOptimismFilterer) ParseDelegationUpdated(log types.Log) (*CoreOptimismDelegationUpdated, error) { - event := new(CoreOptimismDelegationUpdated) - if err := _CoreOptimism.contract.UnpackLog(event, "DelegationUpdated", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismDepositedIterator is returned from FilterDeposited and is used to iterate over the raw logs and unpacked data for Deposited events raised by the CoreOptimism contract. -type CoreOptimismDepositedIterator struct { - Event *CoreOptimismDeposited // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismDepositedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismDeposited) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismDeposited) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismDepositedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismDepositedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismDeposited represents a Deposited event raised by the CoreOptimism contract. -type CoreOptimismDeposited struct { - AccountId *big.Int - CollateralType common.Address - TokenAmount *big.Int - Sender common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterDeposited is a free log retrieval operation binding the contract event 0xd92122e67326e9313bfae33ccb1fccf5194584c6bf93a8529a6b006d8c6e24a9. -// -// Solidity: event Deposited(uint128 indexed accountId, address indexed collateralType, uint256 tokenAmount, address indexed sender) -func (_CoreOptimism *CoreOptimismFilterer) FilterDeposited(opts *bind.FilterOpts, accountId []*big.Int, collateralType []common.Address, sender []common.Address) (*CoreOptimismDepositedIterator, error) { - - var accountIdRule []interface{} - for _, accountIdItem := range accountId { - accountIdRule = append(accountIdRule, accountIdItem) - } - var collateralTypeRule []interface{} - for _, collateralTypeItem := range collateralType { - collateralTypeRule = append(collateralTypeRule, collateralTypeItem) - } - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "Deposited", accountIdRule, collateralTypeRule, senderRule) - if err != nil { - return nil, err - } - return &CoreOptimismDepositedIterator{contract: _CoreOptimism.contract, event: "Deposited", logs: logs, sub: sub}, nil -} - -// WatchDeposited is a free log subscription operation binding the contract event 0xd92122e67326e9313bfae33ccb1fccf5194584c6bf93a8529a6b006d8c6e24a9. -// -// Solidity: event Deposited(uint128 indexed accountId, address indexed collateralType, uint256 tokenAmount, address indexed sender) -func (_CoreOptimism *CoreOptimismFilterer) WatchDeposited(opts *bind.WatchOpts, sink chan<- *CoreOptimismDeposited, accountId []*big.Int, collateralType []common.Address, sender []common.Address) (event.Subscription, error) { - - var accountIdRule []interface{} - for _, accountIdItem := range accountId { - accountIdRule = append(accountIdRule, accountIdItem) - } - var collateralTypeRule []interface{} - for _, collateralTypeItem := range collateralType { - collateralTypeRule = append(collateralTypeRule, collateralTypeItem) - } - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "Deposited", accountIdRule, collateralTypeRule, senderRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismDeposited) - if err := _CoreOptimism.contract.UnpackLog(event, "Deposited", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseDeposited is a log parse operation binding the contract event 0xd92122e67326e9313bfae33ccb1fccf5194584c6bf93a8529a6b006d8c6e24a9. -// -// Solidity: event Deposited(uint128 indexed accountId, address indexed collateralType, uint256 tokenAmount, address indexed sender) -func (_CoreOptimism *CoreOptimismFilterer) ParseDeposited(log types.Log) (*CoreOptimismDeposited, error) { - event := new(CoreOptimismDeposited) - if err := _CoreOptimism.contract.UnpackLog(event, "Deposited", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismFeatureFlagAllowAllSetIterator is returned from FilterFeatureFlagAllowAllSet and is used to iterate over the raw logs and unpacked data for FeatureFlagAllowAllSet events raised by the CoreOptimism contract. -type CoreOptimismFeatureFlagAllowAllSetIterator struct { - Event *CoreOptimismFeatureFlagAllowAllSet // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismFeatureFlagAllowAllSetIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismFeatureFlagAllowAllSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismFeatureFlagAllowAllSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismFeatureFlagAllowAllSetIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismFeatureFlagAllowAllSetIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismFeatureFlagAllowAllSet represents a FeatureFlagAllowAllSet event raised by the CoreOptimism contract. -type CoreOptimismFeatureFlagAllowAllSet struct { - Feature [32]byte - AllowAll bool - Raw types.Log // Blockchain specific contextual infos -} - -// FilterFeatureFlagAllowAllSet is a free log retrieval operation binding the contract event 0xa806035d8c8de7cd43725250d3fbf9ee7abe3b99ffb892897913d8a21721121d. -// -// Solidity: event FeatureFlagAllowAllSet(bytes32 indexed feature, bool allowAll) -func (_CoreOptimism *CoreOptimismFilterer) FilterFeatureFlagAllowAllSet(opts *bind.FilterOpts, feature [][32]byte) (*CoreOptimismFeatureFlagAllowAllSetIterator, error) { - - var featureRule []interface{} - for _, featureItem := range feature { - featureRule = append(featureRule, featureItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "FeatureFlagAllowAllSet", featureRule) - if err != nil { - return nil, err - } - return &CoreOptimismFeatureFlagAllowAllSetIterator{contract: _CoreOptimism.contract, event: "FeatureFlagAllowAllSet", logs: logs, sub: sub}, nil -} - -// WatchFeatureFlagAllowAllSet is a free log subscription operation binding the contract event 0xa806035d8c8de7cd43725250d3fbf9ee7abe3b99ffb892897913d8a21721121d. -// -// Solidity: event FeatureFlagAllowAllSet(bytes32 indexed feature, bool allowAll) -func (_CoreOptimism *CoreOptimismFilterer) WatchFeatureFlagAllowAllSet(opts *bind.WatchOpts, sink chan<- *CoreOptimismFeatureFlagAllowAllSet, feature [][32]byte) (event.Subscription, error) { - - var featureRule []interface{} - for _, featureItem := range feature { - featureRule = append(featureRule, featureItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "FeatureFlagAllowAllSet", featureRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismFeatureFlagAllowAllSet) - if err := _CoreOptimism.contract.UnpackLog(event, "FeatureFlagAllowAllSet", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseFeatureFlagAllowAllSet is a log parse operation binding the contract event 0xa806035d8c8de7cd43725250d3fbf9ee7abe3b99ffb892897913d8a21721121d. -// -// Solidity: event FeatureFlagAllowAllSet(bytes32 indexed feature, bool allowAll) -func (_CoreOptimism *CoreOptimismFilterer) ParseFeatureFlagAllowAllSet(log types.Log) (*CoreOptimismFeatureFlagAllowAllSet, error) { - event := new(CoreOptimismFeatureFlagAllowAllSet) - if err := _CoreOptimism.contract.UnpackLog(event, "FeatureFlagAllowAllSet", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismFeatureFlagAllowlistAddedIterator is returned from FilterFeatureFlagAllowlistAdded and is used to iterate over the raw logs and unpacked data for FeatureFlagAllowlistAdded events raised by the CoreOptimism contract. -type CoreOptimismFeatureFlagAllowlistAddedIterator struct { - Event *CoreOptimismFeatureFlagAllowlistAdded // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismFeatureFlagAllowlistAddedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismFeatureFlagAllowlistAdded) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismFeatureFlagAllowlistAdded) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismFeatureFlagAllowlistAddedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismFeatureFlagAllowlistAddedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismFeatureFlagAllowlistAdded represents a FeatureFlagAllowlistAdded event raised by the CoreOptimism contract. -type CoreOptimismFeatureFlagAllowlistAdded struct { - Feature [32]byte - Account common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterFeatureFlagAllowlistAdded is a free log retrieval operation binding the contract event 0x30b9b4104e2fb00b4f980e414dcd828e691c8fcb286f0c73d7267c3a2de49383. -// -// Solidity: event FeatureFlagAllowlistAdded(bytes32 indexed feature, address account) -func (_CoreOptimism *CoreOptimismFilterer) FilterFeatureFlagAllowlistAdded(opts *bind.FilterOpts, feature [][32]byte) (*CoreOptimismFeatureFlagAllowlistAddedIterator, error) { - - var featureRule []interface{} - for _, featureItem := range feature { - featureRule = append(featureRule, featureItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "FeatureFlagAllowlistAdded", featureRule) - if err != nil { - return nil, err - } - return &CoreOptimismFeatureFlagAllowlistAddedIterator{contract: _CoreOptimism.contract, event: "FeatureFlagAllowlistAdded", logs: logs, sub: sub}, nil -} - -// WatchFeatureFlagAllowlistAdded is a free log subscription operation binding the contract event 0x30b9b4104e2fb00b4f980e414dcd828e691c8fcb286f0c73d7267c3a2de49383. -// -// Solidity: event FeatureFlagAllowlistAdded(bytes32 indexed feature, address account) -func (_CoreOptimism *CoreOptimismFilterer) WatchFeatureFlagAllowlistAdded(opts *bind.WatchOpts, sink chan<- *CoreOptimismFeatureFlagAllowlistAdded, feature [][32]byte) (event.Subscription, error) { - - var featureRule []interface{} - for _, featureItem := range feature { - featureRule = append(featureRule, featureItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "FeatureFlagAllowlistAdded", featureRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismFeatureFlagAllowlistAdded) - if err := _CoreOptimism.contract.UnpackLog(event, "FeatureFlagAllowlistAdded", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseFeatureFlagAllowlistAdded is a log parse operation binding the contract event 0x30b9b4104e2fb00b4f980e414dcd828e691c8fcb286f0c73d7267c3a2de49383. -// -// Solidity: event FeatureFlagAllowlistAdded(bytes32 indexed feature, address account) -func (_CoreOptimism *CoreOptimismFilterer) ParseFeatureFlagAllowlistAdded(log types.Log) (*CoreOptimismFeatureFlagAllowlistAdded, error) { - event := new(CoreOptimismFeatureFlagAllowlistAdded) - if err := _CoreOptimism.contract.UnpackLog(event, "FeatureFlagAllowlistAdded", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismFeatureFlagAllowlistRemovedIterator is returned from FilterFeatureFlagAllowlistRemoved and is used to iterate over the raw logs and unpacked data for FeatureFlagAllowlistRemoved events raised by the CoreOptimism contract. -type CoreOptimismFeatureFlagAllowlistRemovedIterator struct { - Event *CoreOptimismFeatureFlagAllowlistRemoved // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismFeatureFlagAllowlistRemovedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismFeatureFlagAllowlistRemoved) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismFeatureFlagAllowlistRemoved) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismFeatureFlagAllowlistRemovedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismFeatureFlagAllowlistRemovedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismFeatureFlagAllowlistRemoved represents a FeatureFlagAllowlistRemoved event raised by the CoreOptimism contract. -type CoreOptimismFeatureFlagAllowlistRemoved struct { - Feature [32]byte - Account common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterFeatureFlagAllowlistRemoved is a free log retrieval operation binding the contract event 0xb44a47e11880cc865e8ea382561e406dea8c895366c58e3908f05708b2880890. -// -// Solidity: event FeatureFlagAllowlistRemoved(bytes32 indexed feature, address account) -func (_CoreOptimism *CoreOptimismFilterer) FilterFeatureFlagAllowlistRemoved(opts *bind.FilterOpts, feature [][32]byte) (*CoreOptimismFeatureFlagAllowlistRemovedIterator, error) { - - var featureRule []interface{} - for _, featureItem := range feature { - featureRule = append(featureRule, featureItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "FeatureFlagAllowlistRemoved", featureRule) - if err != nil { - return nil, err - } - return &CoreOptimismFeatureFlagAllowlistRemovedIterator{contract: _CoreOptimism.contract, event: "FeatureFlagAllowlistRemoved", logs: logs, sub: sub}, nil -} - -// WatchFeatureFlagAllowlistRemoved is a free log subscription operation binding the contract event 0xb44a47e11880cc865e8ea382561e406dea8c895366c58e3908f05708b2880890. -// -// Solidity: event FeatureFlagAllowlistRemoved(bytes32 indexed feature, address account) -func (_CoreOptimism *CoreOptimismFilterer) WatchFeatureFlagAllowlistRemoved(opts *bind.WatchOpts, sink chan<- *CoreOptimismFeatureFlagAllowlistRemoved, feature [][32]byte) (event.Subscription, error) { - - var featureRule []interface{} - for _, featureItem := range feature { - featureRule = append(featureRule, featureItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "FeatureFlagAllowlistRemoved", featureRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismFeatureFlagAllowlistRemoved) - if err := _CoreOptimism.contract.UnpackLog(event, "FeatureFlagAllowlistRemoved", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseFeatureFlagAllowlistRemoved is a log parse operation binding the contract event 0xb44a47e11880cc865e8ea382561e406dea8c895366c58e3908f05708b2880890. -// -// Solidity: event FeatureFlagAllowlistRemoved(bytes32 indexed feature, address account) -func (_CoreOptimism *CoreOptimismFilterer) ParseFeatureFlagAllowlistRemoved(log types.Log) (*CoreOptimismFeatureFlagAllowlistRemoved, error) { - event := new(CoreOptimismFeatureFlagAllowlistRemoved) - if err := _CoreOptimism.contract.UnpackLog(event, "FeatureFlagAllowlistRemoved", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismFeatureFlagDeniersResetIterator is returned from FilterFeatureFlagDeniersReset and is used to iterate over the raw logs and unpacked data for FeatureFlagDeniersReset events raised by the CoreOptimism contract. -type CoreOptimismFeatureFlagDeniersResetIterator struct { - Event *CoreOptimismFeatureFlagDeniersReset // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismFeatureFlagDeniersResetIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismFeatureFlagDeniersReset) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismFeatureFlagDeniersReset) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismFeatureFlagDeniersResetIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismFeatureFlagDeniersResetIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismFeatureFlagDeniersReset represents a FeatureFlagDeniersReset event raised by the CoreOptimism contract. -type CoreOptimismFeatureFlagDeniersReset struct { - Feature [32]byte - Deniers []common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterFeatureFlagDeniersReset is a free log retrieval operation binding the contract event 0x74d48d0b51a70680130c00decd06b4d536fbb3cee16a3b0bdd2309c264dcbd13. -// -// Solidity: event FeatureFlagDeniersReset(bytes32 indexed feature, address[] deniers) -func (_CoreOptimism *CoreOptimismFilterer) FilterFeatureFlagDeniersReset(opts *bind.FilterOpts, feature [][32]byte) (*CoreOptimismFeatureFlagDeniersResetIterator, error) { - - var featureRule []interface{} - for _, featureItem := range feature { - featureRule = append(featureRule, featureItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "FeatureFlagDeniersReset", featureRule) - if err != nil { - return nil, err - } - return &CoreOptimismFeatureFlagDeniersResetIterator{contract: _CoreOptimism.contract, event: "FeatureFlagDeniersReset", logs: logs, sub: sub}, nil -} - -// WatchFeatureFlagDeniersReset is a free log subscription operation binding the contract event 0x74d48d0b51a70680130c00decd06b4d536fbb3cee16a3b0bdd2309c264dcbd13. -// -// Solidity: event FeatureFlagDeniersReset(bytes32 indexed feature, address[] deniers) -func (_CoreOptimism *CoreOptimismFilterer) WatchFeatureFlagDeniersReset(opts *bind.WatchOpts, sink chan<- *CoreOptimismFeatureFlagDeniersReset, feature [][32]byte) (event.Subscription, error) { - - var featureRule []interface{} - for _, featureItem := range feature { - featureRule = append(featureRule, featureItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "FeatureFlagDeniersReset", featureRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismFeatureFlagDeniersReset) - if err := _CoreOptimism.contract.UnpackLog(event, "FeatureFlagDeniersReset", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseFeatureFlagDeniersReset is a log parse operation binding the contract event 0x74d48d0b51a70680130c00decd06b4d536fbb3cee16a3b0bdd2309c264dcbd13. -// -// Solidity: event FeatureFlagDeniersReset(bytes32 indexed feature, address[] deniers) -func (_CoreOptimism *CoreOptimismFilterer) ParseFeatureFlagDeniersReset(log types.Log) (*CoreOptimismFeatureFlagDeniersReset, error) { - event := new(CoreOptimismFeatureFlagDeniersReset) - if err := _CoreOptimism.contract.UnpackLog(event, "FeatureFlagDeniersReset", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismFeatureFlagDenyAllSetIterator is returned from FilterFeatureFlagDenyAllSet and is used to iterate over the raw logs and unpacked data for FeatureFlagDenyAllSet events raised by the CoreOptimism contract. -type CoreOptimismFeatureFlagDenyAllSetIterator struct { - Event *CoreOptimismFeatureFlagDenyAllSet // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismFeatureFlagDenyAllSetIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismFeatureFlagDenyAllSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismFeatureFlagDenyAllSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismFeatureFlagDenyAllSetIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismFeatureFlagDenyAllSetIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismFeatureFlagDenyAllSet represents a FeatureFlagDenyAllSet event raised by the CoreOptimism contract. -type CoreOptimismFeatureFlagDenyAllSet struct { - Feature [32]byte - DenyAll bool - Raw types.Log // Blockchain specific contextual infos -} - -// FilterFeatureFlagDenyAllSet is a free log retrieval operation binding the contract event 0x97f76d2e384948e28ddd4280a4e76e8600acc328a0c0910c93682a0fccc02018. -// -// Solidity: event FeatureFlagDenyAllSet(bytes32 indexed feature, bool denyAll) -func (_CoreOptimism *CoreOptimismFilterer) FilterFeatureFlagDenyAllSet(opts *bind.FilterOpts, feature [][32]byte) (*CoreOptimismFeatureFlagDenyAllSetIterator, error) { - - var featureRule []interface{} - for _, featureItem := range feature { - featureRule = append(featureRule, featureItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "FeatureFlagDenyAllSet", featureRule) - if err != nil { - return nil, err - } - return &CoreOptimismFeatureFlagDenyAllSetIterator{contract: _CoreOptimism.contract, event: "FeatureFlagDenyAllSet", logs: logs, sub: sub}, nil -} - -// WatchFeatureFlagDenyAllSet is a free log subscription operation binding the contract event 0x97f76d2e384948e28ddd4280a4e76e8600acc328a0c0910c93682a0fccc02018. -// -// Solidity: event FeatureFlagDenyAllSet(bytes32 indexed feature, bool denyAll) -func (_CoreOptimism *CoreOptimismFilterer) WatchFeatureFlagDenyAllSet(opts *bind.WatchOpts, sink chan<- *CoreOptimismFeatureFlagDenyAllSet, feature [][32]byte) (event.Subscription, error) { - - var featureRule []interface{} - for _, featureItem := range feature { - featureRule = append(featureRule, featureItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "FeatureFlagDenyAllSet", featureRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismFeatureFlagDenyAllSet) - if err := _CoreOptimism.contract.UnpackLog(event, "FeatureFlagDenyAllSet", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseFeatureFlagDenyAllSet is a log parse operation binding the contract event 0x97f76d2e384948e28ddd4280a4e76e8600acc328a0c0910c93682a0fccc02018. -// -// Solidity: event FeatureFlagDenyAllSet(bytes32 indexed feature, bool denyAll) -func (_CoreOptimism *CoreOptimismFilterer) ParseFeatureFlagDenyAllSet(log types.Log) (*CoreOptimismFeatureFlagDenyAllSet, error) { - event := new(CoreOptimismFeatureFlagDenyAllSet) - if err := _CoreOptimism.contract.UnpackLog(event, "FeatureFlagDenyAllSet", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismIssuanceFeePaidIterator is returned from FilterIssuanceFeePaid and is used to iterate over the raw logs and unpacked data for IssuanceFeePaid events raised by the CoreOptimism contract. -type CoreOptimismIssuanceFeePaidIterator struct { - Event *CoreOptimismIssuanceFeePaid // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismIssuanceFeePaidIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismIssuanceFeePaid) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismIssuanceFeePaid) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismIssuanceFeePaidIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismIssuanceFeePaidIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismIssuanceFeePaid represents a IssuanceFeePaid event raised by the CoreOptimism contract. -type CoreOptimismIssuanceFeePaid struct { - AccountId *big.Int - PoolId *big.Int - CollateralType common.Address - FeeAmount *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterIssuanceFeePaid is a free log retrieval operation binding the contract event 0x28d0fb10e1c8ce51490a16fb3b40bf23f8064f7c624d3a3852ad66683a25995d. -// -// Solidity: event IssuanceFeePaid(uint128 indexed accountId, uint128 indexed poolId, address collateralType, uint256 feeAmount) -func (_CoreOptimism *CoreOptimismFilterer) FilterIssuanceFeePaid(opts *bind.FilterOpts, accountId []*big.Int, poolId []*big.Int) (*CoreOptimismIssuanceFeePaidIterator, error) { - - var accountIdRule []interface{} - for _, accountIdItem := range accountId { - accountIdRule = append(accountIdRule, accountIdItem) - } - var poolIdRule []interface{} - for _, poolIdItem := range poolId { - poolIdRule = append(poolIdRule, poolIdItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "IssuanceFeePaid", accountIdRule, poolIdRule) - if err != nil { - return nil, err - } - return &CoreOptimismIssuanceFeePaidIterator{contract: _CoreOptimism.contract, event: "IssuanceFeePaid", logs: logs, sub: sub}, nil -} - -// WatchIssuanceFeePaid is a free log subscription operation binding the contract event 0x28d0fb10e1c8ce51490a16fb3b40bf23f8064f7c624d3a3852ad66683a25995d. -// -// Solidity: event IssuanceFeePaid(uint128 indexed accountId, uint128 indexed poolId, address collateralType, uint256 feeAmount) -func (_CoreOptimism *CoreOptimismFilterer) WatchIssuanceFeePaid(opts *bind.WatchOpts, sink chan<- *CoreOptimismIssuanceFeePaid, accountId []*big.Int, poolId []*big.Int) (event.Subscription, error) { - - var accountIdRule []interface{} - for _, accountIdItem := range accountId { - accountIdRule = append(accountIdRule, accountIdItem) - } - var poolIdRule []interface{} - for _, poolIdItem := range poolId { - poolIdRule = append(poolIdRule, poolIdItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "IssuanceFeePaid", accountIdRule, poolIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismIssuanceFeePaid) - if err := _CoreOptimism.contract.UnpackLog(event, "IssuanceFeePaid", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseIssuanceFeePaid is a log parse operation binding the contract event 0x28d0fb10e1c8ce51490a16fb3b40bf23f8064f7c624d3a3852ad66683a25995d. -// -// Solidity: event IssuanceFeePaid(uint128 indexed accountId, uint128 indexed poolId, address collateralType, uint256 feeAmount) -func (_CoreOptimism *CoreOptimismFilterer) ParseIssuanceFeePaid(log types.Log) (*CoreOptimismIssuanceFeePaid, error) { - event := new(CoreOptimismIssuanceFeePaid) - if err := _CoreOptimism.contract.UnpackLog(event, "IssuanceFeePaid", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismLiquidationIterator is returned from FilterLiquidation and is used to iterate over the raw logs and unpacked data for Liquidation events raised by the CoreOptimism contract. -type CoreOptimismLiquidationIterator struct { - Event *CoreOptimismLiquidation // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismLiquidationIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismLiquidation) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismLiquidation) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismLiquidationIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismLiquidationIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismLiquidation represents a Liquidation event raised by the CoreOptimism contract. -type CoreOptimismLiquidation struct { - AccountId *big.Int - PoolId *big.Int - CollateralType common.Address - LiquidationData ILiquidationModuleLiquidationData - LiquidateAsAccountId *big.Int - Sender common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterLiquidation is a free log retrieval operation binding the contract event 0xe6c1b26644f880854bf954d4186be9f0b2d06d50fa0484b596e79d409c07a5fd. -// -// Solidity: event Liquidation(uint128 indexed accountId, uint128 indexed poolId, address indexed collateralType, (uint256,uint256,uint256) liquidationData, uint128 liquidateAsAccountId, address sender) -func (_CoreOptimism *CoreOptimismFilterer) FilterLiquidation(opts *bind.FilterOpts, accountId []*big.Int, poolId []*big.Int, collateralType []common.Address) (*CoreOptimismLiquidationIterator, error) { - - var accountIdRule []interface{} - for _, accountIdItem := range accountId { - accountIdRule = append(accountIdRule, accountIdItem) - } - var poolIdRule []interface{} - for _, poolIdItem := range poolId { - poolIdRule = append(poolIdRule, poolIdItem) - } - var collateralTypeRule []interface{} - for _, collateralTypeItem := range collateralType { - collateralTypeRule = append(collateralTypeRule, collateralTypeItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "Liquidation", accountIdRule, poolIdRule, collateralTypeRule) - if err != nil { - return nil, err - } - return &CoreOptimismLiquidationIterator{contract: _CoreOptimism.contract, event: "Liquidation", logs: logs, sub: sub}, nil -} - -// WatchLiquidation is a free log subscription operation binding the contract event 0xe6c1b26644f880854bf954d4186be9f0b2d06d50fa0484b596e79d409c07a5fd. -// -// Solidity: event Liquidation(uint128 indexed accountId, uint128 indexed poolId, address indexed collateralType, (uint256,uint256,uint256) liquidationData, uint128 liquidateAsAccountId, address sender) -func (_CoreOptimism *CoreOptimismFilterer) WatchLiquidation(opts *bind.WatchOpts, sink chan<- *CoreOptimismLiquidation, accountId []*big.Int, poolId []*big.Int, collateralType []common.Address) (event.Subscription, error) { - - var accountIdRule []interface{} - for _, accountIdItem := range accountId { - accountIdRule = append(accountIdRule, accountIdItem) - } - var poolIdRule []interface{} - for _, poolIdItem := range poolId { - poolIdRule = append(poolIdRule, poolIdItem) - } - var collateralTypeRule []interface{} - for _, collateralTypeItem := range collateralType { - collateralTypeRule = append(collateralTypeRule, collateralTypeItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "Liquidation", accountIdRule, poolIdRule, collateralTypeRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismLiquidation) - if err := _CoreOptimism.contract.UnpackLog(event, "Liquidation", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseLiquidation is a log parse operation binding the contract event 0xe6c1b26644f880854bf954d4186be9f0b2d06d50fa0484b596e79d409c07a5fd. -// -// Solidity: event Liquidation(uint128 indexed accountId, uint128 indexed poolId, address indexed collateralType, (uint256,uint256,uint256) liquidationData, uint128 liquidateAsAccountId, address sender) -func (_CoreOptimism *CoreOptimismFilterer) ParseLiquidation(log types.Log) (*CoreOptimismLiquidation, error) { - event := new(CoreOptimismLiquidation) - if err := _CoreOptimism.contract.UnpackLog(event, "Liquidation", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismMarketCollateralDepositedIterator is returned from FilterMarketCollateralDeposited and is used to iterate over the raw logs and unpacked data for MarketCollateralDeposited events raised by the CoreOptimism contract. -type CoreOptimismMarketCollateralDepositedIterator struct { - Event *CoreOptimismMarketCollateralDeposited // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismMarketCollateralDepositedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismMarketCollateralDeposited) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismMarketCollateralDeposited) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismMarketCollateralDepositedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismMarketCollateralDepositedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismMarketCollateralDeposited represents a MarketCollateralDeposited event raised by the CoreOptimism contract. -type CoreOptimismMarketCollateralDeposited struct { - MarketId *big.Int - CollateralType common.Address - TokenAmount *big.Int - Sender common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterMarketCollateralDeposited is a free log retrieval operation binding the contract event 0x6affa35c1a0ba6198bd74578c93e3a0eb32a96af0af26ce8adf06b933212ca1b. -// -// Solidity: event MarketCollateralDeposited(uint128 indexed marketId, address indexed collateralType, uint256 tokenAmount, address indexed sender) -func (_CoreOptimism *CoreOptimismFilterer) FilterMarketCollateralDeposited(opts *bind.FilterOpts, marketId []*big.Int, collateralType []common.Address, sender []common.Address) (*CoreOptimismMarketCollateralDepositedIterator, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - var collateralTypeRule []interface{} - for _, collateralTypeItem := range collateralType { - collateralTypeRule = append(collateralTypeRule, collateralTypeItem) - } - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "MarketCollateralDeposited", marketIdRule, collateralTypeRule, senderRule) - if err != nil { - return nil, err - } - return &CoreOptimismMarketCollateralDepositedIterator{contract: _CoreOptimism.contract, event: "MarketCollateralDeposited", logs: logs, sub: sub}, nil -} - -// WatchMarketCollateralDeposited is a free log subscription operation binding the contract event 0x6affa35c1a0ba6198bd74578c93e3a0eb32a96af0af26ce8adf06b933212ca1b. -// -// Solidity: event MarketCollateralDeposited(uint128 indexed marketId, address indexed collateralType, uint256 tokenAmount, address indexed sender) -func (_CoreOptimism *CoreOptimismFilterer) WatchMarketCollateralDeposited(opts *bind.WatchOpts, sink chan<- *CoreOptimismMarketCollateralDeposited, marketId []*big.Int, collateralType []common.Address, sender []common.Address) (event.Subscription, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - var collateralTypeRule []interface{} - for _, collateralTypeItem := range collateralType { - collateralTypeRule = append(collateralTypeRule, collateralTypeItem) - } - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "MarketCollateralDeposited", marketIdRule, collateralTypeRule, senderRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismMarketCollateralDeposited) - if err := _CoreOptimism.contract.UnpackLog(event, "MarketCollateralDeposited", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseMarketCollateralDeposited is a log parse operation binding the contract event 0x6affa35c1a0ba6198bd74578c93e3a0eb32a96af0af26ce8adf06b933212ca1b. -// -// Solidity: event MarketCollateralDeposited(uint128 indexed marketId, address indexed collateralType, uint256 tokenAmount, address indexed sender) -func (_CoreOptimism *CoreOptimismFilterer) ParseMarketCollateralDeposited(log types.Log) (*CoreOptimismMarketCollateralDeposited, error) { - event := new(CoreOptimismMarketCollateralDeposited) - if err := _CoreOptimism.contract.UnpackLog(event, "MarketCollateralDeposited", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismMarketCollateralWithdrawnIterator is returned from FilterMarketCollateralWithdrawn and is used to iterate over the raw logs and unpacked data for MarketCollateralWithdrawn events raised by the CoreOptimism contract. -type CoreOptimismMarketCollateralWithdrawnIterator struct { - Event *CoreOptimismMarketCollateralWithdrawn // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismMarketCollateralWithdrawnIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismMarketCollateralWithdrawn) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismMarketCollateralWithdrawn) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismMarketCollateralWithdrawnIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismMarketCollateralWithdrawnIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismMarketCollateralWithdrawn represents a MarketCollateralWithdrawn event raised by the CoreOptimism contract. -type CoreOptimismMarketCollateralWithdrawn struct { - MarketId *big.Int - CollateralType common.Address - TokenAmount *big.Int - Sender common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterMarketCollateralWithdrawn is a free log retrieval operation binding the contract event 0x31fd88ca973dd7ee814313c50c2aaa7cd2d2142634582332b1e2671e6d97fd9a. -// -// Solidity: event MarketCollateralWithdrawn(uint128 indexed marketId, address indexed collateralType, uint256 tokenAmount, address indexed sender) -func (_CoreOptimism *CoreOptimismFilterer) FilterMarketCollateralWithdrawn(opts *bind.FilterOpts, marketId []*big.Int, collateralType []common.Address, sender []common.Address) (*CoreOptimismMarketCollateralWithdrawnIterator, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - var collateralTypeRule []interface{} - for _, collateralTypeItem := range collateralType { - collateralTypeRule = append(collateralTypeRule, collateralTypeItem) - } - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "MarketCollateralWithdrawn", marketIdRule, collateralTypeRule, senderRule) - if err != nil { - return nil, err - } - return &CoreOptimismMarketCollateralWithdrawnIterator{contract: _CoreOptimism.contract, event: "MarketCollateralWithdrawn", logs: logs, sub: sub}, nil -} - -// WatchMarketCollateralWithdrawn is a free log subscription operation binding the contract event 0x31fd88ca973dd7ee814313c50c2aaa7cd2d2142634582332b1e2671e6d97fd9a. -// -// Solidity: event MarketCollateralWithdrawn(uint128 indexed marketId, address indexed collateralType, uint256 tokenAmount, address indexed sender) -func (_CoreOptimism *CoreOptimismFilterer) WatchMarketCollateralWithdrawn(opts *bind.WatchOpts, sink chan<- *CoreOptimismMarketCollateralWithdrawn, marketId []*big.Int, collateralType []common.Address, sender []common.Address) (event.Subscription, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - var collateralTypeRule []interface{} - for _, collateralTypeItem := range collateralType { - collateralTypeRule = append(collateralTypeRule, collateralTypeItem) - } - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "MarketCollateralWithdrawn", marketIdRule, collateralTypeRule, senderRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismMarketCollateralWithdrawn) - if err := _CoreOptimism.contract.UnpackLog(event, "MarketCollateralWithdrawn", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseMarketCollateralWithdrawn is a log parse operation binding the contract event 0x31fd88ca973dd7ee814313c50c2aaa7cd2d2142634582332b1e2671e6d97fd9a. -// -// Solidity: event MarketCollateralWithdrawn(uint128 indexed marketId, address indexed collateralType, uint256 tokenAmount, address indexed sender) -func (_CoreOptimism *CoreOptimismFilterer) ParseMarketCollateralWithdrawn(log types.Log) (*CoreOptimismMarketCollateralWithdrawn, error) { - event := new(CoreOptimismMarketCollateralWithdrawn) - if err := _CoreOptimism.contract.UnpackLog(event, "MarketCollateralWithdrawn", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismMarketRegisteredIterator is returned from FilterMarketRegistered and is used to iterate over the raw logs and unpacked data for MarketRegistered events raised by the CoreOptimism contract. -type CoreOptimismMarketRegisteredIterator struct { - Event *CoreOptimismMarketRegistered // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismMarketRegisteredIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismMarketRegistered) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismMarketRegistered) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismMarketRegisteredIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismMarketRegisteredIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismMarketRegistered represents a MarketRegistered event raised by the CoreOptimism contract. -type CoreOptimismMarketRegistered struct { - Market common.Address - MarketId *big.Int - Sender common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterMarketRegistered is a free log retrieval operation binding the contract event 0xeb87361ace8c1947e121293eb214f68d889d9cf273c48246b38c3cbf185748d0. -// -// Solidity: event MarketRegistered(address indexed market, uint128 indexed marketId, address indexed sender) -func (_CoreOptimism *CoreOptimismFilterer) FilterMarketRegistered(opts *bind.FilterOpts, market []common.Address, marketId []*big.Int, sender []common.Address) (*CoreOptimismMarketRegisteredIterator, error) { - - var marketRule []interface{} - for _, marketItem := range market { - marketRule = append(marketRule, marketItem) - } - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "MarketRegistered", marketRule, marketIdRule, senderRule) - if err != nil { - return nil, err - } - return &CoreOptimismMarketRegisteredIterator{contract: _CoreOptimism.contract, event: "MarketRegistered", logs: logs, sub: sub}, nil -} - -// WatchMarketRegistered is a free log subscription operation binding the contract event 0xeb87361ace8c1947e121293eb214f68d889d9cf273c48246b38c3cbf185748d0. -// -// Solidity: event MarketRegistered(address indexed market, uint128 indexed marketId, address indexed sender) -func (_CoreOptimism *CoreOptimismFilterer) WatchMarketRegistered(opts *bind.WatchOpts, sink chan<- *CoreOptimismMarketRegistered, market []common.Address, marketId []*big.Int, sender []common.Address) (event.Subscription, error) { - - var marketRule []interface{} - for _, marketItem := range market { - marketRule = append(marketRule, marketItem) - } - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "MarketRegistered", marketRule, marketIdRule, senderRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismMarketRegistered) - if err := _CoreOptimism.contract.UnpackLog(event, "MarketRegistered", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseMarketRegistered is a log parse operation binding the contract event 0xeb87361ace8c1947e121293eb214f68d889d9cf273c48246b38c3cbf185748d0. -// -// Solidity: event MarketRegistered(address indexed market, uint128 indexed marketId, address indexed sender) -func (_CoreOptimism *CoreOptimismFilterer) ParseMarketRegistered(log types.Log) (*CoreOptimismMarketRegistered, error) { - event := new(CoreOptimismMarketRegistered) - if err := _CoreOptimism.contract.UnpackLog(event, "MarketRegistered", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismMarketSystemFeePaidIterator is returned from FilterMarketSystemFeePaid and is used to iterate over the raw logs and unpacked data for MarketSystemFeePaid events raised by the CoreOptimism contract. -type CoreOptimismMarketSystemFeePaidIterator struct { - Event *CoreOptimismMarketSystemFeePaid // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismMarketSystemFeePaidIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismMarketSystemFeePaid) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismMarketSystemFeePaid) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismMarketSystemFeePaidIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismMarketSystemFeePaidIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismMarketSystemFeePaid represents a MarketSystemFeePaid event raised by the CoreOptimism contract. -type CoreOptimismMarketSystemFeePaid struct { - MarketId *big.Int - FeeAmount *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterMarketSystemFeePaid is a free log retrieval operation binding the contract event 0x8b69fed8aed97ef9572216662359ece45fa52f2b5ff44a78b7ec3c5ef05153f8. -// -// Solidity: event MarketSystemFeePaid(uint128 indexed marketId, uint256 feeAmount) -func (_CoreOptimism *CoreOptimismFilterer) FilterMarketSystemFeePaid(opts *bind.FilterOpts, marketId []*big.Int) (*CoreOptimismMarketSystemFeePaidIterator, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "MarketSystemFeePaid", marketIdRule) - if err != nil { - return nil, err - } - return &CoreOptimismMarketSystemFeePaidIterator{contract: _CoreOptimism.contract, event: "MarketSystemFeePaid", logs: logs, sub: sub}, nil -} - -// WatchMarketSystemFeePaid is a free log subscription operation binding the contract event 0x8b69fed8aed97ef9572216662359ece45fa52f2b5ff44a78b7ec3c5ef05153f8. -// -// Solidity: event MarketSystemFeePaid(uint128 indexed marketId, uint256 feeAmount) -func (_CoreOptimism *CoreOptimismFilterer) WatchMarketSystemFeePaid(opts *bind.WatchOpts, sink chan<- *CoreOptimismMarketSystemFeePaid, marketId []*big.Int) (event.Subscription, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "MarketSystemFeePaid", marketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismMarketSystemFeePaid) - if err := _CoreOptimism.contract.UnpackLog(event, "MarketSystemFeePaid", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseMarketSystemFeePaid is a log parse operation binding the contract event 0x8b69fed8aed97ef9572216662359ece45fa52f2b5ff44a78b7ec3c5ef05153f8. -// -// Solidity: event MarketSystemFeePaid(uint128 indexed marketId, uint256 feeAmount) -func (_CoreOptimism *CoreOptimismFilterer) ParseMarketSystemFeePaid(log types.Log) (*CoreOptimismMarketSystemFeePaid, error) { - event := new(CoreOptimismMarketSystemFeePaid) - if err := _CoreOptimism.contract.UnpackLog(event, "MarketSystemFeePaid", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismMarketUsdDepositedIterator is returned from FilterMarketUsdDeposited and is used to iterate over the raw logs and unpacked data for MarketUsdDeposited events raised by the CoreOptimism contract. -type CoreOptimismMarketUsdDepositedIterator struct { - Event *CoreOptimismMarketUsdDeposited // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismMarketUsdDepositedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismMarketUsdDeposited) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismMarketUsdDeposited) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismMarketUsdDepositedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismMarketUsdDepositedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismMarketUsdDeposited represents a MarketUsdDeposited event raised by the CoreOptimism contract. -type CoreOptimismMarketUsdDeposited struct { - MarketId *big.Int - Target common.Address - Amount *big.Int - Market common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterMarketUsdDeposited is a free log retrieval operation binding the contract event 0xcbdbec7c74466ca0e764de5f6bca5bef859e31a7d6284be22ac6b4beabddf835. -// -// Solidity: event MarketUsdDeposited(uint128 indexed marketId, address indexed target, uint256 amount, address indexed market) -func (_CoreOptimism *CoreOptimismFilterer) FilterMarketUsdDeposited(opts *bind.FilterOpts, marketId []*big.Int, target []common.Address, market []common.Address) (*CoreOptimismMarketUsdDepositedIterator, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - var targetRule []interface{} - for _, targetItem := range target { - targetRule = append(targetRule, targetItem) - } - - var marketRule []interface{} - for _, marketItem := range market { - marketRule = append(marketRule, marketItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "MarketUsdDeposited", marketIdRule, targetRule, marketRule) - if err != nil { - return nil, err - } - return &CoreOptimismMarketUsdDepositedIterator{contract: _CoreOptimism.contract, event: "MarketUsdDeposited", logs: logs, sub: sub}, nil -} - -// WatchMarketUsdDeposited is a free log subscription operation binding the contract event 0xcbdbec7c74466ca0e764de5f6bca5bef859e31a7d6284be22ac6b4beabddf835. -// -// Solidity: event MarketUsdDeposited(uint128 indexed marketId, address indexed target, uint256 amount, address indexed market) -func (_CoreOptimism *CoreOptimismFilterer) WatchMarketUsdDeposited(opts *bind.WatchOpts, sink chan<- *CoreOptimismMarketUsdDeposited, marketId []*big.Int, target []common.Address, market []common.Address) (event.Subscription, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - var targetRule []interface{} - for _, targetItem := range target { - targetRule = append(targetRule, targetItem) - } - - var marketRule []interface{} - for _, marketItem := range market { - marketRule = append(marketRule, marketItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "MarketUsdDeposited", marketIdRule, targetRule, marketRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismMarketUsdDeposited) - if err := _CoreOptimism.contract.UnpackLog(event, "MarketUsdDeposited", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseMarketUsdDeposited is a log parse operation binding the contract event 0xcbdbec7c74466ca0e764de5f6bca5bef859e31a7d6284be22ac6b4beabddf835. -// -// Solidity: event MarketUsdDeposited(uint128 indexed marketId, address indexed target, uint256 amount, address indexed market) -func (_CoreOptimism *CoreOptimismFilterer) ParseMarketUsdDeposited(log types.Log) (*CoreOptimismMarketUsdDeposited, error) { - event := new(CoreOptimismMarketUsdDeposited) - if err := _CoreOptimism.contract.UnpackLog(event, "MarketUsdDeposited", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismMarketUsdWithdrawnIterator is returned from FilterMarketUsdWithdrawn and is used to iterate over the raw logs and unpacked data for MarketUsdWithdrawn events raised by the CoreOptimism contract. -type CoreOptimismMarketUsdWithdrawnIterator struct { - Event *CoreOptimismMarketUsdWithdrawn // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismMarketUsdWithdrawnIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismMarketUsdWithdrawn) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismMarketUsdWithdrawn) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismMarketUsdWithdrawnIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismMarketUsdWithdrawnIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismMarketUsdWithdrawn represents a MarketUsdWithdrawn event raised by the CoreOptimism contract. -type CoreOptimismMarketUsdWithdrawn struct { - MarketId *big.Int - Target common.Address - Amount *big.Int - Market common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterMarketUsdWithdrawn is a free log retrieval operation binding the contract event 0x8669e4526579b1f1da479be2f96d1c7953fff439a4f98362a1c9ca07fe42ba41. -// -// Solidity: event MarketUsdWithdrawn(uint128 indexed marketId, address indexed target, uint256 amount, address indexed market) -func (_CoreOptimism *CoreOptimismFilterer) FilterMarketUsdWithdrawn(opts *bind.FilterOpts, marketId []*big.Int, target []common.Address, market []common.Address) (*CoreOptimismMarketUsdWithdrawnIterator, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - var targetRule []interface{} - for _, targetItem := range target { - targetRule = append(targetRule, targetItem) - } - - var marketRule []interface{} - for _, marketItem := range market { - marketRule = append(marketRule, marketItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "MarketUsdWithdrawn", marketIdRule, targetRule, marketRule) - if err != nil { - return nil, err - } - return &CoreOptimismMarketUsdWithdrawnIterator{contract: _CoreOptimism.contract, event: "MarketUsdWithdrawn", logs: logs, sub: sub}, nil -} - -// WatchMarketUsdWithdrawn is a free log subscription operation binding the contract event 0x8669e4526579b1f1da479be2f96d1c7953fff439a4f98362a1c9ca07fe42ba41. -// -// Solidity: event MarketUsdWithdrawn(uint128 indexed marketId, address indexed target, uint256 amount, address indexed market) -func (_CoreOptimism *CoreOptimismFilterer) WatchMarketUsdWithdrawn(opts *bind.WatchOpts, sink chan<- *CoreOptimismMarketUsdWithdrawn, marketId []*big.Int, target []common.Address, market []common.Address) (event.Subscription, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - var targetRule []interface{} - for _, targetItem := range target { - targetRule = append(targetRule, targetItem) - } - - var marketRule []interface{} - for _, marketItem := range market { - marketRule = append(marketRule, marketItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "MarketUsdWithdrawn", marketIdRule, targetRule, marketRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismMarketUsdWithdrawn) - if err := _CoreOptimism.contract.UnpackLog(event, "MarketUsdWithdrawn", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseMarketUsdWithdrawn is a log parse operation binding the contract event 0x8669e4526579b1f1da479be2f96d1c7953fff439a4f98362a1c9ca07fe42ba41. -// -// Solidity: event MarketUsdWithdrawn(uint128 indexed marketId, address indexed target, uint256 amount, address indexed market) -func (_CoreOptimism *CoreOptimismFilterer) ParseMarketUsdWithdrawn(log types.Log) (*CoreOptimismMarketUsdWithdrawn, error) { - event := new(CoreOptimismMarketUsdWithdrawn) - if err := _CoreOptimism.contract.UnpackLog(event, "MarketUsdWithdrawn", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismMaximumMarketCollateralConfiguredIterator is returned from FilterMaximumMarketCollateralConfigured and is used to iterate over the raw logs and unpacked data for MaximumMarketCollateralConfigured events raised by the CoreOptimism contract. -type CoreOptimismMaximumMarketCollateralConfiguredIterator struct { - Event *CoreOptimismMaximumMarketCollateralConfigured // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismMaximumMarketCollateralConfiguredIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismMaximumMarketCollateralConfigured) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismMaximumMarketCollateralConfigured) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismMaximumMarketCollateralConfiguredIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismMaximumMarketCollateralConfiguredIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismMaximumMarketCollateralConfigured represents a MaximumMarketCollateralConfigured event raised by the CoreOptimism contract. -type CoreOptimismMaximumMarketCollateralConfigured struct { - MarketId *big.Int - CollateralType common.Address - SystemAmount *big.Int - Owner common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterMaximumMarketCollateralConfigured is a free log retrieval operation binding the contract event 0x499c8fcfbc4341c37dcf444c890d42ef888d46aa586f97ceb20577c2635c8075. -// -// Solidity: event MaximumMarketCollateralConfigured(uint128 indexed marketId, address indexed collateralType, uint256 systemAmount, address indexed owner) -func (_CoreOptimism *CoreOptimismFilterer) FilterMaximumMarketCollateralConfigured(opts *bind.FilterOpts, marketId []*big.Int, collateralType []common.Address, owner []common.Address) (*CoreOptimismMaximumMarketCollateralConfiguredIterator, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - var collateralTypeRule []interface{} - for _, collateralTypeItem := range collateralType { - collateralTypeRule = append(collateralTypeRule, collateralTypeItem) - } - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "MaximumMarketCollateralConfigured", marketIdRule, collateralTypeRule, ownerRule) - if err != nil { - return nil, err - } - return &CoreOptimismMaximumMarketCollateralConfiguredIterator{contract: _CoreOptimism.contract, event: "MaximumMarketCollateralConfigured", logs: logs, sub: sub}, nil -} - -// WatchMaximumMarketCollateralConfigured is a free log subscription operation binding the contract event 0x499c8fcfbc4341c37dcf444c890d42ef888d46aa586f97ceb20577c2635c8075. -// -// Solidity: event MaximumMarketCollateralConfigured(uint128 indexed marketId, address indexed collateralType, uint256 systemAmount, address indexed owner) -func (_CoreOptimism *CoreOptimismFilterer) WatchMaximumMarketCollateralConfigured(opts *bind.WatchOpts, sink chan<- *CoreOptimismMaximumMarketCollateralConfigured, marketId []*big.Int, collateralType []common.Address, owner []common.Address) (event.Subscription, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - var collateralTypeRule []interface{} - for _, collateralTypeItem := range collateralType { - collateralTypeRule = append(collateralTypeRule, collateralTypeItem) - } - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "MaximumMarketCollateralConfigured", marketIdRule, collateralTypeRule, ownerRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismMaximumMarketCollateralConfigured) - if err := _CoreOptimism.contract.UnpackLog(event, "MaximumMarketCollateralConfigured", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseMaximumMarketCollateralConfigured is a log parse operation binding the contract event 0x499c8fcfbc4341c37dcf444c890d42ef888d46aa586f97ceb20577c2635c8075. -// -// Solidity: event MaximumMarketCollateralConfigured(uint128 indexed marketId, address indexed collateralType, uint256 systemAmount, address indexed owner) -func (_CoreOptimism *CoreOptimismFilterer) ParseMaximumMarketCollateralConfigured(log types.Log) (*CoreOptimismMaximumMarketCollateralConfigured, error) { - event := new(CoreOptimismMaximumMarketCollateralConfigured) - if err := _CoreOptimism.contract.UnpackLog(event, "MaximumMarketCollateralConfigured", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismNewSupportedCrossChainNetworkIterator is returned from FilterNewSupportedCrossChainNetwork and is used to iterate over the raw logs and unpacked data for NewSupportedCrossChainNetwork events raised by the CoreOptimism contract. -type CoreOptimismNewSupportedCrossChainNetworkIterator struct { - Event *CoreOptimismNewSupportedCrossChainNetwork // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismNewSupportedCrossChainNetworkIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismNewSupportedCrossChainNetwork) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismNewSupportedCrossChainNetwork) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismNewSupportedCrossChainNetworkIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismNewSupportedCrossChainNetworkIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismNewSupportedCrossChainNetwork represents a NewSupportedCrossChainNetwork event raised by the CoreOptimism contract. -type CoreOptimismNewSupportedCrossChainNetwork struct { - NewChainId uint64 - Raw types.Log // Blockchain specific contextual infos -} - -// FilterNewSupportedCrossChainNetwork is a free log retrieval operation binding the contract event 0x1874eb2a5288e478dcedf1d33291bd7293eeef5946ec516d2ef54a364b3f63d8. -// -// Solidity: event NewSupportedCrossChainNetwork(uint64 newChainId) -func (_CoreOptimism *CoreOptimismFilterer) FilterNewSupportedCrossChainNetwork(opts *bind.FilterOpts) (*CoreOptimismNewSupportedCrossChainNetworkIterator, error) { - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "NewSupportedCrossChainNetwork") - if err != nil { - return nil, err - } - return &CoreOptimismNewSupportedCrossChainNetworkIterator{contract: _CoreOptimism.contract, event: "NewSupportedCrossChainNetwork", logs: logs, sub: sub}, nil -} - -// WatchNewSupportedCrossChainNetwork is a free log subscription operation binding the contract event 0x1874eb2a5288e478dcedf1d33291bd7293eeef5946ec516d2ef54a364b3f63d8. -// -// Solidity: event NewSupportedCrossChainNetwork(uint64 newChainId) -func (_CoreOptimism *CoreOptimismFilterer) WatchNewSupportedCrossChainNetwork(opts *bind.WatchOpts, sink chan<- *CoreOptimismNewSupportedCrossChainNetwork) (event.Subscription, error) { - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "NewSupportedCrossChainNetwork") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismNewSupportedCrossChainNetwork) - if err := _CoreOptimism.contract.UnpackLog(event, "NewSupportedCrossChainNetwork", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseNewSupportedCrossChainNetwork is a log parse operation binding the contract event 0x1874eb2a5288e478dcedf1d33291bd7293eeef5946ec516d2ef54a364b3f63d8. -// -// Solidity: event NewSupportedCrossChainNetwork(uint64 newChainId) -func (_CoreOptimism *CoreOptimismFilterer) ParseNewSupportedCrossChainNetwork(log types.Log) (*CoreOptimismNewSupportedCrossChainNetwork, error) { - event := new(CoreOptimismNewSupportedCrossChainNetwork) - if err := _CoreOptimism.contract.UnpackLog(event, "NewSupportedCrossChainNetwork", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismOwnerChangedIterator is returned from FilterOwnerChanged and is used to iterate over the raw logs and unpacked data for OwnerChanged events raised by the CoreOptimism contract. -type CoreOptimismOwnerChangedIterator struct { - Event *CoreOptimismOwnerChanged // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismOwnerChangedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismOwnerChanged) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismOwnerChanged) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismOwnerChangedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismOwnerChangedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismOwnerChanged represents a OwnerChanged event raised by the CoreOptimism contract. -type CoreOptimismOwnerChanged struct { - OldOwner common.Address - NewOwner common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterOwnerChanged is a free log retrieval operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c. -// -// Solidity: event OwnerChanged(address oldOwner, address newOwner) -func (_CoreOptimism *CoreOptimismFilterer) FilterOwnerChanged(opts *bind.FilterOpts) (*CoreOptimismOwnerChangedIterator, error) { - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "OwnerChanged") - if err != nil { - return nil, err - } - return &CoreOptimismOwnerChangedIterator{contract: _CoreOptimism.contract, event: "OwnerChanged", logs: logs, sub: sub}, nil -} - -// WatchOwnerChanged is a free log subscription operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c. -// -// Solidity: event OwnerChanged(address oldOwner, address newOwner) -func (_CoreOptimism *CoreOptimismFilterer) WatchOwnerChanged(opts *bind.WatchOpts, sink chan<- *CoreOptimismOwnerChanged) (event.Subscription, error) { - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "OwnerChanged") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismOwnerChanged) - if err := _CoreOptimism.contract.UnpackLog(event, "OwnerChanged", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseOwnerChanged is a log parse operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c. -// -// Solidity: event OwnerChanged(address oldOwner, address newOwner) -func (_CoreOptimism *CoreOptimismFilterer) ParseOwnerChanged(log types.Log) (*CoreOptimismOwnerChanged, error) { - event := new(CoreOptimismOwnerChanged) - if err := _CoreOptimism.contract.UnpackLog(event, "OwnerChanged", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismOwnerNominatedIterator is returned from FilterOwnerNominated and is used to iterate over the raw logs and unpacked data for OwnerNominated events raised by the CoreOptimism contract. -type CoreOptimismOwnerNominatedIterator struct { - Event *CoreOptimismOwnerNominated // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismOwnerNominatedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismOwnerNominated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismOwnerNominated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismOwnerNominatedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismOwnerNominatedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismOwnerNominated represents a OwnerNominated event raised by the CoreOptimism contract. -type CoreOptimismOwnerNominated struct { - NewOwner common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterOwnerNominated is a free log retrieval operation binding the contract event 0x906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22. -// -// Solidity: event OwnerNominated(address newOwner) -func (_CoreOptimism *CoreOptimismFilterer) FilterOwnerNominated(opts *bind.FilterOpts) (*CoreOptimismOwnerNominatedIterator, error) { - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "OwnerNominated") - if err != nil { - return nil, err - } - return &CoreOptimismOwnerNominatedIterator{contract: _CoreOptimism.contract, event: "OwnerNominated", logs: logs, sub: sub}, nil -} - -// WatchOwnerNominated is a free log subscription operation binding the contract event 0x906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22. -// -// Solidity: event OwnerNominated(address newOwner) -func (_CoreOptimism *CoreOptimismFilterer) WatchOwnerNominated(opts *bind.WatchOpts, sink chan<- *CoreOptimismOwnerNominated) (event.Subscription, error) { - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "OwnerNominated") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismOwnerNominated) - if err := _CoreOptimism.contract.UnpackLog(event, "OwnerNominated", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseOwnerNominated is a log parse operation binding the contract event 0x906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22. -// -// Solidity: event OwnerNominated(address newOwner) -func (_CoreOptimism *CoreOptimismFilterer) ParseOwnerNominated(log types.Log) (*CoreOptimismOwnerNominated, error) { - event := new(CoreOptimismOwnerNominated) - if err := _CoreOptimism.contract.UnpackLog(event, "OwnerNominated", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismPermissionGrantedIterator is returned from FilterPermissionGranted and is used to iterate over the raw logs and unpacked data for PermissionGranted events raised by the CoreOptimism contract. -type CoreOptimismPermissionGrantedIterator struct { - Event *CoreOptimismPermissionGranted // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismPermissionGrantedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismPermissionGranted) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismPermissionGranted) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismPermissionGrantedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismPermissionGrantedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismPermissionGranted represents a PermissionGranted event raised by the CoreOptimism contract. -type CoreOptimismPermissionGranted struct { - AccountId *big.Int - Permission [32]byte - User common.Address - Sender common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterPermissionGranted is a free log retrieval operation binding the contract event 0x32ff7c3f84299a3543c1e89057e98ba962f4fbe7786c52289e184c57b9a36a50. -// -// Solidity: event PermissionGranted(uint128 indexed accountId, bytes32 indexed permission, address indexed user, address sender) -func (_CoreOptimism *CoreOptimismFilterer) FilterPermissionGranted(opts *bind.FilterOpts, accountId []*big.Int, permission [][32]byte, user []common.Address) (*CoreOptimismPermissionGrantedIterator, error) { - - var accountIdRule []interface{} - for _, accountIdItem := range accountId { - accountIdRule = append(accountIdRule, accountIdItem) - } - var permissionRule []interface{} - for _, permissionItem := range permission { - permissionRule = append(permissionRule, permissionItem) - } - var userRule []interface{} - for _, userItem := range user { - userRule = append(userRule, userItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "PermissionGranted", accountIdRule, permissionRule, userRule) - if err != nil { - return nil, err - } - return &CoreOptimismPermissionGrantedIterator{contract: _CoreOptimism.contract, event: "PermissionGranted", logs: logs, sub: sub}, nil -} - -// WatchPermissionGranted is a free log subscription operation binding the contract event 0x32ff7c3f84299a3543c1e89057e98ba962f4fbe7786c52289e184c57b9a36a50. -// -// Solidity: event PermissionGranted(uint128 indexed accountId, bytes32 indexed permission, address indexed user, address sender) -func (_CoreOptimism *CoreOptimismFilterer) WatchPermissionGranted(opts *bind.WatchOpts, sink chan<- *CoreOptimismPermissionGranted, accountId []*big.Int, permission [][32]byte, user []common.Address) (event.Subscription, error) { - - var accountIdRule []interface{} - for _, accountIdItem := range accountId { - accountIdRule = append(accountIdRule, accountIdItem) - } - var permissionRule []interface{} - for _, permissionItem := range permission { - permissionRule = append(permissionRule, permissionItem) - } - var userRule []interface{} - for _, userItem := range user { - userRule = append(userRule, userItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "PermissionGranted", accountIdRule, permissionRule, userRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismPermissionGranted) - if err := _CoreOptimism.contract.UnpackLog(event, "PermissionGranted", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParsePermissionGranted is a log parse operation binding the contract event 0x32ff7c3f84299a3543c1e89057e98ba962f4fbe7786c52289e184c57b9a36a50. -// -// Solidity: event PermissionGranted(uint128 indexed accountId, bytes32 indexed permission, address indexed user, address sender) -func (_CoreOptimism *CoreOptimismFilterer) ParsePermissionGranted(log types.Log) (*CoreOptimismPermissionGranted, error) { - event := new(CoreOptimismPermissionGranted) - if err := _CoreOptimism.contract.UnpackLog(event, "PermissionGranted", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismPermissionRevokedIterator is returned from FilterPermissionRevoked and is used to iterate over the raw logs and unpacked data for PermissionRevoked events raised by the CoreOptimism contract. -type CoreOptimismPermissionRevokedIterator struct { - Event *CoreOptimismPermissionRevoked // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismPermissionRevokedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismPermissionRevoked) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismPermissionRevoked) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismPermissionRevokedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismPermissionRevokedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismPermissionRevoked represents a PermissionRevoked event raised by the CoreOptimism contract. -type CoreOptimismPermissionRevoked struct { - AccountId *big.Int - Permission [32]byte - User common.Address - Sender common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterPermissionRevoked is a free log retrieval operation binding the contract event 0x116c7e9cd2db316974fb473babcbcd625be1350842d0319e761d30aefb09a58a. -// -// Solidity: event PermissionRevoked(uint128 indexed accountId, bytes32 indexed permission, address indexed user, address sender) -func (_CoreOptimism *CoreOptimismFilterer) FilterPermissionRevoked(opts *bind.FilterOpts, accountId []*big.Int, permission [][32]byte, user []common.Address) (*CoreOptimismPermissionRevokedIterator, error) { - - var accountIdRule []interface{} - for _, accountIdItem := range accountId { - accountIdRule = append(accountIdRule, accountIdItem) - } - var permissionRule []interface{} - for _, permissionItem := range permission { - permissionRule = append(permissionRule, permissionItem) - } - var userRule []interface{} - for _, userItem := range user { - userRule = append(userRule, userItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "PermissionRevoked", accountIdRule, permissionRule, userRule) - if err != nil { - return nil, err - } - return &CoreOptimismPermissionRevokedIterator{contract: _CoreOptimism.contract, event: "PermissionRevoked", logs: logs, sub: sub}, nil -} - -// WatchPermissionRevoked is a free log subscription operation binding the contract event 0x116c7e9cd2db316974fb473babcbcd625be1350842d0319e761d30aefb09a58a. -// -// Solidity: event PermissionRevoked(uint128 indexed accountId, bytes32 indexed permission, address indexed user, address sender) -func (_CoreOptimism *CoreOptimismFilterer) WatchPermissionRevoked(opts *bind.WatchOpts, sink chan<- *CoreOptimismPermissionRevoked, accountId []*big.Int, permission [][32]byte, user []common.Address) (event.Subscription, error) { - - var accountIdRule []interface{} - for _, accountIdItem := range accountId { - accountIdRule = append(accountIdRule, accountIdItem) - } - var permissionRule []interface{} - for _, permissionItem := range permission { - permissionRule = append(permissionRule, permissionItem) - } - var userRule []interface{} - for _, userItem := range user { - userRule = append(userRule, userItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "PermissionRevoked", accountIdRule, permissionRule, userRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismPermissionRevoked) - if err := _CoreOptimism.contract.UnpackLog(event, "PermissionRevoked", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParsePermissionRevoked is a log parse operation binding the contract event 0x116c7e9cd2db316974fb473babcbcd625be1350842d0319e761d30aefb09a58a. -// -// Solidity: event PermissionRevoked(uint128 indexed accountId, bytes32 indexed permission, address indexed user, address sender) -func (_CoreOptimism *CoreOptimismFilterer) ParsePermissionRevoked(log types.Log) (*CoreOptimismPermissionRevoked, error) { - event := new(CoreOptimismPermissionRevoked) - if err := _CoreOptimism.contract.UnpackLog(event, "PermissionRevoked", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismPoolApprovedAddedIterator is returned from FilterPoolApprovedAdded and is used to iterate over the raw logs and unpacked data for PoolApprovedAdded events raised by the CoreOptimism contract. -type CoreOptimismPoolApprovedAddedIterator struct { - Event *CoreOptimismPoolApprovedAdded // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismPoolApprovedAddedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismPoolApprovedAdded) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismPoolApprovedAdded) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismPoolApprovedAddedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismPoolApprovedAddedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismPoolApprovedAdded represents a PoolApprovedAdded event raised by the CoreOptimism contract. -type CoreOptimismPoolApprovedAdded struct { - PoolId *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterPoolApprovedAdded is a free log retrieval operation binding the contract event 0x7d5bdf4e8c44e0b5a8249bf03c2a1febd848cc7f580efd7b1703301c5b1a9e4e. -// -// Solidity: event PoolApprovedAdded(uint256 poolId) -func (_CoreOptimism *CoreOptimismFilterer) FilterPoolApprovedAdded(opts *bind.FilterOpts) (*CoreOptimismPoolApprovedAddedIterator, error) { - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "PoolApprovedAdded") - if err != nil { - return nil, err - } - return &CoreOptimismPoolApprovedAddedIterator{contract: _CoreOptimism.contract, event: "PoolApprovedAdded", logs: logs, sub: sub}, nil -} - -// WatchPoolApprovedAdded is a free log subscription operation binding the contract event 0x7d5bdf4e8c44e0b5a8249bf03c2a1febd848cc7f580efd7b1703301c5b1a9e4e. -// -// Solidity: event PoolApprovedAdded(uint256 poolId) -func (_CoreOptimism *CoreOptimismFilterer) WatchPoolApprovedAdded(opts *bind.WatchOpts, sink chan<- *CoreOptimismPoolApprovedAdded) (event.Subscription, error) { - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "PoolApprovedAdded") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismPoolApprovedAdded) - if err := _CoreOptimism.contract.UnpackLog(event, "PoolApprovedAdded", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParsePoolApprovedAdded is a log parse operation binding the contract event 0x7d5bdf4e8c44e0b5a8249bf03c2a1febd848cc7f580efd7b1703301c5b1a9e4e. -// -// Solidity: event PoolApprovedAdded(uint256 poolId) -func (_CoreOptimism *CoreOptimismFilterer) ParsePoolApprovedAdded(log types.Log) (*CoreOptimismPoolApprovedAdded, error) { - event := new(CoreOptimismPoolApprovedAdded) - if err := _CoreOptimism.contract.UnpackLog(event, "PoolApprovedAdded", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismPoolApprovedRemovedIterator is returned from FilterPoolApprovedRemoved and is used to iterate over the raw logs and unpacked data for PoolApprovedRemoved events raised by the CoreOptimism contract. -type CoreOptimismPoolApprovedRemovedIterator struct { - Event *CoreOptimismPoolApprovedRemoved // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismPoolApprovedRemovedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismPoolApprovedRemoved) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismPoolApprovedRemoved) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismPoolApprovedRemovedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismPoolApprovedRemovedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismPoolApprovedRemoved represents a PoolApprovedRemoved event raised by the CoreOptimism contract. -type CoreOptimismPoolApprovedRemoved struct { - PoolId *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterPoolApprovedRemoved is a free log retrieval operation binding the contract event 0xc1567ee9983f306f073ea7d59a7fb5680ce07985f8b49cc50d00a3a9f748d3c2. -// -// Solidity: event PoolApprovedRemoved(uint256 poolId) -func (_CoreOptimism *CoreOptimismFilterer) FilterPoolApprovedRemoved(opts *bind.FilterOpts) (*CoreOptimismPoolApprovedRemovedIterator, error) { - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "PoolApprovedRemoved") - if err != nil { - return nil, err - } - return &CoreOptimismPoolApprovedRemovedIterator{contract: _CoreOptimism.contract, event: "PoolApprovedRemoved", logs: logs, sub: sub}, nil -} - -// WatchPoolApprovedRemoved is a free log subscription operation binding the contract event 0xc1567ee9983f306f073ea7d59a7fb5680ce07985f8b49cc50d00a3a9f748d3c2. -// -// Solidity: event PoolApprovedRemoved(uint256 poolId) -func (_CoreOptimism *CoreOptimismFilterer) WatchPoolApprovedRemoved(opts *bind.WatchOpts, sink chan<- *CoreOptimismPoolApprovedRemoved) (event.Subscription, error) { - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "PoolApprovedRemoved") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismPoolApprovedRemoved) - if err := _CoreOptimism.contract.UnpackLog(event, "PoolApprovedRemoved", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParsePoolApprovedRemoved is a log parse operation binding the contract event 0xc1567ee9983f306f073ea7d59a7fb5680ce07985f8b49cc50d00a3a9f748d3c2. -// -// Solidity: event PoolApprovedRemoved(uint256 poolId) -func (_CoreOptimism *CoreOptimismFilterer) ParsePoolApprovedRemoved(log types.Log) (*CoreOptimismPoolApprovedRemoved, error) { - event := new(CoreOptimismPoolApprovedRemoved) - if err := _CoreOptimism.contract.UnpackLog(event, "PoolApprovedRemoved", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismPoolCollateralConfigurationUpdatedIterator is returned from FilterPoolCollateralConfigurationUpdated and is used to iterate over the raw logs and unpacked data for PoolCollateralConfigurationUpdated events raised by the CoreOptimism contract. -type CoreOptimismPoolCollateralConfigurationUpdatedIterator struct { - Event *CoreOptimismPoolCollateralConfigurationUpdated // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismPoolCollateralConfigurationUpdatedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismPoolCollateralConfigurationUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismPoolCollateralConfigurationUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismPoolCollateralConfigurationUpdatedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismPoolCollateralConfigurationUpdatedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismPoolCollateralConfigurationUpdated represents a PoolCollateralConfigurationUpdated event raised by the CoreOptimism contract. -type CoreOptimismPoolCollateralConfigurationUpdated struct { - PoolId *big.Int - CollateralType common.Address - Config PoolCollateralConfigurationData - Raw types.Log // Blockchain specific contextual infos -} - -// FilterPoolCollateralConfigurationUpdated is a free log retrieval operation binding the contract event 0x5ebb5c59166ab9735b293a159ee2129e61d16b526867763f25557a275a2aad92. -// -// Solidity: event PoolCollateralConfigurationUpdated(uint128 indexed poolId, address collateralType, (uint256,uint256) config) -func (_CoreOptimism *CoreOptimismFilterer) FilterPoolCollateralConfigurationUpdated(opts *bind.FilterOpts, poolId []*big.Int) (*CoreOptimismPoolCollateralConfigurationUpdatedIterator, error) { - - var poolIdRule []interface{} - for _, poolIdItem := range poolId { - poolIdRule = append(poolIdRule, poolIdItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "PoolCollateralConfigurationUpdated", poolIdRule) - if err != nil { - return nil, err - } - return &CoreOptimismPoolCollateralConfigurationUpdatedIterator{contract: _CoreOptimism.contract, event: "PoolCollateralConfigurationUpdated", logs: logs, sub: sub}, nil -} - -// WatchPoolCollateralConfigurationUpdated is a free log subscription operation binding the contract event 0x5ebb5c59166ab9735b293a159ee2129e61d16b526867763f25557a275a2aad92. -// -// Solidity: event PoolCollateralConfigurationUpdated(uint128 indexed poolId, address collateralType, (uint256,uint256) config) -func (_CoreOptimism *CoreOptimismFilterer) WatchPoolCollateralConfigurationUpdated(opts *bind.WatchOpts, sink chan<- *CoreOptimismPoolCollateralConfigurationUpdated, poolId []*big.Int) (event.Subscription, error) { - - var poolIdRule []interface{} - for _, poolIdItem := range poolId { - poolIdRule = append(poolIdRule, poolIdItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "PoolCollateralConfigurationUpdated", poolIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismPoolCollateralConfigurationUpdated) - if err := _CoreOptimism.contract.UnpackLog(event, "PoolCollateralConfigurationUpdated", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParsePoolCollateralConfigurationUpdated is a log parse operation binding the contract event 0x5ebb5c59166ab9735b293a159ee2129e61d16b526867763f25557a275a2aad92. -// -// Solidity: event PoolCollateralConfigurationUpdated(uint128 indexed poolId, address collateralType, (uint256,uint256) config) -func (_CoreOptimism *CoreOptimismFilterer) ParsePoolCollateralConfigurationUpdated(log types.Log) (*CoreOptimismPoolCollateralConfigurationUpdated, error) { - event := new(CoreOptimismPoolCollateralConfigurationUpdated) - if err := _CoreOptimism.contract.UnpackLog(event, "PoolCollateralConfigurationUpdated", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismPoolCollateralDisabledByDefaultSetIterator is returned from FilterPoolCollateralDisabledByDefaultSet and is used to iterate over the raw logs and unpacked data for PoolCollateralDisabledByDefaultSet events raised by the CoreOptimism contract. -type CoreOptimismPoolCollateralDisabledByDefaultSetIterator struct { - Event *CoreOptimismPoolCollateralDisabledByDefaultSet // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismPoolCollateralDisabledByDefaultSetIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismPoolCollateralDisabledByDefaultSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismPoolCollateralDisabledByDefaultSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismPoolCollateralDisabledByDefaultSetIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismPoolCollateralDisabledByDefaultSetIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismPoolCollateralDisabledByDefaultSet represents a PoolCollateralDisabledByDefaultSet event raised by the CoreOptimism contract. -type CoreOptimismPoolCollateralDisabledByDefaultSet struct { - PoolId *big.Int - Disabled bool - Raw types.Log // Blockchain specific contextual infos -} - -// FilterPoolCollateralDisabledByDefaultSet is a free log retrieval operation binding the contract event 0xe0ed98ef42e6a4a881ae0d3c4459c9ed06a36a2144e02efc11823c6cae515bf2. -// -// Solidity: event PoolCollateralDisabledByDefaultSet(uint128 poolId, bool disabled) -func (_CoreOptimism *CoreOptimismFilterer) FilterPoolCollateralDisabledByDefaultSet(opts *bind.FilterOpts) (*CoreOptimismPoolCollateralDisabledByDefaultSetIterator, error) { - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "PoolCollateralDisabledByDefaultSet") - if err != nil { - return nil, err - } - return &CoreOptimismPoolCollateralDisabledByDefaultSetIterator{contract: _CoreOptimism.contract, event: "PoolCollateralDisabledByDefaultSet", logs: logs, sub: sub}, nil -} - -// WatchPoolCollateralDisabledByDefaultSet is a free log subscription operation binding the contract event 0xe0ed98ef42e6a4a881ae0d3c4459c9ed06a36a2144e02efc11823c6cae515bf2. -// -// Solidity: event PoolCollateralDisabledByDefaultSet(uint128 poolId, bool disabled) -func (_CoreOptimism *CoreOptimismFilterer) WatchPoolCollateralDisabledByDefaultSet(opts *bind.WatchOpts, sink chan<- *CoreOptimismPoolCollateralDisabledByDefaultSet) (event.Subscription, error) { - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "PoolCollateralDisabledByDefaultSet") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismPoolCollateralDisabledByDefaultSet) - if err := _CoreOptimism.contract.UnpackLog(event, "PoolCollateralDisabledByDefaultSet", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParsePoolCollateralDisabledByDefaultSet is a log parse operation binding the contract event 0xe0ed98ef42e6a4a881ae0d3c4459c9ed06a36a2144e02efc11823c6cae515bf2. -// -// Solidity: event PoolCollateralDisabledByDefaultSet(uint128 poolId, bool disabled) -func (_CoreOptimism *CoreOptimismFilterer) ParsePoolCollateralDisabledByDefaultSet(log types.Log) (*CoreOptimismPoolCollateralDisabledByDefaultSet, error) { - event := new(CoreOptimismPoolCollateralDisabledByDefaultSet) - if err := _CoreOptimism.contract.UnpackLog(event, "PoolCollateralDisabledByDefaultSet", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismPoolConfigurationSetIterator is returned from FilterPoolConfigurationSet and is used to iterate over the raw logs and unpacked data for PoolConfigurationSet events raised by the CoreOptimism contract. -type CoreOptimismPoolConfigurationSetIterator struct { - Event *CoreOptimismPoolConfigurationSet // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismPoolConfigurationSetIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismPoolConfigurationSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismPoolConfigurationSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismPoolConfigurationSetIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismPoolConfigurationSetIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismPoolConfigurationSet represents a PoolConfigurationSet event raised by the CoreOptimism contract. -type CoreOptimismPoolConfigurationSet struct { - PoolId *big.Int - Markets []MarketConfigurationData - Sender common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterPoolConfigurationSet is a free log retrieval operation binding the contract event 0xdd812c2e47943d98e6c66b2b9872d1f9270b8523c82eb60ad5c8d580a614081c. -// -// Solidity: event PoolConfigurationSet(uint128 indexed poolId, (uint128,uint128,int128)[] markets, address indexed sender) -func (_CoreOptimism *CoreOptimismFilterer) FilterPoolConfigurationSet(opts *bind.FilterOpts, poolId []*big.Int, sender []common.Address) (*CoreOptimismPoolConfigurationSetIterator, error) { - - var poolIdRule []interface{} - for _, poolIdItem := range poolId { - poolIdRule = append(poolIdRule, poolIdItem) - } - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "PoolConfigurationSet", poolIdRule, senderRule) - if err != nil { - return nil, err - } - return &CoreOptimismPoolConfigurationSetIterator{contract: _CoreOptimism.contract, event: "PoolConfigurationSet", logs: logs, sub: sub}, nil -} - -// WatchPoolConfigurationSet is a free log subscription operation binding the contract event 0xdd812c2e47943d98e6c66b2b9872d1f9270b8523c82eb60ad5c8d580a614081c. -// -// Solidity: event PoolConfigurationSet(uint128 indexed poolId, (uint128,uint128,int128)[] markets, address indexed sender) -func (_CoreOptimism *CoreOptimismFilterer) WatchPoolConfigurationSet(opts *bind.WatchOpts, sink chan<- *CoreOptimismPoolConfigurationSet, poolId []*big.Int, sender []common.Address) (event.Subscription, error) { - - var poolIdRule []interface{} - for _, poolIdItem := range poolId { - poolIdRule = append(poolIdRule, poolIdItem) - } - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "PoolConfigurationSet", poolIdRule, senderRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismPoolConfigurationSet) - if err := _CoreOptimism.contract.UnpackLog(event, "PoolConfigurationSet", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParsePoolConfigurationSet is a log parse operation binding the contract event 0xdd812c2e47943d98e6c66b2b9872d1f9270b8523c82eb60ad5c8d580a614081c. -// -// Solidity: event PoolConfigurationSet(uint128 indexed poolId, (uint128,uint128,int128)[] markets, address indexed sender) -func (_CoreOptimism *CoreOptimismFilterer) ParsePoolConfigurationSet(log types.Log) (*CoreOptimismPoolConfigurationSet, error) { - event := new(CoreOptimismPoolConfigurationSet) - if err := _CoreOptimism.contract.UnpackLog(event, "PoolConfigurationSet", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismPoolCreatedIterator is returned from FilterPoolCreated and is used to iterate over the raw logs and unpacked data for PoolCreated events raised by the CoreOptimism contract. -type CoreOptimismPoolCreatedIterator struct { - Event *CoreOptimismPoolCreated // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismPoolCreatedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismPoolCreated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismPoolCreated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismPoolCreatedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismPoolCreatedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismPoolCreated represents a PoolCreated event raised by the CoreOptimism contract. -type CoreOptimismPoolCreated struct { - PoolId *big.Int - Owner common.Address - Sender common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterPoolCreated is a free log retrieval operation binding the contract event 0xb1517ad708e5f9a104c30d3f1ff749d55833b1d03bf472013c29888e741cf340. -// -// Solidity: event PoolCreated(uint128 indexed poolId, address indexed owner, address indexed sender) -func (_CoreOptimism *CoreOptimismFilterer) FilterPoolCreated(opts *bind.FilterOpts, poolId []*big.Int, owner []common.Address, sender []common.Address) (*CoreOptimismPoolCreatedIterator, error) { - - var poolIdRule []interface{} - for _, poolIdItem := range poolId { - poolIdRule = append(poolIdRule, poolIdItem) - } - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "PoolCreated", poolIdRule, ownerRule, senderRule) - if err != nil { - return nil, err - } - return &CoreOptimismPoolCreatedIterator{contract: _CoreOptimism.contract, event: "PoolCreated", logs: logs, sub: sub}, nil -} - -// WatchPoolCreated is a free log subscription operation binding the contract event 0xb1517ad708e5f9a104c30d3f1ff749d55833b1d03bf472013c29888e741cf340. -// -// Solidity: event PoolCreated(uint128 indexed poolId, address indexed owner, address indexed sender) -func (_CoreOptimism *CoreOptimismFilterer) WatchPoolCreated(opts *bind.WatchOpts, sink chan<- *CoreOptimismPoolCreated, poolId []*big.Int, owner []common.Address, sender []common.Address) (event.Subscription, error) { - - var poolIdRule []interface{} - for _, poolIdItem := range poolId { - poolIdRule = append(poolIdRule, poolIdItem) - } - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "PoolCreated", poolIdRule, ownerRule, senderRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismPoolCreated) - if err := _CoreOptimism.contract.UnpackLog(event, "PoolCreated", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParsePoolCreated is a log parse operation binding the contract event 0xb1517ad708e5f9a104c30d3f1ff749d55833b1d03bf472013c29888e741cf340. -// -// Solidity: event PoolCreated(uint128 indexed poolId, address indexed owner, address indexed sender) -func (_CoreOptimism *CoreOptimismFilterer) ParsePoolCreated(log types.Log) (*CoreOptimismPoolCreated, error) { - event := new(CoreOptimismPoolCreated) - if err := _CoreOptimism.contract.UnpackLog(event, "PoolCreated", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismPoolNameUpdatedIterator is returned from FilterPoolNameUpdated and is used to iterate over the raw logs and unpacked data for PoolNameUpdated events raised by the CoreOptimism contract. -type CoreOptimismPoolNameUpdatedIterator struct { - Event *CoreOptimismPoolNameUpdated // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismPoolNameUpdatedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismPoolNameUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismPoolNameUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismPoolNameUpdatedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismPoolNameUpdatedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismPoolNameUpdated represents a PoolNameUpdated event raised by the CoreOptimism contract. -type CoreOptimismPoolNameUpdated struct { - PoolId *big.Int - Name string - Sender common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterPoolNameUpdated is a free log retrieval operation binding the contract event 0x63b42abaf7e145a993f20bc64259f45d09c43d18838ab0bca078b15093ac55f4. -// -// Solidity: event PoolNameUpdated(uint128 indexed poolId, string name, address indexed sender) -func (_CoreOptimism *CoreOptimismFilterer) FilterPoolNameUpdated(opts *bind.FilterOpts, poolId []*big.Int, sender []common.Address) (*CoreOptimismPoolNameUpdatedIterator, error) { - - var poolIdRule []interface{} - for _, poolIdItem := range poolId { - poolIdRule = append(poolIdRule, poolIdItem) - } - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "PoolNameUpdated", poolIdRule, senderRule) - if err != nil { - return nil, err - } - return &CoreOptimismPoolNameUpdatedIterator{contract: _CoreOptimism.contract, event: "PoolNameUpdated", logs: logs, sub: sub}, nil -} - -// WatchPoolNameUpdated is a free log subscription operation binding the contract event 0x63b42abaf7e145a993f20bc64259f45d09c43d18838ab0bca078b15093ac55f4. -// -// Solidity: event PoolNameUpdated(uint128 indexed poolId, string name, address indexed sender) -func (_CoreOptimism *CoreOptimismFilterer) WatchPoolNameUpdated(opts *bind.WatchOpts, sink chan<- *CoreOptimismPoolNameUpdated, poolId []*big.Int, sender []common.Address) (event.Subscription, error) { - - var poolIdRule []interface{} - for _, poolIdItem := range poolId { - poolIdRule = append(poolIdRule, poolIdItem) - } - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "PoolNameUpdated", poolIdRule, senderRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismPoolNameUpdated) - if err := _CoreOptimism.contract.UnpackLog(event, "PoolNameUpdated", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParsePoolNameUpdated is a log parse operation binding the contract event 0x63b42abaf7e145a993f20bc64259f45d09c43d18838ab0bca078b15093ac55f4. -// -// Solidity: event PoolNameUpdated(uint128 indexed poolId, string name, address indexed sender) -func (_CoreOptimism *CoreOptimismFilterer) ParsePoolNameUpdated(log types.Log) (*CoreOptimismPoolNameUpdated, error) { - event := new(CoreOptimismPoolNameUpdated) - if err := _CoreOptimism.contract.UnpackLog(event, "PoolNameUpdated", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismPoolNominationRenouncedIterator is returned from FilterPoolNominationRenounced and is used to iterate over the raw logs and unpacked data for PoolNominationRenounced events raised by the CoreOptimism contract. -type CoreOptimismPoolNominationRenouncedIterator struct { - Event *CoreOptimismPoolNominationRenounced // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismPoolNominationRenouncedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismPoolNominationRenounced) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismPoolNominationRenounced) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismPoolNominationRenouncedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismPoolNominationRenouncedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismPoolNominationRenounced represents a PoolNominationRenounced event raised by the CoreOptimism contract. -type CoreOptimismPoolNominationRenounced struct { - PoolId *big.Int - Owner common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterPoolNominationRenounced is a free log retrieval operation binding the contract event 0x28301da5fb0feefb138efa6310af4547a74f415d62616f90519436dc169c3ae0. -// -// Solidity: event PoolNominationRenounced(uint128 indexed poolId, address indexed owner) -func (_CoreOptimism *CoreOptimismFilterer) FilterPoolNominationRenounced(opts *bind.FilterOpts, poolId []*big.Int, owner []common.Address) (*CoreOptimismPoolNominationRenouncedIterator, error) { - - var poolIdRule []interface{} - for _, poolIdItem := range poolId { - poolIdRule = append(poolIdRule, poolIdItem) - } - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "PoolNominationRenounced", poolIdRule, ownerRule) - if err != nil { - return nil, err - } - return &CoreOptimismPoolNominationRenouncedIterator{contract: _CoreOptimism.contract, event: "PoolNominationRenounced", logs: logs, sub: sub}, nil -} - -// WatchPoolNominationRenounced is a free log subscription operation binding the contract event 0x28301da5fb0feefb138efa6310af4547a74f415d62616f90519436dc169c3ae0. -// -// Solidity: event PoolNominationRenounced(uint128 indexed poolId, address indexed owner) -func (_CoreOptimism *CoreOptimismFilterer) WatchPoolNominationRenounced(opts *bind.WatchOpts, sink chan<- *CoreOptimismPoolNominationRenounced, poolId []*big.Int, owner []common.Address) (event.Subscription, error) { - - var poolIdRule []interface{} - for _, poolIdItem := range poolId { - poolIdRule = append(poolIdRule, poolIdItem) - } - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "PoolNominationRenounced", poolIdRule, ownerRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismPoolNominationRenounced) - if err := _CoreOptimism.contract.UnpackLog(event, "PoolNominationRenounced", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParsePoolNominationRenounced is a log parse operation binding the contract event 0x28301da5fb0feefb138efa6310af4547a74f415d62616f90519436dc169c3ae0. -// -// Solidity: event PoolNominationRenounced(uint128 indexed poolId, address indexed owner) -func (_CoreOptimism *CoreOptimismFilterer) ParsePoolNominationRenounced(log types.Log) (*CoreOptimismPoolNominationRenounced, error) { - event := new(CoreOptimismPoolNominationRenounced) - if err := _CoreOptimism.contract.UnpackLog(event, "PoolNominationRenounced", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismPoolNominationRevokedIterator is returned from FilterPoolNominationRevoked and is used to iterate over the raw logs and unpacked data for PoolNominationRevoked events raised by the CoreOptimism contract. -type CoreOptimismPoolNominationRevokedIterator struct { - Event *CoreOptimismPoolNominationRevoked // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismPoolNominationRevokedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismPoolNominationRevoked) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismPoolNominationRevoked) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismPoolNominationRevokedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismPoolNominationRevokedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismPoolNominationRevoked represents a PoolNominationRevoked event raised by the CoreOptimism contract. -type CoreOptimismPoolNominationRevoked struct { - PoolId *big.Int - Owner common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterPoolNominationRevoked is a free log retrieval operation binding the contract event 0xa20a605599b6da4a06e0662f1284c442a576bc452b77a38c8c55805cb82a1865. -// -// Solidity: event PoolNominationRevoked(uint128 indexed poolId, address indexed owner) -func (_CoreOptimism *CoreOptimismFilterer) FilterPoolNominationRevoked(opts *bind.FilterOpts, poolId []*big.Int, owner []common.Address) (*CoreOptimismPoolNominationRevokedIterator, error) { - - var poolIdRule []interface{} - for _, poolIdItem := range poolId { - poolIdRule = append(poolIdRule, poolIdItem) - } - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "PoolNominationRevoked", poolIdRule, ownerRule) - if err != nil { - return nil, err - } - return &CoreOptimismPoolNominationRevokedIterator{contract: _CoreOptimism.contract, event: "PoolNominationRevoked", logs: logs, sub: sub}, nil -} - -// WatchPoolNominationRevoked is a free log subscription operation binding the contract event 0xa20a605599b6da4a06e0662f1284c442a576bc452b77a38c8c55805cb82a1865. -// -// Solidity: event PoolNominationRevoked(uint128 indexed poolId, address indexed owner) -func (_CoreOptimism *CoreOptimismFilterer) WatchPoolNominationRevoked(opts *bind.WatchOpts, sink chan<- *CoreOptimismPoolNominationRevoked, poolId []*big.Int, owner []common.Address) (event.Subscription, error) { - - var poolIdRule []interface{} - for _, poolIdItem := range poolId { - poolIdRule = append(poolIdRule, poolIdItem) - } - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "PoolNominationRevoked", poolIdRule, ownerRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismPoolNominationRevoked) - if err := _CoreOptimism.contract.UnpackLog(event, "PoolNominationRevoked", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParsePoolNominationRevoked is a log parse operation binding the contract event 0xa20a605599b6da4a06e0662f1284c442a576bc452b77a38c8c55805cb82a1865. -// -// Solidity: event PoolNominationRevoked(uint128 indexed poolId, address indexed owner) -func (_CoreOptimism *CoreOptimismFilterer) ParsePoolNominationRevoked(log types.Log) (*CoreOptimismPoolNominationRevoked, error) { - event := new(CoreOptimismPoolNominationRevoked) - if err := _CoreOptimism.contract.UnpackLog(event, "PoolNominationRevoked", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismPoolOwnerNominatedIterator is returned from FilterPoolOwnerNominated and is used to iterate over the raw logs and unpacked data for PoolOwnerNominated events raised by the CoreOptimism contract. -type CoreOptimismPoolOwnerNominatedIterator struct { - Event *CoreOptimismPoolOwnerNominated // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismPoolOwnerNominatedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismPoolOwnerNominated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismPoolOwnerNominated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismPoolOwnerNominatedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismPoolOwnerNominatedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismPoolOwnerNominated represents a PoolOwnerNominated event raised by the CoreOptimism contract. -type CoreOptimismPoolOwnerNominated struct { - PoolId *big.Int - NominatedOwner common.Address - Owner common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterPoolOwnerNominated is a free log retrieval operation binding the contract event 0x55d98f82a53fb5776e9ea48d624ab9cb015b51a45249b1ed8425fc857c82f4f8. -// -// Solidity: event PoolOwnerNominated(uint128 indexed poolId, address indexed nominatedOwner, address indexed owner) -func (_CoreOptimism *CoreOptimismFilterer) FilterPoolOwnerNominated(opts *bind.FilterOpts, poolId []*big.Int, nominatedOwner []common.Address, owner []common.Address) (*CoreOptimismPoolOwnerNominatedIterator, error) { - - var poolIdRule []interface{} - for _, poolIdItem := range poolId { - poolIdRule = append(poolIdRule, poolIdItem) - } - var nominatedOwnerRule []interface{} - for _, nominatedOwnerItem := range nominatedOwner { - nominatedOwnerRule = append(nominatedOwnerRule, nominatedOwnerItem) - } - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "PoolOwnerNominated", poolIdRule, nominatedOwnerRule, ownerRule) - if err != nil { - return nil, err - } - return &CoreOptimismPoolOwnerNominatedIterator{contract: _CoreOptimism.contract, event: "PoolOwnerNominated", logs: logs, sub: sub}, nil -} - -// WatchPoolOwnerNominated is a free log subscription operation binding the contract event 0x55d98f82a53fb5776e9ea48d624ab9cb015b51a45249b1ed8425fc857c82f4f8. -// -// Solidity: event PoolOwnerNominated(uint128 indexed poolId, address indexed nominatedOwner, address indexed owner) -func (_CoreOptimism *CoreOptimismFilterer) WatchPoolOwnerNominated(opts *bind.WatchOpts, sink chan<- *CoreOptimismPoolOwnerNominated, poolId []*big.Int, nominatedOwner []common.Address, owner []common.Address) (event.Subscription, error) { - - var poolIdRule []interface{} - for _, poolIdItem := range poolId { - poolIdRule = append(poolIdRule, poolIdItem) - } - var nominatedOwnerRule []interface{} - for _, nominatedOwnerItem := range nominatedOwner { - nominatedOwnerRule = append(nominatedOwnerRule, nominatedOwnerItem) - } - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "PoolOwnerNominated", poolIdRule, nominatedOwnerRule, ownerRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismPoolOwnerNominated) - if err := _CoreOptimism.contract.UnpackLog(event, "PoolOwnerNominated", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParsePoolOwnerNominated is a log parse operation binding the contract event 0x55d98f82a53fb5776e9ea48d624ab9cb015b51a45249b1ed8425fc857c82f4f8. -// -// Solidity: event PoolOwnerNominated(uint128 indexed poolId, address indexed nominatedOwner, address indexed owner) -func (_CoreOptimism *CoreOptimismFilterer) ParsePoolOwnerNominated(log types.Log) (*CoreOptimismPoolOwnerNominated, error) { - event := new(CoreOptimismPoolOwnerNominated) - if err := _CoreOptimism.contract.UnpackLog(event, "PoolOwnerNominated", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismPoolOwnershipAcceptedIterator is returned from FilterPoolOwnershipAccepted and is used to iterate over the raw logs and unpacked data for PoolOwnershipAccepted events raised by the CoreOptimism contract. -type CoreOptimismPoolOwnershipAcceptedIterator struct { - Event *CoreOptimismPoolOwnershipAccepted // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismPoolOwnershipAcceptedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismPoolOwnershipAccepted) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismPoolOwnershipAccepted) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismPoolOwnershipAcceptedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismPoolOwnershipAcceptedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismPoolOwnershipAccepted represents a PoolOwnershipAccepted event raised by the CoreOptimism contract. -type CoreOptimismPoolOwnershipAccepted struct { - PoolId *big.Int - Owner common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterPoolOwnershipAccepted is a free log retrieval operation binding the contract event 0x4f86f2ce8b08e27d0e470f4269b71c3bbc68407d51a2e692f6573236074ebc5a. -// -// Solidity: event PoolOwnershipAccepted(uint128 indexed poolId, address indexed owner) -func (_CoreOptimism *CoreOptimismFilterer) FilterPoolOwnershipAccepted(opts *bind.FilterOpts, poolId []*big.Int, owner []common.Address) (*CoreOptimismPoolOwnershipAcceptedIterator, error) { - - var poolIdRule []interface{} - for _, poolIdItem := range poolId { - poolIdRule = append(poolIdRule, poolIdItem) - } - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "PoolOwnershipAccepted", poolIdRule, ownerRule) - if err != nil { - return nil, err - } - return &CoreOptimismPoolOwnershipAcceptedIterator{contract: _CoreOptimism.contract, event: "PoolOwnershipAccepted", logs: logs, sub: sub}, nil -} - -// WatchPoolOwnershipAccepted is a free log subscription operation binding the contract event 0x4f86f2ce8b08e27d0e470f4269b71c3bbc68407d51a2e692f6573236074ebc5a. -// -// Solidity: event PoolOwnershipAccepted(uint128 indexed poolId, address indexed owner) -func (_CoreOptimism *CoreOptimismFilterer) WatchPoolOwnershipAccepted(opts *bind.WatchOpts, sink chan<- *CoreOptimismPoolOwnershipAccepted, poolId []*big.Int, owner []common.Address) (event.Subscription, error) { - - var poolIdRule []interface{} - for _, poolIdItem := range poolId { - poolIdRule = append(poolIdRule, poolIdItem) - } - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "PoolOwnershipAccepted", poolIdRule, ownerRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismPoolOwnershipAccepted) - if err := _CoreOptimism.contract.UnpackLog(event, "PoolOwnershipAccepted", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParsePoolOwnershipAccepted is a log parse operation binding the contract event 0x4f86f2ce8b08e27d0e470f4269b71c3bbc68407d51a2e692f6573236074ebc5a. -// -// Solidity: event PoolOwnershipAccepted(uint128 indexed poolId, address indexed owner) -func (_CoreOptimism *CoreOptimismFilterer) ParsePoolOwnershipAccepted(log types.Log) (*CoreOptimismPoolOwnershipAccepted, error) { - event := new(CoreOptimismPoolOwnershipAccepted) - if err := _CoreOptimism.contract.UnpackLog(event, "PoolOwnershipAccepted", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismPreferredPoolSetIterator is returned from FilterPreferredPoolSet and is used to iterate over the raw logs and unpacked data for PreferredPoolSet events raised by the CoreOptimism contract. -type CoreOptimismPreferredPoolSetIterator struct { - Event *CoreOptimismPreferredPoolSet // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismPreferredPoolSetIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismPreferredPoolSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismPreferredPoolSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismPreferredPoolSetIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismPreferredPoolSetIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismPreferredPoolSet represents a PreferredPoolSet event raised by the CoreOptimism contract. -type CoreOptimismPreferredPoolSet struct { - PoolId *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterPreferredPoolSet is a free log retrieval operation binding the contract event 0x7e7cb4726e710dc12fad41f158c37a4a71af3a6f053b8b13670d35c710139a56. -// -// Solidity: event PreferredPoolSet(uint256 poolId) -func (_CoreOptimism *CoreOptimismFilterer) FilterPreferredPoolSet(opts *bind.FilterOpts) (*CoreOptimismPreferredPoolSetIterator, error) { - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "PreferredPoolSet") - if err != nil { - return nil, err - } - return &CoreOptimismPreferredPoolSetIterator{contract: _CoreOptimism.contract, event: "PreferredPoolSet", logs: logs, sub: sub}, nil -} - -// WatchPreferredPoolSet is a free log subscription operation binding the contract event 0x7e7cb4726e710dc12fad41f158c37a4a71af3a6f053b8b13670d35c710139a56. -// -// Solidity: event PreferredPoolSet(uint256 poolId) -func (_CoreOptimism *CoreOptimismFilterer) WatchPreferredPoolSet(opts *bind.WatchOpts, sink chan<- *CoreOptimismPreferredPoolSet) (event.Subscription, error) { - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "PreferredPoolSet") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismPreferredPoolSet) - if err := _CoreOptimism.contract.UnpackLog(event, "PreferredPoolSet", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParsePreferredPoolSet is a log parse operation binding the contract event 0x7e7cb4726e710dc12fad41f158c37a4a71af3a6f053b8b13670d35c710139a56. -// -// Solidity: event PreferredPoolSet(uint256 poolId) -func (_CoreOptimism *CoreOptimismFilterer) ParsePreferredPoolSet(log types.Log) (*CoreOptimismPreferredPoolSet, error) { - event := new(CoreOptimismPreferredPoolSet) - if err := _CoreOptimism.contract.UnpackLog(event, "PreferredPoolSet", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismRewardsClaimedIterator is returned from FilterRewardsClaimed and is used to iterate over the raw logs and unpacked data for RewardsClaimed events raised by the CoreOptimism contract. -type CoreOptimismRewardsClaimedIterator struct { - Event *CoreOptimismRewardsClaimed // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismRewardsClaimedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismRewardsClaimed) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismRewardsClaimed) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismRewardsClaimedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismRewardsClaimedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismRewardsClaimed represents a RewardsClaimed event raised by the CoreOptimism contract. -type CoreOptimismRewardsClaimed struct { - AccountId *big.Int - PoolId *big.Int - CollateralType common.Address - Distributor common.Address - Amount *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterRewardsClaimed is a free log retrieval operation binding the contract event 0xa4a60be4203e7975e54ab5314c7e9e18aba9ad71e8da714d8de987f4f05410f2. -// -// Solidity: event RewardsClaimed(uint128 indexed accountId, uint128 indexed poolId, address indexed collateralType, address distributor, uint256 amount) -func (_CoreOptimism *CoreOptimismFilterer) FilterRewardsClaimed(opts *bind.FilterOpts, accountId []*big.Int, poolId []*big.Int, collateralType []common.Address) (*CoreOptimismRewardsClaimedIterator, error) { - - var accountIdRule []interface{} - for _, accountIdItem := range accountId { - accountIdRule = append(accountIdRule, accountIdItem) - } - var poolIdRule []interface{} - for _, poolIdItem := range poolId { - poolIdRule = append(poolIdRule, poolIdItem) - } - var collateralTypeRule []interface{} - for _, collateralTypeItem := range collateralType { - collateralTypeRule = append(collateralTypeRule, collateralTypeItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "RewardsClaimed", accountIdRule, poolIdRule, collateralTypeRule) - if err != nil { - return nil, err - } - return &CoreOptimismRewardsClaimedIterator{contract: _CoreOptimism.contract, event: "RewardsClaimed", logs: logs, sub: sub}, nil -} - -// WatchRewardsClaimed is a free log subscription operation binding the contract event 0xa4a60be4203e7975e54ab5314c7e9e18aba9ad71e8da714d8de987f4f05410f2. -// -// Solidity: event RewardsClaimed(uint128 indexed accountId, uint128 indexed poolId, address indexed collateralType, address distributor, uint256 amount) -func (_CoreOptimism *CoreOptimismFilterer) WatchRewardsClaimed(opts *bind.WatchOpts, sink chan<- *CoreOptimismRewardsClaimed, accountId []*big.Int, poolId []*big.Int, collateralType []common.Address) (event.Subscription, error) { - - var accountIdRule []interface{} - for _, accountIdItem := range accountId { - accountIdRule = append(accountIdRule, accountIdItem) - } - var poolIdRule []interface{} - for _, poolIdItem := range poolId { - poolIdRule = append(poolIdRule, poolIdItem) - } - var collateralTypeRule []interface{} - for _, collateralTypeItem := range collateralType { - collateralTypeRule = append(collateralTypeRule, collateralTypeItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "RewardsClaimed", accountIdRule, poolIdRule, collateralTypeRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismRewardsClaimed) - if err := _CoreOptimism.contract.UnpackLog(event, "RewardsClaimed", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseRewardsClaimed is a log parse operation binding the contract event 0xa4a60be4203e7975e54ab5314c7e9e18aba9ad71e8da714d8de987f4f05410f2. -// -// Solidity: event RewardsClaimed(uint128 indexed accountId, uint128 indexed poolId, address indexed collateralType, address distributor, uint256 amount) -func (_CoreOptimism *CoreOptimismFilterer) ParseRewardsClaimed(log types.Log) (*CoreOptimismRewardsClaimed, error) { - event := new(CoreOptimismRewardsClaimed) - if err := _CoreOptimism.contract.UnpackLog(event, "RewardsClaimed", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismRewardsDistributedIterator is returned from FilterRewardsDistributed and is used to iterate over the raw logs and unpacked data for RewardsDistributed events raised by the CoreOptimism contract. -type CoreOptimismRewardsDistributedIterator struct { - Event *CoreOptimismRewardsDistributed // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismRewardsDistributedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismRewardsDistributed) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismRewardsDistributed) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismRewardsDistributedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismRewardsDistributedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismRewardsDistributed represents a RewardsDistributed event raised by the CoreOptimism contract. -type CoreOptimismRewardsDistributed struct { - PoolId *big.Int - CollateralType common.Address - Distributor common.Address - Amount *big.Int - Start *big.Int - Duration *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterRewardsDistributed is a free log retrieval operation binding the contract event 0x19ced31d71d1db45f99d5a8d3a7616fe9d78828df58f2a28feb68c9f9ab876ca. -// -// Solidity: event RewardsDistributed(uint128 indexed poolId, address indexed collateralType, address distributor, uint256 amount, uint256 start, uint256 duration) -func (_CoreOptimism *CoreOptimismFilterer) FilterRewardsDistributed(opts *bind.FilterOpts, poolId []*big.Int, collateralType []common.Address) (*CoreOptimismRewardsDistributedIterator, error) { - - var poolIdRule []interface{} - for _, poolIdItem := range poolId { - poolIdRule = append(poolIdRule, poolIdItem) - } - var collateralTypeRule []interface{} - for _, collateralTypeItem := range collateralType { - collateralTypeRule = append(collateralTypeRule, collateralTypeItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "RewardsDistributed", poolIdRule, collateralTypeRule) - if err != nil { - return nil, err - } - return &CoreOptimismRewardsDistributedIterator{contract: _CoreOptimism.contract, event: "RewardsDistributed", logs: logs, sub: sub}, nil -} - -// WatchRewardsDistributed is a free log subscription operation binding the contract event 0x19ced31d71d1db45f99d5a8d3a7616fe9d78828df58f2a28feb68c9f9ab876ca. -// -// Solidity: event RewardsDistributed(uint128 indexed poolId, address indexed collateralType, address distributor, uint256 amount, uint256 start, uint256 duration) -func (_CoreOptimism *CoreOptimismFilterer) WatchRewardsDistributed(opts *bind.WatchOpts, sink chan<- *CoreOptimismRewardsDistributed, poolId []*big.Int, collateralType []common.Address) (event.Subscription, error) { - - var poolIdRule []interface{} - for _, poolIdItem := range poolId { - poolIdRule = append(poolIdRule, poolIdItem) - } - var collateralTypeRule []interface{} - for _, collateralTypeItem := range collateralType { - collateralTypeRule = append(collateralTypeRule, collateralTypeItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "RewardsDistributed", poolIdRule, collateralTypeRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismRewardsDistributed) - if err := _CoreOptimism.contract.UnpackLog(event, "RewardsDistributed", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseRewardsDistributed is a log parse operation binding the contract event 0x19ced31d71d1db45f99d5a8d3a7616fe9d78828df58f2a28feb68c9f9ab876ca. -// -// Solidity: event RewardsDistributed(uint128 indexed poolId, address indexed collateralType, address distributor, uint256 amount, uint256 start, uint256 duration) -func (_CoreOptimism *CoreOptimismFilterer) ParseRewardsDistributed(log types.Log) (*CoreOptimismRewardsDistributed, error) { - event := new(CoreOptimismRewardsDistributed) - if err := _CoreOptimism.contract.UnpackLog(event, "RewardsDistributed", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismRewardsDistributorRegisteredIterator is returned from FilterRewardsDistributorRegistered and is used to iterate over the raw logs and unpacked data for RewardsDistributorRegistered events raised by the CoreOptimism contract. -type CoreOptimismRewardsDistributorRegisteredIterator struct { - Event *CoreOptimismRewardsDistributorRegistered // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismRewardsDistributorRegisteredIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismRewardsDistributorRegistered) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismRewardsDistributorRegistered) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismRewardsDistributorRegisteredIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismRewardsDistributorRegisteredIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismRewardsDistributorRegistered represents a RewardsDistributorRegistered event raised by the CoreOptimism contract. -type CoreOptimismRewardsDistributorRegistered struct { - PoolId *big.Int - CollateralType common.Address - Distributor common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterRewardsDistributorRegistered is a free log retrieval operation binding the contract event 0x9d3609c05a83dc93a5b355d62c2b37dfde8f0833b1184d4d05c6f51cd46b6e5b. -// -// Solidity: event RewardsDistributorRegistered(uint128 indexed poolId, address indexed collateralType, address indexed distributor) -func (_CoreOptimism *CoreOptimismFilterer) FilterRewardsDistributorRegistered(opts *bind.FilterOpts, poolId []*big.Int, collateralType []common.Address, distributor []common.Address) (*CoreOptimismRewardsDistributorRegisteredIterator, error) { - - var poolIdRule []interface{} - for _, poolIdItem := range poolId { - poolIdRule = append(poolIdRule, poolIdItem) - } - var collateralTypeRule []interface{} - for _, collateralTypeItem := range collateralType { - collateralTypeRule = append(collateralTypeRule, collateralTypeItem) - } - var distributorRule []interface{} - for _, distributorItem := range distributor { - distributorRule = append(distributorRule, distributorItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "RewardsDistributorRegistered", poolIdRule, collateralTypeRule, distributorRule) - if err != nil { - return nil, err - } - return &CoreOptimismRewardsDistributorRegisteredIterator{contract: _CoreOptimism.contract, event: "RewardsDistributorRegistered", logs: logs, sub: sub}, nil -} - -// WatchRewardsDistributorRegistered is a free log subscription operation binding the contract event 0x9d3609c05a83dc93a5b355d62c2b37dfde8f0833b1184d4d05c6f51cd46b6e5b. -// -// Solidity: event RewardsDistributorRegistered(uint128 indexed poolId, address indexed collateralType, address indexed distributor) -func (_CoreOptimism *CoreOptimismFilterer) WatchRewardsDistributorRegistered(opts *bind.WatchOpts, sink chan<- *CoreOptimismRewardsDistributorRegistered, poolId []*big.Int, collateralType []common.Address, distributor []common.Address) (event.Subscription, error) { - - var poolIdRule []interface{} - for _, poolIdItem := range poolId { - poolIdRule = append(poolIdRule, poolIdItem) - } - var collateralTypeRule []interface{} - for _, collateralTypeItem := range collateralType { - collateralTypeRule = append(collateralTypeRule, collateralTypeItem) - } - var distributorRule []interface{} - for _, distributorItem := range distributor { - distributorRule = append(distributorRule, distributorItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "RewardsDistributorRegistered", poolIdRule, collateralTypeRule, distributorRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismRewardsDistributorRegistered) - if err := _CoreOptimism.contract.UnpackLog(event, "RewardsDistributorRegistered", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseRewardsDistributorRegistered is a log parse operation binding the contract event 0x9d3609c05a83dc93a5b355d62c2b37dfde8f0833b1184d4d05c6f51cd46b6e5b. -// -// Solidity: event RewardsDistributorRegistered(uint128 indexed poolId, address indexed collateralType, address indexed distributor) -func (_CoreOptimism *CoreOptimismFilterer) ParseRewardsDistributorRegistered(log types.Log) (*CoreOptimismRewardsDistributorRegistered, error) { - event := new(CoreOptimismRewardsDistributorRegistered) - if err := _CoreOptimism.contract.UnpackLog(event, "RewardsDistributorRegistered", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismRewardsDistributorRemovedIterator is returned from FilterRewardsDistributorRemoved and is used to iterate over the raw logs and unpacked data for RewardsDistributorRemoved events raised by the CoreOptimism contract. -type CoreOptimismRewardsDistributorRemovedIterator struct { - Event *CoreOptimismRewardsDistributorRemoved // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismRewardsDistributorRemovedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismRewardsDistributorRemoved) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismRewardsDistributorRemoved) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismRewardsDistributorRemovedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismRewardsDistributorRemovedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismRewardsDistributorRemoved represents a RewardsDistributorRemoved event raised by the CoreOptimism contract. -type CoreOptimismRewardsDistributorRemoved struct { - PoolId *big.Int - CollateralType common.Address - Distributor common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterRewardsDistributorRemoved is a free log retrieval operation binding the contract event 0x375c4507f463c55a506be95e2cfd3cfdc0610be055087eac6049588a1bcfacba. -// -// Solidity: event RewardsDistributorRemoved(uint128 indexed poolId, address indexed collateralType, address indexed distributor) -func (_CoreOptimism *CoreOptimismFilterer) FilterRewardsDistributorRemoved(opts *bind.FilterOpts, poolId []*big.Int, collateralType []common.Address, distributor []common.Address) (*CoreOptimismRewardsDistributorRemovedIterator, error) { - - var poolIdRule []interface{} - for _, poolIdItem := range poolId { - poolIdRule = append(poolIdRule, poolIdItem) - } - var collateralTypeRule []interface{} - for _, collateralTypeItem := range collateralType { - collateralTypeRule = append(collateralTypeRule, collateralTypeItem) - } - var distributorRule []interface{} - for _, distributorItem := range distributor { - distributorRule = append(distributorRule, distributorItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "RewardsDistributorRemoved", poolIdRule, collateralTypeRule, distributorRule) - if err != nil { - return nil, err - } - return &CoreOptimismRewardsDistributorRemovedIterator{contract: _CoreOptimism.contract, event: "RewardsDistributorRemoved", logs: logs, sub: sub}, nil -} - -// WatchRewardsDistributorRemoved is a free log subscription operation binding the contract event 0x375c4507f463c55a506be95e2cfd3cfdc0610be055087eac6049588a1bcfacba. -// -// Solidity: event RewardsDistributorRemoved(uint128 indexed poolId, address indexed collateralType, address indexed distributor) -func (_CoreOptimism *CoreOptimismFilterer) WatchRewardsDistributorRemoved(opts *bind.WatchOpts, sink chan<- *CoreOptimismRewardsDistributorRemoved, poolId []*big.Int, collateralType []common.Address, distributor []common.Address) (event.Subscription, error) { - - var poolIdRule []interface{} - for _, poolIdItem := range poolId { - poolIdRule = append(poolIdRule, poolIdItem) - } - var collateralTypeRule []interface{} - for _, collateralTypeItem := range collateralType { - collateralTypeRule = append(collateralTypeRule, collateralTypeItem) - } - var distributorRule []interface{} - for _, distributorItem := range distributor { - distributorRule = append(distributorRule, distributorItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "RewardsDistributorRemoved", poolIdRule, collateralTypeRule, distributorRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismRewardsDistributorRemoved) - if err := _CoreOptimism.contract.UnpackLog(event, "RewardsDistributorRemoved", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseRewardsDistributorRemoved is a log parse operation binding the contract event 0x375c4507f463c55a506be95e2cfd3cfdc0610be055087eac6049588a1bcfacba. -// -// Solidity: event RewardsDistributorRemoved(uint128 indexed poolId, address indexed collateralType, address indexed distributor) -func (_CoreOptimism *CoreOptimismFilterer) ParseRewardsDistributorRemoved(log types.Log) (*CoreOptimismRewardsDistributorRemoved, error) { - event := new(CoreOptimismRewardsDistributorRemoved) - if err := _CoreOptimism.contract.UnpackLog(event, "RewardsDistributorRemoved", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismSetMarketMinLiquidityRatioIterator is returned from FilterSetMarketMinLiquidityRatio and is used to iterate over the raw logs and unpacked data for SetMarketMinLiquidityRatio events raised by the CoreOptimism contract. -type CoreOptimismSetMarketMinLiquidityRatioIterator struct { - Event *CoreOptimismSetMarketMinLiquidityRatio // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismSetMarketMinLiquidityRatioIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismSetMarketMinLiquidityRatio) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismSetMarketMinLiquidityRatio) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismSetMarketMinLiquidityRatioIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismSetMarketMinLiquidityRatioIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismSetMarketMinLiquidityRatio represents a SetMarketMinLiquidityRatio event raised by the CoreOptimism contract. -type CoreOptimismSetMarketMinLiquidityRatio struct { - MarketId *big.Int - MinLiquidityRatio *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSetMarketMinLiquidityRatio is a free log retrieval operation binding the contract event 0x563eb723f21b3e87ec8932cfb4ffa64d1b68c42053c28d6b4db019a40f6daf47. -// -// Solidity: event SetMarketMinLiquidityRatio(uint128 indexed marketId, uint256 minLiquidityRatio) -func (_CoreOptimism *CoreOptimismFilterer) FilterSetMarketMinLiquidityRatio(opts *bind.FilterOpts, marketId []*big.Int) (*CoreOptimismSetMarketMinLiquidityRatioIterator, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "SetMarketMinLiquidityRatio", marketIdRule) - if err != nil { - return nil, err - } - return &CoreOptimismSetMarketMinLiquidityRatioIterator{contract: _CoreOptimism.contract, event: "SetMarketMinLiquidityRatio", logs: logs, sub: sub}, nil -} - -// WatchSetMarketMinLiquidityRatio is a free log subscription operation binding the contract event 0x563eb723f21b3e87ec8932cfb4ffa64d1b68c42053c28d6b4db019a40f6daf47. -// -// Solidity: event SetMarketMinLiquidityRatio(uint128 indexed marketId, uint256 minLiquidityRatio) -func (_CoreOptimism *CoreOptimismFilterer) WatchSetMarketMinLiquidityRatio(opts *bind.WatchOpts, sink chan<- *CoreOptimismSetMarketMinLiquidityRatio, marketId []*big.Int) (event.Subscription, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "SetMarketMinLiquidityRatio", marketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismSetMarketMinLiquidityRatio) - if err := _CoreOptimism.contract.UnpackLog(event, "SetMarketMinLiquidityRatio", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSetMarketMinLiquidityRatio is a log parse operation binding the contract event 0x563eb723f21b3e87ec8932cfb4ffa64d1b68c42053c28d6b4db019a40f6daf47. -// -// Solidity: event SetMarketMinLiquidityRatio(uint128 indexed marketId, uint256 minLiquidityRatio) -func (_CoreOptimism *CoreOptimismFilterer) ParseSetMarketMinLiquidityRatio(log types.Log) (*CoreOptimismSetMarketMinLiquidityRatio, error) { - event := new(CoreOptimismSetMarketMinLiquidityRatio) - if err := _CoreOptimism.contract.UnpackLog(event, "SetMarketMinLiquidityRatio", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismSetMinDelegateTimeIterator is returned from FilterSetMinDelegateTime and is used to iterate over the raw logs and unpacked data for SetMinDelegateTime events raised by the CoreOptimism contract. -type CoreOptimismSetMinDelegateTimeIterator struct { - Event *CoreOptimismSetMinDelegateTime // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismSetMinDelegateTimeIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismSetMinDelegateTime) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismSetMinDelegateTime) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismSetMinDelegateTimeIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismSetMinDelegateTimeIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismSetMinDelegateTime represents a SetMinDelegateTime event raised by the CoreOptimism contract. -type CoreOptimismSetMinDelegateTime struct { - MarketId *big.Int - MinDelegateTime uint32 - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSetMinDelegateTime is a free log retrieval operation binding the contract event 0x6942a68d151863c1fed3c0c4c5f3258af738218527147ac69290ab23ca7d26c6. -// -// Solidity: event SetMinDelegateTime(uint128 indexed marketId, uint32 minDelegateTime) -func (_CoreOptimism *CoreOptimismFilterer) FilterSetMinDelegateTime(opts *bind.FilterOpts, marketId []*big.Int) (*CoreOptimismSetMinDelegateTimeIterator, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "SetMinDelegateTime", marketIdRule) - if err != nil { - return nil, err - } - return &CoreOptimismSetMinDelegateTimeIterator{contract: _CoreOptimism.contract, event: "SetMinDelegateTime", logs: logs, sub: sub}, nil -} - -// WatchSetMinDelegateTime is a free log subscription operation binding the contract event 0x6942a68d151863c1fed3c0c4c5f3258af738218527147ac69290ab23ca7d26c6. -// -// Solidity: event SetMinDelegateTime(uint128 indexed marketId, uint32 minDelegateTime) -func (_CoreOptimism *CoreOptimismFilterer) WatchSetMinDelegateTime(opts *bind.WatchOpts, sink chan<- *CoreOptimismSetMinDelegateTime, marketId []*big.Int) (event.Subscription, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "SetMinDelegateTime", marketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismSetMinDelegateTime) - if err := _CoreOptimism.contract.UnpackLog(event, "SetMinDelegateTime", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSetMinDelegateTime is a log parse operation binding the contract event 0x6942a68d151863c1fed3c0c4c5f3258af738218527147ac69290ab23ca7d26c6. -// -// Solidity: event SetMinDelegateTime(uint128 indexed marketId, uint32 minDelegateTime) -func (_CoreOptimism *CoreOptimismFilterer) ParseSetMinDelegateTime(log types.Log) (*CoreOptimismSetMinDelegateTime, error) { - event := new(CoreOptimismSetMinDelegateTime) - if err := _CoreOptimism.contract.UnpackLog(event, "SetMinDelegateTime", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismSetMinLiquidityRatioIterator is returned from FilterSetMinLiquidityRatio and is used to iterate over the raw logs and unpacked data for SetMinLiquidityRatio events raised by the CoreOptimism contract. -type CoreOptimismSetMinLiquidityRatioIterator struct { - Event *CoreOptimismSetMinLiquidityRatio // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismSetMinLiquidityRatioIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismSetMinLiquidityRatio) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismSetMinLiquidityRatio) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismSetMinLiquidityRatioIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismSetMinLiquidityRatioIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismSetMinLiquidityRatio represents a SetMinLiquidityRatio event raised by the CoreOptimism contract. -type CoreOptimismSetMinLiquidityRatio struct { - MinLiquidityRatio *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSetMinLiquidityRatio is a free log retrieval operation binding the contract event 0x66fd484d9868d1faddc8fef1f3faed0ed25eb4e6acde49dd1f2cbf0fba903635. -// -// Solidity: event SetMinLiquidityRatio(uint256 minLiquidityRatio) -func (_CoreOptimism *CoreOptimismFilterer) FilterSetMinLiquidityRatio(opts *bind.FilterOpts) (*CoreOptimismSetMinLiquidityRatioIterator, error) { - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "SetMinLiquidityRatio") - if err != nil { - return nil, err - } - return &CoreOptimismSetMinLiquidityRatioIterator{contract: _CoreOptimism.contract, event: "SetMinLiquidityRatio", logs: logs, sub: sub}, nil -} - -// WatchSetMinLiquidityRatio is a free log subscription operation binding the contract event 0x66fd484d9868d1faddc8fef1f3faed0ed25eb4e6acde49dd1f2cbf0fba903635. -// -// Solidity: event SetMinLiquidityRatio(uint256 minLiquidityRatio) -func (_CoreOptimism *CoreOptimismFilterer) WatchSetMinLiquidityRatio(opts *bind.WatchOpts, sink chan<- *CoreOptimismSetMinLiquidityRatio) (event.Subscription, error) { - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "SetMinLiquidityRatio") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismSetMinLiquidityRatio) - if err := _CoreOptimism.contract.UnpackLog(event, "SetMinLiquidityRatio", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSetMinLiquidityRatio is a log parse operation binding the contract event 0x66fd484d9868d1faddc8fef1f3faed0ed25eb4e6acde49dd1f2cbf0fba903635. -// -// Solidity: event SetMinLiquidityRatio(uint256 minLiquidityRatio) -func (_CoreOptimism *CoreOptimismFilterer) ParseSetMinLiquidityRatio(log types.Log) (*CoreOptimismSetMinLiquidityRatio, error) { - event := new(CoreOptimismSetMinLiquidityRatio) - if err := _CoreOptimism.contract.UnpackLog(event, "SetMinLiquidityRatio", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismTransferCrossChainInitiatedIterator is returned from FilterTransferCrossChainInitiated and is used to iterate over the raw logs and unpacked data for TransferCrossChainInitiated events raised by the CoreOptimism contract. -type CoreOptimismTransferCrossChainInitiatedIterator struct { - Event *CoreOptimismTransferCrossChainInitiated // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismTransferCrossChainInitiatedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismTransferCrossChainInitiated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismTransferCrossChainInitiated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismTransferCrossChainInitiatedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismTransferCrossChainInitiatedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismTransferCrossChainInitiated represents a TransferCrossChainInitiated event raised by the CoreOptimism contract. -type CoreOptimismTransferCrossChainInitiated struct { - DestChainId uint64 - Amount *big.Int - Sender common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterTransferCrossChainInitiated is a free log retrieval operation binding the contract event 0xb87c3097d7f9145a4915e8e434f04a1b7b91646d8a6e66a5cdab25caccb644c4. -// -// Solidity: event TransferCrossChainInitiated(uint64 indexed destChainId, uint256 indexed amount, address sender) -func (_CoreOptimism *CoreOptimismFilterer) FilterTransferCrossChainInitiated(opts *bind.FilterOpts, destChainId []uint64, amount []*big.Int) (*CoreOptimismTransferCrossChainInitiatedIterator, error) { - - var destChainIdRule []interface{} - for _, destChainIdItem := range destChainId { - destChainIdRule = append(destChainIdRule, destChainIdItem) - } - var amountRule []interface{} - for _, amountItem := range amount { - amountRule = append(amountRule, amountItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "TransferCrossChainInitiated", destChainIdRule, amountRule) - if err != nil { - return nil, err - } - return &CoreOptimismTransferCrossChainInitiatedIterator{contract: _CoreOptimism.contract, event: "TransferCrossChainInitiated", logs: logs, sub: sub}, nil -} - -// WatchTransferCrossChainInitiated is a free log subscription operation binding the contract event 0xb87c3097d7f9145a4915e8e434f04a1b7b91646d8a6e66a5cdab25caccb644c4. -// -// Solidity: event TransferCrossChainInitiated(uint64 indexed destChainId, uint256 indexed amount, address sender) -func (_CoreOptimism *CoreOptimismFilterer) WatchTransferCrossChainInitiated(opts *bind.WatchOpts, sink chan<- *CoreOptimismTransferCrossChainInitiated, destChainId []uint64, amount []*big.Int) (event.Subscription, error) { - - var destChainIdRule []interface{} - for _, destChainIdItem := range destChainId { - destChainIdRule = append(destChainIdRule, destChainIdItem) - } - var amountRule []interface{} - for _, amountItem := range amount { - amountRule = append(amountRule, amountItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "TransferCrossChainInitiated", destChainIdRule, amountRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismTransferCrossChainInitiated) - if err := _CoreOptimism.contract.UnpackLog(event, "TransferCrossChainInitiated", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseTransferCrossChainInitiated is a log parse operation binding the contract event 0xb87c3097d7f9145a4915e8e434f04a1b7b91646d8a6e66a5cdab25caccb644c4. -// -// Solidity: event TransferCrossChainInitiated(uint64 indexed destChainId, uint256 indexed amount, address sender) -func (_CoreOptimism *CoreOptimismFilterer) ParseTransferCrossChainInitiated(log types.Log) (*CoreOptimismTransferCrossChainInitiated, error) { - event := new(CoreOptimismTransferCrossChainInitiated) - if err := _CoreOptimism.contract.UnpackLog(event, "TransferCrossChainInitiated", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismUpgradedIterator is returned from FilterUpgraded and is used to iterate over the raw logs and unpacked data for Upgraded events raised by the CoreOptimism contract. -type CoreOptimismUpgradedIterator struct { - Event *CoreOptimismUpgraded // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismUpgradedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismUpgraded) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismUpgraded) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismUpgradedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismUpgradedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismUpgraded represents a Upgraded event raised by the CoreOptimism contract. -type CoreOptimismUpgraded struct { - Self common.Address - Implementation common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterUpgraded is a free log retrieval operation binding the contract event 0x5d611f318680d00598bb735d61bacf0c514c6b50e1e5ad30040a4df2b12791c7. -// -// Solidity: event Upgraded(address indexed self, address implementation) -func (_CoreOptimism *CoreOptimismFilterer) FilterUpgraded(opts *bind.FilterOpts, self []common.Address) (*CoreOptimismUpgradedIterator, error) { - - var selfRule []interface{} - for _, selfItem := range self { - selfRule = append(selfRule, selfItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "Upgraded", selfRule) - if err != nil { - return nil, err - } - return &CoreOptimismUpgradedIterator{contract: _CoreOptimism.contract, event: "Upgraded", logs: logs, sub: sub}, nil -} - -// WatchUpgraded is a free log subscription operation binding the contract event 0x5d611f318680d00598bb735d61bacf0c514c6b50e1e5ad30040a4df2b12791c7. -// -// Solidity: event Upgraded(address indexed self, address implementation) -func (_CoreOptimism *CoreOptimismFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *CoreOptimismUpgraded, self []common.Address) (event.Subscription, error) { - - var selfRule []interface{} - for _, selfItem := range self { - selfRule = append(selfRule, selfItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "Upgraded", selfRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismUpgraded) - if err := _CoreOptimism.contract.UnpackLog(event, "Upgraded", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseUpgraded is a log parse operation binding the contract event 0x5d611f318680d00598bb735d61bacf0c514c6b50e1e5ad30040a4df2b12791c7. -// -// Solidity: event Upgraded(address indexed self, address implementation) -func (_CoreOptimism *CoreOptimismFilterer) ParseUpgraded(log types.Log) (*CoreOptimismUpgraded, error) { - event := new(CoreOptimismUpgraded) - if err := _CoreOptimism.contract.UnpackLog(event, "Upgraded", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismUsdBurnedIterator is returned from FilterUsdBurned and is used to iterate over the raw logs and unpacked data for UsdBurned events raised by the CoreOptimism contract. -type CoreOptimismUsdBurnedIterator struct { - Event *CoreOptimismUsdBurned // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismUsdBurnedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismUsdBurned) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismUsdBurned) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismUsdBurnedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismUsdBurnedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismUsdBurned represents a UsdBurned event raised by the CoreOptimism contract. -type CoreOptimismUsdBurned struct { - AccountId *big.Int - PoolId *big.Int - CollateralType common.Address - Amount *big.Int - Sender common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterUsdBurned is a free log retrieval operation binding the contract event 0x6b0230f0abe9188cbdbb1c816a4c5e213758b5b743d8a94af056280cc1e7aeb1. -// -// Solidity: event UsdBurned(uint128 indexed accountId, uint128 indexed poolId, address collateralType, uint256 amount, address indexed sender) -func (_CoreOptimism *CoreOptimismFilterer) FilterUsdBurned(opts *bind.FilterOpts, accountId []*big.Int, poolId []*big.Int, sender []common.Address) (*CoreOptimismUsdBurnedIterator, error) { - - var accountIdRule []interface{} - for _, accountIdItem := range accountId { - accountIdRule = append(accountIdRule, accountIdItem) - } - var poolIdRule []interface{} - for _, poolIdItem := range poolId { - poolIdRule = append(poolIdRule, poolIdItem) - } - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "UsdBurned", accountIdRule, poolIdRule, senderRule) - if err != nil { - return nil, err - } - return &CoreOptimismUsdBurnedIterator{contract: _CoreOptimism.contract, event: "UsdBurned", logs: logs, sub: sub}, nil -} - -// WatchUsdBurned is a free log subscription operation binding the contract event 0x6b0230f0abe9188cbdbb1c816a4c5e213758b5b743d8a94af056280cc1e7aeb1. -// -// Solidity: event UsdBurned(uint128 indexed accountId, uint128 indexed poolId, address collateralType, uint256 amount, address indexed sender) -func (_CoreOptimism *CoreOptimismFilterer) WatchUsdBurned(opts *bind.WatchOpts, sink chan<- *CoreOptimismUsdBurned, accountId []*big.Int, poolId []*big.Int, sender []common.Address) (event.Subscription, error) { - - var accountIdRule []interface{} - for _, accountIdItem := range accountId { - accountIdRule = append(accountIdRule, accountIdItem) - } - var poolIdRule []interface{} - for _, poolIdItem := range poolId { - poolIdRule = append(poolIdRule, poolIdItem) - } - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "UsdBurned", accountIdRule, poolIdRule, senderRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismUsdBurned) - if err := _CoreOptimism.contract.UnpackLog(event, "UsdBurned", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseUsdBurned is a log parse operation binding the contract event 0x6b0230f0abe9188cbdbb1c816a4c5e213758b5b743d8a94af056280cc1e7aeb1. -// -// Solidity: event UsdBurned(uint128 indexed accountId, uint128 indexed poolId, address collateralType, uint256 amount, address indexed sender) -func (_CoreOptimism *CoreOptimismFilterer) ParseUsdBurned(log types.Log) (*CoreOptimismUsdBurned, error) { - event := new(CoreOptimismUsdBurned) - if err := _CoreOptimism.contract.UnpackLog(event, "UsdBurned", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismUsdMintedIterator is returned from FilterUsdMinted and is used to iterate over the raw logs and unpacked data for UsdMinted events raised by the CoreOptimism contract. -type CoreOptimismUsdMintedIterator struct { - Event *CoreOptimismUsdMinted // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismUsdMintedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismUsdMinted) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismUsdMinted) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismUsdMintedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismUsdMintedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismUsdMinted represents a UsdMinted event raised by the CoreOptimism contract. -type CoreOptimismUsdMinted struct { - AccountId *big.Int - PoolId *big.Int - CollateralType common.Address - Amount *big.Int - Sender common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterUsdMinted is a free log retrieval operation binding the contract event 0x2100f67dc9a5917400f799bb13194553e3f74c19a207c56350d2c223ac9c36c9. -// -// Solidity: event UsdMinted(uint128 indexed accountId, uint128 indexed poolId, address collateralType, uint256 amount, address indexed sender) -func (_CoreOptimism *CoreOptimismFilterer) FilterUsdMinted(opts *bind.FilterOpts, accountId []*big.Int, poolId []*big.Int, sender []common.Address) (*CoreOptimismUsdMintedIterator, error) { - - var accountIdRule []interface{} - for _, accountIdItem := range accountId { - accountIdRule = append(accountIdRule, accountIdItem) - } - var poolIdRule []interface{} - for _, poolIdItem := range poolId { - poolIdRule = append(poolIdRule, poolIdItem) - } - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "UsdMinted", accountIdRule, poolIdRule, senderRule) - if err != nil { - return nil, err - } - return &CoreOptimismUsdMintedIterator{contract: _CoreOptimism.contract, event: "UsdMinted", logs: logs, sub: sub}, nil -} - -// WatchUsdMinted is a free log subscription operation binding the contract event 0x2100f67dc9a5917400f799bb13194553e3f74c19a207c56350d2c223ac9c36c9. -// -// Solidity: event UsdMinted(uint128 indexed accountId, uint128 indexed poolId, address collateralType, uint256 amount, address indexed sender) -func (_CoreOptimism *CoreOptimismFilterer) WatchUsdMinted(opts *bind.WatchOpts, sink chan<- *CoreOptimismUsdMinted, accountId []*big.Int, poolId []*big.Int, sender []common.Address) (event.Subscription, error) { - - var accountIdRule []interface{} - for _, accountIdItem := range accountId { - accountIdRule = append(accountIdRule, accountIdItem) - } - var poolIdRule []interface{} - for _, poolIdItem := range poolId { - poolIdRule = append(poolIdRule, poolIdItem) - } - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "UsdMinted", accountIdRule, poolIdRule, senderRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismUsdMinted) - if err := _CoreOptimism.contract.UnpackLog(event, "UsdMinted", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseUsdMinted is a log parse operation binding the contract event 0x2100f67dc9a5917400f799bb13194553e3f74c19a207c56350d2c223ac9c36c9. -// -// Solidity: event UsdMinted(uint128 indexed accountId, uint128 indexed poolId, address collateralType, uint256 amount, address indexed sender) -func (_CoreOptimism *CoreOptimismFilterer) ParseUsdMinted(log types.Log) (*CoreOptimismUsdMinted, error) { - event := new(CoreOptimismUsdMinted) - if err := _CoreOptimism.contract.UnpackLog(event, "UsdMinted", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismVaultLiquidationIterator is returned from FilterVaultLiquidation and is used to iterate over the raw logs and unpacked data for VaultLiquidation events raised by the CoreOptimism contract. -type CoreOptimismVaultLiquidationIterator struct { - Event *CoreOptimismVaultLiquidation // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismVaultLiquidationIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismVaultLiquidation) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismVaultLiquidation) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismVaultLiquidationIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismVaultLiquidationIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismVaultLiquidation represents a VaultLiquidation event raised by the CoreOptimism contract. -type CoreOptimismVaultLiquidation struct { - PoolId *big.Int - CollateralType common.Address - LiquidationData ILiquidationModuleLiquidationData - LiquidateAsAccountId *big.Int - Sender common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterVaultLiquidation is a free log retrieval operation binding the contract event 0x1834a7cc9d14f9bfa482df5c0404dadd1b8ec123b41f082e76ae28a3b2ea68d5. -// -// Solidity: event VaultLiquidation(uint128 indexed poolId, address indexed collateralType, (uint256,uint256,uint256) liquidationData, uint128 liquidateAsAccountId, address sender) -func (_CoreOptimism *CoreOptimismFilterer) FilterVaultLiquidation(opts *bind.FilterOpts, poolId []*big.Int, collateralType []common.Address) (*CoreOptimismVaultLiquidationIterator, error) { - - var poolIdRule []interface{} - for _, poolIdItem := range poolId { - poolIdRule = append(poolIdRule, poolIdItem) - } - var collateralTypeRule []interface{} - for _, collateralTypeItem := range collateralType { - collateralTypeRule = append(collateralTypeRule, collateralTypeItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "VaultLiquidation", poolIdRule, collateralTypeRule) - if err != nil { - return nil, err - } - return &CoreOptimismVaultLiquidationIterator{contract: _CoreOptimism.contract, event: "VaultLiquidation", logs: logs, sub: sub}, nil -} - -// WatchVaultLiquidation is a free log subscription operation binding the contract event 0x1834a7cc9d14f9bfa482df5c0404dadd1b8ec123b41f082e76ae28a3b2ea68d5. -// -// Solidity: event VaultLiquidation(uint128 indexed poolId, address indexed collateralType, (uint256,uint256,uint256) liquidationData, uint128 liquidateAsAccountId, address sender) -func (_CoreOptimism *CoreOptimismFilterer) WatchVaultLiquidation(opts *bind.WatchOpts, sink chan<- *CoreOptimismVaultLiquidation, poolId []*big.Int, collateralType []common.Address) (event.Subscription, error) { - - var poolIdRule []interface{} - for _, poolIdItem := range poolId { - poolIdRule = append(poolIdRule, poolIdItem) - } - var collateralTypeRule []interface{} - for _, collateralTypeItem := range collateralType { - collateralTypeRule = append(collateralTypeRule, collateralTypeItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "VaultLiquidation", poolIdRule, collateralTypeRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismVaultLiquidation) - if err := _CoreOptimism.contract.UnpackLog(event, "VaultLiquidation", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseVaultLiquidation is a log parse operation binding the contract event 0x1834a7cc9d14f9bfa482df5c0404dadd1b8ec123b41f082e76ae28a3b2ea68d5. -// -// Solidity: event VaultLiquidation(uint128 indexed poolId, address indexed collateralType, (uint256,uint256,uint256) liquidationData, uint128 liquidateAsAccountId, address sender) -func (_CoreOptimism *CoreOptimismFilterer) ParseVaultLiquidation(log types.Log) (*CoreOptimismVaultLiquidation, error) { - event := new(CoreOptimismVaultLiquidation) - if err := _CoreOptimism.contract.UnpackLog(event, "VaultLiquidation", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// CoreOptimismWithdrawnIterator is returned from FilterWithdrawn and is used to iterate over the raw logs and unpacked data for Withdrawn events raised by the CoreOptimism contract. -type CoreOptimismWithdrawnIterator struct { - Event *CoreOptimismWithdrawn // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *CoreOptimismWithdrawnIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(CoreOptimismWithdrawn) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(CoreOptimismWithdrawn) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *CoreOptimismWithdrawnIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *CoreOptimismWithdrawnIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// CoreOptimismWithdrawn represents a Withdrawn event raised by the CoreOptimism contract. -type CoreOptimismWithdrawn struct { - AccountId *big.Int - CollateralType common.Address - TokenAmount *big.Int - Sender common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterWithdrawn is a free log retrieval operation binding the contract event 0x8b5f9d7ce522936589c630db08c0fa2405b21c4a5ff8ef19899900172736ba38. -// -// Solidity: event Withdrawn(uint128 indexed accountId, address indexed collateralType, uint256 tokenAmount, address indexed sender) -func (_CoreOptimism *CoreOptimismFilterer) FilterWithdrawn(opts *bind.FilterOpts, accountId []*big.Int, collateralType []common.Address, sender []common.Address) (*CoreOptimismWithdrawnIterator, error) { - - var accountIdRule []interface{} - for _, accountIdItem := range accountId { - accountIdRule = append(accountIdRule, accountIdItem) - } - var collateralTypeRule []interface{} - for _, collateralTypeItem := range collateralType { - collateralTypeRule = append(collateralTypeRule, collateralTypeItem) - } - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - logs, sub, err := _CoreOptimism.contract.FilterLogs(opts, "Withdrawn", accountIdRule, collateralTypeRule, senderRule) - if err != nil { - return nil, err - } - return &CoreOptimismWithdrawnIterator{contract: _CoreOptimism.contract, event: "Withdrawn", logs: logs, sub: sub}, nil -} - -// WatchWithdrawn is a free log subscription operation binding the contract event 0x8b5f9d7ce522936589c630db08c0fa2405b21c4a5ff8ef19899900172736ba38. -// -// Solidity: event Withdrawn(uint128 indexed accountId, address indexed collateralType, uint256 tokenAmount, address indexed sender) -func (_CoreOptimism *CoreOptimismFilterer) WatchWithdrawn(opts *bind.WatchOpts, sink chan<- *CoreOptimismWithdrawn, accountId []*big.Int, collateralType []common.Address, sender []common.Address) (event.Subscription, error) { - - var accountIdRule []interface{} - for _, accountIdItem := range accountId { - accountIdRule = append(accountIdRule, accountIdItem) - } - var collateralTypeRule []interface{} - for _, collateralTypeItem := range collateralType { - collateralTypeRule = append(collateralTypeRule, collateralTypeItem) - } - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - logs, sub, err := _CoreOptimism.contract.WatchLogs(opts, "Withdrawn", accountIdRule, collateralTypeRule, senderRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(CoreOptimismWithdrawn) - if err := _CoreOptimism.contract.UnpackLog(event, "Withdrawn", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseWithdrawn is a log parse operation binding the contract event 0x8b5f9d7ce522936589c630db08c0fa2405b21c4a5ff8ef19899900172736ba38. -// -// Solidity: event Withdrawn(uint128 indexed accountId, address indexed collateralType, uint256 tokenAmount, address indexed sender) -func (_CoreOptimism *CoreOptimismFilterer) ParseWithdrawn(log types.Log) (*CoreOptimismWithdrawn, error) { - event := new(CoreOptimismWithdrawn) - if err := _CoreOptimism.contract.UnpackLog(event, "Withdrawn", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/contracts/forwarder/contract.go b/contracts/forwarder/contract.go new file mode 100644 index 0000000..ed08198 --- /dev/null +++ b/contracts/forwarder/contract.go @@ -0,0 +1,940 @@ +// Code generated - DO NOT EDIT. +// This file is a generated binding and any manual changes will be lost. + +package forwarder + +import ( + "errors" + "math/big" + "strings" + + ethereum "github.com/ethereum/go-ethereum" + "github.com/ethereum/go-ethereum/accounts/abi" + "github.com/ethereum/go-ethereum/accounts/abi/bind" + "github.com/ethereum/go-ethereum/common" + "github.com/ethereum/go-ethereum/core/types" + "github.com/ethereum/go-ethereum/event" +) + +// Reference imports to suppress errors if they are not otherwise used. +var ( + _ = errors.New + _ = big.NewInt + _ = strings.NewReader + _ = ethereum.NotFound + _ = bind.Bind + _ = common.Big1 + _ = types.BloomLookup + _ = event.NewSubscription + _ = abi.ConvertType +) + +// MinimalForwarderForwardRequest is an auto generated low-level Go binding around an user-defined struct. +type MinimalForwarderForwardRequest struct { + From common.Address + To common.Address + Value *big.Int + Gas *big.Int + Nonce *big.Int + Data []byte +} + +// TrustedMulticallForwarderCall is an auto generated low-level Go binding around an user-defined struct. +type TrustedMulticallForwarderCall struct { + Target common.Address + CallData []byte +} + +// TrustedMulticallForwarderCall3 is an auto generated low-level Go binding around an user-defined struct. +type TrustedMulticallForwarderCall3 struct { + Target common.Address + AllowFailure bool + CallData []byte +} + +// TrustedMulticallForwarderCall3Value is an auto generated low-level Go binding around an user-defined struct. +type TrustedMulticallForwarderCall3Value struct { + Target common.Address + AllowFailure bool + Value *big.Int + CallData []byte +} + +// TrustedMulticallForwarderResult is an auto generated low-level Go binding around an user-defined struct. +type TrustedMulticallForwarderResult struct { + Success bool + ReturnData []byte +} + +// ForwarderMetaData contains all meta data concerning the Forwarder contract. +var ForwarderMetaData = &bind.MetaData{ + ABI: "[{\"inputs\":[],\"name\":\"InvalidShortString\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"str\",\"type\":\"string\"}],\"name\":\"StringTooLong\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[],\"name\":\"EIP712DomainChanged\",\"type\":\"event\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"structTrustedMulticallForwarder.Call[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"aggregate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"},{\"internalType\":\"bytes[]\",\"name\":\"returnData\",\"type\":\"bytes[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"allowFailure\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"structTrustedMulticallForwarder.Call3[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"aggregate3\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"internalType\":\"structTrustedMulticallForwarder.Result[]\",\"name\":\"returnData\",\"type\":\"tuple[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"allowFailure\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"structTrustedMulticallForwarder.Call3Value[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"aggregate3Value\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"internalType\":\"structTrustedMulticallForwarder.Result[]\",\"name\":\"returnData\",\"type\":\"tuple[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"structTrustedMulticallForwarder.Call[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"blockAndAggregate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"internalType\":\"structTrustedMulticallForwarder.Result[]\",\"name\":\"returnData\",\"type\":\"tuple[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"eip712Domain\",\"outputs\":[{\"internalType\":\"bytes1\",\"name\":\"fields\",\"type\":\"bytes1\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"version\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"verifyingContract\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"},{\"internalType\":\"uint256[]\",\"name\":\"extensions\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"internalType\":\"structMinimalForwarder.ForwardRequest\",\"name\":\"req\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"execute\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"basefee\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"}],\"name\":\"getBlockHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"chainid\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrentBlockCoinbase\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"coinbase\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrentBlockDifficulty\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"difficulty\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrentBlockGasLimit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"gaslimit\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrentBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"getEthBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getLastBlockHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"}],\"name\":\"getNonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"requireSuccess\",\"type\":\"bool\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"structTrustedMulticallForwarder.Call[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"tryAggregate\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"internalType\":\"structTrustedMulticallForwarder.Result[]\",\"name\":\"returnData\",\"type\":\"tuple[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"requireSuccess\",\"type\":\"bool\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"structTrustedMulticallForwarder.Call[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"tryBlockAndAggregate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"internalType\":\"structTrustedMulticallForwarder.Result[]\",\"name\":\"returnData\",\"type\":\"tuple[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"internalType\":\"structMinimalForwarder.ForwardRequest\",\"name\":\"req\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"verify\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]", +} + +// ForwarderABI is the input ABI used to generate the binding from. +// Deprecated: Use ForwarderMetaData.ABI instead. +var ForwarderABI = ForwarderMetaData.ABI + +// Forwarder is an auto generated Go binding around an Ethereum contract. +type Forwarder struct { + ForwarderCaller // Read-only binding to the contract + ForwarderTransactor // Write-only binding to the contract + ForwarderFilterer // Log filterer for contract events +} + +// ForwarderCaller is an auto generated read-only Go binding around an Ethereum contract. +type ForwarderCaller struct { + contract *bind.BoundContract // Generic contract wrapper for the low level calls +} + +// ForwarderTransactor is an auto generated write-only Go binding around an Ethereum contract. +type ForwarderTransactor struct { + contract *bind.BoundContract // Generic contract wrapper for the low level calls +} + +// ForwarderFilterer is an auto generated log filtering Go binding around an Ethereum contract events. +type ForwarderFilterer struct { + contract *bind.BoundContract // Generic contract wrapper for the low level calls +} + +// ForwarderSession is an auto generated Go binding around an Ethereum contract, +// with pre-set call and transact options. +type ForwarderSession struct { + Contract *Forwarder // 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 +} + +// ForwarderCallerSession is an auto generated read-only Go binding around an Ethereum contract, +// with pre-set call options. +type ForwarderCallerSession struct { + Contract *ForwarderCaller // Generic contract caller binding to set the session for + CallOpts bind.CallOpts // Call options to use throughout this session +} + +// ForwarderTransactorSession is an auto generated write-only Go binding around an Ethereum contract, +// with pre-set transact options. +type ForwarderTransactorSession struct { + Contract *ForwarderTransactor // Generic contract transactor binding to set the session for + TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session +} + +// ForwarderRaw is an auto generated low-level Go binding around an Ethereum contract. +type ForwarderRaw struct { + Contract *Forwarder // Generic contract binding to access the raw methods on +} + +// ForwarderCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. +type ForwarderCallerRaw struct { + Contract *ForwarderCaller // Generic read-only contract binding to access the raw methods on +} + +// ForwarderTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. +type ForwarderTransactorRaw struct { + Contract *ForwarderTransactor // Generic write-only contract binding to access the raw methods on +} + +// NewForwarder creates a new instance of Forwarder, bound to a specific deployed contract. +func NewForwarder(address common.Address, backend bind.ContractBackend) (*Forwarder, error) { + contract, err := bindForwarder(address, backend, backend, backend) + if err != nil { + return nil, err + } + return &Forwarder{ForwarderCaller: ForwarderCaller{contract: contract}, ForwarderTransactor: ForwarderTransactor{contract: contract}, ForwarderFilterer: ForwarderFilterer{contract: contract}}, nil +} + +// NewForwarderCaller creates a new read-only instance of Forwarder, bound to a specific deployed contract. +func NewForwarderCaller(address common.Address, caller bind.ContractCaller) (*ForwarderCaller, error) { + contract, err := bindForwarder(address, caller, nil, nil) + if err != nil { + return nil, err + } + return &ForwarderCaller{contract: contract}, nil +} + +// NewForwarderTransactor creates a new write-only instance of Forwarder, bound to a specific deployed contract. +func NewForwarderTransactor(address common.Address, transactor bind.ContractTransactor) (*ForwarderTransactor, error) { + contract, err := bindForwarder(address, nil, transactor, nil) + if err != nil { + return nil, err + } + return &ForwarderTransactor{contract: contract}, nil +} + +// NewForwarderFilterer creates a new log filterer instance of Forwarder, bound to a specific deployed contract. +func NewForwarderFilterer(address common.Address, filterer bind.ContractFilterer) (*ForwarderFilterer, error) { + contract, err := bindForwarder(address, nil, nil, filterer) + if err != nil { + return nil, err + } + return &ForwarderFilterer{contract: contract}, nil +} + +// bindForwarder binds a generic wrapper to an already deployed contract. +func bindForwarder(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { + parsed, err := ForwarderMetaData.GetAbi() + if err != nil { + return nil, err + } + return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil +} + +// 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 (_Forwarder *ForwarderRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { + return _Forwarder.Contract.ForwarderCaller.contract.Call(opts, result, method, params...) +} + +// Transfer initiates a plain transaction to move funds to the contract, calling +// its default method if one is available. +func (_Forwarder *ForwarderRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { + return _Forwarder.Contract.ForwarderTransactor.contract.Transfer(opts) +} + +// Transact invokes the (paid) contract method with params as input values. +func (_Forwarder *ForwarderRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { + return _Forwarder.Contract.ForwarderTransactor.contract.Transact(opts, method, params...) +} + +// Call invokes the (constant) contract method with params as input values and +// sets the output to result. The result type might be a single field for simple +// returns, a slice of interfaces for anonymous returns and a struct for named +// returns. +func (_Forwarder *ForwarderCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { + return _Forwarder.Contract.contract.Call(opts, result, method, params...) +} + +// Transfer initiates a plain transaction to move funds to the contract, calling +// its default method if one is available. +func (_Forwarder *ForwarderTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { + return _Forwarder.Contract.contract.Transfer(opts) +} + +// Transact invokes the (paid) contract method with params as input values. +func (_Forwarder *ForwarderTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { + return _Forwarder.Contract.contract.Transact(opts, method, params...) +} + +// Eip712Domain is a free data retrieval call binding the contract method 0x84b0196e. +// +// Solidity: function eip712Domain() view returns(bytes1 fields, string name, string version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] extensions) +func (_Forwarder *ForwarderCaller) Eip712Domain(opts *bind.CallOpts) (struct { + Fields [1]byte + Name string + Version string + ChainId *big.Int + VerifyingContract common.Address + Salt [32]byte + Extensions []*big.Int +}, error) { + var out []interface{} + err := _Forwarder.contract.Call(opts, &out, "eip712Domain") + + outstruct := new(struct { + Fields [1]byte + Name string + Version string + ChainId *big.Int + VerifyingContract common.Address + Salt [32]byte + Extensions []*big.Int + }) + if err != nil { + return *outstruct, err + } + + outstruct.Fields = *abi.ConvertType(out[0], new([1]byte)).(*[1]byte) + outstruct.Name = *abi.ConvertType(out[1], new(string)).(*string) + outstruct.Version = *abi.ConvertType(out[2], new(string)).(*string) + outstruct.ChainId = *abi.ConvertType(out[3], new(*big.Int)).(**big.Int) + outstruct.VerifyingContract = *abi.ConvertType(out[4], new(common.Address)).(*common.Address) + outstruct.Salt = *abi.ConvertType(out[5], new([32]byte)).(*[32]byte) + outstruct.Extensions = *abi.ConvertType(out[6], new([]*big.Int)).(*[]*big.Int) + + return *outstruct, err + +} + +// Eip712Domain is a free data retrieval call binding the contract method 0x84b0196e. +// +// Solidity: function eip712Domain() view returns(bytes1 fields, string name, string version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] extensions) +func (_Forwarder *ForwarderSession) Eip712Domain() (struct { + Fields [1]byte + Name string + Version string + ChainId *big.Int + VerifyingContract common.Address + Salt [32]byte + Extensions []*big.Int +}, error) { + return _Forwarder.Contract.Eip712Domain(&_Forwarder.CallOpts) +} + +// Eip712Domain is a free data retrieval call binding the contract method 0x84b0196e. +// +// Solidity: function eip712Domain() view returns(bytes1 fields, string name, string version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] extensions) +func (_Forwarder *ForwarderCallerSession) Eip712Domain() (struct { + Fields [1]byte + Name string + Version string + ChainId *big.Int + VerifyingContract common.Address + Salt [32]byte + Extensions []*big.Int +}, error) { + return _Forwarder.Contract.Eip712Domain(&_Forwarder.CallOpts) +} + +// GetBasefee is a free data retrieval call binding the contract method 0x3e64a696. +// +// Solidity: function getBasefee() view returns(uint256 basefee) +func (_Forwarder *ForwarderCaller) GetBasefee(opts *bind.CallOpts) (*big.Int, error) { + var out []interface{} + err := _Forwarder.contract.Call(opts, &out, "getBasefee") + + if err != nil { + return *new(*big.Int), err + } + + out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) + + return out0, err + +} + +// GetBasefee is a free data retrieval call binding the contract method 0x3e64a696. +// +// Solidity: function getBasefee() view returns(uint256 basefee) +func (_Forwarder *ForwarderSession) GetBasefee() (*big.Int, error) { + return _Forwarder.Contract.GetBasefee(&_Forwarder.CallOpts) +} + +// GetBasefee is a free data retrieval call binding the contract method 0x3e64a696. +// +// Solidity: function getBasefee() view returns(uint256 basefee) +func (_Forwarder *ForwarderCallerSession) GetBasefee() (*big.Int, error) { + return _Forwarder.Contract.GetBasefee(&_Forwarder.CallOpts) +} + +// GetBlockHash is a free data retrieval call binding the contract method 0xee82ac5e. +// +// Solidity: function getBlockHash(uint256 blockNumber) view returns(bytes32 blockHash) +func (_Forwarder *ForwarderCaller) GetBlockHash(opts *bind.CallOpts, blockNumber *big.Int) ([32]byte, error) { + var out []interface{} + err := _Forwarder.contract.Call(opts, &out, "getBlockHash", blockNumber) + + if err != nil { + return *new([32]byte), err + } + + out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte) + + return out0, err + +} + +// GetBlockHash is a free data retrieval call binding the contract method 0xee82ac5e. +// +// Solidity: function getBlockHash(uint256 blockNumber) view returns(bytes32 blockHash) +func (_Forwarder *ForwarderSession) GetBlockHash(blockNumber *big.Int) ([32]byte, error) { + return _Forwarder.Contract.GetBlockHash(&_Forwarder.CallOpts, blockNumber) +} + +// GetBlockHash is a free data retrieval call binding the contract method 0xee82ac5e. +// +// Solidity: function getBlockHash(uint256 blockNumber) view returns(bytes32 blockHash) +func (_Forwarder *ForwarderCallerSession) GetBlockHash(blockNumber *big.Int) ([32]byte, error) { + return _Forwarder.Contract.GetBlockHash(&_Forwarder.CallOpts, blockNumber) +} + +// GetBlockNumber is a free data retrieval call binding the contract method 0x42cbb15c. +// +// Solidity: function getBlockNumber() view returns(uint256 blockNumber) +func (_Forwarder *ForwarderCaller) GetBlockNumber(opts *bind.CallOpts) (*big.Int, error) { + var out []interface{} + err := _Forwarder.contract.Call(opts, &out, "getBlockNumber") + + if err != nil { + return *new(*big.Int), err + } + + out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) + + return out0, err + +} + +// GetBlockNumber is a free data retrieval call binding the contract method 0x42cbb15c. +// +// Solidity: function getBlockNumber() view returns(uint256 blockNumber) +func (_Forwarder *ForwarderSession) GetBlockNumber() (*big.Int, error) { + return _Forwarder.Contract.GetBlockNumber(&_Forwarder.CallOpts) +} + +// GetBlockNumber is a free data retrieval call binding the contract method 0x42cbb15c. +// +// Solidity: function getBlockNumber() view returns(uint256 blockNumber) +func (_Forwarder *ForwarderCallerSession) GetBlockNumber() (*big.Int, error) { + return _Forwarder.Contract.GetBlockNumber(&_Forwarder.CallOpts) +} + +// GetChainId is a free data retrieval call binding the contract method 0x3408e470. +// +// Solidity: function getChainId() view returns(uint256 chainid) +func (_Forwarder *ForwarderCaller) GetChainId(opts *bind.CallOpts) (*big.Int, error) { + var out []interface{} + err := _Forwarder.contract.Call(opts, &out, "getChainId") + + if err != nil { + return *new(*big.Int), err + } + + out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) + + return out0, err + +} + +// GetChainId is a free data retrieval call binding the contract method 0x3408e470. +// +// Solidity: function getChainId() view returns(uint256 chainid) +func (_Forwarder *ForwarderSession) GetChainId() (*big.Int, error) { + return _Forwarder.Contract.GetChainId(&_Forwarder.CallOpts) +} + +// GetChainId is a free data retrieval call binding the contract method 0x3408e470. +// +// Solidity: function getChainId() view returns(uint256 chainid) +func (_Forwarder *ForwarderCallerSession) GetChainId() (*big.Int, error) { + return _Forwarder.Contract.GetChainId(&_Forwarder.CallOpts) +} + +// GetCurrentBlockCoinbase is a free data retrieval call binding the contract method 0xa8b0574e. +// +// Solidity: function getCurrentBlockCoinbase() view returns(address coinbase) +func (_Forwarder *ForwarderCaller) GetCurrentBlockCoinbase(opts *bind.CallOpts) (common.Address, error) { + var out []interface{} + err := _Forwarder.contract.Call(opts, &out, "getCurrentBlockCoinbase") + + if err != nil { + return *new(common.Address), err + } + + out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) + + return out0, err + +} + +// GetCurrentBlockCoinbase is a free data retrieval call binding the contract method 0xa8b0574e. +// +// Solidity: function getCurrentBlockCoinbase() view returns(address coinbase) +func (_Forwarder *ForwarderSession) GetCurrentBlockCoinbase() (common.Address, error) { + return _Forwarder.Contract.GetCurrentBlockCoinbase(&_Forwarder.CallOpts) +} + +// GetCurrentBlockCoinbase is a free data retrieval call binding the contract method 0xa8b0574e. +// +// Solidity: function getCurrentBlockCoinbase() view returns(address coinbase) +func (_Forwarder *ForwarderCallerSession) GetCurrentBlockCoinbase() (common.Address, error) { + return _Forwarder.Contract.GetCurrentBlockCoinbase(&_Forwarder.CallOpts) +} + +// GetCurrentBlockDifficulty is a free data retrieval call binding the contract method 0x72425d9d. +// +// Solidity: function getCurrentBlockDifficulty() view returns(uint256 difficulty) +func (_Forwarder *ForwarderCaller) GetCurrentBlockDifficulty(opts *bind.CallOpts) (*big.Int, error) { + var out []interface{} + err := _Forwarder.contract.Call(opts, &out, "getCurrentBlockDifficulty") + + if err != nil { + return *new(*big.Int), err + } + + out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) + + return out0, err + +} + +// GetCurrentBlockDifficulty is a free data retrieval call binding the contract method 0x72425d9d. +// +// Solidity: function getCurrentBlockDifficulty() view returns(uint256 difficulty) +func (_Forwarder *ForwarderSession) GetCurrentBlockDifficulty() (*big.Int, error) { + return _Forwarder.Contract.GetCurrentBlockDifficulty(&_Forwarder.CallOpts) +} + +// GetCurrentBlockDifficulty is a free data retrieval call binding the contract method 0x72425d9d. +// +// Solidity: function getCurrentBlockDifficulty() view returns(uint256 difficulty) +func (_Forwarder *ForwarderCallerSession) GetCurrentBlockDifficulty() (*big.Int, error) { + return _Forwarder.Contract.GetCurrentBlockDifficulty(&_Forwarder.CallOpts) +} + +// GetCurrentBlockGasLimit is a free data retrieval call binding the contract method 0x86d516e8. +// +// Solidity: function getCurrentBlockGasLimit() view returns(uint256 gaslimit) +func (_Forwarder *ForwarderCaller) GetCurrentBlockGasLimit(opts *bind.CallOpts) (*big.Int, error) { + var out []interface{} + err := _Forwarder.contract.Call(opts, &out, "getCurrentBlockGasLimit") + + if err != nil { + return *new(*big.Int), err + } + + out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) + + return out0, err + +} + +// GetCurrentBlockGasLimit is a free data retrieval call binding the contract method 0x86d516e8. +// +// Solidity: function getCurrentBlockGasLimit() view returns(uint256 gaslimit) +func (_Forwarder *ForwarderSession) GetCurrentBlockGasLimit() (*big.Int, error) { + return _Forwarder.Contract.GetCurrentBlockGasLimit(&_Forwarder.CallOpts) +} + +// GetCurrentBlockGasLimit is a free data retrieval call binding the contract method 0x86d516e8. +// +// Solidity: function getCurrentBlockGasLimit() view returns(uint256 gaslimit) +func (_Forwarder *ForwarderCallerSession) GetCurrentBlockGasLimit() (*big.Int, error) { + return _Forwarder.Contract.GetCurrentBlockGasLimit(&_Forwarder.CallOpts) +} + +// GetCurrentBlockTimestamp is a free data retrieval call binding the contract method 0x0f28c97d. +// +// Solidity: function getCurrentBlockTimestamp() view returns(uint256 timestamp) +func (_Forwarder *ForwarderCaller) GetCurrentBlockTimestamp(opts *bind.CallOpts) (*big.Int, error) { + var out []interface{} + err := _Forwarder.contract.Call(opts, &out, "getCurrentBlockTimestamp") + + if err != nil { + return *new(*big.Int), err + } + + out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) + + return out0, err + +} + +// GetCurrentBlockTimestamp is a free data retrieval call binding the contract method 0x0f28c97d. +// +// Solidity: function getCurrentBlockTimestamp() view returns(uint256 timestamp) +func (_Forwarder *ForwarderSession) GetCurrentBlockTimestamp() (*big.Int, error) { + return _Forwarder.Contract.GetCurrentBlockTimestamp(&_Forwarder.CallOpts) +} + +// GetCurrentBlockTimestamp is a free data retrieval call binding the contract method 0x0f28c97d. +// +// Solidity: function getCurrentBlockTimestamp() view returns(uint256 timestamp) +func (_Forwarder *ForwarderCallerSession) GetCurrentBlockTimestamp() (*big.Int, error) { + return _Forwarder.Contract.GetCurrentBlockTimestamp(&_Forwarder.CallOpts) +} + +// GetEthBalance is a free data retrieval call binding the contract method 0x4d2301cc. +// +// Solidity: function getEthBalance(address addr) view returns(uint256 balance) +func (_Forwarder *ForwarderCaller) GetEthBalance(opts *bind.CallOpts, addr common.Address) (*big.Int, error) { + var out []interface{} + err := _Forwarder.contract.Call(opts, &out, "getEthBalance", addr) + + if err != nil { + return *new(*big.Int), err + } + + out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) + + return out0, err + +} + +// GetEthBalance is a free data retrieval call binding the contract method 0x4d2301cc. +// +// Solidity: function getEthBalance(address addr) view returns(uint256 balance) +func (_Forwarder *ForwarderSession) GetEthBalance(addr common.Address) (*big.Int, error) { + return _Forwarder.Contract.GetEthBalance(&_Forwarder.CallOpts, addr) +} + +// GetEthBalance is a free data retrieval call binding the contract method 0x4d2301cc. +// +// Solidity: function getEthBalance(address addr) view returns(uint256 balance) +func (_Forwarder *ForwarderCallerSession) GetEthBalance(addr common.Address) (*big.Int, error) { + return _Forwarder.Contract.GetEthBalance(&_Forwarder.CallOpts, addr) +} + +// GetLastBlockHash is a free data retrieval call binding the contract method 0x27e86d6e. +// +// Solidity: function getLastBlockHash() view returns(bytes32 blockHash) +func (_Forwarder *ForwarderCaller) GetLastBlockHash(opts *bind.CallOpts) ([32]byte, error) { + var out []interface{} + err := _Forwarder.contract.Call(opts, &out, "getLastBlockHash") + + if err != nil { + return *new([32]byte), err + } + + out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte) + + return out0, err + +} + +// GetLastBlockHash is a free data retrieval call binding the contract method 0x27e86d6e. +// +// Solidity: function getLastBlockHash() view returns(bytes32 blockHash) +func (_Forwarder *ForwarderSession) GetLastBlockHash() ([32]byte, error) { + return _Forwarder.Contract.GetLastBlockHash(&_Forwarder.CallOpts) +} + +// GetLastBlockHash is a free data retrieval call binding the contract method 0x27e86d6e. +// +// Solidity: function getLastBlockHash() view returns(bytes32 blockHash) +func (_Forwarder *ForwarderCallerSession) GetLastBlockHash() ([32]byte, error) { + return _Forwarder.Contract.GetLastBlockHash(&_Forwarder.CallOpts) +} + +// GetNonce is a free data retrieval call binding the contract method 0x2d0335ab. +// +// Solidity: function getNonce(address from) view returns(uint256) +func (_Forwarder *ForwarderCaller) GetNonce(opts *bind.CallOpts, from common.Address) (*big.Int, error) { + var out []interface{} + err := _Forwarder.contract.Call(opts, &out, "getNonce", from) + + if err != nil { + return *new(*big.Int), err + } + + out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) + + return out0, err + +} + +// GetNonce is a free data retrieval call binding the contract method 0x2d0335ab. +// +// Solidity: function getNonce(address from) view returns(uint256) +func (_Forwarder *ForwarderSession) GetNonce(from common.Address) (*big.Int, error) { + return _Forwarder.Contract.GetNonce(&_Forwarder.CallOpts, from) +} + +// GetNonce is a free data retrieval call binding the contract method 0x2d0335ab. +// +// Solidity: function getNonce(address from) view returns(uint256) +func (_Forwarder *ForwarderCallerSession) GetNonce(from common.Address) (*big.Int, error) { + return _Forwarder.Contract.GetNonce(&_Forwarder.CallOpts, from) +} + +// Verify is a free data retrieval call binding the contract method 0xbf5d3bdb. +// +// Solidity: function verify((address,address,uint256,uint256,uint256,bytes) req, bytes signature) view returns(bool) +func (_Forwarder *ForwarderCaller) Verify(opts *bind.CallOpts, req MinimalForwarderForwardRequest, signature []byte) (bool, error) { + var out []interface{} + err := _Forwarder.contract.Call(opts, &out, "verify", req, signature) + + if err != nil { + return *new(bool), err + } + + out0 := *abi.ConvertType(out[0], new(bool)).(*bool) + + return out0, err + +} + +// Verify is a free data retrieval call binding the contract method 0xbf5d3bdb. +// +// Solidity: function verify((address,address,uint256,uint256,uint256,bytes) req, bytes signature) view returns(bool) +func (_Forwarder *ForwarderSession) Verify(req MinimalForwarderForwardRequest, signature []byte) (bool, error) { + return _Forwarder.Contract.Verify(&_Forwarder.CallOpts, req, signature) +} + +// Verify is a free data retrieval call binding the contract method 0xbf5d3bdb. +// +// Solidity: function verify((address,address,uint256,uint256,uint256,bytes) req, bytes signature) view returns(bool) +func (_Forwarder *ForwarderCallerSession) Verify(req MinimalForwarderForwardRequest, signature []byte) (bool, error) { + return _Forwarder.Contract.Verify(&_Forwarder.CallOpts, req, signature) +} + +// Aggregate is a paid mutator transaction binding the contract method 0x252dba42. +// +// Solidity: function aggregate((address,bytes)[] calls) payable returns(uint256 blockNumber, bytes[] returnData) +func (_Forwarder *ForwarderTransactor) Aggregate(opts *bind.TransactOpts, calls []TrustedMulticallForwarderCall) (*types.Transaction, error) { + return _Forwarder.contract.Transact(opts, "aggregate", calls) +} + +// Aggregate is a paid mutator transaction binding the contract method 0x252dba42. +// +// Solidity: function aggregate((address,bytes)[] calls) payable returns(uint256 blockNumber, bytes[] returnData) +func (_Forwarder *ForwarderSession) Aggregate(calls []TrustedMulticallForwarderCall) (*types.Transaction, error) { + return _Forwarder.Contract.Aggregate(&_Forwarder.TransactOpts, calls) +} + +// Aggregate is a paid mutator transaction binding the contract method 0x252dba42. +// +// Solidity: function aggregate((address,bytes)[] calls) payable returns(uint256 blockNumber, bytes[] returnData) +func (_Forwarder *ForwarderTransactorSession) Aggregate(calls []TrustedMulticallForwarderCall) (*types.Transaction, error) { + return _Forwarder.Contract.Aggregate(&_Forwarder.TransactOpts, calls) +} + +// Aggregate3 is a paid mutator transaction binding the contract method 0x82ad56cb. +// +// Solidity: function aggregate3((address,bool,bytes)[] calls) payable returns((bool,bytes)[] returnData) +func (_Forwarder *ForwarderTransactor) Aggregate3(opts *bind.TransactOpts, calls []TrustedMulticallForwarderCall3) (*types.Transaction, error) { + return _Forwarder.contract.Transact(opts, "aggregate3", calls) +} + +// Aggregate3 is a paid mutator transaction binding the contract method 0x82ad56cb. +// +// Solidity: function aggregate3((address,bool,bytes)[] calls) payable returns((bool,bytes)[] returnData) +func (_Forwarder *ForwarderSession) Aggregate3(calls []TrustedMulticallForwarderCall3) (*types.Transaction, error) { + return _Forwarder.Contract.Aggregate3(&_Forwarder.TransactOpts, calls) +} + +// Aggregate3 is a paid mutator transaction binding the contract method 0x82ad56cb. +// +// Solidity: function aggregate3((address,bool,bytes)[] calls) payable returns((bool,bytes)[] returnData) +func (_Forwarder *ForwarderTransactorSession) Aggregate3(calls []TrustedMulticallForwarderCall3) (*types.Transaction, error) { + return _Forwarder.Contract.Aggregate3(&_Forwarder.TransactOpts, calls) +} + +// Aggregate3Value is a paid mutator transaction binding the contract method 0x174dea71. +// +// Solidity: function aggregate3Value((address,bool,uint256,bytes)[] calls) payable returns((bool,bytes)[] returnData) +func (_Forwarder *ForwarderTransactor) Aggregate3Value(opts *bind.TransactOpts, calls []TrustedMulticallForwarderCall3Value) (*types.Transaction, error) { + return _Forwarder.contract.Transact(opts, "aggregate3Value", calls) +} + +// Aggregate3Value is a paid mutator transaction binding the contract method 0x174dea71. +// +// Solidity: function aggregate3Value((address,bool,uint256,bytes)[] calls) payable returns((bool,bytes)[] returnData) +func (_Forwarder *ForwarderSession) Aggregate3Value(calls []TrustedMulticallForwarderCall3Value) (*types.Transaction, error) { + return _Forwarder.Contract.Aggregate3Value(&_Forwarder.TransactOpts, calls) +} + +// Aggregate3Value is a paid mutator transaction binding the contract method 0x174dea71. +// +// Solidity: function aggregate3Value((address,bool,uint256,bytes)[] calls) payable returns((bool,bytes)[] returnData) +func (_Forwarder *ForwarderTransactorSession) Aggregate3Value(calls []TrustedMulticallForwarderCall3Value) (*types.Transaction, error) { + return _Forwarder.Contract.Aggregate3Value(&_Forwarder.TransactOpts, calls) +} + +// BlockAndAggregate is a paid mutator transaction binding the contract method 0xc3077fa9. +// +// Solidity: function blockAndAggregate((address,bytes)[] calls) payable returns(uint256 blockNumber, bytes32 blockHash, (bool,bytes)[] returnData) +func (_Forwarder *ForwarderTransactor) BlockAndAggregate(opts *bind.TransactOpts, calls []TrustedMulticallForwarderCall) (*types.Transaction, error) { + return _Forwarder.contract.Transact(opts, "blockAndAggregate", calls) +} + +// BlockAndAggregate is a paid mutator transaction binding the contract method 0xc3077fa9. +// +// Solidity: function blockAndAggregate((address,bytes)[] calls) payable returns(uint256 blockNumber, bytes32 blockHash, (bool,bytes)[] returnData) +func (_Forwarder *ForwarderSession) BlockAndAggregate(calls []TrustedMulticallForwarderCall) (*types.Transaction, error) { + return _Forwarder.Contract.BlockAndAggregate(&_Forwarder.TransactOpts, calls) +} + +// BlockAndAggregate is a paid mutator transaction binding the contract method 0xc3077fa9. +// +// Solidity: function blockAndAggregate((address,bytes)[] calls) payable returns(uint256 blockNumber, bytes32 blockHash, (bool,bytes)[] returnData) +func (_Forwarder *ForwarderTransactorSession) BlockAndAggregate(calls []TrustedMulticallForwarderCall) (*types.Transaction, error) { + return _Forwarder.Contract.BlockAndAggregate(&_Forwarder.TransactOpts, calls) +} + +// Execute is a paid mutator transaction binding the contract method 0x47153f82. +// +// Solidity: function execute((address,address,uint256,uint256,uint256,bytes) req, bytes signature) payable returns(bool, bytes) +func (_Forwarder *ForwarderTransactor) Execute(opts *bind.TransactOpts, req MinimalForwarderForwardRequest, signature []byte) (*types.Transaction, error) { + return _Forwarder.contract.Transact(opts, "execute", req, signature) +} + +// Execute is a paid mutator transaction binding the contract method 0x47153f82. +// +// Solidity: function execute((address,address,uint256,uint256,uint256,bytes) req, bytes signature) payable returns(bool, bytes) +func (_Forwarder *ForwarderSession) Execute(req MinimalForwarderForwardRequest, signature []byte) (*types.Transaction, error) { + return _Forwarder.Contract.Execute(&_Forwarder.TransactOpts, req, signature) +} + +// Execute is a paid mutator transaction binding the contract method 0x47153f82. +// +// Solidity: function execute((address,address,uint256,uint256,uint256,bytes) req, bytes signature) payable returns(bool, bytes) +func (_Forwarder *ForwarderTransactorSession) Execute(req MinimalForwarderForwardRequest, signature []byte) (*types.Transaction, error) { + return _Forwarder.Contract.Execute(&_Forwarder.TransactOpts, req, signature) +} + +// TryAggregate is a paid mutator transaction binding the contract method 0xbce38bd7. +// +// Solidity: function tryAggregate(bool requireSuccess, (address,bytes)[] calls) payable returns((bool,bytes)[] returnData) +func (_Forwarder *ForwarderTransactor) TryAggregate(opts *bind.TransactOpts, requireSuccess bool, calls []TrustedMulticallForwarderCall) (*types.Transaction, error) { + return _Forwarder.contract.Transact(opts, "tryAggregate", requireSuccess, calls) +} + +// TryAggregate is a paid mutator transaction binding the contract method 0xbce38bd7. +// +// Solidity: function tryAggregate(bool requireSuccess, (address,bytes)[] calls) payable returns((bool,bytes)[] returnData) +func (_Forwarder *ForwarderSession) TryAggregate(requireSuccess bool, calls []TrustedMulticallForwarderCall) (*types.Transaction, error) { + return _Forwarder.Contract.TryAggregate(&_Forwarder.TransactOpts, requireSuccess, calls) +} + +// TryAggregate is a paid mutator transaction binding the contract method 0xbce38bd7. +// +// Solidity: function tryAggregate(bool requireSuccess, (address,bytes)[] calls) payable returns((bool,bytes)[] returnData) +func (_Forwarder *ForwarderTransactorSession) TryAggregate(requireSuccess bool, calls []TrustedMulticallForwarderCall) (*types.Transaction, error) { + return _Forwarder.Contract.TryAggregate(&_Forwarder.TransactOpts, requireSuccess, calls) +} + +// TryBlockAndAggregate is a paid mutator transaction binding the contract method 0x399542e9. +// +// Solidity: function tryBlockAndAggregate(bool requireSuccess, (address,bytes)[] calls) payable returns(uint256 blockNumber, bytes32 blockHash, (bool,bytes)[] returnData) +func (_Forwarder *ForwarderTransactor) TryBlockAndAggregate(opts *bind.TransactOpts, requireSuccess bool, calls []TrustedMulticallForwarderCall) (*types.Transaction, error) { + return _Forwarder.contract.Transact(opts, "tryBlockAndAggregate", requireSuccess, calls) +} + +// TryBlockAndAggregate is a paid mutator transaction binding the contract method 0x399542e9. +// +// Solidity: function tryBlockAndAggregate(bool requireSuccess, (address,bytes)[] calls) payable returns(uint256 blockNumber, bytes32 blockHash, (bool,bytes)[] returnData) +func (_Forwarder *ForwarderSession) TryBlockAndAggregate(requireSuccess bool, calls []TrustedMulticallForwarderCall) (*types.Transaction, error) { + return _Forwarder.Contract.TryBlockAndAggregate(&_Forwarder.TransactOpts, requireSuccess, calls) +} + +// TryBlockAndAggregate is a paid mutator transaction binding the contract method 0x399542e9. +// +// Solidity: function tryBlockAndAggregate(bool requireSuccess, (address,bytes)[] calls) payable returns(uint256 blockNumber, bytes32 blockHash, (bool,bytes)[] returnData) +func (_Forwarder *ForwarderTransactorSession) TryBlockAndAggregate(requireSuccess bool, calls []TrustedMulticallForwarderCall) (*types.Transaction, error) { + return _Forwarder.Contract.TryBlockAndAggregate(&_Forwarder.TransactOpts, requireSuccess, calls) +} + +// ForwarderEIP712DomainChangedIterator is returned from FilterEIP712DomainChanged and is used to iterate over the raw logs and unpacked data for EIP712DomainChanged events raised by the Forwarder contract. +type ForwarderEIP712DomainChangedIterator struct { + Event *ForwarderEIP712DomainChanged // Event containing the contract specifics and raw log + + contract *bind.BoundContract // Generic contract to use for unpacking event data + event string // Event name to use for unpacking event data + + logs chan types.Log // Log channel receiving the found contract events + sub ethereum.Subscription // Subscription for errors, completion and termination + done bool // Whether the subscription completed delivering logs + fail error // Occurred error to stop iteration +} + +// Next advances the iterator to the subsequent event, returning whether there +// are any more events found. In case of a retrieval or parsing error, false is +// returned and Error() can be queried for the exact failure. +func (it *ForwarderEIP712DomainChangedIterator) Next() bool { + // If the iterator failed, stop iterating + if it.fail != nil { + return false + } + // If the iterator completed, deliver directly whatever's available + if it.done { + select { + case log := <-it.logs: + it.Event = new(ForwarderEIP712DomainChanged) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + default: + return false + } + } + // Iterator still in progress, wait for either a data or an error event + select { + case log := <-it.logs: + it.Event = new(ForwarderEIP712DomainChanged) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + case err := <-it.sub.Err(): + it.done = true + it.fail = err + return it.Next() + } +} + +// Error returns any retrieval or parsing error occurred during filtering. +func (it *ForwarderEIP712DomainChangedIterator) Error() error { + return it.fail +} + +// Close terminates the iteration process, releasing any pending underlying +// resources. +func (it *ForwarderEIP712DomainChangedIterator) Close() error { + it.sub.Unsubscribe() + return nil +} + +// ForwarderEIP712DomainChanged represents a EIP712DomainChanged event raised by the Forwarder contract. +type ForwarderEIP712DomainChanged struct { + Raw types.Log // Blockchain specific contextual infos +} + +// FilterEIP712DomainChanged is a free log retrieval operation binding the contract event 0x0a6387c9ea3628b88a633bb4f3b151770f70085117a15f9bf3787cda53f13d31. +// +// Solidity: event EIP712DomainChanged() +func (_Forwarder *ForwarderFilterer) FilterEIP712DomainChanged(opts *bind.FilterOpts) (*ForwarderEIP712DomainChangedIterator, error) { + + logs, sub, err := _Forwarder.contract.FilterLogs(opts, "EIP712DomainChanged") + if err != nil { + return nil, err + } + return &ForwarderEIP712DomainChangedIterator{contract: _Forwarder.contract, event: "EIP712DomainChanged", logs: logs, sub: sub}, nil +} + +// WatchEIP712DomainChanged is a free log subscription operation binding the contract event 0x0a6387c9ea3628b88a633bb4f3b151770f70085117a15f9bf3787cda53f13d31. +// +// Solidity: event EIP712DomainChanged() +func (_Forwarder *ForwarderFilterer) WatchEIP712DomainChanged(opts *bind.WatchOpts, sink chan<- *ForwarderEIP712DomainChanged) (event.Subscription, error) { + + logs, sub, err := _Forwarder.contract.WatchLogs(opts, "EIP712DomainChanged") + if err != nil { + return nil, err + } + return event.NewSubscription(func(quit <-chan struct{}) error { + defer sub.Unsubscribe() + for { + select { + case log := <-logs: + // New log arrived, parse the event and forward to the user + event := new(ForwarderEIP712DomainChanged) + if err := _Forwarder.contract.UnpackLog(event, "EIP712DomainChanged", log); err != nil { + return err + } + event.Raw = log + + select { + case sink <- event: + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + } + }), nil +} + +// ParseEIP712DomainChanged is a log parse operation binding the contract event 0x0a6387c9ea3628b88a633bb4f3b151770f70085117a15f9bf3787cda53f13d31. +// +// Solidity: event EIP712DomainChanged() +func (_Forwarder *ForwarderFilterer) ParseEIP712DomainChanged(log types.Log) (*ForwarderEIP712DomainChanged, error) { + event := new(ForwarderEIP712DomainChanged) + if err := _Forwarder.contract.UnpackLog(event, "EIP712DomainChanged", log); err != nil { + return nil, err + } + event.Raw = log + return event, nil +} diff --git a/contracts/perpsMarketGoerli/contract.go b/contracts/perpsMarket/contract.go similarity index 53% rename from contracts/perpsMarketGoerli/contract.go rename to contracts/perpsMarket/contract.go index c33ca50..2c38e39 100644 --- a/contracts/perpsMarketGoerli/contract.go +++ b/contracts/perpsMarket/contract.go @@ -1,7 +1,7 @@ // Code generated - DO NOT EDIT. // This file is a generated binding and any manual changes will be lost. -package perpsMarketGoerli +package perpsMarket import ( "errors" @@ -72,117 +72,116 @@ type SettlementStrategyData struct { FeedId [32]byte Url string SettlementReward *big.Int - PriceDeviationTolerance *big.Int Disabled bool } -// PerpsMarketGoerliMetaData contains all meta data concerning the PerpsMarketGoerli contract. -var PerpsMarketGoerliMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"which\",\"type\":\"bytes32\"}],\"name\":\"FeatureUnavailable\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"InvalidAccountId\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"}],\"name\":\"InvalidPermission\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"origin\",\"type\":\"address\"}],\"name\":\"OnlyAccountTokenProxy\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"}],\"name\":\"PermissionDenied\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"PermissionNotGranted\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"PositionOutOfBounds\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ValueAlreadyInSet\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ValueNotInSet\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroAddress\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"AccountCreated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"PermissionGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"PermissionRevoked\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"createAccount\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"requestedAccountId\",\"type\":\"uint128\"}],\"name\":\"createAccount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"getAccountLastInteraction\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"getAccountOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"getAccountPermissions\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"bytes32[]\",\"name\":\"permissions\",\"type\":\"bytes32[]\"}],\"internalType\":\"structIAccountModule.AccountPermissions[]\",\"name\":\"accountPerms\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAccountTokenAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"grantPermission\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"hasPermission\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"isAuthorized\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"notifyAccountTransfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"}],\"name\":\"renouncePermission\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"revokePermission\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"expected\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"actual\",\"type\":\"bytes32\"}],\"name\":\"MismatchAssociatedSystemKind\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"MissingAssociatedSystem\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"Unauthorized\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"kind\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"impl\",\"type\":\"address\"}],\"name\":\"AssociatedSystemSet\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"getAssociatedSystem\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"kind\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"impl\",\"type\":\"address\"}],\"name\":\"initOrUpgradeNft\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"uint8\",\"name\":\"decimals\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"impl\",\"type\":\"address\"}],\"name\":\"initOrUpgradeToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"endpoint\",\"type\":\"address\"}],\"name\":\"registerUnmanagedSystem\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"DeniedMulticallTarget\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"parameter\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"reason\",\"type\":\"string\"}],\"name\":\"InvalidParameter\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"RecursiveMulticall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"getMessageSender\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"results\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"to\",\"type\":\"address[]\"},{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"},{\"internalType\":\"uint256[]\",\"name\":\"values\",\"type\":\"uint256[]\"}],\"name\":\"multicallThrough\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"results\",\"type\":\"bytes[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"allowlisted\",\"type\":\"bool\"}],\"name\":\"setAllowlistedMulticallTarget\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"ImplementationIsSterile\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NoChange\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"contr\",\"type\":\"address\"}],\"name\":\"NotAContract\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"NotNominated\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UpgradeSimulationFailed\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldOwner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnerChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnerNominated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"self\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getImplementation\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newNominatedOwner\",\"type\":\"address\"}],\"name\":\"nominateNewOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nominatedOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceNomination\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"simulateUpgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"upgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"InvalidMarket\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowInt256ToUint256\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowUint256ToInt256\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowUint256ToUint128\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"PerpsMarketNotInitialized\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"globalPerpsMarketId\",\"type\":\"uint128\"}],\"name\":\"FactoryInitialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"perpsMarketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"marketName\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"marketSymbol\",\"type\":\"string\"}],\"name\":\"MarketCreated\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"requestedMarketId\",\"type\":\"uint128\"},{\"internalType\":\"string\",\"name\":\"marketName\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"marketSymbol\",\"type\":\"string\"}],\"name\":\"createMarket\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"initializeFactory\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"perpsMarketId\",\"type\":\"uint128\"}],\"name\":\"minimumCredit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"perpsMarketId\",\"type\":\"uint128\"}],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"perpsMarketId\",\"type\":\"uint128\"}],\"name\":\"reportedDebt\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractISpotMarketSystem\",\"name\":\"spotMarket\",\"type\":\"address\"}],\"name\":\"setSpotMarket\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractISynthetixSystem\",\"name\":\"synthetix\",\"type\":\"address\"}],\"name\":\"setSynthetix\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"AccountLiquidatable\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"AccountNotFound\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"collateralAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"withdrawAmount\",\"type\":\"uint256\"}],\"name\":\"InsufficientCollateral\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"availableUsdDenominated\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"requiredUsdDenominated\",\"type\":\"uint256\"}],\"name\":\"InsufficientCollateralAvailableForWithdraw\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"collateralAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"withdrawAmount\",\"type\":\"uint256\"}],\"name\":\"InsufficientSynthCollateral\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"int256\",\"name\":\"amountDelta\",\"type\":\"int256\"}],\"name\":\"InvalidAmountDelta\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"maxAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"collateralAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"depositAmount\",\"type\":\"uint256\"}],\"name\":\"MaxCollateralExceeded\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"maxCollateralsPerAccount\",\"type\":\"uint128\"}],\"name\":\"MaxCollateralsPerAccountReached\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowUint128ToInt128\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"PendingOrderExists\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"PriceFeedNotSet\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"}],\"name\":\"SynthNotEnabledForCollateral\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"amountDelta\",\"type\":\"int256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"CollateralModified\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"getAvailableMargin\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"availableMargin\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"}],\"name\":\"getCollateralAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getOpenPosition\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"totalPnl\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"accruedFunding\",\"type\":\"int256\"},{\"internalType\":\"int128\",\"name\":\"positionSize\",\"type\":\"int128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"getRequiredMargins\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"requiredInitialMargin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"requiredMaintenanceMargin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalAccumulatedLiquidationRewards\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxLiquidationReward\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"getWithdrawableMargin\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"withdrawableMargin\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"int256\",\"name\":\"amountDelta\",\"type\":\"int256\"}],\"name\":\"modifyCollateral\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"totalAccountOpenInterest\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"totalCollateralValue\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"currentFundingRate\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"currentFundingVelocity\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"int128\",\"name\":\"orderSize\",\"type\":\"int128\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"name\":\"fillPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMarketSummary\",\"outputs\":[{\"components\":[{\"internalType\":\"int256\",\"name\":\"skew\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"size\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxOpenInterest\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"currentFundingRate\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"currentFundingVelocity\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"indexPrice\",\"type\":\"uint256\"}],\"internalType\":\"structIPerpsMarketModule.MarketSummary\",\"name\":\"summary\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"indexPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"maxOpenInterest\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"metadata\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"size\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"skew\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"fillPrice\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"acceptablePrice\",\"type\":\"uint256\"}],\"name\":\"AcceptablePriceExceeded\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"int256\",\"name\":\"availableMargin\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"minMargin\",\"type\":\"uint256\"}],\"name\":\"InsufficientMargin\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"settlementStrategyId\",\"type\":\"uint128\"}],\"name\":\"InvalidSettlementStrategy\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"maxMarketSize\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"newSideSize\",\"type\":\"int256\"}],\"name\":\"MaxOpenInterestReached\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"maxPositionsPerAccount\",\"type\":\"uint128\"}],\"name\":\"MaxPositionsPerAccountReached\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowInt256ToInt128\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroSizeOrder\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"enumSettlementStrategy.Type\",\"name\":\"orderType\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"int128\",\"name\":\"sizeDelta\",\"type\":\"int128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"acceptablePrice\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"settlementTime\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"expirationTime\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"trackingCode\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"OrderCommitted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"int128\",\"name\":\"sizeDelta\",\"type\":\"int128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"acceptablePrice\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"settlementTime\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"trackingCode\",\"type\":\"bytes32\"}],\"name\":\"PreviousOrderExpired\",\"type\":\"event\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"int128\",\"name\":\"sizeDelta\",\"type\":\"int128\"},{\"internalType\":\"uint128\",\"name\":\"settlementStrategyId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"acceptablePrice\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"trackingCode\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"}],\"internalType\":\"structAsyncOrder.OrderCommitmentRequest\",\"name\":\"commitment\",\"type\":\"tuple\"}],\"name\":\"commitOrder\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"settlementTime\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"int128\",\"name\":\"sizeDelta\",\"type\":\"int128\"},{\"internalType\":\"uint128\",\"name\":\"settlementStrategyId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"acceptablePrice\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"trackingCode\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"}],\"internalType\":\"structAsyncOrder.OrderCommitmentRequest\",\"name\":\"request\",\"type\":\"tuple\"}],\"internalType\":\"structAsyncOrder.Data\",\"name\":\"retOrder\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"fees\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"int128\",\"name\":\"sizeDelta\",\"type\":\"int128\"}],\"name\":\"computeOrderFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"orderFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"fillPrice\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"getOrder\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"settlementTime\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"int128\",\"name\":\"sizeDelta\",\"type\":\"int128\"},{\"internalType\":\"uint128\",\"name\":\"settlementStrategyId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"acceptablePrice\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"trackingCode\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"}],\"internalType\":\"structAsyncOrder.OrderCommitmentRequest\",\"name\":\"request\",\"type\":\"tuple\"}],\"internalType\":\"structAsyncOrder.Data\",\"name\":\"order\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"int128\",\"name\":\"sizeDelta\",\"type\":\"int128\"}],\"name\":\"requiredMarginForOrder\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"requiredMargin\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"leftover\",\"type\":\"uint256\"}],\"name\":\"InsufficientMarginError\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"string[]\",\"name\":\"urls\",\"type\":\"string[]\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"},{\"internalType\":\"bytes4\",\"name\":\"callbackFunction\",\"type\":\"bytes4\"},{\"internalType\":\"bytes\",\"name\":\"extraData\",\"type\":\"bytes\"}],\"name\":\"OffchainLookup\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OrderNotValid\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowUint256ToUint64\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"deviation\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tolerance\",\"type\":\"uint256\"}],\"name\":\"PriceDeviationToleranceExceeded\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"enumSettlementStrategy.Type\",\"name\":\"strategyType\",\"type\":\"uint8\"}],\"name\":\"SettlementStrategyNotFound\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settlementTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settlementExpiration\",\"type\":\"uint256\"}],\"name\":\"SettlementWindowExpired\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settlementTime\",\"type\":\"uint256\"}],\"name\":\"SettlementWindowNotOpen\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"skew\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"size\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"sizeDelta\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"currentFundingRate\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"currentFundingVelocity\",\"type\":\"int256\"}],\"name\":\"MarketUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fillPrice\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"pnl\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"accruedFunding\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"int128\",\"name\":\"sizeDelta\",\"type\":\"int128\"},{\"indexed\":false,\"internalType\":\"int128\",\"name\":\"newSize\",\"type\":\"int128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"totalFees\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"referralFees\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"collectedFees\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"settlementReward\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"trackingCode\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"settler\",\"type\":\"address\"}],\"name\":\"OrderSettled\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"PRECISION\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"settle\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"result\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"extraData\",\"type\":\"bytes\"}],\"name\":\"settlePythOrder\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"allowAll\",\"type\":\"bool\"}],\"name\":\"FeatureFlagAllowAllSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"FeatureFlagAllowlistAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"FeatureFlagAllowlistRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"deniers\",\"type\":\"address[]\"}],\"name\":\"FeatureFlagDeniersReset\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"denyAll\",\"type\":\"bool\"}],\"name\":\"FeatureFlagDenyAllSet\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"addToFeatureFlagAllowlist\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"}],\"name\":\"getDeniers\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"}],\"name\":\"getFeatureFlagAllowAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"}],\"name\":\"getFeatureFlagAllowlist\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"}],\"name\":\"getFeatureFlagDenyAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"isFeatureAllowed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"removeFromFeatureFlagAllowlist\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"address[]\",\"name\":\"deniers\",\"type\":\"address[]\"}],\"name\":\"setDeniers\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"bool\",\"name\":\"allowAll\",\"type\":\"bool\"}],\"name\":\"setFeatureFlagAllowAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"bool\",\"name\":\"denyAll\",\"type\":\"bool\"}],\"name\":\"setFeatureFlagDenyAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"NotEligibleForLiquidation\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"reward\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"fullLiquidation\",\"type\":\"bool\"}],\"name\":\"AccountLiquidated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountLiquidated\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"int128\",\"name\":\"currentPositionSize\",\"type\":\"int128\"}],\"name\":\"PositionLiquidated\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"canLiquidate\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"isEligible\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"liquidate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"liquidationReward\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"liquidateFlagged\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"liquidationReward\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"skewScale\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"maxFundingVelocity\",\"type\":\"uint256\"}],\"name\":\"FundingParametersSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"initialMarginRatioD18\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"maintenanceMarginRatioD18\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"minimumInitialMarginRatioD18\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"liquidationRewardRatioD18\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"minimumPositionMargin\",\"type\":\"uint256\"}],\"name\":\"LiquidationParametersSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"lockedOiRatioD18\",\"type\":\"uint256\"}],\"name\":\"LockedOiRatioSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"feedId\",\"type\":\"bytes32\"}],\"name\":\"MarketPriceDataUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"maxLiquidationLimitAccumulationMultiplier\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"maxSecondsInLiquidationWindow\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"maxLiquidationPd\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"endorsedLiquidator\",\"type\":\"address\"}],\"name\":\"MaxLiquidationParametersSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"maxMarketSize\",\"type\":\"uint256\"}],\"name\":\"MaxMarketSizeSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"makerFeeRatio\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"takerFeeRatio\",\"type\":\"uint256\"}],\"name\":\"OrderFeesSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"components\":[{\"internalType\":\"enumSettlementStrategy.Type\",\"name\":\"strategyType\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"settlementDelay\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settlementWindowDuration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"priceWindowDuration\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"priceVerificationContract\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"feedId\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"url\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"settlementReward\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"priceDeviationTolerance\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"disabled\",\"type\":\"bool\"}],\"indexed\":false,\"internalType\":\"structSettlementStrategy.Data\",\"name\":\"strategy\",\"type\":\"tuple\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"strategyId\",\"type\":\"uint256\"}],\"name\":\"SettlementStrategyAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"strategyId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"enabled\",\"type\":\"bool\"}],\"name\":\"SettlementStrategyEnabled\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"components\":[{\"internalType\":\"enumSettlementStrategy.Type\",\"name\":\"strategyType\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"settlementDelay\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settlementWindowDuration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"priceWindowDuration\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"priceVerificationContract\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"feedId\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"url\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"settlementReward\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"priceDeviationTolerance\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"disabled\",\"type\":\"bool\"}],\"internalType\":\"structSettlementStrategy.Data\",\"name\":\"strategy\",\"type\":\"tuple\"}],\"name\":\"addSettlementStrategy\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"strategyId\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getFundingParameters\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"skewScale\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxFundingVelocity\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getLiquidationParameters\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"initialMarginRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minimumInitialMarginRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maintenanceMarginScalarD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidationRewardRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minimumPositionMargin\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getLockedOiRatio\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMaxLiquidationParameters\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"maxLiquidationLimitAccumulationMultiplier\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxSecondsInLiquidationWindow\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxLiquidationPd\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"endorsedLiquidator\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMaxMarketSize\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"maxMarketSize\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getOrderFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"makerFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"takerFee\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"strategyId\",\"type\":\"uint256\"}],\"name\":\"getSettlementStrategy\",\"outputs\":[{\"components\":[{\"internalType\":\"enumSettlementStrategy.Type\",\"name\":\"strategyType\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"settlementDelay\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settlementWindowDuration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"priceWindowDuration\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"priceVerificationContract\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"feedId\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"url\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"settlementReward\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"priceDeviationTolerance\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"disabled\",\"type\":\"bool\"}],\"internalType\":\"structSettlementStrategy.Data\",\"name\":\"settlementStrategy\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"skewScale\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxFundingVelocity\",\"type\":\"uint256\"}],\"name\":\"setFundingParameters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"initialMarginRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minimumInitialMarginRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maintenanceMarginScalarD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidationRewardRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minimumPositionMargin\",\"type\":\"uint256\"}],\"name\":\"setLiquidationParameters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"lockedOiRatioD18\",\"type\":\"uint256\"}],\"name\":\"setLockedOiRatio\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"maxLiquidationLimitAccumulationMultiplier\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxSecondsInLiquidationWindow\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxLiquidationPd\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"endorsedLiquidator\",\"type\":\"address\"}],\"name\":\"setMaxLiquidationParameters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"maxMarketSize\",\"type\":\"uint256\"}],\"name\":\"setMaxMarketSize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"makerFeeRatio\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"takerFeeRatio\",\"type\":\"uint256\"}],\"name\":\"setOrderFees\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"strategyId\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"enabled\",\"type\":\"bool\"}],\"name\":\"setSettlementStrategyEnabled\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"perpsMarketId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"feedId\",\"type\":\"bytes32\"}],\"name\":\"updatePriceData\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"invalidFeeCollector\",\"type\":\"address\"}],\"name\":\"InvalidFeeCollectorInterface\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"shareRatioD18\",\"type\":\"uint256\"}],\"name\":\"InvalidReferrerShareRatio\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"feeCollector\",\"type\":\"address\"}],\"name\":\"FeeCollectorSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"minLiquidationRewardUsd\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"maxLiquidationRewardUsd\",\"type\":\"uint256\"}],\"name\":\"LiquidationRewardGuardsSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"collateralAmount\",\"type\":\"uint256\"}],\"name\":\"MaxCollateralAmountSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"maxPositionsPerAccount\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"maxCollateralsPerAccount\",\"type\":\"uint128\"}],\"name\":\"PerAccountCapsSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"shareRatioD18\",\"type\":\"uint256\"}],\"name\":\"ReferrerShareUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint128[]\",\"name\":\"newSynthDeductionPriority\",\"type\":\"uint128[]\"}],\"name\":\"SynthDeductionPrioritySet\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"getFeeCollector\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"feeCollector\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getLiquidationRewardGuards\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"minLiquidationRewardUsd\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxLiquidationRewardUsd\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getMarkets\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"marketIds\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"}],\"name\":\"getMaxCollateralAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPerAccountCaps\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"maxPositionsPerAccount\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"maxCollateralsPerAccount\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"}],\"name\":\"getReferrerShare\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"shareRatioD18\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getSynthDeductionPriority\",\"outputs\":[{\"internalType\":\"uint128[]\",\"name\":\"\",\"type\":\"uint128[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"feeCollector\",\"type\":\"address\"}],\"name\":\"setFeeCollector\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"minLiquidationRewardUsd\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxLiquidationRewardUsd\",\"type\":\"uint256\"}],\"name\":\"setLiquidationRewardGuards\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"collateralAmount\",\"type\":\"uint256\"}],\"name\":\"setMaxCollateralAmount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"maxPositionsPerAccount\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"maxCollateralsPerAccount\",\"type\":\"uint128\"}],\"name\":\"setPerAccountCaps\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128[]\",\"name\":\"newSynthDeductionPriority\",\"type\":\"uint128[]\"}],\"name\":\"setSynthDeductionPriority\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalGlobalCollateralValue\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"totalCollateralValue\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"shareRatioD18\",\"type\":\"uint256\"}],\"name\":\"updateReferrerShare\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", +// PerpsMarketMetaData contains all meta data concerning the PerpsMarket contract. +var PerpsMarketMetaData = &bind.MetaData{ + ABI: "[{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"which\",\"type\":\"bytes32\"}],\"name\":\"FeatureUnavailable\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"InvalidAccountId\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"}],\"name\":\"InvalidPermission\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"origin\",\"type\":\"address\"}],\"name\":\"OnlyAccountTokenProxy\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"}],\"name\":\"PermissionDenied\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"PermissionNotGranted\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"PositionOutOfBounds\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ValueAlreadyInSet\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ValueNotInSet\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroAddress\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"AccountCreated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"PermissionGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"PermissionRevoked\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"createAccount\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"requestedAccountId\",\"type\":\"uint128\"}],\"name\":\"createAccount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"getAccountLastInteraction\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"getAccountOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"getAccountPermissions\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"bytes32[]\",\"name\":\"permissions\",\"type\":\"bytes32[]\"}],\"internalType\":\"structIAccountModule.AccountPermissions[]\",\"name\":\"accountPerms\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAccountTokenAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"grantPermission\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"hasPermission\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"isAuthorized\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"notifyAccountTransfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"}],\"name\":\"renouncePermission\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"revokePermission\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"expected\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"actual\",\"type\":\"bytes32\"}],\"name\":\"MismatchAssociatedSystemKind\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"MissingAssociatedSystem\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"Unauthorized\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"kind\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"impl\",\"type\":\"address\"}],\"name\":\"AssociatedSystemSet\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"getAssociatedSystem\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"kind\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"impl\",\"type\":\"address\"}],\"name\":\"initOrUpgradeNft\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"uint8\",\"name\":\"decimals\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"impl\",\"type\":\"address\"}],\"name\":\"initOrUpgradeToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"endpoint\",\"type\":\"address\"}],\"name\":\"registerUnmanagedSystem\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"DeniedMulticallTarget\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"RecursiveMulticall\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"results\",\"type\":\"bytes[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"ImplementationIsSterile\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NoChange\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"contr\",\"type\":\"address\"}],\"name\":\"NotAContract\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"NotNominated\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UpgradeSimulationFailed\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldOwner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnerChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnerNominated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"self\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getImplementation\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newNominatedOwner\",\"type\":\"address\"}],\"name\":\"nominateNewOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nominatedOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceNomination\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"simulateUpgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"upgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"InvalidMarket\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"parameter\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"reason\",\"type\":\"string\"}],\"name\":\"InvalidParameter\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowInt256ToUint256\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowUint256ToInt256\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowUint256ToUint128\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"PerpsMarketNotInitialized\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"globalPerpsMarketId\",\"type\":\"uint128\"}],\"name\":\"FactoryInitialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"perpsMarketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"marketName\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"marketSymbol\",\"type\":\"string\"}],\"name\":\"MarketCreated\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"requestedMarketId\",\"type\":\"uint128\"},{\"internalType\":\"string\",\"name\":\"marketName\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"marketSymbol\",\"type\":\"string\"}],\"name\":\"createMarket\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"initializeFactory\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"perpsMarketId\",\"type\":\"uint128\"}],\"name\":\"minimumCredit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"perpsMarketId\",\"type\":\"uint128\"}],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"perpsMarketId\",\"type\":\"uint128\"}],\"name\":\"reportedDebt\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractISpotMarketSystem\",\"name\":\"spotMarket\",\"type\":\"address\"}],\"name\":\"setSpotMarket\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractISynthetixSystem\",\"name\":\"synthetix\",\"type\":\"address\"}],\"name\":\"setSynthetix\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"AccountLiquidatable\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"AccountNotFound\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"collateralAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"withdrawAmount\",\"type\":\"uint256\"}],\"name\":\"InsufficientCollateral\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"availableUsdDenominated\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"requiredUsdDenominated\",\"type\":\"uint256\"}],\"name\":\"InsufficientCollateralAvailableForWithdraw\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"collateralAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"withdrawAmount\",\"type\":\"uint256\"}],\"name\":\"InsufficientSynthCollateral\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"int256\",\"name\":\"amountDelta\",\"type\":\"int256\"}],\"name\":\"InvalidAmountDelta\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"maxAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"collateralAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"depositAmount\",\"type\":\"uint256\"}],\"name\":\"MaxCollateralExceeded\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"maxCollateralsPerAccount\",\"type\":\"uint128\"}],\"name\":\"MaxCollateralsPerAccountReached\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowUint128ToInt128\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"PendingOrderExists\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"PriceFeedNotSet\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"}],\"name\":\"SynthNotEnabledForCollateral\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"amountDelta\",\"type\":\"int256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"CollateralModified\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"getAvailableMargin\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"availableMargin\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"}],\"name\":\"getCollateralAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getOpenPosition\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"totalPnl\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"accruedFunding\",\"type\":\"int256\"},{\"internalType\":\"int128\",\"name\":\"positionSize\",\"type\":\"int128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"getRequiredMargins\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"requiredInitialMargin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"requiredMaintenanceMargin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalAccumulatedLiquidationRewards\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxLiquidationReward\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"getWithdrawableMargin\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"withdrawableMargin\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"int256\",\"name\":\"amountDelta\",\"type\":\"int256\"}],\"name\":\"modifyCollateral\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"totalAccountOpenInterest\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"totalCollateralValue\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"currentFundingRate\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"currentFundingVelocity\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"int128\",\"name\":\"orderSize\",\"type\":\"int128\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"name\":\"fillPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMarketSummary\",\"outputs\":[{\"components\":[{\"internalType\":\"int256\",\"name\":\"skew\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"size\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxOpenInterest\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"currentFundingRate\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"currentFundingVelocity\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"indexPrice\",\"type\":\"uint256\"}],\"internalType\":\"structIPerpsMarketModule.MarketSummary\",\"name\":\"summary\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"indexPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"maxOpenInterest\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"metadata\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"size\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"skew\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"fillPrice\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"acceptablePrice\",\"type\":\"uint256\"}],\"name\":\"AcceptablePriceExceeded\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"int256\",\"name\":\"availableMargin\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"minMargin\",\"type\":\"uint256\"}],\"name\":\"InsufficientMargin\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"settlementStrategyId\",\"type\":\"uint128\"}],\"name\":\"InvalidSettlementStrategy\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"maxMarketSize\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"newSideSize\",\"type\":\"int256\"}],\"name\":\"MaxOpenInterestReached\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"maxPositionsPerAccount\",\"type\":\"uint128\"}],\"name\":\"MaxPositionsPerAccountReached\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowInt256ToInt128\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroSizeOrder\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"enumSettlementStrategy.Type\",\"name\":\"orderType\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"int128\",\"name\":\"sizeDelta\",\"type\":\"int128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"acceptablePrice\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"settlementTime\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"expirationTime\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"trackingCode\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"OrderCommitted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"int128\",\"name\":\"sizeDelta\",\"type\":\"int128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"acceptablePrice\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"settlementTime\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"trackingCode\",\"type\":\"bytes32\"}],\"name\":\"PreviousOrderExpired\",\"type\":\"event\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"int128\",\"name\":\"sizeDelta\",\"type\":\"int128\"},{\"internalType\":\"uint128\",\"name\":\"settlementStrategyId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"acceptablePrice\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"trackingCode\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"}],\"internalType\":\"structAsyncOrder.OrderCommitmentRequest\",\"name\":\"commitment\",\"type\":\"tuple\"}],\"name\":\"commitOrder\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"settlementTime\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"int128\",\"name\":\"sizeDelta\",\"type\":\"int128\"},{\"internalType\":\"uint128\",\"name\":\"settlementStrategyId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"acceptablePrice\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"trackingCode\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"}],\"internalType\":\"structAsyncOrder.OrderCommitmentRequest\",\"name\":\"request\",\"type\":\"tuple\"}],\"internalType\":\"structAsyncOrder.Data\",\"name\":\"retOrder\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"fees\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"int128\",\"name\":\"sizeDelta\",\"type\":\"int128\"}],\"name\":\"computeOrderFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"orderFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"fillPrice\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"getOrder\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"settlementTime\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"int128\",\"name\":\"sizeDelta\",\"type\":\"int128\"},{\"internalType\":\"uint128\",\"name\":\"settlementStrategyId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"acceptablePrice\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"trackingCode\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"}],\"internalType\":\"structAsyncOrder.OrderCommitmentRequest\",\"name\":\"request\",\"type\":\"tuple\"}],\"internalType\":\"structAsyncOrder.Data\",\"name\":\"order\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"int128\",\"name\":\"sizeDelta\",\"type\":\"int128\"}],\"name\":\"requiredMarginForOrder\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"requiredMargin\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"leftover\",\"type\":\"uint256\"}],\"name\":\"InsufficientMarginError\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"string[]\",\"name\":\"urls\",\"type\":\"string[]\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"},{\"internalType\":\"bytes4\",\"name\":\"callbackFunction\",\"type\":\"bytes4\"},{\"internalType\":\"bytes\",\"name\":\"extraData\",\"type\":\"bytes\"}],\"name\":\"OffchainLookup\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OrderNotValid\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowInt128ToUint128\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowUint256ToUint64\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"enumSettlementStrategy.Type\",\"name\":\"strategyType\",\"type\":\"uint8\"}],\"name\":\"SettlementStrategyNotFound\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settlementTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settlementExpiration\",\"type\":\"uint256\"}],\"name\":\"SettlementWindowExpired\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settlementTime\",\"type\":\"uint256\"}],\"name\":\"SettlementWindowNotOpen\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"skew\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"size\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"sizeDelta\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"currentFundingRate\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"currentFundingVelocity\",\"type\":\"int256\"}],\"name\":\"MarketUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fillPrice\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"pnl\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"accruedFunding\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"int128\",\"name\":\"sizeDelta\",\"type\":\"int128\"},{\"indexed\":false,\"internalType\":\"int128\",\"name\":\"newSize\",\"type\":\"int128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"totalFees\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"referralFees\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"collectedFees\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"settlementReward\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"trackingCode\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"settler\",\"type\":\"address\"}],\"name\":\"OrderSettled\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"PRECISION\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"settle\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"result\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"extraData\",\"type\":\"bytes\"}],\"name\":\"settlePythOrder\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"allowAll\",\"type\":\"bool\"}],\"name\":\"FeatureFlagAllowAllSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"FeatureFlagAllowlistAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"FeatureFlagAllowlistRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"deniers\",\"type\":\"address[]\"}],\"name\":\"FeatureFlagDeniersReset\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"denyAll\",\"type\":\"bool\"}],\"name\":\"FeatureFlagDenyAllSet\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"addToFeatureFlagAllowlist\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"}],\"name\":\"getDeniers\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"}],\"name\":\"getFeatureFlagAllowAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"}],\"name\":\"getFeatureFlagAllowlist\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"}],\"name\":\"getFeatureFlagDenyAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"isFeatureAllowed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"removeFromFeatureFlagAllowlist\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"address[]\",\"name\":\"deniers\",\"type\":\"address[]\"}],\"name\":\"setDeniers\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"bool\",\"name\":\"allowAll\",\"type\":\"bool\"}],\"name\":\"setFeatureFlagAllowAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"bool\",\"name\":\"denyAll\",\"type\":\"bool\"}],\"name\":\"setFeatureFlagDenyAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"NotEligibleForLiquidation\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"reward\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"fullLiquidation\",\"type\":\"bool\"}],\"name\":\"AccountLiquidated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountLiquidated\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"int128\",\"name\":\"currentPositionSize\",\"type\":\"int128\"}],\"name\":\"PositionLiquidated\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"canLiquidate\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"isEligible\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"liquidate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"liquidationReward\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"liquidateFlagged\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"liquidationReward\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"liquidationCapacity\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"capacity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxLiquidationInWindow\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"latestLiquidationTimestamp\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"skewScale\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"maxFundingVelocity\",\"type\":\"uint256\"}],\"name\":\"FundingParametersSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"initialMarginRatioD18\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"maintenanceMarginRatioD18\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"minimumInitialMarginRatioD18\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"liquidationRewardRatioD18\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"minimumPositionMargin\",\"type\":\"uint256\"}],\"name\":\"LiquidationParametersSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"lockedOiRatioD18\",\"type\":\"uint256\"}],\"name\":\"LockedOiRatioSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"feedId\",\"type\":\"bytes32\"}],\"name\":\"MarketPriceDataUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"maxLiquidationLimitAccumulationMultiplier\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"maxSecondsInLiquidationWindow\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"maxLiquidationPd\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"endorsedLiquidator\",\"type\":\"address\"}],\"name\":\"MaxLiquidationParametersSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"maxMarketSize\",\"type\":\"uint256\"}],\"name\":\"MaxMarketSizeSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"makerFeeRatio\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"takerFeeRatio\",\"type\":\"uint256\"}],\"name\":\"OrderFeesSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"components\":[{\"internalType\":\"enumSettlementStrategy.Type\",\"name\":\"strategyType\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"settlementDelay\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settlementWindowDuration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"priceWindowDuration\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"priceVerificationContract\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"feedId\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"url\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"settlementReward\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"disabled\",\"type\":\"bool\"}],\"indexed\":false,\"internalType\":\"structSettlementStrategy.Data\",\"name\":\"strategy\",\"type\":\"tuple\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"strategyId\",\"type\":\"uint256\"}],\"name\":\"SettlementStrategyAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"strategyId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"enabled\",\"type\":\"bool\"}],\"name\":\"SettlementStrategyEnabled\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"components\":[{\"internalType\":\"enumSettlementStrategy.Type\",\"name\":\"strategyType\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"settlementDelay\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settlementWindowDuration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"priceWindowDuration\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"priceVerificationContract\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"feedId\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"url\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"settlementReward\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"disabled\",\"type\":\"bool\"}],\"internalType\":\"structSettlementStrategy.Data\",\"name\":\"strategy\",\"type\":\"tuple\"}],\"name\":\"addSettlementStrategy\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"strategyId\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getFundingParameters\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"skewScale\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxFundingVelocity\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getLiquidationParameters\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"initialMarginRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minimumInitialMarginRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maintenanceMarginScalarD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidationRewardRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minimumPositionMargin\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getLockedOiRatio\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMaxLiquidationParameters\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"maxLiquidationLimitAccumulationMultiplier\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxSecondsInLiquidationWindow\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxLiquidationPd\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"endorsedLiquidator\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMaxMarketSize\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"maxMarketSize\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getOrderFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"makerFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"takerFee\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"strategyId\",\"type\":\"uint256\"}],\"name\":\"getSettlementStrategy\",\"outputs\":[{\"components\":[{\"internalType\":\"enumSettlementStrategy.Type\",\"name\":\"strategyType\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"settlementDelay\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settlementWindowDuration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"priceWindowDuration\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"priceVerificationContract\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"feedId\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"url\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"settlementReward\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"disabled\",\"type\":\"bool\"}],\"internalType\":\"structSettlementStrategy.Data\",\"name\":\"settlementStrategy\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"skewScale\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxFundingVelocity\",\"type\":\"uint256\"}],\"name\":\"setFundingParameters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"initialMarginRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minimumInitialMarginRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maintenanceMarginScalarD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidationRewardRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minimumPositionMargin\",\"type\":\"uint256\"}],\"name\":\"setLiquidationParameters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"lockedOiRatioD18\",\"type\":\"uint256\"}],\"name\":\"setLockedOiRatio\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"maxLiquidationLimitAccumulationMultiplier\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxSecondsInLiquidationWindow\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxLiquidationPd\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"endorsedLiquidator\",\"type\":\"address\"}],\"name\":\"setMaxLiquidationParameters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"maxMarketSize\",\"type\":\"uint256\"}],\"name\":\"setMaxMarketSize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"makerFeeRatio\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"takerFeeRatio\",\"type\":\"uint256\"}],\"name\":\"setOrderFees\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"strategyId\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"enabled\",\"type\":\"bool\"}],\"name\":\"setSettlementStrategyEnabled\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"perpsMarketId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"feedId\",\"type\":\"bytes32\"}],\"name\":\"updatePriceData\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"invalidFeeCollector\",\"type\":\"address\"}],\"name\":\"InvalidFeeCollectorInterface\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"shareRatioD18\",\"type\":\"uint256\"}],\"name\":\"InvalidReferrerShareRatio\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"feeCollector\",\"type\":\"address\"}],\"name\":\"FeeCollectorSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"minLiquidationRewardUsd\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"maxLiquidationRewardUsd\",\"type\":\"uint256\"}],\"name\":\"LiquidationRewardGuardsSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"collateralAmount\",\"type\":\"uint256\"}],\"name\":\"MaxCollateralAmountSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"maxPositionsPerAccount\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"maxCollateralsPerAccount\",\"type\":\"uint128\"}],\"name\":\"PerAccountCapsSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"shareRatioD18\",\"type\":\"uint256\"}],\"name\":\"ReferrerShareUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint128[]\",\"name\":\"newSynthDeductionPriority\",\"type\":\"uint128[]\"}],\"name\":\"SynthDeductionPrioritySet\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"getFeeCollector\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"feeCollector\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getLiquidationRewardGuards\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"minLiquidationRewardUsd\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxLiquidationRewardUsd\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getMarkets\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"marketIds\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"}],\"name\":\"getMaxCollateralAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPerAccountCaps\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"maxPositionsPerAccount\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"maxCollateralsPerAccount\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"}],\"name\":\"getReferrerShare\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"shareRatioD18\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getSynthDeductionPriority\",\"outputs\":[{\"internalType\":\"uint128[]\",\"name\":\"\",\"type\":\"uint128[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"feeCollector\",\"type\":\"address\"}],\"name\":\"setFeeCollector\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"minLiquidationRewardUsd\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxLiquidationRewardUsd\",\"type\":\"uint256\"}],\"name\":\"setLiquidationRewardGuards\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"collateralAmount\",\"type\":\"uint256\"}],\"name\":\"setMaxCollateralAmount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"maxPositionsPerAccount\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"maxCollateralsPerAccount\",\"type\":\"uint128\"}],\"name\":\"setPerAccountCaps\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128[]\",\"name\":\"newSynthDeductionPriority\",\"type\":\"uint128[]\"}],\"name\":\"setSynthDeductionPriority\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalGlobalCollateralValue\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"totalCollateralValue\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"shareRatioD18\",\"type\":\"uint256\"}],\"name\":\"updateReferrerShare\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", } -// PerpsMarketGoerliABI is the input ABI used to generate the binding from. -// Deprecated: Use PerpsMarketGoerliMetaData.ABI instead. -var PerpsMarketGoerliABI = PerpsMarketGoerliMetaData.ABI +// PerpsMarketABI is the input ABI used to generate the binding from. +// Deprecated: Use PerpsMarketMetaData.ABI instead. +var PerpsMarketABI = PerpsMarketMetaData.ABI -// PerpsMarketGoerli is an auto generated Go binding around an Ethereum contract. -type PerpsMarketGoerli struct { - PerpsMarketGoerliCaller // Read-only binding to the contract - PerpsMarketGoerliTransactor // Write-only binding to the contract - PerpsMarketGoerliFilterer // Log filterer for contract events +// PerpsMarket is an auto generated Go binding around an Ethereum contract. +type PerpsMarket struct { + PerpsMarketCaller // Read-only binding to the contract + PerpsMarketTransactor // Write-only binding to the contract + PerpsMarketFilterer // Log filterer for contract events } -// PerpsMarketGoerliCaller is an auto generated read-only Go binding around an Ethereum contract. -type PerpsMarketGoerliCaller struct { +// PerpsMarketCaller is an auto generated read-only Go binding around an Ethereum contract. +type PerpsMarketCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// PerpsMarketGoerliTransactor is an auto generated write-only Go binding around an Ethereum contract. -type PerpsMarketGoerliTransactor struct { +// PerpsMarketTransactor is an auto generated write-only Go binding around an Ethereum contract. +type PerpsMarketTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// PerpsMarketGoerliFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type PerpsMarketGoerliFilterer struct { +// PerpsMarketFilterer is an auto generated log filtering Go binding around an Ethereum contract events. +type PerpsMarketFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// PerpsMarketGoerliSession is an auto generated Go binding around an Ethereum contract, +// PerpsMarketSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. -type PerpsMarketGoerliSession struct { - Contract *PerpsMarketGoerli // 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 +type PerpsMarketSession struct { + Contract *PerpsMarket // 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 } -// PerpsMarketGoerliCallerSession is an auto generated read-only Go binding around an Ethereum contract, +// PerpsMarketCallerSession is an auto generated read-only Go binding around an Ethereum contract, // with pre-set call options. -type PerpsMarketGoerliCallerSession struct { - Contract *PerpsMarketGoerliCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session +type PerpsMarketCallerSession struct { + Contract *PerpsMarketCaller // Generic contract caller binding to set the session for + CallOpts bind.CallOpts // Call options to use throughout this session } -// PerpsMarketGoerliTransactorSession is an auto generated write-only Go binding around an Ethereum contract, +// PerpsMarketTransactorSession is an auto generated write-only Go binding around an Ethereum contract, // with pre-set transact options. -type PerpsMarketGoerliTransactorSession struct { - Contract *PerpsMarketGoerliTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session +type PerpsMarketTransactorSession struct { + Contract *PerpsMarketTransactor // Generic contract transactor binding to set the session for + TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session } -// PerpsMarketGoerliRaw is an auto generated low-level Go binding around an Ethereum contract. -type PerpsMarketGoerliRaw struct { - Contract *PerpsMarketGoerli // Generic contract binding to access the raw methods on +// PerpsMarketRaw is an auto generated low-level Go binding around an Ethereum contract. +type PerpsMarketRaw struct { + Contract *PerpsMarket // Generic contract binding to access the raw methods on } -// PerpsMarketGoerliCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type PerpsMarketGoerliCallerRaw struct { - Contract *PerpsMarketGoerliCaller // Generic read-only contract binding to access the raw methods on +// PerpsMarketCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. +type PerpsMarketCallerRaw struct { + Contract *PerpsMarketCaller // Generic read-only contract binding to access the raw methods on } -// PerpsMarketGoerliTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type PerpsMarketGoerliTransactorRaw struct { - Contract *PerpsMarketGoerliTransactor // Generic write-only contract binding to access the raw methods on +// PerpsMarketTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. +type PerpsMarketTransactorRaw struct { + Contract *PerpsMarketTransactor // Generic write-only contract binding to access the raw methods on } -// NewPerpsMarketGoerli creates a new instance of PerpsMarketGoerli, bound to a specific deployed contract. -func NewPerpsMarketGoerli(address common.Address, backend bind.ContractBackend) (*PerpsMarketGoerli, error) { - contract, err := bindPerpsMarketGoerli(address, backend, backend, backend) +// NewPerpsMarket creates a new instance of PerpsMarket, bound to a specific deployed contract. +func NewPerpsMarket(address common.Address, backend bind.ContractBackend) (*PerpsMarket, error) { + contract, err := bindPerpsMarket(address, backend, backend, backend) if err != nil { return nil, err } - return &PerpsMarketGoerli{PerpsMarketGoerliCaller: PerpsMarketGoerliCaller{contract: contract}, PerpsMarketGoerliTransactor: PerpsMarketGoerliTransactor{contract: contract}, PerpsMarketGoerliFilterer: PerpsMarketGoerliFilterer{contract: contract}}, nil + return &PerpsMarket{PerpsMarketCaller: PerpsMarketCaller{contract: contract}, PerpsMarketTransactor: PerpsMarketTransactor{contract: contract}, PerpsMarketFilterer: PerpsMarketFilterer{contract: contract}}, nil } -// NewPerpsMarketGoerliCaller creates a new read-only instance of PerpsMarketGoerli, bound to a specific deployed contract. -func NewPerpsMarketGoerliCaller(address common.Address, caller bind.ContractCaller) (*PerpsMarketGoerliCaller, error) { - contract, err := bindPerpsMarketGoerli(address, caller, nil, nil) +// NewPerpsMarketCaller creates a new read-only instance of PerpsMarket, bound to a specific deployed contract. +func NewPerpsMarketCaller(address common.Address, caller bind.ContractCaller) (*PerpsMarketCaller, error) { + contract, err := bindPerpsMarket(address, caller, nil, nil) if err != nil { return nil, err } - return &PerpsMarketGoerliCaller{contract: contract}, nil + return &PerpsMarketCaller{contract: contract}, nil } -// NewPerpsMarketGoerliTransactor creates a new write-only instance of PerpsMarketGoerli, bound to a specific deployed contract. -func NewPerpsMarketGoerliTransactor(address common.Address, transactor bind.ContractTransactor) (*PerpsMarketGoerliTransactor, error) { - contract, err := bindPerpsMarketGoerli(address, nil, transactor, nil) +// NewPerpsMarketTransactor creates a new write-only instance of PerpsMarket, bound to a specific deployed contract. +func NewPerpsMarketTransactor(address common.Address, transactor bind.ContractTransactor) (*PerpsMarketTransactor, error) { + contract, err := bindPerpsMarket(address, nil, transactor, nil) if err != nil { return nil, err } - return &PerpsMarketGoerliTransactor{contract: contract}, nil + return &PerpsMarketTransactor{contract: contract}, nil } -// NewPerpsMarketGoerliFilterer creates a new log filterer instance of PerpsMarketGoerli, bound to a specific deployed contract. -func NewPerpsMarketGoerliFilterer(address common.Address, filterer bind.ContractFilterer) (*PerpsMarketGoerliFilterer, error) { - contract, err := bindPerpsMarketGoerli(address, nil, nil, filterer) +// NewPerpsMarketFilterer creates a new log filterer instance of PerpsMarket, bound to a specific deployed contract. +func NewPerpsMarketFilterer(address common.Address, filterer bind.ContractFilterer) (*PerpsMarketFilterer, error) { + contract, err := bindPerpsMarket(address, nil, nil, filterer) if err != nil { return nil, err } - return &PerpsMarketGoerliFilterer{contract: contract}, nil + return &PerpsMarketFilterer{contract: contract}, nil } -// bindPerpsMarketGoerli binds a generic wrapper to an already deployed contract. -func bindPerpsMarketGoerli(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := PerpsMarketGoerliMetaData.GetAbi() +// bindPerpsMarket binds a generic wrapper to an already deployed contract. +func bindPerpsMarket(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { + parsed, err := PerpsMarketMetaData.GetAbi() if err != nil { return nil, err } @@ -193,46 +192,46 @@ func bindPerpsMarketGoerli(address common.Address, caller bind.ContractCaller, t // 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 (_PerpsMarketGoerli *PerpsMarketGoerliRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _PerpsMarketGoerli.Contract.PerpsMarketGoerliCaller.contract.Call(opts, result, method, params...) +func (_PerpsMarket *PerpsMarketRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { + return _PerpsMarket.Contract.PerpsMarketCaller.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. -func (_PerpsMarketGoerli *PerpsMarketGoerliRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.PerpsMarketGoerliTransactor.contract.Transfer(opts) +func (_PerpsMarket *PerpsMarketRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { + return _PerpsMarket.Contract.PerpsMarketTransactor.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. -func (_PerpsMarketGoerli *PerpsMarketGoerliRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.PerpsMarketGoerliTransactor.contract.Transact(opts, method, params...) +func (_PerpsMarket *PerpsMarketRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { + return _PerpsMarket.Contract.PerpsMarketTransactor.contract.Transact(opts, method, params...) } // Call invokes the (constant) contract method with params as input values and // sets the output to result. The result type might be a single field for simple // returns, a slice of interfaces for anonymous returns and a struct for named // returns. -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _PerpsMarketGoerli.Contract.contract.Call(opts, result, method, params...) +func (_PerpsMarket *PerpsMarketCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { + return _PerpsMarket.Contract.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.contract.Transfer(opts) +func (_PerpsMarket *PerpsMarketTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { + return _PerpsMarket.Contract.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.contract.Transact(opts, method, params...) +func (_PerpsMarket *PerpsMarketTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { + return _PerpsMarket.Contract.contract.Transact(opts, method, params...) } // PRECISION is a free data retrieval call binding the contract method 0xaaf5eb68. // // Solidity: function PRECISION() view returns(int256) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) PRECISION(opts *bind.CallOpts) (*big.Int, error) { +func (_PerpsMarket *PerpsMarketCaller) PRECISION(opts *bind.CallOpts) (*big.Int, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "PRECISION") + err := _PerpsMarket.contract.Call(opts, &out, "PRECISION") if err != nil { return *new(*big.Int), err @@ -247,23 +246,23 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) PRECISION(opts *bind.CallOpts // PRECISION is a free data retrieval call binding the contract method 0xaaf5eb68. // // Solidity: function PRECISION() view returns(int256) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) PRECISION() (*big.Int, error) { - return _PerpsMarketGoerli.Contract.PRECISION(&_PerpsMarketGoerli.CallOpts) +func (_PerpsMarket *PerpsMarketSession) PRECISION() (*big.Int, error) { + return _PerpsMarket.Contract.PRECISION(&_PerpsMarket.CallOpts) } // PRECISION is a free data retrieval call binding the contract method 0xaaf5eb68. // // Solidity: function PRECISION() view returns(int256) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) PRECISION() (*big.Int, error) { - return _PerpsMarketGoerli.Contract.PRECISION(&_PerpsMarketGoerli.CallOpts) +func (_PerpsMarket *PerpsMarketCallerSession) PRECISION() (*big.Int, error) { + return _PerpsMarket.Contract.PRECISION(&_PerpsMarket.CallOpts) } // CanLiquidate is a free data retrieval call binding the contract method 0x9b922bba. // // Solidity: function canLiquidate(uint128 accountId) view returns(bool isEligible) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) CanLiquidate(opts *bind.CallOpts, accountId *big.Int) (bool, error) { +func (_PerpsMarket *PerpsMarketCaller) CanLiquidate(opts *bind.CallOpts, accountId *big.Int) (bool, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "canLiquidate", accountId) + err := _PerpsMarket.contract.Call(opts, &out, "canLiquidate", accountId) if err != nil { return *new(bool), err @@ -278,26 +277,26 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) CanLiquidate(opts *bind.CallO // CanLiquidate is a free data retrieval call binding the contract method 0x9b922bba. // // Solidity: function canLiquidate(uint128 accountId) view returns(bool isEligible) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) CanLiquidate(accountId *big.Int) (bool, error) { - return _PerpsMarketGoerli.Contract.CanLiquidate(&_PerpsMarketGoerli.CallOpts, accountId) +func (_PerpsMarket *PerpsMarketSession) CanLiquidate(accountId *big.Int) (bool, error) { + return _PerpsMarket.Contract.CanLiquidate(&_PerpsMarket.CallOpts, accountId) } // CanLiquidate is a free data retrieval call binding the contract method 0x9b922bba. // // Solidity: function canLiquidate(uint128 accountId) view returns(bool isEligible) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) CanLiquidate(accountId *big.Int) (bool, error) { - return _PerpsMarketGoerli.Contract.CanLiquidate(&_PerpsMarketGoerli.CallOpts, accountId) +func (_PerpsMarket *PerpsMarketCallerSession) CanLiquidate(accountId *big.Int) (bool, error) { + return _PerpsMarket.Contract.CanLiquidate(&_PerpsMarket.CallOpts, accountId) } // ComputeOrderFees is a free data retrieval call binding the contract method 0x98ef15a2. // // Solidity: function computeOrderFees(uint128 marketId, int128 sizeDelta) view returns(uint256 orderFees, uint256 fillPrice) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) ComputeOrderFees(opts *bind.CallOpts, marketId *big.Int, sizeDelta *big.Int) (struct { +func (_PerpsMarket *PerpsMarketCaller) ComputeOrderFees(opts *bind.CallOpts, marketId *big.Int, sizeDelta *big.Int) (struct { OrderFees *big.Int FillPrice *big.Int }, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "computeOrderFees", marketId, sizeDelta) + err := _PerpsMarket.contract.Call(opts, &out, "computeOrderFees", marketId, sizeDelta) outstruct := new(struct { OrderFees *big.Int @@ -317,29 +316,29 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) ComputeOrderFees(opts *bind.C // ComputeOrderFees is a free data retrieval call binding the contract method 0x98ef15a2. // // Solidity: function computeOrderFees(uint128 marketId, int128 sizeDelta) view returns(uint256 orderFees, uint256 fillPrice) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) ComputeOrderFees(marketId *big.Int, sizeDelta *big.Int) (struct { +func (_PerpsMarket *PerpsMarketSession) ComputeOrderFees(marketId *big.Int, sizeDelta *big.Int) (struct { OrderFees *big.Int FillPrice *big.Int }, error) { - return _PerpsMarketGoerli.Contract.ComputeOrderFees(&_PerpsMarketGoerli.CallOpts, marketId, sizeDelta) + return _PerpsMarket.Contract.ComputeOrderFees(&_PerpsMarket.CallOpts, marketId, sizeDelta) } // ComputeOrderFees is a free data retrieval call binding the contract method 0x98ef15a2. // // Solidity: function computeOrderFees(uint128 marketId, int128 sizeDelta) view returns(uint256 orderFees, uint256 fillPrice) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) ComputeOrderFees(marketId *big.Int, sizeDelta *big.Int) (struct { +func (_PerpsMarket *PerpsMarketCallerSession) ComputeOrderFees(marketId *big.Int, sizeDelta *big.Int) (struct { OrderFees *big.Int FillPrice *big.Int }, error) { - return _PerpsMarketGoerli.Contract.ComputeOrderFees(&_PerpsMarketGoerli.CallOpts, marketId, sizeDelta) + return _PerpsMarket.Contract.ComputeOrderFees(&_PerpsMarket.CallOpts, marketId, sizeDelta) } // CurrentFundingRate is a free data retrieval call binding the contract method 0xd435b2a2. // // Solidity: function currentFundingRate(uint128 marketId) view returns(int256) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) CurrentFundingRate(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { +func (_PerpsMarket *PerpsMarketCaller) CurrentFundingRate(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "currentFundingRate", marketId) + err := _PerpsMarket.contract.Call(opts, &out, "currentFundingRate", marketId) if err != nil { return *new(*big.Int), err @@ -354,23 +353,23 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) CurrentFundingRate(opts *bind // CurrentFundingRate is a free data retrieval call binding the contract method 0xd435b2a2. // // Solidity: function currentFundingRate(uint128 marketId) view returns(int256) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) CurrentFundingRate(marketId *big.Int) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.CurrentFundingRate(&_PerpsMarketGoerli.CallOpts, marketId) +func (_PerpsMarket *PerpsMarketSession) CurrentFundingRate(marketId *big.Int) (*big.Int, error) { + return _PerpsMarket.Contract.CurrentFundingRate(&_PerpsMarket.CallOpts, marketId) } // CurrentFundingRate is a free data retrieval call binding the contract method 0xd435b2a2. // // Solidity: function currentFundingRate(uint128 marketId) view returns(int256) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) CurrentFundingRate(marketId *big.Int) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.CurrentFundingRate(&_PerpsMarketGoerli.CallOpts, marketId) +func (_PerpsMarket *PerpsMarketCallerSession) CurrentFundingRate(marketId *big.Int) (*big.Int, error) { + return _PerpsMarket.Contract.CurrentFundingRate(&_PerpsMarket.CallOpts, marketId) } // CurrentFundingVelocity is a free data retrieval call binding the contract method 0xf265db02. // // Solidity: function currentFundingVelocity(uint128 marketId) view returns(int256) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) CurrentFundingVelocity(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { +func (_PerpsMarket *PerpsMarketCaller) CurrentFundingVelocity(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "currentFundingVelocity", marketId) + err := _PerpsMarket.contract.Call(opts, &out, "currentFundingVelocity", marketId) if err != nil { return *new(*big.Int), err @@ -385,23 +384,23 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) CurrentFundingVelocity(opts * // CurrentFundingVelocity is a free data retrieval call binding the contract method 0xf265db02. // // Solidity: function currentFundingVelocity(uint128 marketId) view returns(int256) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) CurrentFundingVelocity(marketId *big.Int) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.CurrentFundingVelocity(&_PerpsMarketGoerli.CallOpts, marketId) +func (_PerpsMarket *PerpsMarketSession) CurrentFundingVelocity(marketId *big.Int) (*big.Int, error) { + return _PerpsMarket.Contract.CurrentFundingVelocity(&_PerpsMarket.CallOpts, marketId) } // CurrentFundingVelocity is a free data retrieval call binding the contract method 0xf265db02. // // Solidity: function currentFundingVelocity(uint128 marketId) view returns(int256) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) CurrentFundingVelocity(marketId *big.Int) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.CurrentFundingVelocity(&_PerpsMarketGoerli.CallOpts, marketId) +func (_PerpsMarket *PerpsMarketCallerSession) CurrentFundingVelocity(marketId *big.Int) (*big.Int, error) { + return _PerpsMarket.Contract.CurrentFundingVelocity(&_PerpsMarket.CallOpts, marketId) } // FillPrice is a free data retrieval call binding the contract method 0xdeff90ef. // // Solidity: function fillPrice(uint128 marketId, int128 orderSize, uint256 price) view returns(uint256) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) FillPrice(opts *bind.CallOpts, marketId *big.Int, orderSize *big.Int, price *big.Int) (*big.Int, error) { +func (_PerpsMarket *PerpsMarketCaller) FillPrice(opts *bind.CallOpts, marketId *big.Int, orderSize *big.Int, price *big.Int) (*big.Int, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "fillPrice", marketId, orderSize, price) + err := _PerpsMarket.contract.Call(opts, &out, "fillPrice", marketId, orderSize, price) if err != nil { return *new(*big.Int), err @@ -416,23 +415,23 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) FillPrice(opts *bind.CallOpts // FillPrice is a free data retrieval call binding the contract method 0xdeff90ef. // // Solidity: function fillPrice(uint128 marketId, int128 orderSize, uint256 price) view returns(uint256) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) FillPrice(marketId *big.Int, orderSize *big.Int, price *big.Int) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.FillPrice(&_PerpsMarketGoerli.CallOpts, marketId, orderSize, price) +func (_PerpsMarket *PerpsMarketSession) FillPrice(marketId *big.Int, orderSize *big.Int, price *big.Int) (*big.Int, error) { + return _PerpsMarket.Contract.FillPrice(&_PerpsMarket.CallOpts, marketId, orderSize, price) } // FillPrice is a free data retrieval call binding the contract method 0xdeff90ef. // // Solidity: function fillPrice(uint128 marketId, int128 orderSize, uint256 price) view returns(uint256) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) FillPrice(marketId *big.Int, orderSize *big.Int, price *big.Int) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.FillPrice(&_PerpsMarketGoerli.CallOpts, marketId, orderSize, price) +func (_PerpsMarket *PerpsMarketCallerSession) FillPrice(marketId *big.Int, orderSize *big.Int, price *big.Int) (*big.Int, error) { + return _PerpsMarket.Contract.FillPrice(&_PerpsMarket.CallOpts, marketId, orderSize, price) } // GetAccountLastInteraction is a free data retrieval call binding the contract method 0x1b5dccdb. // // Solidity: function getAccountLastInteraction(uint128 accountId) view returns(uint256) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetAccountLastInteraction(opts *bind.CallOpts, accountId *big.Int) (*big.Int, error) { +func (_PerpsMarket *PerpsMarketCaller) GetAccountLastInteraction(opts *bind.CallOpts, accountId *big.Int) (*big.Int, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "getAccountLastInteraction", accountId) + err := _PerpsMarket.contract.Call(opts, &out, "getAccountLastInteraction", accountId) if err != nil { return *new(*big.Int), err @@ -447,23 +446,23 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetAccountLastInteraction(opt // GetAccountLastInteraction is a free data retrieval call binding the contract method 0x1b5dccdb. // // Solidity: function getAccountLastInteraction(uint128 accountId) view returns(uint256) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetAccountLastInteraction(accountId *big.Int) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.GetAccountLastInteraction(&_PerpsMarketGoerli.CallOpts, accountId) +func (_PerpsMarket *PerpsMarketSession) GetAccountLastInteraction(accountId *big.Int) (*big.Int, error) { + return _PerpsMarket.Contract.GetAccountLastInteraction(&_PerpsMarket.CallOpts, accountId) } // GetAccountLastInteraction is a free data retrieval call binding the contract method 0x1b5dccdb. // // Solidity: function getAccountLastInteraction(uint128 accountId) view returns(uint256) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) GetAccountLastInteraction(accountId *big.Int) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.GetAccountLastInteraction(&_PerpsMarketGoerli.CallOpts, accountId) +func (_PerpsMarket *PerpsMarketCallerSession) GetAccountLastInteraction(accountId *big.Int) (*big.Int, error) { + return _PerpsMarket.Contract.GetAccountLastInteraction(&_PerpsMarket.CallOpts, accountId) } // GetAccountOwner is a free data retrieval call binding the contract method 0xbf60c31d. // // Solidity: function getAccountOwner(uint128 accountId) view returns(address) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetAccountOwner(opts *bind.CallOpts, accountId *big.Int) (common.Address, error) { +func (_PerpsMarket *PerpsMarketCaller) GetAccountOwner(opts *bind.CallOpts, accountId *big.Int) (common.Address, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "getAccountOwner", accountId) + err := _PerpsMarket.contract.Call(opts, &out, "getAccountOwner", accountId) if err != nil { return *new(common.Address), err @@ -478,23 +477,23 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetAccountOwner(opts *bind.Ca // GetAccountOwner is a free data retrieval call binding the contract method 0xbf60c31d. // // Solidity: function getAccountOwner(uint128 accountId) view returns(address) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetAccountOwner(accountId *big.Int) (common.Address, error) { - return _PerpsMarketGoerli.Contract.GetAccountOwner(&_PerpsMarketGoerli.CallOpts, accountId) +func (_PerpsMarket *PerpsMarketSession) GetAccountOwner(accountId *big.Int) (common.Address, error) { + return _PerpsMarket.Contract.GetAccountOwner(&_PerpsMarket.CallOpts, accountId) } // GetAccountOwner is a free data retrieval call binding the contract method 0xbf60c31d. // // Solidity: function getAccountOwner(uint128 accountId) view returns(address) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) GetAccountOwner(accountId *big.Int) (common.Address, error) { - return _PerpsMarketGoerli.Contract.GetAccountOwner(&_PerpsMarketGoerli.CallOpts, accountId) +func (_PerpsMarket *PerpsMarketCallerSession) GetAccountOwner(accountId *big.Int) (common.Address, error) { + return _PerpsMarket.Contract.GetAccountOwner(&_PerpsMarket.CallOpts, accountId) } // GetAccountPermissions is a free data retrieval call binding the contract method 0xa796fecd. // // Solidity: function getAccountPermissions(uint128 accountId) view returns((address,bytes32[])[] accountPerms) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetAccountPermissions(opts *bind.CallOpts, accountId *big.Int) ([]IAccountModuleAccountPermissions, error) { +func (_PerpsMarket *PerpsMarketCaller) GetAccountPermissions(opts *bind.CallOpts, accountId *big.Int) ([]IAccountModuleAccountPermissions, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "getAccountPermissions", accountId) + err := _PerpsMarket.contract.Call(opts, &out, "getAccountPermissions", accountId) if err != nil { return *new([]IAccountModuleAccountPermissions), err @@ -509,23 +508,23 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetAccountPermissions(opts *b // GetAccountPermissions is a free data retrieval call binding the contract method 0xa796fecd. // // Solidity: function getAccountPermissions(uint128 accountId) view returns((address,bytes32[])[] accountPerms) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetAccountPermissions(accountId *big.Int) ([]IAccountModuleAccountPermissions, error) { - return _PerpsMarketGoerli.Contract.GetAccountPermissions(&_PerpsMarketGoerli.CallOpts, accountId) +func (_PerpsMarket *PerpsMarketSession) GetAccountPermissions(accountId *big.Int) ([]IAccountModuleAccountPermissions, error) { + return _PerpsMarket.Contract.GetAccountPermissions(&_PerpsMarket.CallOpts, accountId) } // GetAccountPermissions is a free data retrieval call binding the contract method 0xa796fecd. // // Solidity: function getAccountPermissions(uint128 accountId) view returns((address,bytes32[])[] accountPerms) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) GetAccountPermissions(accountId *big.Int) ([]IAccountModuleAccountPermissions, error) { - return _PerpsMarketGoerli.Contract.GetAccountPermissions(&_PerpsMarketGoerli.CallOpts, accountId) +func (_PerpsMarket *PerpsMarketCallerSession) GetAccountPermissions(accountId *big.Int) ([]IAccountModuleAccountPermissions, error) { + return _PerpsMarket.Contract.GetAccountPermissions(&_PerpsMarket.CallOpts, accountId) } // GetAccountTokenAddress is a free data retrieval call binding the contract method 0xa148bf10. // // Solidity: function getAccountTokenAddress() view returns(address) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetAccountTokenAddress(opts *bind.CallOpts) (common.Address, error) { +func (_PerpsMarket *PerpsMarketCaller) GetAccountTokenAddress(opts *bind.CallOpts) (common.Address, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "getAccountTokenAddress") + err := _PerpsMarket.contract.Call(opts, &out, "getAccountTokenAddress") if err != nil { return *new(common.Address), err @@ -540,26 +539,26 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetAccountTokenAddress(opts * // GetAccountTokenAddress is a free data retrieval call binding the contract method 0xa148bf10. // // Solidity: function getAccountTokenAddress() view returns(address) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetAccountTokenAddress() (common.Address, error) { - return _PerpsMarketGoerli.Contract.GetAccountTokenAddress(&_PerpsMarketGoerli.CallOpts) +func (_PerpsMarket *PerpsMarketSession) GetAccountTokenAddress() (common.Address, error) { + return _PerpsMarket.Contract.GetAccountTokenAddress(&_PerpsMarket.CallOpts) } // GetAccountTokenAddress is a free data retrieval call binding the contract method 0xa148bf10. // // Solidity: function getAccountTokenAddress() view returns(address) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) GetAccountTokenAddress() (common.Address, error) { - return _PerpsMarketGoerli.Contract.GetAccountTokenAddress(&_PerpsMarketGoerli.CallOpts) +func (_PerpsMarket *PerpsMarketCallerSession) GetAccountTokenAddress() (common.Address, error) { + return _PerpsMarket.Contract.GetAccountTokenAddress(&_PerpsMarket.CallOpts) } // GetAssociatedSystem is a free data retrieval call binding the contract method 0x60988e09. // // Solidity: function getAssociatedSystem(bytes32 id) view returns(address addr, bytes32 kind) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetAssociatedSystem(opts *bind.CallOpts, id [32]byte) (struct { +func (_PerpsMarket *PerpsMarketCaller) GetAssociatedSystem(opts *bind.CallOpts, id [32]byte) (struct { Addr common.Address Kind [32]byte }, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "getAssociatedSystem", id) + err := _PerpsMarket.contract.Call(opts, &out, "getAssociatedSystem", id) outstruct := new(struct { Addr common.Address @@ -579,29 +578,29 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetAssociatedSystem(opts *bin // GetAssociatedSystem is a free data retrieval call binding the contract method 0x60988e09. // // Solidity: function getAssociatedSystem(bytes32 id) view returns(address addr, bytes32 kind) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetAssociatedSystem(id [32]byte) (struct { +func (_PerpsMarket *PerpsMarketSession) GetAssociatedSystem(id [32]byte) (struct { Addr common.Address Kind [32]byte }, error) { - return _PerpsMarketGoerli.Contract.GetAssociatedSystem(&_PerpsMarketGoerli.CallOpts, id) + return _PerpsMarket.Contract.GetAssociatedSystem(&_PerpsMarket.CallOpts, id) } // GetAssociatedSystem is a free data retrieval call binding the contract method 0x60988e09. // // Solidity: function getAssociatedSystem(bytes32 id) view returns(address addr, bytes32 kind) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) GetAssociatedSystem(id [32]byte) (struct { +func (_PerpsMarket *PerpsMarketCallerSession) GetAssociatedSystem(id [32]byte) (struct { Addr common.Address Kind [32]byte }, error) { - return _PerpsMarketGoerli.Contract.GetAssociatedSystem(&_PerpsMarketGoerli.CallOpts, id) + return _PerpsMarket.Contract.GetAssociatedSystem(&_PerpsMarket.CallOpts, id) } // GetAvailableMargin is a free data retrieval call binding the contract method 0x0a7dad2d. // // Solidity: function getAvailableMargin(uint128 accountId) view returns(int256 availableMargin) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetAvailableMargin(opts *bind.CallOpts, accountId *big.Int) (*big.Int, error) { +func (_PerpsMarket *PerpsMarketCaller) GetAvailableMargin(opts *bind.CallOpts, accountId *big.Int) (*big.Int, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "getAvailableMargin", accountId) + err := _PerpsMarket.contract.Call(opts, &out, "getAvailableMargin", accountId) if err != nil { return *new(*big.Int), err @@ -616,23 +615,23 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetAvailableMargin(opts *bind // GetAvailableMargin is a free data retrieval call binding the contract method 0x0a7dad2d. // // Solidity: function getAvailableMargin(uint128 accountId) view returns(int256 availableMargin) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetAvailableMargin(accountId *big.Int) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.GetAvailableMargin(&_PerpsMarketGoerli.CallOpts, accountId) +func (_PerpsMarket *PerpsMarketSession) GetAvailableMargin(accountId *big.Int) (*big.Int, error) { + return _PerpsMarket.Contract.GetAvailableMargin(&_PerpsMarket.CallOpts, accountId) } // GetAvailableMargin is a free data retrieval call binding the contract method 0x0a7dad2d. // // Solidity: function getAvailableMargin(uint128 accountId) view returns(int256 availableMargin) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) GetAvailableMargin(accountId *big.Int) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.GetAvailableMargin(&_PerpsMarketGoerli.CallOpts, accountId) +func (_PerpsMarket *PerpsMarketCallerSession) GetAvailableMargin(accountId *big.Int) (*big.Int, error) { + return _PerpsMarket.Contract.GetAvailableMargin(&_PerpsMarket.CallOpts, accountId) } // GetCollateralAmount is a free data retrieval call binding the contract method 0x5dbd5c9b. // // Solidity: function getCollateralAmount(uint128 accountId, uint128 synthMarketId) view returns(uint256) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetCollateralAmount(opts *bind.CallOpts, accountId *big.Int, synthMarketId *big.Int) (*big.Int, error) { +func (_PerpsMarket *PerpsMarketCaller) GetCollateralAmount(opts *bind.CallOpts, accountId *big.Int, synthMarketId *big.Int) (*big.Int, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "getCollateralAmount", accountId, synthMarketId) + err := _PerpsMarket.contract.Call(opts, &out, "getCollateralAmount", accountId, synthMarketId) if err != nil { return *new(*big.Int), err @@ -647,23 +646,23 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetCollateralAmount(opts *bin // GetCollateralAmount is a free data retrieval call binding the contract method 0x5dbd5c9b. // // Solidity: function getCollateralAmount(uint128 accountId, uint128 synthMarketId) view returns(uint256) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetCollateralAmount(accountId *big.Int, synthMarketId *big.Int) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.GetCollateralAmount(&_PerpsMarketGoerli.CallOpts, accountId, synthMarketId) +func (_PerpsMarket *PerpsMarketSession) GetCollateralAmount(accountId *big.Int, synthMarketId *big.Int) (*big.Int, error) { + return _PerpsMarket.Contract.GetCollateralAmount(&_PerpsMarket.CallOpts, accountId, synthMarketId) } // GetCollateralAmount is a free data retrieval call binding the contract method 0x5dbd5c9b. // // Solidity: function getCollateralAmount(uint128 accountId, uint128 synthMarketId) view returns(uint256) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) GetCollateralAmount(accountId *big.Int, synthMarketId *big.Int) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.GetCollateralAmount(&_PerpsMarketGoerli.CallOpts, accountId, synthMarketId) +func (_PerpsMarket *PerpsMarketCallerSession) GetCollateralAmount(accountId *big.Int, synthMarketId *big.Int) (*big.Int, error) { + return _PerpsMarket.Contract.GetCollateralAmount(&_PerpsMarket.CallOpts, accountId, synthMarketId) } // GetDeniers is a free data retrieval call binding the contract method 0xed429cf7. // // Solidity: function getDeniers(bytes32 feature) view returns(address[]) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetDeniers(opts *bind.CallOpts, feature [32]byte) ([]common.Address, error) { +func (_PerpsMarket *PerpsMarketCaller) GetDeniers(opts *bind.CallOpts, feature [32]byte) ([]common.Address, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "getDeniers", feature) + err := _PerpsMarket.contract.Call(opts, &out, "getDeniers", feature) if err != nil { return *new([]common.Address), err @@ -678,23 +677,23 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetDeniers(opts *bind.CallOpt // GetDeniers is a free data retrieval call binding the contract method 0xed429cf7. // // Solidity: function getDeniers(bytes32 feature) view returns(address[]) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetDeniers(feature [32]byte) ([]common.Address, error) { - return _PerpsMarketGoerli.Contract.GetDeniers(&_PerpsMarketGoerli.CallOpts, feature) +func (_PerpsMarket *PerpsMarketSession) GetDeniers(feature [32]byte) ([]common.Address, error) { + return _PerpsMarket.Contract.GetDeniers(&_PerpsMarket.CallOpts, feature) } // GetDeniers is a free data retrieval call binding the contract method 0xed429cf7. // // Solidity: function getDeniers(bytes32 feature) view returns(address[]) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) GetDeniers(feature [32]byte) ([]common.Address, error) { - return _PerpsMarketGoerli.Contract.GetDeniers(&_PerpsMarketGoerli.CallOpts, feature) +func (_PerpsMarket *PerpsMarketCallerSession) GetDeniers(feature [32]byte) ([]common.Address, error) { + return _PerpsMarket.Contract.GetDeniers(&_PerpsMarket.CallOpts, feature) } // GetFeatureFlagAllowAll is a free data retrieval call binding the contract method 0x40a399ef. // // Solidity: function getFeatureFlagAllowAll(bytes32 feature) view returns(bool) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetFeatureFlagAllowAll(opts *bind.CallOpts, feature [32]byte) (bool, error) { +func (_PerpsMarket *PerpsMarketCaller) GetFeatureFlagAllowAll(opts *bind.CallOpts, feature [32]byte) (bool, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "getFeatureFlagAllowAll", feature) + err := _PerpsMarket.contract.Call(opts, &out, "getFeatureFlagAllowAll", feature) if err != nil { return *new(bool), err @@ -709,23 +708,23 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetFeatureFlagAllowAll(opts * // GetFeatureFlagAllowAll is a free data retrieval call binding the contract method 0x40a399ef. // // Solidity: function getFeatureFlagAllowAll(bytes32 feature) view returns(bool) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetFeatureFlagAllowAll(feature [32]byte) (bool, error) { - return _PerpsMarketGoerli.Contract.GetFeatureFlagAllowAll(&_PerpsMarketGoerli.CallOpts, feature) +func (_PerpsMarket *PerpsMarketSession) GetFeatureFlagAllowAll(feature [32]byte) (bool, error) { + return _PerpsMarket.Contract.GetFeatureFlagAllowAll(&_PerpsMarket.CallOpts, feature) } // GetFeatureFlagAllowAll is a free data retrieval call binding the contract method 0x40a399ef. // // Solidity: function getFeatureFlagAllowAll(bytes32 feature) view returns(bool) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) GetFeatureFlagAllowAll(feature [32]byte) (bool, error) { - return _PerpsMarketGoerli.Contract.GetFeatureFlagAllowAll(&_PerpsMarketGoerli.CallOpts, feature) +func (_PerpsMarket *PerpsMarketCallerSession) GetFeatureFlagAllowAll(feature [32]byte) (bool, error) { + return _PerpsMarket.Contract.GetFeatureFlagAllowAll(&_PerpsMarket.CallOpts, feature) } // GetFeatureFlagAllowlist is a free data retrieval call binding the contract method 0xe12c8160. // // Solidity: function getFeatureFlagAllowlist(bytes32 feature) view returns(address[]) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetFeatureFlagAllowlist(opts *bind.CallOpts, feature [32]byte) ([]common.Address, error) { +func (_PerpsMarket *PerpsMarketCaller) GetFeatureFlagAllowlist(opts *bind.CallOpts, feature [32]byte) ([]common.Address, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "getFeatureFlagAllowlist", feature) + err := _PerpsMarket.contract.Call(opts, &out, "getFeatureFlagAllowlist", feature) if err != nil { return *new([]common.Address), err @@ -740,23 +739,23 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetFeatureFlagAllowlist(opts // GetFeatureFlagAllowlist is a free data retrieval call binding the contract method 0xe12c8160. // // Solidity: function getFeatureFlagAllowlist(bytes32 feature) view returns(address[]) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetFeatureFlagAllowlist(feature [32]byte) ([]common.Address, error) { - return _PerpsMarketGoerli.Contract.GetFeatureFlagAllowlist(&_PerpsMarketGoerli.CallOpts, feature) +func (_PerpsMarket *PerpsMarketSession) GetFeatureFlagAllowlist(feature [32]byte) ([]common.Address, error) { + return _PerpsMarket.Contract.GetFeatureFlagAllowlist(&_PerpsMarket.CallOpts, feature) } // GetFeatureFlagAllowlist is a free data retrieval call binding the contract method 0xe12c8160. // // Solidity: function getFeatureFlagAllowlist(bytes32 feature) view returns(address[]) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) GetFeatureFlagAllowlist(feature [32]byte) ([]common.Address, error) { - return _PerpsMarketGoerli.Contract.GetFeatureFlagAllowlist(&_PerpsMarketGoerli.CallOpts, feature) +func (_PerpsMarket *PerpsMarketCallerSession) GetFeatureFlagAllowlist(feature [32]byte) ([]common.Address, error) { + return _PerpsMarket.Contract.GetFeatureFlagAllowlist(&_PerpsMarket.CallOpts, feature) } // GetFeatureFlagDenyAll is a free data retrieval call binding the contract method 0xbcae3ea0. // // Solidity: function getFeatureFlagDenyAll(bytes32 feature) view returns(bool) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetFeatureFlagDenyAll(opts *bind.CallOpts, feature [32]byte) (bool, error) { +func (_PerpsMarket *PerpsMarketCaller) GetFeatureFlagDenyAll(opts *bind.CallOpts, feature [32]byte) (bool, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "getFeatureFlagDenyAll", feature) + err := _PerpsMarket.contract.Call(opts, &out, "getFeatureFlagDenyAll", feature) if err != nil { return *new(bool), err @@ -771,23 +770,23 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetFeatureFlagDenyAll(opts *b // GetFeatureFlagDenyAll is a free data retrieval call binding the contract method 0xbcae3ea0. // // Solidity: function getFeatureFlagDenyAll(bytes32 feature) view returns(bool) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetFeatureFlagDenyAll(feature [32]byte) (bool, error) { - return _PerpsMarketGoerli.Contract.GetFeatureFlagDenyAll(&_PerpsMarketGoerli.CallOpts, feature) +func (_PerpsMarket *PerpsMarketSession) GetFeatureFlagDenyAll(feature [32]byte) (bool, error) { + return _PerpsMarket.Contract.GetFeatureFlagDenyAll(&_PerpsMarket.CallOpts, feature) } // GetFeatureFlagDenyAll is a free data retrieval call binding the contract method 0xbcae3ea0. // // Solidity: function getFeatureFlagDenyAll(bytes32 feature) view returns(bool) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) GetFeatureFlagDenyAll(feature [32]byte) (bool, error) { - return _PerpsMarketGoerli.Contract.GetFeatureFlagDenyAll(&_PerpsMarketGoerli.CallOpts, feature) +func (_PerpsMarket *PerpsMarketCallerSession) GetFeatureFlagDenyAll(feature [32]byte) (bool, error) { + return _PerpsMarket.Contract.GetFeatureFlagDenyAll(&_PerpsMarket.CallOpts, feature) } // GetFeeCollector is a free data retrieval call binding the contract method 0x12fde4b7. // // Solidity: function getFeeCollector() view returns(address feeCollector) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetFeeCollector(opts *bind.CallOpts) (common.Address, error) { +func (_PerpsMarket *PerpsMarketCaller) GetFeeCollector(opts *bind.CallOpts) (common.Address, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "getFeeCollector") + err := _PerpsMarket.contract.Call(opts, &out, "getFeeCollector") if err != nil { return *new(common.Address), err @@ -802,26 +801,26 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetFeeCollector(opts *bind.Ca // GetFeeCollector is a free data retrieval call binding the contract method 0x12fde4b7. // // Solidity: function getFeeCollector() view returns(address feeCollector) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetFeeCollector() (common.Address, error) { - return _PerpsMarketGoerli.Contract.GetFeeCollector(&_PerpsMarketGoerli.CallOpts) +func (_PerpsMarket *PerpsMarketSession) GetFeeCollector() (common.Address, error) { + return _PerpsMarket.Contract.GetFeeCollector(&_PerpsMarket.CallOpts) } // GetFeeCollector is a free data retrieval call binding the contract method 0x12fde4b7. // // Solidity: function getFeeCollector() view returns(address feeCollector) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) GetFeeCollector() (common.Address, error) { - return _PerpsMarketGoerli.Contract.GetFeeCollector(&_PerpsMarketGoerli.CallOpts) +func (_PerpsMarket *PerpsMarketCallerSession) GetFeeCollector() (common.Address, error) { + return _PerpsMarket.Contract.GetFeeCollector(&_PerpsMarket.CallOpts) } // GetFundingParameters is a free data retrieval call binding the contract method 0x1b68d8fa. // // Solidity: function getFundingParameters(uint128 marketId) view returns(uint256 skewScale, uint256 maxFundingVelocity) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetFundingParameters(opts *bind.CallOpts, marketId *big.Int) (struct { +func (_PerpsMarket *PerpsMarketCaller) GetFundingParameters(opts *bind.CallOpts, marketId *big.Int) (struct { SkewScale *big.Int MaxFundingVelocity *big.Int }, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "getFundingParameters", marketId) + err := _PerpsMarket.contract.Call(opts, &out, "getFundingParameters", marketId) outstruct := new(struct { SkewScale *big.Int @@ -841,29 +840,29 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetFundingParameters(opts *bi // GetFundingParameters is a free data retrieval call binding the contract method 0x1b68d8fa. // // Solidity: function getFundingParameters(uint128 marketId) view returns(uint256 skewScale, uint256 maxFundingVelocity) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetFundingParameters(marketId *big.Int) (struct { +func (_PerpsMarket *PerpsMarketSession) GetFundingParameters(marketId *big.Int) (struct { SkewScale *big.Int MaxFundingVelocity *big.Int }, error) { - return _PerpsMarketGoerli.Contract.GetFundingParameters(&_PerpsMarketGoerli.CallOpts, marketId) + return _PerpsMarket.Contract.GetFundingParameters(&_PerpsMarket.CallOpts, marketId) } // GetFundingParameters is a free data retrieval call binding the contract method 0x1b68d8fa. // // Solidity: function getFundingParameters(uint128 marketId) view returns(uint256 skewScale, uint256 maxFundingVelocity) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) GetFundingParameters(marketId *big.Int) (struct { +func (_PerpsMarket *PerpsMarketCallerSession) GetFundingParameters(marketId *big.Int) (struct { SkewScale *big.Int MaxFundingVelocity *big.Int }, error) { - return _PerpsMarketGoerli.Contract.GetFundingParameters(&_PerpsMarketGoerli.CallOpts, marketId) + return _PerpsMarket.Contract.GetFundingParameters(&_PerpsMarket.CallOpts, marketId) } // GetImplementation is a free data retrieval call binding the contract method 0xaaf10f42. // // Solidity: function getImplementation() view returns(address) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetImplementation(opts *bind.CallOpts) (common.Address, error) { +func (_PerpsMarket *PerpsMarketCaller) GetImplementation(opts *bind.CallOpts) (common.Address, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "getImplementation") + err := _PerpsMarket.contract.Call(opts, &out, "getImplementation") if err != nil { return *new(common.Address), err @@ -878,21 +877,21 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetImplementation(opts *bind. // GetImplementation is a free data retrieval call binding the contract method 0xaaf10f42. // // Solidity: function getImplementation() view returns(address) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetImplementation() (common.Address, error) { - return _PerpsMarketGoerli.Contract.GetImplementation(&_PerpsMarketGoerli.CallOpts) +func (_PerpsMarket *PerpsMarketSession) GetImplementation() (common.Address, error) { + return _PerpsMarket.Contract.GetImplementation(&_PerpsMarket.CallOpts) } // GetImplementation is a free data retrieval call binding the contract method 0xaaf10f42. // // Solidity: function getImplementation() view returns(address) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) GetImplementation() (common.Address, error) { - return _PerpsMarketGoerli.Contract.GetImplementation(&_PerpsMarketGoerli.CallOpts) +func (_PerpsMarket *PerpsMarketCallerSession) GetImplementation() (common.Address, error) { + return _PerpsMarket.Contract.GetImplementation(&_PerpsMarket.CallOpts) } // GetLiquidationParameters is a free data retrieval call binding the contract method 0xf94363a6. // // Solidity: function getLiquidationParameters(uint128 marketId) view returns(uint256 initialMarginRatioD18, uint256 minimumInitialMarginRatioD18, uint256 maintenanceMarginScalarD18, uint256 liquidationRewardRatioD18, uint256 minimumPositionMargin) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetLiquidationParameters(opts *bind.CallOpts, marketId *big.Int) (struct { +func (_PerpsMarket *PerpsMarketCaller) GetLiquidationParameters(opts *bind.CallOpts, marketId *big.Int) (struct { InitialMarginRatioD18 *big.Int MinimumInitialMarginRatioD18 *big.Int MaintenanceMarginScalarD18 *big.Int @@ -900,7 +899,7 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetLiquidationParameters(opts MinimumPositionMargin *big.Int }, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "getLiquidationParameters", marketId) + err := _PerpsMarket.contract.Call(opts, &out, "getLiquidationParameters", marketId) outstruct := new(struct { InitialMarginRatioD18 *big.Int @@ -926,38 +925,38 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetLiquidationParameters(opts // GetLiquidationParameters is a free data retrieval call binding the contract method 0xf94363a6. // // Solidity: function getLiquidationParameters(uint128 marketId) view returns(uint256 initialMarginRatioD18, uint256 minimumInitialMarginRatioD18, uint256 maintenanceMarginScalarD18, uint256 liquidationRewardRatioD18, uint256 minimumPositionMargin) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetLiquidationParameters(marketId *big.Int) (struct { +func (_PerpsMarket *PerpsMarketSession) GetLiquidationParameters(marketId *big.Int) (struct { InitialMarginRatioD18 *big.Int MinimumInitialMarginRatioD18 *big.Int MaintenanceMarginScalarD18 *big.Int LiquidationRewardRatioD18 *big.Int MinimumPositionMargin *big.Int }, error) { - return _PerpsMarketGoerli.Contract.GetLiquidationParameters(&_PerpsMarketGoerli.CallOpts, marketId) + return _PerpsMarket.Contract.GetLiquidationParameters(&_PerpsMarket.CallOpts, marketId) } // GetLiquidationParameters is a free data retrieval call binding the contract method 0xf94363a6. // // Solidity: function getLiquidationParameters(uint128 marketId) view returns(uint256 initialMarginRatioD18, uint256 minimumInitialMarginRatioD18, uint256 maintenanceMarginScalarD18, uint256 liquidationRewardRatioD18, uint256 minimumPositionMargin) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) GetLiquidationParameters(marketId *big.Int) (struct { +func (_PerpsMarket *PerpsMarketCallerSession) GetLiquidationParameters(marketId *big.Int) (struct { InitialMarginRatioD18 *big.Int MinimumInitialMarginRatioD18 *big.Int MaintenanceMarginScalarD18 *big.Int LiquidationRewardRatioD18 *big.Int MinimumPositionMargin *big.Int }, error) { - return _PerpsMarketGoerli.Contract.GetLiquidationParameters(&_PerpsMarketGoerli.CallOpts, marketId) + return _PerpsMarket.Contract.GetLiquidationParameters(&_PerpsMarket.CallOpts, marketId) } // GetLiquidationRewardGuards is a free data retrieval call binding the contract method 0x0b7f4b2d. // // Solidity: function getLiquidationRewardGuards() view returns(uint256 minLiquidationRewardUsd, uint256 maxLiquidationRewardUsd) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetLiquidationRewardGuards(opts *bind.CallOpts) (struct { +func (_PerpsMarket *PerpsMarketCaller) GetLiquidationRewardGuards(opts *bind.CallOpts) (struct { MinLiquidationRewardUsd *big.Int MaxLiquidationRewardUsd *big.Int }, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "getLiquidationRewardGuards") + err := _PerpsMarket.contract.Call(opts, &out, "getLiquidationRewardGuards") outstruct := new(struct { MinLiquidationRewardUsd *big.Int @@ -977,29 +976,29 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetLiquidationRewardGuards(op // GetLiquidationRewardGuards is a free data retrieval call binding the contract method 0x0b7f4b2d. // // Solidity: function getLiquidationRewardGuards() view returns(uint256 minLiquidationRewardUsd, uint256 maxLiquidationRewardUsd) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetLiquidationRewardGuards() (struct { +func (_PerpsMarket *PerpsMarketSession) GetLiquidationRewardGuards() (struct { MinLiquidationRewardUsd *big.Int MaxLiquidationRewardUsd *big.Int }, error) { - return _PerpsMarketGoerli.Contract.GetLiquidationRewardGuards(&_PerpsMarketGoerli.CallOpts) + return _PerpsMarket.Contract.GetLiquidationRewardGuards(&_PerpsMarket.CallOpts) } // GetLiquidationRewardGuards is a free data retrieval call binding the contract method 0x0b7f4b2d. // // Solidity: function getLiquidationRewardGuards() view returns(uint256 minLiquidationRewardUsd, uint256 maxLiquidationRewardUsd) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) GetLiquidationRewardGuards() (struct { +func (_PerpsMarket *PerpsMarketCallerSession) GetLiquidationRewardGuards() (struct { MinLiquidationRewardUsd *big.Int MaxLiquidationRewardUsd *big.Int }, error) { - return _PerpsMarketGoerli.Contract.GetLiquidationRewardGuards(&_PerpsMarketGoerli.CallOpts) + return _PerpsMarket.Contract.GetLiquidationRewardGuards(&_PerpsMarket.CallOpts) } // GetLockedOiRatio is a free data retrieval call binding the contract method 0x31edc046. // // Solidity: function getLockedOiRatio(uint128 marketId) view returns(uint256) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetLockedOiRatio(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { +func (_PerpsMarket *PerpsMarketCaller) GetLockedOiRatio(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "getLockedOiRatio", marketId) + err := _PerpsMarket.contract.Call(opts, &out, "getLockedOiRatio", marketId) if err != nil { return *new(*big.Int), err @@ -1014,23 +1013,23 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetLockedOiRatio(opts *bind.C // GetLockedOiRatio is a free data retrieval call binding the contract method 0x31edc046. // // Solidity: function getLockedOiRatio(uint128 marketId) view returns(uint256) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetLockedOiRatio(marketId *big.Int) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.GetLockedOiRatio(&_PerpsMarketGoerli.CallOpts, marketId) +func (_PerpsMarket *PerpsMarketSession) GetLockedOiRatio(marketId *big.Int) (*big.Int, error) { + return _PerpsMarket.Contract.GetLockedOiRatio(&_PerpsMarket.CallOpts, marketId) } // GetLockedOiRatio is a free data retrieval call binding the contract method 0x31edc046. // // Solidity: function getLockedOiRatio(uint128 marketId) view returns(uint256) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) GetLockedOiRatio(marketId *big.Int) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.GetLockedOiRatio(&_PerpsMarketGoerli.CallOpts, marketId) +func (_PerpsMarket *PerpsMarketCallerSession) GetLockedOiRatio(marketId *big.Int) (*big.Int, error) { + return _PerpsMarket.Contract.GetLockedOiRatio(&_PerpsMarket.CallOpts, marketId) } // GetMarketSummary is a free data retrieval call binding the contract method 0x41c2e8bd. // // Solidity: function getMarketSummary(uint128 marketId) view returns((int256,uint256,uint256,int256,int256,uint256) summary) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetMarketSummary(opts *bind.CallOpts, marketId *big.Int) (IPerpsMarketModuleMarketSummary, error) { +func (_PerpsMarket *PerpsMarketCaller) GetMarketSummary(opts *bind.CallOpts, marketId *big.Int) (IPerpsMarketModuleMarketSummary, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "getMarketSummary", marketId) + err := _PerpsMarket.contract.Call(opts, &out, "getMarketSummary", marketId) if err != nil { return *new(IPerpsMarketModuleMarketSummary), err @@ -1045,23 +1044,23 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetMarketSummary(opts *bind.C // GetMarketSummary is a free data retrieval call binding the contract method 0x41c2e8bd. // // Solidity: function getMarketSummary(uint128 marketId) view returns((int256,uint256,uint256,int256,int256,uint256) summary) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetMarketSummary(marketId *big.Int) (IPerpsMarketModuleMarketSummary, error) { - return _PerpsMarketGoerli.Contract.GetMarketSummary(&_PerpsMarketGoerli.CallOpts, marketId) +func (_PerpsMarket *PerpsMarketSession) GetMarketSummary(marketId *big.Int) (IPerpsMarketModuleMarketSummary, error) { + return _PerpsMarket.Contract.GetMarketSummary(&_PerpsMarket.CallOpts, marketId) } // GetMarketSummary is a free data retrieval call binding the contract method 0x41c2e8bd. // // Solidity: function getMarketSummary(uint128 marketId) view returns((int256,uint256,uint256,int256,int256,uint256) summary) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) GetMarketSummary(marketId *big.Int) (IPerpsMarketModuleMarketSummary, error) { - return _PerpsMarketGoerli.Contract.GetMarketSummary(&_PerpsMarketGoerli.CallOpts, marketId) +func (_PerpsMarket *PerpsMarketCallerSession) GetMarketSummary(marketId *big.Int) (IPerpsMarketModuleMarketSummary, error) { + return _PerpsMarket.Contract.GetMarketSummary(&_PerpsMarket.CallOpts, marketId) } // GetMarkets is a free data retrieval call binding the contract method 0xec2c9016. // // Solidity: function getMarkets() view returns(uint256[] marketIds) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetMarkets(opts *bind.CallOpts) ([]*big.Int, error) { +func (_PerpsMarket *PerpsMarketCaller) GetMarkets(opts *bind.CallOpts) ([]*big.Int, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "getMarkets") + err := _PerpsMarket.contract.Call(opts, &out, "getMarkets") if err != nil { return *new([]*big.Int), err @@ -1076,23 +1075,23 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetMarkets(opts *bind.CallOpt // GetMarkets is a free data retrieval call binding the contract method 0xec2c9016. // // Solidity: function getMarkets() view returns(uint256[] marketIds) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetMarkets() ([]*big.Int, error) { - return _PerpsMarketGoerli.Contract.GetMarkets(&_PerpsMarketGoerli.CallOpts) +func (_PerpsMarket *PerpsMarketSession) GetMarkets() ([]*big.Int, error) { + return _PerpsMarket.Contract.GetMarkets(&_PerpsMarket.CallOpts) } // GetMarkets is a free data retrieval call binding the contract method 0xec2c9016. // // Solidity: function getMarkets() view returns(uint256[] marketIds) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) GetMarkets() ([]*big.Int, error) { - return _PerpsMarketGoerli.Contract.GetMarkets(&_PerpsMarketGoerli.CallOpts) +func (_PerpsMarket *PerpsMarketCallerSession) GetMarkets() ([]*big.Int, error) { + return _PerpsMarket.Contract.GetMarkets(&_PerpsMarket.CallOpts) } // GetMaxCollateralAmount is a free data retrieval call binding the contract method 0x4ff68ae2. // // Solidity: function getMaxCollateralAmount(uint128 synthMarketId) view returns(uint256) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetMaxCollateralAmount(opts *bind.CallOpts, synthMarketId *big.Int) (*big.Int, error) { +func (_PerpsMarket *PerpsMarketCaller) GetMaxCollateralAmount(opts *bind.CallOpts, synthMarketId *big.Int) (*big.Int, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "getMaxCollateralAmount", synthMarketId) + err := _PerpsMarket.contract.Call(opts, &out, "getMaxCollateralAmount", synthMarketId) if err != nil { return *new(*big.Int), err @@ -1107,28 +1106,28 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetMaxCollateralAmount(opts * // GetMaxCollateralAmount is a free data retrieval call binding the contract method 0x4ff68ae2. // // Solidity: function getMaxCollateralAmount(uint128 synthMarketId) view returns(uint256) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetMaxCollateralAmount(synthMarketId *big.Int) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.GetMaxCollateralAmount(&_PerpsMarketGoerli.CallOpts, synthMarketId) +func (_PerpsMarket *PerpsMarketSession) GetMaxCollateralAmount(synthMarketId *big.Int) (*big.Int, error) { + return _PerpsMarket.Contract.GetMaxCollateralAmount(&_PerpsMarket.CallOpts, synthMarketId) } // GetMaxCollateralAmount is a free data retrieval call binding the contract method 0x4ff68ae2. // // Solidity: function getMaxCollateralAmount(uint128 synthMarketId) view returns(uint256) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) GetMaxCollateralAmount(synthMarketId *big.Int) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.GetMaxCollateralAmount(&_PerpsMarketGoerli.CallOpts, synthMarketId) +func (_PerpsMarket *PerpsMarketCallerSession) GetMaxCollateralAmount(synthMarketId *big.Int) (*big.Int, error) { + return _PerpsMarket.Contract.GetMaxCollateralAmount(&_PerpsMarket.CallOpts, synthMarketId) } // GetMaxLiquidationParameters is a free data retrieval call binding the contract method 0x5443e33e. // // Solidity: function getMaxLiquidationParameters(uint128 marketId) view returns(uint256 maxLiquidationLimitAccumulationMultiplier, uint256 maxSecondsInLiquidationWindow, uint256 maxLiquidationPd, address endorsedLiquidator) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetMaxLiquidationParameters(opts *bind.CallOpts, marketId *big.Int) (struct { +func (_PerpsMarket *PerpsMarketCaller) GetMaxLiquidationParameters(opts *bind.CallOpts, marketId *big.Int) (struct { MaxLiquidationLimitAccumulationMultiplier *big.Int MaxSecondsInLiquidationWindow *big.Int MaxLiquidationPd *big.Int EndorsedLiquidator common.Address }, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "getMaxLiquidationParameters", marketId) + err := _PerpsMarket.contract.Call(opts, &out, "getMaxLiquidationParameters", marketId) outstruct := new(struct { MaxLiquidationLimitAccumulationMultiplier *big.Int @@ -1152,33 +1151,33 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetMaxLiquidationParameters(o // GetMaxLiquidationParameters is a free data retrieval call binding the contract method 0x5443e33e. // // Solidity: function getMaxLiquidationParameters(uint128 marketId) view returns(uint256 maxLiquidationLimitAccumulationMultiplier, uint256 maxSecondsInLiquidationWindow, uint256 maxLiquidationPd, address endorsedLiquidator) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetMaxLiquidationParameters(marketId *big.Int) (struct { +func (_PerpsMarket *PerpsMarketSession) GetMaxLiquidationParameters(marketId *big.Int) (struct { MaxLiquidationLimitAccumulationMultiplier *big.Int MaxSecondsInLiquidationWindow *big.Int MaxLiquidationPd *big.Int EndorsedLiquidator common.Address }, error) { - return _PerpsMarketGoerli.Contract.GetMaxLiquidationParameters(&_PerpsMarketGoerli.CallOpts, marketId) + return _PerpsMarket.Contract.GetMaxLiquidationParameters(&_PerpsMarket.CallOpts, marketId) } // GetMaxLiquidationParameters is a free data retrieval call binding the contract method 0x5443e33e. // // Solidity: function getMaxLiquidationParameters(uint128 marketId) view returns(uint256 maxLiquidationLimitAccumulationMultiplier, uint256 maxSecondsInLiquidationWindow, uint256 maxLiquidationPd, address endorsedLiquidator) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) GetMaxLiquidationParameters(marketId *big.Int) (struct { +func (_PerpsMarket *PerpsMarketCallerSession) GetMaxLiquidationParameters(marketId *big.Int) (struct { MaxLiquidationLimitAccumulationMultiplier *big.Int MaxSecondsInLiquidationWindow *big.Int MaxLiquidationPd *big.Int EndorsedLiquidator common.Address }, error) { - return _PerpsMarketGoerli.Contract.GetMaxLiquidationParameters(&_PerpsMarketGoerli.CallOpts, marketId) + return _PerpsMarket.Contract.GetMaxLiquidationParameters(&_PerpsMarket.CallOpts, marketId) } // GetMaxMarketSize is a free data retrieval call binding the contract method 0x19a99bf5. // // Solidity: function getMaxMarketSize(uint128 marketId) view returns(uint256 maxMarketSize) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetMaxMarketSize(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { +func (_PerpsMarket *PerpsMarketCaller) GetMaxMarketSize(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "getMaxMarketSize", marketId) + err := _PerpsMarket.contract.Call(opts, &out, "getMaxMarketSize", marketId) if err != nil { return *new(*big.Int), err @@ -1193,58 +1192,27 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetMaxMarketSize(opts *bind.C // GetMaxMarketSize is a free data retrieval call binding the contract method 0x19a99bf5. // // Solidity: function getMaxMarketSize(uint128 marketId) view returns(uint256 maxMarketSize) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetMaxMarketSize(marketId *big.Int) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.GetMaxMarketSize(&_PerpsMarketGoerli.CallOpts, marketId) +func (_PerpsMarket *PerpsMarketSession) GetMaxMarketSize(marketId *big.Int) (*big.Int, error) { + return _PerpsMarket.Contract.GetMaxMarketSize(&_PerpsMarket.CallOpts, marketId) } // GetMaxMarketSize is a free data retrieval call binding the contract method 0x19a99bf5. // // Solidity: function getMaxMarketSize(uint128 marketId) view returns(uint256 maxMarketSize) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) GetMaxMarketSize(marketId *big.Int) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.GetMaxMarketSize(&_PerpsMarketGoerli.CallOpts, marketId) -} - -// GetMessageSender is a free data retrieval call binding the contract method 0x76167a89. -// -// Solidity: function getMessageSender() view returns(address) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetMessageSender(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "getMessageSender") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// GetMessageSender is a free data retrieval call binding the contract method 0x76167a89. -// -// Solidity: function getMessageSender() view returns(address) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetMessageSender() (common.Address, error) { - return _PerpsMarketGoerli.Contract.GetMessageSender(&_PerpsMarketGoerli.CallOpts) -} - -// GetMessageSender is a free data retrieval call binding the contract method 0x76167a89. -// -// Solidity: function getMessageSender() view returns(address) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) GetMessageSender() (common.Address, error) { - return _PerpsMarketGoerli.Contract.GetMessageSender(&_PerpsMarketGoerli.CallOpts) +func (_PerpsMarket *PerpsMarketCallerSession) GetMaxMarketSize(marketId *big.Int) (*big.Int, error) { + return _PerpsMarket.Contract.GetMaxMarketSize(&_PerpsMarket.CallOpts, marketId) } // GetOpenPosition is a free data retrieval call binding the contract method 0x22a73967. // // Solidity: function getOpenPosition(uint128 accountId, uint128 marketId) view returns(int256 totalPnl, int256 accruedFunding, int128 positionSize) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetOpenPosition(opts *bind.CallOpts, accountId *big.Int, marketId *big.Int) (struct { +func (_PerpsMarket *PerpsMarketCaller) GetOpenPosition(opts *bind.CallOpts, accountId *big.Int, marketId *big.Int) (struct { TotalPnl *big.Int AccruedFunding *big.Int PositionSize *big.Int }, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "getOpenPosition", accountId, marketId) + err := _PerpsMarket.contract.Call(opts, &out, "getOpenPosition", accountId, marketId) outstruct := new(struct { TotalPnl *big.Int @@ -1266,31 +1234,31 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetOpenPosition(opts *bind.Ca // GetOpenPosition is a free data retrieval call binding the contract method 0x22a73967. // // Solidity: function getOpenPosition(uint128 accountId, uint128 marketId) view returns(int256 totalPnl, int256 accruedFunding, int128 positionSize) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetOpenPosition(accountId *big.Int, marketId *big.Int) (struct { +func (_PerpsMarket *PerpsMarketSession) GetOpenPosition(accountId *big.Int, marketId *big.Int) (struct { TotalPnl *big.Int AccruedFunding *big.Int PositionSize *big.Int }, error) { - return _PerpsMarketGoerli.Contract.GetOpenPosition(&_PerpsMarketGoerli.CallOpts, accountId, marketId) + return _PerpsMarket.Contract.GetOpenPosition(&_PerpsMarket.CallOpts, accountId, marketId) } // GetOpenPosition is a free data retrieval call binding the contract method 0x22a73967. // // Solidity: function getOpenPosition(uint128 accountId, uint128 marketId) view returns(int256 totalPnl, int256 accruedFunding, int128 positionSize) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) GetOpenPosition(accountId *big.Int, marketId *big.Int) (struct { +func (_PerpsMarket *PerpsMarketCallerSession) GetOpenPosition(accountId *big.Int, marketId *big.Int) (struct { TotalPnl *big.Int AccruedFunding *big.Int PositionSize *big.Int }, error) { - return _PerpsMarketGoerli.Contract.GetOpenPosition(&_PerpsMarketGoerli.CallOpts, accountId, marketId) + return _PerpsMarket.Contract.GetOpenPosition(&_PerpsMarket.CallOpts, accountId, marketId) } // GetOrder is a free data retrieval call binding the contract method 0x117d4128. // // Solidity: function getOrder(uint128 accountId) view returns((uint256,(uint128,uint128,int128,uint128,uint256,bytes32,address)) order) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetOrder(opts *bind.CallOpts, accountId *big.Int) (AsyncOrderData, error) { +func (_PerpsMarket *PerpsMarketCaller) GetOrder(opts *bind.CallOpts, accountId *big.Int) (AsyncOrderData, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "getOrder", accountId) + err := _PerpsMarket.contract.Call(opts, &out, "getOrder", accountId) if err != nil { return *new(AsyncOrderData), err @@ -1305,26 +1273,26 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetOrder(opts *bind.CallOpts, // GetOrder is a free data retrieval call binding the contract method 0x117d4128. // // Solidity: function getOrder(uint128 accountId) view returns((uint256,(uint128,uint128,int128,uint128,uint256,bytes32,address)) order) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetOrder(accountId *big.Int) (AsyncOrderData, error) { - return _PerpsMarketGoerli.Contract.GetOrder(&_PerpsMarketGoerli.CallOpts, accountId) +func (_PerpsMarket *PerpsMarketSession) GetOrder(accountId *big.Int) (AsyncOrderData, error) { + return _PerpsMarket.Contract.GetOrder(&_PerpsMarket.CallOpts, accountId) } // GetOrder is a free data retrieval call binding the contract method 0x117d4128. // // Solidity: function getOrder(uint128 accountId) view returns((uint256,(uint128,uint128,int128,uint128,uint256,bytes32,address)) order) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) GetOrder(accountId *big.Int) (AsyncOrderData, error) { - return _PerpsMarketGoerli.Contract.GetOrder(&_PerpsMarketGoerli.CallOpts, accountId) +func (_PerpsMarket *PerpsMarketCallerSession) GetOrder(accountId *big.Int) (AsyncOrderData, error) { + return _PerpsMarket.Contract.GetOrder(&_PerpsMarket.CallOpts, accountId) } // GetOrderFees is a free data retrieval call binding the contract method 0xaac23e8c. // // Solidity: function getOrderFees(uint128 marketId) view returns(uint256 makerFee, uint256 takerFee) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetOrderFees(opts *bind.CallOpts, marketId *big.Int) (struct { +func (_PerpsMarket *PerpsMarketCaller) GetOrderFees(opts *bind.CallOpts, marketId *big.Int) (struct { MakerFee *big.Int TakerFee *big.Int }, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "getOrderFees", marketId) + err := _PerpsMarket.contract.Call(opts, &out, "getOrderFees", marketId) outstruct := new(struct { MakerFee *big.Int @@ -1344,32 +1312,32 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetOrderFees(opts *bind.CallO // GetOrderFees is a free data retrieval call binding the contract method 0xaac23e8c. // // Solidity: function getOrderFees(uint128 marketId) view returns(uint256 makerFee, uint256 takerFee) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetOrderFees(marketId *big.Int) (struct { +func (_PerpsMarket *PerpsMarketSession) GetOrderFees(marketId *big.Int) (struct { MakerFee *big.Int TakerFee *big.Int }, error) { - return _PerpsMarketGoerli.Contract.GetOrderFees(&_PerpsMarketGoerli.CallOpts, marketId) + return _PerpsMarket.Contract.GetOrderFees(&_PerpsMarket.CallOpts, marketId) } // GetOrderFees is a free data retrieval call binding the contract method 0xaac23e8c. // // Solidity: function getOrderFees(uint128 marketId) view returns(uint256 makerFee, uint256 takerFee) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) GetOrderFees(marketId *big.Int) (struct { +func (_PerpsMarket *PerpsMarketCallerSession) GetOrderFees(marketId *big.Int) (struct { MakerFee *big.Int TakerFee *big.Int }, error) { - return _PerpsMarketGoerli.Contract.GetOrderFees(&_PerpsMarketGoerli.CallOpts, marketId) + return _PerpsMarket.Contract.GetOrderFees(&_PerpsMarket.CallOpts, marketId) } // GetPerAccountCaps is a free data retrieval call binding the contract method 0x774f7b07. // // Solidity: function getPerAccountCaps() view returns(uint128 maxPositionsPerAccount, uint128 maxCollateralsPerAccount) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetPerAccountCaps(opts *bind.CallOpts) (struct { +func (_PerpsMarket *PerpsMarketCaller) GetPerAccountCaps(opts *bind.CallOpts) (struct { MaxPositionsPerAccount *big.Int MaxCollateralsPerAccount *big.Int }, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "getPerAccountCaps") + err := _PerpsMarket.contract.Call(opts, &out, "getPerAccountCaps") outstruct := new(struct { MaxPositionsPerAccount *big.Int @@ -1389,29 +1357,29 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetPerAccountCaps(opts *bind. // GetPerAccountCaps is a free data retrieval call binding the contract method 0x774f7b07. // // Solidity: function getPerAccountCaps() view returns(uint128 maxPositionsPerAccount, uint128 maxCollateralsPerAccount) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetPerAccountCaps() (struct { +func (_PerpsMarket *PerpsMarketSession) GetPerAccountCaps() (struct { MaxPositionsPerAccount *big.Int MaxCollateralsPerAccount *big.Int }, error) { - return _PerpsMarketGoerli.Contract.GetPerAccountCaps(&_PerpsMarketGoerli.CallOpts) + return _PerpsMarket.Contract.GetPerAccountCaps(&_PerpsMarket.CallOpts) } // GetPerAccountCaps is a free data retrieval call binding the contract method 0x774f7b07. // // Solidity: function getPerAccountCaps() view returns(uint128 maxPositionsPerAccount, uint128 maxCollateralsPerAccount) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) GetPerAccountCaps() (struct { +func (_PerpsMarket *PerpsMarketCallerSession) GetPerAccountCaps() (struct { MaxPositionsPerAccount *big.Int MaxCollateralsPerAccount *big.Int }, error) { - return _PerpsMarketGoerli.Contract.GetPerAccountCaps(&_PerpsMarketGoerli.CallOpts) + return _PerpsMarket.Contract.GetPerAccountCaps(&_PerpsMarket.CallOpts) } // GetReferrerShare is a free data retrieval call binding the contract method 0xcae77b70. // // Solidity: function getReferrerShare(address referrer) view returns(uint256 shareRatioD18) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetReferrerShare(opts *bind.CallOpts, referrer common.Address) (*big.Int, error) { +func (_PerpsMarket *PerpsMarketCaller) GetReferrerShare(opts *bind.CallOpts, referrer common.Address) (*big.Int, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "getReferrerShare", referrer) + err := _PerpsMarket.contract.Call(opts, &out, "getReferrerShare", referrer) if err != nil { return *new(*big.Int), err @@ -1426,28 +1394,28 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetReferrerShare(opts *bind.C // GetReferrerShare is a free data retrieval call binding the contract method 0xcae77b70. // // Solidity: function getReferrerShare(address referrer) view returns(uint256 shareRatioD18) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetReferrerShare(referrer common.Address) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.GetReferrerShare(&_PerpsMarketGoerli.CallOpts, referrer) +func (_PerpsMarket *PerpsMarketSession) GetReferrerShare(referrer common.Address) (*big.Int, error) { + return _PerpsMarket.Contract.GetReferrerShare(&_PerpsMarket.CallOpts, referrer) } // GetReferrerShare is a free data retrieval call binding the contract method 0xcae77b70. // // Solidity: function getReferrerShare(address referrer) view returns(uint256 shareRatioD18) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) GetReferrerShare(referrer common.Address) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.GetReferrerShare(&_PerpsMarketGoerli.CallOpts, referrer) +func (_PerpsMarket *PerpsMarketCallerSession) GetReferrerShare(referrer common.Address) (*big.Int, error) { + return _PerpsMarket.Contract.GetReferrerShare(&_PerpsMarket.CallOpts, referrer) } // GetRequiredMargins is a free data retrieval call binding the contract method 0x3c0f0753. // // Solidity: function getRequiredMargins(uint128 accountId) view returns(uint256 requiredInitialMargin, uint256 requiredMaintenanceMargin, uint256 totalAccumulatedLiquidationRewards, uint256 maxLiquidationReward) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetRequiredMargins(opts *bind.CallOpts, accountId *big.Int) (struct { +func (_PerpsMarket *PerpsMarketCaller) GetRequiredMargins(opts *bind.CallOpts, accountId *big.Int) (struct { RequiredInitialMargin *big.Int RequiredMaintenanceMargin *big.Int TotalAccumulatedLiquidationRewards *big.Int MaxLiquidationReward *big.Int }, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "getRequiredMargins", accountId) + err := _PerpsMarket.contract.Call(opts, &out, "getRequiredMargins", accountId) outstruct := new(struct { RequiredInitialMargin *big.Int @@ -1471,33 +1439,33 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetRequiredMargins(opts *bind // GetRequiredMargins is a free data retrieval call binding the contract method 0x3c0f0753. // // Solidity: function getRequiredMargins(uint128 accountId) view returns(uint256 requiredInitialMargin, uint256 requiredMaintenanceMargin, uint256 totalAccumulatedLiquidationRewards, uint256 maxLiquidationReward) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetRequiredMargins(accountId *big.Int) (struct { +func (_PerpsMarket *PerpsMarketSession) GetRequiredMargins(accountId *big.Int) (struct { RequiredInitialMargin *big.Int RequiredMaintenanceMargin *big.Int TotalAccumulatedLiquidationRewards *big.Int MaxLiquidationReward *big.Int }, error) { - return _PerpsMarketGoerli.Contract.GetRequiredMargins(&_PerpsMarketGoerli.CallOpts, accountId) + return _PerpsMarket.Contract.GetRequiredMargins(&_PerpsMarket.CallOpts, accountId) } // GetRequiredMargins is a free data retrieval call binding the contract method 0x3c0f0753. // // Solidity: function getRequiredMargins(uint128 accountId) view returns(uint256 requiredInitialMargin, uint256 requiredMaintenanceMargin, uint256 totalAccumulatedLiquidationRewards, uint256 maxLiquidationReward) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) GetRequiredMargins(accountId *big.Int) (struct { +func (_PerpsMarket *PerpsMarketCallerSession) GetRequiredMargins(accountId *big.Int) (struct { RequiredInitialMargin *big.Int RequiredMaintenanceMargin *big.Int TotalAccumulatedLiquidationRewards *big.Int MaxLiquidationReward *big.Int }, error) { - return _PerpsMarketGoerli.Contract.GetRequiredMargins(&_PerpsMarketGoerli.CallOpts, accountId) + return _PerpsMarket.Contract.GetRequiredMargins(&_PerpsMarket.CallOpts, accountId) } // GetSettlementStrategy is a free data retrieval call binding the contract method 0xf74c377f. // -// Solidity: function getSettlementStrategy(uint128 marketId, uint256 strategyId) view returns((uint8,uint256,uint256,uint256,address,bytes32,string,uint256,uint256,bool) settlementStrategy) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetSettlementStrategy(opts *bind.CallOpts, marketId *big.Int, strategyId *big.Int) (SettlementStrategyData, error) { +// Solidity: function getSettlementStrategy(uint128 marketId, uint256 strategyId) view returns((uint8,uint256,uint256,uint256,address,bytes32,string,uint256,bool) settlementStrategy) +func (_PerpsMarket *PerpsMarketCaller) GetSettlementStrategy(opts *bind.CallOpts, marketId *big.Int, strategyId *big.Int) (SettlementStrategyData, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "getSettlementStrategy", marketId, strategyId) + err := _PerpsMarket.contract.Call(opts, &out, "getSettlementStrategy", marketId, strategyId) if err != nil { return *new(SettlementStrategyData), err @@ -1511,24 +1479,24 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetSettlementStrategy(opts *b // GetSettlementStrategy is a free data retrieval call binding the contract method 0xf74c377f. // -// Solidity: function getSettlementStrategy(uint128 marketId, uint256 strategyId) view returns((uint8,uint256,uint256,uint256,address,bytes32,string,uint256,uint256,bool) settlementStrategy) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetSettlementStrategy(marketId *big.Int, strategyId *big.Int) (SettlementStrategyData, error) { - return _PerpsMarketGoerli.Contract.GetSettlementStrategy(&_PerpsMarketGoerli.CallOpts, marketId, strategyId) +// Solidity: function getSettlementStrategy(uint128 marketId, uint256 strategyId) view returns((uint8,uint256,uint256,uint256,address,bytes32,string,uint256,bool) settlementStrategy) +func (_PerpsMarket *PerpsMarketSession) GetSettlementStrategy(marketId *big.Int, strategyId *big.Int) (SettlementStrategyData, error) { + return _PerpsMarket.Contract.GetSettlementStrategy(&_PerpsMarket.CallOpts, marketId, strategyId) } // GetSettlementStrategy is a free data retrieval call binding the contract method 0xf74c377f. // -// Solidity: function getSettlementStrategy(uint128 marketId, uint256 strategyId) view returns((uint8,uint256,uint256,uint256,address,bytes32,string,uint256,uint256,bool) settlementStrategy) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) GetSettlementStrategy(marketId *big.Int, strategyId *big.Int) (SettlementStrategyData, error) { - return _PerpsMarketGoerli.Contract.GetSettlementStrategy(&_PerpsMarketGoerli.CallOpts, marketId, strategyId) +// Solidity: function getSettlementStrategy(uint128 marketId, uint256 strategyId) view returns((uint8,uint256,uint256,uint256,address,bytes32,string,uint256,bool) settlementStrategy) +func (_PerpsMarket *PerpsMarketCallerSession) GetSettlementStrategy(marketId *big.Int, strategyId *big.Int) (SettlementStrategyData, error) { + return _PerpsMarket.Contract.GetSettlementStrategy(&_PerpsMarket.CallOpts, marketId, strategyId) } // GetSynthDeductionPriority is a free data retrieval call binding the contract method 0xfea84a3f. // // Solidity: function getSynthDeductionPriority() view returns(uint128[]) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetSynthDeductionPriority(opts *bind.CallOpts) ([]*big.Int, error) { +func (_PerpsMarket *PerpsMarketCaller) GetSynthDeductionPriority(opts *bind.CallOpts) ([]*big.Int, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "getSynthDeductionPriority") + err := _PerpsMarket.contract.Call(opts, &out, "getSynthDeductionPriority") if err != nil { return *new([]*big.Int), err @@ -1543,23 +1511,23 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetSynthDeductionPriority(opt // GetSynthDeductionPriority is a free data retrieval call binding the contract method 0xfea84a3f. // // Solidity: function getSynthDeductionPriority() view returns(uint128[]) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetSynthDeductionPriority() ([]*big.Int, error) { - return _PerpsMarketGoerli.Contract.GetSynthDeductionPriority(&_PerpsMarketGoerli.CallOpts) +func (_PerpsMarket *PerpsMarketSession) GetSynthDeductionPriority() ([]*big.Int, error) { + return _PerpsMarket.Contract.GetSynthDeductionPriority(&_PerpsMarket.CallOpts) } // GetSynthDeductionPriority is a free data retrieval call binding the contract method 0xfea84a3f. // // Solidity: function getSynthDeductionPriority() view returns(uint128[]) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) GetSynthDeductionPriority() ([]*big.Int, error) { - return _PerpsMarketGoerli.Contract.GetSynthDeductionPriority(&_PerpsMarketGoerli.CallOpts) +func (_PerpsMarket *PerpsMarketCallerSession) GetSynthDeductionPriority() ([]*big.Int, error) { + return _PerpsMarket.Contract.GetSynthDeductionPriority(&_PerpsMarket.CallOpts) } // GetWithdrawableMargin is a free data retrieval call binding the contract method 0x04aa363e. // // Solidity: function getWithdrawableMargin(uint128 accountId) view returns(int256 withdrawableMargin) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetWithdrawableMargin(opts *bind.CallOpts, accountId *big.Int) (*big.Int, error) { +func (_PerpsMarket *PerpsMarketCaller) GetWithdrawableMargin(opts *bind.CallOpts, accountId *big.Int) (*big.Int, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "getWithdrawableMargin", accountId) + err := _PerpsMarket.contract.Call(opts, &out, "getWithdrawableMargin", accountId) if err != nil { return *new(*big.Int), err @@ -1574,23 +1542,23 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) GetWithdrawableMargin(opts *b // GetWithdrawableMargin is a free data retrieval call binding the contract method 0x04aa363e. // // Solidity: function getWithdrawableMargin(uint128 accountId) view returns(int256 withdrawableMargin) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetWithdrawableMargin(accountId *big.Int) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.GetWithdrawableMargin(&_PerpsMarketGoerli.CallOpts, accountId) +func (_PerpsMarket *PerpsMarketSession) GetWithdrawableMargin(accountId *big.Int) (*big.Int, error) { + return _PerpsMarket.Contract.GetWithdrawableMargin(&_PerpsMarket.CallOpts, accountId) } // GetWithdrawableMargin is a free data retrieval call binding the contract method 0x04aa363e. // // Solidity: function getWithdrawableMargin(uint128 accountId) view returns(int256 withdrawableMargin) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) GetWithdrawableMargin(accountId *big.Int) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.GetWithdrawableMargin(&_PerpsMarketGoerli.CallOpts, accountId) +func (_PerpsMarket *PerpsMarketCallerSession) GetWithdrawableMargin(accountId *big.Int) (*big.Int, error) { + return _PerpsMarket.Contract.GetWithdrawableMargin(&_PerpsMarket.CallOpts, accountId) } // HasPermission is a free data retrieval call binding the contract method 0x8d34166b. // // Solidity: function hasPermission(uint128 accountId, bytes32 permission, address user) view returns(bool) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) HasPermission(opts *bind.CallOpts, accountId *big.Int, permission [32]byte, user common.Address) (bool, error) { +func (_PerpsMarket *PerpsMarketCaller) HasPermission(opts *bind.CallOpts, accountId *big.Int, permission [32]byte, user common.Address) (bool, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "hasPermission", accountId, permission, user) + err := _PerpsMarket.contract.Call(opts, &out, "hasPermission", accountId, permission, user) if err != nil { return *new(bool), err @@ -1605,23 +1573,23 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) HasPermission(opts *bind.Call // HasPermission is a free data retrieval call binding the contract method 0x8d34166b. // // Solidity: function hasPermission(uint128 accountId, bytes32 permission, address user) view returns(bool) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) HasPermission(accountId *big.Int, permission [32]byte, user common.Address) (bool, error) { - return _PerpsMarketGoerli.Contract.HasPermission(&_PerpsMarketGoerli.CallOpts, accountId, permission, user) +func (_PerpsMarket *PerpsMarketSession) HasPermission(accountId *big.Int, permission [32]byte, user common.Address) (bool, error) { + return _PerpsMarket.Contract.HasPermission(&_PerpsMarket.CallOpts, accountId, permission, user) } // HasPermission is a free data retrieval call binding the contract method 0x8d34166b. // // Solidity: function hasPermission(uint128 accountId, bytes32 permission, address user) view returns(bool) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) HasPermission(accountId *big.Int, permission [32]byte, user common.Address) (bool, error) { - return _PerpsMarketGoerli.Contract.HasPermission(&_PerpsMarketGoerli.CallOpts, accountId, permission, user) +func (_PerpsMarket *PerpsMarketCallerSession) HasPermission(accountId *big.Int, permission [32]byte, user common.Address) (bool, error) { + return _PerpsMarket.Contract.HasPermission(&_PerpsMarket.CallOpts, accountId, permission, user) } // IndexPrice is a free data retrieval call binding the contract method 0x4f778fb4. // // Solidity: function indexPrice(uint128 marketId) view returns(uint256) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) IndexPrice(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { +func (_PerpsMarket *PerpsMarketCaller) IndexPrice(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "indexPrice", marketId) + err := _PerpsMarket.contract.Call(opts, &out, "indexPrice", marketId) if err != nil { return *new(*big.Int), err @@ -1636,23 +1604,23 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) IndexPrice(opts *bind.CallOpt // IndexPrice is a free data retrieval call binding the contract method 0x4f778fb4. // // Solidity: function indexPrice(uint128 marketId) view returns(uint256) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) IndexPrice(marketId *big.Int) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.IndexPrice(&_PerpsMarketGoerli.CallOpts, marketId) +func (_PerpsMarket *PerpsMarketSession) IndexPrice(marketId *big.Int) (*big.Int, error) { + return _PerpsMarket.Contract.IndexPrice(&_PerpsMarket.CallOpts, marketId) } // IndexPrice is a free data retrieval call binding the contract method 0x4f778fb4. // // Solidity: function indexPrice(uint128 marketId) view returns(uint256) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) IndexPrice(marketId *big.Int) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.IndexPrice(&_PerpsMarketGoerli.CallOpts, marketId) +func (_PerpsMarket *PerpsMarketCallerSession) IndexPrice(marketId *big.Int) (*big.Int, error) { + return _PerpsMarket.Contract.IndexPrice(&_PerpsMarket.CallOpts, marketId) } // IsAuthorized is a free data retrieval call binding the contract method 0x1213d453. // // Solidity: function isAuthorized(uint128 accountId, bytes32 permission, address user) view returns(bool) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) IsAuthorized(opts *bind.CallOpts, accountId *big.Int, permission [32]byte, user common.Address) (bool, error) { +func (_PerpsMarket *PerpsMarketCaller) IsAuthorized(opts *bind.CallOpts, accountId *big.Int, permission [32]byte, user common.Address) (bool, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "isAuthorized", accountId, permission, user) + err := _PerpsMarket.contract.Call(opts, &out, "isAuthorized", accountId, permission, user) if err != nil { return *new(bool), err @@ -1667,23 +1635,23 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) IsAuthorized(opts *bind.CallO // IsAuthorized is a free data retrieval call binding the contract method 0x1213d453. // // Solidity: function isAuthorized(uint128 accountId, bytes32 permission, address user) view returns(bool) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) IsAuthorized(accountId *big.Int, permission [32]byte, user common.Address) (bool, error) { - return _PerpsMarketGoerli.Contract.IsAuthorized(&_PerpsMarketGoerli.CallOpts, accountId, permission, user) +func (_PerpsMarket *PerpsMarketSession) IsAuthorized(accountId *big.Int, permission [32]byte, user common.Address) (bool, error) { + return _PerpsMarket.Contract.IsAuthorized(&_PerpsMarket.CallOpts, accountId, permission, user) } // IsAuthorized is a free data retrieval call binding the contract method 0x1213d453. // // Solidity: function isAuthorized(uint128 accountId, bytes32 permission, address user) view returns(bool) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) IsAuthorized(accountId *big.Int, permission [32]byte, user common.Address) (bool, error) { - return _PerpsMarketGoerli.Contract.IsAuthorized(&_PerpsMarketGoerli.CallOpts, accountId, permission, user) +func (_PerpsMarket *PerpsMarketCallerSession) IsAuthorized(accountId *big.Int, permission [32]byte, user common.Address) (bool, error) { + return _PerpsMarket.Contract.IsAuthorized(&_PerpsMarket.CallOpts, accountId, permission, user) } // IsFeatureAllowed is a free data retrieval call binding the contract method 0xcf635949. // // Solidity: function isFeatureAllowed(bytes32 feature, address account) view returns(bool) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) IsFeatureAllowed(opts *bind.CallOpts, feature [32]byte, account common.Address) (bool, error) { +func (_PerpsMarket *PerpsMarketCaller) IsFeatureAllowed(opts *bind.CallOpts, feature [32]byte, account common.Address) (bool, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "isFeatureAllowed", feature, account) + err := _PerpsMarket.contract.Call(opts, &out, "isFeatureAllowed", feature, account) if err != nil { return *new(bool), err @@ -1698,23 +1666,73 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) IsFeatureAllowed(opts *bind.C // IsFeatureAllowed is a free data retrieval call binding the contract method 0xcf635949. // // Solidity: function isFeatureAllowed(bytes32 feature, address account) view returns(bool) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) IsFeatureAllowed(feature [32]byte, account common.Address) (bool, error) { - return _PerpsMarketGoerli.Contract.IsFeatureAllowed(&_PerpsMarketGoerli.CallOpts, feature, account) +func (_PerpsMarket *PerpsMarketSession) IsFeatureAllowed(feature [32]byte, account common.Address) (bool, error) { + return _PerpsMarket.Contract.IsFeatureAllowed(&_PerpsMarket.CallOpts, feature, account) } // IsFeatureAllowed is a free data retrieval call binding the contract method 0xcf635949. // // Solidity: function isFeatureAllowed(bytes32 feature, address account) view returns(bool) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) IsFeatureAllowed(feature [32]byte, account common.Address) (bool, error) { - return _PerpsMarketGoerli.Contract.IsFeatureAllowed(&_PerpsMarketGoerli.CallOpts, feature, account) +func (_PerpsMarket *PerpsMarketCallerSession) IsFeatureAllowed(feature [32]byte, account common.Address) (bool, error) { + return _PerpsMarket.Contract.IsFeatureAllowed(&_PerpsMarket.CallOpts, feature, account) +} + +// LiquidationCapacity is a free data retrieval call binding the contract method 0xbb36f896. +// +// Solidity: function liquidationCapacity(uint128 marketId) view returns(uint256 capacity, uint256 maxLiquidationInWindow, uint256 latestLiquidationTimestamp) +func (_PerpsMarket *PerpsMarketCaller) LiquidationCapacity(opts *bind.CallOpts, marketId *big.Int) (struct { + Capacity *big.Int + MaxLiquidationInWindow *big.Int + LatestLiquidationTimestamp *big.Int +}, error) { + var out []interface{} + err := _PerpsMarket.contract.Call(opts, &out, "liquidationCapacity", marketId) + + outstruct := new(struct { + Capacity *big.Int + MaxLiquidationInWindow *big.Int + LatestLiquidationTimestamp *big.Int + }) + if err != nil { + return *outstruct, err + } + + outstruct.Capacity = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) + outstruct.MaxLiquidationInWindow = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int) + outstruct.LatestLiquidationTimestamp = *abi.ConvertType(out[2], new(*big.Int)).(**big.Int) + + return *outstruct, err + +} + +// LiquidationCapacity is a free data retrieval call binding the contract method 0xbb36f896. +// +// Solidity: function liquidationCapacity(uint128 marketId) view returns(uint256 capacity, uint256 maxLiquidationInWindow, uint256 latestLiquidationTimestamp) +func (_PerpsMarket *PerpsMarketSession) LiquidationCapacity(marketId *big.Int) (struct { + Capacity *big.Int + MaxLiquidationInWindow *big.Int + LatestLiquidationTimestamp *big.Int +}, error) { + return _PerpsMarket.Contract.LiquidationCapacity(&_PerpsMarket.CallOpts, marketId) +} + +// LiquidationCapacity is a free data retrieval call binding the contract method 0xbb36f896. +// +// Solidity: function liquidationCapacity(uint128 marketId) view returns(uint256 capacity, uint256 maxLiquidationInWindow, uint256 latestLiquidationTimestamp) +func (_PerpsMarket *PerpsMarketCallerSession) LiquidationCapacity(marketId *big.Int) (struct { + Capacity *big.Int + MaxLiquidationInWindow *big.Int + LatestLiquidationTimestamp *big.Int +}, error) { + return _PerpsMarket.Contract.LiquidationCapacity(&_PerpsMarket.CallOpts, marketId) } // MaxOpenInterest is a free data retrieval call binding the contract method 0x0e7cace9. // // Solidity: function maxOpenInterest(uint128 marketId) view returns(uint256) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) MaxOpenInterest(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { +func (_PerpsMarket *PerpsMarketCaller) MaxOpenInterest(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "maxOpenInterest", marketId) + err := _PerpsMarket.contract.Call(opts, &out, "maxOpenInterest", marketId) if err != nil { return *new(*big.Int), err @@ -1729,26 +1747,26 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) MaxOpenInterest(opts *bind.Ca // MaxOpenInterest is a free data retrieval call binding the contract method 0x0e7cace9. // // Solidity: function maxOpenInterest(uint128 marketId) view returns(uint256) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) MaxOpenInterest(marketId *big.Int) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.MaxOpenInterest(&_PerpsMarketGoerli.CallOpts, marketId) +func (_PerpsMarket *PerpsMarketSession) MaxOpenInterest(marketId *big.Int) (*big.Int, error) { + return _PerpsMarket.Contract.MaxOpenInterest(&_PerpsMarket.CallOpts, marketId) } // MaxOpenInterest is a free data retrieval call binding the contract method 0x0e7cace9. // // Solidity: function maxOpenInterest(uint128 marketId) view returns(uint256) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) MaxOpenInterest(marketId *big.Int) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.MaxOpenInterest(&_PerpsMarketGoerli.CallOpts, marketId) +func (_PerpsMarket *PerpsMarketCallerSession) MaxOpenInterest(marketId *big.Int) (*big.Int, error) { + return _PerpsMarket.Contract.MaxOpenInterest(&_PerpsMarket.CallOpts, marketId) } // Metadata is a free data retrieval call binding the contract method 0xe3bc36bf. // // Solidity: function metadata(uint128 marketId) view returns(string name, string symbol) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) Metadata(opts *bind.CallOpts, marketId *big.Int) (struct { +func (_PerpsMarket *PerpsMarketCaller) Metadata(opts *bind.CallOpts, marketId *big.Int) (struct { Name string Symbol string }, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "metadata", marketId) + err := _PerpsMarket.contract.Call(opts, &out, "metadata", marketId) outstruct := new(struct { Name string @@ -1768,29 +1786,29 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) Metadata(opts *bind.CallOpts, // Metadata is a free data retrieval call binding the contract method 0xe3bc36bf. // // Solidity: function metadata(uint128 marketId) view returns(string name, string symbol) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) Metadata(marketId *big.Int) (struct { +func (_PerpsMarket *PerpsMarketSession) Metadata(marketId *big.Int) (struct { Name string Symbol string }, error) { - return _PerpsMarketGoerli.Contract.Metadata(&_PerpsMarketGoerli.CallOpts, marketId) + return _PerpsMarket.Contract.Metadata(&_PerpsMarket.CallOpts, marketId) } // Metadata is a free data retrieval call binding the contract method 0xe3bc36bf. // // Solidity: function metadata(uint128 marketId) view returns(string name, string symbol) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) Metadata(marketId *big.Int) (struct { +func (_PerpsMarket *PerpsMarketCallerSession) Metadata(marketId *big.Int) (struct { Name string Symbol string }, error) { - return _PerpsMarketGoerli.Contract.Metadata(&_PerpsMarketGoerli.CallOpts, marketId) + return _PerpsMarket.Contract.Metadata(&_PerpsMarket.CallOpts, marketId) } // MinimumCredit is a free data retrieval call binding the contract method 0xafe79200. // // Solidity: function minimumCredit(uint128 perpsMarketId) view returns(uint256) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) MinimumCredit(opts *bind.CallOpts, perpsMarketId *big.Int) (*big.Int, error) { +func (_PerpsMarket *PerpsMarketCaller) MinimumCredit(opts *bind.CallOpts, perpsMarketId *big.Int) (*big.Int, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "minimumCredit", perpsMarketId) + err := _PerpsMarket.contract.Call(opts, &out, "minimumCredit", perpsMarketId) if err != nil { return *new(*big.Int), err @@ -1805,23 +1823,23 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) MinimumCredit(opts *bind.Call // MinimumCredit is a free data retrieval call binding the contract method 0xafe79200. // // Solidity: function minimumCredit(uint128 perpsMarketId) view returns(uint256) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) MinimumCredit(perpsMarketId *big.Int) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.MinimumCredit(&_PerpsMarketGoerli.CallOpts, perpsMarketId) +func (_PerpsMarket *PerpsMarketSession) MinimumCredit(perpsMarketId *big.Int) (*big.Int, error) { + return _PerpsMarket.Contract.MinimumCredit(&_PerpsMarket.CallOpts, perpsMarketId) } // MinimumCredit is a free data retrieval call binding the contract method 0xafe79200. // // Solidity: function minimumCredit(uint128 perpsMarketId) view returns(uint256) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) MinimumCredit(perpsMarketId *big.Int) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.MinimumCredit(&_PerpsMarketGoerli.CallOpts, perpsMarketId) +func (_PerpsMarket *PerpsMarketCallerSession) MinimumCredit(perpsMarketId *big.Int) (*big.Int, error) { + return _PerpsMarket.Contract.MinimumCredit(&_PerpsMarket.CallOpts, perpsMarketId) } // Name is a free data retrieval call binding the contract method 0xc624440a. // // Solidity: function name(uint128 perpsMarketId) view returns(string) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) Name(opts *bind.CallOpts, perpsMarketId *big.Int) (string, error) { +func (_PerpsMarket *PerpsMarketCaller) Name(opts *bind.CallOpts, perpsMarketId *big.Int) (string, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "name", perpsMarketId) + err := _PerpsMarket.contract.Call(opts, &out, "name", perpsMarketId) if err != nil { return *new(string), err @@ -1836,23 +1854,23 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) Name(opts *bind.CallOpts, per // Name is a free data retrieval call binding the contract method 0xc624440a. // // Solidity: function name(uint128 perpsMarketId) view returns(string) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) Name(perpsMarketId *big.Int) (string, error) { - return _PerpsMarketGoerli.Contract.Name(&_PerpsMarketGoerli.CallOpts, perpsMarketId) +func (_PerpsMarket *PerpsMarketSession) Name(perpsMarketId *big.Int) (string, error) { + return _PerpsMarket.Contract.Name(&_PerpsMarket.CallOpts, perpsMarketId) } // Name is a free data retrieval call binding the contract method 0xc624440a. // // Solidity: function name(uint128 perpsMarketId) view returns(string) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) Name(perpsMarketId *big.Int) (string, error) { - return _PerpsMarketGoerli.Contract.Name(&_PerpsMarketGoerli.CallOpts, perpsMarketId) +func (_PerpsMarket *PerpsMarketCallerSession) Name(perpsMarketId *big.Int) (string, error) { + return _PerpsMarket.Contract.Name(&_PerpsMarket.CallOpts, perpsMarketId) } // NominatedOwner is a free data retrieval call binding the contract method 0x53a47bb7. // // Solidity: function nominatedOwner() view returns(address) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) NominatedOwner(opts *bind.CallOpts) (common.Address, error) { +func (_PerpsMarket *PerpsMarketCaller) NominatedOwner(opts *bind.CallOpts) (common.Address, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "nominatedOwner") + err := _PerpsMarket.contract.Call(opts, &out, "nominatedOwner") if err != nil { return *new(common.Address), err @@ -1867,23 +1885,23 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) NominatedOwner(opts *bind.Cal // NominatedOwner is a free data retrieval call binding the contract method 0x53a47bb7. // // Solidity: function nominatedOwner() view returns(address) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) NominatedOwner() (common.Address, error) { - return _PerpsMarketGoerli.Contract.NominatedOwner(&_PerpsMarketGoerli.CallOpts) +func (_PerpsMarket *PerpsMarketSession) NominatedOwner() (common.Address, error) { + return _PerpsMarket.Contract.NominatedOwner(&_PerpsMarket.CallOpts) } // NominatedOwner is a free data retrieval call binding the contract method 0x53a47bb7. // // Solidity: function nominatedOwner() view returns(address) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) NominatedOwner() (common.Address, error) { - return _PerpsMarketGoerli.Contract.NominatedOwner(&_PerpsMarketGoerli.CallOpts) +func (_PerpsMarket *PerpsMarketCallerSession) NominatedOwner() (common.Address, error) { + return _PerpsMarket.Contract.NominatedOwner(&_PerpsMarket.CallOpts) } // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. // // Solidity: function owner() view returns(address) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) Owner(opts *bind.CallOpts) (common.Address, error) { +func (_PerpsMarket *PerpsMarketCaller) Owner(opts *bind.CallOpts) (common.Address, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "owner") + err := _PerpsMarket.contract.Call(opts, &out, "owner") if err != nil { return *new(common.Address), err @@ -1898,23 +1916,23 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) Owner(opts *bind.CallOpts) (c // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. // // Solidity: function owner() view returns(address) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) Owner() (common.Address, error) { - return _PerpsMarketGoerli.Contract.Owner(&_PerpsMarketGoerli.CallOpts) +func (_PerpsMarket *PerpsMarketSession) Owner() (common.Address, error) { + return _PerpsMarket.Contract.Owner(&_PerpsMarket.CallOpts) } // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. // // Solidity: function owner() view returns(address) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) Owner() (common.Address, error) { - return _PerpsMarketGoerli.Contract.Owner(&_PerpsMarketGoerli.CallOpts) +func (_PerpsMarket *PerpsMarketCallerSession) Owner() (common.Address, error) { + return _PerpsMarket.Contract.Owner(&_PerpsMarket.CallOpts) } // ReportedDebt is a free data retrieval call binding the contract method 0xbcec0d0f. // // Solidity: function reportedDebt(uint128 perpsMarketId) view returns(uint256) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) ReportedDebt(opts *bind.CallOpts, perpsMarketId *big.Int) (*big.Int, error) { +func (_PerpsMarket *PerpsMarketCaller) ReportedDebt(opts *bind.CallOpts, perpsMarketId *big.Int) (*big.Int, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "reportedDebt", perpsMarketId) + err := _PerpsMarket.contract.Call(opts, &out, "reportedDebt", perpsMarketId) if err != nil { return *new(*big.Int), err @@ -1929,23 +1947,23 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) ReportedDebt(opts *bind.CallO // ReportedDebt is a free data retrieval call binding the contract method 0xbcec0d0f. // // Solidity: function reportedDebt(uint128 perpsMarketId) view returns(uint256) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) ReportedDebt(perpsMarketId *big.Int) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.ReportedDebt(&_PerpsMarketGoerli.CallOpts, perpsMarketId) +func (_PerpsMarket *PerpsMarketSession) ReportedDebt(perpsMarketId *big.Int) (*big.Int, error) { + return _PerpsMarket.Contract.ReportedDebt(&_PerpsMarket.CallOpts, perpsMarketId) } // ReportedDebt is a free data retrieval call binding the contract method 0xbcec0d0f. // // Solidity: function reportedDebt(uint128 perpsMarketId) view returns(uint256) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) ReportedDebt(perpsMarketId *big.Int) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.ReportedDebt(&_PerpsMarketGoerli.CallOpts, perpsMarketId) +func (_PerpsMarket *PerpsMarketCallerSession) ReportedDebt(perpsMarketId *big.Int) (*big.Int, error) { + return _PerpsMarket.Contract.ReportedDebt(&_PerpsMarket.CallOpts, perpsMarketId) } // RequiredMarginForOrder is a free data retrieval call binding the contract method 0xb8830a25. // // Solidity: function requiredMarginForOrder(uint128 accountId, uint128 marketId, int128 sizeDelta) view returns(uint256 requiredMargin) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) RequiredMarginForOrder(opts *bind.CallOpts, accountId *big.Int, marketId *big.Int, sizeDelta *big.Int) (*big.Int, error) { +func (_PerpsMarket *PerpsMarketCaller) RequiredMarginForOrder(opts *bind.CallOpts, accountId *big.Int, marketId *big.Int, sizeDelta *big.Int) (*big.Int, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "requiredMarginForOrder", accountId, marketId, sizeDelta) + err := _PerpsMarket.contract.Call(opts, &out, "requiredMarginForOrder", accountId, marketId, sizeDelta) if err != nil { return *new(*big.Int), err @@ -1960,23 +1978,23 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) RequiredMarginForOrder(opts * // RequiredMarginForOrder is a free data retrieval call binding the contract method 0xb8830a25. // // Solidity: function requiredMarginForOrder(uint128 accountId, uint128 marketId, int128 sizeDelta) view returns(uint256 requiredMargin) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) RequiredMarginForOrder(accountId *big.Int, marketId *big.Int, sizeDelta *big.Int) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.RequiredMarginForOrder(&_PerpsMarketGoerli.CallOpts, accountId, marketId, sizeDelta) +func (_PerpsMarket *PerpsMarketSession) RequiredMarginForOrder(accountId *big.Int, marketId *big.Int, sizeDelta *big.Int) (*big.Int, error) { + return _PerpsMarket.Contract.RequiredMarginForOrder(&_PerpsMarket.CallOpts, accountId, marketId, sizeDelta) } // RequiredMarginForOrder is a free data retrieval call binding the contract method 0xb8830a25. // // Solidity: function requiredMarginForOrder(uint128 accountId, uint128 marketId, int128 sizeDelta) view returns(uint256 requiredMargin) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) RequiredMarginForOrder(accountId *big.Int, marketId *big.Int, sizeDelta *big.Int) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.RequiredMarginForOrder(&_PerpsMarketGoerli.CallOpts, accountId, marketId, sizeDelta) +func (_PerpsMarket *PerpsMarketCallerSession) RequiredMarginForOrder(accountId *big.Int, marketId *big.Int, sizeDelta *big.Int) (*big.Int, error) { + return _PerpsMarket.Contract.RequiredMarginForOrder(&_PerpsMarket.CallOpts, accountId, marketId, sizeDelta) } // Settle is a free data retrieval call binding the contract method 0x895e3bed. // // Solidity: function settle(uint128 accountId) view returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) Settle(opts *bind.CallOpts, accountId *big.Int) error { +func (_PerpsMarket *PerpsMarketCaller) Settle(opts *bind.CallOpts, accountId *big.Int) error { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "settle", accountId) + err := _PerpsMarket.contract.Call(opts, &out, "settle", accountId) if err != nil { return err @@ -1989,23 +2007,23 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) Settle(opts *bind.CallOpts, a // Settle is a free data retrieval call binding the contract method 0x895e3bed. // // Solidity: function settle(uint128 accountId) view returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) Settle(accountId *big.Int) error { - return _PerpsMarketGoerli.Contract.Settle(&_PerpsMarketGoerli.CallOpts, accountId) +func (_PerpsMarket *PerpsMarketSession) Settle(accountId *big.Int) error { + return _PerpsMarket.Contract.Settle(&_PerpsMarket.CallOpts, accountId) } // Settle is a free data retrieval call binding the contract method 0x895e3bed. // // Solidity: function settle(uint128 accountId) view returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) Settle(accountId *big.Int) error { - return _PerpsMarketGoerli.Contract.Settle(&_PerpsMarketGoerli.CallOpts, accountId) +func (_PerpsMarket *PerpsMarketCallerSession) Settle(accountId *big.Int) error { + return _PerpsMarket.Contract.Settle(&_PerpsMarket.CallOpts, accountId) } // Size is a free data retrieval call binding the contract method 0x2b267635. // // Solidity: function size(uint128 marketId) view returns(uint256) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) Size(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { +func (_PerpsMarket *PerpsMarketCaller) Size(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "size", marketId) + err := _PerpsMarket.contract.Call(opts, &out, "size", marketId) if err != nil { return *new(*big.Int), err @@ -2020,23 +2038,23 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) Size(opts *bind.CallOpts, mar // Size is a free data retrieval call binding the contract method 0x2b267635. // // Solidity: function size(uint128 marketId) view returns(uint256) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) Size(marketId *big.Int) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.Size(&_PerpsMarketGoerli.CallOpts, marketId) +func (_PerpsMarket *PerpsMarketSession) Size(marketId *big.Int) (*big.Int, error) { + return _PerpsMarket.Contract.Size(&_PerpsMarket.CallOpts, marketId) } // Size is a free data retrieval call binding the contract method 0x2b267635. // // Solidity: function size(uint128 marketId) view returns(uint256) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) Size(marketId *big.Int) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.Size(&_PerpsMarketGoerli.CallOpts, marketId) +func (_PerpsMarket *PerpsMarketCallerSession) Size(marketId *big.Int) (*big.Int, error) { + return _PerpsMarket.Contract.Size(&_PerpsMarket.CallOpts, marketId) } // Skew is a free data retrieval call binding the contract method 0x83a7db27. // // Solidity: function skew(uint128 marketId) view returns(int256) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) Skew(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { +func (_PerpsMarket *PerpsMarketCaller) Skew(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "skew", marketId) + err := _PerpsMarket.contract.Call(opts, &out, "skew", marketId) if err != nil { return *new(*big.Int), err @@ -2051,23 +2069,23 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) Skew(opts *bind.CallOpts, mar // Skew is a free data retrieval call binding the contract method 0x83a7db27. // // Solidity: function skew(uint128 marketId) view returns(int256) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) Skew(marketId *big.Int) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.Skew(&_PerpsMarketGoerli.CallOpts, marketId) +func (_PerpsMarket *PerpsMarketSession) Skew(marketId *big.Int) (*big.Int, error) { + return _PerpsMarket.Contract.Skew(&_PerpsMarket.CallOpts, marketId) } // Skew is a free data retrieval call binding the contract method 0x83a7db27. // // Solidity: function skew(uint128 marketId) view returns(int256) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) Skew(marketId *big.Int) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.Skew(&_PerpsMarketGoerli.CallOpts, marketId) +func (_PerpsMarket *PerpsMarketCallerSession) Skew(marketId *big.Int) (*big.Int, error) { + return _PerpsMarket.Contract.Skew(&_PerpsMarket.CallOpts, marketId) } // SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7. // // Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error) { +func (_PerpsMarket *PerpsMarketCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "supportsInterface", interfaceId) + err := _PerpsMarket.contract.Call(opts, &out, "supportsInterface", interfaceId) if err != nil { return *new(bool), err @@ -2082,23 +2100,23 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) SupportsInterface(opts *bind. // SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7. // // Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) SupportsInterface(interfaceId [4]byte) (bool, error) { - return _PerpsMarketGoerli.Contract.SupportsInterface(&_PerpsMarketGoerli.CallOpts, interfaceId) +func (_PerpsMarket *PerpsMarketSession) SupportsInterface(interfaceId [4]byte) (bool, error) { + return _PerpsMarket.Contract.SupportsInterface(&_PerpsMarket.CallOpts, interfaceId) } // SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7. // // Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error) { - return _PerpsMarketGoerli.Contract.SupportsInterface(&_PerpsMarketGoerli.CallOpts, interfaceId) +func (_PerpsMarket *PerpsMarketCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error) { + return _PerpsMarket.Contract.SupportsInterface(&_PerpsMarket.CallOpts, interfaceId) } // TotalAccountOpenInterest is a free data retrieval call binding the contract method 0x2daf43bc. // // Solidity: function totalAccountOpenInterest(uint128 accountId) view returns(uint256) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) TotalAccountOpenInterest(opts *bind.CallOpts, accountId *big.Int) (*big.Int, error) { +func (_PerpsMarket *PerpsMarketCaller) TotalAccountOpenInterest(opts *bind.CallOpts, accountId *big.Int) (*big.Int, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "totalAccountOpenInterest", accountId) + err := _PerpsMarket.contract.Call(opts, &out, "totalAccountOpenInterest", accountId) if err != nil { return *new(*big.Int), err @@ -2113,23 +2131,23 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) TotalAccountOpenInterest(opts // TotalAccountOpenInterest is a free data retrieval call binding the contract method 0x2daf43bc. // // Solidity: function totalAccountOpenInterest(uint128 accountId) view returns(uint256) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) TotalAccountOpenInterest(accountId *big.Int) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.TotalAccountOpenInterest(&_PerpsMarketGoerli.CallOpts, accountId) +func (_PerpsMarket *PerpsMarketSession) TotalAccountOpenInterest(accountId *big.Int) (*big.Int, error) { + return _PerpsMarket.Contract.TotalAccountOpenInterest(&_PerpsMarket.CallOpts, accountId) } // TotalAccountOpenInterest is a free data retrieval call binding the contract method 0x2daf43bc. // // Solidity: function totalAccountOpenInterest(uint128 accountId) view returns(uint256) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) TotalAccountOpenInterest(accountId *big.Int) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.TotalAccountOpenInterest(&_PerpsMarketGoerli.CallOpts, accountId) +func (_PerpsMarket *PerpsMarketCallerSession) TotalAccountOpenInterest(accountId *big.Int) (*big.Int, error) { + return _PerpsMarket.Contract.TotalAccountOpenInterest(&_PerpsMarket.CallOpts, accountId) } // TotalCollateralValue is a free data retrieval call binding the contract method 0xb568ae42. // // Solidity: function totalCollateralValue(uint128 accountId) view returns(uint256) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) TotalCollateralValue(opts *bind.CallOpts, accountId *big.Int) (*big.Int, error) { +func (_PerpsMarket *PerpsMarketCaller) TotalCollateralValue(opts *bind.CallOpts, accountId *big.Int) (*big.Int, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "totalCollateralValue", accountId) + err := _PerpsMarket.contract.Call(opts, &out, "totalCollateralValue", accountId) if err != nil { return *new(*big.Int), err @@ -2144,23 +2162,23 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) TotalCollateralValue(opts *bi // TotalCollateralValue is a free data retrieval call binding the contract method 0xb568ae42. // // Solidity: function totalCollateralValue(uint128 accountId) view returns(uint256) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) TotalCollateralValue(accountId *big.Int) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.TotalCollateralValue(&_PerpsMarketGoerli.CallOpts, accountId) +func (_PerpsMarket *PerpsMarketSession) TotalCollateralValue(accountId *big.Int) (*big.Int, error) { + return _PerpsMarket.Contract.TotalCollateralValue(&_PerpsMarket.CallOpts, accountId) } // TotalCollateralValue is a free data retrieval call binding the contract method 0xb568ae42. // // Solidity: function totalCollateralValue(uint128 accountId) view returns(uint256) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) TotalCollateralValue(accountId *big.Int) (*big.Int, error) { - return _PerpsMarketGoerli.Contract.TotalCollateralValue(&_PerpsMarketGoerli.CallOpts, accountId) +func (_PerpsMarket *PerpsMarketCallerSession) TotalCollateralValue(accountId *big.Int) (*big.Int, error) { + return _PerpsMarket.Contract.TotalCollateralValue(&_PerpsMarket.CallOpts, accountId) } // TotalGlobalCollateralValue is a free data retrieval call binding the contract method 0x65c5a0fe. // // Solidity: function totalGlobalCollateralValue() view returns(uint256 totalCollateralValue) -func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) TotalGlobalCollateralValue(opts *bind.CallOpts) (*big.Int, error) { +func (_PerpsMarket *PerpsMarketCaller) TotalGlobalCollateralValue(opts *bind.CallOpts) (*big.Int, error) { var out []interface{} - err := _PerpsMarketGoerli.contract.Call(opts, &out, "totalGlobalCollateralValue") + err := _PerpsMarket.contract.Call(opts, &out, "totalGlobalCollateralValue") if err != nil { return *new(*big.Int), err @@ -2175,986 +2193,944 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliCaller) TotalGlobalCollateralValue(op // TotalGlobalCollateralValue is a free data retrieval call binding the contract method 0x65c5a0fe. // // Solidity: function totalGlobalCollateralValue() view returns(uint256 totalCollateralValue) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) TotalGlobalCollateralValue() (*big.Int, error) { - return _PerpsMarketGoerli.Contract.TotalGlobalCollateralValue(&_PerpsMarketGoerli.CallOpts) +func (_PerpsMarket *PerpsMarketSession) TotalGlobalCollateralValue() (*big.Int, error) { + return _PerpsMarket.Contract.TotalGlobalCollateralValue(&_PerpsMarket.CallOpts) } // TotalGlobalCollateralValue is a free data retrieval call binding the contract method 0x65c5a0fe. // // Solidity: function totalGlobalCollateralValue() view returns(uint256 totalCollateralValue) -func (_PerpsMarketGoerli *PerpsMarketGoerliCallerSession) TotalGlobalCollateralValue() (*big.Int, error) { - return _PerpsMarketGoerli.Contract.TotalGlobalCollateralValue(&_PerpsMarketGoerli.CallOpts) +func (_PerpsMarket *PerpsMarketCallerSession) TotalGlobalCollateralValue() (*big.Int, error) { + return _PerpsMarket.Contract.TotalGlobalCollateralValue(&_PerpsMarket.CallOpts) } // AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. // // Solidity: function acceptOwnership() returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "acceptOwnership") +func (_PerpsMarket *PerpsMarketTransactor) AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "acceptOwnership") } // AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. // // Solidity: function acceptOwnership() returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) AcceptOwnership() (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.AcceptOwnership(&_PerpsMarketGoerli.TransactOpts) +func (_PerpsMarket *PerpsMarketSession) AcceptOwnership() (*types.Transaction, error) { + return _PerpsMarket.Contract.AcceptOwnership(&_PerpsMarket.TransactOpts) } // AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. // // Solidity: function acceptOwnership() returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) AcceptOwnership() (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.AcceptOwnership(&_PerpsMarketGoerli.TransactOpts) +func (_PerpsMarket *PerpsMarketTransactorSession) AcceptOwnership() (*types.Transaction, error) { + return _PerpsMarket.Contract.AcceptOwnership(&_PerpsMarket.TransactOpts) } -// AddSettlementStrategy is a paid mutator transaction binding the contract method 0xda91187c. +// AddSettlementStrategy is a paid mutator transaction binding the contract method 0x6bd5626d. // -// Solidity: function addSettlementStrategy(uint128 marketId, (uint8,uint256,uint256,uint256,address,bytes32,string,uint256,uint256,bool) strategy) returns(uint256 strategyId) -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) AddSettlementStrategy(opts *bind.TransactOpts, marketId *big.Int, strategy SettlementStrategyData) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "addSettlementStrategy", marketId, strategy) +// Solidity: function addSettlementStrategy(uint128 marketId, (uint8,uint256,uint256,uint256,address,bytes32,string,uint256,bool) strategy) returns(uint256 strategyId) +func (_PerpsMarket *PerpsMarketTransactor) AddSettlementStrategy(opts *bind.TransactOpts, marketId *big.Int, strategy SettlementStrategyData) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "addSettlementStrategy", marketId, strategy) } -// AddSettlementStrategy is a paid mutator transaction binding the contract method 0xda91187c. +// AddSettlementStrategy is a paid mutator transaction binding the contract method 0x6bd5626d. // -// Solidity: function addSettlementStrategy(uint128 marketId, (uint8,uint256,uint256,uint256,address,bytes32,string,uint256,uint256,bool) strategy) returns(uint256 strategyId) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) AddSettlementStrategy(marketId *big.Int, strategy SettlementStrategyData) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.AddSettlementStrategy(&_PerpsMarketGoerli.TransactOpts, marketId, strategy) +// Solidity: function addSettlementStrategy(uint128 marketId, (uint8,uint256,uint256,uint256,address,bytes32,string,uint256,bool) strategy) returns(uint256 strategyId) +func (_PerpsMarket *PerpsMarketSession) AddSettlementStrategy(marketId *big.Int, strategy SettlementStrategyData) (*types.Transaction, error) { + return _PerpsMarket.Contract.AddSettlementStrategy(&_PerpsMarket.TransactOpts, marketId, strategy) } -// AddSettlementStrategy is a paid mutator transaction binding the contract method 0xda91187c. +// AddSettlementStrategy is a paid mutator transaction binding the contract method 0x6bd5626d. // -// Solidity: function addSettlementStrategy(uint128 marketId, (uint8,uint256,uint256,uint256,address,bytes32,string,uint256,uint256,bool) strategy) returns(uint256 strategyId) -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) AddSettlementStrategy(marketId *big.Int, strategy SettlementStrategyData) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.AddSettlementStrategy(&_PerpsMarketGoerli.TransactOpts, marketId, strategy) +// Solidity: function addSettlementStrategy(uint128 marketId, (uint8,uint256,uint256,uint256,address,bytes32,string,uint256,bool) strategy) returns(uint256 strategyId) +func (_PerpsMarket *PerpsMarketTransactorSession) AddSettlementStrategy(marketId *big.Int, strategy SettlementStrategyData) (*types.Transaction, error) { + return _PerpsMarket.Contract.AddSettlementStrategy(&_PerpsMarket.TransactOpts, marketId, strategy) } // AddToFeatureFlagAllowlist is a paid mutator transaction binding the contract method 0xa0778144. // // Solidity: function addToFeatureFlagAllowlist(bytes32 feature, address account) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) AddToFeatureFlagAllowlist(opts *bind.TransactOpts, feature [32]byte, account common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "addToFeatureFlagAllowlist", feature, account) +func (_PerpsMarket *PerpsMarketTransactor) AddToFeatureFlagAllowlist(opts *bind.TransactOpts, feature [32]byte, account common.Address) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "addToFeatureFlagAllowlist", feature, account) } // AddToFeatureFlagAllowlist is a paid mutator transaction binding the contract method 0xa0778144. // // Solidity: function addToFeatureFlagAllowlist(bytes32 feature, address account) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) AddToFeatureFlagAllowlist(feature [32]byte, account common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.AddToFeatureFlagAllowlist(&_PerpsMarketGoerli.TransactOpts, feature, account) +func (_PerpsMarket *PerpsMarketSession) AddToFeatureFlagAllowlist(feature [32]byte, account common.Address) (*types.Transaction, error) { + return _PerpsMarket.Contract.AddToFeatureFlagAllowlist(&_PerpsMarket.TransactOpts, feature, account) } // AddToFeatureFlagAllowlist is a paid mutator transaction binding the contract method 0xa0778144. // // Solidity: function addToFeatureFlagAllowlist(bytes32 feature, address account) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) AddToFeatureFlagAllowlist(feature [32]byte, account common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.AddToFeatureFlagAllowlist(&_PerpsMarketGoerli.TransactOpts, feature, account) +func (_PerpsMarket *PerpsMarketTransactorSession) AddToFeatureFlagAllowlist(feature [32]byte, account common.Address) (*types.Transaction, error) { + return _PerpsMarket.Contract.AddToFeatureFlagAllowlist(&_PerpsMarket.TransactOpts, feature, account) } // CommitOrder is a paid mutator transaction binding the contract method 0x9f978860. // // Solidity: function commitOrder((uint128,uint128,int128,uint128,uint256,bytes32,address) commitment) returns((uint256,(uint128,uint128,int128,uint128,uint256,bytes32,address)) retOrder, uint256 fees) -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) CommitOrder(opts *bind.TransactOpts, commitment AsyncOrderOrderCommitmentRequest) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "commitOrder", commitment) +func (_PerpsMarket *PerpsMarketTransactor) CommitOrder(opts *bind.TransactOpts, commitment AsyncOrderOrderCommitmentRequest) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "commitOrder", commitment) } // CommitOrder is a paid mutator transaction binding the contract method 0x9f978860. // // Solidity: function commitOrder((uint128,uint128,int128,uint128,uint256,bytes32,address) commitment) returns((uint256,(uint128,uint128,int128,uint128,uint256,bytes32,address)) retOrder, uint256 fees) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) CommitOrder(commitment AsyncOrderOrderCommitmentRequest) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.CommitOrder(&_PerpsMarketGoerli.TransactOpts, commitment) +func (_PerpsMarket *PerpsMarketSession) CommitOrder(commitment AsyncOrderOrderCommitmentRequest) (*types.Transaction, error) { + return _PerpsMarket.Contract.CommitOrder(&_PerpsMarket.TransactOpts, commitment) } // CommitOrder is a paid mutator transaction binding the contract method 0x9f978860. // // Solidity: function commitOrder((uint128,uint128,int128,uint128,uint256,bytes32,address) commitment) returns((uint256,(uint128,uint128,int128,uint128,uint256,bytes32,address)) retOrder, uint256 fees) -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) CommitOrder(commitment AsyncOrderOrderCommitmentRequest) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.CommitOrder(&_PerpsMarketGoerli.TransactOpts, commitment) +func (_PerpsMarket *PerpsMarketTransactorSession) CommitOrder(commitment AsyncOrderOrderCommitmentRequest) (*types.Transaction, error) { + return _PerpsMarket.Contract.CommitOrder(&_PerpsMarket.TransactOpts, commitment) } // CreateAccount is a paid mutator transaction binding the contract method 0x9dca362f. // // Solidity: function createAccount() returns(uint128 accountId) -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) CreateAccount(opts *bind.TransactOpts) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "createAccount") +func (_PerpsMarket *PerpsMarketTransactor) CreateAccount(opts *bind.TransactOpts) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "createAccount") } // CreateAccount is a paid mutator transaction binding the contract method 0x9dca362f. // // Solidity: function createAccount() returns(uint128 accountId) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) CreateAccount() (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.CreateAccount(&_PerpsMarketGoerli.TransactOpts) +func (_PerpsMarket *PerpsMarketSession) CreateAccount() (*types.Transaction, error) { + return _PerpsMarket.Contract.CreateAccount(&_PerpsMarket.TransactOpts) } // CreateAccount is a paid mutator transaction binding the contract method 0x9dca362f. // // Solidity: function createAccount() returns(uint128 accountId) -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) CreateAccount() (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.CreateAccount(&_PerpsMarketGoerli.TransactOpts) +func (_PerpsMarket *PerpsMarketTransactorSession) CreateAccount() (*types.Transaction, error) { + return _PerpsMarket.Contract.CreateAccount(&_PerpsMarket.TransactOpts) } // CreateAccount0 is a paid mutator transaction binding the contract method 0xcadb09a5. // // Solidity: function createAccount(uint128 requestedAccountId) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) CreateAccount0(opts *bind.TransactOpts, requestedAccountId *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "createAccount0", requestedAccountId) +func (_PerpsMarket *PerpsMarketTransactor) CreateAccount0(opts *bind.TransactOpts, requestedAccountId *big.Int) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "createAccount0", requestedAccountId) } // CreateAccount0 is a paid mutator transaction binding the contract method 0xcadb09a5. // // Solidity: function createAccount(uint128 requestedAccountId) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) CreateAccount0(requestedAccountId *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.CreateAccount0(&_PerpsMarketGoerli.TransactOpts, requestedAccountId) +func (_PerpsMarket *PerpsMarketSession) CreateAccount0(requestedAccountId *big.Int) (*types.Transaction, error) { + return _PerpsMarket.Contract.CreateAccount0(&_PerpsMarket.TransactOpts, requestedAccountId) } // CreateAccount0 is a paid mutator transaction binding the contract method 0xcadb09a5. // // Solidity: function createAccount(uint128 requestedAccountId) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) CreateAccount0(requestedAccountId *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.CreateAccount0(&_PerpsMarketGoerli.TransactOpts, requestedAccountId) +func (_PerpsMarket *PerpsMarketTransactorSession) CreateAccount0(requestedAccountId *big.Int) (*types.Transaction, error) { + return _PerpsMarket.Contract.CreateAccount0(&_PerpsMarket.TransactOpts, requestedAccountId) } // CreateMarket is a paid mutator transaction binding the contract method 0x7e947ea4. // // Solidity: function createMarket(uint128 requestedMarketId, string marketName, string marketSymbol) returns(uint128) -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) CreateMarket(opts *bind.TransactOpts, requestedMarketId *big.Int, marketName string, marketSymbol string) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "createMarket", requestedMarketId, marketName, marketSymbol) +func (_PerpsMarket *PerpsMarketTransactor) CreateMarket(opts *bind.TransactOpts, requestedMarketId *big.Int, marketName string, marketSymbol string) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "createMarket", requestedMarketId, marketName, marketSymbol) } // CreateMarket is a paid mutator transaction binding the contract method 0x7e947ea4. // // Solidity: function createMarket(uint128 requestedMarketId, string marketName, string marketSymbol) returns(uint128) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) CreateMarket(requestedMarketId *big.Int, marketName string, marketSymbol string) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.CreateMarket(&_PerpsMarketGoerli.TransactOpts, requestedMarketId, marketName, marketSymbol) +func (_PerpsMarket *PerpsMarketSession) CreateMarket(requestedMarketId *big.Int, marketName string, marketSymbol string) (*types.Transaction, error) { + return _PerpsMarket.Contract.CreateMarket(&_PerpsMarket.TransactOpts, requestedMarketId, marketName, marketSymbol) } // CreateMarket is a paid mutator transaction binding the contract method 0x7e947ea4. // // Solidity: function createMarket(uint128 requestedMarketId, string marketName, string marketSymbol) returns(uint128) -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) CreateMarket(requestedMarketId *big.Int, marketName string, marketSymbol string) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.CreateMarket(&_PerpsMarketGoerli.TransactOpts, requestedMarketId, marketName, marketSymbol) +func (_PerpsMarket *PerpsMarketTransactorSession) CreateMarket(requestedMarketId *big.Int, marketName string, marketSymbol string) (*types.Transaction, error) { + return _PerpsMarket.Contract.CreateMarket(&_PerpsMarket.TransactOpts, requestedMarketId, marketName, marketSymbol) } // GrantPermission is a paid mutator transaction binding the contract method 0x00cd9ef3. // // Solidity: function grantPermission(uint128 accountId, bytes32 permission, address user) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) GrantPermission(opts *bind.TransactOpts, accountId *big.Int, permission [32]byte, user common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "grantPermission", accountId, permission, user) +func (_PerpsMarket *PerpsMarketTransactor) GrantPermission(opts *bind.TransactOpts, accountId *big.Int, permission [32]byte, user common.Address) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "grantPermission", accountId, permission, user) } // GrantPermission is a paid mutator transaction binding the contract method 0x00cd9ef3. // // Solidity: function grantPermission(uint128 accountId, bytes32 permission, address user) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) GrantPermission(accountId *big.Int, permission [32]byte, user common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.GrantPermission(&_PerpsMarketGoerli.TransactOpts, accountId, permission, user) +func (_PerpsMarket *PerpsMarketSession) GrantPermission(accountId *big.Int, permission [32]byte, user common.Address) (*types.Transaction, error) { + return _PerpsMarket.Contract.GrantPermission(&_PerpsMarket.TransactOpts, accountId, permission, user) } // GrantPermission is a paid mutator transaction binding the contract method 0x00cd9ef3. // // Solidity: function grantPermission(uint128 accountId, bytes32 permission, address user) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) GrantPermission(accountId *big.Int, permission [32]byte, user common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.GrantPermission(&_PerpsMarketGoerli.TransactOpts, accountId, permission, user) +func (_PerpsMarket *PerpsMarketTransactorSession) GrantPermission(accountId *big.Int, permission [32]byte, user common.Address) (*types.Transaction, error) { + return _PerpsMarket.Contract.GrantPermission(&_PerpsMarket.TransactOpts, accountId, permission, user) } // InitOrUpgradeNft is a paid mutator transaction binding the contract method 0x2d22bef9. // // Solidity: function initOrUpgradeNft(bytes32 id, string name, string symbol, string uri, address impl) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) InitOrUpgradeNft(opts *bind.TransactOpts, id [32]byte, name string, symbol string, uri string, impl common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "initOrUpgradeNft", id, name, symbol, uri, impl) +func (_PerpsMarket *PerpsMarketTransactor) InitOrUpgradeNft(opts *bind.TransactOpts, id [32]byte, name string, symbol string, uri string, impl common.Address) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "initOrUpgradeNft", id, name, symbol, uri, impl) } // InitOrUpgradeNft is a paid mutator transaction binding the contract method 0x2d22bef9. // // Solidity: function initOrUpgradeNft(bytes32 id, string name, string symbol, string uri, address impl) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) InitOrUpgradeNft(id [32]byte, name string, symbol string, uri string, impl common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.InitOrUpgradeNft(&_PerpsMarketGoerli.TransactOpts, id, name, symbol, uri, impl) +func (_PerpsMarket *PerpsMarketSession) InitOrUpgradeNft(id [32]byte, name string, symbol string, uri string, impl common.Address) (*types.Transaction, error) { + return _PerpsMarket.Contract.InitOrUpgradeNft(&_PerpsMarket.TransactOpts, id, name, symbol, uri, impl) } // InitOrUpgradeNft is a paid mutator transaction binding the contract method 0x2d22bef9. // // Solidity: function initOrUpgradeNft(bytes32 id, string name, string symbol, string uri, address impl) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) InitOrUpgradeNft(id [32]byte, name string, symbol string, uri string, impl common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.InitOrUpgradeNft(&_PerpsMarketGoerli.TransactOpts, id, name, symbol, uri, impl) +func (_PerpsMarket *PerpsMarketTransactorSession) InitOrUpgradeNft(id [32]byte, name string, symbol string, uri string, impl common.Address) (*types.Transaction, error) { + return _PerpsMarket.Contract.InitOrUpgradeNft(&_PerpsMarket.TransactOpts, id, name, symbol, uri, impl) } // InitOrUpgradeToken is a paid mutator transaction binding the contract method 0xc6f79537. // // Solidity: function initOrUpgradeToken(bytes32 id, string name, string symbol, uint8 decimals, address impl) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) InitOrUpgradeToken(opts *bind.TransactOpts, id [32]byte, name string, symbol string, decimals uint8, impl common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "initOrUpgradeToken", id, name, symbol, decimals, impl) +func (_PerpsMarket *PerpsMarketTransactor) InitOrUpgradeToken(opts *bind.TransactOpts, id [32]byte, name string, symbol string, decimals uint8, impl common.Address) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "initOrUpgradeToken", id, name, symbol, decimals, impl) } // InitOrUpgradeToken is a paid mutator transaction binding the contract method 0xc6f79537. // // Solidity: function initOrUpgradeToken(bytes32 id, string name, string symbol, uint8 decimals, address impl) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) InitOrUpgradeToken(id [32]byte, name string, symbol string, decimals uint8, impl common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.InitOrUpgradeToken(&_PerpsMarketGoerli.TransactOpts, id, name, symbol, decimals, impl) +func (_PerpsMarket *PerpsMarketSession) InitOrUpgradeToken(id [32]byte, name string, symbol string, decimals uint8, impl common.Address) (*types.Transaction, error) { + return _PerpsMarket.Contract.InitOrUpgradeToken(&_PerpsMarket.TransactOpts, id, name, symbol, decimals, impl) } // InitOrUpgradeToken is a paid mutator transaction binding the contract method 0xc6f79537. // // Solidity: function initOrUpgradeToken(bytes32 id, string name, string symbol, uint8 decimals, address impl) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) InitOrUpgradeToken(id [32]byte, name string, symbol string, decimals uint8, impl common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.InitOrUpgradeToken(&_PerpsMarketGoerli.TransactOpts, id, name, symbol, decimals, impl) +func (_PerpsMarket *PerpsMarketTransactorSession) InitOrUpgradeToken(id [32]byte, name string, symbol string, decimals uint8, impl common.Address) (*types.Transaction, error) { + return _PerpsMarket.Contract.InitOrUpgradeToken(&_PerpsMarket.TransactOpts, id, name, symbol, decimals, impl) } // InitializeFactory is a paid mutator transaction binding the contract method 0xd95de76b. // // Solidity: function initializeFactory() returns(uint128) -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) InitializeFactory(opts *bind.TransactOpts) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "initializeFactory") +func (_PerpsMarket *PerpsMarketTransactor) InitializeFactory(opts *bind.TransactOpts) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "initializeFactory") } // InitializeFactory is a paid mutator transaction binding the contract method 0xd95de76b. // // Solidity: function initializeFactory() returns(uint128) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) InitializeFactory() (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.InitializeFactory(&_PerpsMarketGoerli.TransactOpts) +func (_PerpsMarket *PerpsMarketSession) InitializeFactory() (*types.Transaction, error) { + return _PerpsMarket.Contract.InitializeFactory(&_PerpsMarket.TransactOpts) } // InitializeFactory is a paid mutator transaction binding the contract method 0xd95de76b. // // Solidity: function initializeFactory() returns(uint128) -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) InitializeFactory() (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.InitializeFactory(&_PerpsMarketGoerli.TransactOpts) +func (_PerpsMarket *PerpsMarketTransactorSession) InitializeFactory() (*types.Transaction, error) { + return _PerpsMarket.Contract.InitializeFactory(&_PerpsMarket.TransactOpts) } // Liquidate is a paid mutator transaction binding the contract method 0x048577de. // // Solidity: function liquidate(uint128 accountId) returns(uint256 liquidationReward) -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) Liquidate(opts *bind.TransactOpts, accountId *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "liquidate", accountId) +func (_PerpsMarket *PerpsMarketTransactor) Liquidate(opts *bind.TransactOpts, accountId *big.Int) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "liquidate", accountId) } // Liquidate is a paid mutator transaction binding the contract method 0x048577de. // // Solidity: function liquidate(uint128 accountId) returns(uint256 liquidationReward) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) Liquidate(accountId *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.Liquidate(&_PerpsMarketGoerli.TransactOpts, accountId) +func (_PerpsMarket *PerpsMarketSession) Liquidate(accountId *big.Int) (*types.Transaction, error) { + return _PerpsMarket.Contract.Liquidate(&_PerpsMarket.TransactOpts, accountId) } // Liquidate is a paid mutator transaction binding the contract method 0x048577de. // // Solidity: function liquidate(uint128 accountId) returns(uint256 liquidationReward) -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) Liquidate(accountId *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.Liquidate(&_PerpsMarketGoerli.TransactOpts, accountId) +func (_PerpsMarket *PerpsMarketTransactorSession) Liquidate(accountId *big.Int) (*types.Transaction, error) { + return _PerpsMarket.Contract.Liquidate(&_PerpsMarket.TransactOpts, accountId) } // LiquidateFlagged is a paid mutator transaction binding the contract method 0x1d6d458c. // // Solidity: function liquidateFlagged() returns(uint256 liquidationReward) -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) LiquidateFlagged(opts *bind.TransactOpts) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "liquidateFlagged") +func (_PerpsMarket *PerpsMarketTransactor) LiquidateFlagged(opts *bind.TransactOpts) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "liquidateFlagged") } // LiquidateFlagged is a paid mutator transaction binding the contract method 0x1d6d458c. // // Solidity: function liquidateFlagged() returns(uint256 liquidationReward) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) LiquidateFlagged() (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.LiquidateFlagged(&_PerpsMarketGoerli.TransactOpts) +func (_PerpsMarket *PerpsMarketSession) LiquidateFlagged() (*types.Transaction, error) { + return _PerpsMarket.Contract.LiquidateFlagged(&_PerpsMarket.TransactOpts) } // LiquidateFlagged is a paid mutator transaction binding the contract method 0x1d6d458c. // // Solidity: function liquidateFlagged() returns(uint256 liquidationReward) -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) LiquidateFlagged() (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.LiquidateFlagged(&_PerpsMarketGoerli.TransactOpts) +func (_PerpsMarket *PerpsMarketTransactorSession) LiquidateFlagged() (*types.Transaction, error) { + return _PerpsMarket.Contract.LiquidateFlagged(&_PerpsMarket.TransactOpts) } // ModifyCollateral is a paid mutator transaction binding the contract method 0xbb58672c. // // Solidity: function modifyCollateral(uint128 accountId, uint128 synthMarketId, int256 amountDelta) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) ModifyCollateral(opts *bind.TransactOpts, accountId *big.Int, synthMarketId *big.Int, amountDelta *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "modifyCollateral", accountId, synthMarketId, amountDelta) +func (_PerpsMarket *PerpsMarketTransactor) ModifyCollateral(opts *bind.TransactOpts, accountId *big.Int, synthMarketId *big.Int, amountDelta *big.Int) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "modifyCollateral", accountId, synthMarketId, amountDelta) } // ModifyCollateral is a paid mutator transaction binding the contract method 0xbb58672c. // // Solidity: function modifyCollateral(uint128 accountId, uint128 synthMarketId, int256 amountDelta) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) ModifyCollateral(accountId *big.Int, synthMarketId *big.Int, amountDelta *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.ModifyCollateral(&_PerpsMarketGoerli.TransactOpts, accountId, synthMarketId, amountDelta) +func (_PerpsMarket *PerpsMarketSession) ModifyCollateral(accountId *big.Int, synthMarketId *big.Int, amountDelta *big.Int) (*types.Transaction, error) { + return _PerpsMarket.Contract.ModifyCollateral(&_PerpsMarket.TransactOpts, accountId, synthMarketId, amountDelta) } // ModifyCollateral is a paid mutator transaction binding the contract method 0xbb58672c. // // Solidity: function modifyCollateral(uint128 accountId, uint128 synthMarketId, int256 amountDelta) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) ModifyCollateral(accountId *big.Int, synthMarketId *big.Int, amountDelta *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.ModifyCollateral(&_PerpsMarketGoerli.TransactOpts, accountId, synthMarketId, amountDelta) +func (_PerpsMarket *PerpsMarketTransactorSession) ModifyCollateral(accountId *big.Int, synthMarketId *big.Int, amountDelta *big.Int) (*types.Transaction, error) { + return _PerpsMarket.Contract.ModifyCollateral(&_PerpsMarket.TransactOpts, accountId, synthMarketId, amountDelta) } // Multicall is a paid mutator transaction binding the contract method 0xac9650d8. // -// Solidity: function multicall(bytes[] data) returns(bytes[] results) -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) Multicall(opts *bind.TransactOpts, data [][]byte) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "multicall", data) +// Solidity: function multicall(bytes[] data) payable returns(bytes[] results) +func (_PerpsMarket *PerpsMarketTransactor) Multicall(opts *bind.TransactOpts, data [][]byte) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "multicall", data) } // Multicall is a paid mutator transaction binding the contract method 0xac9650d8. // -// Solidity: function multicall(bytes[] data) returns(bytes[] results) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) Multicall(data [][]byte) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.Multicall(&_PerpsMarketGoerli.TransactOpts, data) +// Solidity: function multicall(bytes[] data) payable returns(bytes[] results) +func (_PerpsMarket *PerpsMarketSession) Multicall(data [][]byte) (*types.Transaction, error) { + return _PerpsMarket.Contract.Multicall(&_PerpsMarket.TransactOpts, data) } // Multicall is a paid mutator transaction binding the contract method 0xac9650d8. // -// Solidity: function multicall(bytes[] data) returns(bytes[] results) -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) Multicall(data [][]byte) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.Multicall(&_PerpsMarketGoerli.TransactOpts, data) -} - -// MulticallThrough is a paid mutator transaction binding the contract method 0xc0694da0. -// -// Solidity: function multicallThrough(address[] to, bytes[] data, uint256[] values) payable returns(bytes[] results) -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) MulticallThrough(opts *bind.TransactOpts, to []common.Address, data [][]byte, values []*big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "multicallThrough", to, data, values) -} - -// MulticallThrough is a paid mutator transaction binding the contract method 0xc0694da0. -// -// Solidity: function multicallThrough(address[] to, bytes[] data, uint256[] values) payable returns(bytes[] results) -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) MulticallThrough(to []common.Address, data [][]byte, values []*big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.MulticallThrough(&_PerpsMarketGoerli.TransactOpts, to, data, values) -} - -// MulticallThrough is a paid mutator transaction binding the contract method 0xc0694da0. -// -// Solidity: function multicallThrough(address[] to, bytes[] data, uint256[] values) payable returns(bytes[] results) -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) MulticallThrough(to []common.Address, data [][]byte, values []*big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.MulticallThrough(&_PerpsMarketGoerli.TransactOpts, to, data, values) +// Solidity: function multicall(bytes[] data) payable returns(bytes[] results) +func (_PerpsMarket *PerpsMarketTransactorSession) Multicall(data [][]byte) (*types.Transaction, error) { + return _PerpsMarket.Contract.Multicall(&_PerpsMarket.TransactOpts, data) } // NominateNewOwner is a paid mutator transaction binding the contract method 0x1627540c. // // Solidity: function nominateNewOwner(address newNominatedOwner) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) NominateNewOwner(opts *bind.TransactOpts, newNominatedOwner common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "nominateNewOwner", newNominatedOwner) +func (_PerpsMarket *PerpsMarketTransactor) NominateNewOwner(opts *bind.TransactOpts, newNominatedOwner common.Address) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "nominateNewOwner", newNominatedOwner) } // NominateNewOwner is a paid mutator transaction binding the contract method 0x1627540c. // // Solidity: function nominateNewOwner(address newNominatedOwner) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) NominateNewOwner(newNominatedOwner common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.NominateNewOwner(&_PerpsMarketGoerli.TransactOpts, newNominatedOwner) +func (_PerpsMarket *PerpsMarketSession) NominateNewOwner(newNominatedOwner common.Address) (*types.Transaction, error) { + return _PerpsMarket.Contract.NominateNewOwner(&_PerpsMarket.TransactOpts, newNominatedOwner) } // NominateNewOwner is a paid mutator transaction binding the contract method 0x1627540c. // // Solidity: function nominateNewOwner(address newNominatedOwner) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) NominateNewOwner(newNominatedOwner common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.NominateNewOwner(&_PerpsMarketGoerli.TransactOpts, newNominatedOwner) +func (_PerpsMarket *PerpsMarketTransactorSession) NominateNewOwner(newNominatedOwner common.Address) (*types.Transaction, error) { + return _PerpsMarket.Contract.NominateNewOwner(&_PerpsMarket.TransactOpts, newNominatedOwner) } // NotifyAccountTransfer is a paid mutator transaction binding the contract method 0x7dec8b55. // // Solidity: function notifyAccountTransfer(address to, uint128 accountId) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) NotifyAccountTransfer(opts *bind.TransactOpts, to common.Address, accountId *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "notifyAccountTransfer", to, accountId) +func (_PerpsMarket *PerpsMarketTransactor) NotifyAccountTransfer(opts *bind.TransactOpts, to common.Address, accountId *big.Int) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "notifyAccountTransfer", to, accountId) } // NotifyAccountTransfer is a paid mutator transaction binding the contract method 0x7dec8b55. // // Solidity: function notifyAccountTransfer(address to, uint128 accountId) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) NotifyAccountTransfer(to common.Address, accountId *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.NotifyAccountTransfer(&_PerpsMarketGoerli.TransactOpts, to, accountId) +func (_PerpsMarket *PerpsMarketSession) NotifyAccountTransfer(to common.Address, accountId *big.Int) (*types.Transaction, error) { + return _PerpsMarket.Contract.NotifyAccountTransfer(&_PerpsMarket.TransactOpts, to, accountId) } // NotifyAccountTransfer is a paid mutator transaction binding the contract method 0x7dec8b55. // // Solidity: function notifyAccountTransfer(address to, uint128 accountId) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) NotifyAccountTransfer(to common.Address, accountId *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.NotifyAccountTransfer(&_PerpsMarketGoerli.TransactOpts, to, accountId) +func (_PerpsMarket *PerpsMarketTransactorSession) NotifyAccountTransfer(to common.Address, accountId *big.Int) (*types.Transaction, error) { + return _PerpsMarket.Contract.NotifyAccountTransfer(&_PerpsMarket.TransactOpts, to, accountId) } // RegisterUnmanagedSystem is a paid mutator transaction binding the contract method 0xd245d983. // // Solidity: function registerUnmanagedSystem(bytes32 id, address endpoint) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) RegisterUnmanagedSystem(opts *bind.TransactOpts, id [32]byte, endpoint common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "registerUnmanagedSystem", id, endpoint) +func (_PerpsMarket *PerpsMarketTransactor) RegisterUnmanagedSystem(opts *bind.TransactOpts, id [32]byte, endpoint common.Address) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "registerUnmanagedSystem", id, endpoint) } // RegisterUnmanagedSystem is a paid mutator transaction binding the contract method 0xd245d983. // // Solidity: function registerUnmanagedSystem(bytes32 id, address endpoint) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) RegisterUnmanagedSystem(id [32]byte, endpoint common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.RegisterUnmanagedSystem(&_PerpsMarketGoerli.TransactOpts, id, endpoint) +func (_PerpsMarket *PerpsMarketSession) RegisterUnmanagedSystem(id [32]byte, endpoint common.Address) (*types.Transaction, error) { + return _PerpsMarket.Contract.RegisterUnmanagedSystem(&_PerpsMarket.TransactOpts, id, endpoint) } // RegisterUnmanagedSystem is a paid mutator transaction binding the contract method 0xd245d983. // // Solidity: function registerUnmanagedSystem(bytes32 id, address endpoint) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) RegisterUnmanagedSystem(id [32]byte, endpoint common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.RegisterUnmanagedSystem(&_PerpsMarketGoerli.TransactOpts, id, endpoint) +func (_PerpsMarket *PerpsMarketTransactorSession) RegisterUnmanagedSystem(id [32]byte, endpoint common.Address) (*types.Transaction, error) { + return _PerpsMarket.Contract.RegisterUnmanagedSystem(&_PerpsMarket.TransactOpts, id, endpoint) } // RemoveFromFeatureFlagAllowlist is a paid mutator transaction binding the contract method 0xb7746b59. // // Solidity: function removeFromFeatureFlagAllowlist(bytes32 feature, address account) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) RemoveFromFeatureFlagAllowlist(opts *bind.TransactOpts, feature [32]byte, account common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "removeFromFeatureFlagAllowlist", feature, account) +func (_PerpsMarket *PerpsMarketTransactor) RemoveFromFeatureFlagAllowlist(opts *bind.TransactOpts, feature [32]byte, account common.Address) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "removeFromFeatureFlagAllowlist", feature, account) } // RemoveFromFeatureFlagAllowlist is a paid mutator transaction binding the contract method 0xb7746b59. // // Solidity: function removeFromFeatureFlagAllowlist(bytes32 feature, address account) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) RemoveFromFeatureFlagAllowlist(feature [32]byte, account common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.RemoveFromFeatureFlagAllowlist(&_PerpsMarketGoerli.TransactOpts, feature, account) +func (_PerpsMarket *PerpsMarketSession) RemoveFromFeatureFlagAllowlist(feature [32]byte, account common.Address) (*types.Transaction, error) { + return _PerpsMarket.Contract.RemoveFromFeatureFlagAllowlist(&_PerpsMarket.TransactOpts, feature, account) } // RemoveFromFeatureFlagAllowlist is a paid mutator transaction binding the contract method 0xb7746b59. // // Solidity: function removeFromFeatureFlagAllowlist(bytes32 feature, address account) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) RemoveFromFeatureFlagAllowlist(feature [32]byte, account common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.RemoveFromFeatureFlagAllowlist(&_PerpsMarketGoerli.TransactOpts, feature, account) +func (_PerpsMarket *PerpsMarketTransactorSession) RemoveFromFeatureFlagAllowlist(feature [32]byte, account common.Address) (*types.Transaction, error) { + return _PerpsMarket.Contract.RemoveFromFeatureFlagAllowlist(&_PerpsMarket.TransactOpts, feature, account) } // RenounceNomination is a paid mutator transaction binding the contract method 0x718fe928. // // Solidity: function renounceNomination() returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) RenounceNomination(opts *bind.TransactOpts) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "renounceNomination") +func (_PerpsMarket *PerpsMarketTransactor) RenounceNomination(opts *bind.TransactOpts) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "renounceNomination") } // RenounceNomination is a paid mutator transaction binding the contract method 0x718fe928. // // Solidity: function renounceNomination() returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) RenounceNomination() (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.RenounceNomination(&_PerpsMarketGoerli.TransactOpts) +func (_PerpsMarket *PerpsMarketSession) RenounceNomination() (*types.Transaction, error) { + return _PerpsMarket.Contract.RenounceNomination(&_PerpsMarket.TransactOpts) } // RenounceNomination is a paid mutator transaction binding the contract method 0x718fe928. // // Solidity: function renounceNomination() returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) RenounceNomination() (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.RenounceNomination(&_PerpsMarketGoerli.TransactOpts) +func (_PerpsMarket *PerpsMarketTransactorSession) RenounceNomination() (*types.Transaction, error) { + return _PerpsMarket.Contract.RenounceNomination(&_PerpsMarket.TransactOpts) } // RenouncePermission is a paid mutator transaction binding the contract method 0x47c1c561. // // Solidity: function renouncePermission(uint128 accountId, bytes32 permission) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) RenouncePermission(opts *bind.TransactOpts, accountId *big.Int, permission [32]byte) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "renouncePermission", accountId, permission) +func (_PerpsMarket *PerpsMarketTransactor) RenouncePermission(opts *bind.TransactOpts, accountId *big.Int, permission [32]byte) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "renouncePermission", accountId, permission) } // RenouncePermission is a paid mutator transaction binding the contract method 0x47c1c561. // // Solidity: function renouncePermission(uint128 accountId, bytes32 permission) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) RenouncePermission(accountId *big.Int, permission [32]byte) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.RenouncePermission(&_PerpsMarketGoerli.TransactOpts, accountId, permission) +func (_PerpsMarket *PerpsMarketSession) RenouncePermission(accountId *big.Int, permission [32]byte) (*types.Transaction, error) { + return _PerpsMarket.Contract.RenouncePermission(&_PerpsMarket.TransactOpts, accountId, permission) } // RenouncePermission is a paid mutator transaction binding the contract method 0x47c1c561. // // Solidity: function renouncePermission(uint128 accountId, bytes32 permission) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) RenouncePermission(accountId *big.Int, permission [32]byte) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.RenouncePermission(&_PerpsMarketGoerli.TransactOpts, accountId, permission) +func (_PerpsMarket *PerpsMarketTransactorSession) RenouncePermission(accountId *big.Int, permission [32]byte) (*types.Transaction, error) { + return _PerpsMarket.Contract.RenouncePermission(&_PerpsMarket.TransactOpts, accountId, permission) } // RevokePermission is a paid mutator transaction binding the contract method 0xa7627288. // // Solidity: function revokePermission(uint128 accountId, bytes32 permission, address user) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) RevokePermission(opts *bind.TransactOpts, accountId *big.Int, permission [32]byte, user common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "revokePermission", accountId, permission, user) +func (_PerpsMarket *PerpsMarketTransactor) RevokePermission(opts *bind.TransactOpts, accountId *big.Int, permission [32]byte, user common.Address) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "revokePermission", accountId, permission, user) } // RevokePermission is a paid mutator transaction binding the contract method 0xa7627288. // // Solidity: function revokePermission(uint128 accountId, bytes32 permission, address user) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) RevokePermission(accountId *big.Int, permission [32]byte, user common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.RevokePermission(&_PerpsMarketGoerli.TransactOpts, accountId, permission, user) +func (_PerpsMarket *PerpsMarketSession) RevokePermission(accountId *big.Int, permission [32]byte, user common.Address) (*types.Transaction, error) { + return _PerpsMarket.Contract.RevokePermission(&_PerpsMarket.TransactOpts, accountId, permission, user) } // RevokePermission is a paid mutator transaction binding the contract method 0xa7627288. // // Solidity: function revokePermission(uint128 accountId, bytes32 permission, address user) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) RevokePermission(accountId *big.Int, permission [32]byte, user common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.RevokePermission(&_PerpsMarketGoerli.TransactOpts, accountId, permission, user) -} - -// SetAllowlistedMulticallTarget is a paid mutator transaction binding the contract method 0x0a6c7553. -// -// Solidity: function setAllowlistedMulticallTarget(address target, bool allowlisted) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) SetAllowlistedMulticallTarget(opts *bind.TransactOpts, target common.Address, allowlisted bool) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "setAllowlistedMulticallTarget", target, allowlisted) -} - -// SetAllowlistedMulticallTarget is a paid mutator transaction binding the contract method 0x0a6c7553. -// -// Solidity: function setAllowlistedMulticallTarget(address target, bool allowlisted) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) SetAllowlistedMulticallTarget(target common.Address, allowlisted bool) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SetAllowlistedMulticallTarget(&_PerpsMarketGoerli.TransactOpts, target, allowlisted) -} - -// SetAllowlistedMulticallTarget is a paid mutator transaction binding the contract method 0x0a6c7553. -// -// Solidity: function setAllowlistedMulticallTarget(address target, bool allowlisted) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) SetAllowlistedMulticallTarget(target common.Address, allowlisted bool) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SetAllowlistedMulticallTarget(&_PerpsMarketGoerli.TransactOpts, target, allowlisted) +func (_PerpsMarket *PerpsMarketTransactorSession) RevokePermission(accountId *big.Int, permission [32]byte, user common.Address) (*types.Transaction, error) { + return _PerpsMarket.Contract.RevokePermission(&_PerpsMarket.TransactOpts, accountId, permission, user) } // SetDeniers is a paid mutator transaction binding the contract method 0x715cb7d2. // // Solidity: function setDeniers(bytes32 feature, address[] deniers) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) SetDeniers(opts *bind.TransactOpts, feature [32]byte, deniers []common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "setDeniers", feature, deniers) +func (_PerpsMarket *PerpsMarketTransactor) SetDeniers(opts *bind.TransactOpts, feature [32]byte, deniers []common.Address) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "setDeniers", feature, deniers) } // SetDeniers is a paid mutator transaction binding the contract method 0x715cb7d2. // // Solidity: function setDeniers(bytes32 feature, address[] deniers) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) SetDeniers(feature [32]byte, deniers []common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SetDeniers(&_PerpsMarketGoerli.TransactOpts, feature, deniers) +func (_PerpsMarket *PerpsMarketSession) SetDeniers(feature [32]byte, deniers []common.Address) (*types.Transaction, error) { + return _PerpsMarket.Contract.SetDeniers(&_PerpsMarket.TransactOpts, feature, deniers) } // SetDeniers is a paid mutator transaction binding the contract method 0x715cb7d2. // // Solidity: function setDeniers(bytes32 feature, address[] deniers) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) SetDeniers(feature [32]byte, deniers []common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SetDeniers(&_PerpsMarketGoerli.TransactOpts, feature, deniers) +func (_PerpsMarket *PerpsMarketTransactorSession) SetDeniers(feature [32]byte, deniers []common.Address) (*types.Transaction, error) { + return _PerpsMarket.Contract.SetDeniers(&_PerpsMarket.TransactOpts, feature, deniers) } // SetFeatureFlagAllowAll is a paid mutator transaction binding the contract method 0x7d632bd2. // // Solidity: function setFeatureFlagAllowAll(bytes32 feature, bool allowAll) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) SetFeatureFlagAllowAll(opts *bind.TransactOpts, feature [32]byte, allowAll bool) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "setFeatureFlagAllowAll", feature, allowAll) +func (_PerpsMarket *PerpsMarketTransactor) SetFeatureFlagAllowAll(opts *bind.TransactOpts, feature [32]byte, allowAll bool) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "setFeatureFlagAllowAll", feature, allowAll) } // SetFeatureFlagAllowAll is a paid mutator transaction binding the contract method 0x7d632bd2. // // Solidity: function setFeatureFlagAllowAll(bytes32 feature, bool allowAll) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) SetFeatureFlagAllowAll(feature [32]byte, allowAll bool) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SetFeatureFlagAllowAll(&_PerpsMarketGoerli.TransactOpts, feature, allowAll) +func (_PerpsMarket *PerpsMarketSession) SetFeatureFlagAllowAll(feature [32]byte, allowAll bool) (*types.Transaction, error) { + return _PerpsMarket.Contract.SetFeatureFlagAllowAll(&_PerpsMarket.TransactOpts, feature, allowAll) } // SetFeatureFlagAllowAll is a paid mutator transaction binding the contract method 0x7d632bd2. // // Solidity: function setFeatureFlagAllowAll(bytes32 feature, bool allowAll) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) SetFeatureFlagAllowAll(feature [32]byte, allowAll bool) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SetFeatureFlagAllowAll(&_PerpsMarketGoerli.TransactOpts, feature, allowAll) +func (_PerpsMarket *PerpsMarketTransactorSession) SetFeatureFlagAllowAll(feature [32]byte, allowAll bool) (*types.Transaction, error) { + return _PerpsMarket.Contract.SetFeatureFlagAllowAll(&_PerpsMarket.TransactOpts, feature, allowAll) } // SetFeatureFlagDenyAll is a paid mutator transaction binding the contract method 0x5e52ad6e. // // Solidity: function setFeatureFlagDenyAll(bytes32 feature, bool denyAll) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) SetFeatureFlagDenyAll(opts *bind.TransactOpts, feature [32]byte, denyAll bool) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "setFeatureFlagDenyAll", feature, denyAll) +func (_PerpsMarket *PerpsMarketTransactor) SetFeatureFlagDenyAll(opts *bind.TransactOpts, feature [32]byte, denyAll bool) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "setFeatureFlagDenyAll", feature, denyAll) } // SetFeatureFlagDenyAll is a paid mutator transaction binding the contract method 0x5e52ad6e. // // Solidity: function setFeatureFlagDenyAll(bytes32 feature, bool denyAll) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) SetFeatureFlagDenyAll(feature [32]byte, denyAll bool) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SetFeatureFlagDenyAll(&_PerpsMarketGoerli.TransactOpts, feature, denyAll) +func (_PerpsMarket *PerpsMarketSession) SetFeatureFlagDenyAll(feature [32]byte, denyAll bool) (*types.Transaction, error) { + return _PerpsMarket.Contract.SetFeatureFlagDenyAll(&_PerpsMarket.TransactOpts, feature, denyAll) } // SetFeatureFlagDenyAll is a paid mutator transaction binding the contract method 0x5e52ad6e. // // Solidity: function setFeatureFlagDenyAll(bytes32 feature, bool denyAll) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) SetFeatureFlagDenyAll(feature [32]byte, denyAll bool) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SetFeatureFlagDenyAll(&_PerpsMarketGoerli.TransactOpts, feature, denyAll) +func (_PerpsMarket *PerpsMarketTransactorSession) SetFeatureFlagDenyAll(feature [32]byte, denyAll bool) (*types.Transaction, error) { + return _PerpsMarket.Contract.SetFeatureFlagDenyAll(&_PerpsMarket.TransactOpts, feature, denyAll) } // SetFeeCollector is a paid mutator transaction binding the contract method 0xa42dce80. // // Solidity: function setFeeCollector(address feeCollector) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) SetFeeCollector(opts *bind.TransactOpts, feeCollector common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "setFeeCollector", feeCollector) +func (_PerpsMarket *PerpsMarketTransactor) SetFeeCollector(opts *bind.TransactOpts, feeCollector common.Address) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "setFeeCollector", feeCollector) } // SetFeeCollector is a paid mutator transaction binding the contract method 0xa42dce80. // // Solidity: function setFeeCollector(address feeCollector) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) SetFeeCollector(feeCollector common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SetFeeCollector(&_PerpsMarketGoerli.TransactOpts, feeCollector) +func (_PerpsMarket *PerpsMarketSession) SetFeeCollector(feeCollector common.Address) (*types.Transaction, error) { + return _PerpsMarket.Contract.SetFeeCollector(&_PerpsMarket.TransactOpts, feeCollector) } // SetFeeCollector is a paid mutator transaction binding the contract method 0xa42dce80. // // Solidity: function setFeeCollector(address feeCollector) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) SetFeeCollector(feeCollector common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SetFeeCollector(&_PerpsMarketGoerli.TransactOpts, feeCollector) +func (_PerpsMarket *PerpsMarketTransactorSession) SetFeeCollector(feeCollector common.Address) (*types.Transaction, error) { + return _PerpsMarket.Contract.SetFeeCollector(&_PerpsMarket.TransactOpts, feeCollector) } // SetFundingParameters is a paid mutator transaction binding the contract method 0xc2382277. // // Solidity: function setFundingParameters(uint128 marketId, uint256 skewScale, uint256 maxFundingVelocity) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) SetFundingParameters(opts *bind.TransactOpts, marketId *big.Int, skewScale *big.Int, maxFundingVelocity *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "setFundingParameters", marketId, skewScale, maxFundingVelocity) +func (_PerpsMarket *PerpsMarketTransactor) SetFundingParameters(opts *bind.TransactOpts, marketId *big.Int, skewScale *big.Int, maxFundingVelocity *big.Int) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "setFundingParameters", marketId, skewScale, maxFundingVelocity) } // SetFundingParameters is a paid mutator transaction binding the contract method 0xc2382277. // // Solidity: function setFundingParameters(uint128 marketId, uint256 skewScale, uint256 maxFundingVelocity) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) SetFundingParameters(marketId *big.Int, skewScale *big.Int, maxFundingVelocity *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SetFundingParameters(&_PerpsMarketGoerli.TransactOpts, marketId, skewScale, maxFundingVelocity) +func (_PerpsMarket *PerpsMarketSession) SetFundingParameters(marketId *big.Int, skewScale *big.Int, maxFundingVelocity *big.Int) (*types.Transaction, error) { + return _PerpsMarket.Contract.SetFundingParameters(&_PerpsMarket.TransactOpts, marketId, skewScale, maxFundingVelocity) } // SetFundingParameters is a paid mutator transaction binding the contract method 0xc2382277. // // Solidity: function setFundingParameters(uint128 marketId, uint256 skewScale, uint256 maxFundingVelocity) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) SetFundingParameters(marketId *big.Int, skewScale *big.Int, maxFundingVelocity *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SetFundingParameters(&_PerpsMarketGoerli.TransactOpts, marketId, skewScale, maxFundingVelocity) +func (_PerpsMarket *PerpsMarketTransactorSession) SetFundingParameters(marketId *big.Int, skewScale *big.Int, maxFundingVelocity *big.Int) (*types.Transaction, error) { + return _PerpsMarket.Contract.SetFundingParameters(&_PerpsMarket.TransactOpts, marketId, skewScale, maxFundingVelocity) } // SetLiquidationParameters is a paid mutator transaction binding the contract method 0x25e5409e. // // Solidity: function setLiquidationParameters(uint128 marketId, uint256 initialMarginRatioD18, uint256 minimumInitialMarginRatioD18, uint256 maintenanceMarginScalarD18, uint256 liquidationRewardRatioD18, uint256 minimumPositionMargin) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) SetLiquidationParameters(opts *bind.TransactOpts, marketId *big.Int, initialMarginRatioD18 *big.Int, minimumInitialMarginRatioD18 *big.Int, maintenanceMarginScalarD18 *big.Int, liquidationRewardRatioD18 *big.Int, minimumPositionMargin *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "setLiquidationParameters", marketId, initialMarginRatioD18, minimumInitialMarginRatioD18, maintenanceMarginScalarD18, liquidationRewardRatioD18, minimumPositionMargin) +func (_PerpsMarket *PerpsMarketTransactor) SetLiquidationParameters(opts *bind.TransactOpts, marketId *big.Int, initialMarginRatioD18 *big.Int, minimumInitialMarginRatioD18 *big.Int, maintenanceMarginScalarD18 *big.Int, liquidationRewardRatioD18 *big.Int, minimumPositionMargin *big.Int) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "setLiquidationParameters", marketId, initialMarginRatioD18, minimumInitialMarginRatioD18, maintenanceMarginScalarD18, liquidationRewardRatioD18, minimumPositionMargin) } // SetLiquidationParameters is a paid mutator transaction binding the contract method 0x25e5409e. // // Solidity: function setLiquidationParameters(uint128 marketId, uint256 initialMarginRatioD18, uint256 minimumInitialMarginRatioD18, uint256 maintenanceMarginScalarD18, uint256 liquidationRewardRatioD18, uint256 minimumPositionMargin) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) SetLiquidationParameters(marketId *big.Int, initialMarginRatioD18 *big.Int, minimumInitialMarginRatioD18 *big.Int, maintenanceMarginScalarD18 *big.Int, liquidationRewardRatioD18 *big.Int, minimumPositionMargin *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SetLiquidationParameters(&_PerpsMarketGoerli.TransactOpts, marketId, initialMarginRatioD18, minimumInitialMarginRatioD18, maintenanceMarginScalarD18, liquidationRewardRatioD18, minimumPositionMargin) +func (_PerpsMarket *PerpsMarketSession) SetLiquidationParameters(marketId *big.Int, initialMarginRatioD18 *big.Int, minimumInitialMarginRatioD18 *big.Int, maintenanceMarginScalarD18 *big.Int, liquidationRewardRatioD18 *big.Int, minimumPositionMargin *big.Int) (*types.Transaction, error) { + return _PerpsMarket.Contract.SetLiquidationParameters(&_PerpsMarket.TransactOpts, marketId, initialMarginRatioD18, minimumInitialMarginRatioD18, maintenanceMarginScalarD18, liquidationRewardRatioD18, minimumPositionMargin) } // SetLiquidationParameters is a paid mutator transaction binding the contract method 0x25e5409e. // // Solidity: function setLiquidationParameters(uint128 marketId, uint256 initialMarginRatioD18, uint256 minimumInitialMarginRatioD18, uint256 maintenanceMarginScalarD18, uint256 liquidationRewardRatioD18, uint256 minimumPositionMargin) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) SetLiquidationParameters(marketId *big.Int, initialMarginRatioD18 *big.Int, minimumInitialMarginRatioD18 *big.Int, maintenanceMarginScalarD18 *big.Int, liquidationRewardRatioD18 *big.Int, minimumPositionMargin *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SetLiquidationParameters(&_PerpsMarketGoerli.TransactOpts, marketId, initialMarginRatioD18, minimumInitialMarginRatioD18, maintenanceMarginScalarD18, liquidationRewardRatioD18, minimumPositionMargin) +func (_PerpsMarket *PerpsMarketTransactorSession) SetLiquidationParameters(marketId *big.Int, initialMarginRatioD18 *big.Int, minimumInitialMarginRatioD18 *big.Int, maintenanceMarginScalarD18 *big.Int, liquidationRewardRatioD18 *big.Int, minimumPositionMargin *big.Int) (*types.Transaction, error) { + return _PerpsMarket.Contract.SetLiquidationParameters(&_PerpsMarket.TransactOpts, marketId, initialMarginRatioD18, minimumInitialMarginRatioD18, maintenanceMarginScalarD18, liquidationRewardRatioD18, minimumPositionMargin) } // SetLiquidationRewardGuards is a paid mutator transaction binding the contract method 0xdbc593a9. // // Solidity: function setLiquidationRewardGuards(uint256 minLiquidationRewardUsd, uint256 maxLiquidationRewardUsd) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) SetLiquidationRewardGuards(opts *bind.TransactOpts, minLiquidationRewardUsd *big.Int, maxLiquidationRewardUsd *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "setLiquidationRewardGuards", minLiquidationRewardUsd, maxLiquidationRewardUsd) +func (_PerpsMarket *PerpsMarketTransactor) SetLiquidationRewardGuards(opts *bind.TransactOpts, minLiquidationRewardUsd *big.Int, maxLiquidationRewardUsd *big.Int) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "setLiquidationRewardGuards", minLiquidationRewardUsd, maxLiquidationRewardUsd) } // SetLiquidationRewardGuards is a paid mutator transaction binding the contract method 0xdbc593a9. // // Solidity: function setLiquidationRewardGuards(uint256 minLiquidationRewardUsd, uint256 maxLiquidationRewardUsd) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) SetLiquidationRewardGuards(minLiquidationRewardUsd *big.Int, maxLiquidationRewardUsd *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SetLiquidationRewardGuards(&_PerpsMarketGoerli.TransactOpts, minLiquidationRewardUsd, maxLiquidationRewardUsd) +func (_PerpsMarket *PerpsMarketSession) SetLiquidationRewardGuards(minLiquidationRewardUsd *big.Int, maxLiquidationRewardUsd *big.Int) (*types.Transaction, error) { + return _PerpsMarket.Contract.SetLiquidationRewardGuards(&_PerpsMarket.TransactOpts, minLiquidationRewardUsd, maxLiquidationRewardUsd) } // SetLiquidationRewardGuards is a paid mutator transaction binding the contract method 0xdbc593a9. // // Solidity: function setLiquidationRewardGuards(uint256 minLiquidationRewardUsd, uint256 maxLiquidationRewardUsd) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) SetLiquidationRewardGuards(minLiquidationRewardUsd *big.Int, maxLiquidationRewardUsd *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SetLiquidationRewardGuards(&_PerpsMarketGoerli.TransactOpts, minLiquidationRewardUsd, maxLiquidationRewardUsd) +func (_PerpsMarket *PerpsMarketTransactorSession) SetLiquidationRewardGuards(minLiquidationRewardUsd *big.Int, maxLiquidationRewardUsd *big.Int) (*types.Transaction, error) { + return _PerpsMarket.Contract.SetLiquidationRewardGuards(&_PerpsMarket.TransactOpts, minLiquidationRewardUsd, maxLiquidationRewardUsd) } // SetLockedOiRatio is a paid mutator transaction binding the contract method 0x033723d9. // // Solidity: function setLockedOiRatio(uint128 marketId, uint256 lockedOiRatioD18) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) SetLockedOiRatio(opts *bind.TransactOpts, marketId *big.Int, lockedOiRatioD18 *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "setLockedOiRatio", marketId, lockedOiRatioD18) +func (_PerpsMarket *PerpsMarketTransactor) SetLockedOiRatio(opts *bind.TransactOpts, marketId *big.Int, lockedOiRatioD18 *big.Int) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "setLockedOiRatio", marketId, lockedOiRatioD18) } // SetLockedOiRatio is a paid mutator transaction binding the contract method 0x033723d9. // // Solidity: function setLockedOiRatio(uint128 marketId, uint256 lockedOiRatioD18) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) SetLockedOiRatio(marketId *big.Int, lockedOiRatioD18 *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SetLockedOiRatio(&_PerpsMarketGoerli.TransactOpts, marketId, lockedOiRatioD18) +func (_PerpsMarket *PerpsMarketSession) SetLockedOiRatio(marketId *big.Int, lockedOiRatioD18 *big.Int) (*types.Transaction, error) { + return _PerpsMarket.Contract.SetLockedOiRatio(&_PerpsMarket.TransactOpts, marketId, lockedOiRatioD18) } // SetLockedOiRatio is a paid mutator transaction binding the contract method 0x033723d9. // // Solidity: function setLockedOiRatio(uint128 marketId, uint256 lockedOiRatioD18) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) SetLockedOiRatio(marketId *big.Int, lockedOiRatioD18 *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SetLockedOiRatio(&_PerpsMarketGoerli.TransactOpts, marketId, lockedOiRatioD18) +func (_PerpsMarket *PerpsMarketTransactorSession) SetLockedOiRatio(marketId *big.Int, lockedOiRatioD18 *big.Int) (*types.Transaction, error) { + return _PerpsMarket.Contract.SetLockedOiRatio(&_PerpsMarket.TransactOpts, marketId, lockedOiRatioD18) } // SetMaxCollateralAmount is a paid mutator transaction binding the contract method 0x6cded665. // // Solidity: function setMaxCollateralAmount(uint128 synthMarketId, uint256 collateralAmount) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) SetMaxCollateralAmount(opts *bind.TransactOpts, synthMarketId *big.Int, collateralAmount *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "setMaxCollateralAmount", synthMarketId, collateralAmount) +func (_PerpsMarket *PerpsMarketTransactor) SetMaxCollateralAmount(opts *bind.TransactOpts, synthMarketId *big.Int, collateralAmount *big.Int) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "setMaxCollateralAmount", synthMarketId, collateralAmount) } // SetMaxCollateralAmount is a paid mutator transaction binding the contract method 0x6cded665. // // Solidity: function setMaxCollateralAmount(uint128 synthMarketId, uint256 collateralAmount) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) SetMaxCollateralAmount(synthMarketId *big.Int, collateralAmount *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SetMaxCollateralAmount(&_PerpsMarketGoerli.TransactOpts, synthMarketId, collateralAmount) +func (_PerpsMarket *PerpsMarketSession) SetMaxCollateralAmount(synthMarketId *big.Int, collateralAmount *big.Int) (*types.Transaction, error) { + return _PerpsMarket.Contract.SetMaxCollateralAmount(&_PerpsMarket.TransactOpts, synthMarketId, collateralAmount) } // SetMaxCollateralAmount is a paid mutator transaction binding the contract method 0x6cded665. // // Solidity: function setMaxCollateralAmount(uint128 synthMarketId, uint256 collateralAmount) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) SetMaxCollateralAmount(synthMarketId *big.Int, collateralAmount *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SetMaxCollateralAmount(&_PerpsMarketGoerli.TransactOpts, synthMarketId, collateralAmount) +func (_PerpsMarket *PerpsMarketTransactorSession) SetMaxCollateralAmount(synthMarketId *big.Int, collateralAmount *big.Int) (*types.Transaction, error) { + return _PerpsMarket.Contract.SetMaxCollateralAmount(&_PerpsMarket.TransactOpts, synthMarketId, collateralAmount) } // SetMaxLiquidationParameters is a paid mutator transaction binding the contract method 0xc7f8a94f. // // Solidity: function setMaxLiquidationParameters(uint128 marketId, uint256 maxLiquidationLimitAccumulationMultiplier, uint256 maxSecondsInLiquidationWindow, uint256 maxLiquidationPd, address endorsedLiquidator) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) SetMaxLiquidationParameters(opts *bind.TransactOpts, marketId *big.Int, maxLiquidationLimitAccumulationMultiplier *big.Int, maxSecondsInLiquidationWindow *big.Int, maxLiquidationPd *big.Int, endorsedLiquidator common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "setMaxLiquidationParameters", marketId, maxLiquidationLimitAccumulationMultiplier, maxSecondsInLiquidationWindow, maxLiquidationPd, endorsedLiquidator) +func (_PerpsMarket *PerpsMarketTransactor) SetMaxLiquidationParameters(opts *bind.TransactOpts, marketId *big.Int, maxLiquidationLimitAccumulationMultiplier *big.Int, maxSecondsInLiquidationWindow *big.Int, maxLiquidationPd *big.Int, endorsedLiquidator common.Address) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "setMaxLiquidationParameters", marketId, maxLiquidationLimitAccumulationMultiplier, maxSecondsInLiquidationWindow, maxLiquidationPd, endorsedLiquidator) } // SetMaxLiquidationParameters is a paid mutator transaction binding the contract method 0xc7f8a94f. // // Solidity: function setMaxLiquidationParameters(uint128 marketId, uint256 maxLiquidationLimitAccumulationMultiplier, uint256 maxSecondsInLiquidationWindow, uint256 maxLiquidationPd, address endorsedLiquidator) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) SetMaxLiquidationParameters(marketId *big.Int, maxLiquidationLimitAccumulationMultiplier *big.Int, maxSecondsInLiquidationWindow *big.Int, maxLiquidationPd *big.Int, endorsedLiquidator common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SetMaxLiquidationParameters(&_PerpsMarketGoerli.TransactOpts, marketId, maxLiquidationLimitAccumulationMultiplier, maxSecondsInLiquidationWindow, maxLiquidationPd, endorsedLiquidator) +func (_PerpsMarket *PerpsMarketSession) SetMaxLiquidationParameters(marketId *big.Int, maxLiquidationLimitAccumulationMultiplier *big.Int, maxSecondsInLiquidationWindow *big.Int, maxLiquidationPd *big.Int, endorsedLiquidator common.Address) (*types.Transaction, error) { + return _PerpsMarket.Contract.SetMaxLiquidationParameters(&_PerpsMarket.TransactOpts, marketId, maxLiquidationLimitAccumulationMultiplier, maxSecondsInLiquidationWindow, maxLiquidationPd, endorsedLiquidator) } // SetMaxLiquidationParameters is a paid mutator transaction binding the contract method 0xc7f8a94f. // // Solidity: function setMaxLiquidationParameters(uint128 marketId, uint256 maxLiquidationLimitAccumulationMultiplier, uint256 maxSecondsInLiquidationWindow, uint256 maxLiquidationPd, address endorsedLiquidator) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) SetMaxLiquidationParameters(marketId *big.Int, maxLiquidationLimitAccumulationMultiplier *big.Int, maxSecondsInLiquidationWindow *big.Int, maxLiquidationPd *big.Int, endorsedLiquidator common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SetMaxLiquidationParameters(&_PerpsMarketGoerli.TransactOpts, marketId, maxLiquidationLimitAccumulationMultiplier, maxSecondsInLiquidationWindow, maxLiquidationPd, endorsedLiquidator) +func (_PerpsMarket *PerpsMarketTransactorSession) SetMaxLiquidationParameters(marketId *big.Int, maxLiquidationLimitAccumulationMultiplier *big.Int, maxSecondsInLiquidationWindow *big.Int, maxLiquidationPd *big.Int, endorsedLiquidator common.Address) (*types.Transaction, error) { + return _PerpsMarket.Contract.SetMaxLiquidationParameters(&_PerpsMarket.TransactOpts, marketId, maxLiquidationLimitAccumulationMultiplier, maxSecondsInLiquidationWindow, maxLiquidationPd, endorsedLiquidator) } // SetMaxMarketSize is a paid mutator transaction binding the contract method 0x404a68aa. // // Solidity: function setMaxMarketSize(uint128 marketId, uint256 maxMarketSize) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) SetMaxMarketSize(opts *bind.TransactOpts, marketId *big.Int, maxMarketSize *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "setMaxMarketSize", marketId, maxMarketSize) +func (_PerpsMarket *PerpsMarketTransactor) SetMaxMarketSize(opts *bind.TransactOpts, marketId *big.Int, maxMarketSize *big.Int) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "setMaxMarketSize", marketId, maxMarketSize) } // SetMaxMarketSize is a paid mutator transaction binding the contract method 0x404a68aa. // // Solidity: function setMaxMarketSize(uint128 marketId, uint256 maxMarketSize) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) SetMaxMarketSize(marketId *big.Int, maxMarketSize *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SetMaxMarketSize(&_PerpsMarketGoerli.TransactOpts, marketId, maxMarketSize) +func (_PerpsMarket *PerpsMarketSession) SetMaxMarketSize(marketId *big.Int, maxMarketSize *big.Int) (*types.Transaction, error) { + return _PerpsMarket.Contract.SetMaxMarketSize(&_PerpsMarket.TransactOpts, marketId, maxMarketSize) } // SetMaxMarketSize is a paid mutator transaction binding the contract method 0x404a68aa. // // Solidity: function setMaxMarketSize(uint128 marketId, uint256 maxMarketSize) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) SetMaxMarketSize(marketId *big.Int, maxMarketSize *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SetMaxMarketSize(&_PerpsMarketGoerli.TransactOpts, marketId, maxMarketSize) +func (_PerpsMarket *PerpsMarketTransactorSession) SetMaxMarketSize(marketId *big.Int, maxMarketSize *big.Int) (*types.Transaction, error) { + return _PerpsMarket.Contract.SetMaxMarketSize(&_PerpsMarket.TransactOpts, marketId, maxMarketSize) } // SetOrderFees is a paid mutator transaction binding the contract method 0xf842fa86. // // Solidity: function setOrderFees(uint128 marketId, uint256 makerFeeRatio, uint256 takerFeeRatio) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) SetOrderFees(opts *bind.TransactOpts, marketId *big.Int, makerFeeRatio *big.Int, takerFeeRatio *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "setOrderFees", marketId, makerFeeRatio, takerFeeRatio) +func (_PerpsMarket *PerpsMarketTransactor) SetOrderFees(opts *bind.TransactOpts, marketId *big.Int, makerFeeRatio *big.Int, takerFeeRatio *big.Int) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "setOrderFees", marketId, makerFeeRatio, takerFeeRatio) } // SetOrderFees is a paid mutator transaction binding the contract method 0xf842fa86. // // Solidity: function setOrderFees(uint128 marketId, uint256 makerFeeRatio, uint256 takerFeeRatio) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) SetOrderFees(marketId *big.Int, makerFeeRatio *big.Int, takerFeeRatio *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SetOrderFees(&_PerpsMarketGoerli.TransactOpts, marketId, makerFeeRatio, takerFeeRatio) +func (_PerpsMarket *PerpsMarketSession) SetOrderFees(marketId *big.Int, makerFeeRatio *big.Int, takerFeeRatio *big.Int) (*types.Transaction, error) { + return _PerpsMarket.Contract.SetOrderFees(&_PerpsMarket.TransactOpts, marketId, makerFeeRatio, takerFeeRatio) } // SetOrderFees is a paid mutator transaction binding the contract method 0xf842fa86. // // Solidity: function setOrderFees(uint128 marketId, uint256 makerFeeRatio, uint256 takerFeeRatio) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) SetOrderFees(marketId *big.Int, makerFeeRatio *big.Int, takerFeeRatio *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SetOrderFees(&_PerpsMarketGoerli.TransactOpts, marketId, makerFeeRatio, takerFeeRatio) +func (_PerpsMarket *PerpsMarketTransactorSession) SetOrderFees(marketId *big.Int, makerFeeRatio *big.Int, takerFeeRatio *big.Int) (*types.Transaction, error) { + return _PerpsMarket.Contract.SetOrderFees(&_PerpsMarket.TransactOpts, marketId, makerFeeRatio, takerFeeRatio) } // SetPerAccountCaps is a paid mutator transaction binding the contract method 0xfa0e70a7. // // Solidity: function setPerAccountCaps(uint128 maxPositionsPerAccount, uint128 maxCollateralsPerAccount) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) SetPerAccountCaps(opts *bind.TransactOpts, maxPositionsPerAccount *big.Int, maxCollateralsPerAccount *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "setPerAccountCaps", maxPositionsPerAccount, maxCollateralsPerAccount) +func (_PerpsMarket *PerpsMarketTransactor) SetPerAccountCaps(opts *bind.TransactOpts, maxPositionsPerAccount *big.Int, maxCollateralsPerAccount *big.Int) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "setPerAccountCaps", maxPositionsPerAccount, maxCollateralsPerAccount) } // SetPerAccountCaps is a paid mutator transaction binding the contract method 0xfa0e70a7. // // Solidity: function setPerAccountCaps(uint128 maxPositionsPerAccount, uint128 maxCollateralsPerAccount) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) SetPerAccountCaps(maxPositionsPerAccount *big.Int, maxCollateralsPerAccount *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SetPerAccountCaps(&_PerpsMarketGoerli.TransactOpts, maxPositionsPerAccount, maxCollateralsPerAccount) +func (_PerpsMarket *PerpsMarketSession) SetPerAccountCaps(maxPositionsPerAccount *big.Int, maxCollateralsPerAccount *big.Int) (*types.Transaction, error) { + return _PerpsMarket.Contract.SetPerAccountCaps(&_PerpsMarket.TransactOpts, maxPositionsPerAccount, maxCollateralsPerAccount) } // SetPerAccountCaps is a paid mutator transaction binding the contract method 0xfa0e70a7. // // Solidity: function setPerAccountCaps(uint128 maxPositionsPerAccount, uint128 maxCollateralsPerAccount) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) SetPerAccountCaps(maxPositionsPerAccount *big.Int, maxCollateralsPerAccount *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SetPerAccountCaps(&_PerpsMarketGoerli.TransactOpts, maxPositionsPerAccount, maxCollateralsPerAccount) +func (_PerpsMarket *PerpsMarketTransactorSession) SetPerAccountCaps(maxPositionsPerAccount *big.Int, maxCollateralsPerAccount *big.Int) (*types.Transaction, error) { + return _PerpsMarket.Contract.SetPerAccountCaps(&_PerpsMarket.TransactOpts, maxPositionsPerAccount, maxCollateralsPerAccount) } // SetSettlementStrategyEnabled is a paid mutator transaction binding the contract method 0x7f73a891. // // Solidity: function setSettlementStrategyEnabled(uint128 marketId, uint256 strategyId, bool enabled) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) SetSettlementStrategyEnabled(opts *bind.TransactOpts, marketId *big.Int, strategyId *big.Int, enabled bool) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "setSettlementStrategyEnabled", marketId, strategyId, enabled) +func (_PerpsMarket *PerpsMarketTransactor) SetSettlementStrategyEnabled(opts *bind.TransactOpts, marketId *big.Int, strategyId *big.Int, enabled bool) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "setSettlementStrategyEnabled", marketId, strategyId, enabled) } // SetSettlementStrategyEnabled is a paid mutator transaction binding the contract method 0x7f73a891. // // Solidity: function setSettlementStrategyEnabled(uint128 marketId, uint256 strategyId, bool enabled) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) SetSettlementStrategyEnabled(marketId *big.Int, strategyId *big.Int, enabled bool) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SetSettlementStrategyEnabled(&_PerpsMarketGoerli.TransactOpts, marketId, strategyId, enabled) +func (_PerpsMarket *PerpsMarketSession) SetSettlementStrategyEnabled(marketId *big.Int, strategyId *big.Int, enabled bool) (*types.Transaction, error) { + return _PerpsMarket.Contract.SetSettlementStrategyEnabled(&_PerpsMarket.TransactOpts, marketId, strategyId, enabled) } // SetSettlementStrategyEnabled is a paid mutator transaction binding the contract method 0x7f73a891. // // Solidity: function setSettlementStrategyEnabled(uint128 marketId, uint256 strategyId, bool enabled) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) SetSettlementStrategyEnabled(marketId *big.Int, strategyId *big.Int, enabled bool) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SetSettlementStrategyEnabled(&_PerpsMarketGoerli.TransactOpts, marketId, strategyId, enabled) +func (_PerpsMarket *PerpsMarketTransactorSession) SetSettlementStrategyEnabled(marketId *big.Int, strategyId *big.Int, enabled bool) (*types.Transaction, error) { + return _PerpsMarket.Contract.SetSettlementStrategyEnabled(&_PerpsMarket.TransactOpts, marketId, strategyId, enabled) } // SetSpotMarket is a paid mutator transaction binding the contract method 0x92d48a4e. // // Solidity: function setSpotMarket(address spotMarket) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) SetSpotMarket(opts *bind.TransactOpts, spotMarket common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "setSpotMarket", spotMarket) +func (_PerpsMarket *PerpsMarketTransactor) SetSpotMarket(opts *bind.TransactOpts, spotMarket common.Address) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "setSpotMarket", spotMarket) } // SetSpotMarket is a paid mutator transaction binding the contract method 0x92d48a4e. // // Solidity: function setSpotMarket(address spotMarket) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) SetSpotMarket(spotMarket common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SetSpotMarket(&_PerpsMarketGoerli.TransactOpts, spotMarket) +func (_PerpsMarket *PerpsMarketSession) SetSpotMarket(spotMarket common.Address) (*types.Transaction, error) { + return _PerpsMarket.Contract.SetSpotMarket(&_PerpsMarket.TransactOpts, spotMarket) } // SetSpotMarket is a paid mutator transaction binding the contract method 0x92d48a4e. // // Solidity: function setSpotMarket(address spotMarket) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) SetSpotMarket(spotMarket common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SetSpotMarket(&_PerpsMarketGoerli.TransactOpts, spotMarket) +func (_PerpsMarket *PerpsMarketTransactorSession) SetSpotMarket(spotMarket common.Address) (*types.Transaction, error) { + return _PerpsMarket.Contract.SetSpotMarket(&_PerpsMarket.TransactOpts, spotMarket) } // SetSynthDeductionPriority is a paid mutator transaction binding the contract method 0x6aba84a7. // // Solidity: function setSynthDeductionPriority(uint128[] newSynthDeductionPriority) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) SetSynthDeductionPriority(opts *bind.TransactOpts, newSynthDeductionPriority []*big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "setSynthDeductionPriority", newSynthDeductionPriority) +func (_PerpsMarket *PerpsMarketTransactor) SetSynthDeductionPriority(opts *bind.TransactOpts, newSynthDeductionPriority []*big.Int) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "setSynthDeductionPriority", newSynthDeductionPriority) } // SetSynthDeductionPriority is a paid mutator transaction binding the contract method 0x6aba84a7. // // Solidity: function setSynthDeductionPriority(uint128[] newSynthDeductionPriority) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) SetSynthDeductionPriority(newSynthDeductionPriority []*big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SetSynthDeductionPriority(&_PerpsMarketGoerli.TransactOpts, newSynthDeductionPriority) +func (_PerpsMarket *PerpsMarketSession) SetSynthDeductionPriority(newSynthDeductionPriority []*big.Int) (*types.Transaction, error) { + return _PerpsMarket.Contract.SetSynthDeductionPriority(&_PerpsMarket.TransactOpts, newSynthDeductionPriority) } // SetSynthDeductionPriority is a paid mutator transaction binding the contract method 0x6aba84a7. // // Solidity: function setSynthDeductionPriority(uint128[] newSynthDeductionPriority) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) SetSynthDeductionPriority(newSynthDeductionPriority []*big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SetSynthDeductionPriority(&_PerpsMarketGoerli.TransactOpts, newSynthDeductionPriority) +func (_PerpsMarket *PerpsMarketTransactorSession) SetSynthDeductionPriority(newSynthDeductionPriority []*big.Int) (*types.Transaction, error) { + return _PerpsMarket.Contract.SetSynthDeductionPriority(&_PerpsMarket.TransactOpts, newSynthDeductionPriority) } // SetSynthetix is a paid mutator transaction binding the contract method 0xfec9f9da. // // Solidity: function setSynthetix(address synthetix) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) SetSynthetix(opts *bind.TransactOpts, synthetix common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "setSynthetix", synthetix) +func (_PerpsMarket *PerpsMarketTransactor) SetSynthetix(opts *bind.TransactOpts, synthetix common.Address) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "setSynthetix", synthetix) } // SetSynthetix is a paid mutator transaction binding the contract method 0xfec9f9da. // // Solidity: function setSynthetix(address synthetix) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) SetSynthetix(synthetix common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SetSynthetix(&_PerpsMarketGoerli.TransactOpts, synthetix) +func (_PerpsMarket *PerpsMarketSession) SetSynthetix(synthetix common.Address) (*types.Transaction, error) { + return _PerpsMarket.Contract.SetSynthetix(&_PerpsMarket.TransactOpts, synthetix) } // SetSynthetix is a paid mutator transaction binding the contract method 0xfec9f9da. // // Solidity: function setSynthetix(address synthetix) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) SetSynthetix(synthetix common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SetSynthetix(&_PerpsMarketGoerli.TransactOpts, synthetix) +func (_PerpsMarket *PerpsMarketTransactorSession) SetSynthetix(synthetix common.Address) (*types.Transaction, error) { + return _PerpsMarket.Contract.SetSynthetix(&_PerpsMarket.TransactOpts, synthetix) } // SettlePythOrder is a paid mutator transaction binding the contract method 0x8a0345c6. // // Solidity: function settlePythOrder(bytes result, bytes extraData) payable returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) SettlePythOrder(opts *bind.TransactOpts, result []byte, extraData []byte) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "settlePythOrder", result, extraData) +func (_PerpsMarket *PerpsMarketTransactor) SettlePythOrder(opts *bind.TransactOpts, result []byte, extraData []byte) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "settlePythOrder", result, extraData) } // SettlePythOrder is a paid mutator transaction binding the contract method 0x8a0345c6. // // Solidity: function settlePythOrder(bytes result, bytes extraData) payable returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) SettlePythOrder(result []byte, extraData []byte) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SettlePythOrder(&_PerpsMarketGoerli.TransactOpts, result, extraData) +func (_PerpsMarket *PerpsMarketSession) SettlePythOrder(result []byte, extraData []byte) (*types.Transaction, error) { + return _PerpsMarket.Contract.SettlePythOrder(&_PerpsMarket.TransactOpts, result, extraData) } // SettlePythOrder is a paid mutator transaction binding the contract method 0x8a0345c6. // // Solidity: function settlePythOrder(bytes result, bytes extraData) payable returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) SettlePythOrder(result []byte, extraData []byte) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SettlePythOrder(&_PerpsMarketGoerli.TransactOpts, result, extraData) +func (_PerpsMarket *PerpsMarketTransactorSession) SettlePythOrder(result []byte, extraData []byte) (*types.Transaction, error) { + return _PerpsMarket.Contract.SettlePythOrder(&_PerpsMarket.TransactOpts, result, extraData) } // SimulateUpgradeTo is a paid mutator transaction binding the contract method 0xc7f62cda. // // Solidity: function simulateUpgradeTo(address newImplementation) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) SimulateUpgradeTo(opts *bind.TransactOpts, newImplementation common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "simulateUpgradeTo", newImplementation) +func (_PerpsMarket *PerpsMarketTransactor) SimulateUpgradeTo(opts *bind.TransactOpts, newImplementation common.Address) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "simulateUpgradeTo", newImplementation) } // SimulateUpgradeTo is a paid mutator transaction binding the contract method 0xc7f62cda. // // Solidity: function simulateUpgradeTo(address newImplementation) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) SimulateUpgradeTo(newImplementation common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SimulateUpgradeTo(&_PerpsMarketGoerli.TransactOpts, newImplementation) +func (_PerpsMarket *PerpsMarketSession) SimulateUpgradeTo(newImplementation common.Address) (*types.Transaction, error) { + return _PerpsMarket.Contract.SimulateUpgradeTo(&_PerpsMarket.TransactOpts, newImplementation) } // SimulateUpgradeTo is a paid mutator transaction binding the contract method 0xc7f62cda. // // Solidity: function simulateUpgradeTo(address newImplementation) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) SimulateUpgradeTo(newImplementation common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.SimulateUpgradeTo(&_PerpsMarketGoerli.TransactOpts, newImplementation) +func (_PerpsMarket *PerpsMarketTransactorSession) SimulateUpgradeTo(newImplementation common.Address) (*types.Transaction, error) { + return _PerpsMarket.Contract.SimulateUpgradeTo(&_PerpsMarket.TransactOpts, newImplementation) } // UpdatePriceData is a paid mutator transaction binding the contract method 0x2d73137b. // // Solidity: function updatePriceData(uint128 perpsMarketId, bytes32 feedId) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) UpdatePriceData(opts *bind.TransactOpts, perpsMarketId *big.Int, feedId [32]byte) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "updatePriceData", perpsMarketId, feedId) +func (_PerpsMarket *PerpsMarketTransactor) UpdatePriceData(opts *bind.TransactOpts, perpsMarketId *big.Int, feedId [32]byte) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "updatePriceData", perpsMarketId, feedId) } // UpdatePriceData is a paid mutator transaction binding the contract method 0x2d73137b. // // Solidity: function updatePriceData(uint128 perpsMarketId, bytes32 feedId) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) UpdatePriceData(perpsMarketId *big.Int, feedId [32]byte) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.UpdatePriceData(&_PerpsMarketGoerli.TransactOpts, perpsMarketId, feedId) +func (_PerpsMarket *PerpsMarketSession) UpdatePriceData(perpsMarketId *big.Int, feedId [32]byte) (*types.Transaction, error) { + return _PerpsMarket.Contract.UpdatePriceData(&_PerpsMarket.TransactOpts, perpsMarketId, feedId) } // UpdatePriceData is a paid mutator transaction binding the contract method 0x2d73137b. // // Solidity: function updatePriceData(uint128 perpsMarketId, bytes32 feedId) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) UpdatePriceData(perpsMarketId *big.Int, feedId [32]byte) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.UpdatePriceData(&_PerpsMarketGoerli.TransactOpts, perpsMarketId, feedId) +func (_PerpsMarket *PerpsMarketTransactorSession) UpdatePriceData(perpsMarketId *big.Int, feedId [32]byte) (*types.Transaction, error) { + return _PerpsMarket.Contract.UpdatePriceData(&_PerpsMarket.TransactOpts, perpsMarketId, feedId) } // UpdateReferrerShare is a paid mutator transaction binding the contract method 0x6809fb4d. // // Solidity: function updateReferrerShare(address referrer, uint256 shareRatioD18) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) UpdateReferrerShare(opts *bind.TransactOpts, referrer common.Address, shareRatioD18 *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "updateReferrerShare", referrer, shareRatioD18) +func (_PerpsMarket *PerpsMarketTransactor) UpdateReferrerShare(opts *bind.TransactOpts, referrer common.Address, shareRatioD18 *big.Int) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "updateReferrerShare", referrer, shareRatioD18) } // UpdateReferrerShare is a paid mutator transaction binding the contract method 0x6809fb4d. // // Solidity: function updateReferrerShare(address referrer, uint256 shareRatioD18) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) UpdateReferrerShare(referrer common.Address, shareRatioD18 *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.UpdateReferrerShare(&_PerpsMarketGoerli.TransactOpts, referrer, shareRatioD18) +func (_PerpsMarket *PerpsMarketSession) UpdateReferrerShare(referrer common.Address, shareRatioD18 *big.Int) (*types.Transaction, error) { + return _PerpsMarket.Contract.UpdateReferrerShare(&_PerpsMarket.TransactOpts, referrer, shareRatioD18) } // UpdateReferrerShare is a paid mutator transaction binding the contract method 0x6809fb4d. // // Solidity: function updateReferrerShare(address referrer, uint256 shareRatioD18) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) UpdateReferrerShare(referrer common.Address, shareRatioD18 *big.Int) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.UpdateReferrerShare(&_PerpsMarketGoerli.TransactOpts, referrer, shareRatioD18) +func (_PerpsMarket *PerpsMarketTransactorSession) UpdateReferrerShare(referrer common.Address, shareRatioD18 *big.Int) (*types.Transaction, error) { + return _PerpsMarket.Contract.UpdateReferrerShare(&_PerpsMarket.TransactOpts, referrer, shareRatioD18) } // UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6. // // Solidity: function upgradeTo(address newImplementation) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactor) UpgradeTo(opts *bind.TransactOpts, newImplementation common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.contract.Transact(opts, "upgradeTo", newImplementation) +func (_PerpsMarket *PerpsMarketTransactor) UpgradeTo(opts *bind.TransactOpts, newImplementation common.Address) (*types.Transaction, error) { + return _PerpsMarket.contract.Transact(opts, "upgradeTo", newImplementation) } // UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6. // // Solidity: function upgradeTo(address newImplementation) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.UpgradeTo(&_PerpsMarketGoerli.TransactOpts, newImplementation) +func (_PerpsMarket *PerpsMarketSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error) { + return _PerpsMarket.Contract.UpgradeTo(&_PerpsMarket.TransactOpts, newImplementation) } // UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6. // // Solidity: function upgradeTo(address newImplementation) returns() -func (_PerpsMarketGoerli *PerpsMarketGoerliTransactorSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error) { - return _PerpsMarketGoerli.Contract.UpgradeTo(&_PerpsMarketGoerli.TransactOpts, newImplementation) +func (_PerpsMarket *PerpsMarketTransactorSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error) { + return _PerpsMarket.Contract.UpgradeTo(&_PerpsMarket.TransactOpts, newImplementation) } -// PerpsMarketGoerliAccountCreatedIterator is returned from FilterAccountCreated and is used to iterate over the raw logs and unpacked data for AccountCreated events raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliAccountCreatedIterator struct { - Event *PerpsMarketGoerliAccountCreated // Event containing the contract specifics and raw log +// PerpsMarketAccountCreatedIterator is returned from FilterAccountCreated and is used to iterate over the raw logs and unpacked data for AccountCreated events raised by the PerpsMarket contract. +type PerpsMarketAccountCreatedIterator struct { + Event *PerpsMarketAccountCreated // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -3168,7 +3144,7 @@ type PerpsMarketGoerliAccountCreatedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *PerpsMarketGoerliAccountCreatedIterator) Next() bool { +func (it *PerpsMarketAccountCreatedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -3177,7 +3153,7 @@ func (it *PerpsMarketGoerliAccountCreatedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliAccountCreated) + it.Event = new(PerpsMarketAccountCreated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -3192,7 +3168,7 @@ func (it *PerpsMarketGoerliAccountCreatedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliAccountCreated) + it.Event = new(PerpsMarketAccountCreated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -3208,19 +3184,19 @@ func (it *PerpsMarketGoerliAccountCreatedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *PerpsMarketGoerliAccountCreatedIterator) Error() error { +func (it *PerpsMarketAccountCreatedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *PerpsMarketGoerliAccountCreatedIterator) Close() error { +func (it *PerpsMarketAccountCreatedIterator) Close() error { it.sub.Unsubscribe() return nil } -// PerpsMarketGoerliAccountCreated represents a AccountCreated event raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliAccountCreated struct { +// PerpsMarketAccountCreated represents a AccountCreated event raised by the PerpsMarket contract. +type PerpsMarketAccountCreated struct { AccountId *big.Int Owner common.Address Raw types.Log // Blockchain specific contextual infos @@ -3229,7 +3205,7 @@ type PerpsMarketGoerliAccountCreated struct { // FilterAccountCreated is a free log retrieval operation binding the contract event 0xa9e04d307e860938fa63307df8b8090e365276e59fcca12ed55656c25e538019. // // Solidity: event AccountCreated(uint128 indexed accountId, address indexed owner) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterAccountCreated(opts *bind.FilterOpts, accountId []*big.Int, owner []common.Address) (*PerpsMarketGoerliAccountCreatedIterator, error) { +func (_PerpsMarket *PerpsMarketFilterer) FilterAccountCreated(opts *bind.FilterOpts, accountId []*big.Int, owner []common.Address) (*PerpsMarketAccountCreatedIterator, error) { var accountIdRule []interface{} for _, accountIdItem := range accountId { @@ -3240,17 +3216,17 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterAccountCreated(opts * ownerRule = append(ownerRule, ownerItem) } - logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "AccountCreated", accountIdRule, ownerRule) + logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "AccountCreated", accountIdRule, ownerRule) if err != nil { return nil, err } - return &PerpsMarketGoerliAccountCreatedIterator{contract: _PerpsMarketGoerli.contract, event: "AccountCreated", logs: logs, sub: sub}, nil + return &PerpsMarketAccountCreatedIterator{contract: _PerpsMarket.contract, event: "AccountCreated", logs: logs, sub: sub}, nil } // WatchAccountCreated is a free log subscription operation binding the contract event 0xa9e04d307e860938fa63307df8b8090e365276e59fcca12ed55656c25e538019. // // Solidity: event AccountCreated(uint128 indexed accountId, address indexed owner) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchAccountCreated(opts *bind.WatchOpts, sink chan<- *PerpsMarketGoerliAccountCreated, accountId []*big.Int, owner []common.Address) (event.Subscription, error) { +func (_PerpsMarket *PerpsMarketFilterer) WatchAccountCreated(opts *bind.WatchOpts, sink chan<- *PerpsMarketAccountCreated, accountId []*big.Int, owner []common.Address) (event.Subscription, error) { var accountIdRule []interface{} for _, accountIdItem := range accountId { @@ -3261,7 +3237,7 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchAccountCreated(opts *b ownerRule = append(ownerRule, ownerItem) } - logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "AccountCreated") + logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "AccountCreated", accountIdRule, ownerRule) if err != nil { return nil, err } @@ -3271,8 +3247,8 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchAccountCreated(opts *b select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(PerpsMarketGoerliAccountCreated) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "AccountCreated", log); err != nil { + event := new(PerpsMarketAccountCreated) + if err := _PerpsMarket.contract.UnpackLog(event, "AccountCreated", log); err != nil { return err } event.Raw = log @@ -3296,18 +3272,18 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchAccountCreated(opts *b // ParseAccountCreated is a log parse operation binding the contract event 0xa9e04d307e860938fa63307df8b8090e365276e59fcca12ed55656c25e538019. // // Solidity: event AccountCreated(uint128 indexed accountId, address indexed owner) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseAccountCreated(log types.Log) (*PerpsMarketGoerliAccountCreated, error) { - event := new(PerpsMarketGoerliAccountCreated) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "AccountCreated", log); err != nil { +func (_PerpsMarket *PerpsMarketFilterer) ParseAccountCreated(log types.Log) (*PerpsMarketAccountCreated, error) { + event := new(PerpsMarketAccountCreated) + if err := _PerpsMarket.contract.UnpackLog(event, "AccountCreated", log); err != nil { return nil, err } event.Raw = log return event, nil } -// PerpsMarketGoerliAccountLiquidatedIterator is returned from FilterAccountLiquidated and is used to iterate over the raw logs and unpacked data for AccountLiquidated events raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliAccountLiquidatedIterator struct { - Event *PerpsMarketGoerliAccountLiquidated // Event containing the contract specifics and raw log +// PerpsMarketAccountLiquidatedIterator is returned from FilterAccountLiquidated and is used to iterate over the raw logs and unpacked data for AccountLiquidated events raised by the PerpsMarket contract. +type PerpsMarketAccountLiquidatedIterator struct { + Event *PerpsMarketAccountLiquidated // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -3321,7 +3297,7 @@ type PerpsMarketGoerliAccountLiquidatedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *PerpsMarketGoerliAccountLiquidatedIterator) Next() bool { +func (it *PerpsMarketAccountLiquidatedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -3330,7 +3306,7 @@ func (it *PerpsMarketGoerliAccountLiquidatedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliAccountLiquidated) + it.Event = new(PerpsMarketAccountLiquidated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -3345,7 +3321,7 @@ func (it *PerpsMarketGoerliAccountLiquidatedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliAccountLiquidated) + it.Event = new(PerpsMarketAccountLiquidated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -3361,19 +3337,19 @@ func (it *PerpsMarketGoerliAccountLiquidatedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *PerpsMarketGoerliAccountLiquidatedIterator) Error() error { +func (it *PerpsMarketAccountLiquidatedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *PerpsMarketGoerliAccountLiquidatedIterator) Close() error { +func (it *PerpsMarketAccountLiquidatedIterator) Close() error { it.sub.Unsubscribe() return nil } -// PerpsMarketGoerliAccountLiquidated represents a AccountLiquidated event raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliAccountLiquidated struct { +// PerpsMarketAccountLiquidated represents a AccountLiquidated event raised by the PerpsMarket contract. +type PerpsMarketAccountLiquidated struct { AccountId *big.Int Reward *big.Int FullLiquidation bool @@ -3383,31 +3359,31 @@ type PerpsMarketGoerliAccountLiquidated struct { // FilterAccountLiquidated is a free log retrieval operation binding the contract event 0x926f56b0a80cc150ad77b59cc60bc53cb907eab441d204924ec67b40ae64f5f5. // // Solidity: event AccountLiquidated(uint128 indexed accountId, uint256 reward, bool fullLiquidation) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterAccountLiquidated(opts *bind.FilterOpts, accountId []*big.Int) (*PerpsMarketGoerliAccountLiquidatedIterator, error) { +func (_PerpsMarket *PerpsMarketFilterer) FilterAccountLiquidated(opts *bind.FilterOpts, accountId []*big.Int) (*PerpsMarketAccountLiquidatedIterator, error) { var accountIdRule []interface{} for _, accountIdItem := range accountId { accountIdRule = append(accountIdRule, accountIdItem) } - logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "AccountLiquidated", accountIdRule) + logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "AccountLiquidated", accountIdRule) if err != nil { return nil, err } - return &PerpsMarketGoerliAccountLiquidatedIterator{contract: _PerpsMarketGoerli.contract, event: "AccountLiquidated", logs: logs, sub: sub}, nil + return &PerpsMarketAccountLiquidatedIterator{contract: _PerpsMarket.contract, event: "AccountLiquidated", logs: logs, sub: sub}, nil } // WatchAccountLiquidated is a free log subscription operation binding the contract event 0x926f56b0a80cc150ad77b59cc60bc53cb907eab441d204924ec67b40ae64f5f5. // // Solidity: event AccountLiquidated(uint128 indexed accountId, uint256 reward, bool fullLiquidation) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchAccountLiquidated(opts *bind.WatchOpts, sink chan<- *PerpsMarketGoerliAccountLiquidated, accountId []*big.Int) (event.Subscription, error) { +func (_PerpsMarket *PerpsMarketFilterer) WatchAccountLiquidated(opts *bind.WatchOpts, sink chan<- *PerpsMarketAccountLiquidated, accountId []*big.Int) (event.Subscription, error) { var accountIdRule []interface{} for _, accountIdItem := range accountId { accountIdRule = append(accountIdRule, accountIdItem) } - logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "AccountLiquidated") + logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "AccountLiquidated", accountIdRule) if err != nil { return nil, err } @@ -3417,8 +3393,8 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchAccountLiquidated(opts select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(PerpsMarketGoerliAccountLiquidated) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "AccountLiquidated", log); err != nil { + event := new(PerpsMarketAccountLiquidated) + if err := _PerpsMarket.contract.UnpackLog(event, "AccountLiquidated", log); err != nil { return err } event.Raw = log @@ -3442,18 +3418,18 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchAccountLiquidated(opts // ParseAccountLiquidated is a log parse operation binding the contract event 0x926f56b0a80cc150ad77b59cc60bc53cb907eab441d204924ec67b40ae64f5f5. // // Solidity: event AccountLiquidated(uint128 indexed accountId, uint256 reward, bool fullLiquidation) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseAccountLiquidated(log types.Log) (*PerpsMarketGoerliAccountLiquidated, error) { - event := new(PerpsMarketGoerliAccountLiquidated) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "AccountLiquidated", log); err != nil { +func (_PerpsMarket *PerpsMarketFilterer) ParseAccountLiquidated(log types.Log) (*PerpsMarketAccountLiquidated, error) { + event := new(PerpsMarketAccountLiquidated) + if err := _PerpsMarket.contract.UnpackLog(event, "AccountLiquidated", log); err != nil { return nil, err } event.Raw = log return event, nil } -// PerpsMarketGoerliAssociatedSystemSetIterator is returned from FilterAssociatedSystemSet and is used to iterate over the raw logs and unpacked data for AssociatedSystemSet events raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliAssociatedSystemSetIterator struct { - Event *PerpsMarketGoerliAssociatedSystemSet // Event containing the contract specifics and raw log +// PerpsMarketAssociatedSystemSetIterator is returned from FilterAssociatedSystemSet and is used to iterate over the raw logs and unpacked data for AssociatedSystemSet events raised by the PerpsMarket contract. +type PerpsMarketAssociatedSystemSetIterator struct { + Event *PerpsMarketAssociatedSystemSet // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -3467,7 +3443,7 @@ type PerpsMarketGoerliAssociatedSystemSetIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *PerpsMarketGoerliAssociatedSystemSetIterator) Next() bool { +func (it *PerpsMarketAssociatedSystemSetIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -3476,7 +3452,7 @@ func (it *PerpsMarketGoerliAssociatedSystemSetIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliAssociatedSystemSet) + it.Event = new(PerpsMarketAssociatedSystemSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -3491,7 +3467,7 @@ func (it *PerpsMarketGoerliAssociatedSystemSetIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliAssociatedSystemSet) + it.Event = new(PerpsMarketAssociatedSystemSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -3507,19 +3483,19 @@ func (it *PerpsMarketGoerliAssociatedSystemSetIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *PerpsMarketGoerliAssociatedSystemSetIterator) Error() error { +func (it *PerpsMarketAssociatedSystemSetIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *PerpsMarketGoerliAssociatedSystemSetIterator) Close() error { +func (it *PerpsMarketAssociatedSystemSetIterator) Close() error { it.sub.Unsubscribe() return nil } -// PerpsMarketGoerliAssociatedSystemSet represents a AssociatedSystemSet event raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliAssociatedSystemSet struct { +// PerpsMarketAssociatedSystemSet represents a AssociatedSystemSet event raised by the PerpsMarket contract. +type PerpsMarketAssociatedSystemSet struct { Kind [32]byte Id [32]byte Proxy common.Address @@ -3530,7 +3506,7 @@ type PerpsMarketGoerliAssociatedSystemSet struct { // FilterAssociatedSystemSet is a free log retrieval operation binding the contract event 0xc8551a5a03a7b06d5d20159b3b8839429a7aefab4bf3d020f1b65fa903ccb3d2. // // Solidity: event AssociatedSystemSet(bytes32 indexed kind, bytes32 indexed id, address proxy, address impl) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterAssociatedSystemSet(opts *bind.FilterOpts, kind [][32]byte, id [][32]byte) (*PerpsMarketGoerliAssociatedSystemSetIterator, error) { +func (_PerpsMarket *PerpsMarketFilterer) FilterAssociatedSystemSet(opts *bind.FilterOpts, kind [][32]byte, id [][32]byte) (*PerpsMarketAssociatedSystemSetIterator, error) { var kindRule []interface{} for _, kindItem := range kind { @@ -3541,17 +3517,17 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterAssociatedSystemSet(o idRule = append(idRule, idItem) } - logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "AssociatedSystemSet", kindRule, idRule) + logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "AssociatedSystemSet", kindRule, idRule) if err != nil { return nil, err } - return &PerpsMarketGoerliAssociatedSystemSetIterator{contract: _PerpsMarketGoerli.contract, event: "AssociatedSystemSet", logs: logs, sub: sub}, nil + return &PerpsMarketAssociatedSystemSetIterator{contract: _PerpsMarket.contract, event: "AssociatedSystemSet", logs: logs, sub: sub}, nil } // WatchAssociatedSystemSet is a free log subscription operation binding the contract event 0xc8551a5a03a7b06d5d20159b3b8839429a7aefab4bf3d020f1b65fa903ccb3d2. // // Solidity: event AssociatedSystemSet(bytes32 indexed kind, bytes32 indexed id, address proxy, address impl) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchAssociatedSystemSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketGoerliAssociatedSystemSet, kind [][32]byte, id [][32]byte) (event.Subscription, error) { +func (_PerpsMarket *PerpsMarketFilterer) WatchAssociatedSystemSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketAssociatedSystemSet, kind [][32]byte, id [][32]byte) (event.Subscription, error) { var kindRule []interface{} for _, kindItem := range kind { @@ -3562,7 +3538,7 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchAssociatedSystemSet(op idRule = append(idRule, idItem) } - logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "AssociatedSystemSet", kindRule, idRule) + logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "AssociatedSystemSet", kindRule, idRule) if err != nil { return nil, err } @@ -3572,8 +3548,8 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchAssociatedSystemSet(op select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(PerpsMarketGoerliAssociatedSystemSet) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "AssociatedSystemSet", log); err != nil { + event := new(PerpsMarketAssociatedSystemSet) + if err := _PerpsMarket.contract.UnpackLog(event, "AssociatedSystemSet", log); err != nil { return err } event.Raw = log @@ -3597,18 +3573,18 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchAssociatedSystemSet(op // ParseAssociatedSystemSet is a log parse operation binding the contract event 0xc8551a5a03a7b06d5d20159b3b8839429a7aefab4bf3d020f1b65fa903ccb3d2. // // Solidity: event AssociatedSystemSet(bytes32 indexed kind, bytes32 indexed id, address proxy, address impl) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseAssociatedSystemSet(log types.Log) (*PerpsMarketGoerliAssociatedSystemSet, error) { - event := new(PerpsMarketGoerliAssociatedSystemSet) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "AssociatedSystemSet", log); err != nil { +func (_PerpsMarket *PerpsMarketFilterer) ParseAssociatedSystemSet(log types.Log) (*PerpsMarketAssociatedSystemSet, error) { + event := new(PerpsMarketAssociatedSystemSet) + if err := _PerpsMarket.contract.UnpackLog(event, "AssociatedSystemSet", log); err != nil { return nil, err } event.Raw = log return event, nil } -// PerpsMarketGoerliCollateralModifiedIterator is returned from FilterCollateralModified and is used to iterate over the raw logs and unpacked data for CollateralModified events raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliCollateralModifiedIterator struct { - Event *PerpsMarketGoerliCollateralModified // Event containing the contract specifics and raw log +// PerpsMarketCollateralModifiedIterator is returned from FilterCollateralModified and is used to iterate over the raw logs and unpacked data for CollateralModified events raised by the PerpsMarket contract. +type PerpsMarketCollateralModifiedIterator struct { + Event *PerpsMarketCollateralModified // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -3622,7 +3598,7 @@ type PerpsMarketGoerliCollateralModifiedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *PerpsMarketGoerliCollateralModifiedIterator) Next() bool { +func (it *PerpsMarketCollateralModifiedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -3631,7 +3607,7 @@ func (it *PerpsMarketGoerliCollateralModifiedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliCollateralModified) + it.Event = new(PerpsMarketCollateralModified) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -3646,7 +3622,7 @@ func (it *PerpsMarketGoerliCollateralModifiedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliCollateralModified) + it.Event = new(PerpsMarketCollateralModified) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -3662,19 +3638,19 @@ func (it *PerpsMarketGoerliCollateralModifiedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *PerpsMarketGoerliCollateralModifiedIterator) Error() error { +func (it *PerpsMarketCollateralModifiedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *PerpsMarketGoerliCollateralModifiedIterator) Close() error { +func (it *PerpsMarketCollateralModifiedIterator) Close() error { it.sub.Unsubscribe() return nil } -// PerpsMarketGoerliCollateralModified represents a CollateralModified event raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliCollateralModified struct { +// PerpsMarketCollateralModified represents a CollateralModified event raised by the PerpsMarket contract. +type PerpsMarketCollateralModified struct { AccountId *big.Int SynthMarketId *big.Int AmountDelta *big.Int @@ -3685,7 +3661,7 @@ type PerpsMarketGoerliCollateralModified struct { // FilterCollateralModified is a free log retrieval operation binding the contract event 0x2e8360c2f3a6fc1a15aefdd0a0922bea3c898cb90d38c3a97354e7c013116064. // // Solidity: event CollateralModified(uint128 indexed accountId, uint128 indexed synthMarketId, int256 amountDelta, address indexed sender) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterCollateralModified(opts *bind.FilterOpts, accountId []*big.Int, synthMarketId []*big.Int, sender []common.Address) (*PerpsMarketGoerliCollateralModifiedIterator, error) { +func (_PerpsMarket *PerpsMarketFilterer) FilterCollateralModified(opts *bind.FilterOpts, accountId []*big.Int, synthMarketId []*big.Int, sender []common.Address) (*PerpsMarketCollateralModifiedIterator, error) { var accountIdRule []interface{} for _, accountIdItem := range accountId { @@ -3701,17 +3677,17 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterCollateralModified(op senderRule = append(senderRule, senderItem) } - logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "CollateralModified", accountIdRule, synthMarketIdRule, senderRule) + logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "CollateralModified", accountIdRule, synthMarketIdRule, senderRule) if err != nil { return nil, err } - return &PerpsMarketGoerliCollateralModifiedIterator{contract: _PerpsMarketGoerli.contract, event: "CollateralModified", logs: logs, sub: sub}, nil + return &PerpsMarketCollateralModifiedIterator{contract: _PerpsMarket.contract, event: "CollateralModified", logs: logs, sub: sub}, nil } // WatchCollateralModified is a free log subscription operation binding the contract event 0x2e8360c2f3a6fc1a15aefdd0a0922bea3c898cb90d38c3a97354e7c013116064. // // Solidity: event CollateralModified(uint128 indexed accountId, uint128 indexed synthMarketId, int256 amountDelta, address indexed sender) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchCollateralModified(opts *bind.WatchOpts, sink chan<- *PerpsMarketGoerliCollateralModified, accountId []*big.Int, synthMarketId []*big.Int, sender []common.Address) (event.Subscription, error) { +func (_PerpsMarket *PerpsMarketFilterer) WatchCollateralModified(opts *bind.WatchOpts, sink chan<- *PerpsMarketCollateralModified, accountId []*big.Int, synthMarketId []*big.Int, sender []common.Address) (event.Subscription, error) { var accountIdRule []interface{} for _, accountIdItem := range accountId { @@ -3727,7 +3703,7 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchCollateralModified(opt senderRule = append(senderRule, senderItem) } - logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "CollateralModified", accountIdRule, synthMarketIdRule, senderRule) + logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "CollateralModified", accountIdRule, synthMarketIdRule, senderRule) if err != nil { return nil, err } @@ -3737,8 +3713,8 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchCollateralModified(opt select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(PerpsMarketGoerliCollateralModified) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "CollateralModified", log); err != nil { + event := new(PerpsMarketCollateralModified) + if err := _PerpsMarket.contract.UnpackLog(event, "CollateralModified", log); err != nil { return err } event.Raw = log @@ -3762,18 +3738,18 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchCollateralModified(opt // ParseCollateralModified is a log parse operation binding the contract event 0x2e8360c2f3a6fc1a15aefdd0a0922bea3c898cb90d38c3a97354e7c013116064. // // Solidity: event CollateralModified(uint128 indexed accountId, uint128 indexed synthMarketId, int256 amountDelta, address indexed sender) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseCollateralModified(log types.Log) (*PerpsMarketGoerliCollateralModified, error) { - event := new(PerpsMarketGoerliCollateralModified) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "CollateralModified", log); err != nil { +func (_PerpsMarket *PerpsMarketFilterer) ParseCollateralModified(log types.Log) (*PerpsMarketCollateralModified, error) { + event := new(PerpsMarketCollateralModified) + if err := _PerpsMarket.contract.UnpackLog(event, "CollateralModified", log); err != nil { return nil, err } event.Raw = log return event, nil } -// PerpsMarketGoerliFactoryInitializedIterator is returned from FilterFactoryInitialized and is used to iterate over the raw logs and unpacked data for FactoryInitialized events raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliFactoryInitializedIterator struct { - Event *PerpsMarketGoerliFactoryInitialized // Event containing the contract specifics and raw log +// PerpsMarketFactoryInitializedIterator is returned from FilterFactoryInitialized and is used to iterate over the raw logs and unpacked data for FactoryInitialized events raised by the PerpsMarket contract. +type PerpsMarketFactoryInitializedIterator struct { + Event *PerpsMarketFactoryInitialized // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -3787,7 +3763,7 @@ type PerpsMarketGoerliFactoryInitializedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *PerpsMarketGoerliFactoryInitializedIterator) Next() bool { +func (it *PerpsMarketFactoryInitializedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -3796,7 +3772,7 @@ func (it *PerpsMarketGoerliFactoryInitializedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliFactoryInitialized) + it.Event = new(PerpsMarketFactoryInitialized) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -3811,7 +3787,7 @@ func (it *PerpsMarketGoerliFactoryInitializedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliFactoryInitialized) + it.Event = new(PerpsMarketFactoryInitialized) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -3827,19 +3803,19 @@ func (it *PerpsMarketGoerliFactoryInitializedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *PerpsMarketGoerliFactoryInitializedIterator) Error() error { +func (it *PerpsMarketFactoryInitializedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *PerpsMarketGoerliFactoryInitializedIterator) Close() error { +func (it *PerpsMarketFactoryInitializedIterator) Close() error { it.sub.Unsubscribe() return nil } -// PerpsMarketGoerliFactoryInitialized represents a FactoryInitialized event raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliFactoryInitialized struct { +// PerpsMarketFactoryInitialized represents a FactoryInitialized event raised by the PerpsMarket contract. +type PerpsMarketFactoryInitialized struct { GlobalPerpsMarketId *big.Int Raw types.Log // Blockchain specific contextual infos } @@ -3847,21 +3823,21 @@ type PerpsMarketGoerliFactoryInitialized struct { // FilterFactoryInitialized is a free log retrieval operation binding the contract event 0xb3240229b07e26f2f02e69dda85ede86e162ccbc6d10e6aade28931e7f533339. // // Solidity: event FactoryInitialized(uint128 globalPerpsMarketId) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterFactoryInitialized(opts *bind.FilterOpts) (*PerpsMarketGoerliFactoryInitializedIterator, error) { +func (_PerpsMarket *PerpsMarketFilterer) FilterFactoryInitialized(opts *bind.FilterOpts) (*PerpsMarketFactoryInitializedIterator, error) { - logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "FactoryInitialized") + logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "FactoryInitialized") if err != nil { return nil, err } - return &PerpsMarketGoerliFactoryInitializedIterator{contract: _PerpsMarketGoerli.contract, event: "FactoryInitialized", logs: logs, sub: sub}, nil + return &PerpsMarketFactoryInitializedIterator{contract: _PerpsMarket.contract, event: "FactoryInitialized", logs: logs, sub: sub}, nil } // WatchFactoryInitialized is a free log subscription operation binding the contract event 0xb3240229b07e26f2f02e69dda85ede86e162ccbc6d10e6aade28931e7f533339. // // Solidity: event FactoryInitialized(uint128 globalPerpsMarketId) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchFactoryInitialized(opts *bind.WatchOpts, sink chan<- *PerpsMarketGoerliFactoryInitialized) (event.Subscription, error) { +func (_PerpsMarket *PerpsMarketFilterer) WatchFactoryInitialized(opts *bind.WatchOpts, sink chan<- *PerpsMarketFactoryInitialized) (event.Subscription, error) { - logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "FactoryInitialized") + logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "FactoryInitialized") if err != nil { return nil, err } @@ -3871,8 +3847,8 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchFactoryInitialized(opt select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(PerpsMarketGoerliFactoryInitialized) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "FactoryInitialized", log); err != nil { + event := new(PerpsMarketFactoryInitialized) + if err := _PerpsMarket.contract.UnpackLog(event, "FactoryInitialized", log); err != nil { return err } event.Raw = log @@ -3896,18 +3872,18 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchFactoryInitialized(opt // ParseFactoryInitialized is a log parse operation binding the contract event 0xb3240229b07e26f2f02e69dda85ede86e162ccbc6d10e6aade28931e7f533339. // // Solidity: event FactoryInitialized(uint128 globalPerpsMarketId) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseFactoryInitialized(log types.Log) (*PerpsMarketGoerliFactoryInitialized, error) { - event := new(PerpsMarketGoerliFactoryInitialized) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "FactoryInitialized", log); err != nil { +func (_PerpsMarket *PerpsMarketFilterer) ParseFactoryInitialized(log types.Log) (*PerpsMarketFactoryInitialized, error) { + event := new(PerpsMarketFactoryInitialized) + if err := _PerpsMarket.contract.UnpackLog(event, "FactoryInitialized", log); err != nil { return nil, err } event.Raw = log return event, nil } -// PerpsMarketGoerliFeatureFlagAllowAllSetIterator is returned from FilterFeatureFlagAllowAllSet and is used to iterate over the raw logs and unpacked data for FeatureFlagAllowAllSet events raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliFeatureFlagAllowAllSetIterator struct { - Event *PerpsMarketGoerliFeatureFlagAllowAllSet // Event containing the contract specifics and raw log +// PerpsMarketFeatureFlagAllowAllSetIterator is returned from FilterFeatureFlagAllowAllSet and is used to iterate over the raw logs and unpacked data for FeatureFlagAllowAllSet events raised by the PerpsMarket contract. +type PerpsMarketFeatureFlagAllowAllSetIterator struct { + Event *PerpsMarketFeatureFlagAllowAllSet // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -3921,7 +3897,7 @@ type PerpsMarketGoerliFeatureFlagAllowAllSetIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *PerpsMarketGoerliFeatureFlagAllowAllSetIterator) Next() bool { +func (it *PerpsMarketFeatureFlagAllowAllSetIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -3930,7 +3906,7 @@ func (it *PerpsMarketGoerliFeatureFlagAllowAllSetIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliFeatureFlagAllowAllSet) + it.Event = new(PerpsMarketFeatureFlagAllowAllSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -3945,7 +3921,7 @@ func (it *PerpsMarketGoerliFeatureFlagAllowAllSetIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliFeatureFlagAllowAllSet) + it.Event = new(PerpsMarketFeatureFlagAllowAllSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -3961,19 +3937,19 @@ func (it *PerpsMarketGoerliFeatureFlagAllowAllSetIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *PerpsMarketGoerliFeatureFlagAllowAllSetIterator) Error() error { +func (it *PerpsMarketFeatureFlagAllowAllSetIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *PerpsMarketGoerliFeatureFlagAllowAllSetIterator) Close() error { +func (it *PerpsMarketFeatureFlagAllowAllSetIterator) Close() error { it.sub.Unsubscribe() return nil } -// PerpsMarketGoerliFeatureFlagAllowAllSet represents a FeatureFlagAllowAllSet event raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliFeatureFlagAllowAllSet struct { +// PerpsMarketFeatureFlagAllowAllSet represents a FeatureFlagAllowAllSet event raised by the PerpsMarket contract. +type PerpsMarketFeatureFlagAllowAllSet struct { Feature [32]byte AllowAll bool Raw types.Log // Blockchain specific contextual infos @@ -3982,31 +3958,31 @@ type PerpsMarketGoerliFeatureFlagAllowAllSet struct { // FilterFeatureFlagAllowAllSet is a free log retrieval operation binding the contract event 0xa806035d8c8de7cd43725250d3fbf9ee7abe3b99ffb892897913d8a21721121d. // // Solidity: event FeatureFlagAllowAllSet(bytes32 indexed feature, bool allowAll) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterFeatureFlagAllowAllSet(opts *bind.FilterOpts, feature [][32]byte) (*PerpsMarketGoerliFeatureFlagAllowAllSetIterator, error) { +func (_PerpsMarket *PerpsMarketFilterer) FilterFeatureFlagAllowAllSet(opts *bind.FilterOpts, feature [][32]byte) (*PerpsMarketFeatureFlagAllowAllSetIterator, error) { var featureRule []interface{} for _, featureItem := range feature { featureRule = append(featureRule, featureItem) } - logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "FeatureFlagAllowAllSet", featureRule) + logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "FeatureFlagAllowAllSet", featureRule) if err != nil { return nil, err } - return &PerpsMarketGoerliFeatureFlagAllowAllSetIterator{contract: _PerpsMarketGoerli.contract, event: "FeatureFlagAllowAllSet", logs: logs, sub: sub}, nil + return &PerpsMarketFeatureFlagAllowAllSetIterator{contract: _PerpsMarket.contract, event: "FeatureFlagAllowAllSet", logs: logs, sub: sub}, nil } // WatchFeatureFlagAllowAllSet is a free log subscription operation binding the contract event 0xa806035d8c8de7cd43725250d3fbf9ee7abe3b99ffb892897913d8a21721121d. // // Solidity: event FeatureFlagAllowAllSet(bytes32 indexed feature, bool allowAll) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchFeatureFlagAllowAllSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketGoerliFeatureFlagAllowAllSet, feature [][32]byte) (event.Subscription, error) { +func (_PerpsMarket *PerpsMarketFilterer) WatchFeatureFlagAllowAllSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketFeatureFlagAllowAllSet, feature [][32]byte) (event.Subscription, error) { var featureRule []interface{} for _, featureItem := range feature { featureRule = append(featureRule, featureItem) } - logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "FeatureFlagAllowAllSet", featureRule) + logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "FeatureFlagAllowAllSet", featureRule) if err != nil { return nil, err } @@ -4016,8 +3992,8 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchFeatureFlagAllowAllSet select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(PerpsMarketGoerliFeatureFlagAllowAllSet) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "FeatureFlagAllowAllSet", log); err != nil { + event := new(PerpsMarketFeatureFlagAllowAllSet) + if err := _PerpsMarket.contract.UnpackLog(event, "FeatureFlagAllowAllSet", log); err != nil { return err } event.Raw = log @@ -4041,18 +4017,18 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchFeatureFlagAllowAllSet // ParseFeatureFlagAllowAllSet is a log parse operation binding the contract event 0xa806035d8c8de7cd43725250d3fbf9ee7abe3b99ffb892897913d8a21721121d. // // Solidity: event FeatureFlagAllowAllSet(bytes32 indexed feature, bool allowAll) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseFeatureFlagAllowAllSet(log types.Log) (*PerpsMarketGoerliFeatureFlagAllowAllSet, error) { - event := new(PerpsMarketGoerliFeatureFlagAllowAllSet) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "FeatureFlagAllowAllSet", log); err != nil { +func (_PerpsMarket *PerpsMarketFilterer) ParseFeatureFlagAllowAllSet(log types.Log) (*PerpsMarketFeatureFlagAllowAllSet, error) { + event := new(PerpsMarketFeatureFlagAllowAllSet) + if err := _PerpsMarket.contract.UnpackLog(event, "FeatureFlagAllowAllSet", log); err != nil { return nil, err } event.Raw = log return event, nil } -// PerpsMarketGoerliFeatureFlagAllowlistAddedIterator is returned from FilterFeatureFlagAllowlistAdded and is used to iterate over the raw logs and unpacked data for FeatureFlagAllowlistAdded events raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliFeatureFlagAllowlistAddedIterator struct { - Event *PerpsMarketGoerliFeatureFlagAllowlistAdded // Event containing the contract specifics and raw log +// PerpsMarketFeatureFlagAllowlistAddedIterator is returned from FilterFeatureFlagAllowlistAdded and is used to iterate over the raw logs and unpacked data for FeatureFlagAllowlistAdded events raised by the PerpsMarket contract. +type PerpsMarketFeatureFlagAllowlistAddedIterator struct { + Event *PerpsMarketFeatureFlagAllowlistAdded // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -4066,7 +4042,7 @@ type PerpsMarketGoerliFeatureFlagAllowlistAddedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *PerpsMarketGoerliFeatureFlagAllowlistAddedIterator) Next() bool { +func (it *PerpsMarketFeatureFlagAllowlistAddedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -4075,7 +4051,7 @@ func (it *PerpsMarketGoerliFeatureFlagAllowlistAddedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliFeatureFlagAllowlistAdded) + it.Event = new(PerpsMarketFeatureFlagAllowlistAdded) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -4090,7 +4066,7 @@ func (it *PerpsMarketGoerliFeatureFlagAllowlistAddedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliFeatureFlagAllowlistAdded) + it.Event = new(PerpsMarketFeatureFlagAllowlistAdded) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -4106,19 +4082,19 @@ func (it *PerpsMarketGoerliFeatureFlagAllowlistAddedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *PerpsMarketGoerliFeatureFlagAllowlistAddedIterator) Error() error { +func (it *PerpsMarketFeatureFlagAllowlistAddedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *PerpsMarketGoerliFeatureFlagAllowlistAddedIterator) Close() error { +func (it *PerpsMarketFeatureFlagAllowlistAddedIterator) Close() error { it.sub.Unsubscribe() return nil } -// PerpsMarketGoerliFeatureFlagAllowlistAdded represents a FeatureFlagAllowlistAdded event raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliFeatureFlagAllowlistAdded struct { +// PerpsMarketFeatureFlagAllowlistAdded represents a FeatureFlagAllowlistAdded event raised by the PerpsMarket contract. +type PerpsMarketFeatureFlagAllowlistAdded struct { Feature [32]byte Account common.Address Raw types.Log // Blockchain specific contextual infos @@ -4127,31 +4103,31 @@ type PerpsMarketGoerliFeatureFlagAllowlistAdded struct { // FilterFeatureFlagAllowlistAdded is a free log retrieval operation binding the contract event 0x30b9b4104e2fb00b4f980e414dcd828e691c8fcb286f0c73d7267c3a2de49383. // // Solidity: event FeatureFlagAllowlistAdded(bytes32 indexed feature, address account) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterFeatureFlagAllowlistAdded(opts *bind.FilterOpts, feature [][32]byte) (*PerpsMarketGoerliFeatureFlagAllowlistAddedIterator, error) { +func (_PerpsMarket *PerpsMarketFilterer) FilterFeatureFlagAllowlistAdded(opts *bind.FilterOpts, feature [][32]byte) (*PerpsMarketFeatureFlagAllowlistAddedIterator, error) { var featureRule []interface{} for _, featureItem := range feature { featureRule = append(featureRule, featureItem) } - logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "FeatureFlagAllowlistAdded", featureRule) + logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "FeatureFlagAllowlistAdded", featureRule) if err != nil { return nil, err } - return &PerpsMarketGoerliFeatureFlagAllowlistAddedIterator{contract: _PerpsMarketGoerli.contract, event: "FeatureFlagAllowlistAdded", logs: logs, sub: sub}, nil + return &PerpsMarketFeatureFlagAllowlistAddedIterator{contract: _PerpsMarket.contract, event: "FeatureFlagAllowlistAdded", logs: logs, sub: sub}, nil } // WatchFeatureFlagAllowlistAdded is a free log subscription operation binding the contract event 0x30b9b4104e2fb00b4f980e414dcd828e691c8fcb286f0c73d7267c3a2de49383. // // Solidity: event FeatureFlagAllowlistAdded(bytes32 indexed feature, address account) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchFeatureFlagAllowlistAdded(opts *bind.WatchOpts, sink chan<- *PerpsMarketGoerliFeatureFlagAllowlistAdded, feature [][32]byte) (event.Subscription, error) { +func (_PerpsMarket *PerpsMarketFilterer) WatchFeatureFlagAllowlistAdded(opts *bind.WatchOpts, sink chan<- *PerpsMarketFeatureFlagAllowlistAdded, feature [][32]byte) (event.Subscription, error) { var featureRule []interface{} for _, featureItem := range feature { featureRule = append(featureRule, featureItem) } - logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "FeatureFlagAllowlistAdded", featureRule) + logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "FeatureFlagAllowlistAdded", featureRule) if err != nil { return nil, err } @@ -4161,8 +4137,8 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchFeatureFlagAllowlistAd select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(PerpsMarketGoerliFeatureFlagAllowlistAdded) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "FeatureFlagAllowlistAdded", log); err != nil { + event := new(PerpsMarketFeatureFlagAllowlistAdded) + if err := _PerpsMarket.contract.UnpackLog(event, "FeatureFlagAllowlistAdded", log); err != nil { return err } event.Raw = log @@ -4186,18 +4162,18 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchFeatureFlagAllowlistAd // ParseFeatureFlagAllowlistAdded is a log parse operation binding the contract event 0x30b9b4104e2fb00b4f980e414dcd828e691c8fcb286f0c73d7267c3a2de49383. // // Solidity: event FeatureFlagAllowlistAdded(bytes32 indexed feature, address account) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseFeatureFlagAllowlistAdded(log types.Log) (*PerpsMarketGoerliFeatureFlagAllowlistAdded, error) { - event := new(PerpsMarketGoerliFeatureFlagAllowlistAdded) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "FeatureFlagAllowlistAdded", log); err != nil { +func (_PerpsMarket *PerpsMarketFilterer) ParseFeatureFlagAllowlistAdded(log types.Log) (*PerpsMarketFeatureFlagAllowlistAdded, error) { + event := new(PerpsMarketFeatureFlagAllowlistAdded) + if err := _PerpsMarket.contract.UnpackLog(event, "FeatureFlagAllowlistAdded", log); err != nil { return nil, err } event.Raw = log return event, nil } -// PerpsMarketGoerliFeatureFlagAllowlistRemovedIterator is returned from FilterFeatureFlagAllowlistRemoved and is used to iterate over the raw logs and unpacked data for FeatureFlagAllowlistRemoved events raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliFeatureFlagAllowlistRemovedIterator struct { - Event *PerpsMarketGoerliFeatureFlagAllowlistRemoved // Event containing the contract specifics and raw log +// PerpsMarketFeatureFlagAllowlistRemovedIterator is returned from FilterFeatureFlagAllowlistRemoved and is used to iterate over the raw logs and unpacked data for FeatureFlagAllowlistRemoved events raised by the PerpsMarket contract. +type PerpsMarketFeatureFlagAllowlistRemovedIterator struct { + Event *PerpsMarketFeatureFlagAllowlistRemoved // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -4211,7 +4187,7 @@ type PerpsMarketGoerliFeatureFlagAllowlistRemovedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *PerpsMarketGoerliFeatureFlagAllowlistRemovedIterator) Next() bool { +func (it *PerpsMarketFeatureFlagAllowlistRemovedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -4220,7 +4196,7 @@ func (it *PerpsMarketGoerliFeatureFlagAllowlistRemovedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliFeatureFlagAllowlistRemoved) + it.Event = new(PerpsMarketFeatureFlagAllowlistRemoved) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -4235,7 +4211,7 @@ func (it *PerpsMarketGoerliFeatureFlagAllowlistRemovedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliFeatureFlagAllowlistRemoved) + it.Event = new(PerpsMarketFeatureFlagAllowlistRemoved) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -4251,19 +4227,19 @@ func (it *PerpsMarketGoerliFeatureFlagAllowlistRemovedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *PerpsMarketGoerliFeatureFlagAllowlistRemovedIterator) Error() error { +func (it *PerpsMarketFeatureFlagAllowlistRemovedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *PerpsMarketGoerliFeatureFlagAllowlistRemovedIterator) Close() error { +func (it *PerpsMarketFeatureFlagAllowlistRemovedIterator) Close() error { it.sub.Unsubscribe() return nil } -// PerpsMarketGoerliFeatureFlagAllowlistRemoved represents a FeatureFlagAllowlistRemoved event raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliFeatureFlagAllowlistRemoved struct { +// PerpsMarketFeatureFlagAllowlistRemoved represents a FeatureFlagAllowlistRemoved event raised by the PerpsMarket contract. +type PerpsMarketFeatureFlagAllowlistRemoved struct { Feature [32]byte Account common.Address Raw types.Log // Blockchain specific contextual infos @@ -4272,31 +4248,31 @@ type PerpsMarketGoerliFeatureFlagAllowlistRemoved struct { // FilterFeatureFlagAllowlistRemoved is a free log retrieval operation binding the contract event 0xb44a47e11880cc865e8ea382561e406dea8c895366c58e3908f05708b2880890. // // Solidity: event FeatureFlagAllowlistRemoved(bytes32 indexed feature, address account) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterFeatureFlagAllowlistRemoved(opts *bind.FilterOpts, feature [][32]byte) (*PerpsMarketGoerliFeatureFlagAllowlistRemovedIterator, error) { +func (_PerpsMarket *PerpsMarketFilterer) FilterFeatureFlagAllowlistRemoved(opts *bind.FilterOpts, feature [][32]byte) (*PerpsMarketFeatureFlagAllowlistRemovedIterator, error) { var featureRule []interface{} for _, featureItem := range feature { featureRule = append(featureRule, featureItem) } - logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "FeatureFlagAllowlistRemoved", featureRule) + logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "FeatureFlagAllowlistRemoved", featureRule) if err != nil { return nil, err } - return &PerpsMarketGoerliFeatureFlagAllowlistRemovedIterator{contract: _PerpsMarketGoerli.contract, event: "FeatureFlagAllowlistRemoved", logs: logs, sub: sub}, nil + return &PerpsMarketFeatureFlagAllowlistRemovedIterator{contract: _PerpsMarket.contract, event: "FeatureFlagAllowlistRemoved", logs: logs, sub: sub}, nil } // WatchFeatureFlagAllowlistRemoved is a free log subscription operation binding the contract event 0xb44a47e11880cc865e8ea382561e406dea8c895366c58e3908f05708b2880890. // // Solidity: event FeatureFlagAllowlistRemoved(bytes32 indexed feature, address account) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchFeatureFlagAllowlistRemoved(opts *bind.WatchOpts, sink chan<- *PerpsMarketGoerliFeatureFlagAllowlistRemoved, feature [][32]byte) (event.Subscription, error) { +func (_PerpsMarket *PerpsMarketFilterer) WatchFeatureFlagAllowlistRemoved(opts *bind.WatchOpts, sink chan<- *PerpsMarketFeatureFlagAllowlistRemoved, feature [][32]byte) (event.Subscription, error) { var featureRule []interface{} for _, featureItem := range feature { featureRule = append(featureRule, featureItem) } - logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "FeatureFlagAllowlistRemoved", featureRule) + logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "FeatureFlagAllowlistRemoved", featureRule) if err != nil { return nil, err } @@ -4306,8 +4282,8 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchFeatureFlagAllowlistRe select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(PerpsMarketGoerliFeatureFlagAllowlistRemoved) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "FeatureFlagAllowlistRemoved", log); err != nil { + event := new(PerpsMarketFeatureFlagAllowlistRemoved) + if err := _PerpsMarket.contract.UnpackLog(event, "FeatureFlagAllowlistRemoved", log); err != nil { return err } event.Raw = log @@ -4331,18 +4307,18 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchFeatureFlagAllowlistRe // ParseFeatureFlagAllowlistRemoved is a log parse operation binding the contract event 0xb44a47e11880cc865e8ea382561e406dea8c895366c58e3908f05708b2880890. // // Solidity: event FeatureFlagAllowlistRemoved(bytes32 indexed feature, address account) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseFeatureFlagAllowlistRemoved(log types.Log) (*PerpsMarketGoerliFeatureFlagAllowlistRemoved, error) { - event := new(PerpsMarketGoerliFeatureFlagAllowlistRemoved) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "FeatureFlagAllowlistRemoved", log); err != nil { +func (_PerpsMarket *PerpsMarketFilterer) ParseFeatureFlagAllowlistRemoved(log types.Log) (*PerpsMarketFeatureFlagAllowlistRemoved, error) { + event := new(PerpsMarketFeatureFlagAllowlistRemoved) + if err := _PerpsMarket.contract.UnpackLog(event, "FeatureFlagAllowlistRemoved", log); err != nil { return nil, err } event.Raw = log return event, nil } -// PerpsMarketGoerliFeatureFlagDeniersResetIterator is returned from FilterFeatureFlagDeniersReset and is used to iterate over the raw logs and unpacked data for FeatureFlagDeniersReset events raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliFeatureFlagDeniersResetIterator struct { - Event *PerpsMarketGoerliFeatureFlagDeniersReset // Event containing the contract specifics and raw log +// PerpsMarketFeatureFlagDeniersResetIterator is returned from FilterFeatureFlagDeniersReset and is used to iterate over the raw logs and unpacked data for FeatureFlagDeniersReset events raised by the PerpsMarket contract. +type PerpsMarketFeatureFlagDeniersResetIterator struct { + Event *PerpsMarketFeatureFlagDeniersReset // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -4356,7 +4332,7 @@ type PerpsMarketGoerliFeatureFlagDeniersResetIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *PerpsMarketGoerliFeatureFlagDeniersResetIterator) Next() bool { +func (it *PerpsMarketFeatureFlagDeniersResetIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -4365,7 +4341,7 @@ func (it *PerpsMarketGoerliFeatureFlagDeniersResetIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliFeatureFlagDeniersReset) + it.Event = new(PerpsMarketFeatureFlagDeniersReset) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -4380,7 +4356,7 @@ func (it *PerpsMarketGoerliFeatureFlagDeniersResetIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliFeatureFlagDeniersReset) + it.Event = new(PerpsMarketFeatureFlagDeniersReset) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -4396,19 +4372,19 @@ func (it *PerpsMarketGoerliFeatureFlagDeniersResetIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *PerpsMarketGoerliFeatureFlagDeniersResetIterator) Error() error { +func (it *PerpsMarketFeatureFlagDeniersResetIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *PerpsMarketGoerliFeatureFlagDeniersResetIterator) Close() error { +func (it *PerpsMarketFeatureFlagDeniersResetIterator) Close() error { it.sub.Unsubscribe() return nil } -// PerpsMarketGoerliFeatureFlagDeniersReset represents a FeatureFlagDeniersReset event raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliFeatureFlagDeniersReset struct { +// PerpsMarketFeatureFlagDeniersReset represents a FeatureFlagDeniersReset event raised by the PerpsMarket contract. +type PerpsMarketFeatureFlagDeniersReset struct { Feature [32]byte Deniers []common.Address Raw types.Log // Blockchain specific contextual infos @@ -4417,31 +4393,31 @@ type PerpsMarketGoerliFeatureFlagDeniersReset struct { // FilterFeatureFlagDeniersReset is a free log retrieval operation binding the contract event 0x74d48d0b51a70680130c00decd06b4d536fbb3cee16a3b0bdd2309c264dcbd13. // // Solidity: event FeatureFlagDeniersReset(bytes32 indexed feature, address[] deniers) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterFeatureFlagDeniersReset(opts *bind.FilterOpts, feature [][32]byte) (*PerpsMarketGoerliFeatureFlagDeniersResetIterator, error) { +func (_PerpsMarket *PerpsMarketFilterer) FilterFeatureFlagDeniersReset(opts *bind.FilterOpts, feature [][32]byte) (*PerpsMarketFeatureFlagDeniersResetIterator, error) { var featureRule []interface{} for _, featureItem := range feature { featureRule = append(featureRule, featureItem) } - logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "FeatureFlagDeniersReset", featureRule) + logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "FeatureFlagDeniersReset", featureRule) if err != nil { return nil, err } - return &PerpsMarketGoerliFeatureFlagDeniersResetIterator{contract: _PerpsMarketGoerli.contract, event: "FeatureFlagDeniersReset", logs: logs, sub: sub}, nil + return &PerpsMarketFeatureFlagDeniersResetIterator{contract: _PerpsMarket.contract, event: "FeatureFlagDeniersReset", logs: logs, sub: sub}, nil } // WatchFeatureFlagDeniersReset is a free log subscription operation binding the contract event 0x74d48d0b51a70680130c00decd06b4d536fbb3cee16a3b0bdd2309c264dcbd13. // // Solidity: event FeatureFlagDeniersReset(bytes32 indexed feature, address[] deniers) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchFeatureFlagDeniersReset(opts *bind.WatchOpts, sink chan<- *PerpsMarketGoerliFeatureFlagDeniersReset, feature [][32]byte) (event.Subscription, error) { +func (_PerpsMarket *PerpsMarketFilterer) WatchFeatureFlagDeniersReset(opts *bind.WatchOpts, sink chan<- *PerpsMarketFeatureFlagDeniersReset, feature [][32]byte) (event.Subscription, error) { var featureRule []interface{} for _, featureItem := range feature { featureRule = append(featureRule, featureItem) } - logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "FeatureFlagDeniersReset", featureRule) + logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "FeatureFlagDeniersReset", featureRule) if err != nil { return nil, err } @@ -4451,8 +4427,8 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchFeatureFlagDeniersRese select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(PerpsMarketGoerliFeatureFlagDeniersReset) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "FeatureFlagDeniersReset", log); err != nil { + event := new(PerpsMarketFeatureFlagDeniersReset) + if err := _PerpsMarket.contract.UnpackLog(event, "FeatureFlagDeniersReset", log); err != nil { return err } event.Raw = log @@ -4476,18 +4452,18 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchFeatureFlagDeniersRese // ParseFeatureFlagDeniersReset is a log parse operation binding the contract event 0x74d48d0b51a70680130c00decd06b4d536fbb3cee16a3b0bdd2309c264dcbd13. // // Solidity: event FeatureFlagDeniersReset(bytes32 indexed feature, address[] deniers) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseFeatureFlagDeniersReset(log types.Log) (*PerpsMarketGoerliFeatureFlagDeniersReset, error) { - event := new(PerpsMarketGoerliFeatureFlagDeniersReset) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "FeatureFlagDeniersReset", log); err != nil { +func (_PerpsMarket *PerpsMarketFilterer) ParseFeatureFlagDeniersReset(log types.Log) (*PerpsMarketFeatureFlagDeniersReset, error) { + event := new(PerpsMarketFeatureFlagDeniersReset) + if err := _PerpsMarket.contract.UnpackLog(event, "FeatureFlagDeniersReset", log); err != nil { return nil, err } event.Raw = log return event, nil } -// PerpsMarketGoerliFeatureFlagDenyAllSetIterator is returned from FilterFeatureFlagDenyAllSet and is used to iterate over the raw logs and unpacked data for FeatureFlagDenyAllSet events raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliFeatureFlagDenyAllSetIterator struct { - Event *PerpsMarketGoerliFeatureFlagDenyAllSet // Event containing the contract specifics and raw log +// PerpsMarketFeatureFlagDenyAllSetIterator is returned from FilterFeatureFlagDenyAllSet and is used to iterate over the raw logs and unpacked data for FeatureFlagDenyAllSet events raised by the PerpsMarket contract. +type PerpsMarketFeatureFlagDenyAllSetIterator struct { + Event *PerpsMarketFeatureFlagDenyAllSet // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -4501,7 +4477,7 @@ type PerpsMarketGoerliFeatureFlagDenyAllSetIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *PerpsMarketGoerliFeatureFlagDenyAllSetIterator) Next() bool { +func (it *PerpsMarketFeatureFlagDenyAllSetIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -4510,7 +4486,7 @@ func (it *PerpsMarketGoerliFeatureFlagDenyAllSetIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliFeatureFlagDenyAllSet) + it.Event = new(PerpsMarketFeatureFlagDenyAllSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -4525,7 +4501,7 @@ func (it *PerpsMarketGoerliFeatureFlagDenyAllSetIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliFeatureFlagDenyAllSet) + it.Event = new(PerpsMarketFeatureFlagDenyAllSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -4541,19 +4517,19 @@ func (it *PerpsMarketGoerliFeatureFlagDenyAllSetIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *PerpsMarketGoerliFeatureFlagDenyAllSetIterator) Error() error { +func (it *PerpsMarketFeatureFlagDenyAllSetIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *PerpsMarketGoerliFeatureFlagDenyAllSetIterator) Close() error { +func (it *PerpsMarketFeatureFlagDenyAllSetIterator) Close() error { it.sub.Unsubscribe() return nil } -// PerpsMarketGoerliFeatureFlagDenyAllSet represents a FeatureFlagDenyAllSet event raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliFeatureFlagDenyAllSet struct { +// PerpsMarketFeatureFlagDenyAllSet represents a FeatureFlagDenyAllSet event raised by the PerpsMarket contract. +type PerpsMarketFeatureFlagDenyAllSet struct { Feature [32]byte DenyAll bool Raw types.Log // Blockchain specific contextual infos @@ -4562,31 +4538,31 @@ type PerpsMarketGoerliFeatureFlagDenyAllSet struct { // FilterFeatureFlagDenyAllSet is a free log retrieval operation binding the contract event 0x97f76d2e384948e28ddd4280a4e76e8600acc328a0c0910c93682a0fccc02018. // // Solidity: event FeatureFlagDenyAllSet(bytes32 indexed feature, bool denyAll) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterFeatureFlagDenyAllSet(opts *bind.FilterOpts, feature [][32]byte) (*PerpsMarketGoerliFeatureFlagDenyAllSetIterator, error) { +func (_PerpsMarket *PerpsMarketFilterer) FilterFeatureFlagDenyAllSet(opts *bind.FilterOpts, feature [][32]byte) (*PerpsMarketFeatureFlagDenyAllSetIterator, error) { var featureRule []interface{} for _, featureItem := range feature { featureRule = append(featureRule, featureItem) } - logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "FeatureFlagDenyAllSet", featureRule) + logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "FeatureFlagDenyAllSet", featureRule) if err != nil { return nil, err } - return &PerpsMarketGoerliFeatureFlagDenyAllSetIterator{contract: _PerpsMarketGoerli.contract, event: "FeatureFlagDenyAllSet", logs: logs, sub: sub}, nil + return &PerpsMarketFeatureFlagDenyAllSetIterator{contract: _PerpsMarket.contract, event: "FeatureFlagDenyAllSet", logs: logs, sub: sub}, nil } // WatchFeatureFlagDenyAllSet is a free log subscription operation binding the contract event 0x97f76d2e384948e28ddd4280a4e76e8600acc328a0c0910c93682a0fccc02018. // // Solidity: event FeatureFlagDenyAllSet(bytes32 indexed feature, bool denyAll) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchFeatureFlagDenyAllSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketGoerliFeatureFlagDenyAllSet, feature [][32]byte) (event.Subscription, error) { +func (_PerpsMarket *PerpsMarketFilterer) WatchFeatureFlagDenyAllSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketFeatureFlagDenyAllSet, feature [][32]byte) (event.Subscription, error) { var featureRule []interface{} for _, featureItem := range feature { featureRule = append(featureRule, featureItem) } - logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "FeatureFlagDenyAllSet", featureRule) + logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "FeatureFlagDenyAllSet", featureRule) if err != nil { return nil, err } @@ -4596,8 +4572,8 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchFeatureFlagDenyAllSet( select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(PerpsMarketGoerliFeatureFlagDenyAllSet) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "FeatureFlagDenyAllSet", log); err != nil { + event := new(PerpsMarketFeatureFlagDenyAllSet) + if err := _PerpsMarket.contract.UnpackLog(event, "FeatureFlagDenyAllSet", log); err != nil { return err } event.Raw = log @@ -4621,18 +4597,18 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchFeatureFlagDenyAllSet( // ParseFeatureFlagDenyAllSet is a log parse operation binding the contract event 0x97f76d2e384948e28ddd4280a4e76e8600acc328a0c0910c93682a0fccc02018. // // Solidity: event FeatureFlagDenyAllSet(bytes32 indexed feature, bool denyAll) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseFeatureFlagDenyAllSet(log types.Log) (*PerpsMarketGoerliFeatureFlagDenyAllSet, error) { - event := new(PerpsMarketGoerliFeatureFlagDenyAllSet) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "FeatureFlagDenyAllSet", log); err != nil { +func (_PerpsMarket *PerpsMarketFilterer) ParseFeatureFlagDenyAllSet(log types.Log) (*PerpsMarketFeatureFlagDenyAllSet, error) { + event := new(PerpsMarketFeatureFlagDenyAllSet) + if err := _PerpsMarket.contract.UnpackLog(event, "FeatureFlagDenyAllSet", log); err != nil { return nil, err } event.Raw = log return event, nil } -// PerpsMarketGoerliFeeCollectorSetIterator is returned from FilterFeeCollectorSet and is used to iterate over the raw logs and unpacked data for FeeCollectorSet events raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliFeeCollectorSetIterator struct { - Event *PerpsMarketGoerliFeeCollectorSet // Event containing the contract specifics and raw log +// PerpsMarketFeeCollectorSetIterator is returned from FilterFeeCollectorSet and is used to iterate over the raw logs and unpacked data for FeeCollectorSet events raised by the PerpsMarket contract. +type PerpsMarketFeeCollectorSetIterator struct { + Event *PerpsMarketFeeCollectorSet // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -4646,7 +4622,7 @@ type PerpsMarketGoerliFeeCollectorSetIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *PerpsMarketGoerliFeeCollectorSetIterator) Next() bool { +func (it *PerpsMarketFeeCollectorSetIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -4655,7 +4631,7 @@ func (it *PerpsMarketGoerliFeeCollectorSetIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliFeeCollectorSet) + it.Event = new(PerpsMarketFeeCollectorSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -4670,7 +4646,7 @@ func (it *PerpsMarketGoerliFeeCollectorSetIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliFeeCollectorSet) + it.Event = new(PerpsMarketFeeCollectorSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -4686,19 +4662,19 @@ func (it *PerpsMarketGoerliFeeCollectorSetIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *PerpsMarketGoerliFeeCollectorSetIterator) Error() error { +func (it *PerpsMarketFeeCollectorSetIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *PerpsMarketGoerliFeeCollectorSetIterator) Close() error { +func (it *PerpsMarketFeeCollectorSetIterator) Close() error { it.sub.Unsubscribe() return nil } -// PerpsMarketGoerliFeeCollectorSet represents a FeeCollectorSet event raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliFeeCollectorSet struct { +// PerpsMarketFeeCollectorSet represents a FeeCollectorSet event raised by the PerpsMarket contract. +type PerpsMarketFeeCollectorSet struct { FeeCollector common.Address Raw types.Log // Blockchain specific contextual infos } @@ -4706,21 +4682,21 @@ type PerpsMarketGoerliFeeCollectorSet struct { // FilterFeeCollectorSet is a free log retrieval operation binding the contract event 0x12e1d17016b94668449f97876f4a8d5cc2c19f314db337418894734037cc19d4. // // Solidity: event FeeCollectorSet(address feeCollector) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterFeeCollectorSet(opts *bind.FilterOpts) (*PerpsMarketGoerliFeeCollectorSetIterator, error) { +func (_PerpsMarket *PerpsMarketFilterer) FilterFeeCollectorSet(opts *bind.FilterOpts) (*PerpsMarketFeeCollectorSetIterator, error) { - logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "FeeCollectorSet") + logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "FeeCollectorSet") if err != nil { return nil, err } - return &PerpsMarketGoerliFeeCollectorSetIterator{contract: _PerpsMarketGoerli.contract, event: "FeeCollectorSet", logs: logs, sub: sub}, nil + return &PerpsMarketFeeCollectorSetIterator{contract: _PerpsMarket.contract, event: "FeeCollectorSet", logs: logs, sub: sub}, nil } // WatchFeeCollectorSet is a free log subscription operation binding the contract event 0x12e1d17016b94668449f97876f4a8d5cc2c19f314db337418894734037cc19d4. // // Solidity: event FeeCollectorSet(address feeCollector) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchFeeCollectorSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketGoerliFeeCollectorSet) (event.Subscription, error) { +func (_PerpsMarket *PerpsMarketFilterer) WatchFeeCollectorSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketFeeCollectorSet) (event.Subscription, error) { - logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "FeeCollectorSet") + logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "FeeCollectorSet") if err != nil { return nil, err } @@ -4730,8 +4706,8 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchFeeCollectorSet(opts * select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(PerpsMarketGoerliFeeCollectorSet) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "FeeCollectorSet", log); err != nil { + event := new(PerpsMarketFeeCollectorSet) + if err := _PerpsMarket.contract.UnpackLog(event, "FeeCollectorSet", log); err != nil { return err } event.Raw = log @@ -4755,18 +4731,18 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchFeeCollectorSet(opts * // ParseFeeCollectorSet is a log parse operation binding the contract event 0x12e1d17016b94668449f97876f4a8d5cc2c19f314db337418894734037cc19d4. // // Solidity: event FeeCollectorSet(address feeCollector) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseFeeCollectorSet(log types.Log) (*PerpsMarketGoerliFeeCollectorSet, error) { - event := new(PerpsMarketGoerliFeeCollectorSet) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "FeeCollectorSet", log); err != nil { +func (_PerpsMarket *PerpsMarketFilterer) ParseFeeCollectorSet(log types.Log) (*PerpsMarketFeeCollectorSet, error) { + event := new(PerpsMarketFeeCollectorSet) + if err := _PerpsMarket.contract.UnpackLog(event, "FeeCollectorSet", log); err != nil { return nil, err } event.Raw = log return event, nil } -// PerpsMarketGoerliFundingParametersSetIterator is returned from FilterFundingParametersSet and is used to iterate over the raw logs and unpacked data for FundingParametersSet events raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliFundingParametersSetIterator struct { - Event *PerpsMarketGoerliFundingParametersSet // Event containing the contract specifics and raw log +// PerpsMarketFundingParametersSetIterator is returned from FilterFundingParametersSet and is used to iterate over the raw logs and unpacked data for FundingParametersSet events raised by the PerpsMarket contract. +type PerpsMarketFundingParametersSetIterator struct { + Event *PerpsMarketFundingParametersSet // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -4780,7 +4756,7 @@ type PerpsMarketGoerliFundingParametersSetIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *PerpsMarketGoerliFundingParametersSetIterator) Next() bool { +func (it *PerpsMarketFundingParametersSetIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -4789,7 +4765,7 @@ func (it *PerpsMarketGoerliFundingParametersSetIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliFundingParametersSet) + it.Event = new(PerpsMarketFundingParametersSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -4804,7 +4780,7 @@ func (it *PerpsMarketGoerliFundingParametersSetIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliFundingParametersSet) + it.Event = new(PerpsMarketFundingParametersSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -4820,19 +4796,19 @@ func (it *PerpsMarketGoerliFundingParametersSetIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *PerpsMarketGoerliFundingParametersSetIterator) Error() error { +func (it *PerpsMarketFundingParametersSetIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *PerpsMarketGoerliFundingParametersSetIterator) Close() error { +func (it *PerpsMarketFundingParametersSetIterator) Close() error { it.sub.Unsubscribe() return nil } -// PerpsMarketGoerliFundingParametersSet represents a FundingParametersSet event raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliFundingParametersSet struct { +// PerpsMarketFundingParametersSet represents a FundingParametersSet event raised by the PerpsMarket contract. +type PerpsMarketFundingParametersSet struct { MarketId *big.Int SkewScale *big.Int MaxFundingVelocity *big.Int @@ -4842,31 +4818,31 @@ type PerpsMarketGoerliFundingParametersSet struct { // FilterFundingParametersSet is a free log retrieval operation binding the contract event 0xa74afd926bbafbb9252d224a1fcd6a209f851324bd485f556786820a76e31b65. // // Solidity: event FundingParametersSet(uint128 indexed marketId, uint256 skewScale, uint256 maxFundingVelocity) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterFundingParametersSet(opts *bind.FilterOpts, marketId []*big.Int) (*PerpsMarketGoerliFundingParametersSetIterator, error) { +func (_PerpsMarket *PerpsMarketFilterer) FilterFundingParametersSet(opts *bind.FilterOpts, marketId []*big.Int) (*PerpsMarketFundingParametersSetIterator, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { marketIdRule = append(marketIdRule, marketIdItem) } - logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "FundingParametersSet", marketIdRule) + logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "FundingParametersSet", marketIdRule) if err != nil { return nil, err } - return &PerpsMarketGoerliFundingParametersSetIterator{contract: _PerpsMarketGoerli.contract, event: "FundingParametersSet", logs: logs, sub: sub}, nil + return &PerpsMarketFundingParametersSetIterator{contract: _PerpsMarket.contract, event: "FundingParametersSet", logs: logs, sub: sub}, nil } // WatchFundingParametersSet is a free log subscription operation binding the contract event 0xa74afd926bbafbb9252d224a1fcd6a209f851324bd485f556786820a76e31b65. // // Solidity: event FundingParametersSet(uint128 indexed marketId, uint256 skewScale, uint256 maxFundingVelocity) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchFundingParametersSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketGoerliFundingParametersSet, marketId []*big.Int) (event.Subscription, error) { +func (_PerpsMarket *PerpsMarketFilterer) WatchFundingParametersSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketFundingParametersSet, marketId []*big.Int) (event.Subscription, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { marketIdRule = append(marketIdRule, marketIdItem) } - logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "FundingParametersSet", marketIdRule) + logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "FundingParametersSet", marketIdRule) if err != nil { return nil, err } @@ -4876,8 +4852,8 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchFundingParametersSet(o select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(PerpsMarketGoerliFundingParametersSet) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "FundingParametersSet", log); err != nil { + event := new(PerpsMarketFundingParametersSet) + if err := _PerpsMarket.contract.UnpackLog(event, "FundingParametersSet", log); err != nil { return err } event.Raw = log @@ -4901,18 +4877,18 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchFundingParametersSet(o // ParseFundingParametersSet is a log parse operation binding the contract event 0xa74afd926bbafbb9252d224a1fcd6a209f851324bd485f556786820a76e31b65. // // Solidity: event FundingParametersSet(uint128 indexed marketId, uint256 skewScale, uint256 maxFundingVelocity) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseFundingParametersSet(log types.Log) (*PerpsMarketGoerliFundingParametersSet, error) { - event := new(PerpsMarketGoerliFundingParametersSet) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "FundingParametersSet", log); err != nil { +func (_PerpsMarket *PerpsMarketFilterer) ParseFundingParametersSet(log types.Log) (*PerpsMarketFundingParametersSet, error) { + event := new(PerpsMarketFundingParametersSet) + if err := _PerpsMarket.contract.UnpackLog(event, "FundingParametersSet", log); err != nil { return nil, err } event.Raw = log return event, nil } -// PerpsMarketGoerliLiquidationParametersSetIterator is returned from FilterLiquidationParametersSet and is used to iterate over the raw logs and unpacked data for LiquidationParametersSet events raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliLiquidationParametersSetIterator struct { - Event *PerpsMarketGoerliLiquidationParametersSet // Event containing the contract specifics and raw log +// PerpsMarketLiquidationParametersSetIterator is returned from FilterLiquidationParametersSet and is used to iterate over the raw logs and unpacked data for LiquidationParametersSet events raised by the PerpsMarket contract. +type PerpsMarketLiquidationParametersSetIterator struct { + Event *PerpsMarketLiquidationParametersSet // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -4926,7 +4902,7 @@ type PerpsMarketGoerliLiquidationParametersSetIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *PerpsMarketGoerliLiquidationParametersSetIterator) Next() bool { +func (it *PerpsMarketLiquidationParametersSetIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -4935,7 +4911,7 @@ func (it *PerpsMarketGoerliLiquidationParametersSetIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliLiquidationParametersSet) + it.Event = new(PerpsMarketLiquidationParametersSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -4950,7 +4926,7 @@ func (it *PerpsMarketGoerliLiquidationParametersSetIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliLiquidationParametersSet) + it.Event = new(PerpsMarketLiquidationParametersSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -4966,19 +4942,19 @@ func (it *PerpsMarketGoerliLiquidationParametersSetIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *PerpsMarketGoerliLiquidationParametersSetIterator) Error() error { +func (it *PerpsMarketLiquidationParametersSetIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *PerpsMarketGoerliLiquidationParametersSetIterator) Close() error { +func (it *PerpsMarketLiquidationParametersSetIterator) Close() error { it.sub.Unsubscribe() return nil } -// PerpsMarketGoerliLiquidationParametersSet represents a LiquidationParametersSet event raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliLiquidationParametersSet struct { +// PerpsMarketLiquidationParametersSet represents a LiquidationParametersSet event raised by the PerpsMarket contract. +type PerpsMarketLiquidationParametersSet struct { MarketId *big.Int InitialMarginRatioD18 *big.Int MaintenanceMarginRatioD18 *big.Int @@ -4991,31 +4967,31 @@ type PerpsMarketGoerliLiquidationParametersSet struct { // FilterLiquidationParametersSet is a free log retrieval operation binding the contract event 0xa0c87f048ec4f5924e50d554aa4a6e65a935f133a2114e5222590c1690e1a7b8. // // Solidity: event LiquidationParametersSet(uint128 indexed marketId, uint256 initialMarginRatioD18, uint256 maintenanceMarginRatioD18, uint256 minimumInitialMarginRatioD18, uint256 liquidationRewardRatioD18, uint256 minimumPositionMargin) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterLiquidationParametersSet(opts *bind.FilterOpts, marketId []*big.Int) (*PerpsMarketGoerliLiquidationParametersSetIterator, error) { +func (_PerpsMarket *PerpsMarketFilterer) FilterLiquidationParametersSet(opts *bind.FilterOpts, marketId []*big.Int) (*PerpsMarketLiquidationParametersSetIterator, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { marketIdRule = append(marketIdRule, marketIdItem) } - logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "LiquidationParametersSet", marketIdRule) + logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "LiquidationParametersSet", marketIdRule) if err != nil { return nil, err } - return &PerpsMarketGoerliLiquidationParametersSetIterator{contract: _PerpsMarketGoerli.contract, event: "LiquidationParametersSet", logs: logs, sub: sub}, nil + return &PerpsMarketLiquidationParametersSetIterator{contract: _PerpsMarket.contract, event: "LiquidationParametersSet", logs: logs, sub: sub}, nil } // WatchLiquidationParametersSet is a free log subscription operation binding the contract event 0xa0c87f048ec4f5924e50d554aa4a6e65a935f133a2114e5222590c1690e1a7b8. // // Solidity: event LiquidationParametersSet(uint128 indexed marketId, uint256 initialMarginRatioD18, uint256 maintenanceMarginRatioD18, uint256 minimumInitialMarginRatioD18, uint256 liquidationRewardRatioD18, uint256 minimumPositionMargin) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchLiquidationParametersSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketGoerliLiquidationParametersSet, marketId []*big.Int) (event.Subscription, error) { +func (_PerpsMarket *PerpsMarketFilterer) WatchLiquidationParametersSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketLiquidationParametersSet, marketId []*big.Int) (event.Subscription, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { marketIdRule = append(marketIdRule, marketIdItem) } - logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "LiquidationParametersSet", marketIdRule) + logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "LiquidationParametersSet", marketIdRule) if err != nil { return nil, err } @@ -5025,8 +5001,8 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchLiquidationParametersS select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(PerpsMarketGoerliLiquidationParametersSet) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "LiquidationParametersSet", log); err != nil { + event := new(PerpsMarketLiquidationParametersSet) + if err := _PerpsMarket.contract.UnpackLog(event, "LiquidationParametersSet", log); err != nil { return err } event.Raw = log @@ -5050,18 +5026,18 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchLiquidationParametersS // ParseLiquidationParametersSet is a log parse operation binding the contract event 0xa0c87f048ec4f5924e50d554aa4a6e65a935f133a2114e5222590c1690e1a7b8. // // Solidity: event LiquidationParametersSet(uint128 indexed marketId, uint256 initialMarginRatioD18, uint256 maintenanceMarginRatioD18, uint256 minimumInitialMarginRatioD18, uint256 liquidationRewardRatioD18, uint256 minimumPositionMargin) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseLiquidationParametersSet(log types.Log) (*PerpsMarketGoerliLiquidationParametersSet, error) { - event := new(PerpsMarketGoerliLiquidationParametersSet) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "LiquidationParametersSet", log); err != nil { +func (_PerpsMarket *PerpsMarketFilterer) ParseLiquidationParametersSet(log types.Log) (*PerpsMarketLiquidationParametersSet, error) { + event := new(PerpsMarketLiquidationParametersSet) + if err := _PerpsMarket.contract.UnpackLog(event, "LiquidationParametersSet", log); err != nil { return nil, err } event.Raw = log return event, nil } -// PerpsMarketGoerliLiquidationRewardGuardsSetIterator is returned from FilterLiquidationRewardGuardsSet and is used to iterate over the raw logs and unpacked data for LiquidationRewardGuardsSet events raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliLiquidationRewardGuardsSetIterator struct { - Event *PerpsMarketGoerliLiquidationRewardGuardsSet // Event containing the contract specifics and raw log +// PerpsMarketLiquidationRewardGuardsSetIterator is returned from FilterLiquidationRewardGuardsSet and is used to iterate over the raw logs and unpacked data for LiquidationRewardGuardsSet events raised by the PerpsMarket contract. +type PerpsMarketLiquidationRewardGuardsSetIterator struct { + Event *PerpsMarketLiquidationRewardGuardsSet // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -5075,7 +5051,7 @@ type PerpsMarketGoerliLiquidationRewardGuardsSetIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *PerpsMarketGoerliLiquidationRewardGuardsSetIterator) Next() bool { +func (it *PerpsMarketLiquidationRewardGuardsSetIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -5084,7 +5060,7 @@ func (it *PerpsMarketGoerliLiquidationRewardGuardsSetIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliLiquidationRewardGuardsSet) + it.Event = new(PerpsMarketLiquidationRewardGuardsSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -5099,7 +5075,7 @@ func (it *PerpsMarketGoerliLiquidationRewardGuardsSetIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliLiquidationRewardGuardsSet) + it.Event = new(PerpsMarketLiquidationRewardGuardsSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -5115,19 +5091,19 @@ func (it *PerpsMarketGoerliLiquidationRewardGuardsSetIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *PerpsMarketGoerliLiquidationRewardGuardsSetIterator) Error() error { +func (it *PerpsMarketLiquidationRewardGuardsSetIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *PerpsMarketGoerliLiquidationRewardGuardsSetIterator) Close() error { +func (it *PerpsMarketLiquidationRewardGuardsSetIterator) Close() error { it.sub.Unsubscribe() return nil } -// PerpsMarketGoerliLiquidationRewardGuardsSet represents a LiquidationRewardGuardsSet event raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliLiquidationRewardGuardsSet struct { +// PerpsMarketLiquidationRewardGuardsSet represents a LiquidationRewardGuardsSet event raised by the PerpsMarket contract. +type PerpsMarketLiquidationRewardGuardsSet struct { MinLiquidationRewardUsd *big.Int MaxLiquidationRewardUsd *big.Int Raw types.Log // Blockchain specific contextual infos @@ -5136,7 +5112,7 @@ type PerpsMarketGoerliLiquidationRewardGuardsSet struct { // FilterLiquidationRewardGuardsSet is a free log retrieval operation binding the contract event 0xbb7f8eb17b00549c0f234a3c363ef3eb39329f98b52048416480cf62d0f0e1f5. // // Solidity: event LiquidationRewardGuardsSet(uint256 indexed minLiquidationRewardUsd, uint256 indexed maxLiquidationRewardUsd) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterLiquidationRewardGuardsSet(opts *bind.FilterOpts, minLiquidationRewardUsd []*big.Int, maxLiquidationRewardUsd []*big.Int) (*PerpsMarketGoerliLiquidationRewardGuardsSetIterator, error) { +func (_PerpsMarket *PerpsMarketFilterer) FilterLiquidationRewardGuardsSet(opts *bind.FilterOpts, minLiquidationRewardUsd []*big.Int, maxLiquidationRewardUsd []*big.Int) (*PerpsMarketLiquidationRewardGuardsSetIterator, error) { var minLiquidationRewardUsdRule []interface{} for _, minLiquidationRewardUsdItem := range minLiquidationRewardUsd { @@ -5147,17 +5123,17 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterLiquidationRewardGuar maxLiquidationRewardUsdRule = append(maxLiquidationRewardUsdRule, maxLiquidationRewardUsdItem) } - logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "LiquidationRewardGuardsSet", minLiquidationRewardUsdRule, maxLiquidationRewardUsdRule) + logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "LiquidationRewardGuardsSet", minLiquidationRewardUsdRule, maxLiquidationRewardUsdRule) if err != nil { return nil, err } - return &PerpsMarketGoerliLiquidationRewardGuardsSetIterator{contract: _PerpsMarketGoerli.contract, event: "LiquidationRewardGuardsSet", logs: logs, sub: sub}, nil + return &PerpsMarketLiquidationRewardGuardsSetIterator{contract: _PerpsMarket.contract, event: "LiquidationRewardGuardsSet", logs: logs, sub: sub}, nil } // WatchLiquidationRewardGuardsSet is a free log subscription operation binding the contract event 0xbb7f8eb17b00549c0f234a3c363ef3eb39329f98b52048416480cf62d0f0e1f5. // // Solidity: event LiquidationRewardGuardsSet(uint256 indexed minLiquidationRewardUsd, uint256 indexed maxLiquidationRewardUsd) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchLiquidationRewardGuardsSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketGoerliLiquidationRewardGuardsSet, minLiquidationRewardUsd []*big.Int, maxLiquidationRewardUsd []*big.Int) (event.Subscription, error) { +func (_PerpsMarket *PerpsMarketFilterer) WatchLiquidationRewardGuardsSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketLiquidationRewardGuardsSet, minLiquidationRewardUsd []*big.Int, maxLiquidationRewardUsd []*big.Int) (event.Subscription, error) { var minLiquidationRewardUsdRule []interface{} for _, minLiquidationRewardUsdItem := range minLiquidationRewardUsd { @@ -5168,7 +5144,7 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchLiquidationRewardGuard maxLiquidationRewardUsdRule = append(maxLiquidationRewardUsdRule, maxLiquidationRewardUsdItem) } - logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "LiquidationRewardGuardsSet", minLiquidationRewardUsdRule, maxLiquidationRewardUsdRule) + logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "LiquidationRewardGuardsSet", minLiquidationRewardUsdRule, maxLiquidationRewardUsdRule) if err != nil { return nil, err } @@ -5178,8 +5154,8 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchLiquidationRewardGuard select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(PerpsMarketGoerliLiquidationRewardGuardsSet) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "LiquidationRewardGuardsSet", log); err != nil { + event := new(PerpsMarketLiquidationRewardGuardsSet) + if err := _PerpsMarket.contract.UnpackLog(event, "LiquidationRewardGuardsSet", log); err != nil { return err } event.Raw = log @@ -5203,18 +5179,18 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchLiquidationRewardGuard // ParseLiquidationRewardGuardsSet is a log parse operation binding the contract event 0xbb7f8eb17b00549c0f234a3c363ef3eb39329f98b52048416480cf62d0f0e1f5. // // Solidity: event LiquidationRewardGuardsSet(uint256 indexed minLiquidationRewardUsd, uint256 indexed maxLiquidationRewardUsd) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseLiquidationRewardGuardsSet(log types.Log) (*PerpsMarketGoerliLiquidationRewardGuardsSet, error) { - event := new(PerpsMarketGoerliLiquidationRewardGuardsSet) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "LiquidationRewardGuardsSet", log); err != nil { +func (_PerpsMarket *PerpsMarketFilterer) ParseLiquidationRewardGuardsSet(log types.Log) (*PerpsMarketLiquidationRewardGuardsSet, error) { + event := new(PerpsMarketLiquidationRewardGuardsSet) + if err := _PerpsMarket.contract.UnpackLog(event, "LiquidationRewardGuardsSet", log); err != nil { return nil, err } event.Raw = log return event, nil } -// PerpsMarketGoerliLockedOiRatioSetIterator is returned from FilterLockedOiRatioSet and is used to iterate over the raw logs and unpacked data for LockedOiRatioSet events raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliLockedOiRatioSetIterator struct { - Event *PerpsMarketGoerliLockedOiRatioSet // Event containing the contract specifics and raw log +// PerpsMarketLockedOiRatioSetIterator is returned from FilterLockedOiRatioSet and is used to iterate over the raw logs and unpacked data for LockedOiRatioSet events raised by the PerpsMarket contract. +type PerpsMarketLockedOiRatioSetIterator struct { + Event *PerpsMarketLockedOiRatioSet // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -5228,7 +5204,7 @@ type PerpsMarketGoerliLockedOiRatioSetIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *PerpsMarketGoerliLockedOiRatioSetIterator) Next() bool { +func (it *PerpsMarketLockedOiRatioSetIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -5237,7 +5213,7 @@ func (it *PerpsMarketGoerliLockedOiRatioSetIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliLockedOiRatioSet) + it.Event = new(PerpsMarketLockedOiRatioSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -5252,7 +5228,7 @@ func (it *PerpsMarketGoerliLockedOiRatioSetIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliLockedOiRatioSet) + it.Event = new(PerpsMarketLockedOiRatioSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -5268,19 +5244,19 @@ func (it *PerpsMarketGoerliLockedOiRatioSetIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *PerpsMarketGoerliLockedOiRatioSetIterator) Error() error { +func (it *PerpsMarketLockedOiRatioSetIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *PerpsMarketGoerliLockedOiRatioSetIterator) Close() error { +func (it *PerpsMarketLockedOiRatioSetIterator) Close() error { it.sub.Unsubscribe() return nil } -// PerpsMarketGoerliLockedOiRatioSet represents a LockedOiRatioSet event raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliLockedOiRatioSet struct { +// PerpsMarketLockedOiRatioSet represents a LockedOiRatioSet event raised by the PerpsMarket contract. +type PerpsMarketLockedOiRatioSet struct { MarketId *big.Int LockedOiRatioD18 *big.Int Raw types.Log // Blockchain specific contextual infos @@ -5289,31 +5265,31 @@ type PerpsMarketGoerliLockedOiRatioSet struct { // FilterLockedOiRatioSet is a free log retrieval operation binding the contract event 0x1d841fd5b4c806bc5a073d637a8506e1e74d16cb18251b711cb47e133ceafc2d. // // Solidity: event LockedOiRatioSet(uint128 indexed marketId, uint256 lockedOiRatioD18) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterLockedOiRatioSet(opts *bind.FilterOpts, marketId []*big.Int) (*PerpsMarketGoerliLockedOiRatioSetIterator, error) { +func (_PerpsMarket *PerpsMarketFilterer) FilterLockedOiRatioSet(opts *bind.FilterOpts, marketId []*big.Int) (*PerpsMarketLockedOiRatioSetIterator, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { marketIdRule = append(marketIdRule, marketIdItem) } - logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "LockedOiRatioSet", marketIdRule) + logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "LockedOiRatioSet", marketIdRule) if err != nil { return nil, err } - return &PerpsMarketGoerliLockedOiRatioSetIterator{contract: _PerpsMarketGoerli.contract, event: "LockedOiRatioSet", logs: logs, sub: sub}, nil + return &PerpsMarketLockedOiRatioSetIterator{contract: _PerpsMarket.contract, event: "LockedOiRatioSet", logs: logs, sub: sub}, nil } // WatchLockedOiRatioSet is a free log subscription operation binding the contract event 0x1d841fd5b4c806bc5a073d637a8506e1e74d16cb18251b711cb47e133ceafc2d. // // Solidity: event LockedOiRatioSet(uint128 indexed marketId, uint256 lockedOiRatioD18) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchLockedOiRatioSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketGoerliLockedOiRatioSet, marketId []*big.Int) (event.Subscription, error) { +func (_PerpsMarket *PerpsMarketFilterer) WatchLockedOiRatioSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketLockedOiRatioSet, marketId []*big.Int) (event.Subscription, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { marketIdRule = append(marketIdRule, marketIdItem) } - logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "LockedOiRatioSet", marketIdRule) + logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "LockedOiRatioSet", marketIdRule) if err != nil { return nil, err } @@ -5323,8 +5299,8 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchLockedOiRatioSet(opts select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(PerpsMarketGoerliLockedOiRatioSet) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "LockedOiRatioSet", log); err != nil { + event := new(PerpsMarketLockedOiRatioSet) + if err := _PerpsMarket.contract.UnpackLog(event, "LockedOiRatioSet", log); err != nil { return err } event.Raw = log @@ -5348,18 +5324,18 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchLockedOiRatioSet(opts // ParseLockedOiRatioSet is a log parse operation binding the contract event 0x1d841fd5b4c806bc5a073d637a8506e1e74d16cb18251b711cb47e133ceafc2d. // // Solidity: event LockedOiRatioSet(uint128 indexed marketId, uint256 lockedOiRatioD18) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseLockedOiRatioSet(log types.Log) (*PerpsMarketGoerliLockedOiRatioSet, error) { - event := new(PerpsMarketGoerliLockedOiRatioSet) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "LockedOiRatioSet", log); err != nil { +func (_PerpsMarket *PerpsMarketFilterer) ParseLockedOiRatioSet(log types.Log) (*PerpsMarketLockedOiRatioSet, error) { + event := new(PerpsMarketLockedOiRatioSet) + if err := _PerpsMarket.contract.UnpackLog(event, "LockedOiRatioSet", log); err != nil { return nil, err } event.Raw = log return event, nil } -// PerpsMarketGoerliMarketCreatedIterator is returned from FilterMarketCreated and is used to iterate over the raw logs and unpacked data for MarketCreated events raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliMarketCreatedIterator struct { - Event *PerpsMarketGoerliMarketCreated // Event containing the contract specifics and raw log +// PerpsMarketMarketCreatedIterator is returned from FilterMarketCreated and is used to iterate over the raw logs and unpacked data for MarketCreated events raised by the PerpsMarket contract. +type PerpsMarketMarketCreatedIterator struct { + Event *PerpsMarketMarketCreated // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -5373,7 +5349,7 @@ type PerpsMarketGoerliMarketCreatedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *PerpsMarketGoerliMarketCreatedIterator) Next() bool { +func (it *PerpsMarketMarketCreatedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -5382,7 +5358,7 @@ func (it *PerpsMarketGoerliMarketCreatedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliMarketCreated) + it.Event = new(PerpsMarketMarketCreated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -5397,7 +5373,7 @@ func (it *PerpsMarketGoerliMarketCreatedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliMarketCreated) + it.Event = new(PerpsMarketMarketCreated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -5413,19 +5389,19 @@ func (it *PerpsMarketGoerliMarketCreatedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *PerpsMarketGoerliMarketCreatedIterator) Error() error { +func (it *PerpsMarketMarketCreatedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *PerpsMarketGoerliMarketCreatedIterator) Close() error { +func (it *PerpsMarketMarketCreatedIterator) Close() error { it.sub.Unsubscribe() return nil } -// PerpsMarketGoerliMarketCreated represents a MarketCreated event raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliMarketCreated struct { +// PerpsMarketMarketCreated represents a MarketCreated event raised by the PerpsMarket contract. +type PerpsMarketMarketCreated struct { PerpsMarketId *big.Int MarketName string MarketSymbol string @@ -5435,31 +5411,31 @@ type PerpsMarketGoerliMarketCreated struct { // FilterMarketCreated is a free log retrieval operation binding the contract event 0x032553f94ac1323933f22650ec5b8e232babf1c47efca69383b749463116cc49. // // Solidity: event MarketCreated(uint128 indexed perpsMarketId, string marketName, string marketSymbol) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterMarketCreated(opts *bind.FilterOpts, perpsMarketId []*big.Int) (*PerpsMarketGoerliMarketCreatedIterator, error) { +func (_PerpsMarket *PerpsMarketFilterer) FilterMarketCreated(opts *bind.FilterOpts, perpsMarketId []*big.Int) (*PerpsMarketMarketCreatedIterator, error) { var perpsMarketIdRule []interface{} for _, perpsMarketIdItem := range perpsMarketId { perpsMarketIdRule = append(perpsMarketIdRule, perpsMarketIdItem) } - logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "MarketCreated", perpsMarketIdRule) + logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "MarketCreated", perpsMarketIdRule) if err != nil { return nil, err } - return &PerpsMarketGoerliMarketCreatedIterator{contract: _PerpsMarketGoerli.contract, event: "MarketCreated", logs: logs, sub: sub}, nil + return &PerpsMarketMarketCreatedIterator{contract: _PerpsMarket.contract, event: "MarketCreated", logs: logs, sub: sub}, nil } // WatchMarketCreated is a free log subscription operation binding the contract event 0x032553f94ac1323933f22650ec5b8e232babf1c47efca69383b749463116cc49. // // Solidity: event MarketCreated(uint128 indexed perpsMarketId, string marketName, string marketSymbol) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchMarketCreated(opts *bind.WatchOpts, sink chan<- *PerpsMarketGoerliMarketCreated, perpsMarketId []*big.Int) (event.Subscription, error) { +func (_PerpsMarket *PerpsMarketFilterer) WatchMarketCreated(opts *bind.WatchOpts, sink chan<- *PerpsMarketMarketCreated, perpsMarketId []*big.Int) (event.Subscription, error) { var perpsMarketIdRule []interface{} for _, perpsMarketIdItem := range perpsMarketId { perpsMarketIdRule = append(perpsMarketIdRule, perpsMarketIdItem) } - logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "MarketCreated", perpsMarketIdRule) + logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "MarketCreated", perpsMarketIdRule) if err != nil { return nil, err } @@ -5469,8 +5445,8 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchMarketCreated(opts *bi select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(PerpsMarketGoerliMarketCreated) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "MarketCreated", log); err != nil { + event := new(PerpsMarketMarketCreated) + if err := _PerpsMarket.contract.UnpackLog(event, "MarketCreated", log); err != nil { return err } event.Raw = log @@ -5494,18 +5470,18 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchMarketCreated(opts *bi // ParseMarketCreated is a log parse operation binding the contract event 0x032553f94ac1323933f22650ec5b8e232babf1c47efca69383b749463116cc49. // // Solidity: event MarketCreated(uint128 indexed perpsMarketId, string marketName, string marketSymbol) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseMarketCreated(log types.Log) (*PerpsMarketGoerliMarketCreated, error) { - event := new(PerpsMarketGoerliMarketCreated) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "MarketCreated", log); err != nil { +func (_PerpsMarket *PerpsMarketFilterer) ParseMarketCreated(log types.Log) (*PerpsMarketMarketCreated, error) { + event := new(PerpsMarketMarketCreated) + if err := _PerpsMarket.contract.UnpackLog(event, "MarketCreated", log); err != nil { return nil, err } event.Raw = log return event, nil } -// PerpsMarketGoerliMarketPriceDataUpdatedIterator is returned from FilterMarketPriceDataUpdated and is used to iterate over the raw logs and unpacked data for MarketPriceDataUpdated events raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliMarketPriceDataUpdatedIterator struct { - Event *PerpsMarketGoerliMarketPriceDataUpdated // Event containing the contract specifics and raw log +// PerpsMarketMarketPriceDataUpdatedIterator is returned from FilterMarketPriceDataUpdated and is used to iterate over the raw logs and unpacked data for MarketPriceDataUpdated events raised by the PerpsMarket contract. +type PerpsMarketMarketPriceDataUpdatedIterator struct { + Event *PerpsMarketMarketPriceDataUpdated // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -5519,7 +5495,7 @@ type PerpsMarketGoerliMarketPriceDataUpdatedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *PerpsMarketGoerliMarketPriceDataUpdatedIterator) Next() bool { +func (it *PerpsMarketMarketPriceDataUpdatedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -5528,7 +5504,7 @@ func (it *PerpsMarketGoerliMarketPriceDataUpdatedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliMarketPriceDataUpdated) + it.Event = new(PerpsMarketMarketPriceDataUpdated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -5543,7 +5519,7 @@ func (it *PerpsMarketGoerliMarketPriceDataUpdatedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliMarketPriceDataUpdated) + it.Event = new(PerpsMarketMarketPriceDataUpdated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -5559,19 +5535,19 @@ func (it *PerpsMarketGoerliMarketPriceDataUpdatedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *PerpsMarketGoerliMarketPriceDataUpdatedIterator) Error() error { +func (it *PerpsMarketMarketPriceDataUpdatedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *PerpsMarketGoerliMarketPriceDataUpdatedIterator) Close() error { +func (it *PerpsMarketMarketPriceDataUpdatedIterator) Close() error { it.sub.Unsubscribe() return nil } -// PerpsMarketGoerliMarketPriceDataUpdated represents a MarketPriceDataUpdated event raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliMarketPriceDataUpdated struct { +// PerpsMarketMarketPriceDataUpdated represents a MarketPriceDataUpdated event raised by the PerpsMarket contract. +type PerpsMarketMarketPriceDataUpdated struct { MarketId *big.Int FeedId [32]byte Raw types.Log // Blockchain specific contextual infos @@ -5580,31 +5556,31 @@ type PerpsMarketGoerliMarketPriceDataUpdated struct { // FilterMarketPriceDataUpdated is a free log retrieval operation binding the contract event 0xd5ec22bbdbde803d8585a5aa89d991c67dc62c6a7bc3c4fa000b4e263b6783a0. // // Solidity: event MarketPriceDataUpdated(uint128 indexed marketId, bytes32 feedId) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterMarketPriceDataUpdated(opts *bind.FilterOpts, marketId []*big.Int) (*PerpsMarketGoerliMarketPriceDataUpdatedIterator, error) { +func (_PerpsMarket *PerpsMarketFilterer) FilterMarketPriceDataUpdated(opts *bind.FilterOpts, marketId []*big.Int) (*PerpsMarketMarketPriceDataUpdatedIterator, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { marketIdRule = append(marketIdRule, marketIdItem) } - logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "MarketPriceDataUpdated", marketIdRule) + logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "MarketPriceDataUpdated", marketIdRule) if err != nil { return nil, err } - return &PerpsMarketGoerliMarketPriceDataUpdatedIterator{contract: _PerpsMarketGoerli.contract, event: "MarketPriceDataUpdated", logs: logs, sub: sub}, nil + return &PerpsMarketMarketPriceDataUpdatedIterator{contract: _PerpsMarket.contract, event: "MarketPriceDataUpdated", logs: logs, sub: sub}, nil } // WatchMarketPriceDataUpdated is a free log subscription operation binding the contract event 0xd5ec22bbdbde803d8585a5aa89d991c67dc62c6a7bc3c4fa000b4e263b6783a0. // // Solidity: event MarketPriceDataUpdated(uint128 indexed marketId, bytes32 feedId) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchMarketPriceDataUpdated(opts *bind.WatchOpts, sink chan<- *PerpsMarketGoerliMarketPriceDataUpdated, marketId []*big.Int) (event.Subscription, error) { +func (_PerpsMarket *PerpsMarketFilterer) WatchMarketPriceDataUpdated(opts *bind.WatchOpts, sink chan<- *PerpsMarketMarketPriceDataUpdated, marketId []*big.Int) (event.Subscription, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { marketIdRule = append(marketIdRule, marketIdItem) } - logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "MarketPriceDataUpdated", marketIdRule) + logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "MarketPriceDataUpdated", marketIdRule) if err != nil { return nil, err } @@ -5614,8 +5590,8 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchMarketPriceDataUpdated select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(PerpsMarketGoerliMarketPriceDataUpdated) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "MarketPriceDataUpdated", log); err != nil { + event := new(PerpsMarketMarketPriceDataUpdated) + if err := _PerpsMarket.contract.UnpackLog(event, "MarketPriceDataUpdated", log); err != nil { return err } event.Raw = log @@ -5639,18 +5615,18 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchMarketPriceDataUpdated // ParseMarketPriceDataUpdated is a log parse operation binding the contract event 0xd5ec22bbdbde803d8585a5aa89d991c67dc62c6a7bc3c4fa000b4e263b6783a0. // // Solidity: event MarketPriceDataUpdated(uint128 indexed marketId, bytes32 feedId) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseMarketPriceDataUpdated(log types.Log) (*PerpsMarketGoerliMarketPriceDataUpdated, error) { - event := new(PerpsMarketGoerliMarketPriceDataUpdated) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "MarketPriceDataUpdated", log); err != nil { +func (_PerpsMarket *PerpsMarketFilterer) ParseMarketPriceDataUpdated(log types.Log) (*PerpsMarketMarketPriceDataUpdated, error) { + event := new(PerpsMarketMarketPriceDataUpdated) + if err := _PerpsMarket.contract.UnpackLog(event, "MarketPriceDataUpdated", log); err != nil { return nil, err } event.Raw = log return event, nil } -// PerpsMarketGoerliMarketUpdatedIterator is returned from FilterMarketUpdated and is used to iterate over the raw logs and unpacked data for MarketUpdated events raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliMarketUpdatedIterator struct { - Event *PerpsMarketGoerliMarketUpdated // Event containing the contract specifics and raw log +// PerpsMarketMarketUpdatedIterator is returned from FilterMarketUpdated and is used to iterate over the raw logs and unpacked data for MarketUpdated events raised by the PerpsMarket contract. +type PerpsMarketMarketUpdatedIterator struct { + Event *PerpsMarketMarketUpdated // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -5664,7 +5640,7 @@ type PerpsMarketGoerliMarketUpdatedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *PerpsMarketGoerliMarketUpdatedIterator) Next() bool { +func (it *PerpsMarketMarketUpdatedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -5673,7 +5649,7 @@ func (it *PerpsMarketGoerliMarketUpdatedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliMarketUpdated) + it.Event = new(PerpsMarketMarketUpdated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -5688,7 +5664,7 @@ func (it *PerpsMarketGoerliMarketUpdatedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliMarketUpdated) + it.Event = new(PerpsMarketMarketUpdated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -5704,19 +5680,19 @@ func (it *PerpsMarketGoerliMarketUpdatedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *PerpsMarketGoerliMarketUpdatedIterator) Error() error { +func (it *PerpsMarketMarketUpdatedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *PerpsMarketGoerliMarketUpdatedIterator) Close() error { +func (it *PerpsMarketMarketUpdatedIterator) Close() error { it.sub.Unsubscribe() return nil } -// PerpsMarketGoerliMarketUpdated represents a MarketUpdated event raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliMarketUpdated struct { +// PerpsMarketMarketUpdated represents a MarketUpdated event raised by the PerpsMarket contract. +type PerpsMarketMarketUpdated struct { MarketId *big.Int Price *big.Int Skew *big.Int @@ -5730,21 +5706,21 @@ type PerpsMarketGoerliMarketUpdated struct { // FilterMarketUpdated is a free log retrieval operation binding the contract event 0xb317f068f30db823aeb6ac6ddbffcbb6c805f558972e6b16625ec58b83f1f3d5. // // Solidity: event MarketUpdated(uint128 marketId, uint256 price, int256 skew, uint256 size, int256 sizeDelta, int256 currentFundingRate, int256 currentFundingVelocity) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterMarketUpdated(opts *bind.FilterOpts) (*PerpsMarketGoerliMarketUpdatedIterator, error) { +func (_PerpsMarket *PerpsMarketFilterer) FilterMarketUpdated(opts *bind.FilterOpts) (*PerpsMarketMarketUpdatedIterator, error) { - logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "MarketUpdated") + logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "MarketUpdated") if err != nil { return nil, err } - return &PerpsMarketGoerliMarketUpdatedIterator{contract: _PerpsMarketGoerli.contract, event: "MarketUpdated", logs: logs, sub: sub}, nil + return &PerpsMarketMarketUpdatedIterator{contract: _PerpsMarket.contract, event: "MarketUpdated", logs: logs, sub: sub}, nil } // WatchMarketUpdated is a free log subscription operation binding the contract event 0xb317f068f30db823aeb6ac6ddbffcbb6c805f558972e6b16625ec58b83f1f3d5. // // Solidity: event MarketUpdated(uint128 marketId, uint256 price, int256 skew, uint256 size, int256 sizeDelta, int256 currentFundingRate, int256 currentFundingVelocity) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchMarketUpdated(opts *bind.WatchOpts, sink chan<- *PerpsMarketGoerliMarketUpdated) (event.Subscription, error) { +func (_PerpsMarket *PerpsMarketFilterer) WatchMarketUpdated(opts *bind.WatchOpts, sink chan<- *PerpsMarketMarketUpdated) (event.Subscription, error) { - logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "MarketUpdated") + logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "MarketUpdated") if err != nil { return nil, err } @@ -5754,8 +5730,8 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchMarketUpdated(opts *bi select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(PerpsMarketGoerliMarketUpdated) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "MarketUpdated", log); err != nil { + event := new(PerpsMarketMarketUpdated) + if err := _PerpsMarket.contract.UnpackLog(event, "MarketUpdated", log); err != nil { return err } event.Raw = log @@ -5779,18 +5755,18 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchMarketUpdated(opts *bi // ParseMarketUpdated is a log parse operation binding the contract event 0xb317f068f30db823aeb6ac6ddbffcbb6c805f558972e6b16625ec58b83f1f3d5. // // Solidity: event MarketUpdated(uint128 marketId, uint256 price, int256 skew, uint256 size, int256 sizeDelta, int256 currentFundingRate, int256 currentFundingVelocity) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseMarketUpdated(log types.Log) (*PerpsMarketGoerliMarketUpdated, error) { - event := new(PerpsMarketGoerliMarketUpdated) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "MarketUpdated", log); err != nil { +func (_PerpsMarket *PerpsMarketFilterer) ParseMarketUpdated(log types.Log) (*PerpsMarketMarketUpdated, error) { + event := new(PerpsMarketMarketUpdated) + if err := _PerpsMarket.contract.UnpackLog(event, "MarketUpdated", log); err != nil { return nil, err } event.Raw = log return event, nil } -// PerpsMarketGoerliMaxCollateralAmountSetIterator is returned from FilterMaxCollateralAmountSet and is used to iterate over the raw logs and unpacked data for MaxCollateralAmountSet events raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliMaxCollateralAmountSetIterator struct { - Event *PerpsMarketGoerliMaxCollateralAmountSet // Event containing the contract specifics and raw log +// PerpsMarketMaxCollateralAmountSetIterator is returned from FilterMaxCollateralAmountSet and is used to iterate over the raw logs and unpacked data for MaxCollateralAmountSet events raised by the PerpsMarket contract. +type PerpsMarketMaxCollateralAmountSetIterator struct { + Event *PerpsMarketMaxCollateralAmountSet // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -5804,7 +5780,7 @@ type PerpsMarketGoerliMaxCollateralAmountSetIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *PerpsMarketGoerliMaxCollateralAmountSetIterator) Next() bool { +func (it *PerpsMarketMaxCollateralAmountSetIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -5813,7 +5789,7 @@ func (it *PerpsMarketGoerliMaxCollateralAmountSetIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliMaxCollateralAmountSet) + it.Event = new(PerpsMarketMaxCollateralAmountSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -5828,7 +5804,7 @@ func (it *PerpsMarketGoerliMaxCollateralAmountSetIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliMaxCollateralAmountSet) + it.Event = new(PerpsMarketMaxCollateralAmountSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -5844,19 +5820,19 @@ func (it *PerpsMarketGoerliMaxCollateralAmountSetIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *PerpsMarketGoerliMaxCollateralAmountSetIterator) Error() error { +func (it *PerpsMarketMaxCollateralAmountSetIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *PerpsMarketGoerliMaxCollateralAmountSetIterator) Close() error { +func (it *PerpsMarketMaxCollateralAmountSetIterator) Close() error { it.sub.Unsubscribe() return nil } -// PerpsMarketGoerliMaxCollateralAmountSet represents a MaxCollateralAmountSet event raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliMaxCollateralAmountSet struct { +// PerpsMarketMaxCollateralAmountSet represents a MaxCollateralAmountSet event raised by the PerpsMarket contract. +type PerpsMarketMaxCollateralAmountSet struct { SynthMarketId *big.Int CollateralAmount *big.Int Raw types.Log // Blockchain specific contextual infos @@ -5865,31 +5841,31 @@ type PerpsMarketGoerliMaxCollateralAmountSet struct { // FilterMaxCollateralAmountSet is a free log retrieval operation binding the contract event 0xa552ba0f2552ec13b62b479a41e6e7dfcef9f10aea18527e5a3e1b3963bf70d7. // // Solidity: event MaxCollateralAmountSet(uint128 indexed synthMarketId, uint256 collateralAmount) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterMaxCollateralAmountSet(opts *bind.FilterOpts, synthMarketId []*big.Int) (*PerpsMarketGoerliMaxCollateralAmountSetIterator, error) { +func (_PerpsMarket *PerpsMarketFilterer) FilterMaxCollateralAmountSet(opts *bind.FilterOpts, synthMarketId []*big.Int) (*PerpsMarketMaxCollateralAmountSetIterator, error) { var synthMarketIdRule []interface{} for _, synthMarketIdItem := range synthMarketId { synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) } - logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "MaxCollateralAmountSet", synthMarketIdRule) + logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "MaxCollateralAmountSet", synthMarketIdRule) if err != nil { return nil, err } - return &PerpsMarketGoerliMaxCollateralAmountSetIterator{contract: _PerpsMarketGoerli.contract, event: "MaxCollateralAmountSet", logs: logs, sub: sub}, nil + return &PerpsMarketMaxCollateralAmountSetIterator{contract: _PerpsMarket.contract, event: "MaxCollateralAmountSet", logs: logs, sub: sub}, nil } // WatchMaxCollateralAmountSet is a free log subscription operation binding the contract event 0xa552ba0f2552ec13b62b479a41e6e7dfcef9f10aea18527e5a3e1b3963bf70d7. // // Solidity: event MaxCollateralAmountSet(uint128 indexed synthMarketId, uint256 collateralAmount) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchMaxCollateralAmountSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketGoerliMaxCollateralAmountSet, synthMarketId []*big.Int) (event.Subscription, error) { +func (_PerpsMarket *PerpsMarketFilterer) WatchMaxCollateralAmountSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketMaxCollateralAmountSet, synthMarketId []*big.Int) (event.Subscription, error) { var synthMarketIdRule []interface{} for _, synthMarketIdItem := range synthMarketId { synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) } - logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "MaxCollateralAmountSet", synthMarketIdRule) + logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "MaxCollateralAmountSet", synthMarketIdRule) if err != nil { return nil, err } @@ -5899,8 +5875,8 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchMaxCollateralAmountSet select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(PerpsMarketGoerliMaxCollateralAmountSet) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "MaxCollateralAmountSet", log); err != nil { + event := new(PerpsMarketMaxCollateralAmountSet) + if err := _PerpsMarket.contract.UnpackLog(event, "MaxCollateralAmountSet", log); err != nil { return err } event.Raw = log @@ -5924,18 +5900,18 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchMaxCollateralAmountSet // ParseMaxCollateralAmountSet is a log parse operation binding the contract event 0xa552ba0f2552ec13b62b479a41e6e7dfcef9f10aea18527e5a3e1b3963bf70d7. // // Solidity: event MaxCollateralAmountSet(uint128 indexed synthMarketId, uint256 collateralAmount) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseMaxCollateralAmountSet(log types.Log) (*PerpsMarketGoerliMaxCollateralAmountSet, error) { - event := new(PerpsMarketGoerliMaxCollateralAmountSet) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "MaxCollateralAmountSet", log); err != nil { +func (_PerpsMarket *PerpsMarketFilterer) ParseMaxCollateralAmountSet(log types.Log) (*PerpsMarketMaxCollateralAmountSet, error) { + event := new(PerpsMarketMaxCollateralAmountSet) + if err := _PerpsMarket.contract.UnpackLog(event, "MaxCollateralAmountSet", log); err != nil { return nil, err } event.Raw = log return event, nil } -// PerpsMarketGoerliMaxLiquidationParametersSetIterator is returned from FilterMaxLiquidationParametersSet and is used to iterate over the raw logs and unpacked data for MaxLiquidationParametersSet events raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliMaxLiquidationParametersSetIterator struct { - Event *PerpsMarketGoerliMaxLiquidationParametersSet // Event containing the contract specifics and raw log +// PerpsMarketMaxLiquidationParametersSetIterator is returned from FilterMaxLiquidationParametersSet and is used to iterate over the raw logs and unpacked data for MaxLiquidationParametersSet events raised by the PerpsMarket contract. +type PerpsMarketMaxLiquidationParametersSetIterator struct { + Event *PerpsMarketMaxLiquidationParametersSet // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -5949,7 +5925,7 @@ type PerpsMarketGoerliMaxLiquidationParametersSetIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *PerpsMarketGoerliMaxLiquidationParametersSetIterator) Next() bool { +func (it *PerpsMarketMaxLiquidationParametersSetIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -5958,7 +5934,7 @@ func (it *PerpsMarketGoerliMaxLiquidationParametersSetIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliMaxLiquidationParametersSet) + it.Event = new(PerpsMarketMaxLiquidationParametersSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -5973,7 +5949,7 @@ func (it *PerpsMarketGoerliMaxLiquidationParametersSetIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliMaxLiquidationParametersSet) + it.Event = new(PerpsMarketMaxLiquidationParametersSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -5989,19 +5965,19 @@ func (it *PerpsMarketGoerliMaxLiquidationParametersSetIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *PerpsMarketGoerliMaxLiquidationParametersSetIterator) Error() error { +func (it *PerpsMarketMaxLiquidationParametersSetIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *PerpsMarketGoerliMaxLiquidationParametersSetIterator) Close() error { +func (it *PerpsMarketMaxLiquidationParametersSetIterator) Close() error { it.sub.Unsubscribe() return nil } -// PerpsMarketGoerliMaxLiquidationParametersSet represents a MaxLiquidationParametersSet event raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliMaxLiquidationParametersSet struct { +// PerpsMarketMaxLiquidationParametersSet represents a MaxLiquidationParametersSet event raised by the PerpsMarket contract. +type PerpsMarketMaxLiquidationParametersSet struct { MarketId *big.Int MaxLiquidationLimitAccumulationMultiplier *big.Int MaxSecondsInLiquidationWindow *big.Int @@ -6013,31 +5989,31 @@ type PerpsMarketGoerliMaxLiquidationParametersSet struct { // FilterMaxLiquidationParametersSet is a free log retrieval operation binding the contract event 0x9012ce377b7043d153d2cba3376efe7e1742af5acb7e38897362f392a7dc89ed. // // Solidity: event MaxLiquidationParametersSet(uint128 indexed marketId, uint256 maxLiquidationLimitAccumulationMultiplier, uint256 maxSecondsInLiquidationWindow, uint256 maxLiquidationPd, address endorsedLiquidator) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterMaxLiquidationParametersSet(opts *bind.FilterOpts, marketId []*big.Int) (*PerpsMarketGoerliMaxLiquidationParametersSetIterator, error) { +func (_PerpsMarket *PerpsMarketFilterer) FilterMaxLiquidationParametersSet(opts *bind.FilterOpts, marketId []*big.Int) (*PerpsMarketMaxLiquidationParametersSetIterator, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { marketIdRule = append(marketIdRule, marketIdItem) } - logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "MaxLiquidationParametersSet", marketIdRule) + logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "MaxLiquidationParametersSet", marketIdRule) if err != nil { return nil, err } - return &PerpsMarketGoerliMaxLiquidationParametersSetIterator{contract: _PerpsMarketGoerli.contract, event: "MaxLiquidationParametersSet", logs: logs, sub: sub}, nil + return &PerpsMarketMaxLiquidationParametersSetIterator{contract: _PerpsMarket.contract, event: "MaxLiquidationParametersSet", logs: logs, sub: sub}, nil } // WatchMaxLiquidationParametersSet is a free log subscription operation binding the contract event 0x9012ce377b7043d153d2cba3376efe7e1742af5acb7e38897362f392a7dc89ed. // // Solidity: event MaxLiquidationParametersSet(uint128 indexed marketId, uint256 maxLiquidationLimitAccumulationMultiplier, uint256 maxSecondsInLiquidationWindow, uint256 maxLiquidationPd, address endorsedLiquidator) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchMaxLiquidationParametersSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketGoerliMaxLiquidationParametersSet, marketId []*big.Int) (event.Subscription, error) { +func (_PerpsMarket *PerpsMarketFilterer) WatchMaxLiquidationParametersSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketMaxLiquidationParametersSet, marketId []*big.Int) (event.Subscription, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { marketIdRule = append(marketIdRule, marketIdItem) } - logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "MaxLiquidationParametersSet", marketIdRule) + logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "MaxLiquidationParametersSet", marketIdRule) if err != nil { return nil, err } @@ -6047,8 +6023,8 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchMaxLiquidationParamete select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(PerpsMarketGoerliMaxLiquidationParametersSet) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "MaxLiquidationParametersSet", log); err != nil { + event := new(PerpsMarketMaxLiquidationParametersSet) + if err := _PerpsMarket.contract.UnpackLog(event, "MaxLiquidationParametersSet", log); err != nil { return err } event.Raw = log @@ -6072,18 +6048,18 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchMaxLiquidationParamete // ParseMaxLiquidationParametersSet is a log parse operation binding the contract event 0x9012ce377b7043d153d2cba3376efe7e1742af5acb7e38897362f392a7dc89ed. // // Solidity: event MaxLiquidationParametersSet(uint128 indexed marketId, uint256 maxLiquidationLimitAccumulationMultiplier, uint256 maxSecondsInLiquidationWindow, uint256 maxLiquidationPd, address endorsedLiquidator) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseMaxLiquidationParametersSet(log types.Log) (*PerpsMarketGoerliMaxLiquidationParametersSet, error) { - event := new(PerpsMarketGoerliMaxLiquidationParametersSet) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "MaxLiquidationParametersSet", log); err != nil { +func (_PerpsMarket *PerpsMarketFilterer) ParseMaxLiquidationParametersSet(log types.Log) (*PerpsMarketMaxLiquidationParametersSet, error) { + event := new(PerpsMarketMaxLiquidationParametersSet) + if err := _PerpsMarket.contract.UnpackLog(event, "MaxLiquidationParametersSet", log); err != nil { return nil, err } event.Raw = log return event, nil } -// PerpsMarketGoerliMaxMarketSizeSetIterator is returned from FilterMaxMarketSizeSet and is used to iterate over the raw logs and unpacked data for MaxMarketSizeSet events raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliMaxMarketSizeSetIterator struct { - Event *PerpsMarketGoerliMaxMarketSizeSet // Event containing the contract specifics and raw log +// PerpsMarketMaxMarketSizeSetIterator is returned from FilterMaxMarketSizeSet and is used to iterate over the raw logs and unpacked data for MaxMarketSizeSet events raised by the PerpsMarket contract. +type PerpsMarketMaxMarketSizeSetIterator struct { + Event *PerpsMarketMaxMarketSizeSet // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -6097,7 +6073,7 @@ type PerpsMarketGoerliMaxMarketSizeSetIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *PerpsMarketGoerliMaxMarketSizeSetIterator) Next() bool { +func (it *PerpsMarketMaxMarketSizeSetIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -6106,7 +6082,7 @@ func (it *PerpsMarketGoerliMaxMarketSizeSetIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliMaxMarketSizeSet) + it.Event = new(PerpsMarketMaxMarketSizeSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -6121,7 +6097,7 @@ func (it *PerpsMarketGoerliMaxMarketSizeSetIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliMaxMarketSizeSet) + it.Event = new(PerpsMarketMaxMarketSizeSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -6137,19 +6113,19 @@ func (it *PerpsMarketGoerliMaxMarketSizeSetIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *PerpsMarketGoerliMaxMarketSizeSetIterator) Error() error { +func (it *PerpsMarketMaxMarketSizeSetIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *PerpsMarketGoerliMaxMarketSizeSetIterator) Close() error { +func (it *PerpsMarketMaxMarketSizeSetIterator) Close() error { it.sub.Unsubscribe() return nil } -// PerpsMarketGoerliMaxMarketSizeSet represents a MaxMarketSizeSet event raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliMaxMarketSizeSet struct { +// PerpsMarketMaxMarketSizeSet represents a MaxMarketSizeSet event raised by the PerpsMarket contract. +type PerpsMarketMaxMarketSizeSet struct { MarketId *big.Int MaxMarketSize *big.Int Raw types.Log // Blockchain specific contextual infos @@ -6158,31 +6134,31 @@ type PerpsMarketGoerliMaxMarketSizeSet struct { // FilterMaxMarketSizeSet is a free log retrieval operation binding the contract event 0xbd063bd3072a194b255163ab8dfd3400c4ab1cc641b920e7aaf1c11f92cd26cf. // // Solidity: event MaxMarketSizeSet(uint128 indexed marketId, uint256 maxMarketSize) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterMaxMarketSizeSet(opts *bind.FilterOpts, marketId []*big.Int) (*PerpsMarketGoerliMaxMarketSizeSetIterator, error) { +func (_PerpsMarket *PerpsMarketFilterer) FilterMaxMarketSizeSet(opts *bind.FilterOpts, marketId []*big.Int) (*PerpsMarketMaxMarketSizeSetIterator, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { marketIdRule = append(marketIdRule, marketIdItem) } - logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "MaxMarketSizeSet", marketIdRule) + logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "MaxMarketSizeSet", marketIdRule) if err != nil { return nil, err } - return &PerpsMarketGoerliMaxMarketSizeSetIterator{contract: _PerpsMarketGoerli.contract, event: "MaxMarketSizeSet", logs: logs, sub: sub}, nil + return &PerpsMarketMaxMarketSizeSetIterator{contract: _PerpsMarket.contract, event: "MaxMarketSizeSet", logs: logs, sub: sub}, nil } // WatchMaxMarketSizeSet is a free log subscription operation binding the contract event 0xbd063bd3072a194b255163ab8dfd3400c4ab1cc641b920e7aaf1c11f92cd26cf. // // Solidity: event MaxMarketSizeSet(uint128 indexed marketId, uint256 maxMarketSize) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchMaxMarketSizeSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketGoerliMaxMarketSizeSet, marketId []*big.Int) (event.Subscription, error) { +func (_PerpsMarket *PerpsMarketFilterer) WatchMaxMarketSizeSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketMaxMarketSizeSet, marketId []*big.Int) (event.Subscription, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { marketIdRule = append(marketIdRule, marketIdItem) } - logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "MaxMarketSizeSet", marketIdRule) + logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "MaxMarketSizeSet", marketIdRule) if err != nil { return nil, err } @@ -6192,8 +6168,8 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchMaxMarketSizeSet(opts select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(PerpsMarketGoerliMaxMarketSizeSet) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "MaxMarketSizeSet", log); err != nil { + event := new(PerpsMarketMaxMarketSizeSet) + if err := _PerpsMarket.contract.UnpackLog(event, "MaxMarketSizeSet", log); err != nil { return err } event.Raw = log @@ -6217,18 +6193,18 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchMaxMarketSizeSet(opts // ParseMaxMarketSizeSet is a log parse operation binding the contract event 0xbd063bd3072a194b255163ab8dfd3400c4ab1cc641b920e7aaf1c11f92cd26cf. // // Solidity: event MaxMarketSizeSet(uint128 indexed marketId, uint256 maxMarketSize) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseMaxMarketSizeSet(log types.Log) (*PerpsMarketGoerliMaxMarketSizeSet, error) { - event := new(PerpsMarketGoerliMaxMarketSizeSet) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "MaxMarketSizeSet", log); err != nil { +func (_PerpsMarket *PerpsMarketFilterer) ParseMaxMarketSizeSet(log types.Log) (*PerpsMarketMaxMarketSizeSet, error) { + event := new(PerpsMarketMaxMarketSizeSet) + if err := _PerpsMarket.contract.UnpackLog(event, "MaxMarketSizeSet", log); err != nil { return nil, err } event.Raw = log return event, nil } -// PerpsMarketGoerliOrderCommittedIterator is returned from FilterOrderCommitted and is used to iterate over the raw logs and unpacked data for OrderCommitted events raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliOrderCommittedIterator struct { - Event *PerpsMarketGoerliOrderCommitted // Event containing the contract specifics and raw log +// PerpsMarketOrderCommittedIterator is returned from FilterOrderCommitted and is used to iterate over the raw logs and unpacked data for OrderCommitted events raised by the PerpsMarket contract. +type PerpsMarketOrderCommittedIterator struct { + Event *PerpsMarketOrderCommitted // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -6242,7 +6218,7 @@ type PerpsMarketGoerliOrderCommittedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *PerpsMarketGoerliOrderCommittedIterator) Next() bool { +func (it *PerpsMarketOrderCommittedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -6251,7 +6227,7 @@ func (it *PerpsMarketGoerliOrderCommittedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliOrderCommitted) + it.Event = new(PerpsMarketOrderCommitted) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -6266,7 +6242,7 @@ func (it *PerpsMarketGoerliOrderCommittedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliOrderCommitted) + it.Event = new(PerpsMarketOrderCommitted) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -6282,19 +6258,19 @@ func (it *PerpsMarketGoerliOrderCommittedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *PerpsMarketGoerliOrderCommittedIterator) Error() error { +func (it *PerpsMarketOrderCommittedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *PerpsMarketGoerliOrderCommittedIterator) Close() error { +func (it *PerpsMarketOrderCommittedIterator) Close() error { it.sub.Unsubscribe() return nil } -// PerpsMarketGoerliOrderCommitted represents a OrderCommitted event raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliOrderCommitted struct { +// PerpsMarketOrderCommitted represents a OrderCommitted event raised by the PerpsMarket contract. +type PerpsMarketOrderCommitted struct { MarketId *big.Int AccountId *big.Int OrderType uint8 @@ -6310,7 +6286,7 @@ type PerpsMarketGoerliOrderCommitted struct { // FilterOrderCommitted is a free log retrieval operation binding the contract event 0xc74e8cf044fc959dcef2695245eb90f7e9fb5676532a71eec5b3c513d4793709. // // Solidity: event OrderCommitted(uint128 indexed marketId, uint128 indexed accountId, uint8 orderType, int128 sizeDelta, uint256 acceptablePrice, uint256 settlementTime, uint256 expirationTime, bytes32 indexed trackingCode, address sender) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterOrderCommitted(opts *bind.FilterOpts, marketId []*big.Int, accountId []*big.Int, trackingCode [][32]byte) (*PerpsMarketGoerliOrderCommittedIterator, error) { +func (_PerpsMarket *PerpsMarketFilterer) FilterOrderCommitted(opts *bind.FilterOpts, marketId []*big.Int, accountId []*big.Int, trackingCode [][32]byte) (*PerpsMarketOrderCommittedIterator, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { @@ -6326,17 +6302,17 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterOrderCommitted(opts * trackingCodeRule = append(trackingCodeRule, trackingCodeItem) } - logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "OrderCommitted", marketIdRule, accountIdRule, trackingCodeRule) + logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "OrderCommitted", marketIdRule, accountIdRule, trackingCodeRule) if err != nil { return nil, err } - return &PerpsMarketGoerliOrderCommittedIterator{contract: _PerpsMarketGoerli.contract, event: "OrderCommitted", logs: logs, sub: sub}, nil + return &PerpsMarketOrderCommittedIterator{contract: _PerpsMarket.contract, event: "OrderCommitted", logs: logs, sub: sub}, nil } // WatchOrderCommitted is a free log subscription operation binding the contract event 0xc74e8cf044fc959dcef2695245eb90f7e9fb5676532a71eec5b3c513d4793709. // // Solidity: event OrderCommitted(uint128 indexed marketId, uint128 indexed accountId, uint8 orderType, int128 sizeDelta, uint256 acceptablePrice, uint256 settlementTime, uint256 expirationTime, bytes32 indexed trackingCode, address sender) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchOrderCommitted(opts *bind.WatchOpts, sink chan<- *PerpsMarketGoerliOrderCommitted, marketId []*big.Int, accountId []*big.Int, trackingCode [][32]byte) (event.Subscription, error) { +func (_PerpsMarket *PerpsMarketFilterer) WatchOrderCommitted(opts *bind.WatchOpts, sink chan<- *PerpsMarketOrderCommitted, marketId []*big.Int, accountId []*big.Int, trackingCode [][32]byte) (event.Subscription, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { @@ -6352,7 +6328,7 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchOrderCommitted(opts *b trackingCodeRule = append(trackingCodeRule, trackingCodeItem) } - logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "OrderCommitted") + logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "OrderCommitted", marketIdRule, accountIdRule, trackingCodeRule) if err != nil { return nil, err } @@ -6362,8 +6338,8 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchOrderCommitted(opts *b select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(PerpsMarketGoerliOrderCommitted) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "OrderCommitted", log); err != nil { + event := new(PerpsMarketOrderCommitted) + if err := _PerpsMarket.contract.UnpackLog(event, "OrderCommitted", log); err != nil { return err } event.Raw = log @@ -6387,18 +6363,18 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchOrderCommitted(opts *b // ParseOrderCommitted is a log parse operation binding the contract event 0xc74e8cf044fc959dcef2695245eb90f7e9fb5676532a71eec5b3c513d4793709. // // Solidity: event OrderCommitted(uint128 indexed marketId, uint128 indexed accountId, uint8 orderType, int128 sizeDelta, uint256 acceptablePrice, uint256 settlementTime, uint256 expirationTime, bytes32 indexed trackingCode, address sender) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseOrderCommitted(log types.Log) (*PerpsMarketGoerliOrderCommitted, error) { - event := new(PerpsMarketGoerliOrderCommitted) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "OrderCommitted", log); err != nil { +func (_PerpsMarket *PerpsMarketFilterer) ParseOrderCommitted(log types.Log) (*PerpsMarketOrderCommitted, error) { + event := new(PerpsMarketOrderCommitted) + if err := _PerpsMarket.contract.UnpackLog(event, "OrderCommitted", log); err != nil { return nil, err } event.Raw = log return event, nil } -// PerpsMarketGoerliOrderFeesSetIterator is returned from FilterOrderFeesSet and is used to iterate over the raw logs and unpacked data for OrderFeesSet events raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliOrderFeesSetIterator struct { - Event *PerpsMarketGoerliOrderFeesSet // Event containing the contract specifics and raw log +// PerpsMarketOrderFeesSetIterator is returned from FilterOrderFeesSet and is used to iterate over the raw logs and unpacked data for OrderFeesSet events raised by the PerpsMarket contract. +type PerpsMarketOrderFeesSetIterator struct { + Event *PerpsMarketOrderFeesSet // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -6412,7 +6388,7 @@ type PerpsMarketGoerliOrderFeesSetIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *PerpsMarketGoerliOrderFeesSetIterator) Next() bool { +func (it *PerpsMarketOrderFeesSetIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -6421,7 +6397,7 @@ func (it *PerpsMarketGoerliOrderFeesSetIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliOrderFeesSet) + it.Event = new(PerpsMarketOrderFeesSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -6436,7 +6412,7 @@ func (it *PerpsMarketGoerliOrderFeesSetIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliOrderFeesSet) + it.Event = new(PerpsMarketOrderFeesSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -6452,19 +6428,19 @@ func (it *PerpsMarketGoerliOrderFeesSetIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *PerpsMarketGoerliOrderFeesSetIterator) Error() error { +func (it *PerpsMarketOrderFeesSetIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *PerpsMarketGoerliOrderFeesSetIterator) Close() error { +func (it *PerpsMarketOrderFeesSetIterator) Close() error { it.sub.Unsubscribe() return nil } -// PerpsMarketGoerliOrderFeesSet represents a OrderFeesSet event raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliOrderFeesSet struct { +// PerpsMarketOrderFeesSet represents a OrderFeesSet event raised by the PerpsMarket contract. +type PerpsMarketOrderFeesSet struct { MarketId *big.Int MakerFeeRatio *big.Int TakerFeeRatio *big.Int @@ -6474,31 +6450,31 @@ type PerpsMarketGoerliOrderFeesSet struct { // FilterOrderFeesSet is a free log retrieval operation binding the contract event 0x28969f156340ba9eb31589904eb174d3a4b6a37781fa6f7ad289d349d75dd1ee. // // Solidity: event OrderFeesSet(uint128 indexed marketId, uint256 makerFeeRatio, uint256 takerFeeRatio) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterOrderFeesSet(opts *bind.FilterOpts, marketId []*big.Int) (*PerpsMarketGoerliOrderFeesSetIterator, error) { +func (_PerpsMarket *PerpsMarketFilterer) FilterOrderFeesSet(opts *bind.FilterOpts, marketId []*big.Int) (*PerpsMarketOrderFeesSetIterator, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { marketIdRule = append(marketIdRule, marketIdItem) } - logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "OrderFeesSet", marketIdRule) + logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "OrderFeesSet", marketIdRule) if err != nil { return nil, err } - return &PerpsMarketGoerliOrderFeesSetIterator{contract: _PerpsMarketGoerli.contract, event: "OrderFeesSet", logs: logs, sub: sub}, nil + return &PerpsMarketOrderFeesSetIterator{contract: _PerpsMarket.contract, event: "OrderFeesSet", logs: logs, sub: sub}, nil } // WatchOrderFeesSet is a free log subscription operation binding the contract event 0x28969f156340ba9eb31589904eb174d3a4b6a37781fa6f7ad289d349d75dd1ee. // // Solidity: event OrderFeesSet(uint128 indexed marketId, uint256 makerFeeRatio, uint256 takerFeeRatio) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchOrderFeesSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketGoerliOrderFeesSet, marketId []*big.Int) (event.Subscription, error) { +func (_PerpsMarket *PerpsMarketFilterer) WatchOrderFeesSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketOrderFeesSet, marketId []*big.Int) (event.Subscription, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { marketIdRule = append(marketIdRule, marketIdItem) } - logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "OrderFeesSet", marketIdRule) + logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "OrderFeesSet", marketIdRule) if err != nil { return nil, err } @@ -6508,8 +6484,8 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchOrderFeesSet(opts *bin select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(PerpsMarketGoerliOrderFeesSet) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "OrderFeesSet", log); err != nil { + event := new(PerpsMarketOrderFeesSet) + if err := _PerpsMarket.contract.UnpackLog(event, "OrderFeesSet", log); err != nil { return err } event.Raw = log @@ -6533,18 +6509,18 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchOrderFeesSet(opts *bin // ParseOrderFeesSet is a log parse operation binding the contract event 0x28969f156340ba9eb31589904eb174d3a4b6a37781fa6f7ad289d349d75dd1ee. // // Solidity: event OrderFeesSet(uint128 indexed marketId, uint256 makerFeeRatio, uint256 takerFeeRatio) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseOrderFeesSet(log types.Log) (*PerpsMarketGoerliOrderFeesSet, error) { - event := new(PerpsMarketGoerliOrderFeesSet) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "OrderFeesSet", log); err != nil { +func (_PerpsMarket *PerpsMarketFilterer) ParseOrderFeesSet(log types.Log) (*PerpsMarketOrderFeesSet, error) { + event := new(PerpsMarketOrderFeesSet) + if err := _PerpsMarket.contract.UnpackLog(event, "OrderFeesSet", log); err != nil { return nil, err } event.Raw = log return event, nil } -// PerpsMarketGoerliOrderSettledIterator is returned from FilterOrderSettled and is used to iterate over the raw logs and unpacked data for OrderSettled events raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliOrderSettledIterator struct { - Event *PerpsMarketGoerliOrderSettled // Event containing the contract specifics and raw log +// PerpsMarketOrderSettledIterator is returned from FilterOrderSettled and is used to iterate over the raw logs and unpacked data for OrderSettled events raised by the PerpsMarket contract. +type PerpsMarketOrderSettledIterator struct { + Event *PerpsMarketOrderSettled // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -6558,7 +6534,7 @@ type PerpsMarketGoerliOrderSettledIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *PerpsMarketGoerliOrderSettledIterator) Next() bool { +func (it *PerpsMarketOrderSettledIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -6567,7 +6543,7 @@ func (it *PerpsMarketGoerliOrderSettledIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliOrderSettled) + it.Event = new(PerpsMarketOrderSettled) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -6582,7 +6558,7 @@ func (it *PerpsMarketGoerliOrderSettledIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliOrderSettled) + it.Event = new(PerpsMarketOrderSettled) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -6598,19 +6574,19 @@ func (it *PerpsMarketGoerliOrderSettledIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *PerpsMarketGoerliOrderSettledIterator) Error() error { +func (it *PerpsMarketOrderSettledIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *PerpsMarketGoerliOrderSettledIterator) Close() error { +func (it *PerpsMarketOrderSettledIterator) Close() error { it.sub.Unsubscribe() return nil } -// PerpsMarketGoerliOrderSettled represents a OrderSettled event raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliOrderSettled struct { +// PerpsMarketOrderSettled represents a OrderSettled event raised by the PerpsMarket contract. +type PerpsMarketOrderSettled struct { MarketId *big.Int AccountId *big.Int FillPrice *big.Int @@ -6630,7 +6606,7 @@ type PerpsMarketGoerliOrderSettled struct { // FilterOrderSettled is a free log retrieval operation binding the contract event 0x460080a757ec90719fe90ab2384c0196cdeed071a9fd7ce1ada43481d96b7db5. // // Solidity: event OrderSettled(uint128 indexed marketId, uint128 indexed accountId, uint256 fillPrice, int256 pnl, int256 accruedFunding, int128 sizeDelta, int128 newSize, uint256 totalFees, uint256 referralFees, uint256 collectedFees, uint256 settlementReward, bytes32 indexed trackingCode, address settler) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterOrderSettled(opts *bind.FilterOpts, marketId []*big.Int, accountId []*big.Int, trackingCode [][32]byte) (*PerpsMarketGoerliOrderSettledIterator, error) { +func (_PerpsMarket *PerpsMarketFilterer) FilterOrderSettled(opts *bind.FilterOpts, marketId []*big.Int, accountId []*big.Int, trackingCode [][32]byte) (*PerpsMarketOrderSettledIterator, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { @@ -6646,17 +6622,17 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterOrderSettled(opts *bi trackingCodeRule = append(trackingCodeRule, trackingCodeItem) } - logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "OrderSettled", marketIdRule, accountIdRule, trackingCodeRule) + logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "OrderSettled", marketIdRule, accountIdRule, trackingCodeRule) if err != nil { return nil, err } - return &PerpsMarketGoerliOrderSettledIterator{contract: _PerpsMarketGoerli.contract, event: "OrderSettled", logs: logs, sub: sub}, nil + return &PerpsMarketOrderSettledIterator{contract: _PerpsMarket.contract, event: "OrderSettled", logs: logs, sub: sub}, nil } // WatchOrderSettled is a free log subscription operation binding the contract event 0x460080a757ec90719fe90ab2384c0196cdeed071a9fd7ce1ada43481d96b7db5. // // Solidity: event OrderSettled(uint128 indexed marketId, uint128 indexed accountId, uint256 fillPrice, int256 pnl, int256 accruedFunding, int128 sizeDelta, int128 newSize, uint256 totalFees, uint256 referralFees, uint256 collectedFees, uint256 settlementReward, bytes32 indexed trackingCode, address settler) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchOrderSettled(opts *bind.WatchOpts, sink chan<- *PerpsMarketGoerliOrderSettled, marketId []*big.Int, accountId []*big.Int, trackingCode [][32]byte) (event.Subscription, error) { +func (_PerpsMarket *PerpsMarketFilterer) WatchOrderSettled(opts *bind.WatchOpts, sink chan<- *PerpsMarketOrderSettled, marketId []*big.Int, accountId []*big.Int, trackingCode [][32]byte) (event.Subscription, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { @@ -6672,7 +6648,7 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchOrderSettled(opts *bin trackingCodeRule = append(trackingCodeRule, trackingCodeItem) } - logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "OrderSettled") + logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "OrderSettled", marketIdRule, accountIdRule, trackingCodeRule) if err != nil { return nil, err } @@ -6682,8 +6658,8 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchOrderSettled(opts *bin select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(PerpsMarketGoerliOrderSettled) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "OrderSettled", log); err != nil { + event := new(PerpsMarketOrderSettled) + if err := _PerpsMarket.contract.UnpackLog(event, "OrderSettled", log); err != nil { return err } event.Raw = log @@ -6707,18 +6683,18 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchOrderSettled(opts *bin // ParseOrderSettled is a log parse operation binding the contract event 0x460080a757ec90719fe90ab2384c0196cdeed071a9fd7ce1ada43481d96b7db5. // // Solidity: event OrderSettled(uint128 indexed marketId, uint128 indexed accountId, uint256 fillPrice, int256 pnl, int256 accruedFunding, int128 sizeDelta, int128 newSize, uint256 totalFees, uint256 referralFees, uint256 collectedFees, uint256 settlementReward, bytes32 indexed trackingCode, address settler) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseOrderSettled(log types.Log) (*PerpsMarketGoerliOrderSettled, error) { - event := new(PerpsMarketGoerliOrderSettled) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "OrderSettled", log); err != nil { +func (_PerpsMarket *PerpsMarketFilterer) ParseOrderSettled(log types.Log) (*PerpsMarketOrderSettled, error) { + event := new(PerpsMarketOrderSettled) + if err := _PerpsMarket.contract.UnpackLog(event, "OrderSettled", log); err != nil { return nil, err } event.Raw = log return event, nil } -// PerpsMarketGoerliOwnerChangedIterator is returned from FilterOwnerChanged and is used to iterate over the raw logs and unpacked data for OwnerChanged events raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliOwnerChangedIterator struct { - Event *PerpsMarketGoerliOwnerChanged // Event containing the contract specifics and raw log +// PerpsMarketOwnerChangedIterator is returned from FilterOwnerChanged and is used to iterate over the raw logs and unpacked data for OwnerChanged events raised by the PerpsMarket contract. +type PerpsMarketOwnerChangedIterator struct { + Event *PerpsMarketOwnerChanged // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -6732,7 +6708,7 @@ type PerpsMarketGoerliOwnerChangedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *PerpsMarketGoerliOwnerChangedIterator) Next() bool { +func (it *PerpsMarketOwnerChangedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -6741,7 +6717,7 @@ func (it *PerpsMarketGoerliOwnerChangedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliOwnerChanged) + it.Event = new(PerpsMarketOwnerChanged) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -6756,7 +6732,7 @@ func (it *PerpsMarketGoerliOwnerChangedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliOwnerChanged) + it.Event = new(PerpsMarketOwnerChanged) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -6772,19 +6748,19 @@ func (it *PerpsMarketGoerliOwnerChangedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *PerpsMarketGoerliOwnerChangedIterator) Error() error { +func (it *PerpsMarketOwnerChangedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *PerpsMarketGoerliOwnerChangedIterator) Close() error { +func (it *PerpsMarketOwnerChangedIterator) Close() error { it.sub.Unsubscribe() return nil } -// PerpsMarketGoerliOwnerChanged represents a OwnerChanged event raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliOwnerChanged struct { +// PerpsMarketOwnerChanged represents a OwnerChanged event raised by the PerpsMarket contract. +type PerpsMarketOwnerChanged struct { OldOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos @@ -6793,21 +6769,21 @@ type PerpsMarketGoerliOwnerChanged struct { // FilterOwnerChanged is a free log retrieval operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c. // // Solidity: event OwnerChanged(address oldOwner, address newOwner) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterOwnerChanged(opts *bind.FilterOpts) (*PerpsMarketGoerliOwnerChangedIterator, error) { +func (_PerpsMarket *PerpsMarketFilterer) FilterOwnerChanged(opts *bind.FilterOpts) (*PerpsMarketOwnerChangedIterator, error) { - logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "OwnerChanged") + logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "OwnerChanged") if err != nil { return nil, err } - return &PerpsMarketGoerliOwnerChangedIterator{contract: _PerpsMarketGoerli.contract, event: "OwnerChanged", logs: logs, sub: sub}, nil + return &PerpsMarketOwnerChangedIterator{contract: _PerpsMarket.contract, event: "OwnerChanged", logs: logs, sub: sub}, nil } // WatchOwnerChanged is a free log subscription operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c. // // Solidity: event OwnerChanged(address oldOwner, address newOwner) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchOwnerChanged(opts *bind.WatchOpts, sink chan<- *PerpsMarketGoerliOwnerChanged) (event.Subscription, error) { +func (_PerpsMarket *PerpsMarketFilterer) WatchOwnerChanged(opts *bind.WatchOpts, sink chan<- *PerpsMarketOwnerChanged) (event.Subscription, error) { - logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "OwnerChanged") + logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "OwnerChanged") if err != nil { return nil, err } @@ -6817,8 +6793,8 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchOwnerChanged(opts *bin select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(PerpsMarketGoerliOwnerChanged) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "OwnerChanged", log); err != nil { + event := new(PerpsMarketOwnerChanged) + if err := _PerpsMarket.contract.UnpackLog(event, "OwnerChanged", log); err != nil { return err } event.Raw = log @@ -6842,18 +6818,18 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchOwnerChanged(opts *bin // ParseOwnerChanged is a log parse operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c. // // Solidity: event OwnerChanged(address oldOwner, address newOwner) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseOwnerChanged(log types.Log) (*PerpsMarketGoerliOwnerChanged, error) { - event := new(PerpsMarketGoerliOwnerChanged) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "OwnerChanged", log); err != nil { +func (_PerpsMarket *PerpsMarketFilterer) ParseOwnerChanged(log types.Log) (*PerpsMarketOwnerChanged, error) { + event := new(PerpsMarketOwnerChanged) + if err := _PerpsMarket.contract.UnpackLog(event, "OwnerChanged", log); err != nil { return nil, err } event.Raw = log return event, nil } -// PerpsMarketGoerliOwnerNominatedIterator is returned from FilterOwnerNominated and is used to iterate over the raw logs and unpacked data for OwnerNominated events raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliOwnerNominatedIterator struct { - Event *PerpsMarketGoerliOwnerNominated // Event containing the contract specifics and raw log +// PerpsMarketOwnerNominatedIterator is returned from FilterOwnerNominated and is used to iterate over the raw logs and unpacked data for OwnerNominated events raised by the PerpsMarket contract. +type PerpsMarketOwnerNominatedIterator struct { + Event *PerpsMarketOwnerNominated // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -6867,7 +6843,7 @@ type PerpsMarketGoerliOwnerNominatedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *PerpsMarketGoerliOwnerNominatedIterator) Next() bool { +func (it *PerpsMarketOwnerNominatedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -6876,7 +6852,7 @@ func (it *PerpsMarketGoerliOwnerNominatedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliOwnerNominated) + it.Event = new(PerpsMarketOwnerNominated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -6891,7 +6867,7 @@ func (it *PerpsMarketGoerliOwnerNominatedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliOwnerNominated) + it.Event = new(PerpsMarketOwnerNominated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -6907,19 +6883,19 @@ func (it *PerpsMarketGoerliOwnerNominatedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *PerpsMarketGoerliOwnerNominatedIterator) Error() error { +func (it *PerpsMarketOwnerNominatedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *PerpsMarketGoerliOwnerNominatedIterator) Close() error { +func (it *PerpsMarketOwnerNominatedIterator) Close() error { it.sub.Unsubscribe() return nil } -// PerpsMarketGoerliOwnerNominated represents a OwnerNominated event raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliOwnerNominated struct { +// PerpsMarketOwnerNominated represents a OwnerNominated event raised by the PerpsMarket contract. +type PerpsMarketOwnerNominated struct { NewOwner common.Address Raw types.Log // Blockchain specific contextual infos } @@ -6927,21 +6903,21 @@ type PerpsMarketGoerliOwnerNominated struct { // FilterOwnerNominated is a free log retrieval operation binding the contract event 0x906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22. // // Solidity: event OwnerNominated(address newOwner) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterOwnerNominated(opts *bind.FilterOpts) (*PerpsMarketGoerliOwnerNominatedIterator, error) { +func (_PerpsMarket *PerpsMarketFilterer) FilterOwnerNominated(opts *bind.FilterOpts) (*PerpsMarketOwnerNominatedIterator, error) { - logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "OwnerNominated") + logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "OwnerNominated") if err != nil { return nil, err } - return &PerpsMarketGoerliOwnerNominatedIterator{contract: _PerpsMarketGoerli.contract, event: "OwnerNominated", logs: logs, sub: sub}, nil + return &PerpsMarketOwnerNominatedIterator{contract: _PerpsMarket.contract, event: "OwnerNominated", logs: logs, sub: sub}, nil } // WatchOwnerNominated is a free log subscription operation binding the contract event 0x906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22. // // Solidity: event OwnerNominated(address newOwner) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchOwnerNominated(opts *bind.WatchOpts, sink chan<- *PerpsMarketGoerliOwnerNominated) (event.Subscription, error) { +func (_PerpsMarket *PerpsMarketFilterer) WatchOwnerNominated(opts *bind.WatchOpts, sink chan<- *PerpsMarketOwnerNominated) (event.Subscription, error) { - logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "OwnerNominated") + logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "OwnerNominated") if err != nil { return nil, err } @@ -6951,8 +6927,8 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchOwnerNominated(opts *b select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(PerpsMarketGoerliOwnerNominated) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "OwnerNominated", log); err != nil { + event := new(PerpsMarketOwnerNominated) + if err := _PerpsMarket.contract.UnpackLog(event, "OwnerNominated", log); err != nil { return err } event.Raw = log @@ -6976,18 +6952,18 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchOwnerNominated(opts *b // ParseOwnerNominated is a log parse operation binding the contract event 0x906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22. // // Solidity: event OwnerNominated(address newOwner) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseOwnerNominated(log types.Log) (*PerpsMarketGoerliOwnerNominated, error) { - event := new(PerpsMarketGoerliOwnerNominated) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "OwnerNominated", log); err != nil { +func (_PerpsMarket *PerpsMarketFilterer) ParseOwnerNominated(log types.Log) (*PerpsMarketOwnerNominated, error) { + event := new(PerpsMarketOwnerNominated) + if err := _PerpsMarket.contract.UnpackLog(event, "OwnerNominated", log); err != nil { return nil, err } event.Raw = log return event, nil } -// PerpsMarketGoerliPerAccountCapsSetIterator is returned from FilterPerAccountCapsSet and is used to iterate over the raw logs and unpacked data for PerAccountCapsSet events raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliPerAccountCapsSetIterator struct { - Event *PerpsMarketGoerliPerAccountCapsSet // Event containing the contract specifics and raw log +// PerpsMarketPerAccountCapsSetIterator is returned from FilterPerAccountCapsSet and is used to iterate over the raw logs and unpacked data for PerAccountCapsSet events raised by the PerpsMarket contract. +type PerpsMarketPerAccountCapsSetIterator struct { + Event *PerpsMarketPerAccountCapsSet // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -7001,7 +6977,7 @@ type PerpsMarketGoerliPerAccountCapsSetIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *PerpsMarketGoerliPerAccountCapsSetIterator) Next() bool { +func (it *PerpsMarketPerAccountCapsSetIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -7010,7 +6986,7 @@ func (it *PerpsMarketGoerliPerAccountCapsSetIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliPerAccountCapsSet) + it.Event = new(PerpsMarketPerAccountCapsSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -7025,7 +7001,7 @@ func (it *PerpsMarketGoerliPerAccountCapsSetIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliPerAccountCapsSet) + it.Event = new(PerpsMarketPerAccountCapsSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -7041,19 +7017,19 @@ func (it *PerpsMarketGoerliPerAccountCapsSetIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *PerpsMarketGoerliPerAccountCapsSetIterator) Error() error { +func (it *PerpsMarketPerAccountCapsSetIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *PerpsMarketGoerliPerAccountCapsSetIterator) Close() error { +func (it *PerpsMarketPerAccountCapsSetIterator) Close() error { it.sub.Unsubscribe() return nil } -// PerpsMarketGoerliPerAccountCapsSet represents a PerAccountCapsSet event raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliPerAccountCapsSet struct { +// PerpsMarketPerAccountCapsSet represents a PerAccountCapsSet event raised by the PerpsMarket contract. +type PerpsMarketPerAccountCapsSet struct { MaxPositionsPerAccount *big.Int MaxCollateralsPerAccount *big.Int Raw types.Log // Blockchain specific contextual infos @@ -7062,21 +7038,21 @@ type PerpsMarketGoerliPerAccountCapsSet struct { // FilterPerAccountCapsSet is a free log retrieval operation binding the contract event 0x3448c6d1990f2d48253b91394193cd11ce49f1653f2d03934af6d17195ffe34e. // // Solidity: event PerAccountCapsSet(uint128 maxPositionsPerAccount, uint128 maxCollateralsPerAccount) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterPerAccountCapsSet(opts *bind.FilterOpts) (*PerpsMarketGoerliPerAccountCapsSetIterator, error) { +func (_PerpsMarket *PerpsMarketFilterer) FilterPerAccountCapsSet(opts *bind.FilterOpts) (*PerpsMarketPerAccountCapsSetIterator, error) { - logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "PerAccountCapsSet") + logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "PerAccountCapsSet") if err != nil { return nil, err } - return &PerpsMarketGoerliPerAccountCapsSetIterator{contract: _PerpsMarketGoerli.contract, event: "PerAccountCapsSet", logs: logs, sub: sub}, nil + return &PerpsMarketPerAccountCapsSetIterator{contract: _PerpsMarket.contract, event: "PerAccountCapsSet", logs: logs, sub: sub}, nil } // WatchPerAccountCapsSet is a free log subscription operation binding the contract event 0x3448c6d1990f2d48253b91394193cd11ce49f1653f2d03934af6d17195ffe34e. // // Solidity: event PerAccountCapsSet(uint128 maxPositionsPerAccount, uint128 maxCollateralsPerAccount) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchPerAccountCapsSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketGoerliPerAccountCapsSet) (event.Subscription, error) { +func (_PerpsMarket *PerpsMarketFilterer) WatchPerAccountCapsSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketPerAccountCapsSet) (event.Subscription, error) { - logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "PerAccountCapsSet") + logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "PerAccountCapsSet") if err != nil { return nil, err } @@ -7086,8 +7062,8 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchPerAccountCapsSet(opts select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(PerpsMarketGoerliPerAccountCapsSet) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "PerAccountCapsSet", log); err != nil { + event := new(PerpsMarketPerAccountCapsSet) + if err := _PerpsMarket.contract.UnpackLog(event, "PerAccountCapsSet", log); err != nil { return err } event.Raw = log @@ -7111,18 +7087,18 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchPerAccountCapsSet(opts // ParsePerAccountCapsSet is a log parse operation binding the contract event 0x3448c6d1990f2d48253b91394193cd11ce49f1653f2d03934af6d17195ffe34e. // // Solidity: event PerAccountCapsSet(uint128 maxPositionsPerAccount, uint128 maxCollateralsPerAccount) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParsePerAccountCapsSet(log types.Log) (*PerpsMarketGoerliPerAccountCapsSet, error) { - event := new(PerpsMarketGoerliPerAccountCapsSet) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "PerAccountCapsSet", log); err != nil { +func (_PerpsMarket *PerpsMarketFilterer) ParsePerAccountCapsSet(log types.Log) (*PerpsMarketPerAccountCapsSet, error) { + event := new(PerpsMarketPerAccountCapsSet) + if err := _PerpsMarket.contract.UnpackLog(event, "PerAccountCapsSet", log); err != nil { return nil, err } event.Raw = log return event, nil } -// PerpsMarketGoerliPermissionGrantedIterator is returned from FilterPermissionGranted and is used to iterate over the raw logs and unpacked data for PermissionGranted events raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliPermissionGrantedIterator struct { - Event *PerpsMarketGoerliPermissionGranted // Event containing the contract specifics and raw log +// PerpsMarketPermissionGrantedIterator is returned from FilterPermissionGranted and is used to iterate over the raw logs and unpacked data for PermissionGranted events raised by the PerpsMarket contract. +type PerpsMarketPermissionGrantedIterator struct { + Event *PerpsMarketPermissionGranted // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -7136,7 +7112,7 @@ type PerpsMarketGoerliPermissionGrantedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *PerpsMarketGoerliPermissionGrantedIterator) Next() bool { +func (it *PerpsMarketPermissionGrantedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -7145,7 +7121,7 @@ func (it *PerpsMarketGoerliPermissionGrantedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliPermissionGranted) + it.Event = new(PerpsMarketPermissionGranted) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -7160,7 +7136,7 @@ func (it *PerpsMarketGoerliPermissionGrantedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliPermissionGranted) + it.Event = new(PerpsMarketPermissionGranted) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -7176,19 +7152,19 @@ func (it *PerpsMarketGoerliPermissionGrantedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *PerpsMarketGoerliPermissionGrantedIterator) Error() error { +func (it *PerpsMarketPermissionGrantedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *PerpsMarketGoerliPermissionGrantedIterator) Close() error { +func (it *PerpsMarketPermissionGrantedIterator) Close() error { it.sub.Unsubscribe() return nil } -// PerpsMarketGoerliPermissionGranted represents a PermissionGranted event raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliPermissionGranted struct { +// PerpsMarketPermissionGranted represents a PermissionGranted event raised by the PerpsMarket contract. +type PerpsMarketPermissionGranted struct { AccountId *big.Int Permission [32]byte User common.Address @@ -7199,7 +7175,7 @@ type PerpsMarketGoerliPermissionGranted struct { // FilterPermissionGranted is a free log retrieval operation binding the contract event 0x32ff7c3f84299a3543c1e89057e98ba962f4fbe7786c52289e184c57b9a36a50. // // Solidity: event PermissionGranted(uint128 indexed accountId, bytes32 indexed permission, address indexed user, address sender) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterPermissionGranted(opts *bind.FilterOpts, accountId []*big.Int, permission [][32]byte, user []common.Address) (*PerpsMarketGoerliPermissionGrantedIterator, error) { +func (_PerpsMarket *PerpsMarketFilterer) FilterPermissionGranted(opts *bind.FilterOpts, accountId []*big.Int, permission [][32]byte, user []common.Address) (*PerpsMarketPermissionGrantedIterator, error) { var accountIdRule []interface{} for _, accountIdItem := range accountId { @@ -7214,17 +7190,17 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterPermissionGranted(opt userRule = append(userRule, userItem) } - logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "PermissionGranted", accountIdRule, permissionRule, userRule) + logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "PermissionGranted", accountIdRule, permissionRule, userRule) if err != nil { return nil, err } - return &PerpsMarketGoerliPermissionGrantedIterator{contract: _PerpsMarketGoerli.contract, event: "PermissionGranted", logs: logs, sub: sub}, nil + return &PerpsMarketPermissionGrantedIterator{contract: _PerpsMarket.contract, event: "PermissionGranted", logs: logs, sub: sub}, nil } // WatchPermissionGranted is a free log subscription operation binding the contract event 0x32ff7c3f84299a3543c1e89057e98ba962f4fbe7786c52289e184c57b9a36a50. // // Solidity: event PermissionGranted(uint128 indexed accountId, bytes32 indexed permission, address indexed user, address sender) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchPermissionGranted(opts *bind.WatchOpts, sink chan<- *PerpsMarketGoerliPermissionGranted, accountId []*big.Int, permission [][32]byte, user []common.Address) (event.Subscription, error) { +func (_PerpsMarket *PerpsMarketFilterer) WatchPermissionGranted(opts *bind.WatchOpts, sink chan<- *PerpsMarketPermissionGranted, accountId []*big.Int, permission [][32]byte, user []common.Address) (event.Subscription, error) { var accountIdRule []interface{} for _, accountIdItem := range accountId { @@ -7239,7 +7215,7 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchPermissionGranted(opts userRule = append(userRule, userItem) } - logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "PermissionGranted") + logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "PermissionGranted", accountIdRule, permissionRule, userRule) if err != nil { return nil, err } @@ -7249,8 +7225,8 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchPermissionGranted(opts select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(PerpsMarketGoerliPermissionGranted) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "PermissionGranted", log); err != nil { + event := new(PerpsMarketPermissionGranted) + if err := _PerpsMarket.contract.UnpackLog(event, "PermissionGranted", log); err != nil { return err } event.Raw = log @@ -7274,18 +7250,18 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchPermissionGranted(opts // ParsePermissionGranted is a log parse operation binding the contract event 0x32ff7c3f84299a3543c1e89057e98ba962f4fbe7786c52289e184c57b9a36a50. // // Solidity: event PermissionGranted(uint128 indexed accountId, bytes32 indexed permission, address indexed user, address sender) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParsePermissionGranted(log types.Log) (*PerpsMarketGoerliPermissionGranted, error) { - event := new(PerpsMarketGoerliPermissionGranted) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "PermissionGranted", log); err != nil { +func (_PerpsMarket *PerpsMarketFilterer) ParsePermissionGranted(log types.Log) (*PerpsMarketPermissionGranted, error) { + event := new(PerpsMarketPermissionGranted) + if err := _PerpsMarket.contract.UnpackLog(event, "PermissionGranted", log); err != nil { return nil, err } event.Raw = log return event, nil } -// PerpsMarketGoerliPermissionRevokedIterator is returned from FilterPermissionRevoked and is used to iterate over the raw logs and unpacked data for PermissionRevoked events raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliPermissionRevokedIterator struct { - Event *PerpsMarketGoerliPermissionRevoked // Event containing the contract specifics and raw log +// PerpsMarketPermissionRevokedIterator is returned from FilterPermissionRevoked and is used to iterate over the raw logs and unpacked data for PermissionRevoked events raised by the PerpsMarket contract. +type PerpsMarketPermissionRevokedIterator struct { + Event *PerpsMarketPermissionRevoked // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -7299,7 +7275,7 @@ type PerpsMarketGoerliPermissionRevokedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *PerpsMarketGoerliPermissionRevokedIterator) Next() bool { +func (it *PerpsMarketPermissionRevokedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -7308,7 +7284,7 @@ func (it *PerpsMarketGoerliPermissionRevokedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliPermissionRevoked) + it.Event = new(PerpsMarketPermissionRevoked) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -7323,7 +7299,7 @@ func (it *PerpsMarketGoerliPermissionRevokedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliPermissionRevoked) + it.Event = new(PerpsMarketPermissionRevoked) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -7339,19 +7315,19 @@ func (it *PerpsMarketGoerliPermissionRevokedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *PerpsMarketGoerliPermissionRevokedIterator) Error() error { +func (it *PerpsMarketPermissionRevokedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *PerpsMarketGoerliPermissionRevokedIterator) Close() error { +func (it *PerpsMarketPermissionRevokedIterator) Close() error { it.sub.Unsubscribe() return nil } -// PerpsMarketGoerliPermissionRevoked represents a PermissionRevoked event raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliPermissionRevoked struct { +// PerpsMarketPermissionRevoked represents a PermissionRevoked event raised by the PerpsMarket contract. +type PerpsMarketPermissionRevoked struct { AccountId *big.Int Permission [32]byte User common.Address @@ -7362,7 +7338,7 @@ type PerpsMarketGoerliPermissionRevoked struct { // FilterPermissionRevoked is a free log retrieval operation binding the contract event 0x116c7e9cd2db316974fb473babcbcd625be1350842d0319e761d30aefb09a58a. // // Solidity: event PermissionRevoked(uint128 indexed accountId, bytes32 indexed permission, address indexed user, address sender) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterPermissionRevoked(opts *bind.FilterOpts, accountId []*big.Int, permission [][32]byte, user []common.Address) (*PerpsMarketGoerliPermissionRevokedIterator, error) { +func (_PerpsMarket *PerpsMarketFilterer) FilterPermissionRevoked(opts *bind.FilterOpts, accountId []*big.Int, permission [][32]byte, user []common.Address) (*PerpsMarketPermissionRevokedIterator, error) { var accountIdRule []interface{} for _, accountIdItem := range accountId { @@ -7377,17 +7353,17 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterPermissionRevoked(opt userRule = append(userRule, userItem) } - logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "PermissionRevoked", accountIdRule, permissionRule, userRule) + logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "PermissionRevoked", accountIdRule, permissionRule, userRule) if err != nil { return nil, err } - return &PerpsMarketGoerliPermissionRevokedIterator{contract: _PerpsMarketGoerli.contract, event: "PermissionRevoked", logs: logs, sub: sub}, nil + return &PerpsMarketPermissionRevokedIterator{contract: _PerpsMarket.contract, event: "PermissionRevoked", logs: logs, sub: sub}, nil } // WatchPermissionRevoked is a free log subscription operation binding the contract event 0x116c7e9cd2db316974fb473babcbcd625be1350842d0319e761d30aefb09a58a. // // Solidity: event PermissionRevoked(uint128 indexed accountId, bytes32 indexed permission, address indexed user, address sender) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchPermissionRevoked(opts *bind.WatchOpts, sink chan<- *PerpsMarketGoerliPermissionRevoked, accountId []*big.Int, permission [][32]byte, user []common.Address) (event.Subscription, error) { +func (_PerpsMarket *PerpsMarketFilterer) WatchPermissionRevoked(opts *bind.WatchOpts, sink chan<- *PerpsMarketPermissionRevoked, accountId []*big.Int, permission [][32]byte, user []common.Address) (event.Subscription, error) { var accountIdRule []interface{} for _, accountIdItem := range accountId { @@ -7402,7 +7378,7 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchPermissionRevoked(opts userRule = append(userRule, userItem) } - logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "PermissionRevoked") + logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "PermissionRevoked", accountIdRule, permissionRule, userRule) if err != nil { return nil, err } @@ -7412,8 +7388,8 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchPermissionRevoked(opts select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(PerpsMarketGoerliPermissionRevoked) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "PermissionRevoked", log); err != nil { + event := new(PerpsMarketPermissionRevoked) + if err := _PerpsMarket.contract.UnpackLog(event, "PermissionRevoked", log); err != nil { return err } event.Raw = log @@ -7437,18 +7413,18 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchPermissionRevoked(opts // ParsePermissionRevoked is a log parse operation binding the contract event 0x116c7e9cd2db316974fb473babcbcd625be1350842d0319e761d30aefb09a58a. // // Solidity: event PermissionRevoked(uint128 indexed accountId, bytes32 indexed permission, address indexed user, address sender) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParsePermissionRevoked(log types.Log) (*PerpsMarketGoerliPermissionRevoked, error) { - event := new(PerpsMarketGoerliPermissionRevoked) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "PermissionRevoked", log); err != nil { +func (_PerpsMarket *PerpsMarketFilterer) ParsePermissionRevoked(log types.Log) (*PerpsMarketPermissionRevoked, error) { + event := new(PerpsMarketPermissionRevoked) + if err := _PerpsMarket.contract.UnpackLog(event, "PermissionRevoked", log); err != nil { return nil, err } event.Raw = log return event, nil } -// PerpsMarketGoerliPositionLiquidatedIterator is returned from FilterPositionLiquidated and is used to iterate over the raw logs and unpacked data for PositionLiquidated events raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliPositionLiquidatedIterator struct { - Event *PerpsMarketGoerliPositionLiquidated // Event containing the contract specifics and raw log +// PerpsMarketPositionLiquidatedIterator is returned from FilterPositionLiquidated and is used to iterate over the raw logs and unpacked data for PositionLiquidated events raised by the PerpsMarket contract. +type PerpsMarketPositionLiquidatedIterator struct { + Event *PerpsMarketPositionLiquidated // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -7462,7 +7438,7 @@ type PerpsMarketGoerliPositionLiquidatedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *PerpsMarketGoerliPositionLiquidatedIterator) Next() bool { +func (it *PerpsMarketPositionLiquidatedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -7471,7 +7447,7 @@ func (it *PerpsMarketGoerliPositionLiquidatedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliPositionLiquidated) + it.Event = new(PerpsMarketPositionLiquidated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -7486,7 +7462,7 @@ func (it *PerpsMarketGoerliPositionLiquidatedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliPositionLiquidated) + it.Event = new(PerpsMarketPositionLiquidated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -7502,19 +7478,19 @@ func (it *PerpsMarketGoerliPositionLiquidatedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *PerpsMarketGoerliPositionLiquidatedIterator) Error() error { +func (it *PerpsMarketPositionLiquidatedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *PerpsMarketGoerliPositionLiquidatedIterator) Close() error { +func (it *PerpsMarketPositionLiquidatedIterator) Close() error { it.sub.Unsubscribe() return nil } -// PerpsMarketGoerliPositionLiquidated represents a PositionLiquidated event raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliPositionLiquidated struct { +// PerpsMarketPositionLiquidated represents a PositionLiquidated event raised by the PerpsMarket contract. +type PerpsMarketPositionLiquidated struct { AccountId *big.Int MarketId *big.Int AmountLiquidated *big.Int @@ -7525,7 +7501,7 @@ type PerpsMarketGoerliPositionLiquidated struct { // FilterPositionLiquidated is a free log retrieval operation binding the contract event 0xd583c0e2965aae317f4a9a6603c0c75602b9bc97dc7c5fc6446b0ba8d3ff1bb2. // // Solidity: event PositionLiquidated(uint128 indexed accountId, uint128 indexed marketId, uint256 amountLiquidated, int128 currentPositionSize) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterPositionLiquidated(opts *bind.FilterOpts, accountId []*big.Int, marketId []*big.Int) (*PerpsMarketGoerliPositionLiquidatedIterator, error) { +func (_PerpsMarket *PerpsMarketFilterer) FilterPositionLiquidated(opts *bind.FilterOpts, accountId []*big.Int, marketId []*big.Int) (*PerpsMarketPositionLiquidatedIterator, error) { var accountIdRule []interface{} for _, accountIdItem := range accountId { @@ -7536,17 +7512,17 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterPositionLiquidated(op marketIdRule = append(marketIdRule, marketIdItem) } - logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "PositionLiquidated", accountIdRule, marketIdRule) + logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "PositionLiquidated", accountIdRule, marketIdRule) if err != nil { return nil, err } - return &PerpsMarketGoerliPositionLiquidatedIterator{contract: _PerpsMarketGoerli.contract, event: "PositionLiquidated", logs: logs, sub: sub}, nil + return &PerpsMarketPositionLiquidatedIterator{contract: _PerpsMarket.contract, event: "PositionLiquidated", logs: logs, sub: sub}, nil } // WatchPositionLiquidated is a free log subscription operation binding the contract event 0xd583c0e2965aae317f4a9a6603c0c75602b9bc97dc7c5fc6446b0ba8d3ff1bb2. // // Solidity: event PositionLiquidated(uint128 indexed accountId, uint128 indexed marketId, uint256 amountLiquidated, int128 currentPositionSize) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchPositionLiquidated(opts *bind.WatchOpts, sink chan<- *PerpsMarketGoerliPositionLiquidated, accountId []*big.Int, marketId []*big.Int) (event.Subscription, error) { +func (_PerpsMarket *PerpsMarketFilterer) WatchPositionLiquidated(opts *bind.WatchOpts, sink chan<- *PerpsMarketPositionLiquidated, accountId []*big.Int, marketId []*big.Int) (event.Subscription, error) { var accountIdRule []interface{} for _, accountIdItem := range accountId { @@ -7557,7 +7533,7 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchPositionLiquidated(opt marketIdRule = append(marketIdRule, marketIdItem) } - logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "PositionLiquidated") + logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "PositionLiquidated", accountIdRule, marketIdRule) if err != nil { return nil, err } @@ -7567,8 +7543,8 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchPositionLiquidated(opt select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(PerpsMarketGoerliPositionLiquidated) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "PositionLiquidated", log); err != nil { + event := new(PerpsMarketPositionLiquidated) + if err := _PerpsMarket.contract.UnpackLog(event, "PositionLiquidated", log); err != nil { return err } event.Raw = log @@ -7592,18 +7568,18 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchPositionLiquidated(opt // ParsePositionLiquidated is a log parse operation binding the contract event 0xd583c0e2965aae317f4a9a6603c0c75602b9bc97dc7c5fc6446b0ba8d3ff1bb2. // // Solidity: event PositionLiquidated(uint128 indexed accountId, uint128 indexed marketId, uint256 amountLiquidated, int128 currentPositionSize) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParsePositionLiquidated(log types.Log) (*PerpsMarketGoerliPositionLiquidated, error) { - event := new(PerpsMarketGoerliPositionLiquidated) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "PositionLiquidated", log); err != nil { +func (_PerpsMarket *PerpsMarketFilterer) ParsePositionLiquidated(log types.Log) (*PerpsMarketPositionLiquidated, error) { + event := new(PerpsMarketPositionLiquidated) + if err := _PerpsMarket.contract.UnpackLog(event, "PositionLiquidated", log); err != nil { return nil, err } event.Raw = log return event, nil } -// PerpsMarketGoerliPreviousOrderExpiredIterator is returned from FilterPreviousOrderExpired and is used to iterate over the raw logs and unpacked data for PreviousOrderExpired events raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliPreviousOrderExpiredIterator struct { - Event *PerpsMarketGoerliPreviousOrderExpired // Event containing the contract specifics and raw log +// PerpsMarketPreviousOrderExpiredIterator is returned from FilterPreviousOrderExpired and is used to iterate over the raw logs and unpacked data for PreviousOrderExpired events raised by the PerpsMarket contract. +type PerpsMarketPreviousOrderExpiredIterator struct { + Event *PerpsMarketPreviousOrderExpired // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -7617,7 +7593,7 @@ type PerpsMarketGoerliPreviousOrderExpiredIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *PerpsMarketGoerliPreviousOrderExpiredIterator) Next() bool { +func (it *PerpsMarketPreviousOrderExpiredIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -7626,7 +7602,7 @@ func (it *PerpsMarketGoerliPreviousOrderExpiredIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliPreviousOrderExpired) + it.Event = new(PerpsMarketPreviousOrderExpired) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -7641,7 +7617,7 @@ func (it *PerpsMarketGoerliPreviousOrderExpiredIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliPreviousOrderExpired) + it.Event = new(PerpsMarketPreviousOrderExpired) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -7657,19 +7633,19 @@ func (it *PerpsMarketGoerliPreviousOrderExpiredIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *PerpsMarketGoerliPreviousOrderExpiredIterator) Error() error { +func (it *PerpsMarketPreviousOrderExpiredIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *PerpsMarketGoerliPreviousOrderExpiredIterator) Close() error { +func (it *PerpsMarketPreviousOrderExpiredIterator) Close() error { it.sub.Unsubscribe() return nil } -// PerpsMarketGoerliPreviousOrderExpired represents a PreviousOrderExpired event raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliPreviousOrderExpired struct { +// PerpsMarketPreviousOrderExpired represents a PreviousOrderExpired event raised by the PerpsMarket contract. +type PerpsMarketPreviousOrderExpired struct { MarketId *big.Int AccountId *big.Int SizeDelta *big.Int @@ -7682,7 +7658,7 @@ type PerpsMarketGoerliPreviousOrderExpired struct { // FilterPreviousOrderExpired is a free log retrieval operation binding the contract event 0x6d83c6751813f50325d75bc054621f83299659c5814d1e5fe6ac117860710dde. // // Solidity: event PreviousOrderExpired(uint128 indexed marketId, uint128 indexed accountId, int128 sizeDelta, uint256 acceptablePrice, uint256 settlementTime, bytes32 indexed trackingCode) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterPreviousOrderExpired(opts *bind.FilterOpts, marketId []*big.Int, accountId []*big.Int, trackingCode [][32]byte) (*PerpsMarketGoerliPreviousOrderExpiredIterator, error) { +func (_PerpsMarket *PerpsMarketFilterer) FilterPreviousOrderExpired(opts *bind.FilterOpts, marketId []*big.Int, accountId []*big.Int, trackingCode [][32]byte) (*PerpsMarketPreviousOrderExpiredIterator, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { @@ -7698,17 +7674,17 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterPreviousOrderExpired( trackingCodeRule = append(trackingCodeRule, trackingCodeItem) } - logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "PreviousOrderExpired", marketIdRule, accountIdRule, trackingCodeRule) + logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "PreviousOrderExpired", marketIdRule, accountIdRule, trackingCodeRule) if err != nil { return nil, err } - return &PerpsMarketGoerliPreviousOrderExpiredIterator{contract: _PerpsMarketGoerli.contract, event: "PreviousOrderExpired", logs: logs, sub: sub}, nil + return &PerpsMarketPreviousOrderExpiredIterator{contract: _PerpsMarket.contract, event: "PreviousOrderExpired", logs: logs, sub: sub}, nil } // WatchPreviousOrderExpired is a free log subscription operation binding the contract event 0x6d83c6751813f50325d75bc054621f83299659c5814d1e5fe6ac117860710dde. // // Solidity: event PreviousOrderExpired(uint128 indexed marketId, uint128 indexed accountId, int128 sizeDelta, uint256 acceptablePrice, uint256 settlementTime, bytes32 indexed trackingCode) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchPreviousOrderExpired(opts *bind.WatchOpts, sink chan<- *PerpsMarketGoerliPreviousOrderExpired, marketId []*big.Int, accountId []*big.Int, trackingCode [][32]byte) (event.Subscription, error) { +func (_PerpsMarket *PerpsMarketFilterer) WatchPreviousOrderExpired(opts *bind.WatchOpts, sink chan<- *PerpsMarketPreviousOrderExpired, marketId []*big.Int, accountId []*big.Int, trackingCode [][32]byte) (event.Subscription, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { @@ -7724,7 +7700,7 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchPreviousOrderExpired(o trackingCodeRule = append(trackingCodeRule, trackingCodeItem) } - logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "PreviousOrderExpired", marketIdRule, accountIdRule, trackingCodeRule) + logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "PreviousOrderExpired", marketIdRule, accountIdRule, trackingCodeRule) if err != nil { return nil, err } @@ -7734,8 +7710,8 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchPreviousOrderExpired(o select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(PerpsMarketGoerliPreviousOrderExpired) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "PreviousOrderExpired", log); err != nil { + event := new(PerpsMarketPreviousOrderExpired) + if err := _PerpsMarket.contract.UnpackLog(event, "PreviousOrderExpired", log); err != nil { return err } event.Raw = log @@ -7759,18 +7735,18 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchPreviousOrderExpired(o // ParsePreviousOrderExpired is a log parse operation binding the contract event 0x6d83c6751813f50325d75bc054621f83299659c5814d1e5fe6ac117860710dde. // // Solidity: event PreviousOrderExpired(uint128 indexed marketId, uint128 indexed accountId, int128 sizeDelta, uint256 acceptablePrice, uint256 settlementTime, bytes32 indexed trackingCode) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParsePreviousOrderExpired(log types.Log) (*PerpsMarketGoerliPreviousOrderExpired, error) { - event := new(PerpsMarketGoerliPreviousOrderExpired) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "PreviousOrderExpired", log); err != nil { +func (_PerpsMarket *PerpsMarketFilterer) ParsePreviousOrderExpired(log types.Log) (*PerpsMarketPreviousOrderExpired, error) { + event := new(PerpsMarketPreviousOrderExpired) + if err := _PerpsMarket.contract.UnpackLog(event, "PreviousOrderExpired", log); err != nil { return nil, err } event.Raw = log return event, nil } -// PerpsMarketGoerliReferrerShareUpdatedIterator is returned from FilterReferrerShareUpdated and is used to iterate over the raw logs and unpacked data for ReferrerShareUpdated events raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliReferrerShareUpdatedIterator struct { - Event *PerpsMarketGoerliReferrerShareUpdated // Event containing the contract specifics and raw log +// PerpsMarketReferrerShareUpdatedIterator is returned from FilterReferrerShareUpdated and is used to iterate over the raw logs and unpacked data for ReferrerShareUpdated events raised by the PerpsMarket contract. +type PerpsMarketReferrerShareUpdatedIterator struct { + Event *PerpsMarketReferrerShareUpdated // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -7784,7 +7760,7 @@ type PerpsMarketGoerliReferrerShareUpdatedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *PerpsMarketGoerliReferrerShareUpdatedIterator) Next() bool { +func (it *PerpsMarketReferrerShareUpdatedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -7793,7 +7769,7 @@ func (it *PerpsMarketGoerliReferrerShareUpdatedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliReferrerShareUpdated) + it.Event = new(PerpsMarketReferrerShareUpdated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -7808,7 +7784,7 @@ func (it *PerpsMarketGoerliReferrerShareUpdatedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliReferrerShareUpdated) + it.Event = new(PerpsMarketReferrerShareUpdated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -7824,19 +7800,19 @@ func (it *PerpsMarketGoerliReferrerShareUpdatedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *PerpsMarketGoerliReferrerShareUpdatedIterator) Error() error { +func (it *PerpsMarketReferrerShareUpdatedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *PerpsMarketGoerliReferrerShareUpdatedIterator) Close() error { +func (it *PerpsMarketReferrerShareUpdatedIterator) Close() error { it.sub.Unsubscribe() return nil } -// PerpsMarketGoerliReferrerShareUpdated represents a ReferrerShareUpdated event raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliReferrerShareUpdated struct { +// PerpsMarketReferrerShareUpdated represents a ReferrerShareUpdated event raised by the PerpsMarket contract. +type PerpsMarketReferrerShareUpdated struct { Referrer common.Address ShareRatioD18 *big.Int Raw types.Log // Blockchain specific contextual infos @@ -7845,21 +7821,21 @@ type PerpsMarketGoerliReferrerShareUpdated struct { // FilterReferrerShareUpdated is a free log retrieval operation binding the contract event 0xa225c555f4cd21a533ad4e01eaf30153c84ca28265d954a651410d3c1e56242c. // // Solidity: event ReferrerShareUpdated(address referrer, uint256 shareRatioD18) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterReferrerShareUpdated(opts *bind.FilterOpts) (*PerpsMarketGoerliReferrerShareUpdatedIterator, error) { +func (_PerpsMarket *PerpsMarketFilterer) FilterReferrerShareUpdated(opts *bind.FilterOpts) (*PerpsMarketReferrerShareUpdatedIterator, error) { - logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "ReferrerShareUpdated") + logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "ReferrerShareUpdated") if err != nil { return nil, err } - return &PerpsMarketGoerliReferrerShareUpdatedIterator{contract: _PerpsMarketGoerli.contract, event: "ReferrerShareUpdated", logs: logs, sub: sub}, nil + return &PerpsMarketReferrerShareUpdatedIterator{contract: _PerpsMarket.contract, event: "ReferrerShareUpdated", logs: logs, sub: sub}, nil } // WatchReferrerShareUpdated is a free log subscription operation binding the contract event 0xa225c555f4cd21a533ad4e01eaf30153c84ca28265d954a651410d3c1e56242c. // // Solidity: event ReferrerShareUpdated(address referrer, uint256 shareRatioD18) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchReferrerShareUpdated(opts *bind.WatchOpts, sink chan<- *PerpsMarketGoerliReferrerShareUpdated) (event.Subscription, error) { +func (_PerpsMarket *PerpsMarketFilterer) WatchReferrerShareUpdated(opts *bind.WatchOpts, sink chan<- *PerpsMarketReferrerShareUpdated) (event.Subscription, error) { - logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "ReferrerShareUpdated") + logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "ReferrerShareUpdated") if err != nil { return nil, err } @@ -7869,8 +7845,8 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchReferrerShareUpdated(o select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(PerpsMarketGoerliReferrerShareUpdated) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "ReferrerShareUpdated", log); err != nil { + event := new(PerpsMarketReferrerShareUpdated) + if err := _PerpsMarket.contract.UnpackLog(event, "ReferrerShareUpdated", log); err != nil { return err } event.Raw = log @@ -7894,18 +7870,18 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchReferrerShareUpdated(o // ParseReferrerShareUpdated is a log parse operation binding the contract event 0xa225c555f4cd21a533ad4e01eaf30153c84ca28265d954a651410d3c1e56242c. // // Solidity: event ReferrerShareUpdated(address referrer, uint256 shareRatioD18) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseReferrerShareUpdated(log types.Log) (*PerpsMarketGoerliReferrerShareUpdated, error) { - event := new(PerpsMarketGoerliReferrerShareUpdated) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "ReferrerShareUpdated", log); err != nil { +func (_PerpsMarket *PerpsMarketFilterer) ParseReferrerShareUpdated(log types.Log) (*PerpsMarketReferrerShareUpdated, error) { + event := new(PerpsMarketReferrerShareUpdated) + if err := _PerpsMarket.contract.UnpackLog(event, "ReferrerShareUpdated", log); err != nil { return nil, err } event.Raw = log return event, nil } -// PerpsMarketGoerliSettlementStrategyAddedIterator is returned from FilterSettlementStrategyAdded and is used to iterate over the raw logs and unpacked data for SettlementStrategyAdded events raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliSettlementStrategyAddedIterator struct { - Event *PerpsMarketGoerliSettlementStrategyAdded // Event containing the contract specifics and raw log +// PerpsMarketSettlementStrategyAddedIterator is returned from FilterSettlementStrategyAdded and is used to iterate over the raw logs and unpacked data for SettlementStrategyAdded events raised by the PerpsMarket contract. +type PerpsMarketSettlementStrategyAddedIterator struct { + Event *PerpsMarketSettlementStrategyAdded // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -7919,7 +7895,7 @@ type PerpsMarketGoerliSettlementStrategyAddedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *PerpsMarketGoerliSettlementStrategyAddedIterator) Next() bool { +func (it *PerpsMarketSettlementStrategyAddedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -7928,7 +7904,7 @@ func (it *PerpsMarketGoerliSettlementStrategyAddedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliSettlementStrategyAdded) + it.Event = new(PerpsMarketSettlementStrategyAdded) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -7943,7 +7919,7 @@ func (it *PerpsMarketGoerliSettlementStrategyAddedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliSettlementStrategyAdded) + it.Event = new(PerpsMarketSettlementStrategyAdded) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -7959,29 +7935,29 @@ func (it *PerpsMarketGoerliSettlementStrategyAddedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *PerpsMarketGoerliSettlementStrategyAddedIterator) Error() error { +func (it *PerpsMarketSettlementStrategyAddedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *PerpsMarketGoerliSettlementStrategyAddedIterator) Close() error { +func (it *PerpsMarketSettlementStrategyAddedIterator) Close() error { it.sub.Unsubscribe() return nil } -// PerpsMarketGoerliSettlementStrategyAdded represents a SettlementStrategyAdded event raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliSettlementStrategyAdded struct { +// PerpsMarketSettlementStrategyAdded represents a SettlementStrategyAdded event raised by the PerpsMarket contract. +type PerpsMarketSettlementStrategyAdded struct { MarketId *big.Int Strategy SettlementStrategyData StrategyId *big.Int Raw types.Log // Blockchain specific contextual infos } -// FilterSettlementStrategyAdded is a free log retrieval operation binding the contract event 0x6ea79b5183a0fa7ead0ea991cd5e5fa23e2da92b703bbe111479fffcdea58827. +// FilterSettlementStrategyAdded is a free log retrieval operation binding the contract event 0xba2ece29eb53e3cc8cbe3bb5e85c899c5b6a9b84edff3e0503309f22a05d48ef. // -// Solidity: event SettlementStrategyAdded(uint128 indexed marketId, (uint8,uint256,uint256,uint256,address,bytes32,string,uint256,uint256,bool) strategy, uint256 indexed strategyId) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterSettlementStrategyAdded(opts *bind.FilterOpts, marketId []*big.Int, strategyId []*big.Int) (*PerpsMarketGoerliSettlementStrategyAddedIterator, error) { +// Solidity: event SettlementStrategyAdded(uint128 indexed marketId, (uint8,uint256,uint256,uint256,address,bytes32,string,uint256,bool) strategy, uint256 indexed strategyId) +func (_PerpsMarket *PerpsMarketFilterer) FilterSettlementStrategyAdded(opts *bind.FilterOpts, marketId []*big.Int, strategyId []*big.Int) (*PerpsMarketSettlementStrategyAddedIterator, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { @@ -7993,17 +7969,17 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterSettlementStrategyAdd strategyIdRule = append(strategyIdRule, strategyIdItem) } - logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "SettlementStrategyAdded", marketIdRule, strategyIdRule) + logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "SettlementStrategyAdded", marketIdRule, strategyIdRule) if err != nil { return nil, err } - return &PerpsMarketGoerliSettlementStrategyAddedIterator{contract: _PerpsMarketGoerli.contract, event: "SettlementStrategyAdded", logs: logs, sub: sub}, nil + return &PerpsMarketSettlementStrategyAddedIterator{contract: _PerpsMarket.contract, event: "SettlementStrategyAdded", logs: logs, sub: sub}, nil } -// WatchSettlementStrategyAdded is a free log subscription operation binding the contract event 0x6ea79b5183a0fa7ead0ea991cd5e5fa23e2da92b703bbe111479fffcdea58827. +// WatchSettlementStrategyAdded is a free log subscription operation binding the contract event 0xba2ece29eb53e3cc8cbe3bb5e85c899c5b6a9b84edff3e0503309f22a05d48ef. // -// Solidity: event SettlementStrategyAdded(uint128 indexed marketId, (uint8,uint256,uint256,uint256,address,bytes32,string,uint256,uint256,bool) strategy, uint256 indexed strategyId) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchSettlementStrategyAdded(opts *bind.WatchOpts, sink chan<- *PerpsMarketGoerliSettlementStrategyAdded, marketId []*big.Int, strategyId []*big.Int) (event.Subscription, error) { +// Solidity: event SettlementStrategyAdded(uint128 indexed marketId, (uint8,uint256,uint256,uint256,address,bytes32,string,uint256,bool) strategy, uint256 indexed strategyId) +func (_PerpsMarket *PerpsMarketFilterer) WatchSettlementStrategyAdded(opts *bind.WatchOpts, sink chan<- *PerpsMarketSettlementStrategyAdded, marketId []*big.Int, strategyId []*big.Int) (event.Subscription, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { @@ -8015,7 +7991,7 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchSettlementStrategyAdde strategyIdRule = append(strategyIdRule, strategyIdItem) } - logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "SettlementStrategyAdded", marketIdRule, strategyIdRule) + logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "SettlementStrategyAdded", marketIdRule, strategyIdRule) if err != nil { return nil, err } @@ -8025,8 +8001,8 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchSettlementStrategyAdde select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(PerpsMarketGoerliSettlementStrategyAdded) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "SettlementStrategyAdded", log); err != nil { + event := new(PerpsMarketSettlementStrategyAdded) + if err := _PerpsMarket.contract.UnpackLog(event, "SettlementStrategyAdded", log); err != nil { return err } event.Raw = log @@ -8047,21 +8023,21 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchSettlementStrategyAdde }), nil } -// ParseSettlementStrategyAdded is a log parse operation binding the contract event 0x6ea79b5183a0fa7ead0ea991cd5e5fa23e2da92b703bbe111479fffcdea58827. +// ParseSettlementStrategyAdded is a log parse operation binding the contract event 0xba2ece29eb53e3cc8cbe3bb5e85c899c5b6a9b84edff3e0503309f22a05d48ef. // -// Solidity: event SettlementStrategyAdded(uint128 indexed marketId, (uint8,uint256,uint256,uint256,address,bytes32,string,uint256,uint256,bool) strategy, uint256 indexed strategyId) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseSettlementStrategyAdded(log types.Log) (*PerpsMarketGoerliSettlementStrategyAdded, error) { - event := new(PerpsMarketGoerliSettlementStrategyAdded) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "SettlementStrategyAdded", log); err != nil { +// Solidity: event SettlementStrategyAdded(uint128 indexed marketId, (uint8,uint256,uint256,uint256,address,bytes32,string,uint256,bool) strategy, uint256 indexed strategyId) +func (_PerpsMarket *PerpsMarketFilterer) ParseSettlementStrategyAdded(log types.Log) (*PerpsMarketSettlementStrategyAdded, error) { + event := new(PerpsMarketSettlementStrategyAdded) + if err := _PerpsMarket.contract.UnpackLog(event, "SettlementStrategyAdded", log); err != nil { return nil, err } event.Raw = log return event, nil } -// PerpsMarketGoerliSettlementStrategyEnabledIterator is returned from FilterSettlementStrategyEnabled and is used to iterate over the raw logs and unpacked data for SettlementStrategyEnabled events raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliSettlementStrategyEnabledIterator struct { - Event *PerpsMarketGoerliSettlementStrategyEnabled // Event containing the contract specifics and raw log +// PerpsMarketSettlementStrategyEnabledIterator is returned from FilterSettlementStrategyEnabled and is used to iterate over the raw logs and unpacked data for SettlementStrategyEnabled events raised by the PerpsMarket contract. +type PerpsMarketSettlementStrategyEnabledIterator struct { + Event *PerpsMarketSettlementStrategyEnabled // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -8075,7 +8051,7 @@ type PerpsMarketGoerliSettlementStrategyEnabledIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *PerpsMarketGoerliSettlementStrategyEnabledIterator) Next() bool { +func (it *PerpsMarketSettlementStrategyEnabledIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -8084,7 +8060,7 @@ func (it *PerpsMarketGoerliSettlementStrategyEnabledIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliSettlementStrategyEnabled) + it.Event = new(PerpsMarketSettlementStrategyEnabled) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -8099,7 +8075,7 @@ func (it *PerpsMarketGoerliSettlementStrategyEnabledIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliSettlementStrategyEnabled) + it.Event = new(PerpsMarketSettlementStrategyEnabled) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -8115,19 +8091,19 @@ func (it *PerpsMarketGoerliSettlementStrategyEnabledIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *PerpsMarketGoerliSettlementStrategyEnabledIterator) Error() error { +func (it *PerpsMarketSettlementStrategyEnabledIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *PerpsMarketGoerliSettlementStrategyEnabledIterator) Close() error { +func (it *PerpsMarketSettlementStrategyEnabledIterator) Close() error { it.sub.Unsubscribe() return nil } -// PerpsMarketGoerliSettlementStrategyEnabled represents a SettlementStrategyEnabled event raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliSettlementStrategyEnabled struct { +// PerpsMarketSettlementStrategyEnabled represents a SettlementStrategyEnabled event raised by the PerpsMarket contract. +type PerpsMarketSettlementStrategyEnabled struct { MarketId *big.Int StrategyId *big.Int Enabled bool @@ -8137,31 +8113,31 @@ type PerpsMarketGoerliSettlementStrategyEnabled struct { // FilterSettlementStrategyEnabled is a free log retrieval operation binding the contract event 0x4803eb4e51b45b2471b0c87d8c17e0c2d8961ae080cc4a930883eab155e0fa22. // // Solidity: event SettlementStrategyEnabled(uint128 indexed marketId, uint256 strategyId, bool enabled) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterSettlementStrategyEnabled(opts *bind.FilterOpts, marketId []*big.Int) (*PerpsMarketGoerliSettlementStrategyEnabledIterator, error) { +func (_PerpsMarket *PerpsMarketFilterer) FilterSettlementStrategyEnabled(opts *bind.FilterOpts, marketId []*big.Int) (*PerpsMarketSettlementStrategyEnabledIterator, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { marketIdRule = append(marketIdRule, marketIdItem) } - logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "SettlementStrategyEnabled", marketIdRule) + logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "SettlementStrategyEnabled", marketIdRule) if err != nil { return nil, err } - return &PerpsMarketGoerliSettlementStrategyEnabledIterator{contract: _PerpsMarketGoerli.contract, event: "SettlementStrategyEnabled", logs: logs, sub: sub}, nil + return &PerpsMarketSettlementStrategyEnabledIterator{contract: _PerpsMarket.contract, event: "SettlementStrategyEnabled", logs: logs, sub: sub}, nil } // WatchSettlementStrategyEnabled is a free log subscription operation binding the contract event 0x4803eb4e51b45b2471b0c87d8c17e0c2d8961ae080cc4a930883eab155e0fa22. // // Solidity: event SettlementStrategyEnabled(uint128 indexed marketId, uint256 strategyId, bool enabled) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchSettlementStrategyEnabled(opts *bind.WatchOpts, sink chan<- *PerpsMarketGoerliSettlementStrategyEnabled, marketId []*big.Int) (event.Subscription, error) { +func (_PerpsMarket *PerpsMarketFilterer) WatchSettlementStrategyEnabled(opts *bind.WatchOpts, sink chan<- *PerpsMarketSettlementStrategyEnabled, marketId []*big.Int) (event.Subscription, error) { var marketIdRule []interface{} for _, marketIdItem := range marketId { marketIdRule = append(marketIdRule, marketIdItem) } - logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "SettlementStrategyEnabled", marketIdRule) + logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "SettlementStrategyEnabled", marketIdRule) if err != nil { return nil, err } @@ -8171,8 +8147,8 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchSettlementStrategyEnab select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(PerpsMarketGoerliSettlementStrategyEnabled) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "SettlementStrategyEnabled", log); err != nil { + event := new(PerpsMarketSettlementStrategyEnabled) + if err := _PerpsMarket.contract.UnpackLog(event, "SettlementStrategyEnabled", log); err != nil { return err } event.Raw = log @@ -8196,18 +8172,18 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchSettlementStrategyEnab // ParseSettlementStrategyEnabled is a log parse operation binding the contract event 0x4803eb4e51b45b2471b0c87d8c17e0c2d8961ae080cc4a930883eab155e0fa22. // // Solidity: event SettlementStrategyEnabled(uint128 indexed marketId, uint256 strategyId, bool enabled) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseSettlementStrategyEnabled(log types.Log) (*PerpsMarketGoerliSettlementStrategyEnabled, error) { - event := new(PerpsMarketGoerliSettlementStrategyEnabled) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "SettlementStrategyEnabled", log); err != nil { +func (_PerpsMarket *PerpsMarketFilterer) ParseSettlementStrategyEnabled(log types.Log) (*PerpsMarketSettlementStrategyEnabled, error) { + event := new(PerpsMarketSettlementStrategyEnabled) + if err := _PerpsMarket.contract.UnpackLog(event, "SettlementStrategyEnabled", log); err != nil { return nil, err } event.Raw = log return event, nil } -// PerpsMarketGoerliSynthDeductionPrioritySetIterator is returned from FilterSynthDeductionPrioritySet and is used to iterate over the raw logs and unpacked data for SynthDeductionPrioritySet events raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliSynthDeductionPrioritySetIterator struct { - Event *PerpsMarketGoerliSynthDeductionPrioritySet // Event containing the contract specifics and raw log +// PerpsMarketSynthDeductionPrioritySetIterator is returned from FilterSynthDeductionPrioritySet and is used to iterate over the raw logs and unpacked data for SynthDeductionPrioritySet events raised by the PerpsMarket contract. +type PerpsMarketSynthDeductionPrioritySetIterator struct { + Event *PerpsMarketSynthDeductionPrioritySet // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -8221,7 +8197,7 @@ type PerpsMarketGoerliSynthDeductionPrioritySetIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *PerpsMarketGoerliSynthDeductionPrioritySetIterator) Next() bool { +func (it *PerpsMarketSynthDeductionPrioritySetIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -8230,7 +8206,7 @@ func (it *PerpsMarketGoerliSynthDeductionPrioritySetIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliSynthDeductionPrioritySet) + it.Event = new(PerpsMarketSynthDeductionPrioritySet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -8245,7 +8221,7 @@ func (it *PerpsMarketGoerliSynthDeductionPrioritySetIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliSynthDeductionPrioritySet) + it.Event = new(PerpsMarketSynthDeductionPrioritySet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -8261,19 +8237,19 @@ func (it *PerpsMarketGoerliSynthDeductionPrioritySetIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *PerpsMarketGoerliSynthDeductionPrioritySetIterator) Error() error { +func (it *PerpsMarketSynthDeductionPrioritySetIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *PerpsMarketGoerliSynthDeductionPrioritySetIterator) Close() error { +func (it *PerpsMarketSynthDeductionPrioritySetIterator) Close() error { it.sub.Unsubscribe() return nil } -// PerpsMarketGoerliSynthDeductionPrioritySet represents a SynthDeductionPrioritySet event raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliSynthDeductionPrioritySet struct { +// PerpsMarketSynthDeductionPrioritySet represents a SynthDeductionPrioritySet event raised by the PerpsMarket contract. +type PerpsMarketSynthDeductionPrioritySet struct { NewSynthDeductionPriority []*big.Int Raw types.Log // Blockchain specific contextual infos } @@ -8281,21 +8257,21 @@ type PerpsMarketGoerliSynthDeductionPrioritySet struct { // FilterSynthDeductionPrioritySet is a free log retrieval operation binding the contract event 0xa6beea856d32db9e9614e4af02fc7d6a3fa8337a13e4a48486c142a9a9a8ed8f. // // Solidity: event SynthDeductionPrioritySet(uint128[] newSynthDeductionPriority) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterSynthDeductionPrioritySet(opts *bind.FilterOpts) (*PerpsMarketGoerliSynthDeductionPrioritySetIterator, error) { +func (_PerpsMarket *PerpsMarketFilterer) FilterSynthDeductionPrioritySet(opts *bind.FilterOpts) (*PerpsMarketSynthDeductionPrioritySetIterator, error) { - logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "SynthDeductionPrioritySet") + logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "SynthDeductionPrioritySet") if err != nil { return nil, err } - return &PerpsMarketGoerliSynthDeductionPrioritySetIterator{contract: _PerpsMarketGoerli.contract, event: "SynthDeductionPrioritySet", logs: logs, sub: sub}, nil + return &PerpsMarketSynthDeductionPrioritySetIterator{contract: _PerpsMarket.contract, event: "SynthDeductionPrioritySet", logs: logs, sub: sub}, nil } // WatchSynthDeductionPrioritySet is a free log subscription operation binding the contract event 0xa6beea856d32db9e9614e4af02fc7d6a3fa8337a13e4a48486c142a9a9a8ed8f. // // Solidity: event SynthDeductionPrioritySet(uint128[] newSynthDeductionPriority) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchSynthDeductionPrioritySet(opts *bind.WatchOpts, sink chan<- *PerpsMarketGoerliSynthDeductionPrioritySet) (event.Subscription, error) { +func (_PerpsMarket *PerpsMarketFilterer) WatchSynthDeductionPrioritySet(opts *bind.WatchOpts, sink chan<- *PerpsMarketSynthDeductionPrioritySet) (event.Subscription, error) { - logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "SynthDeductionPrioritySet") + logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "SynthDeductionPrioritySet") if err != nil { return nil, err } @@ -8305,8 +8281,8 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchSynthDeductionPriority select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(PerpsMarketGoerliSynthDeductionPrioritySet) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "SynthDeductionPrioritySet", log); err != nil { + event := new(PerpsMarketSynthDeductionPrioritySet) + if err := _PerpsMarket.contract.UnpackLog(event, "SynthDeductionPrioritySet", log); err != nil { return err } event.Raw = log @@ -8330,18 +8306,18 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchSynthDeductionPriority // ParseSynthDeductionPrioritySet is a log parse operation binding the contract event 0xa6beea856d32db9e9614e4af02fc7d6a3fa8337a13e4a48486c142a9a9a8ed8f. // // Solidity: event SynthDeductionPrioritySet(uint128[] newSynthDeductionPriority) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseSynthDeductionPrioritySet(log types.Log) (*PerpsMarketGoerliSynthDeductionPrioritySet, error) { - event := new(PerpsMarketGoerliSynthDeductionPrioritySet) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "SynthDeductionPrioritySet", log); err != nil { +func (_PerpsMarket *PerpsMarketFilterer) ParseSynthDeductionPrioritySet(log types.Log) (*PerpsMarketSynthDeductionPrioritySet, error) { + event := new(PerpsMarketSynthDeductionPrioritySet) + if err := _PerpsMarket.contract.UnpackLog(event, "SynthDeductionPrioritySet", log); err != nil { return nil, err } event.Raw = log return event, nil } -// PerpsMarketGoerliUpgradedIterator is returned from FilterUpgraded and is used to iterate over the raw logs and unpacked data for Upgraded events raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliUpgradedIterator struct { - Event *PerpsMarketGoerliUpgraded // Event containing the contract specifics and raw log +// PerpsMarketUpgradedIterator is returned from FilterUpgraded and is used to iterate over the raw logs and unpacked data for Upgraded events raised by the PerpsMarket contract. +type PerpsMarketUpgradedIterator struct { + Event *PerpsMarketUpgraded // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -8355,7 +8331,7 @@ type PerpsMarketGoerliUpgradedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *PerpsMarketGoerliUpgradedIterator) Next() bool { +func (it *PerpsMarketUpgradedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -8364,7 +8340,7 @@ func (it *PerpsMarketGoerliUpgradedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliUpgraded) + it.Event = new(PerpsMarketUpgraded) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -8379,7 +8355,7 @@ func (it *PerpsMarketGoerliUpgradedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(PerpsMarketGoerliUpgraded) + it.Event = new(PerpsMarketUpgraded) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -8395,19 +8371,19 @@ func (it *PerpsMarketGoerliUpgradedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *PerpsMarketGoerliUpgradedIterator) Error() error { +func (it *PerpsMarketUpgradedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *PerpsMarketGoerliUpgradedIterator) Close() error { +func (it *PerpsMarketUpgradedIterator) Close() error { it.sub.Unsubscribe() return nil } -// PerpsMarketGoerliUpgraded represents a Upgraded event raised by the PerpsMarketGoerli contract. -type PerpsMarketGoerliUpgraded struct { +// PerpsMarketUpgraded represents a Upgraded event raised by the PerpsMarket contract. +type PerpsMarketUpgraded struct { Self common.Address Implementation common.Address Raw types.Log // Blockchain specific contextual infos @@ -8416,31 +8392,31 @@ type PerpsMarketGoerliUpgraded struct { // FilterUpgraded is a free log retrieval operation binding the contract event 0x5d611f318680d00598bb735d61bacf0c514c6b50e1e5ad30040a4df2b12791c7. // // Solidity: event Upgraded(address indexed self, address implementation) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterUpgraded(opts *bind.FilterOpts, self []common.Address) (*PerpsMarketGoerliUpgradedIterator, error) { +func (_PerpsMarket *PerpsMarketFilterer) FilterUpgraded(opts *bind.FilterOpts, self []common.Address) (*PerpsMarketUpgradedIterator, error) { var selfRule []interface{} for _, selfItem := range self { selfRule = append(selfRule, selfItem) } - logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "Upgraded", selfRule) + logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "Upgraded", selfRule) if err != nil { return nil, err } - return &PerpsMarketGoerliUpgradedIterator{contract: _PerpsMarketGoerli.contract, event: "Upgraded", logs: logs, sub: sub}, nil + return &PerpsMarketUpgradedIterator{contract: _PerpsMarket.contract, event: "Upgraded", logs: logs, sub: sub}, nil } // WatchUpgraded is a free log subscription operation binding the contract event 0x5d611f318680d00598bb735d61bacf0c514c6b50e1e5ad30040a4df2b12791c7. // // Solidity: event Upgraded(address indexed self, address implementation) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *PerpsMarketGoerliUpgraded, self []common.Address) (event.Subscription, error) { +func (_PerpsMarket *PerpsMarketFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *PerpsMarketUpgraded, self []common.Address) (event.Subscription, error) { var selfRule []interface{} for _, selfItem := range self { selfRule = append(selfRule, selfItem) } - logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "Upgraded", selfRule) + logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "Upgraded", selfRule) if err != nil { return nil, err } @@ -8450,8 +8426,8 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchUpgraded(opts *bind.Wa select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(PerpsMarketGoerliUpgraded) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "Upgraded", log); err != nil { + event := new(PerpsMarketUpgraded) + if err := _PerpsMarket.contract.UnpackLog(event, "Upgraded", log); err != nil { return err } event.Raw = log @@ -8475,9 +8451,9 @@ func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) WatchUpgraded(opts *bind.Wa // ParseUpgraded is a log parse operation binding the contract event 0x5d611f318680d00598bb735d61bacf0c514c6b50e1e5ad30040a4df2b12791c7. // // Solidity: event Upgraded(address indexed self, address implementation) -func (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseUpgraded(log types.Log) (*PerpsMarketGoerliUpgraded, error) { - event := new(PerpsMarketGoerliUpgraded) - if err := _PerpsMarketGoerli.contract.UnpackLog(event, "Upgraded", log); err != nil { +func (_PerpsMarket *PerpsMarketFilterer) ParseUpgraded(log types.Log) (*PerpsMarketUpgraded, error) { + event := new(PerpsMarketUpgraded) + if err := _PerpsMarket.contract.UnpackLog(event, "Upgraded", log); err != nil { return nil, err } event.Raw = log diff --git a/contracts/sUSDTGoerli/contract.go b/contracts/sUSDT/contract.go similarity index 60% rename from contracts/sUSDTGoerli/contract.go rename to contracts/sUSDT/contract.go index e352817..826b913 100644 --- a/contracts/sUSDTGoerli/contract.go +++ b/contracts/sUSDT/contract.go @@ -1,7 +1,7 @@ // Code generated - DO NOT EDIT. // This file is a generated binding and any manual changes will be lost. -package sUSDTGoerli +package sUSDT import ( "errors" @@ -29,113 +29,113 @@ var ( _ = abi.ConvertType ) -// SUSDTGoerliMetaData contains all meta data concerning the SUSDTGoerli contract. -var SUSDTGoerliMetaData = &bind.MetaData{ +// SUSDTMetaData contains all meta data concerning the SUSDT contract. +var SUSDTMetaData = &bind.MetaData{ ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"ImplementationIsSterile\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NoChange\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"contr\",\"type\":\"address\"}],\"name\":\"NotAContract\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"NotNominated\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"Unauthorized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UpgradeSimulationFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroAddress\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldOwner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnerChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnerNominated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"self\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getImplementation\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newNominatedOwner\",\"type\":\"address\"}],\"name\":\"nominateNewOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nominatedOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceNomination\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"simulateUpgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"upgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"expected\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"actual\",\"type\":\"bytes32\"}],\"name\":\"MismatchAssociatedSystemKind\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"MissingAssociatedSystem\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"kind\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"impl\",\"type\":\"address\"}],\"name\":\"AssociatedSystemSet\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"getAssociatedSystem\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"kind\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"impl\",\"type\":\"address\"}],\"name\":\"initOrUpgradeNft\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"uint8\",\"name\":\"decimals\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"impl\",\"type\":\"address\"}],\"name\":\"initOrUpgradeToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"endpoint\",\"type\":\"address\"}],\"name\":\"registerUnmanagedSystem\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"AlreadyInitialized\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"required\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"existing\",\"type\":\"uint256\"}],\"name\":\"InsufficientAllowance\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"required\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"existing\",\"type\":\"uint256\"}],\"name\":\"InsufficientBalance\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"parameter\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"reason\",\"type\":\"string\"}],\"name\":\"InvalidParameter\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"burn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"burn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"burnWithAllowance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"subtractedValue\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"addedValue\",\"type\":\"uint256\"}],\"name\":\"increaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"tokenName\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"tokenSymbol\",\"type\":\"string\"},{\"internalType\":\"uint8\",\"name\":\"tokenDecimals\",\"type\":\"uint8\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isInitialized\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"mint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"setAllowance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", } -// SUSDTGoerliABI is the input ABI used to generate the binding from. -// Deprecated: Use SUSDTGoerliMetaData.ABI instead. -var SUSDTGoerliABI = SUSDTGoerliMetaData.ABI +// SUSDTABI is the input ABI used to generate the binding from. +// Deprecated: Use SUSDTMetaData.ABI instead. +var SUSDTABI = SUSDTMetaData.ABI -// SUSDTGoerli is an auto generated Go binding around an Ethereum contract. -type SUSDTGoerli struct { - SUSDTGoerliCaller // Read-only binding to the contract - SUSDTGoerliTransactor // Write-only binding to the contract - SUSDTGoerliFilterer // Log filterer for contract events +// SUSDT is an auto generated Go binding around an Ethereum contract. +type SUSDT struct { + SUSDTCaller // Read-only binding to the contract + SUSDTTransactor // Write-only binding to the contract + SUSDTFilterer // Log filterer for contract events } -// SUSDTGoerliCaller is an auto generated read-only Go binding around an Ethereum contract. -type SUSDTGoerliCaller struct { +// SUSDTCaller is an auto generated read-only Go binding around an Ethereum contract. +type SUSDTCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// SUSDTGoerliTransactor is an auto generated write-only Go binding around an Ethereum contract. -type SUSDTGoerliTransactor struct { +// SUSDTTransactor is an auto generated write-only Go binding around an Ethereum contract. +type SUSDTTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// SUSDTGoerliFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type SUSDTGoerliFilterer struct { +// SUSDTFilterer is an auto generated log filtering Go binding around an Ethereum contract events. +type SUSDTFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// SUSDTGoerliSession is an auto generated Go binding around an Ethereum contract, +// SUSDTSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. -type SUSDTGoerliSession struct { - Contract *SUSDTGoerli // Generic contract binding to set the session for +type SUSDTSession struct { + Contract *SUSDT // 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 } -// SUSDTGoerliCallerSession is an auto generated read-only Go binding around an Ethereum contract, +// SUSDTCallerSession is an auto generated read-only Go binding around an Ethereum contract, // with pre-set call options. -type SUSDTGoerliCallerSession struct { - Contract *SUSDTGoerliCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session +type SUSDTCallerSession struct { + Contract *SUSDTCaller // Generic contract caller binding to set the session for + CallOpts bind.CallOpts // Call options to use throughout this session } -// SUSDTGoerliTransactorSession is an auto generated write-only Go binding around an Ethereum contract, +// SUSDTTransactorSession is an auto generated write-only Go binding around an Ethereum contract, // with pre-set transact options. -type SUSDTGoerliTransactorSession struct { - Contract *SUSDTGoerliTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session +type SUSDTTransactorSession struct { + Contract *SUSDTTransactor // Generic contract transactor binding to set the session for + TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session } -// SUSDTGoerliRaw is an auto generated low-level Go binding around an Ethereum contract. -type SUSDTGoerliRaw struct { - Contract *SUSDTGoerli // Generic contract binding to access the raw methods on +// SUSDTRaw is an auto generated low-level Go binding around an Ethereum contract. +type SUSDTRaw struct { + Contract *SUSDT // Generic contract binding to access the raw methods on } -// SUSDTGoerliCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type SUSDTGoerliCallerRaw struct { - Contract *SUSDTGoerliCaller // Generic read-only contract binding to access the raw methods on +// SUSDTCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. +type SUSDTCallerRaw struct { + Contract *SUSDTCaller // Generic read-only contract binding to access the raw methods on } -// SUSDTGoerliTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type SUSDTGoerliTransactorRaw struct { - Contract *SUSDTGoerliTransactor // Generic write-only contract binding to access the raw methods on +// SUSDTTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. +type SUSDTTransactorRaw struct { + Contract *SUSDTTransactor // Generic write-only contract binding to access the raw methods on } -// NewSUSDTGoerli creates a new instance of SUSDTGoerli, bound to a specific deployed contract. -func NewSUSDTGoerli(address common.Address, backend bind.ContractBackend) (*SUSDTGoerli, error) { - contract, err := bindSUSDTGoerli(address, backend, backend, backend) +// NewSUSDT creates a new instance of SUSDT, bound to a specific deployed contract. +func NewSUSDT(address common.Address, backend bind.ContractBackend) (*SUSDT, error) { + contract, err := bindSUSDT(address, backend, backend, backend) if err != nil { return nil, err } - return &SUSDTGoerli{SUSDTGoerliCaller: SUSDTGoerliCaller{contract: contract}, SUSDTGoerliTransactor: SUSDTGoerliTransactor{contract: contract}, SUSDTGoerliFilterer: SUSDTGoerliFilterer{contract: contract}}, nil + return &SUSDT{SUSDTCaller: SUSDTCaller{contract: contract}, SUSDTTransactor: SUSDTTransactor{contract: contract}, SUSDTFilterer: SUSDTFilterer{contract: contract}}, nil } -// NewSUSDTGoerliCaller creates a new read-only instance of SUSDTGoerli, bound to a specific deployed contract. -func NewSUSDTGoerliCaller(address common.Address, caller bind.ContractCaller) (*SUSDTGoerliCaller, error) { - contract, err := bindSUSDTGoerli(address, caller, nil, nil) +// NewSUSDTCaller creates a new read-only instance of SUSDT, bound to a specific deployed contract. +func NewSUSDTCaller(address common.Address, caller bind.ContractCaller) (*SUSDTCaller, error) { + contract, err := bindSUSDT(address, caller, nil, nil) if err != nil { return nil, err } - return &SUSDTGoerliCaller{contract: contract}, nil + return &SUSDTCaller{contract: contract}, nil } -// NewSUSDTGoerliTransactor creates a new write-only instance of SUSDTGoerli, bound to a specific deployed contract. -func NewSUSDTGoerliTransactor(address common.Address, transactor bind.ContractTransactor) (*SUSDTGoerliTransactor, error) { - contract, err := bindSUSDTGoerli(address, nil, transactor, nil) +// NewSUSDTTransactor creates a new write-only instance of SUSDT, bound to a specific deployed contract. +func NewSUSDTTransactor(address common.Address, transactor bind.ContractTransactor) (*SUSDTTransactor, error) { + contract, err := bindSUSDT(address, nil, transactor, nil) if err != nil { return nil, err } - return &SUSDTGoerliTransactor{contract: contract}, nil + return &SUSDTTransactor{contract: contract}, nil } -// NewSUSDTGoerliFilterer creates a new log filterer instance of SUSDTGoerli, bound to a specific deployed contract. -func NewSUSDTGoerliFilterer(address common.Address, filterer bind.ContractFilterer) (*SUSDTGoerliFilterer, error) { - contract, err := bindSUSDTGoerli(address, nil, nil, filterer) +// NewSUSDTFilterer creates a new log filterer instance of SUSDT, bound to a specific deployed contract. +func NewSUSDTFilterer(address common.Address, filterer bind.ContractFilterer) (*SUSDTFilterer, error) { + contract, err := bindSUSDT(address, nil, nil, filterer) if err != nil { return nil, err } - return &SUSDTGoerliFilterer{contract: contract}, nil + return &SUSDTFilterer{contract: contract}, nil } -// bindSUSDTGoerli binds a generic wrapper to an already deployed contract. -func bindSUSDTGoerli(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := SUSDTGoerliMetaData.GetAbi() +// bindSUSDT binds a generic wrapper to an already deployed contract. +func bindSUSDT(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { + parsed, err := SUSDTMetaData.GetAbi() if err != nil { return nil, err } @@ -146,46 +146,46 @@ func bindSUSDTGoerli(address common.Address, caller bind.ContractCaller, transac // 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 (_SUSDTGoerli *SUSDTGoerliRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _SUSDTGoerli.Contract.SUSDTGoerliCaller.contract.Call(opts, result, method, params...) +func (_SUSDT *SUSDTRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { + return _SUSDT.Contract.SUSDTCaller.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. -func (_SUSDTGoerli *SUSDTGoerliRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _SUSDTGoerli.Contract.SUSDTGoerliTransactor.contract.Transfer(opts) +func (_SUSDT *SUSDTRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { + return _SUSDT.Contract.SUSDTTransactor.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. -func (_SUSDTGoerli *SUSDTGoerliRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _SUSDTGoerli.Contract.SUSDTGoerliTransactor.contract.Transact(opts, method, params...) +func (_SUSDT *SUSDTRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { + return _SUSDT.Contract.SUSDTTransactor.contract.Transact(opts, method, params...) } // Call invokes the (constant) contract method with params as input values and // sets the output to result. The result type might be a single field for simple // returns, a slice of interfaces for anonymous returns and a struct for named // returns. -func (_SUSDTGoerli *SUSDTGoerliCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _SUSDTGoerli.Contract.contract.Call(opts, result, method, params...) +func (_SUSDT *SUSDTCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { + return _SUSDT.Contract.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. -func (_SUSDTGoerli *SUSDTGoerliTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _SUSDTGoerli.Contract.contract.Transfer(opts) +func (_SUSDT *SUSDTTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { + return _SUSDT.Contract.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. -func (_SUSDTGoerli *SUSDTGoerliTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _SUSDTGoerli.Contract.contract.Transact(opts, method, params...) +func (_SUSDT *SUSDTTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { + return _SUSDT.Contract.contract.Transact(opts, method, params...) } // Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. // // Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_SUSDTGoerli *SUSDTGoerliCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error) { +func (_SUSDT *SUSDTCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error) { var out []interface{} - err := _SUSDTGoerli.contract.Call(opts, &out, "allowance", owner, spender) + err := _SUSDT.contract.Call(opts, &out, "allowance", owner, spender) if err != nil { return *new(*big.Int), err @@ -200,23 +200,23 @@ func (_SUSDTGoerli *SUSDTGoerliCaller) Allowance(opts *bind.CallOpts, owner comm // Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. // // Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_SUSDTGoerli *SUSDTGoerliSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { - return _SUSDTGoerli.Contract.Allowance(&_SUSDTGoerli.CallOpts, owner, spender) +func (_SUSDT *SUSDTSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { + return _SUSDT.Contract.Allowance(&_SUSDT.CallOpts, owner, spender) } // Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. // // Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_SUSDTGoerli *SUSDTGoerliCallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { - return _SUSDTGoerli.Contract.Allowance(&_SUSDTGoerli.CallOpts, owner, spender) +func (_SUSDT *SUSDTCallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { + return _SUSDT.Contract.Allowance(&_SUSDT.CallOpts, owner, spender) } // BalanceOf is a free data retrieval call binding the contract method 0x70a08231. // // Solidity: function balanceOf(address owner) view returns(uint256) -func (_SUSDTGoerli *SUSDTGoerliCaller) BalanceOf(opts *bind.CallOpts, owner common.Address) (*big.Int, error) { +func (_SUSDT *SUSDTCaller) BalanceOf(opts *bind.CallOpts, owner common.Address) (*big.Int, error) { var out []interface{} - err := _SUSDTGoerli.contract.Call(opts, &out, "balanceOf", owner) + err := _SUSDT.contract.Call(opts, &out, "balanceOf", owner) if err != nil { return *new(*big.Int), err @@ -231,23 +231,23 @@ func (_SUSDTGoerli *SUSDTGoerliCaller) BalanceOf(opts *bind.CallOpts, owner comm // BalanceOf is a free data retrieval call binding the contract method 0x70a08231. // // Solidity: function balanceOf(address owner) view returns(uint256) -func (_SUSDTGoerli *SUSDTGoerliSession) BalanceOf(owner common.Address) (*big.Int, error) { - return _SUSDTGoerli.Contract.BalanceOf(&_SUSDTGoerli.CallOpts, owner) +func (_SUSDT *SUSDTSession) BalanceOf(owner common.Address) (*big.Int, error) { + return _SUSDT.Contract.BalanceOf(&_SUSDT.CallOpts, owner) } // BalanceOf is a free data retrieval call binding the contract method 0x70a08231. // // Solidity: function balanceOf(address owner) view returns(uint256) -func (_SUSDTGoerli *SUSDTGoerliCallerSession) BalanceOf(owner common.Address) (*big.Int, error) { - return _SUSDTGoerli.Contract.BalanceOf(&_SUSDTGoerli.CallOpts, owner) +func (_SUSDT *SUSDTCallerSession) BalanceOf(owner common.Address) (*big.Int, error) { + return _SUSDT.Contract.BalanceOf(&_SUSDT.CallOpts, owner) } // Decimals is a free data retrieval call binding the contract method 0x313ce567. // // Solidity: function decimals() view returns(uint8) -func (_SUSDTGoerli *SUSDTGoerliCaller) Decimals(opts *bind.CallOpts) (uint8, error) { +func (_SUSDT *SUSDTCaller) Decimals(opts *bind.CallOpts) (uint8, error) { var out []interface{} - err := _SUSDTGoerli.contract.Call(opts, &out, "decimals") + err := _SUSDT.contract.Call(opts, &out, "decimals") if err != nil { return *new(uint8), err @@ -262,26 +262,26 @@ func (_SUSDTGoerli *SUSDTGoerliCaller) Decimals(opts *bind.CallOpts) (uint8, err // Decimals is a free data retrieval call binding the contract method 0x313ce567. // // Solidity: function decimals() view returns(uint8) -func (_SUSDTGoerli *SUSDTGoerliSession) Decimals() (uint8, error) { - return _SUSDTGoerli.Contract.Decimals(&_SUSDTGoerli.CallOpts) +func (_SUSDT *SUSDTSession) Decimals() (uint8, error) { + return _SUSDT.Contract.Decimals(&_SUSDT.CallOpts) } // Decimals is a free data retrieval call binding the contract method 0x313ce567. // // Solidity: function decimals() view returns(uint8) -func (_SUSDTGoerli *SUSDTGoerliCallerSession) Decimals() (uint8, error) { - return _SUSDTGoerli.Contract.Decimals(&_SUSDTGoerli.CallOpts) +func (_SUSDT *SUSDTCallerSession) Decimals() (uint8, error) { + return _SUSDT.Contract.Decimals(&_SUSDT.CallOpts) } // GetAssociatedSystem is a free data retrieval call binding the contract method 0x60988e09. // // Solidity: function getAssociatedSystem(bytes32 id) view returns(address addr, bytes32 kind) -func (_SUSDTGoerli *SUSDTGoerliCaller) GetAssociatedSystem(opts *bind.CallOpts, id [32]byte) (struct { +func (_SUSDT *SUSDTCaller) GetAssociatedSystem(opts *bind.CallOpts, id [32]byte) (struct { Addr common.Address Kind [32]byte }, error) { var out []interface{} - err := _SUSDTGoerli.contract.Call(opts, &out, "getAssociatedSystem", id) + err := _SUSDT.contract.Call(opts, &out, "getAssociatedSystem", id) outstruct := new(struct { Addr common.Address @@ -301,29 +301,29 @@ func (_SUSDTGoerli *SUSDTGoerliCaller) GetAssociatedSystem(opts *bind.CallOpts, // GetAssociatedSystem is a free data retrieval call binding the contract method 0x60988e09. // // Solidity: function getAssociatedSystem(bytes32 id) view returns(address addr, bytes32 kind) -func (_SUSDTGoerli *SUSDTGoerliSession) GetAssociatedSystem(id [32]byte) (struct { +func (_SUSDT *SUSDTSession) GetAssociatedSystem(id [32]byte) (struct { Addr common.Address Kind [32]byte }, error) { - return _SUSDTGoerli.Contract.GetAssociatedSystem(&_SUSDTGoerli.CallOpts, id) + return _SUSDT.Contract.GetAssociatedSystem(&_SUSDT.CallOpts, id) } // GetAssociatedSystem is a free data retrieval call binding the contract method 0x60988e09. // // Solidity: function getAssociatedSystem(bytes32 id) view returns(address addr, bytes32 kind) -func (_SUSDTGoerli *SUSDTGoerliCallerSession) GetAssociatedSystem(id [32]byte) (struct { +func (_SUSDT *SUSDTCallerSession) GetAssociatedSystem(id [32]byte) (struct { Addr common.Address Kind [32]byte }, error) { - return _SUSDTGoerli.Contract.GetAssociatedSystem(&_SUSDTGoerli.CallOpts, id) + return _SUSDT.Contract.GetAssociatedSystem(&_SUSDT.CallOpts, id) } // GetImplementation is a free data retrieval call binding the contract method 0xaaf10f42. // // Solidity: function getImplementation() view returns(address) -func (_SUSDTGoerli *SUSDTGoerliCaller) GetImplementation(opts *bind.CallOpts) (common.Address, error) { +func (_SUSDT *SUSDTCaller) GetImplementation(opts *bind.CallOpts) (common.Address, error) { var out []interface{} - err := _SUSDTGoerli.contract.Call(opts, &out, "getImplementation") + err := _SUSDT.contract.Call(opts, &out, "getImplementation") if err != nil { return *new(common.Address), err @@ -338,23 +338,23 @@ func (_SUSDTGoerli *SUSDTGoerliCaller) GetImplementation(opts *bind.CallOpts) (c // GetImplementation is a free data retrieval call binding the contract method 0xaaf10f42. // // Solidity: function getImplementation() view returns(address) -func (_SUSDTGoerli *SUSDTGoerliSession) GetImplementation() (common.Address, error) { - return _SUSDTGoerli.Contract.GetImplementation(&_SUSDTGoerli.CallOpts) +func (_SUSDT *SUSDTSession) GetImplementation() (common.Address, error) { + return _SUSDT.Contract.GetImplementation(&_SUSDT.CallOpts) } // GetImplementation is a free data retrieval call binding the contract method 0xaaf10f42. // // Solidity: function getImplementation() view returns(address) -func (_SUSDTGoerli *SUSDTGoerliCallerSession) GetImplementation() (common.Address, error) { - return _SUSDTGoerli.Contract.GetImplementation(&_SUSDTGoerli.CallOpts) +func (_SUSDT *SUSDTCallerSession) GetImplementation() (common.Address, error) { + return _SUSDT.Contract.GetImplementation(&_SUSDT.CallOpts) } // IsInitialized is a free data retrieval call binding the contract method 0x392e53cd. // // Solidity: function isInitialized() view returns(bool) -func (_SUSDTGoerli *SUSDTGoerliCaller) IsInitialized(opts *bind.CallOpts) (bool, error) { +func (_SUSDT *SUSDTCaller) IsInitialized(opts *bind.CallOpts) (bool, error) { var out []interface{} - err := _SUSDTGoerli.contract.Call(opts, &out, "isInitialized") + err := _SUSDT.contract.Call(opts, &out, "isInitialized") if err != nil { return *new(bool), err @@ -369,23 +369,23 @@ func (_SUSDTGoerli *SUSDTGoerliCaller) IsInitialized(opts *bind.CallOpts) (bool, // IsInitialized is a free data retrieval call binding the contract method 0x392e53cd. // // Solidity: function isInitialized() view returns(bool) -func (_SUSDTGoerli *SUSDTGoerliSession) IsInitialized() (bool, error) { - return _SUSDTGoerli.Contract.IsInitialized(&_SUSDTGoerli.CallOpts) +func (_SUSDT *SUSDTSession) IsInitialized() (bool, error) { + return _SUSDT.Contract.IsInitialized(&_SUSDT.CallOpts) } // IsInitialized is a free data retrieval call binding the contract method 0x392e53cd. // // Solidity: function isInitialized() view returns(bool) -func (_SUSDTGoerli *SUSDTGoerliCallerSession) IsInitialized() (bool, error) { - return _SUSDTGoerli.Contract.IsInitialized(&_SUSDTGoerli.CallOpts) +func (_SUSDT *SUSDTCallerSession) IsInitialized() (bool, error) { + return _SUSDT.Contract.IsInitialized(&_SUSDT.CallOpts) } // Name is a free data retrieval call binding the contract method 0x06fdde03. // // Solidity: function name() view returns(string) -func (_SUSDTGoerli *SUSDTGoerliCaller) Name(opts *bind.CallOpts) (string, error) { +func (_SUSDT *SUSDTCaller) Name(opts *bind.CallOpts) (string, error) { var out []interface{} - err := _SUSDTGoerli.contract.Call(opts, &out, "name") + err := _SUSDT.contract.Call(opts, &out, "name") if err != nil { return *new(string), err @@ -400,23 +400,23 @@ func (_SUSDTGoerli *SUSDTGoerliCaller) Name(opts *bind.CallOpts) (string, error) // Name is a free data retrieval call binding the contract method 0x06fdde03. // // Solidity: function name() view returns(string) -func (_SUSDTGoerli *SUSDTGoerliSession) Name() (string, error) { - return _SUSDTGoerli.Contract.Name(&_SUSDTGoerli.CallOpts) +func (_SUSDT *SUSDTSession) Name() (string, error) { + return _SUSDT.Contract.Name(&_SUSDT.CallOpts) } // Name is a free data retrieval call binding the contract method 0x06fdde03. // // Solidity: function name() view returns(string) -func (_SUSDTGoerli *SUSDTGoerliCallerSession) Name() (string, error) { - return _SUSDTGoerli.Contract.Name(&_SUSDTGoerli.CallOpts) +func (_SUSDT *SUSDTCallerSession) Name() (string, error) { + return _SUSDT.Contract.Name(&_SUSDT.CallOpts) } // NominatedOwner is a free data retrieval call binding the contract method 0x53a47bb7. // // Solidity: function nominatedOwner() view returns(address) -func (_SUSDTGoerli *SUSDTGoerliCaller) NominatedOwner(opts *bind.CallOpts) (common.Address, error) { +func (_SUSDT *SUSDTCaller) NominatedOwner(opts *bind.CallOpts) (common.Address, error) { var out []interface{} - err := _SUSDTGoerli.contract.Call(opts, &out, "nominatedOwner") + err := _SUSDT.contract.Call(opts, &out, "nominatedOwner") if err != nil { return *new(common.Address), err @@ -431,23 +431,23 @@ func (_SUSDTGoerli *SUSDTGoerliCaller) NominatedOwner(opts *bind.CallOpts) (comm // NominatedOwner is a free data retrieval call binding the contract method 0x53a47bb7. // // Solidity: function nominatedOwner() view returns(address) -func (_SUSDTGoerli *SUSDTGoerliSession) NominatedOwner() (common.Address, error) { - return _SUSDTGoerli.Contract.NominatedOwner(&_SUSDTGoerli.CallOpts) +func (_SUSDT *SUSDTSession) NominatedOwner() (common.Address, error) { + return _SUSDT.Contract.NominatedOwner(&_SUSDT.CallOpts) } // NominatedOwner is a free data retrieval call binding the contract method 0x53a47bb7. // // Solidity: function nominatedOwner() view returns(address) -func (_SUSDTGoerli *SUSDTGoerliCallerSession) NominatedOwner() (common.Address, error) { - return _SUSDTGoerli.Contract.NominatedOwner(&_SUSDTGoerli.CallOpts) +func (_SUSDT *SUSDTCallerSession) NominatedOwner() (common.Address, error) { + return _SUSDT.Contract.NominatedOwner(&_SUSDT.CallOpts) } // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. // // Solidity: function owner() view returns(address) -func (_SUSDTGoerli *SUSDTGoerliCaller) Owner(opts *bind.CallOpts) (common.Address, error) { +func (_SUSDT *SUSDTCaller) Owner(opts *bind.CallOpts) (common.Address, error) { var out []interface{} - err := _SUSDTGoerli.contract.Call(opts, &out, "owner") + err := _SUSDT.contract.Call(opts, &out, "owner") if err != nil { return *new(common.Address), err @@ -462,23 +462,23 @@ func (_SUSDTGoerli *SUSDTGoerliCaller) Owner(opts *bind.CallOpts) (common.Addres // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. // // Solidity: function owner() view returns(address) -func (_SUSDTGoerli *SUSDTGoerliSession) Owner() (common.Address, error) { - return _SUSDTGoerli.Contract.Owner(&_SUSDTGoerli.CallOpts) +func (_SUSDT *SUSDTSession) Owner() (common.Address, error) { + return _SUSDT.Contract.Owner(&_SUSDT.CallOpts) } // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. // // Solidity: function owner() view returns(address) -func (_SUSDTGoerli *SUSDTGoerliCallerSession) Owner() (common.Address, error) { - return _SUSDTGoerli.Contract.Owner(&_SUSDTGoerli.CallOpts) +func (_SUSDT *SUSDTCallerSession) Owner() (common.Address, error) { + return _SUSDT.Contract.Owner(&_SUSDT.CallOpts) } // Symbol is a free data retrieval call binding the contract method 0x95d89b41. // // Solidity: function symbol() view returns(string) -func (_SUSDTGoerli *SUSDTGoerliCaller) Symbol(opts *bind.CallOpts) (string, error) { +func (_SUSDT *SUSDTCaller) Symbol(opts *bind.CallOpts) (string, error) { var out []interface{} - err := _SUSDTGoerli.contract.Call(opts, &out, "symbol") + err := _SUSDT.contract.Call(opts, &out, "symbol") if err != nil { return *new(string), err @@ -493,23 +493,23 @@ func (_SUSDTGoerli *SUSDTGoerliCaller) Symbol(opts *bind.CallOpts) (string, erro // Symbol is a free data retrieval call binding the contract method 0x95d89b41. // // Solidity: function symbol() view returns(string) -func (_SUSDTGoerli *SUSDTGoerliSession) Symbol() (string, error) { - return _SUSDTGoerli.Contract.Symbol(&_SUSDTGoerli.CallOpts) +func (_SUSDT *SUSDTSession) Symbol() (string, error) { + return _SUSDT.Contract.Symbol(&_SUSDT.CallOpts) } // Symbol is a free data retrieval call binding the contract method 0x95d89b41. // // Solidity: function symbol() view returns(string) -func (_SUSDTGoerli *SUSDTGoerliCallerSession) Symbol() (string, error) { - return _SUSDTGoerli.Contract.Symbol(&_SUSDTGoerli.CallOpts) +func (_SUSDT *SUSDTCallerSession) Symbol() (string, error) { + return _SUSDT.Contract.Symbol(&_SUSDT.CallOpts) } // TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. // // Solidity: function totalSupply() view returns(uint256) -func (_SUSDTGoerli *SUSDTGoerliCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) { +func (_SUSDT *SUSDTCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) { var out []interface{} - err := _SUSDTGoerli.contract.Call(opts, &out, "totalSupply") + err := _SUSDT.contract.Call(opts, &out, "totalSupply") if err != nil { return *new(*big.Int), err @@ -524,419 +524,419 @@ func (_SUSDTGoerli *SUSDTGoerliCaller) TotalSupply(opts *bind.CallOpts) (*big.In // TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. // // Solidity: function totalSupply() view returns(uint256) -func (_SUSDTGoerli *SUSDTGoerliSession) TotalSupply() (*big.Int, error) { - return _SUSDTGoerli.Contract.TotalSupply(&_SUSDTGoerli.CallOpts) +func (_SUSDT *SUSDTSession) TotalSupply() (*big.Int, error) { + return _SUSDT.Contract.TotalSupply(&_SUSDT.CallOpts) } // TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. // // Solidity: function totalSupply() view returns(uint256) -func (_SUSDTGoerli *SUSDTGoerliCallerSession) TotalSupply() (*big.Int, error) { - return _SUSDTGoerli.Contract.TotalSupply(&_SUSDTGoerli.CallOpts) +func (_SUSDT *SUSDTCallerSession) TotalSupply() (*big.Int, error) { + return _SUSDT.Contract.TotalSupply(&_SUSDT.CallOpts) } // AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. // // Solidity: function acceptOwnership() returns() -func (_SUSDTGoerli *SUSDTGoerliTransactor) AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error) { - return _SUSDTGoerli.contract.Transact(opts, "acceptOwnership") +func (_SUSDT *SUSDTTransactor) AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error) { + return _SUSDT.contract.Transact(opts, "acceptOwnership") } // AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. // // Solidity: function acceptOwnership() returns() -func (_SUSDTGoerli *SUSDTGoerliSession) AcceptOwnership() (*types.Transaction, error) { - return _SUSDTGoerli.Contract.AcceptOwnership(&_SUSDTGoerli.TransactOpts) +func (_SUSDT *SUSDTSession) AcceptOwnership() (*types.Transaction, error) { + return _SUSDT.Contract.AcceptOwnership(&_SUSDT.TransactOpts) } // AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. // // Solidity: function acceptOwnership() returns() -func (_SUSDTGoerli *SUSDTGoerliTransactorSession) AcceptOwnership() (*types.Transaction, error) { - return _SUSDTGoerli.Contract.AcceptOwnership(&_SUSDTGoerli.TransactOpts) +func (_SUSDT *SUSDTTransactorSession) AcceptOwnership() (*types.Transaction, error) { + return _SUSDT.Contract.AcceptOwnership(&_SUSDT.TransactOpts) } // Approve is a paid mutator transaction binding the contract method 0x095ea7b3. // // Solidity: function approve(address spender, uint256 amount) returns(bool) -func (_SUSDTGoerli *SUSDTGoerliTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _SUSDTGoerli.contract.Transact(opts, "approve", spender, amount) +func (_SUSDT *SUSDTTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) { + return _SUSDT.contract.Transact(opts, "approve", spender, amount) } // Approve is a paid mutator transaction binding the contract method 0x095ea7b3. // // Solidity: function approve(address spender, uint256 amount) returns(bool) -func (_SUSDTGoerli *SUSDTGoerliSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _SUSDTGoerli.Contract.Approve(&_SUSDTGoerli.TransactOpts, spender, amount) +func (_SUSDT *SUSDTSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) { + return _SUSDT.Contract.Approve(&_SUSDT.TransactOpts, spender, amount) } // Approve is a paid mutator transaction binding the contract method 0x095ea7b3. // // Solidity: function approve(address spender, uint256 amount) returns(bool) -func (_SUSDTGoerli *SUSDTGoerliTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _SUSDTGoerli.Contract.Approve(&_SUSDTGoerli.TransactOpts, spender, amount) +func (_SUSDT *SUSDTTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) { + return _SUSDT.Contract.Approve(&_SUSDT.TransactOpts, spender, amount) } // Burn is a paid mutator transaction binding the contract method 0x42966c68. // // Solidity: function burn(uint256 amount) returns() -func (_SUSDTGoerli *SUSDTGoerliTransactor) Burn(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error) { - return _SUSDTGoerli.contract.Transact(opts, "burn", amount) +func (_SUSDT *SUSDTTransactor) Burn(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error) { + return _SUSDT.contract.Transact(opts, "burn", amount) } // Burn is a paid mutator transaction binding the contract method 0x42966c68. // // Solidity: function burn(uint256 amount) returns() -func (_SUSDTGoerli *SUSDTGoerliSession) Burn(amount *big.Int) (*types.Transaction, error) { - return _SUSDTGoerli.Contract.Burn(&_SUSDTGoerli.TransactOpts, amount) +func (_SUSDT *SUSDTSession) Burn(amount *big.Int) (*types.Transaction, error) { + return _SUSDT.Contract.Burn(&_SUSDT.TransactOpts, amount) } // Burn is a paid mutator transaction binding the contract method 0x42966c68. // // Solidity: function burn(uint256 amount) returns() -func (_SUSDTGoerli *SUSDTGoerliTransactorSession) Burn(amount *big.Int) (*types.Transaction, error) { - return _SUSDTGoerli.Contract.Burn(&_SUSDTGoerli.TransactOpts, amount) +func (_SUSDT *SUSDTTransactorSession) Burn(amount *big.Int) (*types.Transaction, error) { + return _SUSDT.Contract.Burn(&_SUSDT.TransactOpts, amount) } // Burn0 is a paid mutator transaction binding the contract method 0x9dc29fac. // // Solidity: function burn(address target, uint256 amount) returns() -func (_SUSDTGoerli *SUSDTGoerliTransactor) Burn0(opts *bind.TransactOpts, target common.Address, amount *big.Int) (*types.Transaction, error) { - return _SUSDTGoerli.contract.Transact(opts, "burn0", target, amount) +func (_SUSDT *SUSDTTransactor) Burn0(opts *bind.TransactOpts, target common.Address, amount *big.Int) (*types.Transaction, error) { + return _SUSDT.contract.Transact(opts, "burn0", target, amount) } // Burn0 is a paid mutator transaction binding the contract method 0x9dc29fac. // // Solidity: function burn(address target, uint256 amount) returns() -func (_SUSDTGoerli *SUSDTGoerliSession) Burn0(target common.Address, amount *big.Int) (*types.Transaction, error) { - return _SUSDTGoerli.Contract.Burn0(&_SUSDTGoerli.TransactOpts, target, amount) +func (_SUSDT *SUSDTSession) Burn0(target common.Address, amount *big.Int) (*types.Transaction, error) { + return _SUSDT.Contract.Burn0(&_SUSDT.TransactOpts, target, amount) } // Burn0 is a paid mutator transaction binding the contract method 0x9dc29fac. // // Solidity: function burn(address target, uint256 amount) returns() -func (_SUSDTGoerli *SUSDTGoerliTransactorSession) Burn0(target common.Address, amount *big.Int) (*types.Transaction, error) { - return _SUSDTGoerli.Contract.Burn0(&_SUSDTGoerli.TransactOpts, target, amount) +func (_SUSDT *SUSDTTransactorSession) Burn0(target common.Address, amount *big.Int) (*types.Transaction, error) { + return _SUSDT.Contract.Burn0(&_SUSDT.TransactOpts, target, amount) } // BurnWithAllowance is a paid mutator transaction binding the contract method 0xaaa15fd1. // // Solidity: function burnWithAllowance(address from, address spender, uint256 amount) returns() -func (_SUSDTGoerli *SUSDTGoerliTransactor) BurnWithAllowance(opts *bind.TransactOpts, from common.Address, spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _SUSDTGoerli.contract.Transact(opts, "burnWithAllowance", from, spender, amount) +func (_SUSDT *SUSDTTransactor) BurnWithAllowance(opts *bind.TransactOpts, from common.Address, spender common.Address, amount *big.Int) (*types.Transaction, error) { + return _SUSDT.contract.Transact(opts, "burnWithAllowance", from, spender, amount) } // BurnWithAllowance is a paid mutator transaction binding the contract method 0xaaa15fd1. // // Solidity: function burnWithAllowance(address from, address spender, uint256 amount) returns() -func (_SUSDTGoerli *SUSDTGoerliSession) BurnWithAllowance(from common.Address, spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _SUSDTGoerli.Contract.BurnWithAllowance(&_SUSDTGoerli.TransactOpts, from, spender, amount) +func (_SUSDT *SUSDTSession) BurnWithAllowance(from common.Address, spender common.Address, amount *big.Int) (*types.Transaction, error) { + return _SUSDT.Contract.BurnWithAllowance(&_SUSDT.TransactOpts, from, spender, amount) } // BurnWithAllowance is a paid mutator transaction binding the contract method 0xaaa15fd1. // // Solidity: function burnWithAllowance(address from, address spender, uint256 amount) returns() -func (_SUSDTGoerli *SUSDTGoerliTransactorSession) BurnWithAllowance(from common.Address, spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _SUSDTGoerli.Contract.BurnWithAllowance(&_SUSDTGoerli.TransactOpts, from, spender, amount) +func (_SUSDT *SUSDTTransactorSession) BurnWithAllowance(from common.Address, spender common.Address, amount *big.Int) (*types.Transaction, error) { + return _SUSDT.Contract.BurnWithAllowance(&_SUSDT.TransactOpts, from, spender, amount) } // DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7. // // Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool) -func (_SUSDTGoerli *SUSDTGoerliTransactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error) { - return _SUSDTGoerli.contract.Transact(opts, "decreaseAllowance", spender, subtractedValue) +func (_SUSDT *SUSDTTransactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error) { + return _SUSDT.contract.Transact(opts, "decreaseAllowance", spender, subtractedValue) } // DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7. // // Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool) -func (_SUSDTGoerli *SUSDTGoerliSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error) { - return _SUSDTGoerli.Contract.DecreaseAllowance(&_SUSDTGoerli.TransactOpts, spender, subtractedValue) +func (_SUSDT *SUSDTSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error) { + return _SUSDT.Contract.DecreaseAllowance(&_SUSDT.TransactOpts, spender, subtractedValue) } // DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7. // // Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool) -func (_SUSDTGoerli *SUSDTGoerliTransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error) { - return _SUSDTGoerli.Contract.DecreaseAllowance(&_SUSDTGoerli.TransactOpts, spender, subtractedValue) +func (_SUSDT *SUSDTTransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error) { + return _SUSDT.Contract.DecreaseAllowance(&_SUSDT.TransactOpts, spender, subtractedValue) } // IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351. // // Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool) -func (_SUSDTGoerli *SUSDTGoerliTransactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error) { - return _SUSDTGoerli.contract.Transact(opts, "increaseAllowance", spender, addedValue) +func (_SUSDT *SUSDTTransactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error) { + return _SUSDT.contract.Transact(opts, "increaseAllowance", spender, addedValue) } // IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351. // // Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool) -func (_SUSDTGoerli *SUSDTGoerliSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error) { - return _SUSDTGoerli.Contract.IncreaseAllowance(&_SUSDTGoerli.TransactOpts, spender, addedValue) +func (_SUSDT *SUSDTSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error) { + return _SUSDT.Contract.IncreaseAllowance(&_SUSDT.TransactOpts, spender, addedValue) } // IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351. // // Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool) -func (_SUSDTGoerli *SUSDTGoerliTransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error) { - return _SUSDTGoerli.Contract.IncreaseAllowance(&_SUSDTGoerli.TransactOpts, spender, addedValue) +func (_SUSDT *SUSDTTransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error) { + return _SUSDT.Contract.IncreaseAllowance(&_SUSDT.TransactOpts, spender, addedValue) } // InitOrUpgradeNft is a paid mutator transaction binding the contract method 0x2d22bef9. // // Solidity: function initOrUpgradeNft(bytes32 id, string name, string symbol, string uri, address impl) returns() -func (_SUSDTGoerli *SUSDTGoerliTransactor) InitOrUpgradeNft(opts *bind.TransactOpts, id [32]byte, name string, symbol string, uri string, impl common.Address) (*types.Transaction, error) { - return _SUSDTGoerli.contract.Transact(opts, "initOrUpgradeNft", id, name, symbol, uri, impl) +func (_SUSDT *SUSDTTransactor) InitOrUpgradeNft(opts *bind.TransactOpts, id [32]byte, name string, symbol string, uri string, impl common.Address) (*types.Transaction, error) { + return _SUSDT.contract.Transact(opts, "initOrUpgradeNft", id, name, symbol, uri, impl) } // InitOrUpgradeNft is a paid mutator transaction binding the contract method 0x2d22bef9. // // Solidity: function initOrUpgradeNft(bytes32 id, string name, string symbol, string uri, address impl) returns() -func (_SUSDTGoerli *SUSDTGoerliSession) InitOrUpgradeNft(id [32]byte, name string, symbol string, uri string, impl common.Address) (*types.Transaction, error) { - return _SUSDTGoerli.Contract.InitOrUpgradeNft(&_SUSDTGoerli.TransactOpts, id, name, symbol, uri, impl) +func (_SUSDT *SUSDTSession) InitOrUpgradeNft(id [32]byte, name string, symbol string, uri string, impl common.Address) (*types.Transaction, error) { + return _SUSDT.Contract.InitOrUpgradeNft(&_SUSDT.TransactOpts, id, name, symbol, uri, impl) } // InitOrUpgradeNft is a paid mutator transaction binding the contract method 0x2d22bef9. // // Solidity: function initOrUpgradeNft(bytes32 id, string name, string symbol, string uri, address impl) returns() -func (_SUSDTGoerli *SUSDTGoerliTransactorSession) InitOrUpgradeNft(id [32]byte, name string, symbol string, uri string, impl common.Address) (*types.Transaction, error) { - return _SUSDTGoerli.Contract.InitOrUpgradeNft(&_SUSDTGoerli.TransactOpts, id, name, symbol, uri, impl) +func (_SUSDT *SUSDTTransactorSession) InitOrUpgradeNft(id [32]byte, name string, symbol string, uri string, impl common.Address) (*types.Transaction, error) { + return _SUSDT.Contract.InitOrUpgradeNft(&_SUSDT.TransactOpts, id, name, symbol, uri, impl) } // InitOrUpgradeToken is a paid mutator transaction binding the contract method 0xc6f79537. // // Solidity: function initOrUpgradeToken(bytes32 id, string name, string symbol, uint8 decimals, address impl) returns() -func (_SUSDTGoerli *SUSDTGoerliTransactor) InitOrUpgradeToken(opts *bind.TransactOpts, id [32]byte, name string, symbol string, decimals uint8, impl common.Address) (*types.Transaction, error) { - return _SUSDTGoerli.contract.Transact(opts, "initOrUpgradeToken", id, name, symbol, decimals, impl) +func (_SUSDT *SUSDTTransactor) InitOrUpgradeToken(opts *bind.TransactOpts, id [32]byte, name string, symbol string, decimals uint8, impl common.Address) (*types.Transaction, error) { + return _SUSDT.contract.Transact(opts, "initOrUpgradeToken", id, name, symbol, decimals, impl) } // InitOrUpgradeToken is a paid mutator transaction binding the contract method 0xc6f79537. // // Solidity: function initOrUpgradeToken(bytes32 id, string name, string symbol, uint8 decimals, address impl) returns() -func (_SUSDTGoerli *SUSDTGoerliSession) InitOrUpgradeToken(id [32]byte, name string, symbol string, decimals uint8, impl common.Address) (*types.Transaction, error) { - return _SUSDTGoerli.Contract.InitOrUpgradeToken(&_SUSDTGoerli.TransactOpts, id, name, symbol, decimals, impl) +func (_SUSDT *SUSDTSession) InitOrUpgradeToken(id [32]byte, name string, symbol string, decimals uint8, impl common.Address) (*types.Transaction, error) { + return _SUSDT.Contract.InitOrUpgradeToken(&_SUSDT.TransactOpts, id, name, symbol, decimals, impl) } // InitOrUpgradeToken is a paid mutator transaction binding the contract method 0xc6f79537. // // Solidity: function initOrUpgradeToken(bytes32 id, string name, string symbol, uint8 decimals, address impl) returns() -func (_SUSDTGoerli *SUSDTGoerliTransactorSession) InitOrUpgradeToken(id [32]byte, name string, symbol string, decimals uint8, impl common.Address) (*types.Transaction, error) { - return _SUSDTGoerli.Contract.InitOrUpgradeToken(&_SUSDTGoerli.TransactOpts, id, name, symbol, decimals, impl) +func (_SUSDT *SUSDTTransactorSession) InitOrUpgradeToken(id [32]byte, name string, symbol string, decimals uint8, impl common.Address) (*types.Transaction, error) { + return _SUSDT.Contract.InitOrUpgradeToken(&_SUSDT.TransactOpts, id, name, symbol, decimals, impl) } // Initialize is a paid mutator transaction binding the contract method 0x1624f6c6. // // Solidity: function initialize(string tokenName, string tokenSymbol, uint8 tokenDecimals) returns() -func (_SUSDTGoerli *SUSDTGoerliTransactor) Initialize(opts *bind.TransactOpts, tokenName string, tokenSymbol string, tokenDecimals uint8) (*types.Transaction, error) { - return _SUSDTGoerli.contract.Transact(opts, "initialize", tokenName, tokenSymbol, tokenDecimals) +func (_SUSDT *SUSDTTransactor) Initialize(opts *bind.TransactOpts, tokenName string, tokenSymbol string, tokenDecimals uint8) (*types.Transaction, error) { + return _SUSDT.contract.Transact(opts, "initialize", tokenName, tokenSymbol, tokenDecimals) } // Initialize is a paid mutator transaction binding the contract method 0x1624f6c6. // // Solidity: function initialize(string tokenName, string tokenSymbol, uint8 tokenDecimals) returns() -func (_SUSDTGoerli *SUSDTGoerliSession) Initialize(tokenName string, tokenSymbol string, tokenDecimals uint8) (*types.Transaction, error) { - return _SUSDTGoerli.Contract.Initialize(&_SUSDTGoerli.TransactOpts, tokenName, tokenSymbol, tokenDecimals) +func (_SUSDT *SUSDTSession) Initialize(tokenName string, tokenSymbol string, tokenDecimals uint8) (*types.Transaction, error) { + return _SUSDT.Contract.Initialize(&_SUSDT.TransactOpts, tokenName, tokenSymbol, tokenDecimals) } // Initialize is a paid mutator transaction binding the contract method 0x1624f6c6. // // Solidity: function initialize(string tokenName, string tokenSymbol, uint8 tokenDecimals) returns() -func (_SUSDTGoerli *SUSDTGoerliTransactorSession) Initialize(tokenName string, tokenSymbol string, tokenDecimals uint8) (*types.Transaction, error) { - return _SUSDTGoerli.Contract.Initialize(&_SUSDTGoerli.TransactOpts, tokenName, tokenSymbol, tokenDecimals) +func (_SUSDT *SUSDTTransactorSession) Initialize(tokenName string, tokenSymbol string, tokenDecimals uint8) (*types.Transaction, error) { + return _SUSDT.Contract.Initialize(&_SUSDT.TransactOpts, tokenName, tokenSymbol, tokenDecimals) } // Mint is a paid mutator transaction binding the contract method 0x40c10f19. // // Solidity: function mint(address target, uint256 amount) returns() -func (_SUSDTGoerli *SUSDTGoerliTransactor) Mint(opts *bind.TransactOpts, target common.Address, amount *big.Int) (*types.Transaction, error) { - return _SUSDTGoerli.contract.Transact(opts, "mint", target, amount) +func (_SUSDT *SUSDTTransactor) Mint(opts *bind.TransactOpts, target common.Address, amount *big.Int) (*types.Transaction, error) { + return _SUSDT.contract.Transact(opts, "mint", target, amount) } // Mint is a paid mutator transaction binding the contract method 0x40c10f19. // // Solidity: function mint(address target, uint256 amount) returns() -func (_SUSDTGoerli *SUSDTGoerliSession) Mint(target common.Address, amount *big.Int) (*types.Transaction, error) { - return _SUSDTGoerli.Contract.Mint(&_SUSDTGoerli.TransactOpts, target, amount) +func (_SUSDT *SUSDTSession) Mint(target common.Address, amount *big.Int) (*types.Transaction, error) { + return _SUSDT.Contract.Mint(&_SUSDT.TransactOpts, target, amount) } // Mint is a paid mutator transaction binding the contract method 0x40c10f19. // // Solidity: function mint(address target, uint256 amount) returns() -func (_SUSDTGoerli *SUSDTGoerliTransactorSession) Mint(target common.Address, amount *big.Int) (*types.Transaction, error) { - return _SUSDTGoerli.Contract.Mint(&_SUSDTGoerli.TransactOpts, target, amount) +func (_SUSDT *SUSDTTransactorSession) Mint(target common.Address, amount *big.Int) (*types.Transaction, error) { + return _SUSDT.Contract.Mint(&_SUSDT.TransactOpts, target, amount) } // NominateNewOwner is a paid mutator transaction binding the contract method 0x1627540c. // // Solidity: function nominateNewOwner(address newNominatedOwner) returns() -func (_SUSDTGoerli *SUSDTGoerliTransactor) NominateNewOwner(opts *bind.TransactOpts, newNominatedOwner common.Address) (*types.Transaction, error) { - return _SUSDTGoerli.contract.Transact(opts, "nominateNewOwner", newNominatedOwner) +func (_SUSDT *SUSDTTransactor) NominateNewOwner(opts *bind.TransactOpts, newNominatedOwner common.Address) (*types.Transaction, error) { + return _SUSDT.contract.Transact(opts, "nominateNewOwner", newNominatedOwner) } // NominateNewOwner is a paid mutator transaction binding the contract method 0x1627540c. // // Solidity: function nominateNewOwner(address newNominatedOwner) returns() -func (_SUSDTGoerli *SUSDTGoerliSession) NominateNewOwner(newNominatedOwner common.Address) (*types.Transaction, error) { - return _SUSDTGoerli.Contract.NominateNewOwner(&_SUSDTGoerli.TransactOpts, newNominatedOwner) +func (_SUSDT *SUSDTSession) NominateNewOwner(newNominatedOwner common.Address) (*types.Transaction, error) { + return _SUSDT.Contract.NominateNewOwner(&_SUSDT.TransactOpts, newNominatedOwner) } // NominateNewOwner is a paid mutator transaction binding the contract method 0x1627540c. // // Solidity: function nominateNewOwner(address newNominatedOwner) returns() -func (_SUSDTGoerli *SUSDTGoerliTransactorSession) NominateNewOwner(newNominatedOwner common.Address) (*types.Transaction, error) { - return _SUSDTGoerli.Contract.NominateNewOwner(&_SUSDTGoerli.TransactOpts, newNominatedOwner) +func (_SUSDT *SUSDTTransactorSession) NominateNewOwner(newNominatedOwner common.Address) (*types.Transaction, error) { + return _SUSDT.Contract.NominateNewOwner(&_SUSDT.TransactOpts, newNominatedOwner) } // RegisterUnmanagedSystem is a paid mutator transaction binding the contract method 0xd245d983. // // Solidity: function registerUnmanagedSystem(bytes32 id, address endpoint) returns() -func (_SUSDTGoerli *SUSDTGoerliTransactor) RegisterUnmanagedSystem(opts *bind.TransactOpts, id [32]byte, endpoint common.Address) (*types.Transaction, error) { - return _SUSDTGoerli.contract.Transact(opts, "registerUnmanagedSystem", id, endpoint) +func (_SUSDT *SUSDTTransactor) RegisterUnmanagedSystem(opts *bind.TransactOpts, id [32]byte, endpoint common.Address) (*types.Transaction, error) { + return _SUSDT.contract.Transact(opts, "registerUnmanagedSystem", id, endpoint) } // RegisterUnmanagedSystem is a paid mutator transaction binding the contract method 0xd245d983. // // Solidity: function registerUnmanagedSystem(bytes32 id, address endpoint) returns() -func (_SUSDTGoerli *SUSDTGoerliSession) RegisterUnmanagedSystem(id [32]byte, endpoint common.Address) (*types.Transaction, error) { - return _SUSDTGoerli.Contract.RegisterUnmanagedSystem(&_SUSDTGoerli.TransactOpts, id, endpoint) +func (_SUSDT *SUSDTSession) RegisterUnmanagedSystem(id [32]byte, endpoint common.Address) (*types.Transaction, error) { + return _SUSDT.Contract.RegisterUnmanagedSystem(&_SUSDT.TransactOpts, id, endpoint) } // RegisterUnmanagedSystem is a paid mutator transaction binding the contract method 0xd245d983. // // Solidity: function registerUnmanagedSystem(bytes32 id, address endpoint) returns() -func (_SUSDTGoerli *SUSDTGoerliTransactorSession) RegisterUnmanagedSystem(id [32]byte, endpoint common.Address) (*types.Transaction, error) { - return _SUSDTGoerli.Contract.RegisterUnmanagedSystem(&_SUSDTGoerli.TransactOpts, id, endpoint) +func (_SUSDT *SUSDTTransactorSession) RegisterUnmanagedSystem(id [32]byte, endpoint common.Address) (*types.Transaction, error) { + return _SUSDT.Contract.RegisterUnmanagedSystem(&_SUSDT.TransactOpts, id, endpoint) } // RenounceNomination is a paid mutator transaction binding the contract method 0x718fe928. // // Solidity: function renounceNomination() returns() -func (_SUSDTGoerli *SUSDTGoerliTransactor) RenounceNomination(opts *bind.TransactOpts) (*types.Transaction, error) { - return _SUSDTGoerli.contract.Transact(opts, "renounceNomination") +func (_SUSDT *SUSDTTransactor) RenounceNomination(opts *bind.TransactOpts) (*types.Transaction, error) { + return _SUSDT.contract.Transact(opts, "renounceNomination") } // RenounceNomination is a paid mutator transaction binding the contract method 0x718fe928. // // Solidity: function renounceNomination() returns() -func (_SUSDTGoerli *SUSDTGoerliSession) RenounceNomination() (*types.Transaction, error) { - return _SUSDTGoerli.Contract.RenounceNomination(&_SUSDTGoerli.TransactOpts) +func (_SUSDT *SUSDTSession) RenounceNomination() (*types.Transaction, error) { + return _SUSDT.Contract.RenounceNomination(&_SUSDT.TransactOpts) } // RenounceNomination is a paid mutator transaction binding the contract method 0x718fe928. // // Solidity: function renounceNomination() returns() -func (_SUSDTGoerli *SUSDTGoerliTransactorSession) RenounceNomination() (*types.Transaction, error) { - return _SUSDTGoerli.Contract.RenounceNomination(&_SUSDTGoerli.TransactOpts) +func (_SUSDT *SUSDTTransactorSession) RenounceNomination() (*types.Transaction, error) { + return _SUSDT.Contract.RenounceNomination(&_SUSDT.TransactOpts) } // SetAllowance is a paid mutator transaction binding the contract method 0xda46098c. // // Solidity: function setAllowance(address from, address spender, uint256 amount) returns() -func (_SUSDTGoerli *SUSDTGoerliTransactor) SetAllowance(opts *bind.TransactOpts, from common.Address, spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _SUSDTGoerli.contract.Transact(opts, "setAllowance", from, spender, amount) +func (_SUSDT *SUSDTTransactor) SetAllowance(opts *bind.TransactOpts, from common.Address, spender common.Address, amount *big.Int) (*types.Transaction, error) { + return _SUSDT.contract.Transact(opts, "setAllowance", from, spender, amount) } // SetAllowance is a paid mutator transaction binding the contract method 0xda46098c. // // Solidity: function setAllowance(address from, address spender, uint256 amount) returns() -func (_SUSDTGoerli *SUSDTGoerliSession) SetAllowance(from common.Address, spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _SUSDTGoerli.Contract.SetAllowance(&_SUSDTGoerli.TransactOpts, from, spender, amount) +func (_SUSDT *SUSDTSession) SetAllowance(from common.Address, spender common.Address, amount *big.Int) (*types.Transaction, error) { + return _SUSDT.Contract.SetAllowance(&_SUSDT.TransactOpts, from, spender, amount) } // SetAllowance is a paid mutator transaction binding the contract method 0xda46098c. // // Solidity: function setAllowance(address from, address spender, uint256 amount) returns() -func (_SUSDTGoerli *SUSDTGoerliTransactorSession) SetAllowance(from common.Address, spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _SUSDTGoerli.Contract.SetAllowance(&_SUSDTGoerli.TransactOpts, from, spender, amount) +func (_SUSDT *SUSDTTransactorSession) SetAllowance(from common.Address, spender common.Address, amount *big.Int) (*types.Transaction, error) { + return _SUSDT.Contract.SetAllowance(&_SUSDT.TransactOpts, from, spender, amount) } // SimulateUpgradeTo is a paid mutator transaction binding the contract method 0xc7f62cda. // // Solidity: function simulateUpgradeTo(address newImplementation) returns() -func (_SUSDTGoerli *SUSDTGoerliTransactor) SimulateUpgradeTo(opts *bind.TransactOpts, newImplementation common.Address) (*types.Transaction, error) { - return _SUSDTGoerli.contract.Transact(opts, "simulateUpgradeTo", newImplementation) +func (_SUSDT *SUSDTTransactor) SimulateUpgradeTo(opts *bind.TransactOpts, newImplementation common.Address) (*types.Transaction, error) { + return _SUSDT.contract.Transact(opts, "simulateUpgradeTo", newImplementation) } // SimulateUpgradeTo is a paid mutator transaction binding the contract method 0xc7f62cda. // // Solidity: function simulateUpgradeTo(address newImplementation) returns() -func (_SUSDTGoerli *SUSDTGoerliSession) SimulateUpgradeTo(newImplementation common.Address) (*types.Transaction, error) { - return _SUSDTGoerli.Contract.SimulateUpgradeTo(&_SUSDTGoerli.TransactOpts, newImplementation) +func (_SUSDT *SUSDTSession) SimulateUpgradeTo(newImplementation common.Address) (*types.Transaction, error) { + return _SUSDT.Contract.SimulateUpgradeTo(&_SUSDT.TransactOpts, newImplementation) } // SimulateUpgradeTo is a paid mutator transaction binding the contract method 0xc7f62cda. // // Solidity: function simulateUpgradeTo(address newImplementation) returns() -func (_SUSDTGoerli *SUSDTGoerliTransactorSession) SimulateUpgradeTo(newImplementation common.Address) (*types.Transaction, error) { - return _SUSDTGoerli.Contract.SimulateUpgradeTo(&_SUSDTGoerli.TransactOpts, newImplementation) +func (_SUSDT *SUSDTTransactorSession) SimulateUpgradeTo(newImplementation common.Address) (*types.Transaction, error) { + return _SUSDT.Contract.SimulateUpgradeTo(&_SUSDT.TransactOpts, newImplementation) } // Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. // // Solidity: function transfer(address to, uint256 amount) returns(bool) -func (_SUSDTGoerli *SUSDTGoerliTransactor) Transfer(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _SUSDTGoerli.contract.Transact(opts, "transfer", to, amount) +func (_SUSDT *SUSDTTransactor) Transfer(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error) { + return _SUSDT.contract.Transact(opts, "transfer", to, amount) } // Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. // // Solidity: function transfer(address to, uint256 amount) returns(bool) -func (_SUSDTGoerli *SUSDTGoerliSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error) { - return _SUSDTGoerli.Contract.Transfer(&_SUSDTGoerli.TransactOpts, to, amount) +func (_SUSDT *SUSDTSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error) { + return _SUSDT.Contract.Transfer(&_SUSDT.TransactOpts, to, amount) } // Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. // // Solidity: function transfer(address to, uint256 amount) returns(bool) -func (_SUSDTGoerli *SUSDTGoerliTransactorSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error) { - return _SUSDTGoerli.Contract.Transfer(&_SUSDTGoerli.TransactOpts, to, amount) +func (_SUSDT *SUSDTTransactorSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error) { + return _SUSDT.Contract.Transfer(&_SUSDT.TransactOpts, to, amount) } // TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. // // Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool) -func (_SUSDTGoerli *SUSDTGoerliTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _SUSDTGoerli.contract.Transact(opts, "transferFrom", from, to, amount) +func (_SUSDT *SUSDTTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { + return _SUSDT.contract.Transact(opts, "transferFrom", from, to, amount) } // TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. // // Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool) -func (_SUSDTGoerli *SUSDTGoerliSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _SUSDTGoerli.Contract.TransferFrom(&_SUSDTGoerli.TransactOpts, from, to, amount) +func (_SUSDT *SUSDTSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { + return _SUSDT.Contract.TransferFrom(&_SUSDT.TransactOpts, from, to, amount) } // TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. // // Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool) -func (_SUSDTGoerli *SUSDTGoerliTransactorSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _SUSDTGoerli.Contract.TransferFrom(&_SUSDTGoerli.TransactOpts, from, to, amount) +func (_SUSDT *SUSDTTransactorSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { + return _SUSDT.Contract.TransferFrom(&_SUSDT.TransactOpts, from, to, amount) } // UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6. // // Solidity: function upgradeTo(address newImplementation) returns() -func (_SUSDTGoerli *SUSDTGoerliTransactor) UpgradeTo(opts *bind.TransactOpts, newImplementation common.Address) (*types.Transaction, error) { - return _SUSDTGoerli.contract.Transact(opts, "upgradeTo", newImplementation) +func (_SUSDT *SUSDTTransactor) UpgradeTo(opts *bind.TransactOpts, newImplementation common.Address) (*types.Transaction, error) { + return _SUSDT.contract.Transact(opts, "upgradeTo", newImplementation) } // UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6. // // Solidity: function upgradeTo(address newImplementation) returns() -func (_SUSDTGoerli *SUSDTGoerliSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error) { - return _SUSDTGoerli.Contract.UpgradeTo(&_SUSDTGoerli.TransactOpts, newImplementation) +func (_SUSDT *SUSDTSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error) { + return _SUSDT.Contract.UpgradeTo(&_SUSDT.TransactOpts, newImplementation) } // UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6. // // Solidity: function upgradeTo(address newImplementation) returns() -func (_SUSDTGoerli *SUSDTGoerliTransactorSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error) { - return _SUSDTGoerli.Contract.UpgradeTo(&_SUSDTGoerli.TransactOpts, newImplementation) +func (_SUSDT *SUSDTTransactorSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error) { + return _SUSDT.Contract.UpgradeTo(&_SUSDT.TransactOpts, newImplementation) } -// SUSDTGoerliApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the SUSDTGoerli contract. -type SUSDTGoerliApprovalIterator struct { - Event *SUSDTGoerliApproval // Event containing the contract specifics and raw log +// SUSDTApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the SUSDT contract. +type SUSDTApprovalIterator struct { + Event *SUSDTApproval // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -950,7 +950,7 @@ type SUSDTGoerliApprovalIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *SUSDTGoerliApprovalIterator) Next() bool { +func (it *SUSDTApprovalIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -959,7 +959,7 @@ func (it *SUSDTGoerliApprovalIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(SUSDTGoerliApproval) + it.Event = new(SUSDTApproval) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -974,7 +974,7 @@ func (it *SUSDTGoerliApprovalIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(SUSDTGoerliApproval) + it.Event = new(SUSDTApproval) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -990,19 +990,19 @@ func (it *SUSDTGoerliApprovalIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *SUSDTGoerliApprovalIterator) Error() error { +func (it *SUSDTApprovalIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *SUSDTGoerliApprovalIterator) Close() error { +func (it *SUSDTApprovalIterator) Close() error { it.sub.Unsubscribe() return nil } -// SUSDTGoerliApproval represents a Approval event raised by the SUSDTGoerli contract. -type SUSDTGoerliApproval struct { +// SUSDTApproval represents a Approval event raised by the SUSDT contract. +type SUSDTApproval struct { Owner common.Address Spender common.Address Amount *big.Int @@ -1012,7 +1012,7 @@ type SUSDTGoerliApproval struct { // FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. // // Solidity: event Approval(address indexed owner, address indexed spender, uint256 amount) -func (_SUSDTGoerli *SUSDTGoerliFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*SUSDTGoerliApprovalIterator, error) { +func (_SUSDT *SUSDTFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*SUSDTApprovalIterator, error) { var ownerRule []interface{} for _, ownerItem := range owner { @@ -1023,17 +1023,17 @@ func (_SUSDTGoerli *SUSDTGoerliFilterer) FilterApproval(opts *bind.FilterOpts, o spenderRule = append(spenderRule, spenderItem) } - logs, sub, err := _SUSDTGoerli.contract.FilterLogs(opts, "Approval", ownerRule, spenderRule) + logs, sub, err := _SUSDT.contract.FilterLogs(opts, "Approval", ownerRule, spenderRule) if err != nil { return nil, err } - return &SUSDTGoerliApprovalIterator{contract: _SUSDTGoerli.contract, event: "Approval", logs: logs, sub: sub}, nil + return &SUSDTApprovalIterator{contract: _SUSDT.contract, event: "Approval", logs: logs, sub: sub}, nil } // WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. // // Solidity: event Approval(address indexed owner, address indexed spender, uint256 amount) -func (_SUSDTGoerli *SUSDTGoerliFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *SUSDTGoerliApproval, owner []common.Address, spender []common.Address) (event.Subscription, error) { +func (_SUSDT *SUSDTFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *SUSDTApproval, owner []common.Address, spender []common.Address) (event.Subscription, error) { var ownerRule []interface{} for _, ownerItem := range owner { @@ -1044,7 +1044,7 @@ func (_SUSDTGoerli *SUSDTGoerliFilterer) WatchApproval(opts *bind.WatchOpts, sin spenderRule = append(spenderRule, spenderItem) } - logs, sub, err := _SUSDTGoerli.contract.WatchLogs(opts, "Approval", ownerRule, spenderRule) + logs, sub, err := _SUSDT.contract.WatchLogs(opts, "Approval", ownerRule, spenderRule) if err != nil { return nil, err } @@ -1054,8 +1054,8 @@ func (_SUSDTGoerli *SUSDTGoerliFilterer) WatchApproval(opts *bind.WatchOpts, sin select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(SUSDTGoerliApproval) - if err := _SUSDTGoerli.contract.UnpackLog(event, "Approval", log); err != nil { + event := new(SUSDTApproval) + if err := _SUSDT.contract.UnpackLog(event, "Approval", log); err != nil { return err } event.Raw = log @@ -1079,18 +1079,18 @@ func (_SUSDTGoerli *SUSDTGoerliFilterer) WatchApproval(opts *bind.WatchOpts, sin // ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. // // Solidity: event Approval(address indexed owner, address indexed spender, uint256 amount) -func (_SUSDTGoerli *SUSDTGoerliFilterer) ParseApproval(log types.Log) (*SUSDTGoerliApproval, error) { - event := new(SUSDTGoerliApproval) - if err := _SUSDTGoerli.contract.UnpackLog(event, "Approval", log); err != nil { +func (_SUSDT *SUSDTFilterer) ParseApproval(log types.Log) (*SUSDTApproval, error) { + event := new(SUSDTApproval) + if err := _SUSDT.contract.UnpackLog(event, "Approval", log); err != nil { return nil, err } event.Raw = log return event, nil } -// SUSDTGoerliAssociatedSystemSetIterator is returned from FilterAssociatedSystemSet and is used to iterate over the raw logs and unpacked data for AssociatedSystemSet events raised by the SUSDTGoerli contract. -type SUSDTGoerliAssociatedSystemSetIterator struct { - Event *SUSDTGoerliAssociatedSystemSet // Event containing the contract specifics and raw log +// SUSDTAssociatedSystemSetIterator is returned from FilterAssociatedSystemSet and is used to iterate over the raw logs and unpacked data for AssociatedSystemSet events raised by the SUSDT contract. +type SUSDTAssociatedSystemSetIterator struct { + Event *SUSDTAssociatedSystemSet // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -1104,7 +1104,7 @@ type SUSDTGoerliAssociatedSystemSetIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *SUSDTGoerliAssociatedSystemSetIterator) Next() bool { +func (it *SUSDTAssociatedSystemSetIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -1113,7 +1113,7 @@ func (it *SUSDTGoerliAssociatedSystemSetIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(SUSDTGoerliAssociatedSystemSet) + it.Event = new(SUSDTAssociatedSystemSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1128,7 +1128,7 @@ func (it *SUSDTGoerliAssociatedSystemSetIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(SUSDTGoerliAssociatedSystemSet) + it.Event = new(SUSDTAssociatedSystemSet) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1144,19 +1144,19 @@ func (it *SUSDTGoerliAssociatedSystemSetIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *SUSDTGoerliAssociatedSystemSetIterator) Error() error { +func (it *SUSDTAssociatedSystemSetIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *SUSDTGoerliAssociatedSystemSetIterator) Close() error { +func (it *SUSDTAssociatedSystemSetIterator) Close() error { it.sub.Unsubscribe() return nil } -// SUSDTGoerliAssociatedSystemSet represents a AssociatedSystemSet event raised by the SUSDTGoerli contract. -type SUSDTGoerliAssociatedSystemSet struct { +// SUSDTAssociatedSystemSet represents a AssociatedSystemSet event raised by the SUSDT contract. +type SUSDTAssociatedSystemSet struct { Kind [32]byte Id [32]byte Proxy common.Address @@ -1167,7 +1167,7 @@ type SUSDTGoerliAssociatedSystemSet struct { // FilterAssociatedSystemSet is a free log retrieval operation binding the contract event 0xc8551a5a03a7b06d5d20159b3b8839429a7aefab4bf3d020f1b65fa903ccb3d2. // // Solidity: event AssociatedSystemSet(bytes32 indexed kind, bytes32 indexed id, address proxy, address impl) -func (_SUSDTGoerli *SUSDTGoerliFilterer) FilterAssociatedSystemSet(opts *bind.FilterOpts, kind [][32]byte, id [][32]byte) (*SUSDTGoerliAssociatedSystemSetIterator, error) { +func (_SUSDT *SUSDTFilterer) FilterAssociatedSystemSet(opts *bind.FilterOpts, kind [][32]byte, id [][32]byte) (*SUSDTAssociatedSystemSetIterator, error) { var kindRule []interface{} for _, kindItem := range kind { @@ -1178,17 +1178,17 @@ func (_SUSDTGoerli *SUSDTGoerliFilterer) FilterAssociatedSystemSet(opts *bind.Fi idRule = append(idRule, idItem) } - logs, sub, err := _SUSDTGoerli.contract.FilterLogs(opts, "AssociatedSystemSet", kindRule, idRule) + logs, sub, err := _SUSDT.contract.FilterLogs(opts, "AssociatedSystemSet", kindRule, idRule) if err != nil { return nil, err } - return &SUSDTGoerliAssociatedSystemSetIterator{contract: _SUSDTGoerli.contract, event: "AssociatedSystemSet", logs: logs, sub: sub}, nil + return &SUSDTAssociatedSystemSetIterator{contract: _SUSDT.contract, event: "AssociatedSystemSet", logs: logs, sub: sub}, nil } // WatchAssociatedSystemSet is a free log subscription operation binding the contract event 0xc8551a5a03a7b06d5d20159b3b8839429a7aefab4bf3d020f1b65fa903ccb3d2. // // Solidity: event AssociatedSystemSet(bytes32 indexed kind, bytes32 indexed id, address proxy, address impl) -func (_SUSDTGoerli *SUSDTGoerliFilterer) WatchAssociatedSystemSet(opts *bind.WatchOpts, sink chan<- *SUSDTGoerliAssociatedSystemSet, kind [][32]byte, id [][32]byte) (event.Subscription, error) { +func (_SUSDT *SUSDTFilterer) WatchAssociatedSystemSet(opts *bind.WatchOpts, sink chan<- *SUSDTAssociatedSystemSet, kind [][32]byte, id [][32]byte) (event.Subscription, error) { var kindRule []interface{} for _, kindItem := range kind { @@ -1199,7 +1199,7 @@ func (_SUSDTGoerli *SUSDTGoerliFilterer) WatchAssociatedSystemSet(opts *bind.Wat idRule = append(idRule, idItem) } - logs, sub, err := _SUSDTGoerli.contract.WatchLogs(opts, "AssociatedSystemSet", kindRule, idRule) + logs, sub, err := _SUSDT.contract.WatchLogs(opts, "AssociatedSystemSet", kindRule, idRule) if err != nil { return nil, err } @@ -1209,8 +1209,8 @@ func (_SUSDTGoerli *SUSDTGoerliFilterer) WatchAssociatedSystemSet(opts *bind.Wat select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(SUSDTGoerliAssociatedSystemSet) - if err := _SUSDTGoerli.contract.UnpackLog(event, "AssociatedSystemSet", log); err != nil { + event := new(SUSDTAssociatedSystemSet) + if err := _SUSDT.contract.UnpackLog(event, "AssociatedSystemSet", log); err != nil { return err } event.Raw = log @@ -1234,18 +1234,18 @@ func (_SUSDTGoerli *SUSDTGoerliFilterer) WatchAssociatedSystemSet(opts *bind.Wat // ParseAssociatedSystemSet is a log parse operation binding the contract event 0xc8551a5a03a7b06d5d20159b3b8839429a7aefab4bf3d020f1b65fa903ccb3d2. // // Solidity: event AssociatedSystemSet(bytes32 indexed kind, bytes32 indexed id, address proxy, address impl) -func (_SUSDTGoerli *SUSDTGoerliFilterer) ParseAssociatedSystemSet(log types.Log) (*SUSDTGoerliAssociatedSystemSet, error) { - event := new(SUSDTGoerliAssociatedSystemSet) - if err := _SUSDTGoerli.contract.UnpackLog(event, "AssociatedSystemSet", log); err != nil { +func (_SUSDT *SUSDTFilterer) ParseAssociatedSystemSet(log types.Log) (*SUSDTAssociatedSystemSet, error) { + event := new(SUSDTAssociatedSystemSet) + if err := _SUSDT.contract.UnpackLog(event, "AssociatedSystemSet", log); err != nil { return nil, err } event.Raw = log return event, nil } -// SUSDTGoerliOwnerChangedIterator is returned from FilterOwnerChanged and is used to iterate over the raw logs and unpacked data for OwnerChanged events raised by the SUSDTGoerli contract. -type SUSDTGoerliOwnerChangedIterator struct { - Event *SUSDTGoerliOwnerChanged // Event containing the contract specifics and raw log +// SUSDTOwnerChangedIterator is returned from FilterOwnerChanged and is used to iterate over the raw logs and unpacked data for OwnerChanged events raised by the SUSDT contract. +type SUSDTOwnerChangedIterator struct { + Event *SUSDTOwnerChanged // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -1259,7 +1259,7 @@ type SUSDTGoerliOwnerChangedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *SUSDTGoerliOwnerChangedIterator) Next() bool { +func (it *SUSDTOwnerChangedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -1268,7 +1268,7 @@ func (it *SUSDTGoerliOwnerChangedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(SUSDTGoerliOwnerChanged) + it.Event = new(SUSDTOwnerChanged) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1283,7 +1283,7 @@ func (it *SUSDTGoerliOwnerChangedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(SUSDTGoerliOwnerChanged) + it.Event = new(SUSDTOwnerChanged) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1299,19 +1299,19 @@ func (it *SUSDTGoerliOwnerChangedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *SUSDTGoerliOwnerChangedIterator) Error() error { +func (it *SUSDTOwnerChangedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *SUSDTGoerliOwnerChangedIterator) Close() error { +func (it *SUSDTOwnerChangedIterator) Close() error { it.sub.Unsubscribe() return nil } -// SUSDTGoerliOwnerChanged represents a OwnerChanged event raised by the SUSDTGoerli contract. -type SUSDTGoerliOwnerChanged struct { +// SUSDTOwnerChanged represents a OwnerChanged event raised by the SUSDT contract. +type SUSDTOwnerChanged struct { OldOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos @@ -1320,21 +1320,21 @@ type SUSDTGoerliOwnerChanged struct { // FilterOwnerChanged is a free log retrieval operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c. // // Solidity: event OwnerChanged(address oldOwner, address newOwner) -func (_SUSDTGoerli *SUSDTGoerliFilterer) FilterOwnerChanged(opts *bind.FilterOpts) (*SUSDTGoerliOwnerChangedIterator, error) { +func (_SUSDT *SUSDTFilterer) FilterOwnerChanged(opts *bind.FilterOpts) (*SUSDTOwnerChangedIterator, error) { - logs, sub, err := _SUSDTGoerli.contract.FilterLogs(opts, "OwnerChanged") + logs, sub, err := _SUSDT.contract.FilterLogs(opts, "OwnerChanged") if err != nil { return nil, err } - return &SUSDTGoerliOwnerChangedIterator{contract: _SUSDTGoerli.contract, event: "OwnerChanged", logs: logs, sub: sub}, nil + return &SUSDTOwnerChangedIterator{contract: _SUSDT.contract, event: "OwnerChanged", logs: logs, sub: sub}, nil } // WatchOwnerChanged is a free log subscription operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c. // // Solidity: event OwnerChanged(address oldOwner, address newOwner) -func (_SUSDTGoerli *SUSDTGoerliFilterer) WatchOwnerChanged(opts *bind.WatchOpts, sink chan<- *SUSDTGoerliOwnerChanged) (event.Subscription, error) { +func (_SUSDT *SUSDTFilterer) WatchOwnerChanged(opts *bind.WatchOpts, sink chan<- *SUSDTOwnerChanged) (event.Subscription, error) { - logs, sub, err := _SUSDTGoerli.contract.WatchLogs(opts, "OwnerChanged") + logs, sub, err := _SUSDT.contract.WatchLogs(opts, "OwnerChanged") if err != nil { return nil, err } @@ -1344,8 +1344,8 @@ func (_SUSDTGoerli *SUSDTGoerliFilterer) WatchOwnerChanged(opts *bind.WatchOpts, select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(SUSDTGoerliOwnerChanged) - if err := _SUSDTGoerli.contract.UnpackLog(event, "OwnerChanged", log); err != nil { + event := new(SUSDTOwnerChanged) + if err := _SUSDT.contract.UnpackLog(event, "OwnerChanged", log); err != nil { return err } event.Raw = log @@ -1369,18 +1369,18 @@ func (_SUSDTGoerli *SUSDTGoerliFilterer) WatchOwnerChanged(opts *bind.WatchOpts, // ParseOwnerChanged is a log parse operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c. // // Solidity: event OwnerChanged(address oldOwner, address newOwner) -func (_SUSDTGoerli *SUSDTGoerliFilterer) ParseOwnerChanged(log types.Log) (*SUSDTGoerliOwnerChanged, error) { - event := new(SUSDTGoerliOwnerChanged) - if err := _SUSDTGoerli.contract.UnpackLog(event, "OwnerChanged", log); err != nil { +func (_SUSDT *SUSDTFilterer) ParseOwnerChanged(log types.Log) (*SUSDTOwnerChanged, error) { + event := new(SUSDTOwnerChanged) + if err := _SUSDT.contract.UnpackLog(event, "OwnerChanged", log); err != nil { return nil, err } event.Raw = log return event, nil } -// SUSDTGoerliOwnerNominatedIterator is returned from FilterOwnerNominated and is used to iterate over the raw logs and unpacked data for OwnerNominated events raised by the SUSDTGoerli contract. -type SUSDTGoerliOwnerNominatedIterator struct { - Event *SUSDTGoerliOwnerNominated // Event containing the contract specifics and raw log +// SUSDTOwnerNominatedIterator is returned from FilterOwnerNominated and is used to iterate over the raw logs and unpacked data for OwnerNominated events raised by the SUSDT contract. +type SUSDTOwnerNominatedIterator struct { + Event *SUSDTOwnerNominated // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -1394,7 +1394,7 @@ type SUSDTGoerliOwnerNominatedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *SUSDTGoerliOwnerNominatedIterator) Next() bool { +func (it *SUSDTOwnerNominatedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -1403,7 +1403,7 @@ func (it *SUSDTGoerliOwnerNominatedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(SUSDTGoerliOwnerNominated) + it.Event = new(SUSDTOwnerNominated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1418,7 +1418,7 @@ func (it *SUSDTGoerliOwnerNominatedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(SUSDTGoerliOwnerNominated) + it.Event = new(SUSDTOwnerNominated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1434,19 +1434,19 @@ func (it *SUSDTGoerliOwnerNominatedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *SUSDTGoerliOwnerNominatedIterator) Error() error { +func (it *SUSDTOwnerNominatedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *SUSDTGoerliOwnerNominatedIterator) Close() error { +func (it *SUSDTOwnerNominatedIterator) Close() error { it.sub.Unsubscribe() return nil } -// SUSDTGoerliOwnerNominated represents a OwnerNominated event raised by the SUSDTGoerli contract. -type SUSDTGoerliOwnerNominated struct { +// SUSDTOwnerNominated represents a OwnerNominated event raised by the SUSDT contract. +type SUSDTOwnerNominated struct { NewOwner common.Address Raw types.Log // Blockchain specific contextual infos } @@ -1454,21 +1454,21 @@ type SUSDTGoerliOwnerNominated struct { // FilterOwnerNominated is a free log retrieval operation binding the contract event 0x906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22. // // Solidity: event OwnerNominated(address newOwner) -func (_SUSDTGoerli *SUSDTGoerliFilterer) FilterOwnerNominated(opts *bind.FilterOpts) (*SUSDTGoerliOwnerNominatedIterator, error) { +func (_SUSDT *SUSDTFilterer) FilterOwnerNominated(opts *bind.FilterOpts) (*SUSDTOwnerNominatedIterator, error) { - logs, sub, err := _SUSDTGoerli.contract.FilterLogs(opts, "OwnerNominated") + logs, sub, err := _SUSDT.contract.FilterLogs(opts, "OwnerNominated") if err != nil { return nil, err } - return &SUSDTGoerliOwnerNominatedIterator{contract: _SUSDTGoerli.contract, event: "OwnerNominated", logs: logs, sub: sub}, nil + return &SUSDTOwnerNominatedIterator{contract: _SUSDT.contract, event: "OwnerNominated", logs: logs, sub: sub}, nil } // WatchOwnerNominated is a free log subscription operation binding the contract event 0x906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22. // // Solidity: event OwnerNominated(address newOwner) -func (_SUSDTGoerli *SUSDTGoerliFilterer) WatchOwnerNominated(opts *bind.WatchOpts, sink chan<- *SUSDTGoerliOwnerNominated) (event.Subscription, error) { +func (_SUSDT *SUSDTFilterer) WatchOwnerNominated(opts *bind.WatchOpts, sink chan<- *SUSDTOwnerNominated) (event.Subscription, error) { - logs, sub, err := _SUSDTGoerli.contract.WatchLogs(opts, "OwnerNominated") + logs, sub, err := _SUSDT.contract.WatchLogs(opts, "OwnerNominated") if err != nil { return nil, err } @@ -1478,8 +1478,8 @@ func (_SUSDTGoerli *SUSDTGoerliFilterer) WatchOwnerNominated(opts *bind.WatchOpt select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(SUSDTGoerliOwnerNominated) - if err := _SUSDTGoerli.contract.UnpackLog(event, "OwnerNominated", log); err != nil { + event := new(SUSDTOwnerNominated) + if err := _SUSDT.contract.UnpackLog(event, "OwnerNominated", log); err != nil { return err } event.Raw = log @@ -1503,18 +1503,18 @@ func (_SUSDTGoerli *SUSDTGoerliFilterer) WatchOwnerNominated(opts *bind.WatchOpt // ParseOwnerNominated is a log parse operation binding the contract event 0x906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22. // // Solidity: event OwnerNominated(address newOwner) -func (_SUSDTGoerli *SUSDTGoerliFilterer) ParseOwnerNominated(log types.Log) (*SUSDTGoerliOwnerNominated, error) { - event := new(SUSDTGoerliOwnerNominated) - if err := _SUSDTGoerli.contract.UnpackLog(event, "OwnerNominated", log); err != nil { +func (_SUSDT *SUSDTFilterer) ParseOwnerNominated(log types.Log) (*SUSDTOwnerNominated, error) { + event := new(SUSDTOwnerNominated) + if err := _SUSDT.contract.UnpackLog(event, "OwnerNominated", log); err != nil { return nil, err } event.Raw = log return event, nil } -// SUSDTGoerliTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the SUSDTGoerli contract. -type SUSDTGoerliTransferIterator struct { - Event *SUSDTGoerliTransfer // Event containing the contract specifics and raw log +// SUSDTTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the SUSDT contract. +type SUSDTTransferIterator struct { + Event *SUSDTTransfer // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -1528,7 +1528,7 @@ type SUSDTGoerliTransferIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *SUSDTGoerliTransferIterator) Next() bool { +func (it *SUSDTTransferIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -1537,7 +1537,7 @@ func (it *SUSDTGoerliTransferIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(SUSDTGoerliTransfer) + it.Event = new(SUSDTTransfer) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1552,7 +1552,7 @@ func (it *SUSDTGoerliTransferIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(SUSDTGoerliTransfer) + it.Event = new(SUSDTTransfer) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1568,19 +1568,19 @@ func (it *SUSDTGoerliTransferIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *SUSDTGoerliTransferIterator) Error() error { +func (it *SUSDTTransferIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *SUSDTGoerliTransferIterator) Close() error { +func (it *SUSDTTransferIterator) Close() error { it.sub.Unsubscribe() return nil } -// SUSDTGoerliTransfer represents a Transfer event raised by the SUSDTGoerli contract. -type SUSDTGoerliTransfer struct { +// SUSDTTransfer represents a Transfer event raised by the SUSDT contract. +type SUSDTTransfer struct { From common.Address To common.Address Amount *big.Int @@ -1590,7 +1590,7 @@ type SUSDTGoerliTransfer struct { // FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. // // Solidity: event Transfer(address indexed from, address indexed to, uint256 amount) -func (_SUSDTGoerli *SUSDTGoerliFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*SUSDTGoerliTransferIterator, error) { +func (_SUSDT *SUSDTFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*SUSDTTransferIterator, error) { var fromRule []interface{} for _, fromItem := range from { @@ -1601,17 +1601,17 @@ func (_SUSDTGoerli *SUSDTGoerliFilterer) FilterTransfer(opts *bind.FilterOpts, f toRule = append(toRule, toItem) } - logs, sub, err := _SUSDTGoerli.contract.FilterLogs(opts, "Transfer", fromRule, toRule) + logs, sub, err := _SUSDT.contract.FilterLogs(opts, "Transfer", fromRule, toRule) if err != nil { return nil, err } - return &SUSDTGoerliTransferIterator{contract: _SUSDTGoerli.contract, event: "Transfer", logs: logs, sub: sub}, nil + return &SUSDTTransferIterator{contract: _SUSDT.contract, event: "Transfer", logs: logs, sub: sub}, nil } // WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. // // Solidity: event Transfer(address indexed from, address indexed to, uint256 amount) -func (_SUSDTGoerli *SUSDTGoerliFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *SUSDTGoerliTransfer, from []common.Address, to []common.Address) (event.Subscription, error) { +func (_SUSDT *SUSDTFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *SUSDTTransfer, from []common.Address, to []common.Address) (event.Subscription, error) { var fromRule []interface{} for _, fromItem := range from { @@ -1622,7 +1622,7 @@ func (_SUSDTGoerli *SUSDTGoerliFilterer) WatchTransfer(opts *bind.WatchOpts, sin toRule = append(toRule, toItem) } - logs, sub, err := _SUSDTGoerli.contract.WatchLogs(opts, "Transfer", fromRule, toRule) + logs, sub, err := _SUSDT.contract.WatchLogs(opts, "Transfer", fromRule, toRule) if err != nil { return nil, err } @@ -1632,8 +1632,8 @@ func (_SUSDTGoerli *SUSDTGoerliFilterer) WatchTransfer(opts *bind.WatchOpts, sin select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(SUSDTGoerliTransfer) - if err := _SUSDTGoerli.contract.UnpackLog(event, "Transfer", log); err != nil { + event := new(SUSDTTransfer) + if err := _SUSDT.contract.UnpackLog(event, "Transfer", log); err != nil { return err } event.Raw = log @@ -1657,18 +1657,18 @@ func (_SUSDTGoerli *SUSDTGoerliFilterer) WatchTransfer(opts *bind.WatchOpts, sin // ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. // // Solidity: event Transfer(address indexed from, address indexed to, uint256 amount) -func (_SUSDTGoerli *SUSDTGoerliFilterer) ParseTransfer(log types.Log) (*SUSDTGoerliTransfer, error) { - event := new(SUSDTGoerliTransfer) - if err := _SUSDTGoerli.contract.UnpackLog(event, "Transfer", log); err != nil { +func (_SUSDT *SUSDTFilterer) ParseTransfer(log types.Log) (*SUSDTTransfer, error) { + event := new(SUSDTTransfer) + if err := _SUSDT.contract.UnpackLog(event, "Transfer", log); err != nil { return nil, err } event.Raw = log return event, nil } -// SUSDTGoerliUpgradedIterator is returned from FilterUpgraded and is used to iterate over the raw logs and unpacked data for Upgraded events raised by the SUSDTGoerli contract. -type SUSDTGoerliUpgradedIterator struct { - Event *SUSDTGoerliUpgraded // Event containing the contract specifics and raw log +// SUSDTUpgradedIterator is returned from FilterUpgraded and is used to iterate over the raw logs and unpacked data for Upgraded events raised by the SUSDT contract. +type SUSDTUpgradedIterator struct { + Event *SUSDTUpgraded // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -1682,7 +1682,7 @@ type SUSDTGoerliUpgradedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *SUSDTGoerliUpgradedIterator) Next() bool { +func (it *SUSDTUpgradedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -1691,7 +1691,7 @@ func (it *SUSDTGoerliUpgradedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(SUSDTGoerliUpgraded) + it.Event = new(SUSDTUpgraded) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1706,7 +1706,7 @@ func (it *SUSDTGoerliUpgradedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(SUSDTGoerliUpgraded) + it.Event = new(SUSDTUpgraded) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1722,19 +1722,19 @@ func (it *SUSDTGoerliUpgradedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *SUSDTGoerliUpgradedIterator) Error() error { +func (it *SUSDTUpgradedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *SUSDTGoerliUpgradedIterator) Close() error { +func (it *SUSDTUpgradedIterator) Close() error { it.sub.Unsubscribe() return nil } -// SUSDTGoerliUpgraded represents a Upgraded event raised by the SUSDTGoerli contract. -type SUSDTGoerliUpgraded struct { +// SUSDTUpgraded represents a Upgraded event raised by the SUSDT contract. +type SUSDTUpgraded struct { Self common.Address Implementation common.Address Raw types.Log // Blockchain specific contextual infos @@ -1743,31 +1743,31 @@ type SUSDTGoerliUpgraded struct { // FilterUpgraded is a free log retrieval operation binding the contract event 0x5d611f318680d00598bb735d61bacf0c514c6b50e1e5ad30040a4df2b12791c7. // // Solidity: event Upgraded(address indexed self, address implementation) -func (_SUSDTGoerli *SUSDTGoerliFilterer) FilterUpgraded(opts *bind.FilterOpts, self []common.Address) (*SUSDTGoerliUpgradedIterator, error) { +func (_SUSDT *SUSDTFilterer) FilterUpgraded(opts *bind.FilterOpts, self []common.Address) (*SUSDTUpgradedIterator, error) { var selfRule []interface{} for _, selfItem := range self { selfRule = append(selfRule, selfItem) } - logs, sub, err := _SUSDTGoerli.contract.FilterLogs(opts, "Upgraded", selfRule) + logs, sub, err := _SUSDT.contract.FilterLogs(opts, "Upgraded", selfRule) if err != nil { return nil, err } - return &SUSDTGoerliUpgradedIterator{contract: _SUSDTGoerli.contract, event: "Upgraded", logs: logs, sub: sub}, nil + return &SUSDTUpgradedIterator{contract: _SUSDT.contract, event: "Upgraded", logs: logs, sub: sub}, nil } // WatchUpgraded is a free log subscription operation binding the contract event 0x5d611f318680d00598bb735d61bacf0c514c6b50e1e5ad30040a4df2b12791c7. // // Solidity: event Upgraded(address indexed self, address implementation) -func (_SUSDTGoerli *SUSDTGoerliFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *SUSDTGoerliUpgraded, self []common.Address) (event.Subscription, error) { +func (_SUSDT *SUSDTFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *SUSDTUpgraded, self []common.Address) (event.Subscription, error) { var selfRule []interface{} for _, selfItem := range self { selfRule = append(selfRule, selfItem) } - logs, sub, err := _SUSDTGoerli.contract.WatchLogs(opts, "Upgraded", selfRule) + logs, sub, err := _SUSDT.contract.WatchLogs(opts, "Upgraded", selfRule) if err != nil { return nil, err } @@ -1777,8 +1777,8 @@ func (_SUSDTGoerli *SUSDTGoerliFilterer) WatchUpgraded(opts *bind.WatchOpts, sin select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(SUSDTGoerliUpgraded) - if err := _SUSDTGoerli.contract.UnpackLog(event, "Upgraded", log); err != nil { + event := new(SUSDTUpgraded) + if err := _SUSDT.contract.UnpackLog(event, "Upgraded", log); err != nil { return err } event.Raw = log @@ -1802,9 +1802,9 @@ func (_SUSDTGoerli *SUSDTGoerliFilterer) WatchUpgraded(opts *bind.WatchOpts, sin // ParseUpgraded is a log parse operation binding the contract event 0x5d611f318680d00598bb735d61bacf0c514c6b50e1e5ad30040a4df2b12791c7. // // Solidity: event Upgraded(address indexed self, address implementation) -func (_SUSDTGoerli *SUSDTGoerliFilterer) ParseUpgraded(log types.Log) (*SUSDTGoerliUpgraded, error) { - event := new(SUSDTGoerliUpgraded) - if err := _SUSDTGoerli.contract.UnpackLog(event, "Upgraded", log); err != nil { +func (_SUSDT *SUSDTFilterer) ParseUpgraded(log types.Log) (*SUSDTUpgraded, error) { + event := new(SUSDTUpgraded) + if err := _SUSDT.contract.UnpackLog(event, "Upgraded", log); err != nil { return nil, err } event.Raw = log diff --git a/contracts/spotMarketGoerli/contract.go b/contracts/spotMarketGoerli/contract.go deleted file mode 100644 index a46b108..0000000 --- a/contracts/spotMarketGoerli/contract.go +++ /dev/null @@ -1,7696 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package spotMarketGoerli - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// AsyncOrderClaimData is an auto generated low-level Go binding around an user-defined struct. -type AsyncOrderClaimData struct { - Id *big.Int - Owner common.Address - OrderType uint8 - AmountEscrowed *big.Int - SettlementStrategyId *big.Int - SettlementTime *big.Int - MinimumSettlementAmount *big.Int - SettledAt *big.Int - Referrer common.Address -} - -// OrderFeesData is an auto generated low-level Go binding around an user-defined struct. -type OrderFeesData struct { - FixedFees *big.Int - UtilizationFees *big.Int - SkewFees *big.Int - WrapperFees *big.Int -} - -// SettlementStrategyData is an auto generated low-level Go binding around an user-defined struct. -type SettlementStrategyData struct { - StrategyType uint8 - SettlementDelay *big.Int - SettlementWindowDuration *big.Int - PriceVerificationContract common.Address - FeedId [32]byte - Url string - SettlementReward *big.Int - PriceDeviationTolerance *big.Int - MinimumUsdExchangeAmount *big.Int - MaxRoundingLoss *big.Int - Disabled bool -} - -// SpotMarketGoerliMetaData contains all meta data concerning the SpotMarketGoerli contract. -var SpotMarketGoerliMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"ImplementationIsSterile\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NoChange\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"contr\",\"type\":\"address\"}],\"name\":\"NotAContract\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"NotNominated\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"Unauthorized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UpgradeSimulationFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroAddress\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldOwner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnerChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnerNominated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"self\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getImplementation\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newNominatedOwner\",\"type\":\"address\"}],\"name\":\"nominateNewOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nominatedOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceNomination\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"simulateUpgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"upgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"which\",\"type\":\"bytes32\"}],\"name\":\"FeatureUnavailable\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidMarketOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"synthImplementation\",\"type\":\"uint256\"}],\"name\":\"InvalidSynthImplementation\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"expected\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"actual\",\"type\":\"bytes32\"}],\"name\":\"MismatchAssociatedSystemKind\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"MissingAssociatedSystem\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"marketOwner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"OnlyMarketOwner\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowInt256ToUint256\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"kind\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"impl\",\"type\":\"address\"}],\"name\":\"AssociatedSystemSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"rate\",\"type\":\"uint256\"}],\"name\":\"DecayRateUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"nominee\",\"type\":\"address\"}],\"name\":\"MarketNominationRenounced\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldOwner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"MarketOwnerChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"MarketOwnerNominated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"synthImplementation\",\"type\":\"address\"}],\"name\":\"SynthImplementationSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"synthMarketId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"SynthImplementationUpgraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"synthMarketId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"buyFeedId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"sellFeedId\",\"type\":\"bytes32\"}],\"name\":\"SynthPriceDataUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"synthMarketId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"synthTokenAddress\",\"type\":\"address\"}],\"name\":\"SynthRegistered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"synthetix\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"usdTokenAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oracleManager\",\"type\":\"address\"}],\"name\":\"SynthetixSystemSet\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"}],\"name\":\"acceptMarketOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"tokenName\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"tokenSymbol\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"synthOwner\",\"type\":\"address\"}],\"name\":\"createSynth\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"getAssociatedSystem\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"kind\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"}],\"name\":\"getMarketOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"marketOwner\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getSynth\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"synthAddress\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getSynthImpl\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"implAddress\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"impl\",\"type\":\"address\"}],\"name\":\"initOrUpgradeNft\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"uint8\",\"name\":\"decimals\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"impl\",\"type\":\"address\"}],\"name\":\"initOrUpgradeToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"minimumCredit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"lockedAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"marketName\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"newNominatedOwner\",\"type\":\"address\"}],\"name\":\"nominateMarketOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"endpoint\",\"type\":\"address\"}],\"name\":\"registerUnmanagedSystem\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"}],\"name\":\"renounceMarketNomination\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"}],\"name\":\"renounceMarketOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"reportedDebt\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"reportedDebtAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"rate\",\"type\":\"uint256\"}],\"name\":\"setDecayRate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"synthImplementation\",\"type\":\"address\"}],\"name\":\"setSynthImplementation\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractISynthetixSystem\",\"name\":\"synthetix\",\"type\":\"address\"}],\"name\":\"setSynthetix\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"isSupported\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"buyFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"sellFeedId\",\"type\":\"bytes32\"}],\"name\":\"updatePriceData\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"upgradeSynthImpl\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"maxSynthAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"synthAmountCharged\",\"type\":\"uint256\"}],\"name\":\"ExceedsMaxSynthAmount\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"maxUsdAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"usdAmountCharged\",\"type\":\"uint256\"}],\"name\":\"ExceedsMaxUsdAmount\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"expected\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"current\",\"type\":\"uint256\"}],\"name\":\"InsufficientAmountReceived\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"InvalidMarket\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidPrices\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowUint256ToInt256\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"synthMarketId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"synthReturned\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fixedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFees\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"skewFees\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"wrapperFees\",\"type\":\"int256\"}],\"indexed\":false,\"internalType\":\"structOrderFees.Data\",\"name\":\"fees\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"collectedFees\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"name\":\"SynthBought\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"synthMarketId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountReturned\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fixedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFees\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"skewFees\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"wrapperFees\",\"type\":\"int256\"}],\"indexed\":false,\"internalType\":\"structOrderFees.Data\",\"name\":\"fees\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"collectedFees\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"name\":\"SynthSold\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"usdAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minAmountReceived\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"}],\"name\":\"buy\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"synthAmount\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fixedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFees\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"skewFees\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"wrapperFees\",\"type\":\"int256\"}],\"internalType\":\"structOrderFees.Data\",\"name\":\"fees\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"usdAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minAmountReceived\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"}],\"name\":\"buyExactIn\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"synthAmount\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fixedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFees\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"skewFees\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"wrapperFees\",\"type\":\"int256\"}],\"internalType\":\"structOrderFees.Data\",\"name\":\"fees\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"synthAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxUsdAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"}],\"name\":\"buyExactOut\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"usdAmountCharged\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fixedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFees\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"skewFees\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"wrapperFees\",\"type\":\"int256\"}],\"internalType\":\"structOrderFees.Data\",\"name\":\"fees\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"usdAmount\",\"type\":\"uint256\"}],\"name\":\"quoteBuyExactIn\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"synthAmount\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fixedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFees\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"skewFees\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"wrapperFees\",\"type\":\"int256\"}],\"internalType\":\"structOrderFees.Data\",\"name\":\"fees\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"synthAmount\",\"type\":\"uint256\"}],\"name\":\"quoteBuyExactOut\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"usdAmountCharged\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fixedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFees\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"skewFees\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"wrapperFees\",\"type\":\"int256\"}],\"internalType\":\"structOrderFees.Data\",\"name\":\"fees\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"synthAmount\",\"type\":\"uint256\"}],\"name\":\"quoteSellExactIn\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"returnAmount\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fixedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFees\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"skewFees\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"wrapperFees\",\"type\":\"int256\"}],\"internalType\":\"structOrderFees.Data\",\"name\":\"fees\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"usdAmount\",\"type\":\"uint256\"}],\"name\":\"quoteSellExactOut\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"synthToBurn\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fixedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFees\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"skewFees\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"wrapperFees\",\"type\":\"int256\"}],\"internalType\":\"structOrderFees.Data\",\"name\":\"fees\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"synthAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minUsdAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"}],\"name\":\"sell\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"usdAmountReceived\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fixedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFees\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"skewFees\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"wrapperFees\",\"type\":\"int256\"}],\"internalType\":\"structOrderFees.Data\",\"name\":\"fees\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"synthAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minAmountReceived\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"}],\"name\":\"sellExactIn\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"returnAmount\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fixedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFees\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"skewFees\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"wrapperFees\",\"type\":\"int256\"}],\"internalType\":\"structOrderFees.Data\",\"name\":\"fees\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"usdAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxSynthAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"}],\"name\":\"sellExactOut\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"synthToBurn\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fixedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFees\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"skewFees\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"wrapperFees\",\"type\":\"int256\"}],\"internalType\":\"structOrderFees.Data\",\"name\":\"fees\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expirationTime\",\"type\":\"uint256\"}],\"name\":\"IneligibleForCancellation\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"expected\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"actual\",\"type\":\"uint256\"}],\"name\":\"InsufficientSharesAmount\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"enumTransaction.Type\",\"name\":\"transactionType\",\"type\":\"uint8\"}],\"name\":\"InvalidAsyncTransactionType\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"asyncOrderId\",\"type\":\"uint256\"}],\"name\":\"InvalidClaim\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"minimumAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"InvalidCommitmentAmount\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"settlementStrategyId\",\"type\":\"uint256\"}],\"name\":\"InvalidSettlementStrategy\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"asyncOrderId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settledAt\",\"type\":\"uint256\"}],\"name\":\"OrderAlreadySettled\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"asyncOrderId\",\"type\":\"uint128\"},{\"components\":[{\"internalType\":\"uint128\",\"name\":\"id\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"enumTransaction.Type\",\"name\":\"orderType\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"amountEscrowed\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settlementStrategyId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settlementTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minimumSettlementAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settledAt\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"}],\"indexed\":false,\"internalType\":\"structAsyncOrderClaim.Data\",\"name\":\"asyncOrderClaim\",\"type\":\"tuple\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"OrderCancelled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"enumTransaction.Type\",\"name\":\"orderType\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountProvided\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"asyncOrderId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"}],\"name\":\"OrderCommitted\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"asyncOrderId\",\"type\":\"uint128\"}],\"name\":\"cancelOrder\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"enumTransaction.Type\",\"name\":\"orderType\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"amountProvided\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settlementStrategyId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minimumSettlementAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"}],\"name\":\"commitOrder\",\"outputs\":[{\"components\":[{\"internalType\":\"uint128\",\"name\":\"id\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"enumTransaction.Type\",\"name\":\"orderType\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"amountEscrowed\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settlementStrategyId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settlementTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minimumSettlementAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settledAt\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"}],\"internalType\":\"structAsyncOrderClaim.Data\",\"name\":\"asyncOrderClaim\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"asyncOrderId\",\"type\":\"uint128\"}],\"name\":\"getAsyncOrderClaim\",\"outputs\":[{\"components\":[{\"internalType\":\"uint128\",\"name\":\"id\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"enumTransaction.Type\",\"name\":\"orderType\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"amountEscrowed\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settlementStrategyId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settlementTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minimumSettlementAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settledAt\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"}],\"internalType\":\"structAsyncOrderClaim.Data\",\"name\":\"asyncOrderClaim\",\"type\":\"tuple\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"enumSettlementStrategy.Type\",\"name\":\"strategyType\",\"type\":\"uint8\"}],\"name\":\"InvalidSettlementStrategy\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidVerificationResponse\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"minimum\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"actual\",\"type\":\"uint256\"}],\"name\":\"MinimumSettlementAmountNotMet\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"string[]\",\"name\":\"urls\",\"type\":\"string[]\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"},{\"internalType\":\"bytes4\",\"name\":\"callbackFunction\",\"type\":\"bytes4\"},{\"internalType\":\"bytes\",\"name\":\"extraData\",\"type\":\"bytes\"}],\"name\":\"OffchainLookup\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"startTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expirationTime\",\"type\":\"uint256\"}],\"name\":\"OutsideSettlementWindow\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowUint256ToUint64\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"deviation\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tolerance\",\"type\":\"uint256\"}],\"name\":\"PriceDeviationToleranceExceeded\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"enumSettlementStrategy.Type\",\"name\":\"strategyType\",\"type\":\"uint8\"}],\"name\":\"SettlementStrategyNotFound\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"asyncOrderId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"finalOrderAmount\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fixedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFees\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"skewFees\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"wrapperFees\",\"type\":\"int256\"}],\"indexed\":false,\"internalType\":\"structOrderFees.Data\",\"name\":\"fees\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"collectedFees\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"settler\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"enumTransaction.Type\",\"name\":\"orderType\",\"type\":\"uint8\"}],\"name\":\"OrderSettled\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"PRECISION\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"asyncOrderId\",\"type\":\"uint128\"}],\"name\":\"settleOrder\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"finalOrderAmount\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fixedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFees\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"skewFees\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"wrapperFees\",\"type\":\"int256\"}],\"internalType\":\"structOrderFees.Data\",\"name\":\"fees\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"result\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"extraData\",\"type\":\"bytes\"}],\"name\":\"settlePythOrder\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"finalOrderAmount\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fixedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFees\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"skewFees\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"wrapperFees\",\"type\":\"int256\"}],\"internalType\":\"structOrderFees.Data\",\"name\":\"fees\",\"type\":\"tuple\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"strategyId\",\"type\":\"uint256\"}],\"name\":\"SettlementStrategyAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"strategyId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"enabled\",\"type\":\"bool\"}],\"name\":\"SettlementStrategyUpdated\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"components\":[{\"internalType\":\"enumSettlementStrategy.Type\",\"name\":\"strategyType\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"settlementDelay\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settlementWindowDuration\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"priceVerificationContract\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"feedId\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"url\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"settlementReward\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"priceDeviationTolerance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minimumUsdExchangeAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxRoundingLoss\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"disabled\",\"type\":\"bool\"}],\"internalType\":\"structSettlementStrategy.Data\",\"name\":\"strategy\",\"type\":\"tuple\"}],\"name\":\"addSettlementStrategy\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"strategyId\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"strategyId\",\"type\":\"uint256\"}],\"name\":\"getSettlementStrategy\",\"outputs\":[{\"components\":[{\"internalType\":\"enumSettlementStrategy.Type\",\"name\":\"strategyType\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"settlementDelay\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settlementWindowDuration\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"priceVerificationContract\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"feedId\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"url\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"settlementReward\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"priceDeviationTolerance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minimumUsdExchangeAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxRoundingLoss\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"disabled\",\"type\":\"bool\"}],\"internalType\":\"structSettlementStrategy.Data\",\"name\":\"settlementStrategy\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"strategyId\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"enabled\",\"type\":\"bool\"}],\"name\":\"setSettlementStrategyEnabled\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"FailedTransfer\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"message\",\"type\":\"bytes32\"}],\"name\":\"InvalidCollateralType\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"maxWrappableAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"currentSupply\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountToWrap\",\"type\":\"uint256\"}],\"name\":\"WrapperExceedsMaxAmount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"synthMarketId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountUnwrapped\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fixedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFees\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"skewFees\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"wrapperFees\",\"type\":\"int256\"}],\"indexed\":false,\"internalType\":\"structOrderFees.Data\",\"name\":\"fees\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"feesCollected\",\"type\":\"uint256\"}],\"name\":\"SynthUnwrapped\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"synthMarketId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountWrapped\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fixedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFees\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"skewFees\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"wrapperFees\",\"type\":\"int256\"}],\"indexed\":false,\"internalType\":\"structOrderFees.Data\",\"name\":\"fees\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"feesCollected\",\"type\":\"uint256\"}],\"name\":\"SynthWrapped\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"synthMarketId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"wrapCollateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"maxWrappableAmount\",\"type\":\"uint256\"}],\"name\":\"WrapperSet\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"wrapCollateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"maxWrappableAmount\",\"type\":\"uint256\"}],\"name\":\"setWrapper\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"unwrapAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minAmountReceived\",\"type\":\"uint256\"}],\"name\":\"unwrap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"returnCollateralAmount\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fixedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFees\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"skewFees\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"wrapperFees\",\"type\":\"int256\"}],\"internalType\":\"structOrderFees.Data\",\"name\":\"fees\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"wrapAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minAmountReceived\",\"type\":\"uint256\"}],\"name\":\"wrap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountToMint\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fixedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFees\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"skewFees\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"wrapperFees\",\"type\":\"int256\"}],\"internalType\":\"structOrderFees.Data\",\"name\":\"fees\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"InvalidCollateralLeverage\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"invalidFeeCollector\",\"type\":\"address\"}],\"name\":\"InvalidFeeCollectorInterface\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidWrapperFees\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"synthMarketId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"asyncFixedFee\",\"type\":\"uint256\"}],\"name\":\"AsyncFixedFeeSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"synthMarketId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"atomicFixedFee\",\"type\":\"uint256\"}],\"name\":\"AtomicFixedFeeSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"synthMarketId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"collateralLeverage\",\"type\":\"uint256\"}],\"name\":\"CollateralLeverageSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"synthMarketId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"feeCollector\",\"type\":\"address\"}],\"name\":\"FeeCollectorSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"synthMarketId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"skewScale\",\"type\":\"uint256\"}],\"name\":\"MarketSkewScaleSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"synthMarketId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"utilizationFeeRate\",\"type\":\"uint256\"}],\"name\":\"MarketUtilizationFeesSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"sharePercentage\",\"type\":\"uint256\"}],\"name\":\"ReferrerShareUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"synthMarketId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"transactor\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fixedFeeAmount\",\"type\":\"uint256\"}],\"name\":\"TransactorFixedFeeSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"synthMarketId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"wrapFee\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"unwrapFee\",\"type\":\"int256\"}],\"name\":\"WrapperFeesSet\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"}],\"name\":\"getCollateralLeverage\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"collateralLeverage\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"transactor\",\"type\":\"address\"}],\"name\":\"getCustomTransactorFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"fixedFeeAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"}],\"name\":\"getFeeCollector\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"feeCollector\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"}],\"name\":\"getMarketFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"atomicFixedFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"asyncFixedFee\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"wrapFee\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"unwrapFee\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"}],\"name\":\"getMarketSkewScale\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"skewScale\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"}],\"name\":\"getMarketUtilizationFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"utilizationFeeRate\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"}],\"name\":\"getReferrerShare\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"sharePercentage\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"asyncFixedFee\",\"type\":\"uint256\"}],\"name\":\"setAsyncFixedFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"atomicFixedFee\",\"type\":\"uint256\"}],\"name\":\"setAtomicFixedFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"collateralLeverage\",\"type\":\"uint256\"}],\"name\":\"setCollateralLeverage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"transactor\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"fixedFeeAmount\",\"type\":\"uint256\"}],\"name\":\"setCustomTransactorFees\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"feeCollector\",\"type\":\"address\"}],\"name\":\"setFeeCollector\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"skewScale\",\"type\":\"uint256\"}],\"name\":\"setMarketSkewScale\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFeeRate\",\"type\":\"uint256\"}],\"name\":\"setMarketUtilizationFees\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"int256\",\"name\":\"wrapFee\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"unwrapFee\",\"type\":\"int256\"}],\"name\":\"setWrapperFees\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"sharePercentage\",\"type\":\"uint256\"}],\"name\":\"updateReferrerShare\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ValueAlreadyInSet\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ValueNotInSet\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"allowAll\",\"type\":\"bool\"}],\"name\":\"FeatureFlagAllowAllSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"FeatureFlagAllowlistAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"FeatureFlagAllowlistRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"deniers\",\"type\":\"address[]\"}],\"name\":\"FeatureFlagDeniersReset\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"denyAll\",\"type\":\"bool\"}],\"name\":\"FeatureFlagDenyAllSet\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"addToFeatureFlagAllowlist\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"}],\"name\":\"getDeniers\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"}],\"name\":\"getFeatureFlagAllowAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"}],\"name\":\"getFeatureFlagAllowlist\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"}],\"name\":\"getFeatureFlagDenyAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"isFeatureAllowed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"removeFromFeatureFlagAllowlist\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"address[]\",\"name\":\"deniers\",\"type\":\"address[]\"}],\"name\":\"setDeniers\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"bool\",\"name\":\"allowAll\",\"type\":\"bool\"}],\"name\":\"setFeatureFlagAllowAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"bool\",\"name\":\"denyAll\",\"type\":\"bool\"}],\"name\":\"setFeatureFlagDenyAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", -} - -// SpotMarketGoerliABI is the input ABI used to generate the binding from. -// Deprecated: Use SpotMarketGoerliMetaData.ABI instead. -var SpotMarketGoerliABI = SpotMarketGoerliMetaData.ABI - -// SpotMarketGoerli is an auto generated Go binding around an Ethereum contract. -type SpotMarketGoerli struct { - SpotMarketGoerliCaller // Read-only binding to the contract - SpotMarketGoerliTransactor // Write-only binding to the contract - SpotMarketGoerliFilterer // Log filterer for contract events -} - -// SpotMarketGoerliCaller is an auto generated read-only Go binding around an Ethereum contract. -type SpotMarketGoerliCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// SpotMarketGoerliTransactor is an auto generated write-only Go binding around an Ethereum contract. -type SpotMarketGoerliTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// SpotMarketGoerliFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type SpotMarketGoerliFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// SpotMarketGoerliSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type SpotMarketGoerliSession struct { - Contract *SpotMarketGoerli // 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 -} - -// SpotMarketGoerliCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type SpotMarketGoerliCallerSession struct { - Contract *SpotMarketGoerliCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// SpotMarketGoerliTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type SpotMarketGoerliTransactorSession struct { - Contract *SpotMarketGoerliTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// SpotMarketGoerliRaw is an auto generated low-level Go binding around an Ethereum contract. -type SpotMarketGoerliRaw struct { - Contract *SpotMarketGoerli // Generic contract binding to access the raw methods on -} - -// SpotMarketGoerliCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type SpotMarketGoerliCallerRaw struct { - Contract *SpotMarketGoerliCaller // Generic read-only contract binding to access the raw methods on -} - -// SpotMarketGoerliTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type SpotMarketGoerliTransactorRaw struct { - Contract *SpotMarketGoerliTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewSpotMarketGoerli creates a new instance of SpotMarketGoerli, bound to a specific deployed contract. -func NewSpotMarketGoerli(address common.Address, backend bind.ContractBackend) (*SpotMarketGoerli, error) { - contract, err := bindSpotMarketGoerli(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &SpotMarketGoerli{SpotMarketGoerliCaller: SpotMarketGoerliCaller{contract: contract}, SpotMarketGoerliTransactor: SpotMarketGoerliTransactor{contract: contract}, SpotMarketGoerliFilterer: SpotMarketGoerliFilterer{contract: contract}}, nil -} - -// NewSpotMarketGoerliCaller creates a new read-only instance of SpotMarketGoerli, bound to a specific deployed contract. -func NewSpotMarketGoerliCaller(address common.Address, caller bind.ContractCaller) (*SpotMarketGoerliCaller, error) { - contract, err := bindSpotMarketGoerli(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &SpotMarketGoerliCaller{contract: contract}, nil -} - -// NewSpotMarketGoerliTransactor creates a new write-only instance of SpotMarketGoerli, bound to a specific deployed contract. -func NewSpotMarketGoerliTransactor(address common.Address, transactor bind.ContractTransactor) (*SpotMarketGoerliTransactor, error) { - contract, err := bindSpotMarketGoerli(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &SpotMarketGoerliTransactor{contract: contract}, nil -} - -// NewSpotMarketGoerliFilterer creates a new log filterer instance of SpotMarketGoerli, bound to a specific deployed contract. -func NewSpotMarketGoerliFilterer(address common.Address, filterer bind.ContractFilterer) (*SpotMarketGoerliFilterer, error) { - contract, err := bindSpotMarketGoerli(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &SpotMarketGoerliFilterer{contract: contract}, nil -} - -// bindSpotMarketGoerli binds a generic wrapper to an already deployed contract. -func bindSpotMarketGoerli(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := SpotMarketGoerliMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// 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 (_SpotMarketGoerli *SpotMarketGoerliRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _SpotMarketGoerli.Contract.SpotMarketGoerliCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_SpotMarketGoerli *SpotMarketGoerliRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SpotMarketGoerliTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_SpotMarketGoerli *SpotMarketGoerliRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SpotMarketGoerliTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_SpotMarketGoerli *SpotMarketGoerliCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _SpotMarketGoerli.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_SpotMarketGoerli *SpotMarketGoerliTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_SpotMarketGoerli *SpotMarketGoerliTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.contract.Transact(opts, method, params...) -} - -// PRECISION is a free data retrieval call binding the contract method 0xaaf5eb68. -// -// Solidity: function PRECISION() view returns(int256) -func (_SpotMarketGoerli *SpotMarketGoerliCaller) PRECISION(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _SpotMarketGoerli.contract.Call(opts, &out, "PRECISION") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// PRECISION is a free data retrieval call binding the contract method 0xaaf5eb68. -// -// Solidity: function PRECISION() view returns(int256) -func (_SpotMarketGoerli *SpotMarketGoerliSession) PRECISION() (*big.Int, error) { - return _SpotMarketGoerli.Contract.PRECISION(&_SpotMarketGoerli.CallOpts) -} - -// PRECISION is a free data retrieval call binding the contract method 0xaaf5eb68. -// -// Solidity: function PRECISION() view returns(int256) -func (_SpotMarketGoerli *SpotMarketGoerliCallerSession) PRECISION() (*big.Int, error) { - return _SpotMarketGoerli.Contract.PRECISION(&_SpotMarketGoerli.CallOpts) -} - -// GetAssociatedSystem is a free data retrieval call binding the contract method 0x60988e09. -// -// Solidity: function getAssociatedSystem(bytes32 id) view returns(address addr, bytes32 kind) -func (_SpotMarketGoerli *SpotMarketGoerliCaller) GetAssociatedSystem(opts *bind.CallOpts, id [32]byte) (struct { - Addr common.Address - Kind [32]byte -}, error) { - var out []interface{} - err := _SpotMarketGoerli.contract.Call(opts, &out, "getAssociatedSystem", id) - - outstruct := new(struct { - Addr common.Address - Kind [32]byte - }) - if err != nil { - return *outstruct, err - } - - outstruct.Addr = *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - outstruct.Kind = *abi.ConvertType(out[1], new([32]byte)).(*[32]byte) - - return *outstruct, err - -} - -// GetAssociatedSystem is a free data retrieval call binding the contract method 0x60988e09. -// -// Solidity: function getAssociatedSystem(bytes32 id) view returns(address addr, bytes32 kind) -func (_SpotMarketGoerli *SpotMarketGoerliSession) GetAssociatedSystem(id [32]byte) (struct { - Addr common.Address - Kind [32]byte -}, error) { - return _SpotMarketGoerli.Contract.GetAssociatedSystem(&_SpotMarketGoerli.CallOpts, id) -} - -// GetAssociatedSystem is a free data retrieval call binding the contract method 0x60988e09. -// -// Solidity: function getAssociatedSystem(bytes32 id) view returns(address addr, bytes32 kind) -func (_SpotMarketGoerli *SpotMarketGoerliCallerSession) GetAssociatedSystem(id [32]byte) (struct { - Addr common.Address - Kind [32]byte -}, error) { - return _SpotMarketGoerli.Contract.GetAssociatedSystem(&_SpotMarketGoerli.CallOpts, id) -} - -// GetAsyncOrderClaim is a free data retrieval call binding the contract method 0x5381ce16. -// -// Solidity: function getAsyncOrderClaim(uint128 marketId, uint128 asyncOrderId) pure returns((uint128,address,uint8,uint256,uint256,uint256,uint256,uint256,address) asyncOrderClaim) -func (_SpotMarketGoerli *SpotMarketGoerliCaller) GetAsyncOrderClaim(opts *bind.CallOpts, marketId *big.Int, asyncOrderId *big.Int) (AsyncOrderClaimData, error) { - var out []interface{} - err := _SpotMarketGoerli.contract.Call(opts, &out, "getAsyncOrderClaim", marketId, asyncOrderId) - - if err != nil { - return *new(AsyncOrderClaimData), err - } - - out0 := *abi.ConvertType(out[0], new(AsyncOrderClaimData)).(*AsyncOrderClaimData) - - return out0, err - -} - -// GetAsyncOrderClaim is a free data retrieval call binding the contract method 0x5381ce16. -// -// Solidity: function getAsyncOrderClaim(uint128 marketId, uint128 asyncOrderId) pure returns((uint128,address,uint8,uint256,uint256,uint256,uint256,uint256,address) asyncOrderClaim) -func (_SpotMarketGoerli *SpotMarketGoerliSession) GetAsyncOrderClaim(marketId *big.Int, asyncOrderId *big.Int) (AsyncOrderClaimData, error) { - return _SpotMarketGoerli.Contract.GetAsyncOrderClaim(&_SpotMarketGoerli.CallOpts, marketId, asyncOrderId) -} - -// GetAsyncOrderClaim is a free data retrieval call binding the contract method 0x5381ce16. -// -// Solidity: function getAsyncOrderClaim(uint128 marketId, uint128 asyncOrderId) pure returns((uint128,address,uint8,uint256,uint256,uint256,uint256,uint256,address) asyncOrderClaim) -func (_SpotMarketGoerli *SpotMarketGoerliCallerSession) GetAsyncOrderClaim(marketId *big.Int, asyncOrderId *big.Int) (AsyncOrderClaimData, error) { - return _SpotMarketGoerli.Contract.GetAsyncOrderClaim(&_SpotMarketGoerli.CallOpts, marketId, asyncOrderId) -} - -// GetCollateralLeverage is a free data retrieval call binding the contract method 0xcdfaef0f. -// -// Solidity: function getCollateralLeverage(uint128 synthMarketId) view returns(uint256 collateralLeverage) -func (_SpotMarketGoerli *SpotMarketGoerliCaller) GetCollateralLeverage(opts *bind.CallOpts, synthMarketId *big.Int) (*big.Int, error) { - var out []interface{} - err := _SpotMarketGoerli.contract.Call(opts, &out, "getCollateralLeverage", synthMarketId) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetCollateralLeverage is a free data retrieval call binding the contract method 0xcdfaef0f. -// -// Solidity: function getCollateralLeverage(uint128 synthMarketId) view returns(uint256 collateralLeverage) -func (_SpotMarketGoerli *SpotMarketGoerliSession) GetCollateralLeverage(synthMarketId *big.Int) (*big.Int, error) { - return _SpotMarketGoerli.Contract.GetCollateralLeverage(&_SpotMarketGoerli.CallOpts, synthMarketId) -} - -// GetCollateralLeverage is a free data retrieval call binding the contract method 0xcdfaef0f. -// -// Solidity: function getCollateralLeverage(uint128 synthMarketId) view returns(uint256 collateralLeverage) -func (_SpotMarketGoerli *SpotMarketGoerliCallerSession) GetCollateralLeverage(synthMarketId *big.Int) (*big.Int, error) { - return _SpotMarketGoerli.Contract.GetCollateralLeverage(&_SpotMarketGoerli.CallOpts, synthMarketId) -} - -// GetCustomTransactorFees is a free data retrieval call binding the contract method 0x2efaa971. -// -// Solidity: function getCustomTransactorFees(uint128 synthMarketId, address transactor) view returns(uint256 fixedFeeAmount) -func (_SpotMarketGoerli *SpotMarketGoerliCaller) GetCustomTransactorFees(opts *bind.CallOpts, synthMarketId *big.Int, transactor common.Address) (*big.Int, error) { - var out []interface{} - err := _SpotMarketGoerli.contract.Call(opts, &out, "getCustomTransactorFees", synthMarketId, transactor) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetCustomTransactorFees is a free data retrieval call binding the contract method 0x2efaa971. -// -// Solidity: function getCustomTransactorFees(uint128 synthMarketId, address transactor) view returns(uint256 fixedFeeAmount) -func (_SpotMarketGoerli *SpotMarketGoerliSession) GetCustomTransactorFees(synthMarketId *big.Int, transactor common.Address) (*big.Int, error) { - return _SpotMarketGoerli.Contract.GetCustomTransactorFees(&_SpotMarketGoerli.CallOpts, synthMarketId, transactor) -} - -// GetCustomTransactorFees is a free data retrieval call binding the contract method 0x2efaa971. -// -// Solidity: function getCustomTransactorFees(uint128 synthMarketId, address transactor) view returns(uint256 fixedFeeAmount) -func (_SpotMarketGoerli *SpotMarketGoerliCallerSession) GetCustomTransactorFees(synthMarketId *big.Int, transactor common.Address) (*big.Int, error) { - return _SpotMarketGoerli.Contract.GetCustomTransactorFees(&_SpotMarketGoerli.CallOpts, synthMarketId, transactor) -} - -// GetDeniers is a free data retrieval call binding the contract method 0xed429cf7. -// -// Solidity: function getDeniers(bytes32 feature) view returns(address[]) -func (_SpotMarketGoerli *SpotMarketGoerliCaller) GetDeniers(opts *bind.CallOpts, feature [32]byte) ([]common.Address, error) { - var out []interface{} - err := _SpotMarketGoerli.contract.Call(opts, &out, "getDeniers", feature) - - if err != nil { - return *new([]common.Address), err - } - - out0 := *abi.ConvertType(out[0], new([]common.Address)).(*[]common.Address) - - return out0, err - -} - -// GetDeniers is a free data retrieval call binding the contract method 0xed429cf7. -// -// Solidity: function getDeniers(bytes32 feature) view returns(address[]) -func (_SpotMarketGoerli *SpotMarketGoerliSession) GetDeniers(feature [32]byte) ([]common.Address, error) { - return _SpotMarketGoerli.Contract.GetDeniers(&_SpotMarketGoerli.CallOpts, feature) -} - -// GetDeniers is a free data retrieval call binding the contract method 0xed429cf7. -// -// Solidity: function getDeniers(bytes32 feature) view returns(address[]) -func (_SpotMarketGoerli *SpotMarketGoerliCallerSession) GetDeniers(feature [32]byte) ([]common.Address, error) { - return _SpotMarketGoerli.Contract.GetDeniers(&_SpotMarketGoerli.CallOpts, feature) -} - -// GetFeatureFlagAllowAll is a free data retrieval call binding the contract method 0x40a399ef. -// -// Solidity: function getFeatureFlagAllowAll(bytes32 feature) view returns(bool) -func (_SpotMarketGoerli *SpotMarketGoerliCaller) GetFeatureFlagAllowAll(opts *bind.CallOpts, feature [32]byte) (bool, error) { - var out []interface{} - err := _SpotMarketGoerli.contract.Call(opts, &out, "getFeatureFlagAllowAll", feature) - - if err != nil { - return *new(bool), err - } - - out0 := *abi.ConvertType(out[0], new(bool)).(*bool) - - return out0, err - -} - -// GetFeatureFlagAllowAll is a free data retrieval call binding the contract method 0x40a399ef. -// -// Solidity: function getFeatureFlagAllowAll(bytes32 feature) view returns(bool) -func (_SpotMarketGoerli *SpotMarketGoerliSession) GetFeatureFlagAllowAll(feature [32]byte) (bool, error) { - return _SpotMarketGoerli.Contract.GetFeatureFlagAllowAll(&_SpotMarketGoerli.CallOpts, feature) -} - -// GetFeatureFlagAllowAll is a free data retrieval call binding the contract method 0x40a399ef. -// -// Solidity: function getFeatureFlagAllowAll(bytes32 feature) view returns(bool) -func (_SpotMarketGoerli *SpotMarketGoerliCallerSession) GetFeatureFlagAllowAll(feature [32]byte) (bool, error) { - return _SpotMarketGoerli.Contract.GetFeatureFlagAllowAll(&_SpotMarketGoerli.CallOpts, feature) -} - -// GetFeatureFlagAllowlist is a free data retrieval call binding the contract method 0xe12c8160. -// -// Solidity: function getFeatureFlagAllowlist(bytes32 feature) view returns(address[]) -func (_SpotMarketGoerli *SpotMarketGoerliCaller) GetFeatureFlagAllowlist(opts *bind.CallOpts, feature [32]byte) ([]common.Address, error) { - var out []interface{} - err := _SpotMarketGoerli.contract.Call(opts, &out, "getFeatureFlagAllowlist", feature) - - if err != nil { - return *new([]common.Address), err - } - - out0 := *abi.ConvertType(out[0], new([]common.Address)).(*[]common.Address) - - return out0, err - -} - -// GetFeatureFlagAllowlist is a free data retrieval call binding the contract method 0xe12c8160. -// -// Solidity: function getFeatureFlagAllowlist(bytes32 feature) view returns(address[]) -func (_SpotMarketGoerli *SpotMarketGoerliSession) GetFeatureFlagAllowlist(feature [32]byte) ([]common.Address, error) { - return _SpotMarketGoerli.Contract.GetFeatureFlagAllowlist(&_SpotMarketGoerli.CallOpts, feature) -} - -// GetFeatureFlagAllowlist is a free data retrieval call binding the contract method 0xe12c8160. -// -// Solidity: function getFeatureFlagAllowlist(bytes32 feature) view returns(address[]) -func (_SpotMarketGoerli *SpotMarketGoerliCallerSession) GetFeatureFlagAllowlist(feature [32]byte) ([]common.Address, error) { - return _SpotMarketGoerli.Contract.GetFeatureFlagAllowlist(&_SpotMarketGoerli.CallOpts, feature) -} - -// GetFeatureFlagDenyAll is a free data retrieval call binding the contract method 0xbcae3ea0. -// -// Solidity: function getFeatureFlagDenyAll(bytes32 feature) view returns(bool) -func (_SpotMarketGoerli *SpotMarketGoerliCaller) GetFeatureFlagDenyAll(opts *bind.CallOpts, feature [32]byte) (bool, error) { - var out []interface{} - err := _SpotMarketGoerli.contract.Call(opts, &out, "getFeatureFlagDenyAll", feature) - - if err != nil { - return *new(bool), err - } - - out0 := *abi.ConvertType(out[0], new(bool)).(*bool) - - return out0, err - -} - -// GetFeatureFlagDenyAll is a free data retrieval call binding the contract method 0xbcae3ea0. -// -// Solidity: function getFeatureFlagDenyAll(bytes32 feature) view returns(bool) -func (_SpotMarketGoerli *SpotMarketGoerliSession) GetFeatureFlagDenyAll(feature [32]byte) (bool, error) { - return _SpotMarketGoerli.Contract.GetFeatureFlagDenyAll(&_SpotMarketGoerli.CallOpts, feature) -} - -// GetFeatureFlagDenyAll is a free data retrieval call binding the contract method 0xbcae3ea0. -// -// Solidity: function getFeatureFlagDenyAll(bytes32 feature) view returns(bool) -func (_SpotMarketGoerli *SpotMarketGoerliCallerSession) GetFeatureFlagDenyAll(feature [32]byte) (bool, error) { - return _SpotMarketGoerli.Contract.GetFeatureFlagDenyAll(&_SpotMarketGoerli.CallOpts, feature) -} - -// GetFeeCollector is a free data retrieval call binding the contract method 0x5497eb23. -// -// Solidity: function getFeeCollector(uint128 synthMarketId) view returns(address feeCollector) -func (_SpotMarketGoerli *SpotMarketGoerliCaller) GetFeeCollector(opts *bind.CallOpts, synthMarketId *big.Int) (common.Address, error) { - var out []interface{} - err := _SpotMarketGoerli.contract.Call(opts, &out, "getFeeCollector", synthMarketId) - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// GetFeeCollector is a free data retrieval call binding the contract method 0x5497eb23. -// -// Solidity: function getFeeCollector(uint128 synthMarketId) view returns(address feeCollector) -func (_SpotMarketGoerli *SpotMarketGoerliSession) GetFeeCollector(synthMarketId *big.Int) (common.Address, error) { - return _SpotMarketGoerli.Contract.GetFeeCollector(&_SpotMarketGoerli.CallOpts, synthMarketId) -} - -// GetFeeCollector is a free data retrieval call binding the contract method 0x5497eb23. -// -// Solidity: function getFeeCollector(uint128 synthMarketId) view returns(address feeCollector) -func (_SpotMarketGoerli *SpotMarketGoerliCallerSession) GetFeeCollector(synthMarketId *big.Int) (common.Address, error) { - return _SpotMarketGoerli.Contract.GetFeeCollector(&_SpotMarketGoerli.CallOpts, synthMarketId) -} - -// GetImplementation is a free data retrieval call binding the contract method 0xaaf10f42. -// -// Solidity: function getImplementation() view returns(address) -func (_SpotMarketGoerli *SpotMarketGoerliCaller) GetImplementation(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _SpotMarketGoerli.contract.Call(opts, &out, "getImplementation") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// GetImplementation is a free data retrieval call binding the contract method 0xaaf10f42. -// -// Solidity: function getImplementation() view returns(address) -func (_SpotMarketGoerli *SpotMarketGoerliSession) GetImplementation() (common.Address, error) { - return _SpotMarketGoerli.Contract.GetImplementation(&_SpotMarketGoerli.CallOpts) -} - -// GetImplementation is a free data retrieval call binding the contract method 0xaaf10f42. -// -// Solidity: function getImplementation() view returns(address) -func (_SpotMarketGoerli *SpotMarketGoerliCallerSession) GetImplementation() (common.Address, error) { - return _SpotMarketGoerli.Contract.GetImplementation(&_SpotMarketGoerli.CallOpts) -} - -// GetMarketFees is a free data retrieval call binding the contract method 0x32598e61. -// -// Solidity: function getMarketFees(uint128 synthMarketId) view returns(uint256 atomicFixedFee, uint256 asyncFixedFee, int256 wrapFee, int256 unwrapFee) -func (_SpotMarketGoerli *SpotMarketGoerliCaller) GetMarketFees(opts *bind.CallOpts, synthMarketId *big.Int) (struct { - AtomicFixedFee *big.Int - AsyncFixedFee *big.Int - WrapFee *big.Int - UnwrapFee *big.Int -}, error) { - var out []interface{} - err := _SpotMarketGoerli.contract.Call(opts, &out, "getMarketFees", synthMarketId) - - outstruct := new(struct { - AtomicFixedFee *big.Int - AsyncFixedFee *big.Int - WrapFee *big.Int - UnwrapFee *big.Int - }) - if err != nil { - return *outstruct, err - } - - outstruct.AtomicFixedFee = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - outstruct.AsyncFixedFee = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int) - outstruct.WrapFee = *abi.ConvertType(out[2], new(*big.Int)).(**big.Int) - outstruct.UnwrapFee = *abi.ConvertType(out[3], new(*big.Int)).(**big.Int) - - return *outstruct, err - -} - -// GetMarketFees is a free data retrieval call binding the contract method 0x32598e61. -// -// Solidity: function getMarketFees(uint128 synthMarketId) view returns(uint256 atomicFixedFee, uint256 asyncFixedFee, int256 wrapFee, int256 unwrapFee) -func (_SpotMarketGoerli *SpotMarketGoerliSession) GetMarketFees(synthMarketId *big.Int) (struct { - AtomicFixedFee *big.Int - AsyncFixedFee *big.Int - WrapFee *big.Int - UnwrapFee *big.Int -}, error) { - return _SpotMarketGoerli.Contract.GetMarketFees(&_SpotMarketGoerli.CallOpts, synthMarketId) -} - -// GetMarketFees is a free data retrieval call binding the contract method 0x32598e61. -// -// Solidity: function getMarketFees(uint128 synthMarketId) view returns(uint256 atomicFixedFee, uint256 asyncFixedFee, int256 wrapFee, int256 unwrapFee) -func (_SpotMarketGoerli *SpotMarketGoerliCallerSession) GetMarketFees(synthMarketId *big.Int) (struct { - AtomicFixedFee *big.Int - AsyncFixedFee *big.Int - WrapFee *big.Int - UnwrapFee *big.Int -}, error) { - return _SpotMarketGoerli.Contract.GetMarketFees(&_SpotMarketGoerli.CallOpts, synthMarketId) -} - -// GetMarketOwner is a free data retrieval call binding the contract method 0xa7b8cb9f. -// -// Solidity: function getMarketOwner(uint128 synthMarketId) view returns(address marketOwner) -func (_SpotMarketGoerli *SpotMarketGoerliCaller) GetMarketOwner(opts *bind.CallOpts, synthMarketId *big.Int) (common.Address, error) { - var out []interface{} - err := _SpotMarketGoerli.contract.Call(opts, &out, "getMarketOwner", synthMarketId) - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// GetMarketOwner is a free data retrieval call binding the contract method 0xa7b8cb9f. -// -// Solidity: function getMarketOwner(uint128 synthMarketId) view returns(address marketOwner) -func (_SpotMarketGoerli *SpotMarketGoerliSession) GetMarketOwner(synthMarketId *big.Int) (common.Address, error) { - return _SpotMarketGoerli.Contract.GetMarketOwner(&_SpotMarketGoerli.CallOpts, synthMarketId) -} - -// GetMarketOwner is a free data retrieval call binding the contract method 0xa7b8cb9f. -// -// Solidity: function getMarketOwner(uint128 synthMarketId) view returns(address marketOwner) -func (_SpotMarketGoerli *SpotMarketGoerliCallerSession) GetMarketOwner(synthMarketId *big.Int) (common.Address, error) { - return _SpotMarketGoerli.Contract.GetMarketOwner(&_SpotMarketGoerli.CallOpts, synthMarketId) -} - -// GetMarketSkewScale is a free data retrieval call binding the contract method 0x8d105571. -// -// Solidity: function getMarketSkewScale(uint128 synthMarketId) view returns(uint256 skewScale) -func (_SpotMarketGoerli *SpotMarketGoerliCaller) GetMarketSkewScale(opts *bind.CallOpts, synthMarketId *big.Int) (*big.Int, error) { - var out []interface{} - err := _SpotMarketGoerli.contract.Call(opts, &out, "getMarketSkewScale", synthMarketId) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetMarketSkewScale is a free data retrieval call binding the contract method 0x8d105571. -// -// Solidity: function getMarketSkewScale(uint128 synthMarketId) view returns(uint256 skewScale) -func (_SpotMarketGoerli *SpotMarketGoerliSession) GetMarketSkewScale(synthMarketId *big.Int) (*big.Int, error) { - return _SpotMarketGoerli.Contract.GetMarketSkewScale(&_SpotMarketGoerli.CallOpts, synthMarketId) -} - -// GetMarketSkewScale is a free data retrieval call binding the contract method 0x8d105571. -// -// Solidity: function getMarketSkewScale(uint128 synthMarketId) view returns(uint256 skewScale) -func (_SpotMarketGoerli *SpotMarketGoerliCallerSession) GetMarketSkewScale(synthMarketId *big.Int) (*big.Int, error) { - return _SpotMarketGoerli.Contract.GetMarketSkewScale(&_SpotMarketGoerli.CallOpts, synthMarketId) -} - -// GetMarketUtilizationFees is a free data retrieval call binding the contract method 0xf375f324. -// -// Solidity: function getMarketUtilizationFees(uint128 synthMarketId) view returns(uint256 utilizationFeeRate) -func (_SpotMarketGoerli *SpotMarketGoerliCaller) GetMarketUtilizationFees(opts *bind.CallOpts, synthMarketId *big.Int) (*big.Int, error) { - var out []interface{} - err := _SpotMarketGoerli.contract.Call(opts, &out, "getMarketUtilizationFees", synthMarketId) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetMarketUtilizationFees is a free data retrieval call binding the contract method 0xf375f324. -// -// Solidity: function getMarketUtilizationFees(uint128 synthMarketId) view returns(uint256 utilizationFeeRate) -func (_SpotMarketGoerli *SpotMarketGoerliSession) GetMarketUtilizationFees(synthMarketId *big.Int) (*big.Int, error) { - return _SpotMarketGoerli.Contract.GetMarketUtilizationFees(&_SpotMarketGoerli.CallOpts, synthMarketId) -} - -// GetMarketUtilizationFees is a free data retrieval call binding the contract method 0xf375f324. -// -// Solidity: function getMarketUtilizationFees(uint128 synthMarketId) view returns(uint256 utilizationFeeRate) -func (_SpotMarketGoerli *SpotMarketGoerliCallerSession) GetMarketUtilizationFees(synthMarketId *big.Int) (*big.Int, error) { - return _SpotMarketGoerli.Contract.GetMarketUtilizationFees(&_SpotMarketGoerli.CallOpts, synthMarketId) -} - -// GetReferrerShare is a free data retrieval call binding the contract method 0xfa4b28ed. -// -// Solidity: function getReferrerShare(uint128 synthMarketId, address referrer) view returns(uint256 sharePercentage) -func (_SpotMarketGoerli *SpotMarketGoerliCaller) GetReferrerShare(opts *bind.CallOpts, synthMarketId *big.Int, referrer common.Address) (*big.Int, error) { - var out []interface{} - err := _SpotMarketGoerli.contract.Call(opts, &out, "getReferrerShare", synthMarketId, referrer) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetReferrerShare is a free data retrieval call binding the contract method 0xfa4b28ed. -// -// Solidity: function getReferrerShare(uint128 synthMarketId, address referrer) view returns(uint256 sharePercentage) -func (_SpotMarketGoerli *SpotMarketGoerliSession) GetReferrerShare(synthMarketId *big.Int, referrer common.Address) (*big.Int, error) { - return _SpotMarketGoerli.Contract.GetReferrerShare(&_SpotMarketGoerli.CallOpts, synthMarketId, referrer) -} - -// GetReferrerShare is a free data retrieval call binding the contract method 0xfa4b28ed. -// -// Solidity: function getReferrerShare(uint128 synthMarketId, address referrer) view returns(uint256 sharePercentage) -func (_SpotMarketGoerli *SpotMarketGoerliCallerSession) GetReferrerShare(synthMarketId *big.Int, referrer common.Address) (*big.Int, error) { - return _SpotMarketGoerli.Contract.GetReferrerShare(&_SpotMarketGoerli.CallOpts, synthMarketId, referrer) -} - -// GetSettlementStrategy is a free data retrieval call binding the contract method 0xf74c377f. -// -// Solidity: function getSettlementStrategy(uint128 marketId, uint256 strategyId) view returns((uint8,uint256,uint256,address,bytes32,string,uint256,uint256,uint256,uint256,bool) settlementStrategy) -func (_SpotMarketGoerli *SpotMarketGoerliCaller) GetSettlementStrategy(opts *bind.CallOpts, marketId *big.Int, strategyId *big.Int) (SettlementStrategyData, error) { - var out []interface{} - err := _SpotMarketGoerli.contract.Call(opts, &out, "getSettlementStrategy", marketId, strategyId) - - if err != nil { - return *new(SettlementStrategyData), err - } - - out0 := *abi.ConvertType(out[0], new(SettlementStrategyData)).(*SettlementStrategyData) - - return out0, err - -} - -// GetSettlementStrategy is a free data retrieval call binding the contract method 0xf74c377f. -// -// Solidity: function getSettlementStrategy(uint128 marketId, uint256 strategyId) view returns((uint8,uint256,uint256,address,bytes32,string,uint256,uint256,uint256,uint256,bool) settlementStrategy) -func (_SpotMarketGoerli *SpotMarketGoerliSession) GetSettlementStrategy(marketId *big.Int, strategyId *big.Int) (SettlementStrategyData, error) { - return _SpotMarketGoerli.Contract.GetSettlementStrategy(&_SpotMarketGoerli.CallOpts, marketId, strategyId) -} - -// GetSettlementStrategy is a free data retrieval call binding the contract method 0xf74c377f. -// -// Solidity: function getSettlementStrategy(uint128 marketId, uint256 strategyId) view returns((uint8,uint256,uint256,address,bytes32,string,uint256,uint256,uint256,uint256,bool) settlementStrategy) -func (_SpotMarketGoerli *SpotMarketGoerliCallerSession) GetSettlementStrategy(marketId *big.Int, strategyId *big.Int) (SettlementStrategyData, error) { - return _SpotMarketGoerli.Contract.GetSettlementStrategy(&_SpotMarketGoerli.CallOpts, marketId, strategyId) -} - -// GetSynth is a free data retrieval call binding the contract method 0x69e0365f. -// -// Solidity: function getSynth(uint128 marketId) view returns(address synthAddress) -func (_SpotMarketGoerli *SpotMarketGoerliCaller) GetSynth(opts *bind.CallOpts, marketId *big.Int) (common.Address, error) { - var out []interface{} - err := _SpotMarketGoerli.contract.Call(opts, &out, "getSynth", marketId) - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// GetSynth is a free data retrieval call binding the contract method 0x69e0365f. -// -// Solidity: function getSynth(uint128 marketId) view returns(address synthAddress) -func (_SpotMarketGoerli *SpotMarketGoerliSession) GetSynth(marketId *big.Int) (common.Address, error) { - return _SpotMarketGoerli.Contract.GetSynth(&_SpotMarketGoerli.CallOpts, marketId) -} - -// GetSynth is a free data retrieval call binding the contract method 0x69e0365f. -// -// Solidity: function getSynth(uint128 marketId) view returns(address synthAddress) -func (_SpotMarketGoerli *SpotMarketGoerliCallerSession) GetSynth(marketId *big.Int) (common.Address, error) { - return _SpotMarketGoerli.Contract.GetSynth(&_SpotMarketGoerli.CallOpts, marketId) -} - -// GetSynthImpl is a free data retrieval call binding the contract method 0x3e0c76ca. -// -// Solidity: function getSynthImpl(uint128 marketId) view returns(address implAddress) -func (_SpotMarketGoerli *SpotMarketGoerliCaller) GetSynthImpl(opts *bind.CallOpts, marketId *big.Int) (common.Address, error) { - var out []interface{} - err := _SpotMarketGoerli.contract.Call(opts, &out, "getSynthImpl", marketId) - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// GetSynthImpl is a free data retrieval call binding the contract method 0x3e0c76ca. -// -// Solidity: function getSynthImpl(uint128 marketId) view returns(address implAddress) -func (_SpotMarketGoerli *SpotMarketGoerliSession) GetSynthImpl(marketId *big.Int) (common.Address, error) { - return _SpotMarketGoerli.Contract.GetSynthImpl(&_SpotMarketGoerli.CallOpts, marketId) -} - -// GetSynthImpl is a free data retrieval call binding the contract method 0x3e0c76ca. -// -// Solidity: function getSynthImpl(uint128 marketId) view returns(address implAddress) -func (_SpotMarketGoerli *SpotMarketGoerliCallerSession) GetSynthImpl(marketId *big.Int) (common.Address, error) { - return _SpotMarketGoerli.Contract.GetSynthImpl(&_SpotMarketGoerli.CallOpts, marketId) -} - -// IsFeatureAllowed is a free data retrieval call binding the contract method 0xcf635949. -// -// Solidity: function isFeatureAllowed(bytes32 feature, address account) view returns(bool) -func (_SpotMarketGoerli *SpotMarketGoerliCaller) IsFeatureAllowed(opts *bind.CallOpts, feature [32]byte, account common.Address) (bool, error) { - var out []interface{} - err := _SpotMarketGoerli.contract.Call(opts, &out, "isFeatureAllowed", feature, account) - - if err != nil { - return *new(bool), err - } - - out0 := *abi.ConvertType(out[0], new(bool)).(*bool) - - return out0, err - -} - -// IsFeatureAllowed is a free data retrieval call binding the contract method 0xcf635949. -// -// Solidity: function isFeatureAllowed(bytes32 feature, address account) view returns(bool) -func (_SpotMarketGoerli *SpotMarketGoerliSession) IsFeatureAllowed(feature [32]byte, account common.Address) (bool, error) { - return _SpotMarketGoerli.Contract.IsFeatureAllowed(&_SpotMarketGoerli.CallOpts, feature, account) -} - -// IsFeatureAllowed is a free data retrieval call binding the contract method 0xcf635949. -// -// Solidity: function isFeatureAllowed(bytes32 feature, address account) view returns(bool) -func (_SpotMarketGoerli *SpotMarketGoerliCallerSession) IsFeatureAllowed(feature [32]byte, account common.Address) (bool, error) { - return _SpotMarketGoerli.Contract.IsFeatureAllowed(&_SpotMarketGoerli.CallOpts, feature, account) -} - -// MinimumCredit is a free data retrieval call binding the contract method 0xafe79200. -// -// Solidity: function minimumCredit(uint128 marketId) view returns(uint256 lockedAmount) -func (_SpotMarketGoerli *SpotMarketGoerliCaller) MinimumCredit(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { - var out []interface{} - err := _SpotMarketGoerli.contract.Call(opts, &out, "minimumCredit", marketId) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// MinimumCredit is a free data retrieval call binding the contract method 0xafe79200. -// -// Solidity: function minimumCredit(uint128 marketId) view returns(uint256 lockedAmount) -func (_SpotMarketGoerli *SpotMarketGoerliSession) MinimumCredit(marketId *big.Int) (*big.Int, error) { - return _SpotMarketGoerli.Contract.MinimumCredit(&_SpotMarketGoerli.CallOpts, marketId) -} - -// MinimumCredit is a free data retrieval call binding the contract method 0xafe79200. -// -// Solidity: function minimumCredit(uint128 marketId) view returns(uint256 lockedAmount) -func (_SpotMarketGoerli *SpotMarketGoerliCallerSession) MinimumCredit(marketId *big.Int) (*big.Int, error) { - return _SpotMarketGoerli.Contract.MinimumCredit(&_SpotMarketGoerli.CallOpts, marketId) -} - -// Name is a free data retrieval call binding the contract method 0xc624440a. -// -// Solidity: function name(uint128 marketId) view returns(string marketName) -func (_SpotMarketGoerli *SpotMarketGoerliCaller) Name(opts *bind.CallOpts, marketId *big.Int) (string, error) { - var out []interface{} - err := _SpotMarketGoerli.contract.Call(opts, &out, "name", marketId) - - if err != nil { - return *new(string), err - } - - out0 := *abi.ConvertType(out[0], new(string)).(*string) - - return out0, err - -} - -// Name is a free data retrieval call binding the contract method 0xc624440a. -// -// Solidity: function name(uint128 marketId) view returns(string marketName) -func (_SpotMarketGoerli *SpotMarketGoerliSession) Name(marketId *big.Int) (string, error) { - return _SpotMarketGoerli.Contract.Name(&_SpotMarketGoerli.CallOpts, marketId) -} - -// Name is a free data retrieval call binding the contract method 0xc624440a. -// -// Solidity: function name(uint128 marketId) view returns(string marketName) -func (_SpotMarketGoerli *SpotMarketGoerliCallerSession) Name(marketId *big.Int) (string, error) { - return _SpotMarketGoerli.Contract.Name(&_SpotMarketGoerli.CallOpts, marketId) -} - -// NominatedOwner is a free data retrieval call binding the contract method 0x53a47bb7. -// -// Solidity: function nominatedOwner() view returns(address) -func (_SpotMarketGoerli *SpotMarketGoerliCaller) NominatedOwner(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _SpotMarketGoerli.contract.Call(opts, &out, "nominatedOwner") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// NominatedOwner is a free data retrieval call binding the contract method 0x53a47bb7. -// -// Solidity: function nominatedOwner() view returns(address) -func (_SpotMarketGoerli *SpotMarketGoerliSession) NominatedOwner() (common.Address, error) { - return _SpotMarketGoerli.Contract.NominatedOwner(&_SpotMarketGoerli.CallOpts) -} - -// NominatedOwner is a free data retrieval call binding the contract method 0x53a47bb7. -// -// Solidity: function nominatedOwner() view returns(address) -func (_SpotMarketGoerli *SpotMarketGoerliCallerSession) NominatedOwner() (common.Address, error) { - return _SpotMarketGoerli.Contract.NominatedOwner(&_SpotMarketGoerli.CallOpts) -} - -// Owner is a free data retrieval call binding the contract method 0x8da5cb5b. -// -// Solidity: function owner() view returns(address) -func (_SpotMarketGoerli *SpotMarketGoerliCaller) Owner(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _SpotMarketGoerli.contract.Call(opts, &out, "owner") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// Owner is a free data retrieval call binding the contract method 0x8da5cb5b. -// -// Solidity: function owner() view returns(address) -func (_SpotMarketGoerli *SpotMarketGoerliSession) Owner() (common.Address, error) { - return _SpotMarketGoerli.Contract.Owner(&_SpotMarketGoerli.CallOpts) -} - -// Owner is a free data retrieval call binding the contract method 0x8da5cb5b. -// -// Solidity: function owner() view returns(address) -func (_SpotMarketGoerli *SpotMarketGoerliCallerSession) Owner() (common.Address, error) { - return _SpotMarketGoerli.Contract.Owner(&_SpotMarketGoerli.CallOpts) -} - -// QuoteBuyExactIn is a free data retrieval call binding the contract method 0x6b5e6ae4. -// -// Solidity: function quoteBuyExactIn(uint128 marketId, uint256 usdAmount) view returns(uint256 synthAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliCaller) QuoteBuyExactIn(opts *bind.CallOpts, marketId *big.Int, usdAmount *big.Int) (struct { - SynthAmount *big.Int - Fees OrderFeesData -}, error) { - var out []interface{} - err := _SpotMarketGoerli.contract.Call(opts, &out, "quoteBuyExactIn", marketId, usdAmount) - - outstruct := new(struct { - SynthAmount *big.Int - Fees OrderFeesData - }) - if err != nil { - return *outstruct, err - } - - outstruct.SynthAmount = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - outstruct.Fees = *abi.ConvertType(out[1], new(OrderFeesData)).(*OrderFeesData) - - return *outstruct, err - -} - -// QuoteBuyExactIn is a free data retrieval call binding the contract method 0x6b5e6ae4. -// -// Solidity: function quoteBuyExactIn(uint128 marketId, uint256 usdAmount) view returns(uint256 synthAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliSession) QuoteBuyExactIn(marketId *big.Int, usdAmount *big.Int) (struct { - SynthAmount *big.Int - Fees OrderFeesData -}, error) { - return _SpotMarketGoerli.Contract.QuoteBuyExactIn(&_SpotMarketGoerli.CallOpts, marketId, usdAmount) -} - -// QuoteBuyExactIn is a free data retrieval call binding the contract method 0x6b5e6ae4. -// -// Solidity: function quoteBuyExactIn(uint128 marketId, uint256 usdAmount) view returns(uint256 synthAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliCallerSession) QuoteBuyExactIn(marketId *big.Int, usdAmount *big.Int) (struct { - SynthAmount *big.Int - Fees OrderFeesData -}, error) { - return _SpotMarketGoerli.Contract.QuoteBuyExactIn(&_SpotMarketGoerli.CallOpts, marketId, usdAmount) -} - -// QuoteBuyExactOut is a free data retrieval call binding the contract method 0x1f3f7640. -// -// Solidity: function quoteBuyExactOut(uint128 marketId, uint256 synthAmount) view returns(uint256 usdAmountCharged, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliCaller) QuoteBuyExactOut(opts *bind.CallOpts, marketId *big.Int, synthAmount *big.Int) (struct { - UsdAmountCharged *big.Int - Fees OrderFeesData -}, error) { - var out []interface{} - err := _SpotMarketGoerli.contract.Call(opts, &out, "quoteBuyExactOut", marketId, synthAmount) - - outstruct := new(struct { - UsdAmountCharged *big.Int - Fees OrderFeesData - }) - if err != nil { - return *outstruct, err - } - - outstruct.UsdAmountCharged = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - outstruct.Fees = *abi.ConvertType(out[1], new(OrderFeesData)).(*OrderFeesData) - - return *outstruct, err - -} - -// QuoteBuyExactOut is a free data retrieval call binding the contract method 0x1f3f7640. -// -// Solidity: function quoteBuyExactOut(uint128 marketId, uint256 synthAmount) view returns(uint256 usdAmountCharged, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliSession) QuoteBuyExactOut(marketId *big.Int, synthAmount *big.Int) (struct { - UsdAmountCharged *big.Int - Fees OrderFeesData -}, error) { - return _SpotMarketGoerli.Contract.QuoteBuyExactOut(&_SpotMarketGoerli.CallOpts, marketId, synthAmount) -} - -// QuoteBuyExactOut is a free data retrieval call binding the contract method 0x1f3f7640. -// -// Solidity: function quoteBuyExactOut(uint128 marketId, uint256 synthAmount) view returns(uint256 usdAmountCharged, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliCallerSession) QuoteBuyExactOut(marketId *big.Int, synthAmount *big.Int) (struct { - UsdAmountCharged *big.Int - Fees OrderFeesData -}, error) { - return _SpotMarketGoerli.Contract.QuoteBuyExactOut(&_SpotMarketGoerli.CallOpts, marketId, synthAmount) -} - -// QuoteSellExactIn is a free data retrieval call binding the contract method 0xc52d1730. -// -// Solidity: function quoteSellExactIn(uint128 marketId, uint256 synthAmount) view returns(uint256 returnAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliCaller) QuoteSellExactIn(opts *bind.CallOpts, marketId *big.Int, synthAmount *big.Int) (struct { - ReturnAmount *big.Int - Fees OrderFeesData -}, error) { - var out []interface{} - err := _SpotMarketGoerli.contract.Call(opts, &out, "quoteSellExactIn", marketId, synthAmount) - - outstruct := new(struct { - ReturnAmount *big.Int - Fees OrderFeesData - }) - if err != nil { - return *outstruct, err - } - - outstruct.ReturnAmount = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - outstruct.Fees = *abi.ConvertType(out[1], new(OrderFeesData)).(*OrderFeesData) - - return *outstruct, err - -} - -// QuoteSellExactIn is a free data retrieval call binding the contract method 0xc52d1730. -// -// Solidity: function quoteSellExactIn(uint128 marketId, uint256 synthAmount) view returns(uint256 returnAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliSession) QuoteSellExactIn(marketId *big.Int, synthAmount *big.Int) (struct { - ReturnAmount *big.Int - Fees OrderFeesData -}, error) { - return _SpotMarketGoerli.Contract.QuoteSellExactIn(&_SpotMarketGoerli.CallOpts, marketId, synthAmount) -} - -// QuoteSellExactIn is a free data retrieval call binding the contract method 0xc52d1730. -// -// Solidity: function quoteSellExactIn(uint128 marketId, uint256 synthAmount) view returns(uint256 returnAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliCallerSession) QuoteSellExactIn(marketId *big.Int, synthAmount *big.Int) (struct { - ReturnAmount *big.Int - Fees OrderFeesData -}, error) { - return _SpotMarketGoerli.Contract.QuoteSellExactIn(&_SpotMarketGoerli.CallOpts, marketId, synthAmount) -} - -// QuoteSellExactOut is a free data retrieval call binding the contract method 0x2c007522. -// -// Solidity: function quoteSellExactOut(uint128 marketId, uint256 usdAmount) view returns(uint256 synthToBurn, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliCaller) QuoteSellExactOut(opts *bind.CallOpts, marketId *big.Int, usdAmount *big.Int) (struct { - SynthToBurn *big.Int - Fees OrderFeesData -}, error) { - var out []interface{} - err := _SpotMarketGoerli.contract.Call(opts, &out, "quoteSellExactOut", marketId, usdAmount) - - outstruct := new(struct { - SynthToBurn *big.Int - Fees OrderFeesData - }) - if err != nil { - return *outstruct, err - } - - outstruct.SynthToBurn = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - outstruct.Fees = *abi.ConvertType(out[1], new(OrderFeesData)).(*OrderFeesData) - - return *outstruct, err - -} - -// QuoteSellExactOut is a free data retrieval call binding the contract method 0x2c007522. -// -// Solidity: function quoteSellExactOut(uint128 marketId, uint256 usdAmount) view returns(uint256 synthToBurn, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliSession) QuoteSellExactOut(marketId *big.Int, usdAmount *big.Int) (struct { - SynthToBurn *big.Int - Fees OrderFeesData -}, error) { - return _SpotMarketGoerli.Contract.QuoteSellExactOut(&_SpotMarketGoerli.CallOpts, marketId, usdAmount) -} - -// QuoteSellExactOut is a free data retrieval call binding the contract method 0x2c007522. -// -// Solidity: function quoteSellExactOut(uint128 marketId, uint256 usdAmount) view returns(uint256 synthToBurn, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliCallerSession) QuoteSellExactOut(marketId *big.Int, usdAmount *big.Int) (struct { - SynthToBurn *big.Int - Fees OrderFeesData -}, error) { - return _SpotMarketGoerli.Contract.QuoteSellExactOut(&_SpotMarketGoerli.CallOpts, marketId, usdAmount) -} - -// ReportedDebt is a free data retrieval call binding the contract method 0xbcec0d0f. -// -// Solidity: function reportedDebt(uint128 marketId) view returns(uint256 reportedDebtAmount) -func (_SpotMarketGoerli *SpotMarketGoerliCaller) ReportedDebt(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { - var out []interface{} - err := _SpotMarketGoerli.contract.Call(opts, &out, "reportedDebt", marketId) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// ReportedDebt is a free data retrieval call binding the contract method 0xbcec0d0f. -// -// Solidity: function reportedDebt(uint128 marketId) view returns(uint256 reportedDebtAmount) -func (_SpotMarketGoerli *SpotMarketGoerliSession) ReportedDebt(marketId *big.Int) (*big.Int, error) { - return _SpotMarketGoerli.Contract.ReportedDebt(&_SpotMarketGoerli.CallOpts, marketId) -} - -// ReportedDebt is a free data retrieval call binding the contract method 0xbcec0d0f. -// -// Solidity: function reportedDebt(uint128 marketId) view returns(uint256 reportedDebtAmount) -func (_SpotMarketGoerli *SpotMarketGoerliCallerSession) ReportedDebt(marketId *big.Int) (*big.Int, error) { - return _SpotMarketGoerli.Contract.ReportedDebt(&_SpotMarketGoerli.CallOpts, marketId) -} - -// SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7. -// -// Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool isSupported) -func (_SpotMarketGoerli *SpotMarketGoerliCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error) { - var out []interface{} - err := _SpotMarketGoerli.contract.Call(opts, &out, "supportsInterface", interfaceId) - - if err != nil { - return *new(bool), err - } - - out0 := *abi.ConvertType(out[0], new(bool)).(*bool) - - return out0, err - -} - -// SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7. -// -// Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool isSupported) -func (_SpotMarketGoerli *SpotMarketGoerliSession) SupportsInterface(interfaceId [4]byte) (bool, error) { - return _SpotMarketGoerli.Contract.SupportsInterface(&_SpotMarketGoerli.CallOpts, interfaceId) -} - -// SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7. -// -// Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool isSupported) -func (_SpotMarketGoerli *SpotMarketGoerliCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error) { - return _SpotMarketGoerli.Contract.SupportsInterface(&_SpotMarketGoerli.CallOpts, interfaceId) -} - -// AcceptMarketOwnership is a paid mutator transaction binding the contract method 0x1c216a0e. -// -// Solidity: function acceptMarketOwnership(uint128 synthMarketId) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) AcceptMarketOwnership(opts *bind.TransactOpts, synthMarketId *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "acceptMarketOwnership", synthMarketId) -} - -// AcceptMarketOwnership is a paid mutator transaction binding the contract method 0x1c216a0e. -// -// Solidity: function acceptMarketOwnership(uint128 synthMarketId) returns() -func (_SpotMarketGoerli *SpotMarketGoerliSession) AcceptMarketOwnership(synthMarketId *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.AcceptMarketOwnership(&_SpotMarketGoerli.TransactOpts, synthMarketId) -} - -// AcceptMarketOwnership is a paid mutator transaction binding the contract method 0x1c216a0e. -// -// Solidity: function acceptMarketOwnership(uint128 synthMarketId) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) AcceptMarketOwnership(synthMarketId *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.AcceptMarketOwnership(&_SpotMarketGoerli.TransactOpts, synthMarketId) -} - -// AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. -// -// Solidity: function acceptOwnership() returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "acceptOwnership") -} - -// AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. -// -// Solidity: function acceptOwnership() returns() -func (_SpotMarketGoerli *SpotMarketGoerliSession) AcceptOwnership() (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.AcceptOwnership(&_SpotMarketGoerli.TransactOpts) -} - -// AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. -// -// Solidity: function acceptOwnership() returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) AcceptOwnership() (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.AcceptOwnership(&_SpotMarketGoerli.TransactOpts) -} - -// AddSettlementStrategy is a paid mutator transaction binding the contract method 0x97b30e6d. -// -// Solidity: function addSettlementStrategy(uint128 marketId, (uint8,uint256,uint256,address,bytes32,string,uint256,uint256,uint256,uint256,bool) strategy) returns(uint256 strategyId) -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) AddSettlementStrategy(opts *bind.TransactOpts, marketId *big.Int, strategy SettlementStrategyData) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "addSettlementStrategy", marketId, strategy) -} - -// AddSettlementStrategy is a paid mutator transaction binding the contract method 0x97b30e6d. -// -// Solidity: function addSettlementStrategy(uint128 marketId, (uint8,uint256,uint256,address,bytes32,string,uint256,uint256,uint256,uint256,bool) strategy) returns(uint256 strategyId) -func (_SpotMarketGoerli *SpotMarketGoerliSession) AddSettlementStrategy(marketId *big.Int, strategy SettlementStrategyData) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.AddSettlementStrategy(&_SpotMarketGoerli.TransactOpts, marketId, strategy) -} - -// AddSettlementStrategy is a paid mutator transaction binding the contract method 0x97b30e6d. -// -// Solidity: function addSettlementStrategy(uint128 marketId, (uint8,uint256,uint256,address,bytes32,string,uint256,uint256,uint256,uint256,bool) strategy) returns(uint256 strategyId) -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) AddSettlementStrategy(marketId *big.Int, strategy SettlementStrategyData) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.AddSettlementStrategy(&_SpotMarketGoerli.TransactOpts, marketId, strategy) -} - -// AddToFeatureFlagAllowlist is a paid mutator transaction binding the contract method 0xa0778144. -// -// Solidity: function addToFeatureFlagAllowlist(bytes32 feature, address account) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) AddToFeatureFlagAllowlist(opts *bind.TransactOpts, feature [32]byte, account common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "addToFeatureFlagAllowlist", feature, account) -} - -// AddToFeatureFlagAllowlist is a paid mutator transaction binding the contract method 0xa0778144. -// -// Solidity: function addToFeatureFlagAllowlist(bytes32 feature, address account) returns() -func (_SpotMarketGoerli *SpotMarketGoerliSession) AddToFeatureFlagAllowlist(feature [32]byte, account common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.AddToFeatureFlagAllowlist(&_SpotMarketGoerli.TransactOpts, feature, account) -} - -// AddToFeatureFlagAllowlist is a paid mutator transaction binding the contract method 0xa0778144. -// -// Solidity: function addToFeatureFlagAllowlist(bytes32 feature, address account) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) AddToFeatureFlagAllowlist(feature [32]byte, account common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.AddToFeatureFlagAllowlist(&_SpotMarketGoerli.TransactOpts, feature, account) -} - -// Buy is a paid mutator transaction binding the contract method 0x37fb3369. -// -// Solidity: function buy(uint128 marketId, uint256 usdAmount, uint256 minAmountReceived, address referrer) returns(uint256 synthAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) Buy(opts *bind.TransactOpts, marketId *big.Int, usdAmount *big.Int, minAmountReceived *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "buy", marketId, usdAmount, minAmountReceived, referrer) -} - -// Buy is a paid mutator transaction binding the contract method 0x37fb3369. -// -// Solidity: function buy(uint128 marketId, uint256 usdAmount, uint256 minAmountReceived, address referrer) returns(uint256 synthAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliSession) Buy(marketId *big.Int, usdAmount *big.Int, minAmountReceived *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.Buy(&_SpotMarketGoerli.TransactOpts, marketId, usdAmount, minAmountReceived, referrer) -} - -// Buy is a paid mutator transaction binding the contract method 0x37fb3369. -// -// Solidity: function buy(uint128 marketId, uint256 usdAmount, uint256 minAmountReceived, address referrer) returns(uint256 synthAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) Buy(marketId *big.Int, usdAmount *big.Int, minAmountReceived *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.Buy(&_SpotMarketGoerli.TransactOpts, marketId, usdAmount, minAmountReceived, referrer) -} - -// BuyExactIn is a paid mutator transaction binding the contract method 0xa12d9400. -// -// Solidity: function buyExactIn(uint128 marketId, uint256 usdAmount, uint256 minAmountReceived, address referrer) returns(uint256 synthAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) BuyExactIn(opts *bind.TransactOpts, marketId *big.Int, usdAmount *big.Int, minAmountReceived *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "buyExactIn", marketId, usdAmount, minAmountReceived, referrer) -} - -// BuyExactIn is a paid mutator transaction binding the contract method 0xa12d9400. -// -// Solidity: function buyExactIn(uint128 marketId, uint256 usdAmount, uint256 minAmountReceived, address referrer) returns(uint256 synthAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliSession) BuyExactIn(marketId *big.Int, usdAmount *big.Int, minAmountReceived *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.BuyExactIn(&_SpotMarketGoerli.TransactOpts, marketId, usdAmount, minAmountReceived, referrer) -} - -// BuyExactIn is a paid mutator transaction binding the contract method 0xa12d9400. -// -// Solidity: function buyExactIn(uint128 marketId, uint256 usdAmount, uint256 minAmountReceived, address referrer) returns(uint256 synthAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) BuyExactIn(marketId *big.Int, usdAmount *big.Int, minAmountReceived *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.BuyExactIn(&_SpotMarketGoerli.TransactOpts, marketId, usdAmount, minAmountReceived, referrer) -} - -// BuyExactOut is a paid mutator transaction binding the contract method 0x983220bb. -// -// Solidity: function buyExactOut(uint128 marketId, uint256 synthAmount, uint256 maxUsdAmount, address referrer) returns(uint256 usdAmountCharged, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) BuyExactOut(opts *bind.TransactOpts, marketId *big.Int, synthAmount *big.Int, maxUsdAmount *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "buyExactOut", marketId, synthAmount, maxUsdAmount, referrer) -} - -// BuyExactOut is a paid mutator transaction binding the contract method 0x983220bb. -// -// Solidity: function buyExactOut(uint128 marketId, uint256 synthAmount, uint256 maxUsdAmount, address referrer) returns(uint256 usdAmountCharged, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliSession) BuyExactOut(marketId *big.Int, synthAmount *big.Int, maxUsdAmount *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.BuyExactOut(&_SpotMarketGoerli.TransactOpts, marketId, synthAmount, maxUsdAmount, referrer) -} - -// BuyExactOut is a paid mutator transaction binding the contract method 0x983220bb. -// -// Solidity: function buyExactOut(uint128 marketId, uint256 synthAmount, uint256 maxUsdAmount, address referrer) returns(uint256 usdAmountCharged, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) BuyExactOut(marketId *big.Int, synthAmount *big.Int, maxUsdAmount *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.BuyExactOut(&_SpotMarketGoerli.TransactOpts, marketId, synthAmount, maxUsdAmount, referrer) -} - -// CancelOrder is a paid mutator transaction binding the contract method 0x4138dc53. -// -// Solidity: function cancelOrder(uint128 marketId, uint128 asyncOrderId) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) CancelOrder(opts *bind.TransactOpts, marketId *big.Int, asyncOrderId *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "cancelOrder", marketId, asyncOrderId) -} - -// CancelOrder is a paid mutator transaction binding the contract method 0x4138dc53. -// -// Solidity: function cancelOrder(uint128 marketId, uint128 asyncOrderId) returns() -func (_SpotMarketGoerli *SpotMarketGoerliSession) CancelOrder(marketId *big.Int, asyncOrderId *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.CancelOrder(&_SpotMarketGoerli.TransactOpts, marketId, asyncOrderId) -} - -// CancelOrder is a paid mutator transaction binding the contract method 0x4138dc53. -// -// Solidity: function cancelOrder(uint128 marketId, uint128 asyncOrderId) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) CancelOrder(marketId *big.Int, asyncOrderId *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.CancelOrder(&_SpotMarketGoerli.TransactOpts, marketId, asyncOrderId) -} - -// CommitOrder is a paid mutator transaction binding the contract method 0xd393340e. -// -// Solidity: function commitOrder(uint128 marketId, uint8 orderType, uint256 amountProvided, uint256 settlementStrategyId, uint256 minimumSettlementAmount, address referrer) returns((uint128,address,uint8,uint256,uint256,uint256,uint256,uint256,address) asyncOrderClaim) -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) CommitOrder(opts *bind.TransactOpts, marketId *big.Int, orderType uint8, amountProvided *big.Int, settlementStrategyId *big.Int, minimumSettlementAmount *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "commitOrder", marketId, orderType, amountProvided, settlementStrategyId, minimumSettlementAmount, referrer) -} - -// CommitOrder is a paid mutator transaction binding the contract method 0xd393340e. -// -// Solidity: function commitOrder(uint128 marketId, uint8 orderType, uint256 amountProvided, uint256 settlementStrategyId, uint256 minimumSettlementAmount, address referrer) returns((uint128,address,uint8,uint256,uint256,uint256,uint256,uint256,address) asyncOrderClaim) -func (_SpotMarketGoerli *SpotMarketGoerliSession) CommitOrder(marketId *big.Int, orderType uint8, amountProvided *big.Int, settlementStrategyId *big.Int, minimumSettlementAmount *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.CommitOrder(&_SpotMarketGoerli.TransactOpts, marketId, orderType, amountProvided, settlementStrategyId, minimumSettlementAmount, referrer) -} - -// CommitOrder is a paid mutator transaction binding the contract method 0xd393340e. -// -// Solidity: function commitOrder(uint128 marketId, uint8 orderType, uint256 amountProvided, uint256 settlementStrategyId, uint256 minimumSettlementAmount, address referrer) returns((uint128,address,uint8,uint256,uint256,uint256,uint256,uint256,address) asyncOrderClaim) -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) CommitOrder(marketId *big.Int, orderType uint8, amountProvided *big.Int, settlementStrategyId *big.Int, minimumSettlementAmount *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.CommitOrder(&_SpotMarketGoerli.TransactOpts, marketId, orderType, amountProvided, settlementStrategyId, minimumSettlementAmount, referrer) -} - -// CreateSynth is a paid mutator transaction binding the contract method 0x2e535d61. -// -// Solidity: function createSynth(string tokenName, string tokenSymbol, address synthOwner) returns(uint128 synthMarketId) -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) CreateSynth(opts *bind.TransactOpts, tokenName string, tokenSymbol string, synthOwner common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "createSynth", tokenName, tokenSymbol, synthOwner) -} - -// CreateSynth is a paid mutator transaction binding the contract method 0x2e535d61. -// -// Solidity: function createSynth(string tokenName, string tokenSymbol, address synthOwner) returns(uint128 synthMarketId) -func (_SpotMarketGoerli *SpotMarketGoerliSession) CreateSynth(tokenName string, tokenSymbol string, synthOwner common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.CreateSynth(&_SpotMarketGoerli.TransactOpts, tokenName, tokenSymbol, synthOwner) -} - -// CreateSynth is a paid mutator transaction binding the contract method 0x2e535d61. -// -// Solidity: function createSynth(string tokenName, string tokenSymbol, address synthOwner) returns(uint128 synthMarketId) -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) CreateSynth(tokenName string, tokenSymbol string, synthOwner common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.CreateSynth(&_SpotMarketGoerli.TransactOpts, tokenName, tokenSymbol, synthOwner) -} - -// InitOrUpgradeNft is a paid mutator transaction binding the contract method 0x2d22bef9. -// -// Solidity: function initOrUpgradeNft(bytes32 id, string name, string symbol, string uri, address impl) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) InitOrUpgradeNft(opts *bind.TransactOpts, id [32]byte, name string, symbol string, uri string, impl common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "initOrUpgradeNft", id, name, symbol, uri, impl) -} - -// InitOrUpgradeNft is a paid mutator transaction binding the contract method 0x2d22bef9. -// -// Solidity: function initOrUpgradeNft(bytes32 id, string name, string symbol, string uri, address impl) returns() -func (_SpotMarketGoerli *SpotMarketGoerliSession) InitOrUpgradeNft(id [32]byte, name string, symbol string, uri string, impl common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.InitOrUpgradeNft(&_SpotMarketGoerli.TransactOpts, id, name, symbol, uri, impl) -} - -// InitOrUpgradeNft is a paid mutator transaction binding the contract method 0x2d22bef9. -// -// Solidity: function initOrUpgradeNft(bytes32 id, string name, string symbol, string uri, address impl) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) InitOrUpgradeNft(id [32]byte, name string, symbol string, uri string, impl common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.InitOrUpgradeNft(&_SpotMarketGoerli.TransactOpts, id, name, symbol, uri, impl) -} - -// InitOrUpgradeToken is a paid mutator transaction binding the contract method 0xc6f79537. -// -// Solidity: function initOrUpgradeToken(bytes32 id, string name, string symbol, uint8 decimals, address impl) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) InitOrUpgradeToken(opts *bind.TransactOpts, id [32]byte, name string, symbol string, decimals uint8, impl common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "initOrUpgradeToken", id, name, symbol, decimals, impl) -} - -// InitOrUpgradeToken is a paid mutator transaction binding the contract method 0xc6f79537. -// -// Solidity: function initOrUpgradeToken(bytes32 id, string name, string symbol, uint8 decimals, address impl) returns() -func (_SpotMarketGoerli *SpotMarketGoerliSession) InitOrUpgradeToken(id [32]byte, name string, symbol string, decimals uint8, impl common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.InitOrUpgradeToken(&_SpotMarketGoerli.TransactOpts, id, name, symbol, decimals, impl) -} - -// InitOrUpgradeToken is a paid mutator transaction binding the contract method 0xc6f79537. -// -// Solidity: function initOrUpgradeToken(bytes32 id, string name, string symbol, uint8 decimals, address impl) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) InitOrUpgradeToken(id [32]byte, name string, symbol string, decimals uint8, impl common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.InitOrUpgradeToken(&_SpotMarketGoerli.TransactOpts, id, name, symbol, decimals, impl) -} - -// NominateMarketOwner is a paid mutator transaction binding the contract method 0x5950864b. -// -// Solidity: function nominateMarketOwner(uint128 synthMarketId, address newNominatedOwner) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) NominateMarketOwner(opts *bind.TransactOpts, synthMarketId *big.Int, newNominatedOwner common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "nominateMarketOwner", synthMarketId, newNominatedOwner) -} - -// NominateMarketOwner is a paid mutator transaction binding the contract method 0x5950864b. -// -// Solidity: function nominateMarketOwner(uint128 synthMarketId, address newNominatedOwner) returns() -func (_SpotMarketGoerli *SpotMarketGoerliSession) NominateMarketOwner(synthMarketId *big.Int, newNominatedOwner common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.NominateMarketOwner(&_SpotMarketGoerli.TransactOpts, synthMarketId, newNominatedOwner) -} - -// NominateMarketOwner is a paid mutator transaction binding the contract method 0x5950864b. -// -// Solidity: function nominateMarketOwner(uint128 synthMarketId, address newNominatedOwner) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) NominateMarketOwner(synthMarketId *big.Int, newNominatedOwner common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.NominateMarketOwner(&_SpotMarketGoerli.TransactOpts, synthMarketId, newNominatedOwner) -} - -// NominateNewOwner is a paid mutator transaction binding the contract method 0x1627540c. -// -// Solidity: function nominateNewOwner(address newNominatedOwner) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) NominateNewOwner(opts *bind.TransactOpts, newNominatedOwner common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "nominateNewOwner", newNominatedOwner) -} - -// NominateNewOwner is a paid mutator transaction binding the contract method 0x1627540c. -// -// Solidity: function nominateNewOwner(address newNominatedOwner) returns() -func (_SpotMarketGoerli *SpotMarketGoerliSession) NominateNewOwner(newNominatedOwner common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.NominateNewOwner(&_SpotMarketGoerli.TransactOpts, newNominatedOwner) -} - -// NominateNewOwner is a paid mutator transaction binding the contract method 0x1627540c. -// -// Solidity: function nominateNewOwner(address newNominatedOwner) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) NominateNewOwner(newNominatedOwner common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.NominateNewOwner(&_SpotMarketGoerli.TransactOpts, newNominatedOwner) -} - -// RegisterUnmanagedSystem is a paid mutator transaction binding the contract method 0xd245d983. -// -// Solidity: function registerUnmanagedSystem(bytes32 id, address endpoint) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) RegisterUnmanagedSystem(opts *bind.TransactOpts, id [32]byte, endpoint common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "registerUnmanagedSystem", id, endpoint) -} - -// RegisterUnmanagedSystem is a paid mutator transaction binding the contract method 0xd245d983. -// -// Solidity: function registerUnmanagedSystem(bytes32 id, address endpoint) returns() -func (_SpotMarketGoerli *SpotMarketGoerliSession) RegisterUnmanagedSystem(id [32]byte, endpoint common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.RegisterUnmanagedSystem(&_SpotMarketGoerli.TransactOpts, id, endpoint) -} - -// RegisterUnmanagedSystem is a paid mutator transaction binding the contract method 0xd245d983. -// -// Solidity: function registerUnmanagedSystem(bytes32 id, address endpoint) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) RegisterUnmanagedSystem(id [32]byte, endpoint common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.RegisterUnmanagedSystem(&_SpotMarketGoerli.TransactOpts, id, endpoint) -} - -// RemoveFromFeatureFlagAllowlist is a paid mutator transaction binding the contract method 0xb7746b59. -// -// Solidity: function removeFromFeatureFlagAllowlist(bytes32 feature, address account) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) RemoveFromFeatureFlagAllowlist(opts *bind.TransactOpts, feature [32]byte, account common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "removeFromFeatureFlagAllowlist", feature, account) -} - -// RemoveFromFeatureFlagAllowlist is a paid mutator transaction binding the contract method 0xb7746b59. -// -// Solidity: function removeFromFeatureFlagAllowlist(bytes32 feature, address account) returns() -func (_SpotMarketGoerli *SpotMarketGoerliSession) RemoveFromFeatureFlagAllowlist(feature [32]byte, account common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.RemoveFromFeatureFlagAllowlist(&_SpotMarketGoerli.TransactOpts, feature, account) -} - -// RemoveFromFeatureFlagAllowlist is a paid mutator transaction binding the contract method 0xb7746b59. -// -// Solidity: function removeFromFeatureFlagAllowlist(bytes32 feature, address account) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) RemoveFromFeatureFlagAllowlist(feature [32]byte, account common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.RemoveFromFeatureFlagAllowlist(&_SpotMarketGoerli.TransactOpts, feature, account) -} - -// RenounceMarketNomination is a paid mutator transaction binding the contract method 0x298b26bf. -// -// Solidity: function renounceMarketNomination(uint128 synthMarketId) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) RenounceMarketNomination(opts *bind.TransactOpts, synthMarketId *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "renounceMarketNomination", synthMarketId) -} - -// RenounceMarketNomination is a paid mutator transaction binding the contract method 0x298b26bf. -// -// Solidity: function renounceMarketNomination(uint128 synthMarketId) returns() -func (_SpotMarketGoerli *SpotMarketGoerliSession) RenounceMarketNomination(synthMarketId *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.RenounceMarketNomination(&_SpotMarketGoerli.TransactOpts, synthMarketId) -} - -// RenounceMarketNomination is a paid mutator transaction binding the contract method 0x298b26bf. -// -// Solidity: function renounceMarketNomination(uint128 synthMarketId) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) RenounceMarketNomination(synthMarketId *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.RenounceMarketNomination(&_SpotMarketGoerli.TransactOpts, synthMarketId) -} - -// RenounceMarketOwnership is a paid mutator transaction binding the contract method 0xbd1cdfb5. -// -// Solidity: function renounceMarketOwnership(uint128 synthMarketId) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) RenounceMarketOwnership(opts *bind.TransactOpts, synthMarketId *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "renounceMarketOwnership", synthMarketId) -} - -// RenounceMarketOwnership is a paid mutator transaction binding the contract method 0xbd1cdfb5. -// -// Solidity: function renounceMarketOwnership(uint128 synthMarketId) returns() -func (_SpotMarketGoerli *SpotMarketGoerliSession) RenounceMarketOwnership(synthMarketId *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.RenounceMarketOwnership(&_SpotMarketGoerli.TransactOpts, synthMarketId) -} - -// RenounceMarketOwnership is a paid mutator transaction binding the contract method 0xbd1cdfb5. -// -// Solidity: function renounceMarketOwnership(uint128 synthMarketId) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) RenounceMarketOwnership(synthMarketId *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.RenounceMarketOwnership(&_SpotMarketGoerli.TransactOpts, synthMarketId) -} - -// RenounceNomination is a paid mutator transaction binding the contract method 0x718fe928. -// -// Solidity: function renounceNomination() returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) RenounceNomination(opts *bind.TransactOpts) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "renounceNomination") -} - -// RenounceNomination is a paid mutator transaction binding the contract method 0x718fe928. -// -// Solidity: function renounceNomination() returns() -func (_SpotMarketGoerli *SpotMarketGoerliSession) RenounceNomination() (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.RenounceNomination(&_SpotMarketGoerli.TransactOpts) -} - -// RenounceNomination is a paid mutator transaction binding the contract method 0x718fe928. -// -// Solidity: function renounceNomination() returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) RenounceNomination() (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.RenounceNomination(&_SpotMarketGoerli.TransactOpts) -} - -// Sell is a paid mutator transaction binding the contract method 0x4d4bfbd5. -// -// Solidity: function sell(uint128 marketId, uint256 synthAmount, uint256 minUsdAmount, address referrer) returns(uint256 usdAmountReceived, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) Sell(opts *bind.TransactOpts, marketId *big.Int, synthAmount *big.Int, minUsdAmount *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "sell", marketId, synthAmount, minUsdAmount, referrer) -} - -// Sell is a paid mutator transaction binding the contract method 0x4d4bfbd5. -// -// Solidity: function sell(uint128 marketId, uint256 synthAmount, uint256 minUsdAmount, address referrer) returns(uint256 usdAmountReceived, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliSession) Sell(marketId *big.Int, synthAmount *big.Int, minUsdAmount *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.Sell(&_SpotMarketGoerli.TransactOpts, marketId, synthAmount, minUsdAmount, referrer) -} - -// Sell is a paid mutator transaction binding the contract method 0x4d4bfbd5. -// -// Solidity: function sell(uint128 marketId, uint256 synthAmount, uint256 minUsdAmount, address referrer) returns(uint256 usdAmountReceived, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) Sell(marketId *big.Int, synthAmount *big.Int, minUsdAmount *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.Sell(&_SpotMarketGoerli.TransactOpts, marketId, synthAmount, minUsdAmount, referrer) -} - -// SellExactIn is a paid mutator transaction binding the contract method 0x3d1a60e4. -// -// Solidity: function sellExactIn(uint128 marketId, uint256 synthAmount, uint256 minAmountReceived, address referrer) returns(uint256 returnAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) SellExactIn(opts *bind.TransactOpts, marketId *big.Int, synthAmount *big.Int, minAmountReceived *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "sellExactIn", marketId, synthAmount, minAmountReceived, referrer) -} - -// SellExactIn is a paid mutator transaction binding the contract method 0x3d1a60e4. -// -// Solidity: function sellExactIn(uint128 marketId, uint256 synthAmount, uint256 minAmountReceived, address referrer) returns(uint256 returnAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliSession) SellExactIn(marketId *big.Int, synthAmount *big.Int, minAmountReceived *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SellExactIn(&_SpotMarketGoerli.TransactOpts, marketId, synthAmount, minAmountReceived, referrer) -} - -// SellExactIn is a paid mutator transaction binding the contract method 0x3d1a60e4. -// -// Solidity: function sellExactIn(uint128 marketId, uint256 synthAmount, uint256 minAmountReceived, address referrer) returns(uint256 returnAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) SellExactIn(marketId *big.Int, synthAmount *big.Int, minAmountReceived *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SellExactIn(&_SpotMarketGoerli.TransactOpts, marketId, synthAmount, minAmountReceived, referrer) -} - -// SellExactOut is a paid mutator transaction binding the contract method 0x4ce94d9d. -// -// Solidity: function sellExactOut(uint128 marketId, uint256 usdAmount, uint256 maxSynthAmount, address referrer) returns(uint256 synthToBurn, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) SellExactOut(opts *bind.TransactOpts, marketId *big.Int, usdAmount *big.Int, maxSynthAmount *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "sellExactOut", marketId, usdAmount, maxSynthAmount, referrer) -} - -// SellExactOut is a paid mutator transaction binding the contract method 0x4ce94d9d. -// -// Solidity: function sellExactOut(uint128 marketId, uint256 usdAmount, uint256 maxSynthAmount, address referrer) returns(uint256 synthToBurn, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliSession) SellExactOut(marketId *big.Int, usdAmount *big.Int, maxSynthAmount *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SellExactOut(&_SpotMarketGoerli.TransactOpts, marketId, usdAmount, maxSynthAmount, referrer) -} - -// SellExactOut is a paid mutator transaction binding the contract method 0x4ce94d9d. -// -// Solidity: function sellExactOut(uint128 marketId, uint256 usdAmount, uint256 maxSynthAmount, address referrer) returns(uint256 synthToBurn, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) SellExactOut(marketId *big.Int, usdAmount *big.Int, maxSynthAmount *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SellExactOut(&_SpotMarketGoerli.TransactOpts, marketId, usdAmount, maxSynthAmount, referrer) -} - -// SetAsyncFixedFee is a paid mutator transaction binding the contract method 0x61dcca86. -// -// Solidity: function setAsyncFixedFee(uint128 synthMarketId, uint256 asyncFixedFee) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) SetAsyncFixedFee(opts *bind.TransactOpts, synthMarketId *big.Int, asyncFixedFee *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "setAsyncFixedFee", synthMarketId, asyncFixedFee) -} - -// SetAsyncFixedFee is a paid mutator transaction binding the contract method 0x61dcca86. -// -// Solidity: function setAsyncFixedFee(uint128 synthMarketId, uint256 asyncFixedFee) returns() -func (_SpotMarketGoerli *SpotMarketGoerliSession) SetAsyncFixedFee(synthMarketId *big.Int, asyncFixedFee *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SetAsyncFixedFee(&_SpotMarketGoerli.TransactOpts, synthMarketId, asyncFixedFee) -} - -// SetAsyncFixedFee is a paid mutator transaction binding the contract method 0x61dcca86. -// -// Solidity: function setAsyncFixedFee(uint128 synthMarketId, uint256 asyncFixedFee) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) SetAsyncFixedFee(synthMarketId *big.Int, asyncFixedFee *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SetAsyncFixedFee(&_SpotMarketGoerli.TransactOpts, synthMarketId, asyncFixedFee) -} - -// SetAtomicFixedFee is a paid mutator transaction binding the contract method 0x480be91f. -// -// Solidity: function setAtomicFixedFee(uint128 synthMarketId, uint256 atomicFixedFee) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) SetAtomicFixedFee(opts *bind.TransactOpts, synthMarketId *big.Int, atomicFixedFee *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "setAtomicFixedFee", synthMarketId, atomicFixedFee) -} - -// SetAtomicFixedFee is a paid mutator transaction binding the contract method 0x480be91f. -// -// Solidity: function setAtomicFixedFee(uint128 synthMarketId, uint256 atomicFixedFee) returns() -func (_SpotMarketGoerli *SpotMarketGoerliSession) SetAtomicFixedFee(synthMarketId *big.Int, atomicFixedFee *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SetAtomicFixedFee(&_SpotMarketGoerli.TransactOpts, synthMarketId, atomicFixedFee) -} - -// SetAtomicFixedFee is a paid mutator transaction binding the contract method 0x480be91f. -// -// Solidity: function setAtomicFixedFee(uint128 synthMarketId, uint256 atomicFixedFee) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) SetAtomicFixedFee(synthMarketId *big.Int, atomicFixedFee *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SetAtomicFixedFee(&_SpotMarketGoerli.TransactOpts, synthMarketId, atomicFixedFee) -} - -// SetCollateralLeverage is a paid mutator transaction binding the contract method 0x21f7f58f. -// -// Solidity: function setCollateralLeverage(uint128 synthMarketId, uint256 collateralLeverage) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) SetCollateralLeverage(opts *bind.TransactOpts, synthMarketId *big.Int, collateralLeverage *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "setCollateralLeverage", synthMarketId, collateralLeverage) -} - -// SetCollateralLeverage is a paid mutator transaction binding the contract method 0x21f7f58f. -// -// Solidity: function setCollateralLeverage(uint128 synthMarketId, uint256 collateralLeverage) returns() -func (_SpotMarketGoerli *SpotMarketGoerliSession) SetCollateralLeverage(synthMarketId *big.Int, collateralLeverage *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SetCollateralLeverage(&_SpotMarketGoerli.TransactOpts, synthMarketId, collateralLeverage) -} - -// SetCollateralLeverage is a paid mutator transaction binding the contract method 0x21f7f58f. -// -// Solidity: function setCollateralLeverage(uint128 synthMarketId, uint256 collateralLeverage) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) SetCollateralLeverage(synthMarketId *big.Int, collateralLeverage *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SetCollateralLeverage(&_SpotMarketGoerli.TransactOpts, synthMarketId, collateralLeverage) -} - -// SetCustomTransactorFees is a paid mutator transaction binding the contract method 0x95fcd547. -// -// Solidity: function setCustomTransactorFees(uint128 synthMarketId, address transactor, uint256 fixedFeeAmount) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) SetCustomTransactorFees(opts *bind.TransactOpts, synthMarketId *big.Int, transactor common.Address, fixedFeeAmount *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "setCustomTransactorFees", synthMarketId, transactor, fixedFeeAmount) -} - -// SetCustomTransactorFees is a paid mutator transaction binding the contract method 0x95fcd547. -// -// Solidity: function setCustomTransactorFees(uint128 synthMarketId, address transactor, uint256 fixedFeeAmount) returns() -func (_SpotMarketGoerli *SpotMarketGoerliSession) SetCustomTransactorFees(synthMarketId *big.Int, transactor common.Address, fixedFeeAmount *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SetCustomTransactorFees(&_SpotMarketGoerli.TransactOpts, synthMarketId, transactor, fixedFeeAmount) -} - -// SetCustomTransactorFees is a paid mutator transaction binding the contract method 0x95fcd547. -// -// Solidity: function setCustomTransactorFees(uint128 synthMarketId, address transactor, uint256 fixedFeeAmount) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) SetCustomTransactorFees(synthMarketId *big.Int, transactor common.Address, fixedFeeAmount *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SetCustomTransactorFees(&_SpotMarketGoerli.TransactOpts, synthMarketId, transactor, fixedFeeAmount) -} - -// SetDecayRate is a paid mutator transaction binding the contract method 0xec846bac. -// -// Solidity: function setDecayRate(uint128 marketId, uint256 rate) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) SetDecayRate(opts *bind.TransactOpts, marketId *big.Int, rate *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "setDecayRate", marketId, rate) -} - -// SetDecayRate is a paid mutator transaction binding the contract method 0xec846bac. -// -// Solidity: function setDecayRate(uint128 marketId, uint256 rate) returns() -func (_SpotMarketGoerli *SpotMarketGoerliSession) SetDecayRate(marketId *big.Int, rate *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SetDecayRate(&_SpotMarketGoerli.TransactOpts, marketId, rate) -} - -// SetDecayRate is a paid mutator transaction binding the contract method 0xec846bac. -// -// Solidity: function setDecayRate(uint128 marketId, uint256 rate) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) SetDecayRate(marketId *big.Int, rate *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SetDecayRate(&_SpotMarketGoerli.TransactOpts, marketId, rate) -} - -// SetDeniers is a paid mutator transaction binding the contract method 0x715cb7d2. -// -// Solidity: function setDeniers(bytes32 feature, address[] deniers) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) SetDeniers(opts *bind.TransactOpts, feature [32]byte, deniers []common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "setDeniers", feature, deniers) -} - -// SetDeniers is a paid mutator transaction binding the contract method 0x715cb7d2. -// -// Solidity: function setDeniers(bytes32 feature, address[] deniers) returns() -func (_SpotMarketGoerli *SpotMarketGoerliSession) SetDeniers(feature [32]byte, deniers []common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SetDeniers(&_SpotMarketGoerli.TransactOpts, feature, deniers) -} - -// SetDeniers is a paid mutator transaction binding the contract method 0x715cb7d2. -// -// Solidity: function setDeniers(bytes32 feature, address[] deniers) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) SetDeniers(feature [32]byte, deniers []common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SetDeniers(&_SpotMarketGoerli.TransactOpts, feature, deniers) -} - -// SetFeatureFlagAllowAll is a paid mutator transaction binding the contract method 0x7d632bd2. -// -// Solidity: function setFeatureFlagAllowAll(bytes32 feature, bool allowAll) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) SetFeatureFlagAllowAll(opts *bind.TransactOpts, feature [32]byte, allowAll bool) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "setFeatureFlagAllowAll", feature, allowAll) -} - -// SetFeatureFlagAllowAll is a paid mutator transaction binding the contract method 0x7d632bd2. -// -// Solidity: function setFeatureFlagAllowAll(bytes32 feature, bool allowAll) returns() -func (_SpotMarketGoerli *SpotMarketGoerliSession) SetFeatureFlagAllowAll(feature [32]byte, allowAll bool) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SetFeatureFlagAllowAll(&_SpotMarketGoerli.TransactOpts, feature, allowAll) -} - -// SetFeatureFlagAllowAll is a paid mutator transaction binding the contract method 0x7d632bd2. -// -// Solidity: function setFeatureFlagAllowAll(bytes32 feature, bool allowAll) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) SetFeatureFlagAllowAll(feature [32]byte, allowAll bool) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SetFeatureFlagAllowAll(&_SpotMarketGoerli.TransactOpts, feature, allowAll) -} - -// SetFeatureFlagDenyAll is a paid mutator transaction binding the contract method 0x5e52ad6e. -// -// Solidity: function setFeatureFlagDenyAll(bytes32 feature, bool denyAll) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) SetFeatureFlagDenyAll(opts *bind.TransactOpts, feature [32]byte, denyAll bool) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "setFeatureFlagDenyAll", feature, denyAll) -} - -// SetFeatureFlagDenyAll is a paid mutator transaction binding the contract method 0x5e52ad6e. -// -// Solidity: function setFeatureFlagDenyAll(bytes32 feature, bool denyAll) returns() -func (_SpotMarketGoerli *SpotMarketGoerliSession) SetFeatureFlagDenyAll(feature [32]byte, denyAll bool) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SetFeatureFlagDenyAll(&_SpotMarketGoerli.TransactOpts, feature, denyAll) -} - -// SetFeatureFlagDenyAll is a paid mutator transaction binding the contract method 0x5e52ad6e. -// -// Solidity: function setFeatureFlagDenyAll(bytes32 feature, bool denyAll) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) SetFeatureFlagDenyAll(feature [32]byte, denyAll bool) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SetFeatureFlagDenyAll(&_SpotMarketGoerli.TransactOpts, feature, denyAll) -} - -// SetFeeCollector is a paid mutator transaction binding the contract method 0x025f6120. -// -// Solidity: function setFeeCollector(uint128 synthMarketId, address feeCollector) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) SetFeeCollector(opts *bind.TransactOpts, synthMarketId *big.Int, feeCollector common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "setFeeCollector", synthMarketId, feeCollector) -} - -// SetFeeCollector is a paid mutator transaction binding the contract method 0x025f6120. -// -// Solidity: function setFeeCollector(uint128 synthMarketId, address feeCollector) returns() -func (_SpotMarketGoerli *SpotMarketGoerliSession) SetFeeCollector(synthMarketId *big.Int, feeCollector common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SetFeeCollector(&_SpotMarketGoerli.TransactOpts, synthMarketId, feeCollector) -} - -// SetFeeCollector is a paid mutator transaction binding the contract method 0x025f6120. -// -// Solidity: function setFeeCollector(uint128 synthMarketId, address feeCollector) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) SetFeeCollector(synthMarketId *big.Int, feeCollector common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SetFeeCollector(&_SpotMarketGoerli.TransactOpts, synthMarketId, feeCollector) -} - -// SetMarketSkewScale is a paid mutator transaction binding the contract method 0x9a40f8cb. -// -// Solidity: function setMarketSkewScale(uint128 synthMarketId, uint256 skewScale) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) SetMarketSkewScale(opts *bind.TransactOpts, synthMarketId *big.Int, skewScale *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "setMarketSkewScale", synthMarketId, skewScale) -} - -// SetMarketSkewScale is a paid mutator transaction binding the contract method 0x9a40f8cb. -// -// Solidity: function setMarketSkewScale(uint128 synthMarketId, uint256 skewScale) returns() -func (_SpotMarketGoerli *SpotMarketGoerliSession) SetMarketSkewScale(synthMarketId *big.Int, skewScale *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SetMarketSkewScale(&_SpotMarketGoerli.TransactOpts, synthMarketId, skewScale) -} - -// SetMarketSkewScale is a paid mutator transaction binding the contract method 0x9a40f8cb. -// -// Solidity: function setMarketSkewScale(uint128 synthMarketId, uint256 skewScale) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) SetMarketSkewScale(synthMarketId *big.Int, skewScale *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SetMarketSkewScale(&_SpotMarketGoerli.TransactOpts, synthMarketId, skewScale) -} - -// SetMarketUtilizationFees is a paid mutator transaction binding the contract method 0x45f2601c. -// -// Solidity: function setMarketUtilizationFees(uint128 synthMarketId, uint256 utilizationFeeRate) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) SetMarketUtilizationFees(opts *bind.TransactOpts, synthMarketId *big.Int, utilizationFeeRate *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "setMarketUtilizationFees", synthMarketId, utilizationFeeRate) -} - -// SetMarketUtilizationFees is a paid mutator transaction binding the contract method 0x45f2601c. -// -// Solidity: function setMarketUtilizationFees(uint128 synthMarketId, uint256 utilizationFeeRate) returns() -func (_SpotMarketGoerli *SpotMarketGoerliSession) SetMarketUtilizationFees(synthMarketId *big.Int, utilizationFeeRate *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SetMarketUtilizationFees(&_SpotMarketGoerli.TransactOpts, synthMarketId, utilizationFeeRate) -} - -// SetMarketUtilizationFees is a paid mutator transaction binding the contract method 0x45f2601c. -// -// Solidity: function setMarketUtilizationFees(uint128 synthMarketId, uint256 utilizationFeeRate) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) SetMarketUtilizationFees(synthMarketId *big.Int, utilizationFeeRate *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SetMarketUtilizationFees(&_SpotMarketGoerli.TransactOpts, synthMarketId, utilizationFeeRate) -} - -// SetSettlementStrategyEnabled is a paid mutator transaction binding the contract method 0x7f73a891. -// -// Solidity: function setSettlementStrategyEnabled(uint128 marketId, uint256 strategyId, bool enabled) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) SetSettlementStrategyEnabled(opts *bind.TransactOpts, marketId *big.Int, strategyId *big.Int, enabled bool) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "setSettlementStrategyEnabled", marketId, strategyId, enabled) -} - -// SetSettlementStrategyEnabled is a paid mutator transaction binding the contract method 0x7f73a891. -// -// Solidity: function setSettlementStrategyEnabled(uint128 marketId, uint256 strategyId, bool enabled) returns() -func (_SpotMarketGoerli *SpotMarketGoerliSession) SetSettlementStrategyEnabled(marketId *big.Int, strategyId *big.Int, enabled bool) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SetSettlementStrategyEnabled(&_SpotMarketGoerli.TransactOpts, marketId, strategyId, enabled) -} - -// SetSettlementStrategyEnabled is a paid mutator transaction binding the contract method 0x7f73a891. -// -// Solidity: function setSettlementStrategyEnabled(uint128 marketId, uint256 strategyId, bool enabled) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) SetSettlementStrategyEnabled(marketId *big.Int, strategyId *big.Int, enabled bool) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SetSettlementStrategyEnabled(&_SpotMarketGoerli.TransactOpts, marketId, strategyId, enabled) -} - -// SetSynthImplementation is a paid mutator transaction binding the contract method 0xec04ceb1. -// -// Solidity: function setSynthImplementation(address synthImplementation) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) SetSynthImplementation(opts *bind.TransactOpts, synthImplementation common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "setSynthImplementation", synthImplementation) -} - -// SetSynthImplementation is a paid mutator transaction binding the contract method 0xec04ceb1. -// -// Solidity: function setSynthImplementation(address synthImplementation) returns() -func (_SpotMarketGoerli *SpotMarketGoerliSession) SetSynthImplementation(synthImplementation common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SetSynthImplementation(&_SpotMarketGoerli.TransactOpts, synthImplementation) -} - -// SetSynthImplementation is a paid mutator transaction binding the contract method 0xec04ceb1. -// -// Solidity: function setSynthImplementation(address synthImplementation) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) SetSynthImplementation(synthImplementation common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SetSynthImplementation(&_SpotMarketGoerli.TransactOpts, synthImplementation) -} - -// SetSynthetix is a paid mutator transaction binding the contract method 0xfec9f9da. -// -// Solidity: function setSynthetix(address synthetix) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) SetSynthetix(opts *bind.TransactOpts, synthetix common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "setSynthetix", synthetix) -} - -// SetSynthetix is a paid mutator transaction binding the contract method 0xfec9f9da. -// -// Solidity: function setSynthetix(address synthetix) returns() -func (_SpotMarketGoerli *SpotMarketGoerliSession) SetSynthetix(synthetix common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SetSynthetix(&_SpotMarketGoerli.TransactOpts, synthetix) -} - -// SetSynthetix is a paid mutator transaction binding the contract method 0xfec9f9da. -// -// Solidity: function setSynthetix(address synthetix) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) SetSynthetix(synthetix common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SetSynthetix(&_SpotMarketGoerli.TransactOpts, synthetix) -} - -// SetWrapper is a paid mutator transaction binding the contract method 0x673a21e5. -// -// Solidity: function setWrapper(uint128 marketId, address wrapCollateralType, uint256 maxWrappableAmount) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) SetWrapper(opts *bind.TransactOpts, marketId *big.Int, wrapCollateralType common.Address, maxWrappableAmount *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "setWrapper", marketId, wrapCollateralType, maxWrappableAmount) -} - -// SetWrapper is a paid mutator transaction binding the contract method 0x673a21e5. -// -// Solidity: function setWrapper(uint128 marketId, address wrapCollateralType, uint256 maxWrappableAmount) returns() -func (_SpotMarketGoerli *SpotMarketGoerliSession) SetWrapper(marketId *big.Int, wrapCollateralType common.Address, maxWrappableAmount *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SetWrapper(&_SpotMarketGoerli.TransactOpts, marketId, wrapCollateralType, maxWrappableAmount) -} - -// SetWrapper is a paid mutator transaction binding the contract method 0x673a21e5. -// -// Solidity: function setWrapper(uint128 marketId, address wrapCollateralType, uint256 maxWrappableAmount) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) SetWrapper(marketId *big.Int, wrapCollateralType common.Address, maxWrappableAmount *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SetWrapper(&_SpotMarketGoerli.TransactOpts, marketId, wrapCollateralType, maxWrappableAmount) -} - -// SetWrapperFees is a paid mutator transaction binding the contract method 0x6539b1c3. -// -// Solidity: function setWrapperFees(uint128 synthMarketId, int256 wrapFee, int256 unwrapFee) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) SetWrapperFees(opts *bind.TransactOpts, synthMarketId *big.Int, wrapFee *big.Int, unwrapFee *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "setWrapperFees", synthMarketId, wrapFee, unwrapFee) -} - -// SetWrapperFees is a paid mutator transaction binding the contract method 0x6539b1c3. -// -// Solidity: function setWrapperFees(uint128 synthMarketId, int256 wrapFee, int256 unwrapFee) returns() -func (_SpotMarketGoerli *SpotMarketGoerliSession) SetWrapperFees(synthMarketId *big.Int, wrapFee *big.Int, unwrapFee *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SetWrapperFees(&_SpotMarketGoerli.TransactOpts, synthMarketId, wrapFee, unwrapFee) -} - -// SetWrapperFees is a paid mutator transaction binding the contract method 0x6539b1c3. -// -// Solidity: function setWrapperFees(uint128 synthMarketId, int256 wrapFee, int256 unwrapFee) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) SetWrapperFees(synthMarketId *big.Int, wrapFee *big.Int, unwrapFee *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SetWrapperFees(&_SpotMarketGoerli.TransactOpts, synthMarketId, wrapFee, unwrapFee) -} - -// SettleOrder is a paid mutator transaction binding the contract method 0x9444ac48. -// -// Solidity: function settleOrder(uint128 marketId, uint128 asyncOrderId) returns(uint256 finalOrderAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) SettleOrder(opts *bind.TransactOpts, marketId *big.Int, asyncOrderId *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "settleOrder", marketId, asyncOrderId) -} - -// SettleOrder is a paid mutator transaction binding the contract method 0x9444ac48. -// -// Solidity: function settleOrder(uint128 marketId, uint128 asyncOrderId) returns(uint256 finalOrderAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliSession) SettleOrder(marketId *big.Int, asyncOrderId *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SettleOrder(&_SpotMarketGoerli.TransactOpts, marketId, asyncOrderId) -} - -// SettleOrder is a paid mutator transaction binding the contract method 0x9444ac48. -// -// Solidity: function settleOrder(uint128 marketId, uint128 asyncOrderId) returns(uint256 finalOrderAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) SettleOrder(marketId *big.Int, asyncOrderId *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SettleOrder(&_SpotMarketGoerli.TransactOpts, marketId, asyncOrderId) -} - -// SettlePythOrder is a paid mutator transaction binding the contract method 0x8a0345c6. -// -// Solidity: function settlePythOrder(bytes result, bytes extraData) payable returns(uint256 finalOrderAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) SettlePythOrder(opts *bind.TransactOpts, result []byte, extraData []byte) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "settlePythOrder", result, extraData) -} - -// SettlePythOrder is a paid mutator transaction binding the contract method 0x8a0345c6. -// -// Solidity: function settlePythOrder(bytes result, bytes extraData) payable returns(uint256 finalOrderAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliSession) SettlePythOrder(result []byte, extraData []byte) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SettlePythOrder(&_SpotMarketGoerli.TransactOpts, result, extraData) -} - -// SettlePythOrder is a paid mutator transaction binding the contract method 0x8a0345c6. -// -// Solidity: function settlePythOrder(bytes result, bytes extraData) payable returns(uint256 finalOrderAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) SettlePythOrder(result []byte, extraData []byte) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SettlePythOrder(&_SpotMarketGoerli.TransactOpts, result, extraData) -} - -// SimulateUpgradeTo is a paid mutator transaction binding the contract method 0xc7f62cda. -// -// Solidity: function simulateUpgradeTo(address newImplementation) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) SimulateUpgradeTo(opts *bind.TransactOpts, newImplementation common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "simulateUpgradeTo", newImplementation) -} - -// SimulateUpgradeTo is a paid mutator transaction binding the contract method 0xc7f62cda. -// -// Solidity: function simulateUpgradeTo(address newImplementation) returns() -func (_SpotMarketGoerli *SpotMarketGoerliSession) SimulateUpgradeTo(newImplementation common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SimulateUpgradeTo(&_SpotMarketGoerli.TransactOpts, newImplementation) -} - -// SimulateUpgradeTo is a paid mutator transaction binding the contract method 0xc7f62cda. -// -// Solidity: function simulateUpgradeTo(address newImplementation) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) SimulateUpgradeTo(newImplementation common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.SimulateUpgradeTo(&_SpotMarketGoerli.TransactOpts, newImplementation) -} - -// Unwrap is a paid mutator transaction binding the contract method 0x784dad9e. -// -// Solidity: function unwrap(uint128 marketId, uint256 unwrapAmount, uint256 minAmountReceived) returns(uint256 returnCollateralAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) Unwrap(opts *bind.TransactOpts, marketId *big.Int, unwrapAmount *big.Int, minAmountReceived *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "unwrap", marketId, unwrapAmount, minAmountReceived) -} - -// Unwrap is a paid mutator transaction binding the contract method 0x784dad9e. -// -// Solidity: function unwrap(uint128 marketId, uint256 unwrapAmount, uint256 minAmountReceived) returns(uint256 returnCollateralAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliSession) Unwrap(marketId *big.Int, unwrapAmount *big.Int, minAmountReceived *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.Unwrap(&_SpotMarketGoerli.TransactOpts, marketId, unwrapAmount, minAmountReceived) -} - -// Unwrap is a paid mutator transaction binding the contract method 0x784dad9e. -// -// Solidity: function unwrap(uint128 marketId, uint256 unwrapAmount, uint256 minAmountReceived) returns(uint256 returnCollateralAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) Unwrap(marketId *big.Int, unwrapAmount *big.Int, minAmountReceived *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.Unwrap(&_SpotMarketGoerli.TransactOpts, marketId, unwrapAmount, minAmountReceived) -} - -// UpdatePriceData is a paid mutator transaction binding the contract method 0x6a0e2085. -// -// Solidity: function updatePriceData(uint128 synthMarketId, bytes32 buyFeedId, bytes32 sellFeedId) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) UpdatePriceData(opts *bind.TransactOpts, synthMarketId *big.Int, buyFeedId [32]byte, sellFeedId [32]byte) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "updatePriceData", synthMarketId, buyFeedId, sellFeedId) -} - -// UpdatePriceData is a paid mutator transaction binding the contract method 0x6a0e2085. -// -// Solidity: function updatePriceData(uint128 synthMarketId, bytes32 buyFeedId, bytes32 sellFeedId) returns() -func (_SpotMarketGoerli *SpotMarketGoerliSession) UpdatePriceData(synthMarketId *big.Int, buyFeedId [32]byte, sellFeedId [32]byte) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.UpdatePriceData(&_SpotMarketGoerli.TransactOpts, synthMarketId, buyFeedId, sellFeedId) -} - -// UpdatePriceData is a paid mutator transaction binding the contract method 0x6a0e2085. -// -// Solidity: function updatePriceData(uint128 synthMarketId, bytes32 buyFeedId, bytes32 sellFeedId) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) UpdatePriceData(synthMarketId *big.Int, buyFeedId [32]byte, sellFeedId [32]byte) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.UpdatePriceData(&_SpotMarketGoerli.TransactOpts, synthMarketId, buyFeedId, sellFeedId) -} - -// UpdateReferrerShare is a paid mutator transaction binding the contract method 0x6ad77077. -// -// Solidity: function updateReferrerShare(uint128 synthMarketId, address referrer, uint256 sharePercentage) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) UpdateReferrerShare(opts *bind.TransactOpts, synthMarketId *big.Int, referrer common.Address, sharePercentage *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "updateReferrerShare", synthMarketId, referrer, sharePercentage) -} - -// UpdateReferrerShare is a paid mutator transaction binding the contract method 0x6ad77077. -// -// Solidity: function updateReferrerShare(uint128 synthMarketId, address referrer, uint256 sharePercentage) returns() -func (_SpotMarketGoerli *SpotMarketGoerliSession) UpdateReferrerShare(synthMarketId *big.Int, referrer common.Address, sharePercentage *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.UpdateReferrerShare(&_SpotMarketGoerli.TransactOpts, synthMarketId, referrer, sharePercentage) -} - -// UpdateReferrerShare is a paid mutator transaction binding the contract method 0x6ad77077. -// -// Solidity: function updateReferrerShare(uint128 synthMarketId, address referrer, uint256 sharePercentage) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) UpdateReferrerShare(synthMarketId *big.Int, referrer common.Address, sharePercentage *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.UpdateReferrerShare(&_SpotMarketGoerli.TransactOpts, synthMarketId, referrer, sharePercentage) -} - -// UpgradeSynthImpl is a paid mutator transaction binding the contract method 0xc99d0cdd. -// -// Solidity: function upgradeSynthImpl(uint128 marketId) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) UpgradeSynthImpl(opts *bind.TransactOpts, marketId *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "upgradeSynthImpl", marketId) -} - -// UpgradeSynthImpl is a paid mutator transaction binding the contract method 0xc99d0cdd. -// -// Solidity: function upgradeSynthImpl(uint128 marketId) returns() -func (_SpotMarketGoerli *SpotMarketGoerliSession) UpgradeSynthImpl(marketId *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.UpgradeSynthImpl(&_SpotMarketGoerli.TransactOpts, marketId) -} - -// UpgradeSynthImpl is a paid mutator transaction binding the contract method 0xc99d0cdd. -// -// Solidity: function upgradeSynthImpl(uint128 marketId) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) UpgradeSynthImpl(marketId *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.UpgradeSynthImpl(&_SpotMarketGoerli.TransactOpts, marketId) -} - -// UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6. -// -// Solidity: function upgradeTo(address newImplementation) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) UpgradeTo(opts *bind.TransactOpts, newImplementation common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "upgradeTo", newImplementation) -} - -// UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6. -// -// Solidity: function upgradeTo(address newImplementation) returns() -func (_SpotMarketGoerli *SpotMarketGoerliSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.UpgradeTo(&_SpotMarketGoerli.TransactOpts, newImplementation) -} - -// UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6. -// -// Solidity: function upgradeTo(address newImplementation) returns() -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.UpgradeTo(&_SpotMarketGoerli.TransactOpts, newImplementation) -} - -// Wrap is a paid mutator transaction binding the contract method 0xd7ce770c. -// -// Solidity: function wrap(uint128 marketId, uint256 wrapAmount, uint256 minAmountReceived) returns(uint256 amountToMint, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliTransactor) Wrap(opts *bind.TransactOpts, marketId *big.Int, wrapAmount *big.Int, minAmountReceived *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.contract.Transact(opts, "wrap", marketId, wrapAmount, minAmountReceived) -} - -// Wrap is a paid mutator transaction binding the contract method 0xd7ce770c. -// -// Solidity: function wrap(uint128 marketId, uint256 wrapAmount, uint256 minAmountReceived) returns(uint256 amountToMint, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliSession) Wrap(marketId *big.Int, wrapAmount *big.Int, minAmountReceived *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.Wrap(&_SpotMarketGoerli.TransactOpts, marketId, wrapAmount, minAmountReceived) -} - -// Wrap is a paid mutator transaction binding the contract method 0xd7ce770c. -// -// Solidity: function wrap(uint128 marketId, uint256 wrapAmount, uint256 minAmountReceived) returns(uint256 amountToMint, (uint256,uint256,int256,int256) fees) -func (_SpotMarketGoerli *SpotMarketGoerliTransactorSession) Wrap(marketId *big.Int, wrapAmount *big.Int, minAmountReceived *big.Int) (*types.Transaction, error) { - return _SpotMarketGoerli.Contract.Wrap(&_SpotMarketGoerli.TransactOpts, marketId, wrapAmount, minAmountReceived) -} - -// SpotMarketGoerliAssociatedSystemSetIterator is returned from FilterAssociatedSystemSet and is used to iterate over the raw logs and unpacked data for AssociatedSystemSet events raised by the SpotMarketGoerli contract. -type SpotMarketGoerliAssociatedSystemSetIterator struct { - Event *SpotMarketGoerliAssociatedSystemSet // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketGoerliAssociatedSystemSetIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliAssociatedSystemSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliAssociatedSystemSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketGoerliAssociatedSystemSetIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketGoerliAssociatedSystemSetIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketGoerliAssociatedSystemSet represents a AssociatedSystemSet event raised by the SpotMarketGoerli contract. -type SpotMarketGoerliAssociatedSystemSet struct { - Kind [32]byte - Id [32]byte - Proxy common.Address - Impl common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterAssociatedSystemSet is a free log retrieval operation binding the contract event 0xc8551a5a03a7b06d5d20159b3b8839429a7aefab4bf3d020f1b65fa903ccb3d2. -// -// Solidity: event AssociatedSystemSet(bytes32 indexed kind, bytes32 indexed id, address proxy, address impl) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) FilterAssociatedSystemSet(opts *bind.FilterOpts, kind [][32]byte, id [][32]byte) (*SpotMarketGoerliAssociatedSystemSetIterator, error) { - - var kindRule []interface{} - for _, kindItem := range kind { - kindRule = append(kindRule, kindItem) - } - var idRule []interface{} - for _, idItem := range id { - idRule = append(idRule, idItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.FilterLogs(opts, "AssociatedSystemSet", kindRule, idRule) - if err != nil { - return nil, err - } - return &SpotMarketGoerliAssociatedSystemSetIterator{contract: _SpotMarketGoerli.contract, event: "AssociatedSystemSet", logs: logs, sub: sub}, nil -} - -// WatchAssociatedSystemSet is a free log subscription operation binding the contract event 0xc8551a5a03a7b06d5d20159b3b8839429a7aefab4bf3d020f1b65fa903ccb3d2. -// -// Solidity: event AssociatedSystemSet(bytes32 indexed kind, bytes32 indexed id, address proxy, address impl) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) WatchAssociatedSystemSet(opts *bind.WatchOpts, sink chan<- *SpotMarketGoerliAssociatedSystemSet, kind [][32]byte, id [][32]byte) (event.Subscription, error) { - - var kindRule []interface{} - for _, kindItem := range kind { - kindRule = append(kindRule, kindItem) - } - var idRule []interface{} - for _, idItem := range id { - idRule = append(idRule, idItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.WatchLogs(opts, "AssociatedSystemSet", kindRule, idRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketGoerliAssociatedSystemSet) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "AssociatedSystemSet", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseAssociatedSystemSet is a log parse operation binding the contract event 0xc8551a5a03a7b06d5d20159b3b8839429a7aefab4bf3d020f1b65fa903ccb3d2. -// -// Solidity: event AssociatedSystemSet(bytes32 indexed kind, bytes32 indexed id, address proxy, address impl) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) ParseAssociatedSystemSet(log types.Log) (*SpotMarketGoerliAssociatedSystemSet, error) { - event := new(SpotMarketGoerliAssociatedSystemSet) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "AssociatedSystemSet", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketGoerliAsyncFixedFeeSetIterator is returned from FilterAsyncFixedFeeSet and is used to iterate over the raw logs and unpacked data for AsyncFixedFeeSet events raised by the SpotMarketGoerli contract. -type SpotMarketGoerliAsyncFixedFeeSetIterator struct { - Event *SpotMarketGoerliAsyncFixedFeeSet // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketGoerliAsyncFixedFeeSetIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliAsyncFixedFeeSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliAsyncFixedFeeSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketGoerliAsyncFixedFeeSetIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketGoerliAsyncFixedFeeSetIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketGoerliAsyncFixedFeeSet represents a AsyncFixedFeeSet event raised by the SpotMarketGoerli contract. -type SpotMarketGoerliAsyncFixedFeeSet struct { - SynthMarketId *big.Int - AsyncFixedFee *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterAsyncFixedFeeSet is a free log retrieval operation binding the contract event 0xaef59d229d195c5b8372221acbf4041b926fb1616a95f93e44379e4f30d57bfe. -// -// Solidity: event AsyncFixedFeeSet(uint256 indexed synthMarketId, uint256 asyncFixedFee) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) FilterAsyncFixedFeeSet(opts *bind.FilterOpts, synthMarketId []*big.Int) (*SpotMarketGoerliAsyncFixedFeeSetIterator, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.FilterLogs(opts, "AsyncFixedFeeSet", synthMarketIdRule) - if err != nil { - return nil, err - } - return &SpotMarketGoerliAsyncFixedFeeSetIterator{contract: _SpotMarketGoerli.contract, event: "AsyncFixedFeeSet", logs: logs, sub: sub}, nil -} - -// WatchAsyncFixedFeeSet is a free log subscription operation binding the contract event 0xaef59d229d195c5b8372221acbf4041b926fb1616a95f93e44379e4f30d57bfe. -// -// Solidity: event AsyncFixedFeeSet(uint256 indexed synthMarketId, uint256 asyncFixedFee) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) WatchAsyncFixedFeeSet(opts *bind.WatchOpts, sink chan<- *SpotMarketGoerliAsyncFixedFeeSet, synthMarketId []*big.Int) (event.Subscription, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.WatchLogs(opts, "AsyncFixedFeeSet", synthMarketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketGoerliAsyncFixedFeeSet) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "AsyncFixedFeeSet", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseAsyncFixedFeeSet is a log parse operation binding the contract event 0xaef59d229d195c5b8372221acbf4041b926fb1616a95f93e44379e4f30d57bfe. -// -// Solidity: event AsyncFixedFeeSet(uint256 indexed synthMarketId, uint256 asyncFixedFee) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) ParseAsyncFixedFeeSet(log types.Log) (*SpotMarketGoerliAsyncFixedFeeSet, error) { - event := new(SpotMarketGoerliAsyncFixedFeeSet) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "AsyncFixedFeeSet", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketGoerliAtomicFixedFeeSetIterator is returned from FilterAtomicFixedFeeSet and is used to iterate over the raw logs and unpacked data for AtomicFixedFeeSet events raised by the SpotMarketGoerli contract. -type SpotMarketGoerliAtomicFixedFeeSetIterator struct { - Event *SpotMarketGoerliAtomicFixedFeeSet // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketGoerliAtomicFixedFeeSetIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliAtomicFixedFeeSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliAtomicFixedFeeSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketGoerliAtomicFixedFeeSetIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketGoerliAtomicFixedFeeSetIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketGoerliAtomicFixedFeeSet represents a AtomicFixedFeeSet event raised by the SpotMarketGoerli contract. -type SpotMarketGoerliAtomicFixedFeeSet struct { - SynthMarketId *big.Int - AtomicFixedFee *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterAtomicFixedFeeSet is a free log retrieval operation binding the contract event 0x6b0a526b06b2f30ba2d5b063c2ef81547512216d37c540b86039e3a19f1d2b3f. -// -// Solidity: event AtomicFixedFeeSet(uint256 indexed synthMarketId, uint256 atomicFixedFee) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) FilterAtomicFixedFeeSet(opts *bind.FilterOpts, synthMarketId []*big.Int) (*SpotMarketGoerliAtomicFixedFeeSetIterator, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.FilterLogs(opts, "AtomicFixedFeeSet", synthMarketIdRule) - if err != nil { - return nil, err - } - return &SpotMarketGoerliAtomicFixedFeeSetIterator{contract: _SpotMarketGoerli.contract, event: "AtomicFixedFeeSet", logs: logs, sub: sub}, nil -} - -// WatchAtomicFixedFeeSet is a free log subscription operation binding the contract event 0x6b0a526b06b2f30ba2d5b063c2ef81547512216d37c540b86039e3a19f1d2b3f. -// -// Solidity: event AtomicFixedFeeSet(uint256 indexed synthMarketId, uint256 atomicFixedFee) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) WatchAtomicFixedFeeSet(opts *bind.WatchOpts, sink chan<- *SpotMarketGoerliAtomicFixedFeeSet, synthMarketId []*big.Int) (event.Subscription, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.WatchLogs(opts, "AtomicFixedFeeSet", synthMarketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketGoerliAtomicFixedFeeSet) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "AtomicFixedFeeSet", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseAtomicFixedFeeSet is a log parse operation binding the contract event 0x6b0a526b06b2f30ba2d5b063c2ef81547512216d37c540b86039e3a19f1d2b3f. -// -// Solidity: event AtomicFixedFeeSet(uint256 indexed synthMarketId, uint256 atomicFixedFee) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) ParseAtomicFixedFeeSet(log types.Log) (*SpotMarketGoerliAtomicFixedFeeSet, error) { - event := new(SpotMarketGoerliAtomicFixedFeeSet) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "AtomicFixedFeeSet", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketGoerliCollateralLeverageSetIterator is returned from FilterCollateralLeverageSet and is used to iterate over the raw logs and unpacked data for CollateralLeverageSet events raised by the SpotMarketGoerli contract. -type SpotMarketGoerliCollateralLeverageSetIterator struct { - Event *SpotMarketGoerliCollateralLeverageSet // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketGoerliCollateralLeverageSetIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliCollateralLeverageSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliCollateralLeverageSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketGoerliCollateralLeverageSetIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketGoerliCollateralLeverageSetIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketGoerliCollateralLeverageSet represents a CollateralLeverageSet event raised by the SpotMarketGoerli contract. -type SpotMarketGoerliCollateralLeverageSet struct { - SynthMarketId *big.Int - CollateralLeverage *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterCollateralLeverageSet is a free log retrieval operation binding the contract event 0x83113c0e8d811f7e7017948357e945a1a8a6b6fc0d76c8512ffdd6f6766e8a13. -// -// Solidity: event CollateralLeverageSet(uint256 indexed synthMarketId, uint256 collateralLeverage) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) FilterCollateralLeverageSet(opts *bind.FilterOpts, synthMarketId []*big.Int) (*SpotMarketGoerliCollateralLeverageSetIterator, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.FilterLogs(opts, "CollateralLeverageSet", synthMarketIdRule) - if err != nil { - return nil, err - } - return &SpotMarketGoerliCollateralLeverageSetIterator{contract: _SpotMarketGoerli.contract, event: "CollateralLeverageSet", logs: logs, sub: sub}, nil -} - -// WatchCollateralLeverageSet is a free log subscription operation binding the contract event 0x83113c0e8d811f7e7017948357e945a1a8a6b6fc0d76c8512ffdd6f6766e8a13. -// -// Solidity: event CollateralLeverageSet(uint256 indexed synthMarketId, uint256 collateralLeverage) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) WatchCollateralLeverageSet(opts *bind.WatchOpts, sink chan<- *SpotMarketGoerliCollateralLeverageSet, synthMarketId []*big.Int) (event.Subscription, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.WatchLogs(opts, "CollateralLeverageSet", synthMarketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketGoerliCollateralLeverageSet) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "CollateralLeverageSet", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseCollateralLeverageSet is a log parse operation binding the contract event 0x83113c0e8d811f7e7017948357e945a1a8a6b6fc0d76c8512ffdd6f6766e8a13. -// -// Solidity: event CollateralLeverageSet(uint256 indexed synthMarketId, uint256 collateralLeverage) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) ParseCollateralLeverageSet(log types.Log) (*SpotMarketGoerliCollateralLeverageSet, error) { - event := new(SpotMarketGoerliCollateralLeverageSet) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "CollateralLeverageSet", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketGoerliDecayRateUpdatedIterator is returned from FilterDecayRateUpdated and is used to iterate over the raw logs and unpacked data for DecayRateUpdated events raised by the SpotMarketGoerli contract. -type SpotMarketGoerliDecayRateUpdatedIterator struct { - Event *SpotMarketGoerliDecayRateUpdated // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketGoerliDecayRateUpdatedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliDecayRateUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliDecayRateUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketGoerliDecayRateUpdatedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketGoerliDecayRateUpdatedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketGoerliDecayRateUpdated represents a DecayRateUpdated event raised by the SpotMarketGoerli contract. -type SpotMarketGoerliDecayRateUpdated struct { - MarketId *big.Int - Rate *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterDecayRateUpdated is a free log retrieval operation binding the contract event 0x8a1ed33cd71d1533eadd1d4eb0ea2ae64da7d343cb2a932fdf135f345264e2b5. -// -// Solidity: event DecayRateUpdated(uint128 indexed marketId, uint256 rate) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) FilterDecayRateUpdated(opts *bind.FilterOpts, marketId []*big.Int) (*SpotMarketGoerliDecayRateUpdatedIterator, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.FilterLogs(opts, "DecayRateUpdated", marketIdRule) - if err != nil { - return nil, err - } - return &SpotMarketGoerliDecayRateUpdatedIterator{contract: _SpotMarketGoerli.contract, event: "DecayRateUpdated", logs: logs, sub: sub}, nil -} - -// WatchDecayRateUpdated is a free log subscription operation binding the contract event 0x8a1ed33cd71d1533eadd1d4eb0ea2ae64da7d343cb2a932fdf135f345264e2b5. -// -// Solidity: event DecayRateUpdated(uint128 indexed marketId, uint256 rate) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) WatchDecayRateUpdated(opts *bind.WatchOpts, sink chan<- *SpotMarketGoerliDecayRateUpdated, marketId []*big.Int) (event.Subscription, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.WatchLogs(opts, "DecayRateUpdated", marketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketGoerliDecayRateUpdated) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "DecayRateUpdated", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseDecayRateUpdated is a log parse operation binding the contract event 0x8a1ed33cd71d1533eadd1d4eb0ea2ae64da7d343cb2a932fdf135f345264e2b5. -// -// Solidity: event DecayRateUpdated(uint128 indexed marketId, uint256 rate) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) ParseDecayRateUpdated(log types.Log) (*SpotMarketGoerliDecayRateUpdated, error) { - event := new(SpotMarketGoerliDecayRateUpdated) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "DecayRateUpdated", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketGoerliFeatureFlagAllowAllSetIterator is returned from FilterFeatureFlagAllowAllSet and is used to iterate over the raw logs and unpacked data for FeatureFlagAllowAllSet events raised by the SpotMarketGoerli contract. -type SpotMarketGoerliFeatureFlagAllowAllSetIterator struct { - Event *SpotMarketGoerliFeatureFlagAllowAllSet // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketGoerliFeatureFlagAllowAllSetIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliFeatureFlagAllowAllSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliFeatureFlagAllowAllSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketGoerliFeatureFlagAllowAllSetIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketGoerliFeatureFlagAllowAllSetIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketGoerliFeatureFlagAllowAllSet represents a FeatureFlagAllowAllSet event raised by the SpotMarketGoerli contract. -type SpotMarketGoerliFeatureFlagAllowAllSet struct { - Feature [32]byte - AllowAll bool - Raw types.Log // Blockchain specific contextual infos -} - -// FilterFeatureFlagAllowAllSet is a free log retrieval operation binding the contract event 0xa806035d8c8de7cd43725250d3fbf9ee7abe3b99ffb892897913d8a21721121d. -// -// Solidity: event FeatureFlagAllowAllSet(bytes32 indexed feature, bool allowAll) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) FilterFeatureFlagAllowAllSet(opts *bind.FilterOpts, feature [][32]byte) (*SpotMarketGoerliFeatureFlagAllowAllSetIterator, error) { - - var featureRule []interface{} - for _, featureItem := range feature { - featureRule = append(featureRule, featureItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.FilterLogs(opts, "FeatureFlagAllowAllSet", featureRule) - if err != nil { - return nil, err - } - return &SpotMarketGoerliFeatureFlagAllowAllSetIterator{contract: _SpotMarketGoerli.contract, event: "FeatureFlagAllowAllSet", logs: logs, sub: sub}, nil -} - -// WatchFeatureFlagAllowAllSet is a free log subscription operation binding the contract event 0xa806035d8c8de7cd43725250d3fbf9ee7abe3b99ffb892897913d8a21721121d. -// -// Solidity: event FeatureFlagAllowAllSet(bytes32 indexed feature, bool allowAll) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) WatchFeatureFlagAllowAllSet(opts *bind.WatchOpts, sink chan<- *SpotMarketGoerliFeatureFlagAllowAllSet, feature [][32]byte) (event.Subscription, error) { - - var featureRule []interface{} - for _, featureItem := range feature { - featureRule = append(featureRule, featureItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.WatchLogs(opts, "FeatureFlagAllowAllSet", featureRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketGoerliFeatureFlagAllowAllSet) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "FeatureFlagAllowAllSet", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseFeatureFlagAllowAllSet is a log parse operation binding the contract event 0xa806035d8c8de7cd43725250d3fbf9ee7abe3b99ffb892897913d8a21721121d. -// -// Solidity: event FeatureFlagAllowAllSet(bytes32 indexed feature, bool allowAll) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) ParseFeatureFlagAllowAllSet(log types.Log) (*SpotMarketGoerliFeatureFlagAllowAllSet, error) { - event := new(SpotMarketGoerliFeatureFlagAllowAllSet) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "FeatureFlagAllowAllSet", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketGoerliFeatureFlagAllowlistAddedIterator is returned from FilterFeatureFlagAllowlistAdded and is used to iterate over the raw logs and unpacked data for FeatureFlagAllowlistAdded events raised by the SpotMarketGoerli contract. -type SpotMarketGoerliFeatureFlagAllowlistAddedIterator struct { - Event *SpotMarketGoerliFeatureFlagAllowlistAdded // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketGoerliFeatureFlagAllowlistAddedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliFeatureFlagAllowlistAdded) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliFeatureFlagAllowlistAdded) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketGoerliFeatureFlagAllowlistAddedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketGoerliFeatureFlagAllowlistAddedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketGoerliFeatureFlagAllowlistAdded represents a FeatureFlagAllowlistAdded event raised by the SpotMarketGoerli contract. -type SpotMarketGoerliFeatureFlagAllowlistAdded struct { - Feature [32]byte - Account common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterFeatureFlagAllowlistAdded is a free log retrieval operation binding the contract event 0x30b9b4104e2fb00b4f980e414dcd828e691c8fcb286f0c73d7267c3a2de49383. -// -// Solidity: event FeatureFlagAllowlistAdded(bytes32 indexed feature, address account) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) FilterFeatureFlagAllowlistAdded(opts *bind.FilterOpts, feature [][32]byte) (*SpotMarketGoerliFeatureFlagAllowlistAddedIterator, error) { - - var featureRule []interface{} - for _, featureItem := range feature { - featureRule = append(featureRule, featureItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.FilterLogs(opts, "FeatureFlagAllowlistAdded", featureRule) - if err != nil { - return nil, err - } - return &SpotMarketGoerliFeatureFlagAllowlistAddedIterator{contract: _SpotMarketGoerli.contract, event: "FeatureFlagAllowlistAdded", logs: logs, sub: sub}, nil -} - -// WatchFeatureFlagAllowlistAdded is a free log subscription operation binding the contract event 0x30b9b4104e2fb00b4f980e414dcd828e691c8fcb286f0c73d7267c3a2de49383. -// -// Solidity: event FeatureFlagAllowlistAdded(bytes32 indexed feature, address account) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) WatchFeatureFlagAllowlistAdded(opts *bind.WatchOpts, sink chan<- *SpotMarketGoerliFeatureFlagAllowlistAdded, feature [][32]byte) (event.Subscription, error) { - - var featureRule []interface{} - for _, featureItem := range feature { - featureRule = append(featureRule, featureItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.WatchLogs(opts, "FeatureFlagAllowlistAdded", featureRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketGoerliFeatureFlagAllowlistAdded) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "FeatureFlagAllowlistAdded", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseFeatureFlagAllowlistAdded is a log parse operation binding the contract event 0x30b9b4104e2fb00b4f980e414dcd828e691c8fcb286f0c73d7267c3a2de49383. -// -// Solidity: event FeatureFlagAllowlistAdded(bytes32 indexed feature, address account) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) ParseFeatureFlagAllowlistAdded(log types.Log) (*SpotMarketGoerliFeatureFlagAllowlistAdded, error) { - event := new(SpotMarketGoerliFeatureFlagAllowlistAdded) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "FeatureFlagAllowlistAdded", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketGoerliFeatureFlagAllowlistRemovedIterator is returned from FilterFeatureFlagAllowlistRemoved and is used to iterate over the raw logs and unpacked data for FeatureFlagAllowlistRemoved events raised by the SpotMarketGoerli contract. -type SpotMarketGoerliFeatureFlagAllowlistRemovedIterator struct { - Event *SpotMarketGoerliFeatureFlagAllowlistRemoved // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketGoerliFeatureFlagAllowlistRemovedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliFeatureFlagAllowlistRemoved) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliFeatureFlagAllowlistRemoved) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketGoerliFeatureFlagAllowlistRemovedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketGoerliFeatureFlagAllowlistRemovedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketGoerliFeatureFlagAllowlistRemoved represents a FeatureFlagAllowlistRemoved event raised by the SpotMarketGoerli contract. -type SpotMarketGoerliFeatureFlagAllowlistRemoved struct { - Feature [32]byte - Account common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterFeatureFlagAllowlistRemoved is a free log retrieval operation binding the contract event 0xb44a47e11880cc865e8ea382561e406dea8c895366c58e3908f05708b2880890. -// -// Solidity: event FeatureFlagAllowlistRemoved(bytes32 indexed feature, address account) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) FilterFeatureFlagAllowlistRemoved(opts *bind.FilterOpts, feature [][32]byte) (*SpotMarketGoerliFeatureFlagAllowlistRemovedIterator, error) { - - var featureRule []interface{} - for _, featureItem := range feature { - featureRule = append(featureRule, featureItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.FilterLogs(opts, "FeatureFlagAllowlistRemoved", featureRule) - if err != nil { - return nil, err - } - return &SpotMarketGoerliFeatureFlagAllowlistRemovedIterator{contract: _SpotMarketGoerli.contract, event: "FeatureFlagAllowlistRemoved", logs: logs, sub: sub}, nil -} - -// WatchFeatureFlagAllowlistRemoved is a free log subscription operation binding the contract event 0xb44a47e11880cc865e8ea382561e406dea8c895366c58e3908f05708b2880890. -// -// Solidity: event FeatureFlagAllowlistRemoved(bytes32 indexed feature, address account) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) WatchFeatureFlagAllowlistRemoved(opts *bind.WatchOpts, sink chan<- *SpotMarketGoerliFeatureFlagAllowlistRemoved, feature [][32]byte) (event.Subscription, error) { - - var featureRule []interface{} - for _, featureItem := range feature { - featureRule = append(featureRule, featureItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.WatchLogs(opts, "FeatureFlagAllowlistRemoved", featureRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketGoerliFeatureFlagAllowlistRemoved) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "FeatureFlagAllowlistRemoved", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseFeatureFlagAllowlistRemoved is a log parse operation binding the contract event 0xb44a47e11880cc865e8ea382561e406dea8c895366c58e3908f05708b2880890. -// -// Solidity: event FeatureFlagAllowlistRemoved(bytes32 indexed feature, address account) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) ParseFeatureFlagAllowlistRemoved(log types.Log) (*SpotMarketGoerliFeatureFlagAllowlistRemoved, error) { - event := new(SpotMarketGoerliFeatureFlagAllowlistRemoved) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "FeatureFlagAllowlistRemoved", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketGoerliFeatureFlagDeniersResetIterator is returned from FilterFeatureFlagDeniersReset and is used to iterate over the raw logs and unpacked data for FeatureFlagDeniersReset events raised by the SpotMarketGoerli contract. -type SpotMarketGoerliFeatureFlagDeniersResetIterator struct { - Event *SpotMarketGoerliFeatureFlagDeniersReset // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketGoerliFeatureFlagDeniersResetIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliFeatureFlagDeniersReset) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliFeatureFlagDeniersReset) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketGoerliFeatureFlagDeniersResetIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketGoerliFeatureFlagDeniersResetIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketGoerliFeatureFlagDeniersReset represents a FeatureFlagDeniersReset event raised by the SpotMarketGoerli contract. -type SpotMarketGoerliFeatureFlagDeniersReset struct { - Feature [32]byte - Deniers []common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterFeatureFlagDeniersReset is a free log retrieval operation binding the contract event 0x74d48d0b51a70680130c00decd06b4d536fbb3cee16a3b0bdd2309c264dcbd13. -// -// Solidity: event FeatureFlagDeniersReset(bytes32 indexed feature, address[] deniers) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) FilterFeatureFlagDeniersReset(opts *bind.FilterOpts, feature [][32]byte) (*SpotMarketGoerliFeatureFlagDeniersResetIterator, error) { - - var featureRule []interface{} - for _, featureItem := range feature { - featureRule = append(featureRule, featureItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.FilterLogs(opts, "FeatureFlagDeniersReset", featureRule) - if err != nil { - return nil, err - } - return &SpotMarketGoerliFeatureFlagDeniersResetIterator{contract: _SpotMarketGoerli.contract, event: "FeatureFlagDeniersReset", logs: logs, sub: sub}, nil -} - -// WatchFeatureFlagDeniersReset is a free log subscription operation binding the contract event 0x74d48d0b51a70680130c00decd06b4d536fbb3cee16a3b0bdd2309c264dcbd13. -// -// Solidity: event FeatureFlagDeniersReset(bytes32 indexed feature, address[] deniers) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) WatchFeatureFlagDeniersReset(opts *bind.WatchOpts, sink chan<- *SpotMarketGoerliFeatureFlagDeniersReset, feature [][32]byte) (event.Subscription, error) { - - var featureRule []interface{} - for _, featureItem := range feature { - featureRule = append(featureRule, featureItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.WatchLogs(opts, "FeatureFlagDeniersReset", featureRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketGoerliFeatureFlagDeniersReset) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "FeatureFlagDeniersReset", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseFeatureFlagDeniersReset is a log parse operation binding the contract event 0x74d48d0b51a70680130c00decd06b4d536fbb3cee16a3b0bdd2309c264dcbd13. -// -// Solidity: event FeatureFlagDeniersReset(bytes32 indexed feature, address[] deniers) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) ParseFeatureFlagDeniersReset(log types.Log) (*SpotMarketGoerliFeatureFlagDeniersReset, error) { - event := new(SpotMarketGoerliFeatureFlagDeniersReset) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "FeatureFlagDeniersReset", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketGoerliFeatureFlagDenyAllSetIterator is returned from FilterFeatureFlagDenyAllSet and is used to iterate over the raw logs and unpacked data for FeatureFlagDenyAllSet events raised by the SpotMarketGoerli contract. -type SpotMarketGoerliFeatureFlagDenyAllSetIterator struct { - Event *SpotMarketGoerliFeatureFlagDenyAllSet // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketGoerliFeatureFlagDenyAllSetIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliFeatureFlagDenyAllSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliFeatureFlagDenyAllSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketGoerliFeatureFlagDenyAllSetIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketGoerliFeatureFlagDenyAllSetIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketGoerliFeatureFlagDenyAllSet represents a FeatureFlagDenyAllSet event raised by the SpotMarketGoerli contract. -type SpotMarketGoerliFeatureFlagDenyAllSet struct { - Feature [32]byte - DenyAll bool - Raw types.Log // Blockchain specific contextual infos -} - -// FilterFeatureFlagDenyAllSet is a free log retrieval operation binding the contract event 0x97f76d2e384948e28ddd4280a4e76e8600acc328a0c0910c93682a0fccc02018. -// -// Solidity: event FeatureFlagDenyAllSet(bytes32 indexed feature, bool denyAll) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) FilterFeatureFlagDenyAllSet(opts *bind.FilterOpts, feature [][32]byte) (*SpotMarketGoerliFeatureFlagDenyAllSetIterator, error) { - - var featureRule []interface{} - for _, featureItem := range feature { - featureRule = append(featureRule, featureItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.FilterLogs(opts, "FeatureFlagDenyAllSet", featureRule) - if err != nil { - return nil, err - } - return &SpotMarketGoerliFeatureFlagDenyAllSetIterator{contract: _SpotMarketGoerli.contract, event: "FeatureFlagDenyAllSet", logs: logs, sub: sub}, nil -} - -// WatchFeatureFlagDenyAllSet is a free log subscription operation binding the contract event 0x97f76d2e384948e28ddd4280a4e76e8600acc328a0c0910c93682a0fccc02018. -// -// Solidity: event FeatureFlagDenyAllSet(bytes32 indexed feature, bool denyAll) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) WatchFeatureFlagDenyAllSet(opts *bind.WatchOpts, sink chan<- *SpotMarketGoerliFeatureFlagDenyAllSet, feature [][32]byte) (event.Subscription, error) { - - var featureRule []interface{} - for _, featureItem := range feature { - featureRule = append(featureRule, featureItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.WatchLogs(opts, "FeatureFlagDenyAllSet", featureRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketGoerliFeatureFlagDenyAllSet) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "FeatureFlagDenyAllSet", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseFeatureFlagDenyAllSet is a log parse operation binding the contract event 0x97f76d2e384948e28ddd4280a4e76e8600acc328a0c0910c93682a0fccc02018. -// -// Solidity: event FeatureFlagDenyAllSet(bytes32 indexed feature, bool denyAll) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) ParseFeatureFlagDenyAllSet(log types.Log) (*SpotMarketGoerliFeatureFlagDenyAllSet, error) { - event := new(SpotMarketGoerliFeatureFlagDenyAllSet) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "FeatureFlagDenyAllSet", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketGoerliFeeCollectorSetIterator is returned from FilterFeeCollectorSet and is used to iterate over the raw logs and unpacked data for FeeCollectorSet events raised by the SpotMarketGoerli contract. -type SpotMarketGoerliFeeCollectorSetIterator struct { - Event *SpotMarketGoerliFeeCollectorSet // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketGoerliFeeCollectorSetIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliFeeCollectorSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliFeeCollectorSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketGoerliFeeCollectorSetIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketGoerliFeeCollectorSetIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketGoerliFeeCollectorSet represents a FeeCollectorSet event raised by the SpotMarketGoerli contract. -type SpotMarketGoerliFeeCollectorSet struct { - SynthMarketId *big.Int - FeeCollector common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterFeeCollectorSet is a free log retrieval operation binding the contract event 0x9559a9b7e14bf53553c17859be245a108350185ec859ec690012b13b820b7ef4. -// -// Solidity: event FeeCollectorSet(uint256 indexed synthMarketId, address feeCollector) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) FilterFeeCollectorSet(opts *bind.FilterOpts, synthMarketId []*big.Int) (*SpotMarketGoerliFeeCollectorSetIterator, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.FilterLogs(opts, "FeeCollectorSet", synthMarketIdRule) - if err != nil { - return nil, err - } - return &SpotMarketGoerliFeeCollectorSetIterator{contract: _SpotMarketGoerli.contract, event: "FeeCollectorSet", logs: logs, sub: sub}, nil -} - -// WatchFeeCollectorSet is a free log subscription operation binding the contract event 0x9559a9b7e14bf53553c17859be245a108350185ec859ec690012b13b820b7ef4. -// -// Solidity: event FeeCollectorSet(uint256 indexed synthMarketId, address feeCollector) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) WatchFeeCollectorSet(opts *bind.WatchOpts, sink chan<- *SpotMarketGoerliFeeCollectorSet, synthMarketId []*big.Int) (event.Subscription, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.WatchLogs(opts, "FeeCollectorSet", synthMarketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketGoerliFeeCollectorSet) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "FeeCollectorSet", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseFeeCollectorSet is a log parse operation binding the contract event 0x9559a9b7e14bf53553c17859be245a108350185ec859ec690012b13b820b7ef4. -// -// Solidity: event FeeCollectorSet(uint256 indexed synthMarketId, address feeCollector) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) ParseFeeCollectorSet(log types.Log) (*SpotMarketGoerliFeeCollectorSet, error) { - event := new(SpotMarketGoerliFeeCollectorSet) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "FeeCollectorSet", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketGoerliMarketNominationRenouncedIterator is returned from FilterMarketNominationRenounced and is used to iterate over the raw logs and unpacked data for MarketNominationRenounced events raised by the SpotMarketGoerli contract. -type SpotMarketGoerliMarketNominationRenouncedIterator struct { - Event *SpotMarketGoerliMarketNominationRenounced // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketGoerliMarketNominationRenouncedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliMarketNominationRenounced) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliMarketNominationRenounced) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketGoerliMarketNominationRenouncedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketGoerliMarketNominationRenouncedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketGoerliMarketNominationRenounced represents a MarketNominationRenounced event raised by the SpotMarketGoerli contract. -type SpotMarketGoerliMarketNominationRenounced struct { - MarketId *big.Int - Nominee common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterMarketNominationRenounced is a free log retrieval operation binding the contract event 0xf5b87e3c7e0caa8e0d233591fff85e764ebc73d5c7027cce729fd4beab04c2b6. -// -// Solidity: event MarketNominationRenounced(uint128 indexed marketId, address nominee) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) FilterMarketNominationRenounced(opts *bind.FilterOpts, marketId []*big.Int) (*SpotMarketGoerliMarketNominationRenouncedIterator, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.FilterLogs(opts, "MarketNominationRenounced", marketIdRule) - if err != nil { - return nil, err - } - return &SpotMarketGoerliMarketNominationRenouncedIterator{contract: _SpotMarketGoerli.contract, event: "MarketNominationRenounced", logs: logs, sub: sub}, nil -} - -// WatchMarketNominationRenounced is a free log subscription operation binding the contract event 0xf5b87e3c7e0caa8e0d233591fff85e764ebc73d5c7027cce729fd4beab04c2b6. -// -// Solidity: event MarketNominationRenounced(uint128 indexed marketId, address nominee) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) WatchMarketNominationRenounced(opts *bind.WatchOpts, sink chan<- *SpotMarketGoerliMarketNominationRenounced, marketId []*big.Int) (event.Subscription, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.WatchLogs(opts, "MarketNominationRenounced", marketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketGoerliMarketNominationRenounced) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "MarketNominationRenounced", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseMarketNominationRenounced is a log parse operation binding the contract event 0xf5b87e3c7e0caa8e0d233591fff85e764ebc73d5c7027cce729fd4beab04c2b6. -// -// Solidity: event MarketNominationRenounced(uint128 indexed marketId, address nominee) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) ParseMarketNominationRenounced(log types.Log) (*SpotMarketGoerliMarketNominationRenounced, error) { - event := new(SpotMarketGoerliMarketNominationRenounced) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "MarketNominationRenounced", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketGoerliMarketOwnerChangedIterator is returned from FilterMarketOwnerChanged and is used to iterate over the raw logs and unpacked data for MarketOwnerChanged events raised by the SpotMarketGoerli contract. -type SpotMarketGoerliMarketOwnerChangedIterator struct { - Event *SpotMarketGoerliMarketOwnerChanged // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketGoerliMarketOwnerChangedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliMarketOwnerChanged) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliMarketOwnerChanged) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketGoerliMarketOwnerChangedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketGoerliMarketOwnerChangedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketGoerliMarketOwnerChanged represents a MarketOwnerChanged event raised by the SpotMarketGoerli contract. -type SpotMarketGoerliMarketOwnerChanged struct { - MarketId *big.Int - OldOwner common.Address - NewOwner common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterMarketOwnerChanged is a free log retrieval operation binding the contract event 0xe73c996387b656d1e0ea2866c854ed68122ce4e4eea51d6af012938b3c7ff52f. -// -// Solidity: event MarketOwnerChanged(uint128 indexed marketId, address oldOwner, address newOwner) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) FilterMarketOwnerChanged(opts *bind.FilterOpts, marketId []*big.Int) (*SpotMarketGoerliMarketOwnerChangedIterator, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.FilterLogs(opts, "MarketOwnerChanged", marketIdRule) - if err != nil { - return nil, err - } - return &SpotMarketGoerliMarketOwnerChangedIterator{contract: _SpotMarketGoerli.contract, event: "MarketOwnerChanged", logs: logs, sub: sub}, nil -} - -// WatchMarketOwnerChanged is a free log subscription operation binding the contract event 0xe73c996387b656d1e0ea2866c854ed68122ce4e4eea51d6af012938b3c7ff52f. -// -// Solidity: event MarketOwnerChanged(uint128 indexed marketId, address oldOwner, address newOwner) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) WatchMarketOwnerChanged(opts *bind.WatchOpts, sink chan<- *SpotMarketGoerliMarketOwnerChanged, marketId []*big.Int) (event.Subscription, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.WatchLogs(opts, "MarketOwnerChanged", marketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketGoerliMarketOwnerChanged) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "MarketOwnerChanged", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseMarketOwnerChanged is a log parse operation binding the contract event 0xe73c996387b656d1e0ea2866c854ed68122ce4e4eea51d6af012938b3c7ff52f. -// -// Solidity: event MarketOwnerChanged(uint128 indexed marketId, address oldOwner, address newOwner) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) ParseMarketOwnerChanged(log types.Log) (*SpotMarketGoerliMarketOwnerChanged, error) { - event := new(SpotMarketGoerliMarketOwnerChanged) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "MarketOwnerChanged", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketGoerliMarketOwnerNominatedIterator is returned from FilterMarketOwnerNominated and is used to iterate over the raw logs and unpacked data for MarketOwnerNominated events raised by the SpotMarketGoerli contract. -type SpotMarketGoerliMarketOwnerNominatedIterator struct { - Event *SpotMarketGoerliMarketOwnerNominated // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketGoerliMarketOwnerNominatedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliMarketOwnerNominated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliMarketOwnerNominated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketGoerliMarketOwnerNominatedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketGoerliMarketOwnerNominatedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketGoerliMarketOwnerNominated represents a MarketOwnerNominated event raised by the SpotMarketGoerli contract. -type SpotMarketGoerliMarketOwnerNominated struct { - MarketId *big.Int - NewOwner common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterMarketOwnerNominated is a free log retrieval operation binding the contract event 0x54605d90ee82d9b4318b0b4b479f3966976e44b94c6aff221c04f5294f85016b. -// -// Solidity: event MarketOwnerNominated(uint128 indexed marketId, address newOwner) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) FilterMarketOwnerNominated(opts *bind.FilterOpts, marketId []*big.Int) (*SpotMarketGoerliMarketOwnerNominatedIterator, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.FilterLogs(opts, "MarketOwnerNominated", marketIdRule) - if err != nil { - return nil, err - } - return &SpotMarketGoerliMarketOwnerNominatedIterator{contract: _SpotMarketGoerli.contract, event: "MarketOwnerNominated", logs: logs, sub: sub}, nil -} - -// WatchMarketOwnerNominated is a free log subscription operation binding the contract event 0x54605d90ee82d9b4318b0b4b479f3966976e44b94c6aff221c04f5294f85016b. -// -// Solidity: event MarketOwnerNominated(uint128 indexed marketId, address newOwner) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) WatchMarketOwnerNominated(opts *bind.WatchOpts, sink chan<- *SpotMarketGoerliMarketOwnerNominated, marketId []*big.Int) (event.Subscription, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.WatchLogs(opts, "MarketOwnerNominated", marketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketGoerliMarketOwnerNominated) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "MarketOwnerNominated", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseMarketOwnerNominated is a log parse operation binding the contract event 0x54605d90ee82d9b4318b0b4b479f3966976e44b94c6aff221c04f5294f85016b. -// -// Solidity: event MarketOwnerNominated(uint128 indexed marketId, address newOwner) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) ParseMarketOwnerNominated(log types.Log) (*SpotMarketGoerliMarketOwnerNominated, error) { - event := new(SpotMarketGoerliMarketOwnerNominated) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "MarketOwnerNominated", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketGoerliMarketSkewScaleSetIterator is returned from FilterMarketSkewScaleSet and is used to iterate over the raw logs and unpacked data for MarketSkewScaleSet events raised by the SpotMarketGoerli contract. -type SpotMarketGoerliMarketSkewScaleSetIterator struct { - Event *SpotMarketGoerliMarketSkewScaleSet // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketGoerliMarketSkewScaleSetIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliMarketSkewScaleSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliMarketSkewScaleSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketGoerliMarketSkewScaleSetIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketGoerliMarketSkewScaleSetIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketGoerliMarketSkewScaleSet represents a MarketSkewScaleSet event raised by the SpotMarketGoerli contract. -type SpotMarketGoerliMarketSkewScaleSet struct { - SynthMarketId *big.Int - SkewScale *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterMarketSkewScaleSet is a free log retrieval operation binding the contract event 0x786fdfd5a0e146d8f4878876a8439ff01436e5969b14682e12d07d7e926b157c. -// -// Solidity: event MarketSkewScaleSet(uint256 indexed synthMarketId, uint256 skewScale) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) FilterMarketSkewScaleSet(opts *bind.FilterOpts, synthMarketId []*big.Int) (*SpotMarketGoerliMarketSkewScaleSetIterator, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.FilterLogs(opts, "MarketSkewScaleSet", synthMarketIdRule) - if err != nil { - return nil, err - } - return &SpotMarketGoerliMarketSkewScaleSetIterator{contract: _SpotMarketGoerli.contract, event: "MarketSkewScaleSet", logs: logs, sub: sub}, nil -} - -// WatchMarketSkewScaleSet is a free log subscription operation binding the contract event 0x786fdfd5a0e146d8f4878876a8439ff01436e5969b14682e12d07d7e926b157c. -// -// Solidity: event MarketSkewScaleSet(uint256 indexed synthMarketId, uint256 skewScale) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) WatchMarketSkewScaleSet(opts *bind.WatchOpts, sink chan<- *SpotMarketGoerliMarketSkewScaleSet, synthMarketId []*big.Int) (event.Subscription, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.WatchLogs(opts, "MarketSkewScaleSet", synthMarketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketGoerliMarketSkewScaleSet) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "MarketSkewScaleSet", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseMarketSkewScaleSet is a log parse operation binding the contract event 0x786fdfd5a0e146d8f4878876a8439ff01436e5969b14682e12d07d7e926b157c. -// -// Solidity: event MarketSkewScaleSet(uint256 indexed synthMarketId, uint256 skewScale) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) ParseMarketSkewScaleSet(log types.Log) (*SpotMarketGoerliMarketSkewScaleSet, error) { - event := new(SpotMarketGoerliMarketSkewScaleSet) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "MarketSkewScaleSet", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketGoerliMarketUtilizationFeesSetIterator is returned from FilterMarketUtilizationFeesSet and is used to iterate over the raw logs and unpacked data for MarketUtilizationFeesSet events raised by the SpotMarketGoerli contract. -type SpotMarketGoerliMarketUtilizationFeesSetIterator struct { - Event *SpotMarketGoerliMarketUtilizationFeesSet // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketGoerliMarketUtilizationFeesSetIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliMarketUtilizationFeesSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliMarketUtilizationFeesSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketGoerliMarketUtilizationFeesSetIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketGoerliMarketUtilizationFeesSetIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketGoerliMarketUtilizationFeesSet represents a MarketUtilizationFeesSet event raised by the SpotMarketGoerli contract. -type SpotMarketGoerliMarketUtilizationFeesSet struct { - SynthMarketId *big.Int - UtilizationFeeRate *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterMarketUtilizationFeesSet is a free log retrieval operation binding the contract event 0x83dfad56ac61e49feb43345b8c73b6d45eb121decc66b1709ca0413b31c64f63. -// -// Solidity: event MarketUtilizationFeesSet(uint256 indexed synthMarketId, uint256 utilizationFeeRate) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) FilterMarketUtilizationFeesSet(opts *bind.FilterOpts, synthMarketId []*big.Int) (*SpotMarketGoerliMarketUtilizationFeesSetIterator, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.FilterLogs(opts, "MarketUtilizationFeesSet", synthMarketIdRule) - if err != nil { - return nil, err - } - return &SpotMarketGoerliMarketUtilizationFeesSetIterator{contract: _SpotMarketGoerli.contract, event: "MarketUtilizationFeesSet", logs: logs, sub: sub}, nil -} - -// WatchMarketUtilizationFeesSet is a free log subscription operation binding the contract event 0x83dfad56ac61e49feb43345b8c73b6d45eb121decc66b1709ca0413b31c64f63. -// -// Solidity: event MarketUtilizationFeesSet(uint256 indexed synthMarketId, uint256 utilizationFeeRate) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) WatchMarketUtilizationFeesSet(opts *bind.WatchOpts, sink chan<- *SpotMarketGoerliMarketUtilizationFeesSet, synthMarketId []*big.Int) (event.Subscription, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.WatchLogs(opts, "MarketUtilizationFeesSet", synthMarketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketGoerliMarketUtilizationFeesSet) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "MarketUtilizationFeesSet", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseMarketUtilizationFeesSet is a log parse operation binding the contract event 0x83dfad56ac61e49feb43345b8c73b6d45eb121decc66b1709ca0413b31c64f63. -// -// Solidity: event MarketUtilizationFeesSet(uint256 indexed synthMarketId, uint256 utilizationFeeRate) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) ParseMarketUtilizationFeesSet(log types.Log) (*SpotMarketGoerliMarketUtilizationFeesSet, error) { - event := new(SpotMarketGoerliMarketUtilizationFeesSet) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "MarketUtilizationFeesSet", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketGoerliOrderCancelledIterator is returned from FilterOrderCancelled and is used to iterate over the raw logs and unpacked data for OrderCancelled events raised by the SpotMarketGoerli contract. -type SpotMarketGoerliOrderCancelledIterator struct { - Event *SpotMarketGoerliOrderCancelled // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketGoerliOrderCancelledIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliOrderCancelled) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliOrderCancelled) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketGoerliOrderCancelledIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketGoerliOrderCancelledIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketGoerliOrderCancelled represents a OrderCancelled event raised by the SpotMarketGoerli contract. -type SpotMarketGoerliOrderCancelled struct { - MarketId *big.Int - AsyncOrderId *big.Int - AsyncOrderClaim AsyncOrderClaimData - Sender common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterOrderCancelled is a free log retrieval operation binding the contract event 0xa57ffc5057d10e88a0dd7713d14130f9638d680af94401e7f1f4fba44a3ad5e2. -// -// Solidity: event OrderCancelled(uint128 indexed marketId, uint128 indexed asyncOrderId, (uint128,address,uint8,uint256,uint256,uint256,uint256,uint256,address) asyncOrderClaim, address indexed sender) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) FilterOrderCancelled(opts *bind.FilterOpts, marketId []*big.Int, asyncOrderId []*big.Int, sender []common.Address) (*SpotMarketGoerliOrderCancelledIterator, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - var asyncOrderIdRule []interface{} - for _, asyncOrderIdItem := range asyncOrderId { - asyncOrderIdRule = append(asyncOrderIdRule, asyncOrderIdItem) - } - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.FilterLogs(opts, "OrderCancelled", marketIdRule, asyncOrderIdRule, senderRule) - if err != nil { - return nil, err - } - return &SpotMarketGoerliOrderCancelledIterator{contract: _SpotMarketGoerli.contract, event: "OrderCancelled", logs: logs, sub: sub}, nil -} - -// WatchOrderCancelled is a free log subscription operation binding the contract event 0xa57ffc5057d10e88a0dd7713d14130f9638d680af94401e7f1f4fba44a3ad5e2. -// -// Solidity: event OrderCancelled(uint128 indexed marketId, uint128 indexed asyncOrderId, (uint128,address,uint8,uint256,uint256,uint256,uint256,uint256,address) asyncOrderClaim, address indexed sender) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) WatchOrderCancelled(opts *bind.WatchOpts, sink chan<- *SpotMarketGoerliOrderCancelled, marketId []*big.Int, asyncOrderId []*big.Int, sender []common.Address) (event.Subscription, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - var asyncOrderIdRule []interface{} - for _, asyncOrderIdItem := range asyncOrderId { - asyncOrderIdRule = append(asyncOrderIdRule, asyncOrderIdItem) - } - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.WatchLogs(opts, "OrderCancelled", marketIdRule, asyncOrderIdRule, senderRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketGoerliOrderCancelled) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "OrderCancelled", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseOrderCancelled is a log parse operation binding the contract event 0xa57ffc5057d10e88a0dd7713d14130f9638d680af94401e7f1f4fba44a3ad5e2. -// -// Solidity: event OrderCancelled(uint128 indexed marketId, uint128 indexed asyncOrderId, (uint128,address,uint8,uint256,uint256,uint256,uint256,uint256,address) asyncOrderClaim, address indexed sender) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) ParseOrderCancelled(log types.Log) (*SpotMarketGoerliOrderCancelled, error) { - event := new(SpotMarketGoerliOrderCancelled) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "OrderCancelled", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketGoerliOrderCommittedIterator is returned from FilterOrderCommitted and is used to iterate over the raw logs and unpacked data for OrderCommitted events raised by the SpotMarketGoerli contract. -type SpotMarketGoerliOrderCommittedIterator struct { - Event *SpotMarketGoerliOrderCommitted // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketGoerliOrderCommittedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliOrderCommitted) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliOrderCommitted) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketGoerliOrderCommittedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketGoerliOrderCommittedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketGoerliOrderCommitted represents a OrderCommitted event raised by the SpotMarketGoerli contract. -type SpotMarketGoerliOrderCommitted struct { - MarketId *big.Int - OrderType uint8 - AmountProvided *big.Int - AsyncOrderId *big.Int - Sender common.Address - Referrer common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterOrderCommitted is a free log retrieval operation binding the contract event 0xb26c216bf0a127dddc2431e4d8ca845513c8e6fb80e754296e7afab1ce92722f. -// -// Solidity: event OrderCommitted(uint128 indexed marketId, uint8 indexed orderType, uint256 amountProvided, uint128 asyncOrderId, address indexed sender, address referrer) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) FilterOrderCommitted(opts *bind.FilterOpts, marketId []*big.Int, orderType []uint8, sender []common.Address) (*SpotMarketGoerliOrderCommittedIterator, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - var orderTypeRule []interface{} - for _, orderTypeItem := range orderType { - orderTypeRule = append(orderTypeRule, orderTypeItem) - } - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.FilterLogs(opts, "OrderCommitted", marketIdRule, orderTypeRule, senderRule) - if err != nil { - return nil, err - } - return &SpotMarketGoerliOrderCommittedIterator{contract: _SpotMarketGoerli.contract, event: "OrderCommitted", logs: logs, sub: sub}, nil -} - -// WatchOrderCommitted is a free log subscription operation binding the contract event 0xb26c216bf0a127dddc2431e4d8ca845513c8e6fb80e754296e7afab1ce92722f. -// -// Solidity: event OrderCommitted(uint128 indexed marketId, uint8 indexed orderType, uint256 amountProvided, uint128 asyncOrderId, address indexed sender, address referrer) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) WatchOrderCommitted(opts *bind.WatchOpts, sink chan<- *SpotMarketGoerliOrderCommitted, marketId []*big.Int, orderType []uint8, sender []common.Address) (event.Subscription, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - var orderTypeRule []interface{} - for _, orderTypeItem := range orderType { - orderTypeRule = append(orderTypeRule, orderTypeItem) - } - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.WatchLogs(opts, "OrderCommitted", marketIdRule, orderTypeRule, senderRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketGoerliOrderCommitted) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "OrderCommitted", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseOrderCommitted is a log parse operation binding the contract event 0xb26c216bf0a127dddc2431e4d8ca845513c8e6fb80e754296e7afab1ce92722f. -// -// Solidity: event OrderCommitted(uint128 indexed marketId, uint8 indexed orderType, uint256 amountProvided, uint128 asyncOrderId, address indexed sender, address referrer) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) ParseOrderCommitted(log types.Log) (*SpotMarketGoerliOrderCommitted, error) { - event := new(SpotMarketGoerliOrderCommitted) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "OrderCommitted", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketGoerliOrderSettledIterator is returned from FilterOrderSettled and is used to iterate over the raw logs and unpacked data for OrderSettled events raised by the SpotMarketGoerli contract. -type SpotMarketGoerliOrderSettledIterator struct { - Event *SpotMarketGoerliOrderSettled // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketGoerliOrderSettledIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliOrderSettled) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliOrderSettled) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketGoerliOrderSettledIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketGoerliOrderSettledIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketGoerliOrderSettled represents a OrderSettled event raised by the SpotMarketGoerli contract. -type SpotMarketGoerliOrderSettled struct { - MarketId *big.Int - AsyncOrderId *big.Int - FinalOrderAmount *big.Int - Fees OrderFeesData - CollectedFees *big.Int - Settler common.Address - Price *big.Int - OrderType uint8 - Raw types.Log // Blockchain specific contextual infos -} - -// FilterOrderSettled is a free log retrieval operation binding the contract event 0x6c5e8ff282d52fb9f532408e86d4afc62fc1f89c749a8ddca7a6f34c0439a183. -// -// Solidity: event OrderSettled(uint128 indexed marketId, uint128 indexed asyncOrderId, uint256 finalOrderAmount, (uint256,uint256,int256,int256) fees, uint256 collectedFees, address indexed settler, uint256 price, uint8 orderType) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) FilterOrderSettled(opts *bind.FilterOpts, marketId []*big.Int, asyncOrderId []*big.Int, settler []common.Address) (*SpotMarketGoerliOrderSettledIterator, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - var asyncOrderIdRule []interface{} - for _, asyncOrderIdItem := range asyncOrderId { - asyncOrderIdRule = append(asyncOrderIdRule, asyncOrderIdItem) - } - - var settlerRule []interface{} - for _, settlerItem := range settler { - settlerRule = append(settlerRule, settlerItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.FilterLogs(opts, "OrderSettled", marketIdRule, asyncOrderIdRule, settlerRule) - if err != nil { - return nil, err - } - return &SpotMarketGoerliOrderSettledIterator{contract: _SpotMarketGoerli.contract, event: "OrderSettled", logs: logs, sub: sub}, nil -} - -// WatchOrderSettled is a free log subscription operation binding the contract event 0x6c5e8ff282d52fb9f532408e86d4afc62fc1f89c749a8ddca7a6f34c0439a183. -// -// Solidity: event OrderSettled(uint128 indexed marketId, uint128 indexed asyncOrderId, uint256 finalOrderAmount, (uint256,uint256,int256,int256) fees, uint256 collectedFees, address indexed settler, uint256 price, uint8 orderType) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) WatchOrderSettled(opts *bind.WatchOpts, sink chan<- *SpotMarketGoerliOrderSettled, marketId []*big.Int, asyncOrderId []*big.Int, settler []common.Address) (event.Subscription, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - var asyncOrderIdRule []interface{} - for _, asyncOrderIdItem := range asyncOrderId { - asyncOrderIdRule = append(asyncOrderIdRule, asyncOrderIdItem) - } - - var settlerRule []interface{} - for _, settlerItem := range settler { - settlerRule = append(settlerRule, settlerItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.WatchLogs(opts, "OrderSettled", marketIdRule, asyncOrderIdRule, settlerRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketGoerliOrderSettled) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "OrderSettled", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseOrderSettled is a log parse operation binding the contract event 0x6c5e8ff282d52fb9f532408e86d4afc62fc1f89c749a8ddca7a6f34c0439a183. -// -// Solidity: event OrderSettled(uint128 indexed marketId, uint128 indexed asyncOrderId, uint256 finalOrderAmount, (uint256,uint256,int256,int256) fees, uint256 collectedFees, address indexed settler, uint256 price, uint8 orderType) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) ParseOrderSettled(log types.Log) (*SpotMarketGoerliOrderSettled, error) { - event := new(SpotMarketGoerliOrderSettled) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "OrderSettled", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketGoerliOwnerChangedIterator is returned from FilterOwnerChanged and is used to iterate over the raw logs and unpacked data for OwnerChanged events raised by the SpotMarketGoerli contract. -type SpotMarketGoerliOwnerChangedIterator struct { - Event *SpotMarketGoerliOwnerChanged // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketGoerliOwnerChangedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliOwnerChanged) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliOwnerChanged) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketGoerliOwnerChangedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketGoerliOwnerChangedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketGoerliOwnerChanged represents a OwnerChanged event raised by the SpotMarketGoerli contract. -type SpotMarketGoerliOwnerChanged struct { - OldOwner common.Address - NewOwner common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterOwnerChanged is a free log retrieval operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c. -// -// Solidity: event OwnerChanged(address oldOwner, address newOwner) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) FilterOwnerChanged(opts *bind.FilterOpts) (*SpotMarketGoerliOwnerChangedIterator, error) { - - logs, sub, err := _SpotMarketGoerli.contract.FilterLogs(opts, "OwnerChanged") - if err != nil { - return nil, err - } - return &SpotMarketGoerliOwnerChangedIterator{contract: _SpotMarketGoerli.contract, event: "OwnerChanged", logs: logs, sub: sub}, nil -} - -// WatchOwnerChanged is a free log subscription operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c. -// -// Solidity: event OwnerChanged(address oldOwner, address newOwner) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) WatchOwnerChanged(opts *bind.WatchOpts, sink chan<- *SpotMarketGoerliOwnerChanged) (event.Subscription, error) { - - logs, sub, err := _SpotMarketGoerli.contract.WatchLogs(opts, "OwnerChanged") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketGoerliOwnerChanged) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "OwnerChanged", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseOwnerChanged is a log parse operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c. -// -// Solidity: event OwnerChanged(address oldOwner, address newOwner) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) ParseOwnerChanged(log types.Log) (*SpotMarketGoerliOwnerChanged, error) { - event := new(SpotMarketGoerliOwnerChanged) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "OwnerChanged", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketGoerliOwnerNominatedIterator is returned from FilterOwnerNominated and is used to iterate over the raw logs and unpacked data for OwnerNominated events raised by the SpotMarketGoerli contract. -type SpotMarketGoerliOwnerNominatedIterator struct { - Event *SpotMarketGoerliOwnerNominated // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketGoerliOwnerNominatedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliOwnerNominated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliOwnerNominated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketGoerliOwnerNominatedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketGoerliOwnerNominatedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketGoerliOwnerNominated represents a OwnerNominated event raised by the SpotMarketGoerli contract. -type SpotMarketGoerliOwnerNominated struct { - NewOwner common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterOwnerNominated is a free log retrieval operation binding the contract event 0x906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22. -// -// Solidity: event OwnerNominated(address newOwner) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) FilterOwnerNominated(opts *bind.FilterOpts) (*SpotMarketGoerliOwnerNominatedIterator, error) { - - logs, sub, err := _SpotMarketGoerli.contract.FilterLogs(opts, "OwnerNominated") - if err != nil { - return nil, err - } - return &SpotMarketGoerliOwnerNominatedIterator{contract: _SpotMarketGoerli.contract, event: "OwnerNominated", logs: logs, sub: sub}, nil -} - -// WatchOwnerNominated is a free log subscription operation binding the contract event 0x906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22. -// -// Solidity: event OwnerNominated(address newOwner) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) WatchOwnerNominated(opts *bind.WatchOpts, sink chan<- *SpotMarketGoerliOwnerNominated) (event.Subscription, error) { - - logs, sub, err := _SpotMarketGoerli.contract.WatchLogs(opts, "OwnerNominated") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketGoerliOwnerNominated) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "OwnerNominated", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseOwnerNominated is a log parse operation binding the contract event 0x906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22. -// -// Solidity: event OwnerNominated(address newOwner) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) ParseOwnerNominated(log types.Log) (*SpotMarketGoerliOwnerNominated, error) { - event := new(SpotMarketGoerliOwnerNominated) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "OwnerNominated", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketGoerliReferrerShareUpdatedIterator is returned from FilterReferrerShareUpdated and is used to iterate over the raw logs and unpacked data for ReferrerShareUpdated events raised by the SpotMarketGoerli contract. -type SpotMarketGoerliReferrerShareUpdatedIterator struct { - Event *SpotMarketGoerliReferrerShareUpdated // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketGoerliReferrerShareUpdatedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliReferrerShareUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliReferrerShareUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketGoerliReferrerShareUpdatedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketGoerliReferrerShareUpdatedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketGoerliReferrerShareUpdated represents a ReferrerShareUpdated event raised by the SpotMarketGoerli contract. -type SpotMarketGoerliReferrerShareUpdated struct { - MarketId *big.Int - Referrer common.Address - SharePercentage *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterReferrerShareUpdated is a free log retrieval operation binding the contract event 0xd2a3339bb3c610e9030023c1cb3e89374fe0ebd7e37faee9b3d343f33e9df2fb. -// -// Solidity: event ReferrerShareUpdated(uint128 indexed marketId, address referrer, uint256 sharePercentage) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) FilterReferrerShareUpdated(opts *bind.FilterOpts, marketId []*big.Int) (*SpotMarketGoerliReferrerShareUpdatedIterator, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.FilterLogs(opts, "ReferrerShareUpdated", marketIdRule) - if err != nil { - return nil, err - } - return &SpotMarketGoerliReferrerShareUpdatedIterator{contract: _SpotMarketGoerli.contract, event: "ReferrerShareUpdated", logs: logs, sub: sub}, nil -} - -// WatchReferrerShareUpdated is a free log subscription operation binding the contract event 0xd2a3339bb3c610e9030023c1cb3e89374fe0ebd7e37faee9b3d343f33e9df2fb. -// -// Solidity: event ReferrerShareUpdated(uint128 indexed marketId, address referrer, uint256 sharePercentage) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) WatchReferrerShareUpdated(opts *bind.WatchOpts, sink chan<- *SpotMarketGoerliReferrerShareUpdated, marketId []*big.Int) (event.Subscription, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.WatchLogs(opts, "ReferrerShareUpdated", marketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketGoerliReferrerShareUpdated) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "ReferrerShareUpdated", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseReferrerShareUpdated is a log parse operation binding the contract event 0xd2a3339bb3c610e9030023c1cb3e89374fe0ebd7e37faee9b3d343f33e9df2fb. -// -// Solidity: event ReferrerShareUpdated(uint128 indexed marketId, address referrer, uint256 sharePercentage) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) ParseReferrerShareUpdated(log types.Log) (*SpotMarketGoerliReferrerShareUpdated, error) { - event := new(SpotMarketGoerliReferrerShareUpdated) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "ReferrerShareUpdated", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketGoerliSettlementStrategyAddedIterator is returned from FilterSettlementStrategyAdded and is used to iterate over the raw logs and unpacked data for SettlementStrategyAdded events raised by the SpotMarketGoerli contract. -type SpotMarketGoerliSettlementStrategyAddedIterator struct { - Event *SpotMarketGoerliSettlementStrategyAdded // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketGoerliSettlementStrategyAddedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliSettlementStrategyAdded) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliSettlementStrategyAdded) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketGoerliSettlementStrategyAddedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketGoerliSettlementStrategyAddedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketGoerliSettlementStrategyAdded represents a SettlementStrategyAdded event raised by the SpotMarketGoerli contract. -type SpotMarketGoerliSettlementStrategyAdded struct { - SynthMarketId *big.Int - StrategyId *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSettlementStrategyAdded is a free log retrieval operation binding the contract event 0x91750a8e3d84ed1bccdc79dcecf63cc1b6f83b5bf8293bf86628cbb248e487f1. -// -// Solidity: event SettlementStrategyAdded(uint128 indexed synthMarketId, uint256 indexed strategyId) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) FilterSettlementStrategyAdded(opts *bind.FilterOpts, synthMarketId []*big.Int, strategyId []*big.Int) (*SpotMarketGoerliSettlementStrategyAddedIterator, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - var strategyIdRule []interface{} - for _, strategyIdItem := range strategyId { - strategyIdRule = append(strategyIdRule, strategyIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.FilterLogs(opts, "SettlementStrategyAdded", synthMarketIdRule, strategyIdRule) - if err != nil { - return nil, err - } - return &SpotMarketGoerliSettlementStrategyAddedIterator{contract: _SpotMarketGoerli.contract, event: "SettlementStrategyAdded", logs: logs, sub: sub}, nil -} - -// WatchSettlementStrategyAdded is a free log subscription operation binding the contract event 0x91750a8e3d84ed1bccdc79dcecf63cc1b6f83b5bf8293bf86628cbb248e487f1. -// -// Solidity: event SettlementStrategyAdded(uint128 indexed synthMarketId, uint256 indexed strategyId) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) WatchSettlementStrategyAdded(opts *bind.WatchOpts, sink chan<- *SpotMarketGoerliSettlementStrategyAdded, synthMarketId []*big.Int, strategyId []*big.Int) (event.Subscription, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - var strategyIdRule []interface{} - for _, strategyIdItem := range strategyId { - strategyIdRule = append(strategyIdRule, strategyIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.WatchLogs(opts, "SettlementStrategyAdded", synthMarketIdRule, strategyIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketGoerliSettlementStrategyAdded) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "SettlementStrategyAdded", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSettlementStrategyAdded is a log parse operation binding the contract event 0x91750a8e3d84ed1bccdc79dcecf63cc1b6f83b5bf8293bf86628cbb248e487f1. -// -// Solidity: event SettlementStrategyAdded(uint128 indexed synthMarketId, uint256 indexed strategyId) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) ParseSettlementStrategyAdded(log types.Log) (*SpotMarketGoerliSettlementStrategyAdded, error) { - event := new(SpotMarketGoerliSettlementStrategyAdded) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "SettlementStrategyAdded", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketGoerliSettlementStrategyUpdatedIterator is returned from FilterSettlementStrategyUpdated and is used to iterate over the raw logs and unpacked data for SettlementStrategyUpdated events raised by the SpotMarketGoerli contract. -type SpotMarketGoerliSettlementStrategyUpdatedIterator struct { - Event *SpotMarketGoerliSettlementStrategyUpdated // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketGoerliSettlementStrategyUpdatedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliSettlementStrategyUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliSettlementStrategyUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketGoerliSettlementStrategyUpdatedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketGoerliSettlementStrategyUpdatedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketGoerliSettlementStrategyUpdated represents a SettlementStrategyUpdated event raised by the SpotMarketGoerli contract. -type SpotMarketGoerliSettlementStrategyUpdated struct { - SynthMarketId *big.Int - StrategyId *big.Int - Enabled bool - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSettlementStrategyUpdated is a free log retrieval operation binding the contract event 0xb0187d91c1ffe66740e5f7619aab4d868a85ac3698b026bed3f420d871b6c048. -// -// Solidity: event SettlementStrategyUpdated(uint128 indexed synthMarketId, uint256 indexed strategyId, bool enabled) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) FilterSettlementStrategyUpdated(opts *bind.FilterOpts, synthMarketId []*big.Int, strategyId []*big.Int) (*SpotMarketGoerliSettlementStrategyUpdatedIterator, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - var strategyIdRule []interface{} - for _, strategyIdItem := range strategyId { - strategyIdRule = append(strategyIdRule, strategyIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.FilterLogs(opts, "SettlementStrategyUpdated", synthMarketIdRule, strategyIdRule) - if err != nil { - return nil, err - } - return &SpotMarketGoerliSettlementStrategyUpdatedIterator{contract: _SpotMarketGoerli.contract, event: "SettlementStrategyUpdated", logs: logs, sub: sub}, nil -} - -// WatchSettlementStrategyUpdated is a free log subscription operation binding the contract event 0xb0187d91c1ffe66740e5f7619aab4d868a85ac3698b026bed3f420d871b6c048. -// -// Solidity: event SettlementStrategyUpdated(uint128 indexed synthMarketId, uint256 indexed strategyId, bool enabled) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) WatchSettlementStrategyUpdated(opts *bind.WatchOpts, sink chan<- *SpotMarketGoerliSettlementStrategyUpdated, synthMarketId []*big.Int, strategyId []*big.Int) (event.Subscription, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - var strategyIdRule []interface{} - for _, strategyIdItem := range strategyId { - strategyIdRule = append(strategyIdRule, strategyIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.WatchLogs(opts, "SettlementStrategyUpdated", synthMarketIdRule, strategyIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketGoerliSettlementStrategyUpdated) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "SettlementStrategyUpdated", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSettlementStrategyUpdated is a log parse operation binding the contract event 0xb0187d91c1ffe66740e5f7619aab4d868a85ac3698b026bed3f420d871b6c048. -// -// Solidity: event SettlementStrategyUpdated(uint128 indexed synthMarketId, uint256 indexed strategyId, bool enabled) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) ParseSettlementStrategyUpdated(log types.Log) (*SpotMarketGoerliSettlementStrategyUpdated, error) { - event := new(SpotMarketGoerliSettlementStrategyUpdated) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "SettlementStrategyUpdated", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketGoerliSynthBoughtIterator is returned from FilterSynthBought and is used to iterate over the raw logs and unpacked data for SynthBought events raised by the SpotMarketGoerli contract. -type SpotMarketGoerliSynthBoughtIterator struct { - Event *SpotMarketGoerliSynthBought // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketGoerliSynthBoughtIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliSynthBought) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliSynthBought) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketGoerliSynthBoughtIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketGoerliSynthBoughtIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketGoerliSynthBought represents a SynthBought event raised by the SpotMarketGoerli contract. -type SpotMarketGoerliSynthBought struct { - SynthMarketId *big.Int - SynthReturned *big.Int - Fees OrderFeesData - CollectedFees *big.Int - Referrer common.Address - Price *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSynthBought is a free log retrieval operation binding the contract event 0xac82d63e679c7d862613aa8b5ccd94f9adc4986763ab14bb3351ab9092ef1303. -// -// Solidity: event SynthBought(uint256 indexed synthMarketId, uint256 synthReturned, (uint256,uint256,int256,int256) fees, uint256 collectedFees, address referrer, uint256 price) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) FilterSynthBought(opts *bind.FilterOpts, synthMarketId []*big.Int) (*SpotMarketGoerliSynthBoughtIterator, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.FilterLogs(opts, "SynthBought", synthMarketIdRule) - if err != nil { - return nil, err - } - return &SpotMarketGoerliSynthBoughtIterator{contract: _SpotMarketGoerli.contract, event: "SynthBought", logs: logs, sub: sub}, nil -} - -// WatchSynthBought is a free log subscription operation binding the contract event 0xac82d63e679c7d862613aa8b5ccd94f9adc4986763ab14bb3351ab9092ef1303. -// -// Solidity: event SynthBought(uint256 indexed synthMarketId, uint256 synthReturned, (uint256,uint256,int256,int256) fees, uint256 collectedFees, address referrer, uint256 price) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) WatchSynthBought(opts *bind.WatchOpts, sink chan<- *SpotMarketGoerliSynthBought, synthMarketId []*big.Int) (event.Subscription, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.WatchLogs(opts, "SynthBought", synthMarketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketGoerliSynthBought) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "SynthBought", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSynthBought is a log parse operation binding the contract event 0xac82d63e679c7d862613aa8b5ccd94f9adc4986763ab14bb3351ab9092ef1303. -// -// Solidity: event SynthBought(uint256 indexed synthMarketId, uint256 synthReturned, (uint256,uint256,int256,int256) fees, uint256 collectedFees, address referrer, uint256 price) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) ParseSynthBought(log types.Log) (*SpotMarketGoerliSynthBought, error) { - event := new(SpotMarketGoerliSynthBought) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "SynthBought", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketGoerliSynthImplementationSetIterator is returned from FilterSynthImplementationSet and is used to iterate over the raw logs and unpacked data for SynthImplementationSet events raised by the SpotMarketGoerli contract. -type SpotMarketGoerliSynthImplementationSetIterator struct { - Event *SpotMarketGoerliSynthImplementationSet // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketGoerliSynthImplementationSetIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliSynthImplementationSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliSynthImplementationSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketGoerliSynthImplementationSetIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketGoerliSynthImplementationSetIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketGoerliSynthImplementationSet represents a SynthImplementationSet event raised by the SpotMarketGoerli contract. -type SpotMarketGoerliSynthImplementationSet struct { - SynthImplementation common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSynthImplementationSet is a free log retrieval operation binding the contract event 0xafffc48b3243eba10d901f21ba761ad741f18a23feed86ca425df4974d3314b0. -// -// Solidity: event SynthImplementationSet(address synthImplementation) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) FilterSynthImplementationSet(opts *bind.FilterOpts) (*SpotMarketGoerliSynthImplementationSetIterator, error) { - - logs, sub, err := _SpotMarketGoerli.contract.FilterLogs(opts, "SynthImplementationSet") - if err != nil { - return nil, err - } - return &SpotMarketGoerliSynthImplementationSetIterator{contract: _SpotMarketGoerli.contract, event: "SynthImplementationSet", logs: logs, sub: sub}, nil -} - -// WatchSynthImplementationSet is a free log subscription operation binding the contract event 0xafffc48b3243eba10d901f21ba761ad741f18a23feed86ca425df4974d3314b0. -// -// Solidity: event SynthImplementationSet(address synthImplementation) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) WatchSynthImplementationSet(opts *bind.WatchOpts, sink chan<- *SpotMarketGoerliSynthImplementationSet) (event.Subscription, error) { - - logs, sub, err := _SpotMarketGoerli.contract.WatchLogs(opts, "SynthImplementationSet") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketGoerliSynthImplementationSet) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "SynthImplementationSet", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSynthImplementationSet is a log parse operation binding the contract event 0xafffc48b3243eba10d901f21ba761ad741f18a23feed86ca425df4974d3314b0. -// -// Solidity: event SynthImplementationSet(address synthImplementation) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) ParseSynthImplementationSet(log types.Log) (*SpotMarketGoerliSynthImplementationSet, error) { - event := new(SpotMarketGoerliSynthImplementationSet) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "SynthImplementationSet", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketGoerliSynthImplementationUpgradedIterator is returned from FilterSynthImplementationUpgraded and is used to iterate over the raw logs and unpacked data for SynthImplementationUpgraded events raised by the SpotMarketGoerli contract. -type SpotMarketGoerliSynthImplementationUpgradedIterator struct { - Event *SpotMarketGoerliSynthImplementationUpgraded // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketGoerliSynthImplementationUpgradedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliSynthImplementationUpgraded) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliSynthImplementationUpgraded) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketGoerliSynthImplementationUpgradedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketGoerliSynthImplementationUpgradedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketGoerliSynthImplementationUpgraded represents a SynthImplementationUpgraded event raised by the SpotMarketGoerli contract. -type SpotMarketGoerliSynthImplementationUpgraded struct { - SynthMarketId *big.Int - Proxy common.Address - Implementation common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSynthImplementationUpgraded is a free log retrieval operation binding the contract event 0xa7badace8b24daeeb3981497a506d3812b3dc6f147ef3f78bc0e2cc664c50330. -// -// Solidity: event SynthImplementationUpgraded(uint256 indexed synthMarketId, address indexed proxy, address implementation) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) FilterSynthImplementationUpgraded(opts *bind.FilterOpts, synthMarketId []*big.Int, proxy []common.Address) (*SpotMarketGoerliSynthImplementationUpgradedIterator, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - var proxyRule []interface{} - for _, proxyItem := range proxy { - proxyRule = append(proxyRule, proxyItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.FilterLogs(opts, "SynthImplementationUpgraded", synthMarketIdRule, proxyRule) - if err != nil { - return nil, err - } - return &SpotMarketGoerliSynthImplementationUpgradedIterator{contract: _SpotMarketGoerli.contract, event: "SynthImplementationUpgraded", logs: logs, sub: sub}, nil -} - -// WatchSynthImplementationUpgraded is a free log subscription operation binding the contract event 0xa7badace8b24daeeb3981497a506d3812b3dc6f147ef3f78bc0e2cc664c50330. -// -// Solidity: event SynthImplementationUpgraded(uint256 indexed synthMarketId, address indexed proxy, address implementation) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) WatchSynthImplementationUpgraded(opts *bind.WatchOpts, sink chan<- *SpotMarketGoerliSynthImplementationUpgraded, synthMarketId []*big.Int, proxy []common.Address) (event.Subscription, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - var proxyRule []interface{} - for _, proxyItem := range proxy { - proxyRule = append(proxyRule, proxyItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.WatchLogs(opts, "SynthImplementationUpgraded", synthMarketIdRule, proxyRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketGoerliSynthImplementationUpgraded) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "SynthImplementationUpgraded", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSynthImplementationUpgraded is a log parse operation binding the contract event 0xa7badace8b24daeeb3981497a506d3812b3dc6f147ef3f78bc0e2cc664c50330. -// -// Solidity: event SynthImplementationUpgraded(uint256 indexed synthMarketId, address indexed proxy, address implementation) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) ParseSynthImplementationUpgraded(log types.Log) (*SpotMarketGoerliSynthImplementationUpgraded, error) { - event := new(SpotMarketGoerliSynthImplementationUpgraded) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "SynthImplementationUpgraded", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketGoerliSynthPriceDataUpdatedIterator is returned from FilterSynthPriceDataUpdated and is used to iterate over the raw logs and unpacked data for SynthPriceDataUpdated events raised by the SpotMarketGoerli contract. -type SpotMarketGoerliSynthPriceDataUpdatedIterator struct { - Event *SpotMarketGoerliSynthPriceDataUpdated // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketGoerliSynthPriceDataUpdatedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliSynthPriceDataUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliSynthPriceDataUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketGoerliSynthPriceDataUpdatedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketGoerliSynthPriceDataUpdatedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketGoerliSynthPriceDataUpdated represents a SynthPriceDataUpdated event raised by the SpotMarketGoerli contract. -type SpotMarketGoerliSynthPriceDataUpdated struct { - SynthMarketId *big.Int - BuyFeedId [32]byte - SellFeedId [32]byte - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSynthPriceDataUpdated is a free log retrieval operation binding the contract event 0x30309eafe094276dfad42e7ac4676aebcf5ea8480c86708ad2a2c9c0335c912e. -// -// Solidity: event SynthPriceDataUpdated(uint256 indexed synthMarketId, bytes32 indexed buyFeedId, bytes32 indexed sellFeedId) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) FilterSynthPriceDataUpdated(opts *bind.FilterOpts, synthMarketId []*big.Int, buyFeedId [][32]byte, sellFeedId [][32]byte) (*SpotMarketGoerliSynthPriceDataUpdatedIterator, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - var buyFeedIdRule []interface{} - for _, buyFeedIdItem := range buyFeedId { - buyFeedIdRule = append(buyFeedIdRule, buyFeedIdItem) - } - var sellFeedIdRule []interface{} - for _, sellFeedIdItem := range sellFeedId { - sellFeedIdRule = append(sellFeedIdRule, sellFeedIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.FilterLogs(opts, "SynthPriceDataUpdated", synthMarketIdRule, buyFeedIdRule, sellFeedIdRule) - if err != nil { - return nil, err - } - return &SpotMarketGoerliSynthPriceDataUpdatedIterator{contract: _SpotMarketGoerli.contract, event: "SynthPriceDataUpdated", logs: logs, sub: sub}, nil -} - -// WatchSynthPriceDataUpdated is a free log subscription operation binding the contract event 0x30309eafe094276dfad42e7ac4676aebcf5ea8480c86708ad2a2c9c0335c912e. -// -// Solidity: event SynthPriceDataUpdated(uint256 indexed synthMarketId, bytes32 indexed buyFeedId, bytes32 indexed sellFeedId) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) WatchSynthPriceDataUpdated(opts *bind.WatchOpts, sink chan<- *SpotMarketGoerliSynthPriceDataUpdated, synthMarketId []*big.Int, buyFeedId [][32]byte, sellFeedId [][32]byte) (event.Subscription, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - var buyFeedIdRule []interface{} - for _, buyFeedIdItem := range buyFeedId { - buyFeedIdRule = append(buyFeedIdRule, buyFeedIdItem) - } - var sellFeedIdRule []interface{} - for _, sellFeedIdItem := range sellFeedId { - sellFeedIdRule = append(sellFeedIdRule, sellFeedIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.WatchLogs(opts, "SynthPriceDataUpdated", synthMarketIdRule, buyFeedIdRule, sellFeedIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketGoerliSynthPriceDataUpdated) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "SynthPriceDataUpdated", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSynthPriceDataUpdated is a log parse operation binding the contract event 0x30309eafe094276dfad42e7ac4676aebcf5ea8480c86708ad2a2c9c0335c912e. -// -// Solidity: event SynthPriceDataUpdated(uint256 indexed synthMarketId, bytes32 indexed buyFeedId, bytes32 indexed sellFeedId) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) ParseSynthPriceDataUpdated(log types.Log) (*SpotMarketGoerliSynthPriceDataUpdated, error) { - event := new(SpotMarketGoerliSynthPriceDataUpdated) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "SynthPriceDataUpdated", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketGoerliSynthRegisteredIterator is returned from FilterSynthRegistered and is used to iterate over the raw logs and unpacked data for SynthRegistered events raised by the SpotMarketGoerli contract. -type SpotMarketGoerliSynthRegisteredIterator struct { - Event *SpotMarketGoerliSynthRegistered // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketGoerliSynthRegisteredIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliSynthRegistered) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliSynthRegistered) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketGoerliSynthRegisteredIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketGoerliSynthRegisteredIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketGoerliSynthRegistered represents a SynthRegistered event raised by the SpotMarketGoerli contract. -type SpotMarketGoerliSynthRegistered struct { - SynthMarketId *big.Int - SynthTokenAddress common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSynthRegistered is a free log retrieval operation binding the contract event 0x04b07b1c236913894927915a3dd91c8e250223fc668ceabdc47074c5a77e2cb9. -// -// Solidity: event SynthRegistered(uint256 indexed synthMarketId, address synthTokenAddress) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) FilterSynthRegistered(opts *bind.FilterOpts, synthMarketId []*big.Int) (*SpotMarketGoerliSynthRegisteredIterator, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.FilterLogs(opts, "SynthRegistered", synthMarketIdRule) - if err != nil { - return nil, err - } - return &SpotMarketGoerliSynthRegisteredIterator{contract: _SpotMarketGoerli.contract, event: "SynthRegistered", logs: logs, sub: sub}, nil -} - -// WatchSynthRegistered is a free log subscription operation binding the contract event 0x04b07b1c236913894927915a3dd91c8e250223fc668ceabdc47074c5a77e2cb9. -// -// Solidity: event SynthRegistered(uint256 indexed synthMarketId, address synthTokenAddress) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) WatchSynthRegistered(opts *bind.WatchOpts, sink chan<- *SpotMarketGoerliSynthRegistered, synthMarketId []*big.Int) (event.Subscription, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.WatchLogs(opts, "SynthRegistered", synthMarketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketGoerliSynthRegistered) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "SynthRegistered", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSynthRegistered is a log parse operation binding the contract event 0x04b07b1c236913894927915a3dd91c8e250223fc668ceabdc47074c5a77e2cb9. -// -// Solidity: event SynthRegistered(uint256 indexed synthMarketId, address synthTokenAddress) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) ParseSynthRegistered(log types.Log) (*SpotMarketGoerliSynthRegistered, error) { - event := new(SpotMarketGoerliSynthRegistered) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "SynthRegistered", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketGoerliSynthSoldIterator is returned from FilterSynthSold and is used to iterate over the raw logs and unpacked data for SynthSold events raised by the SpotMarketGoerli contract. -type SpotMarketGoerliSynthSoldIterator struct { - Event *SpotMarketGoerliSynthSold // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketGoerliSynthSoldIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliSynthSold) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliSynthSold) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketGoerliSynthSoldIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketGoerliSynthSoldIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketGoerliSynthSold represents a SynthSold event raised by the SpotMarketGoerli contract. -type SpotMarketGoerliSynthSold struct { - SynthMarketId *big.Int - AmountReturned *big.Int - Fees OrderFeesData - CollectedFees *big.Int - Referrer common.Address - Price *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSynthSold is a free log retrieval operation binding the contract event 0x61fa4bb370a2f18a502b3bcf1d0755e53371d58791fa42766aa6386bbefb594a. -// -// Solidity: event SynthSold(uint256 indexed synthMarketId, uint256 amountReturned, (uint256,uint256,int256,int256) fees, uint256 collectedFees, address referrer, uint256 price) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) FilterSynthSold(opts *bind.FilterOpts, synthMarketId []*big.Int) (*SpotMarketGoerliSynthSoldIterator, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.FilterLogs(opts, "SynthSold", synthMarketIdRule) - if err != nil { - return nil, err - } - return &SpotMarketGoerliSynthSoldIterator{contract: _SpotMarketGoerli.contract, event: "SynthSold", logs: logs, sub: sub}, nil -} - -// WatchSynthSold is a free log subscription operation binding the contract event 0x61fa4bb370a2f18a502b3bcf1d0755e53371d58791fa42766aa6386bbefb594a. -// -// Solidity: event SynthSold(uint256 indexed synthMarketId, uint256 amountReturned, (uint256,uint256,int256,int256) fees, uint256 collectedFees, address referrer, uint256 price) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) WatchSynthSold(opts *bind.WatchOpts, sink chan<- *SpotMarketGoerliSynthSold, synthMarketId []*big.Int) (event.Subscription, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.WatchLogs(opts, "SynthSold", synthMarketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketGoerliSynthSold) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "SynthSold", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSynthSold is a log parse operation binding the contract event 0x61fa4bb370a2f18a502b3bcf1d0755e53371d58791fa42766aa6386bbefb594a. -// -// Solidity: event SynthSold(uint256 indexed synthMarketId, uint256 amountReturned, (uint256,uint256,int256,int256) fees, uint256 collectedFees, address referrer, uint256 price) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) ParseSynthSold(log types.Log) (*SpotMarketGoerliSynthSold, error) { - event := new(SpotMarketGoerliSynthSold) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "SynthSold", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketGoerliSynthUnwrappedIterator is returned from FilterSynthUnwrapped and is used to iterate over the raw logs and unpacked data for SynthUnwrapped events raised by the SpotMarketGoerli contract. -type SpotMarketGoerliSynthUnwrappedIterator struct { - Event *SpotMarketGoerliSynthUnwrapped // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketGoerliSynthUnwrappedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliSynthUnwrapped) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliSynthUnwrapped) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketGoerliSynthUnwrappedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketGoerliSynthUnwrappedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketGoerliSynthUnwrapped represents a SynthUnwrapped event raised by the SpotMarketGoerli contract. -type SpotMarketGoerliSynthUnwrapped struct { - SynthMarketId *big.Int - AmountUnwrapped *big.Int - Fees OrderFeesData - FeesCollected *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSynthUnwrapped is a free log retrieval operation binding the contract event 0xa1dd74fb936c7942732e4355961ca6944ca6c6744121ace0d9a1203d664231b3. -// -// Solidity: event SynthUnwrapped(uint256 indexed synthMarketId, uint256 amountUnwrapped, (uint256,uint256,int256,int256) fees, uint256 feesCollected) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) FilterSynthUnwrapped(opts *bind.FilterOpts, synthMarketId []*big.Int) (*SpotMarketGoerliSynthUnwrappedIterator, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.FilterLogs(opts, "SynthUnwrapped", synthMarketIdRule) - if err != nil { - return nil, err - } - return &SpotMarketGoerliSynthUnwrappedIterator{contract: _SpotMarketGoerli.contract, event: "SynthUnwrapped", logs: logs, sub: sub}, nil -} - -// WatchSynthUnwrapped is a free log subscription operation binding the contract event 0xa1dd74fb936c7942732e4355961ca6944ca6c6744121ace0d9a1203d664231b3. -// -// Solidity: event SynthUnwrapped(uint256 indexed synthMarketId, uint256 amountUnwrapped, (uint256,uint256,int256,int256) fees, uint256 feesCollected) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) WatchSynthUnwrapped(opts *bind.WatchOpts, sink chan<- *SpotMarketGoerliSynthUnwrapped, synthMarketId []*big.Int) (event.Subscription, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.WatchLogs(opts, "SynthUnwrapped", synthMarketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketGoerliSynthUnwrapped) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "SynthUnwrapped", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSynthUnwrapped is a log parse operation binding the contract event 0xa1dd74fb936c7942732e4355961ca6944ca6c6744121ace0d9a1203d664231b3. -// -// Solidity: event SynthUnwrapped(uint256 indexed synthMarketId, uint256 amountUnwrapped, (uint256,uint256,int256,int256) fees, uint256 feesCollected) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) ParseSynthUnwrapped(log types.Log) (*SpotMarketGoerliSynthUnwrapped, error) { - event := new(SpotMarketGoerliSynthUnwrapped) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "SynthUnwrapped", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketGoerliSynthWrappedIterator is returned from FilterSynthWrapped and is used to iterate over the raw logs and unpacked data for SynthWrapped events raised by the SpotMarketGoerli contract. -type SpotMarketGoerliSynthWrappedIterator struct { - Event *SpotMarketGoerliSynthWrapped // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketGoerliSynthWrappedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliSynthWrapped) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliSynthWrapped) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketGoerliSynthWrappedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketGoerliSynthWrappedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketGoerliSynthWrapped represents a SynthWrapped event raised by the SpotMarketGoerli contract. -type SpotMarketGoerliSynthWrapped struct { - SynthMarketId *big.Int - AmountWrapped *big.Int - Fees OrderFeesData - FeesCollected *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSynthWrapped is a free log retrieval operation binding the contract event 0xea50ab2f37d37692441c4a16317c1287bb410a3a616a16c49c9ca76d415667ff. -// -// Solidity: event SynthWrapped(uint256 indexed synthMarketId, uint256 amountWrapped, (uint256,uint256,int256,int256) fees, uint256 feesCollected) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) FilterSynthWrapped(opts *bind.FilterOpts, synthMarketId []*big.Int) (*SpotMarketGoerliSynthWrappedIterator, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.FilterLogs(opts, "SynthWrapped", synthMarketIdRule) - if err != nil { - return nil, err - } - return &SpotMarketGoerliSynthWrappedIterator{contract: _SpotMarketGoerli.contract, event: "SynthWrapped", logs: logs, sub: sub}, nil -} - -// WatchSynthWrapped is a free log subscription operation binding the contract event 0xea50ab2f37d37692441c4a16317c1287bb410a3a616a16c49c9ca76d415667ff. -// -// Solidity: event SynthWrapped(uint256 indexed synthMarketId, uint256 amountWrapped, (uint256,uint256,int256,int256) fees, uint256 feesCollected) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) WatchSynthWrapped(opts *bind.WatchOpts, sink chan<- *SpotMarketGoerliSynthWrapped, synthMarketId []*big.Int) (event.Subscription, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.WatchLogs(opts, "SynthWrapped", synthMarketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketGoerliSynthWrapped) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "SynthWrapped", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSynthWrapped is a log parse operation binding the contract event 0xea50ab2f37d37692441c4a16317c1287bb410a3a616a16c49c9ca76d415667ff. -// -// Solidity: event SynthWrapped(uint256 indexed synthMarketId, uint256 amountWrapped, (uint256,uint256,int256,int256) fees, uint256 feesCollected) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) ParseSynthWrapped(log types.Log) (*SpotMarketGoerliSynthWrapped, error) { - event := new(SpotMarketGoerliSynthWrapped) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "SynthWrapped", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketGoerliSynthetixSystemSetIterator is returned from FilterSynthetixSystemSet and is used to iterate over the raw logs and unpacked data for SynthetixSystemSet events raised by the SpotMarketGoerli contract. -type SpotMarketGoerliSynthetixSystemSetIterator struct { - Event *SpotMarketGoerliSynthetixSystemSet // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketGoerliSynthetixSystemSetIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliSynthetixSystemSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliSynthetixSystemSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketGoerliSynthetixSystemSetIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketGoerliSynthetixSystemSetIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketGoerliSynthetixSystemSet represents a SynthetixSystemSet event raised by the SpotMarketGoerli contract. -type SpotMarketGoerliSynthetixSystemSet struct { - Synthetix common.Address - UsdTokenAddress common.Address - OracleManager common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSynthetixSystemSet is a free log retrieval operation binding the contract event 0x52dccf7e2653d5ae8cf1d18c5499fd530f01920181d81afdf6bf489d897e24aa. -// -// Solidity: event SynthetixSystemSet(address synthetix, address usdTokenAddress, address oracleManager) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) FilterSynthetixSystemSet(opts *bind.FilterOpts) (*SpotMarketGoerliSynthetixSystemSetIterator, error) { - - logs, sub, err := _SpotMarketGoerli.contract.FilterLogs(opts, "SynthetixSystemSet") - if err != nil { - return nil, err - } - return &SpotMarketGoerliSynthetixSystemSetIterator{contract: _SpotMarketGoerli.contract, event: "SynthetixSystemSet", logs: logs, sub: sub}, nil -} - -// WatchSynthetixSystemSet is a free log subscription operation binding the contract event 0x52dccf7e2653d5ae8cf1d18c5499fd530f01920181d81afdf6bf489d897e24aa. -// -// Solidity: event SynthetixSystemSet(address synthetix, address usdTokenAddress, address oracleManager) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) WatchSynthetixSystemSet(opts *bind.WatchOpts, sink chan<- *SpotMarketGoerliSynthetixSystemSet) (event.Subscription, error) { - - logs, sub, err := _SpotMarketGoerli.contract.WatchLogs(opts, "SynthetixSystemSet") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketGoerliSynthetixSystemSet) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "SynthetixSystemSet", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSynthetixSystemSet is a log parse operation binding the contract event 0x52dccf7e2653d5ae8cf1d18c5499fd530f01920181d81afdf6bf489d897e24aa. -// -// Solidity: event SynthetixSystemSet(address synthetix, address usdTokenAddress, address oracleManager) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) ParseSynthetixSystemSet(log types.Log) (*SpotMarketGoerliSynthetixSystemSet, error) { - event := new(SpotMarketGoerliSynthetixSystemSet) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "SynthetixSystemSet", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketGoerliTransactorFixedFeeSetIterator is returned from FilterTransactorFixedFeeSet and is used to iterate over the raw logs and unpacked data for TransactorFixedFeeSet events raised by the SpotMarketGoerli contract. -type SpotMarketGoerliTransactorFixedFeeSetIterator struct { - Event *SpotMarketGoerliTransactorFixedFeeSet // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketGoerliTransactorFixedFeeSetIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliTransactorFixedFeeSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliTransactorFixedFeeSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketGoerliTransactorFixedFeeSetIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketGoerliTransactorFixedFeeSetIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketGoerliTransactorFixedFeeSet represents a TransactorFixedFeeSet event raised by the SpotMarketGoerli contract. -type SpotMarketGoerliTransactorFixedFeeSet struct { - SynthMarketId *big.Int - Transactor common.Address - FixedFeeAmount *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterTransactorFixedFeeSet is a free log retrieval operation binding the contract event 0xeed7c7ebc4a7e7456a5b14f961bbe55d026f35a2a2b52d1ad43fe11c348df24a. -// -// Solidity: event TransactorFixedFeeSet(uint256 indexed synthMarketId, address transactor, uint256 fixedFeeAmount) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) FilterTransactorFixedFeeSet(opts *bind.FilterOpts, synthMarketId []*big.Int) (*SpotMarketGoerliTransactorFixedFeeSetIterator, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.FilterLogs(opts, "TransactorFixedFeeSet", synthMarketIdRule) - if err != nil { - return nil, err - } - return &SpotMarketGoerliTransactorFixedFeeSetIterator{contract: _SpotMarketGoerli.contract, event: "TransactorFixedFeeSet", logs: logs, sub: sub}, nil -} - -// WatchTransactorFixedFeeSet is a free log subscription operation binding the contract event 0xeed7c7ebc4a7e7456a5b14f961bbe55d026f35a2a2b52d1ad43fe11c348df24a. -// -// Solidity: event TransactorFixedFeeSet(uint256 indexed synthMarketId, address transactor, uint256 fixedFeeAmount) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) WatchTransactorFixedFeeSet(opts *bind.WatchOpts, sink chan<- *SpotMarketGoerliTransactorFixedFeeSet, synthMarketId []*big.Int) (event.Subscription, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.WatchLogs(opts, "TransactorFixedFeeSet", synthMarketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketGoerliTransactorFixedFeeSet) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "TransactorFixedFeeSet", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseTransactorFixedFeeSet is a log parse operation binding the contract event 0xeed7c7ebc4a7e7456a5b14f961bbe55d026f35a2a2b52d1ad43fe11c348df24a. -// -// Solidity: event TransactorFixedFeeSet(uint256 indexed synthMarketId, address transactor, uint256 fixedFeeAmount) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) ParseTransactorFixedFeeSet(log types.Log) (*SpotMarketGoerliTransactorFixedFeeSet, error) { - event := new(SpotMarketGoerliTransactorFixedFeeSet) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "TransactorFixedFeeSet", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketGoerliUpgradedIterator is returned from FilterUpgraded and is used to iterate over the raw logs and unpacked data for Upgraded events raised by the SpotMarketGoerli contract. -type SpotMarketGoerliUpgradedIterator struct { - Event *SpotMarketGoerliUpgraded // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketGoerliUpgradedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliUpgraded) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliUpgraded) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketGoerliUpgradedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketGoerliUpgradedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketGoerliUpgraded represents a Upgraded event raised by the SpotMarketGoerli contract. -type SpotMarketGoerliUpgraded struct { - Self common.Address - Implementation common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterUpgraded is a free log retrieval operation binding the contract event 0x5d611f318680d00598bb735d61bacf0c514c6b50e1e5ad30040a4df2b12791c7. -// -// Solidity: event Upgraded(address indexed self, address implementation) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) FilterUpgraded(opts *bind.FilterOpts, self []common.Address) (*SpotMarketGoerliUpgradedIterator, error) { - - var selfRule []interface{} - for _, selfItem := range self { - selfRule = append(selfRule, selfItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.FilterLogs(opts, "Upgraded", selfRule) - if err != nil { - return nil, err - } - return &SpotMarketGoerliUpgradedIterator{contract: _SpotMarketGoerli.contract, event: "Upgraded", logs: logs, sub: sub}, nil -} - -// WatchUpgraded is a free log subscription operation binding the contract event 0x5d611f318680d00598bb735d61bacf0c514c6b50e1e5ad30040a4df2b12791c7. -// -// Solidity: event Upgraded(address indexed self, address implementation) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *SpotMarketGoerliUpgraded, self []common.Address) (event.Subscription, error) { - - var selfRule []interface{} - for _, selfItem := range self { - selfRule = append(selfRule, selfItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.WatchLogs(opts, "Upgraded", selfRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketGoerliUpgraded) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "Upgraded", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseUpgraded is a log parse operation binding the contract event 0x5d611f318680d00598bb735d61bacf0c514c6b50e1e5ad30040a4df2b12791c7. -// -// Solidity: event Upgraded(address indexed self, address implementation) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) ParseUpgraded(log types.Log) (*SpotMarketGoerliUpgraded, error) { - event := new(SpotMarketGoerliUpgraded) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "Upgraded", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketGoerliWrapperFeesSetIterator is returned from FilterWrapperFeesSet and is used to iterate over the raw logs and unpacked data for WrapperFeesSet events raised by the SpotMarketGoerli contract. -type SpotMarketGoerliWrapperFeesSetIterator struct { - Event *SpotMarketGoerliWrapperFeesSet // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketGoerliWrapperFeesSetIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliWrapperFeesSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliWrapperFeesSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketGoerliWrapperFeesSetIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketGoerliWrapperFeesSetIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketGoerliWrapperFeesSet represents a WrapperFeesSet event raised by the SpotMarketGoerli contract. -type SpotMarketGoerliWrapperFeesSet struct { - SynthMarketId *big.Int - WrapFee *big.Int - UnwrapFee *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterWrapperFeesSet is a free log retrieval operation binding the contract event 0x84c5bc20d6e52e92afe6ebc9d85d3e4d35de276ba3f05cae640db053f5b861b8. -// -// Solidity: event WrapperFeesSet(uint256 indexed synthMarketId, int256 wrapFee, int256 unwrapFee) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) FilterWrapperFeesSet(opts *bind.FilterOpts, synthMarketId []*big.Int) (*SpotMarketGoerliWrapperFeesSetIterator, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.FilterLogs(opts, "WrapperFeesSet", synthMarketIdRule) - if err != nil { - return nil, err - } - return &SpotMarketGoerliWrapperFeesSetIterator{contract: _SpotMarketGoerli.contract, event: "WrapperFeesSet", logs: logs, sub: sub}, nil -} - -// WatchWrapperFeesSet is a free log subscription operation binding the contract event 0x84c5bc20d6e52e92afe6ebc9d85d3e4d35de276ba3f05cae640db053f5b861b8. -// -// Solidity: event WrapperFeesSet(uint256 indexed synthMarketId, int256 wrapFee, int256 unwrapFee) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) WatchWrapperFeesSet(opts *bind.WatchOpts, sink chan<- *SpotMarketGoerliWrapperFeesSet, synthMarketId []*big.Int) (event.Subscription, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.WatchLogs(opts, "WrapperFeesSet", synthMarketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketGoerliWrapperFeesSet) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "WrapperFeesSet", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseWrapperFeesSet is a log parse operation binding the contract event 0x84c5bc20d6e52e92afe6ebc9d85d3e4d35de276ba3f05cae640db053f5b861b8. -// -// Solidity: event WrapperFeesSet(uint256 indexed synthMarketId, int256 wrapFee, int256 unwrapFee) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) ParseWrapperFeesSet(log types.Log) (*SpotMarketGoerliWrapperFeesSet, error) { - event := new(SpotMarketGoerliWrapperFeesSet) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "WrapperFeesSet", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketGoerliWrapperSetIterator is returned from FilterWrapperSet and is used to iterate over the raw logs and unpacked data for WrapperSet events raised by the SpotMarketGoerli contract. -type SpotMarketGoerliWrapperSetIterator struct { - Event *SpotMarketGoerliWrapperSet // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketGoerliWrapperSetIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliWrapperSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketGoerliWrapperSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketGoerliWrapperSetIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketGoerliWrapperSetIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketGoerliWrapperSet represents a WrapperSet event raised by the SpotMarketGoerli contract. -type SpotMarketGoerliWrapperSet struct { - SynthMarketId *big.Int - WrapCollateralType common.Address - MaxWrappableAmount *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterWrapperSet is a free log retrieval operation binding the contract event 0xf6b8d296783aecfc5d372dff3e3e802ab63338637f9a2f3e2aae1e745c148def. -// -// Solidity: event WrapperSet(uint256 indexed synthMarketId, address indexed wrapCollateralType, uint256 maxWrappableAmount) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) FilterWrapperSet(opts *bind.FilterOpts, synthMarketId []*big.Int, wrapCollateralType []common.Address) (*SpotMarketGoerliWrapperSetIterator, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - var wrapCollateralTypeRule []interface{} - for _, wrapCollateralTypeItem := range wrapCollateralType { - wrapCollateralTypeRule = append(wrapCollateralTypeRule, wrapCollateralTypeItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.FilterLogs(opts, "WrapperSet", synthMarketIdRule, wrapCollateralTypeRule) - if err != nil { - return nil, err - } - return &SpotMarketGoerliWrapperSetIterator{contract: _SpotMarketGoerli.contract, event: "WrapperSet", logs: logs, sub: sub}, nil -} - -// WatchWrapperSet is a free log subscription operation binding the contract event 0xf6b8d296783aecfc5d372dff3e3e802ab63338637f9a2f3e2aae1e745c148def. -// -// Solidity: event WrapperSet(uint256 indexed synthMarketId, address indexed wrapCollateralType, uint256 maxWrappableAmount) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) WatchWrapperSet(opts *bind.WatchOpts, sink chan<- *SpotMarketGoerliWrapperSet, synthMarketId []*big.Int, wrapCollateralType []common.Address) (event.Subscription, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - var wrapCollateralTypeRule []interface{} - for _, wrapCollateralTypeItem := range wrapCollateralType { - wrapCollateralTypeRule = append(wrapCollateralTypeRule, wrapCollateralTypeItem) - } - - logs, sub, err := _SpotMarketGoerli.contract.WatchLogs(opts, "WrapperSet", synthMarketIdRule, wrapCollateralTypeRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketGoerliWrapperSet) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "WrapperSet", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseWrapperSet is a log parse operation binding the contract event 0xf6b8d296783aecfc5d372dff3e3e802ab63338637f9a2f3e2aae1e745c148def. -// -// Solidity: event WrapperSet(uint256 indexed synthMarketId, address indexed wrapCollateralType, uint256 maxWrappableAmount) -func (_SpotMarketGoerli *SpotMarketGoerliFilterer) ParseWrapperSet(log types.Log) (*SpotMarketGoerliWrapperSet, error) { - event := new(SpotMarketGoerliWrapperSet) - if err := _SpotMarketGoerli.contract.UnpackLog(event, "WrapperSet", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/contracts/spotMarketOptimism/contract.go b/contracts/spotMarketOptimism/contract.go deleted file mode 100644 index 9139cbb..0000000 --- a/contracts/spotMarketOptimism/contract.go +++ /dev/null @@ -1,7696 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package spotMarketOptimism - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// AsyncOrderClaimData is an auto generated low-level Go binding around an user-defined struct. -type AsyncOrderClaimData struct { - Id *big.Int - Owner common.Address - OrderType uint8 - AmountEscrowed *big.Int - SettlementStrategyId *big.Int - SettlementTime *big.Int - MinimumSettlementAmount *big.Int - SettledAt *big.Int - Referrer common.Address -} - -// OrderFeesData is an auto generated low-level Go binding around an user-defined struct. -type OrderFeesData struct { - FixedFees *big.Int - UtilizationFees *big.Int - SkewFees *big.Int - WrapperFees *big.Int -} - -// SettlementStrategyData is an auto generated low-level Go binding around an user-defined struct. -type SettlementStrategyData struct { - StrategyType uint8 - SettlementDelay *big.Int - SettlementWindowDuration *big.Int - PriceVerificationContract common.Address - FeedId [32]byte - Url string - SettlementReward *big.Int - PriceDeviationTolerance *big.Int - MinimumUsdExchangeAmount *big.Int - MaxRoundingLoss *big.Int - Disabled bool -} - -// SpotMarketOptimismMetaData contains all meta data concerning the SpotMarketOptimism contract. -var SpotMarketOptimismMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"ImplementationIsSterile\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NoChange\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"contr\",\"type\":\"address\"}],\"name\":\"NotAContract\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"NotNominated\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"Unauthorized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UpgradeSimulationFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroAddress\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldOwner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnerChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnerNominated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"self\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getImplementation\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newNominatedOwner\",\"type\":\"address\"}],\"name\":\"nominateNewOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nominatedOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceNomination\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"simulateUpgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"upgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"which\",\"type\":\"bytes32\"}],\"name\":\"FeatureUnavailable\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidMarketOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"synthImplementation\",\"type\":\"uint256\"}],\"name\":\"InvalidSynthImplementation\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"expected\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"actual\",\"type\":\"bytes32\"}],\"name\":\"MismatchAssociatedSystemKind\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"MissingAssociatedSystem\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"marketOwner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"OnlyMarketOwner\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowInt256ToUint256\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"kind\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"impl\",\"type\":\"address\"}],\"name\":\"AssociatedSystemSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"rate\",\"type\":\"uint256\"}],\"name\":\"DecayRateUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"nominee\",\"type\":\"address\"}],\"name\":\"MarketNominationRenounced\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldOwner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"MarketOwnerChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"MarketOwnerNominated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"synthImplementation\",\"type\":\"address\"}],\"name\":\"SynthImplementationSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"synthMarketId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"SynthImplementationUpgraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"synthMarketId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"buyFeedId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"sellFeedId\",\"type\":\"bytes32\"}],\"name\":\"SynthPriceDataUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"synthMarketId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"synthTokenAddress\",\"type\":\"address\"}],\"name\":\"SynthRegistered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"synthetix\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"usdTokenAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oracleManager\",\"type\":\"address\"}],\"name\":\"SynthetixSystemSet\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"}],\"name\":\"acceptMarketOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"tokenName\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"tokenSymbol\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"synthOwner\",\"type\":\"address\"}],\"name\":\"createSynth\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"getAssociatedSystem\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"kind\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"}],\"name\":\"getMarketOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"marketOwner\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getSynth\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"synthAddress\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getSynthImpl\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"implAddress\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"impl\",\"type\":\"address\"}],\"name\":\"initOrUpgradeNft\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"uint8\",\"name\":\"decimals\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"impl\",\"type\":\"address\"}],\"name\":\"initOrUpgradeToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"minimumCredit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"lockedAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"marketName\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"newNominatedOwner\",\"type\":\"address\"}],\"name\":\"nominateMarketOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"endpoint\",\"type\":\"address\"}],\"name\":\"registerUnmanagedSystem\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"}],\"name\":\"renounceMarketNomination\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"}],\"name\":\"renounceMarketOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"reportedDebt\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"reportedDebtAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"rate\",\"type\":\"uint256\"}],\"name\":\"setDecayRate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"synthImplementation\",\"type\":\"address\"}],\"name\":\"setSynthImplementation\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractISynthetixSystem\",\"name\":\"synthetix\",\"type\":\"address\"}],\"name\":\"setSynthetix\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"isSupported\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"buyFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"sellFeedId\",\"type\":\"bytes32\"}],\"name\":\"updatePriceData\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"upgradeSynthImpl\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"maxSynthAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"synthAmountCharged\",\"type\":\"uint256\"}],\"name\":\"ExceedsMaxSynthAmount\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"maxUsdAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"usdAmountCharged\",\"type\":\"uint256\"}],\"name\":\"ExceedsMaxUsdAmount\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"expected\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"current\",\"type\":\"uint256\"}],\"name\":\"InsufficientAmountReceived\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"InvalidMarket\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidPrices\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowUint256ToInt256\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"synthMarketId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"synthReturned\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fixedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFees\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"skewFees\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"wrapperFees\",\"type\":\"int256\"}],\"indexed\":false,\"internalType\":\"structOrderFees.Data\",\"name\":\"fees\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"collectedFees\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"name\":\"SynthBought\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"synthMarketId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountReturned\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fixedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFees\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"skewFees\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"wrapperFees\",\"type\":\"int256\"}],\"indexed\":false,\"internalType\":\"structOrderFees.Data\",\"name\":\"fees\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"collectedFees\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"name\":\"SynthSold\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"usdAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minAmountReceived\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"}],\"name\":\"buy\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"synthAmount\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fixedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFees\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"skewFees\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"wrapperFees\",\"type\":\"int256\"}],\"internalType\":\"structOrderFees.Data\",\"name\":\"fees\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"usdAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minAmountReceived\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"}],\"name\":\"buyExactIn\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"synthAmount\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fixedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFees\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"skewFees\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"wrapperFees\",\"type\":\"int256\"}],\"internalType\":\"structOrderFees.Data\",\"name\":\"fees\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"synthAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxUsdAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"}],\"name\":\"buyExactOut\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"usdAmountCharged\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fixedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFees\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"skewFees\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"wrapperFees\",\"type\":\"int256\"}],\"internalType\":\"structOrderFees.Data\",\"name\":\"fees\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"usdAmount\",\"type\":\"uint256\"}],\"name\":\"quoteBuyExactIn\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"synthAmount\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fixedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFees\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"skewFees\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"wrapperFees\",\"type\":\"int256\"}],\"internalType\":\"structOrderFees.Data\",\"name\":\"fees\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"synthAmount\",\"type\":\"uint256\"}],\"name\":\"quoteBuyExactOut\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"usdAmountCharged\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fixedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFees\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"skewFees\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"wrapperFees\",\"type\":\"int256\"}],\"internalType\":\"structOrderFees.Data\",\"name\":\"fees\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"synthAmount\",\"type\":\"uint256\"}],\"name\":\"quoteSellExactIn\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"returnAmount\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fixedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFees\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"skewFees\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"wrapperFees\",\"type\":\"int256\"}],\"internalType\":\"structOrderFees.Data\",\"name\":\"fees\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"usdAmount\",\"type\":\"uint256\"}],\"name\":\"quoteSellExactOut\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"synthToBurn\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fixedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFees\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"skewFees\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"wrapperFees\",\"type\":\"int256\"}],\"internalType\":\"structOrderFees.Data\",\"name\":\"fees\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"synthAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minUsdAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"}],\"name\":\"sell\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"usdAmountReceived\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fixedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFees\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"skewFees\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"wrapperFees\",\"type\":\"int256\"}],\"internalType\":\"structOrderFees.Data\",\"name\":\"fees\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"synthAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minAmountReceived\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"}],\"name\":\"sellExactIn\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"returnAmount\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fixedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFees\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"skewFees\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"wrapperFees\",\"type\":\"int256\"}],\"internalType\":\"structOrderFees.Data\",\"name\":\"fees\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"usdAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxSynthAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"}],\"name\":\"sellExactOut\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"synthToBurn\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fixedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFees\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"skewFees\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"wrapperFees\",\"type\":\"int256\"}],\"internalType\":\"structOrderFees.Data\",\"name\":\"fees\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expirationTime\",\"type\":\"uint256\"}],\"name\":\"IneligibleForCancellation\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"expected\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"actual\",\"type\":\"uint256\"}],\"name\":\"InsufficientSharesAmount\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"enumTransaction.Type\",\"name\":\"transactionType\",\"type\":\"uint8\"}],\"name\":\"InvalidAsyncTransactionType\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"asyncOrderId\",\"type\":\"uint256\"}],\"name\":\"InvalidClaim\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"minimumAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"InvalidCommitmentAmount\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"settlementStrategyId\",\"type\":\"uint256\"}],\"name\":\"InvalidSettlementStrategy\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"asyncOrderId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settledAt\",\"type\":\"uint256\"}],\"name\":\"OrderAlreadySettled\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"asyncOrderId\",\"type\":\"uint128\"},{\"components\":[{\"internalType\":\"uint128\",\"name\":\"id\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"enumTransaction.Type\",\"name\":\"orderType\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"amountEscrowed\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settlementStrategyId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settlementTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minimumSettlementAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settledAt\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"}],\"indexed\":false,\"internalType\":\"structAsyncOrderClaim.Data\",\"name\":\"asyncOrderClaim\",\"type\":\"tuple\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"OrderCancelled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"enumTransaction.Type\",\"name\":\"orderType\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountProvided\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"asyncOrderId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"}],\"name\":\"OrderCommitted\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"asyncOrderId\",\"type\":\"uint128\"}],\"name\":\"cancelOrder\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"enumTransaction.Type\",\"name\":\"orderType\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"amountProvided\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settlementStrategyId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minimumSettlementAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"}],\"name\":\"commitOrder\",\"outputs\":[{\"components\":[{\"internalType\":\"uint128\",\"name\":\"id\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"enumTransaction.Type\",\"name\":\"orderType\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"amountEscrowed\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settlementStrategyId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settlementTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minimumSettlementAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settledAt\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"}],\"internalType\":\"structAsyncOrderClaim.Data\",\"name\":\"asyncOrderClaim\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"asyncOrderId\",\"type\":\"uint128\"}],\"name\":\"getAsyncOrderClaim\",\"outputs\":[{\"components\":[{\"internalType\":\"uint128\",\"name\":\"id\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"enumTransaction.Type\",\"name\":\"orderType\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"amountEscrowed\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settlementStrategyId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settlementTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minimumSettlementAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settledAt\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"}],\"internalType\":\"structAsyncOrderClaim.Data\",\"name\":\"asyncOrderClaim\",\"type\":\"tuple\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"enumSettlementStrategy.Type\",\"name\":\"strategyType\",\"type\":\"uint8\"}],\"name\":\"InvalidSettlementStrategy\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidVerificationResponse\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"minimum\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"actual\",\"type\":\"uint256\"}],\"name\":\"MinimumSettlementAmountNotMet\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"string[]\",\"name\":\"urls\",\"type\":\"string[]\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"},{\"internalType\":\"bytes4\",\"name\":\"callbackFunction\",\"type\":\"bytes4\"},{\"internalType\":\"bytes\",\"name\":\"extraData\",\"type\":\"bytes\"}],\"name\":\"OffchainLookup\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"startTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expirationTime\",\"type\":\"uint256\"}],\"name\":\"OutsideSettlementWindow\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowUint256ToUint64\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"deviation\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tolerance\",\"type\":\"uint256\"}],\"name\":\"PriceDeviationToleranceExceeded\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"enumSettlementStrategy.Type\",\"name\":\"strategyType\",\"type\":\"uint8\"}],\"name\":\"SettlementStrategyNotFound\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"asyncOrderId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"finalOrderAmount\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fixedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFees\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"skewFees\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"wrapperFees\",\"type\":\"int256\"}],\"indexed\":false,\"internalType\":\"structOrderFees.Data\",\"name\":\"fees\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"collectedFees\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"settler\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"enumTransaction.Type\",\"name\":\"orderType\",\"type\":\"uint8\"}],\"name\":\"OrderSettled\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"PRECISION\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"asyncOrderId\",\"type\":\"uint128\"}],\"name\":\"settleOrder\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"finalOrderAmount\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fixedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFees\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"skewFees\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"wrapperFees\",\"type\":\"int256\"}],\"internalType\":\"structOrderFees.Data\",\"name\":\"fees\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"result\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"extraData\",\"type\":\"bytes\"}],\"name\":\"settlePythOrder\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"finalOrderAmount\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fixedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFees\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"skewFees\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"wrapperFees\",\"type\":\"int256\"}],\"internalType\":\"structOrderFees.Data\",\"name\":\"fees\",\"type\":\"tuple\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"strategyId\",\"type\":\"uint256\"}],\"name\":\"SettlementStrategyAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"strategyId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"enabled\",\"type\":\"bool\"}],\"name\":\"SettlementStrategyUpdated\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"components\":[{\"internalType\":\"enumSettlementStrategy.Type\",\"name\":\"strategyType\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"settlementDelay\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settlementWindowDuration\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"priceVerificationContract\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"feedId\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"url\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"settlementReward\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"priceDeviationTolerance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minimumUsdExchangeAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxRoundingLoss\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"disabled\",\"type\":\"bool\"}],\"internalType\":\"structSettlementStrategy.Data\",\"name\":\"strategy\",\"type\":\"tuple\"}],\"name\":\"addSettlementStrategy\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"strategyId\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"strategyId\",\"type\":\"uint256\"}],\"name\":\"getSettlementStrategy\",\"outputs\":[{\"components\":[{\"internalType\":\"enumSettlementStrategy.Type\",\"name\":\"strategyType\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"settlementDelay\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settlementWindowDuration\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"priceVerificationContract\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"feedId\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"url\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"settlementReward\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"priceDeviationTolerance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minimumUsdExchangeAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxRoundingLoss\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"disabled\",\"type\":\"bool\"}],\"internalType\":\"structSettlementStrategy.Data\",\"name\":\"settlementStrategy\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"strategyId\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"enabled\",\"type\":\"bool\"}],\"name\":\"setSettlementStrategyEnabled\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"FailedTransfer\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"message\",\"type\":\"bytes32\"}],\"name\":\"InvalidCollateralType\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"maxWrappableAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"currentSupply\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountToWrap\",\"type\":\"uint256\"}],\"name\":\"WrapperExceedsMaxAmount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"synthMarketId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountUnwrapped\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fixedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFees\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"skewFees\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"wrapperFees\",\"type\":\"int256\"}],\"indexed\":false,\"internalType\":\"structOrderFees.Data\",\"name\":\"fees\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"feesCollected\",\"type\":\"uint256\"}],\"name\":\"SynthUnwrapped\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"synthMarketId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountWrapped\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fixedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFees\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"skewFees\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"wrapperFees\",\"type\":\"int256\"}],\"indexed\":false,\"internalType\":\"structOrderFees.Data\",\"name\":\"fees\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"feesCollected\",\"type\":\"uint256\"}],\"name\":\"SynthWrapped\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"synthMarketId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"wrapCollateralType\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"maxWrappableAmount\",\"type\":\"uint256\"}],\"name\":\"WrapperSet\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"wrapCollateralType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"maxWrappableAmount\",\"type\":\"uint256\"}],\"name\":\"setWrapper\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"unwrapAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minAmountReceived\",\"type\":\"uint256\"}],\"name\":\"unwrap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"returnCollateralAmount\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fixedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFees\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"skewFees\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"wrapperFees\",\"type\":\"int256\"}],\"internalType\":\"structOrderFees.Data\",\"name\":\"fees\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"wrapAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minAmountReceived\",\"type\":\"uint256\"}],\"name\":\"wrap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountToMint\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fixedFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFees\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"skewFees\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"wrapperFees\",\"type\":\"int256\"}],\"internalType\":\"structOrderFees.Data\",\"name\":\"fees\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"InvalidCollateralLeverage\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"invalidFeeCollector\",\"type\":\"address\"}],\"name\":\"InvalidFeeCollectorInterface\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidWrapperFees\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"synthMarketId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"asyncFixedFee\",\"type\":\"uint256\"}],\"name\":\"AsyncFixedFeeSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"synthMarketId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"atomicFixedFee\",\"type\":\"uint256\"}],\"name\":\"AtomicFixedFeeSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"synthMarketId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"collateralLeverage\",\"type\":\"uint256\"}],\"name\":\"CollateralLeverageSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"synthMarketId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"feeCollector\",\"type\":\"address\"}],\"name\":\"FeeCollectorSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"synthMarketId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"skewScale\",\"type\":\"uint256\"}],\"name\":\"MarketSkewScaleSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"synthMarketId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"utilizationFeeRate\",\"type\":\"uint256\"}],\"name\":\"MarketUtilizationFeesSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"sharePercentage\",\"type\":\"uint256\"}],\"name\":\"ReferrerShareUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"synthMarketId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"transactor\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fixedFeeAmount\",\"type\":\"uint256\"}],\"name\":\"TransactorFixedFeeSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"synthMarketId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"wrapFee\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"unwrapFee\",\"type\":\"int256\"}],\"name\":\"WrapperFeesSet\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"}],\"name\":\"getCollateralLeverage\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"collateralLeverage\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"transactor\",\"type\":\"address\"}],\"name\":\"getCustomTransactorFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"fixedFeeAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"}],\"name\":\"getFeeCollector\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"feeCollector\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"}],\"name\":\"getMarketFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"atomicFixedFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"asyncFixedFee\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"wrapFee\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"unwrapFee\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"}],\"name\":\"getMarketSkewScale\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"skewScale\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"}],\"name\":\"getMarketUtilizationFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"utilizationFeeRate\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"}],\"name\":\"getReferrerShare\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"sharePercentage\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"asyncFixedFee\",\"type\":\"uint256\"}],\"name\":\"setAsyncFixedFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"atomicFixedFee\",\"type\":\"uint256\"}],\"name\":\"setAtomicFixedFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"collateralLeverage\",\"type\":\"uint256\"}],\"name\":\"setCollateralLeverage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"transactor\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"fixedFeeAmount\",\"type\":\"uint256\"}],\"name\":\"setCustomTransactorFees\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"feeCollector\",\"type\":\"address\"}],\"name\":\"setFeeCollector\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"skewScale\",\"type\":\"uint256\"}],\"name\":\"setMarketSkewScale\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"utilizationFeeRate\",\"type\":\"uint256\"}],\"name\":\"setMarketUtilizationFees\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"int256\",\"name\":\"wrapFee\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"unwrapFee\",\"type\":\"int256\"}],\"name\":\"setWrapperFees\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"sharePercentage\",\"type\":\"uint256\"}],\"name\":\"updateReferrerShare\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ValueAlreadyInSet\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ValueNotInSet\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"allowAll\",\"type\":\"bool\"}],\"name\":\"FeatureFlagAllowAllSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"FeatureFlagAllowlistAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"FeatureFlagAllowlistRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"deniers\",\"type\":\"address[]\"}],\"name\":\"FeatureFlagDeniersReset\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"denyAll\",\"type\":\"bool\"}],\"name\":\"FeatureFlagDenyAllSet\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"addToFeatureFlagAllowlist\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"}],\"name\":\"getDeniers\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"}],\"name\":\"getFeatureFlagAllowAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"}],\"name\":\"getFeatureFlagAllowlist\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"}],\"name\":\"getFeatureFlagDenyAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"isFeatureAllowed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"removeFromFeatureFlagAllowlist\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"address[]\",\"name\":\"deniers\",\"type\":\"address[]\"}],\"name\":\"setDeniers\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"bool\",\"name\":\"allowAll\",\"type\":\"bool\"}],\"name\":\"setFeatureFlagAllowAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"bool\",\"name\":\"denyAll\",\"type\":\"bool\"}],\"name\":\"setFeatureFlagDenyAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", -} - -// SpotMarketOptimismABI is the input ABI used to generate the binding from. -// Deprecated: Use SpotMarketOptimismMetaData.ABI instead. -var SpotMarketOptimismABI = SpotMarketOptimismMetaData.ABI - -// SpotMarketOptimism is an auto generated Go binding around an Ethereum contract. -type SpotMarketOptimism struct { - SpotMarketOptimismCaller // Read-only binding to the contract - SpotMarketOptimismTransactor // Write-only binding to the contract - SpotMarketOptimismFilterer // Log filterer for contract events -} - -// SpotMarketOptimismCaller is an auto generated read-only Go binding around an Ethereum contract. -type SpotMarketOptimismCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// SpotMarketOptimismTransactor is an auto generated write-only Go binding around an Ethereum contract. -type SpotMarketOptimismTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// SpotMarketOptimismFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type SpotMarketOptimismFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// SpotMarketOptimismSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type SpotMarketOptimismSession struct { - Contract *SpotMarketOptimism // 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 -} - -// SpotMarketOptimismCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type SpotMarketOptimismCallerSession struct { - Contract *SpotMarketOptimismCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// SpotMarketOptimismTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type SpotMarketOptimismTransactorSession struct { - Contract *SpotMarketOptimismTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// SpotMarketOptimismRaw is an auto generated low-level Go binding around an Ethereum contract. -type SpotMarketOptimismRaw struct { - Contract *SpotMarketOptimism // Generic contract binding to access the raw methods on -} - -// SpotMarketOptimismCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type SpotMarketOptimismCallerRaw struct { - Contract *SpotMarketOptimismCaller // Generic read-only contract binding to access the raw methods on -} - -// SpotMarketOptimismTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type SpotMarketOptimismTransactorRaw struct { - Contract *SpotMarketOptimismTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewSpotMarketOptimism creates a new instance of SpotMarketOptimism, bound to a specific deployed contract. -func NewSpotMarketOptimism(address common.Address, backend bind.ContractBackend) (*SpotMarketOptimism, error) { - contract, err := bindSpotMarketOptimism(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &SpotMarketOptimism{SpotMarketOptimismCaller: SpotMarketOptimismCaller{contract: contract}, SpotMarketOptimismTransactor: SpotMarketOptimismTransactor{contract: contract}, SpotMarketOptimismFilterer: SpotMarketOptimismFilterer{contract: contract}}, nil -} - -// NewSpotMarketOptimismCaller creates a new read-only instance of SpotMarketOptimism, bound to a specific deployed contract. -func NewSpotMarketOptimismCaller(address common.Address, caller bind.ContractCaller) (*SpotMarketOptimismCaller, error) { - contract, err := bindSpotMarketOptimism(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &SpotMarketOptimismCaller{contract: contract}, nil -} - -// NewSpotMarketOptimismTransactor creates a new write-only instance of SpotMarketOptimism, bound to a specific deployed contract. -func NewSpotMarketOptimismTransactor(address common.Address, transactor bind.ContractTransactor) (*SpotMarketOptimismTransactor, error) { - contract, err := bindSpotMarketOptimism(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &SpotMarketOptimismTransactor{contract: contract}, nil -} - -// NewSpotMarketOptimismFilterer creates a new log filterer instance of SpotMarketOptimism, bound to a specific deployed contract. -func NewSpotMarketOptimismFilterer(address common.Address, filterer bind.ContractFilterer) (*SpotMarketOptimismFilterer, error) { - contract, err := bindSpotMarketOptimism(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &SpotMarketOptimismFilterer{contract: contract}, nil -} - -// bindSpotMarketOptimism binds a generic wrapper to an already deployed contract. -func bindSpotMarketOptimism(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := SpotMarketOptimismMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// 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 (_SpotMarketOptimism *SpotMarketOptimismRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _SpotMarketOptimism.Contract.SpotMarketOptimismCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_SpotMarketOptimism *SpotMarketOptimismRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SpotMarketOptimismTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_SpotMarketOptimism *SpotMarketOptimismRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SpotMarketOptimismTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_SpotMarketOptimism *SpotMarketOptimismCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _SpotMarketOptimism.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_SpotMarketOptimism *SpotMarketOptimismTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_SpotMarketOptimism *SpotMarketOptimismTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.contract.Transact(opts, method, params...) -} - -// PRECISION is a free data retrieval call binding the contract method 0xaaf5eb68. -// -// Solidity: function PRECISION() view returns(int256) -func (_SpotMarketOptimism *SpotMarketOptimismCaller) PRECISION(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _SpotMarketOptimism.contract.Call(opts, &out, "PRECISION") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// PRECISION is a free data retrieval call binding the contract method 0xaaf5eb68. -// -// Solidity: function PRECISION() view returns(int256) -func (_SpotMarketOptimism *SpotMarketOptimismSession) PRECISION() (*big.Int, error) { - return _SpotMarketOptimism.Contract.PRECISION(&_SpotMarketOptimism.CallOpts) -} - -// PRECISION is a free data retrieval call binding the contract method 0xaaf5eb68. -// -// Solidity: function PRECISION() view returns(int256) -func (_SpotMarketOptimism *SpotMarketOptimismCallerSession) PRECISION() (*big.Int, error) { - return _SpotMarketOptimism.Contract.PRECISION(&_SpotMarketOptimism.CallOpts) -} - -// GetAssociatedSystem is a free data retrieval call binding the contract method 0x60988e09. -// -// Solidity: function getAssociatedSystem(bytes32 id) view returns(address addr, bytes32 kind) -func (_SpotMarketOptimism *SpotMarketOptimismCaller) GetAssociatedSystem(opts *bind.CallOpts, id [32]byte) (struct { - Addr common.Address - Kind [32]byte -}, error) { - var out []interface{} - err := _SpotMarketOptimism.contract.Call(opts, &out, "getAssociatedSystem", id) - - outstruct := new(struct { - Addr common.Address - Kind [32]byte - }) - if err != nil { - return *outstruct, err - } - - outstruct.Addr = *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - outstruct.Kind = *abi.ConvertType(out[1], new([32]byte)).(*[32]byte) - - return *outstruct, err - -} - -// GetAssociatedSystem is a free data retrieval call binding the contract method 0x60988e09. -// -// Solidity: function getAssociatedSystem(bytes32 id) view returns(address addr, bytes32 kind) -func (_SpotMarketOptimism *SpotMarketOptimismSession) GetAssociatedSystem(id [32]byte) (struct { - Addr common.Address - Kind [32]byte -}, error) { - return _SpotMarketOptimism.Contract.GetAssociatedSystem(&_SpotMarketOptimism.CallOpts, id) -} - -// GetAssociatedSystem is a free data retrieval call binding the contract method 0x60988e09. -// -// Solidity: function getAssociatedSystem(bytes32 id) view returns(address addr, bytes32 kind) -func (_SpotMarketOptimism *SpotMarketOptimismCallerSession) GetAssociatedSystem(id [32]byte) (struct { - Addr common.Address - Kind [32]byte -}, error) { - return _SpotMarketOptimism.Contract.GetAssociatedSystem(&_SpotMarketOptimism.CallOpts, id) -} - -// GetAsyncOrderClaim is a free data retrieval call binding the contract method 0x5381ce16. -// -// Solidity: function getAsyncOrderClaim(uint128 marketId, uint128 asyncOrderId) pure returns((uint128,address,uint8,uint256,uint256,uint256,uint256,uint256,address) asyncOrderClaim) -func (_SpotMarketOptimism *SpotMarketOptimismCaller) GetAsyncOrderClaim(opts *bind.CallOpts, marketId *big.Int, asyncOrderId *big.Int) (AsyncOrderClaimData, error) { - var out []interface{} - err := _SpotMarketOptimism.contract.Call(opts, &out, "getAsyncOrderClaim", marketId, asyncOrderId) - - if err != nil { - return *new(AsyncOrderClaimData), err - } - - out0 := *abi.ConvertType(out[0], new(AsyncOrderClaimData)).(*AsyncOrderClaimData) - - return out0, err - -} - -// GetAsyncOrderClaim is a free data retrieval call binding the contract method 0x5381ce16. -// -// Solidity: function getAsyncOrderClaim(uint128 marketId, uint128 asyncOrderId) pure returns((uint128,address,uint8,uint256,uint256,uint256,uint256,uint256,address) asyncOrderClaim) -func (_SpotMarketOptimism *SpotMarketOptimismSession) GetAsyncOrderClaim(marketId *big.Int, asyncOrderId *big.Int) (AsyncOrderClaimData, error) { - return _SpotMarketOptimism.Contract.GetAsyncOrderClaim(&_SpotMarketOptimism.CallOpts, marketId, asyncOrderId) -} - -// GetAsyncOrderClaim is a free data retrieval call binding the contract method 0x5381ce16. -// -// Solidity: function getAsyncOrderClaim(uint128 marketId, uint128 asyncOrderId) pure returns((uint128,address,uint8,uint256,uint256,uint256,uint256,uint256,address) asyncOrderClaim) -func (_SpotMarketOptimism *SpotMarketOptimismCallerSession) GetAsyncOrderClaim(marketId *big.Int, asyncOrderId *big.Int) (AsyncOrderClaimData, error) { - return _SpotMarketOptimism.Contract.GetAsyncOrderClaim(&_SpotMarketOptimism.CallOpts, marketId, asyncOrderId) -} - -// GetCollateralLeverage is a free data retrieval call binding the contract method 0xcdfaef0f. -// -// Solidity: function getCollateralLeverage(uint128 synthMarketId) view returns(uint256 collateralLeverage) -func (_SpotMarketOptimism *SpotMarketOptimismCaller) GetCollateralLeverage(opts *bind.CallOpts, synthMarketId *big.Int) (*big.Int, error) { - var out []interface{} - err := _SpotMarketOptimism.contract.Call(opts, &out, "getCollateralLeverage", synthMarketId) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetCollateralLeverage is a free data retrieval call binding the contract method 0xcdfaef0f. -// -// Solidity: function getCollateralLeverage(uint128 synthMarketId) view returns(uint256 collateralLeverage) -func (_SpotMarketOptimism *SpotMarketOptimismSession) GetCollateralLeverage(synthMarketId *big.Int) (*big.Int, error) { - return _SpotMarketOptimism.Contract.GetCollateralLeverage(&_SpotMarketOptimism.CallOpts, synthMarketId) -} - -// GetCollateralLeverage is a free data retrieval call binding the contract method 0xcdfaef0f. -// -// Solidity: function getCollateralLeverage(uint128 synthMarketId) view returns(uint256 collateralLeverage) -func (_SpotMarketOptimism *SpotMarketOptimismCallerSession) GetCollateralLeverage(synthMarketId *big.Int) (*big.Int, error) { - return _SpotMarketOptimism.Contract.GetCollateralLeverage(&_SpotMarketOptimism.CallOpts, synthMarketId) -} - -// GetCustomTransactorFees is a free data retrieval call binding the contract method 0x2efaa971. -// -// Solidity: function getCustomTransactorFees(uint128 synthMarketId, address transactor) view returns(uint256 fixedFeeAmount) -func (_SpotMarketOptimism *SpotMarketOptimismCaller) GetCustomTransactorFees(opts *bind.CallOpts, synthMarketId *big.Int, transactor common.Address) (*big.Int, error) { - var out []interface{} - err := _SpotMarketOptimism.contract.Call(opts, &out, "getCustomTransactorFees", synthMarketId, transactor) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetCustomTransactorFees is a free data retrieval call binding the contract method 0x2efaa971. -// -// Solidity: function getCustomTransactorFees(uint128 synthMarketId, address transactor) view returns(uint256 fixedFeeAmount) -func (_SpotMarketOptimism *SpotMarketOptimismSession) GetCustomTransactorFees(synthMarketId *big.Int, transactor common.Address) (*big.Int, error) { - return _SpotMarketOptimism.Contract.GetCustomTransactorFees(&_SpotMarketOptimism.CallOpts, synthMarketId, transactor) -} - -// GetCustomTransactorFees is a free data retrieval call binding the contract method 0x2efaa971. -// -// Solidity: function getCustomTransactorFees(uint128 synthMarketId, address transactor) view returns(uint256 fixedFeeAmount) -func (_SpotMarketOptimism *SpotMarketOptimismCallerSession) GetCustomTransactorFees(synthMarketId *big.Int, transactor common.Address) (*big.Int, error) { - return _SpotMarketOptimism.Contract.GetCustomTransactorFees(&_SpotMarketOptimism.CallOpts, synthMarketId, transactor) -} - -// GetDeniers is a free data retrieval call binding the contract method 0xed429cf7. -// -// Solidity: function getDeniers(bytes32 feature) view returns(address[]) -func (_SpotMarketOptimism *SpotMarketOptimismCaller) GetDeniers(opts *bind.CallOpts, feature [32]byte) ([]common.Address, error) { - var out []interface{} - err := _SpotMarketOptimism.contract.Call(opts, &out, "getDeniers", feature) - - if err != nil { - return *new([]common.Address), err - } - - out0 := *abi.ConvertType(out[0], new([]common.Address)).(*[]common.Address) - - return out0, err - -} - -// GetDeniers is a free data retrieval call binding the contract method 0xed429cf7. -// -// Solidity: function getDeniers(bytes32 feature) view returns(address[]) -func (_SpotMarketOptimism *SpotMarketOptimismSession) GetDeniers(feature [32]byte) ([]common.Address, error) { - return _SpotMarketOptimism.Contract.GetDeniers(&_SpotMarketOptimism.CallOpts, feature) -} - -// GetDeniers is a free data retrieval call binding the contract method 0xed429cf7. -// -// Solidity: function getDeniers(bytes32 feature) view returns(address[]) -func (_SpotMarketOptimism *SpotMarketOptimismCallerSession) GetDeniers(feature [32]byte) ([]common.Address, error) { - return _SpotMarketOptimism.Contract.GetDeniers(&_SpotMarketOptimism.CallOpts, feature) -} - -// GetFeatureFlagAllowAll is a free data retrieval call binding the contract method 0x40a399ef. -// -// Solidity: function getFeatureFlagAllowAll(bytes32 feature) view returns(bool) -func (_SpotMarketOptimism *SpotMarketOptimismCaller) GetFeatureFlagAllowAll(opts *bind.CallOpts, feature [32]byte) (bool, error) { - var out []interface{} - err := _SpotMarketOptimism.contract.Call(opts, &out, "getFeatureFlagAllowAll", feature) - - if err != nil { - return *new(bool), err - } - - out0 := *abi.ConvertType(out[0], new(bool)).(*bool) - - return out0, err - -} - -// GetFeatureFlagAllowAll is a free data retrieval call binding the contract method 0x40a399ef. -// -// Solidity: function getFeatureFlagAllowAll(bytes32 feature) view returns(bool) -func (_SpotMarketOptimism *SpotMarketOptimismSession) GetFeatureFlagAllowAll(feature [32]byte) (bool, error) { - return _SpotMarketOptimism.Contract.GetFeatureFlagAllowAll(&_SpotMarketOptimism.CallOpts, feature) -} - -// GetFeatureFlagAllowAll is a free data retrieval call binding the contract method 0x40a399ef. -// -// Solidity: function getFeatureFlagAllowAll(bytes32 feature) view returns(bool) -func (_SpotMarketOptimism *SpotMarketOptimismCallerSession) GetFeatureFlagAllowAll(feature [32]byte) (bool, error) { - return _SpotMarketOptimism.Contract.GetFeatureFlagAllowAll(&_SpotMarketOptimism.CallOpts, feature) -} - -// GetFeatureFlagAllowlist is a free data retrieval call binding the contract method 0xe12c8160. -// -// Solidity: function getFeatureFlagAllowlist(bytes32 feature) view returns(address[]) -func (_SpotMarketOptimism *SpotMarketOptimismCaller) GetFeatureFlagAllowlist(opts *bind.CallOpts, feature [32]byte) ([]common.Address, error) { - var out []interface{} - err := _SpotMarketOptimism.contract.Call(opts, &out, "getFeatureFlagAllowlist", feature) - - if err != nil { - return *new([]common.Address), err - } - - out0 := *abi.ConvertType(out[0], new([]common.Address)).(*[]common.Address) - - return out0, err - -} - -// GetFeatureFlagAllowlist is a free data retrieval call binding the contract method 0xe12c8160. -// -// Solidity: function getFeatureFlagAllowlist(bytes32 feature) view returns(address[]) -func (_SpotMarketOptimism *SpotMarketOptimismSession) GetFeatureFlagAllowlist(feature [32]byte) ([]common.Address, error) { - return _SpotMarketOptimism.Contract.GetFeatureFlagAllowlist(&_SpotMarketOptimism.CallOpts, feature) -} - -// GetFeatureFlagAllowlist is a free data retrieval call binding the contract method 0xe12c8160. -// -// Solidity: function getFeatureFlagAllowlist(bytes32 feature) view returns(address[]) -func (_SpotMarketOptimism *SpotMarketOptimismCallerSession) GetFeatureFlagAllowlist(feature [32]byte) ([]common.Address, error) { - return _SpotMarketOptimism.Contract.GetFeatureFlagAllowlist(&_SpotMarketOptimism.CallOpts, feature) -} - -// GetFeatureFlagDenyAll is a free data retrieval call binding the contract method 0xbcae3ea0. -// -// Solidity: function getFeatureFlagDenyAll(bytes32 feature) view returns(bool) -func (_SpotMarketOptimism *SpotMarketOptimismCaller) GetFeatureFlagDenyAll(opts *bind.CallOpts, feature [32]byte) (bool, error) { - var out []interface{} - err := _SpotMarketOptimism.contract.Call(opts, &out, "getFeatureFlagDenyAll", feature) - - if err != nil { - return *new(bool), err - } - - out0 := *abi.ConvertType(out[0], new(bool)).(*bool) - - return out0, err - -} - -// GetFeatureFlagDenyAll is a free data retrieval call binding the contract method 0xbcae3ea0. -// -// Solidity: function getFeatureFlagDenyAll(bytes32 feature) view returns(bool) -func (_SpotMarketOptimism *SpotMarketOptimismSession) GetFeatureFlagDenyAll(feature [32]byte) (bool, error) { - return _SpotMarketOptimism.Contract.GetFeatureFlagDenyAll(&_SpotMarketOptimism.CallOpts, feature) -} - -// GetFeatureFlagDenyAll is a free data retrieval call binding the contract method 0xbcae3ea0. -// -// Solidity: function getFeatureFlagDenyAll(bytes32 feature) view returns(bool) -func (_SpotMarketOptimism *SpotMarketOptimismCallerSession) GetFeatureFlagDenyAll(feature [32]byte) (bool, error) { - return _SpotMarketOptimism.Contract.GetFeatureFlagDenyAll(&_SpotMarketOptimism.CallOpts, feature) -} - -// GetFeeCollector is a free data retrieval call binding the contract method 0x5497eb23. -// -// Solidity: function getFeeCollector(uint128 synthMarketId) view returns(address feeCollector) -func (_SpotMarketOptimism *SpotMarketOptimismCaller) GetFeeCollector(opts *bind.CallOpts, synthMarketId *big.Int) (common.Address, error) { - var out []interface{} - err := _SpotMarketOptimism.contract.Call(opts, &out, "getFeeCollector", synthMarketId) - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// GetFeeCollector is a free data retrieval call binding the contract method 0x5497eb23. -// -// Solidity: function getFeeCollector(uint128 synthMarketId) view returns(address feeCollector) -func (_SpotMarketOptimism *SpotMarketOptimismSession) GetFeeCollector(synthMarketId *big.Int) (common.Address, error) { - return _SpotMarketOptimism.Contract.GetFeeCollector(&_SpotMarketOptimism.CallOpts, synthMarketId) -} - -// GetFeeCollector is a free data retrieval call binding the contract method 0x5497eb23. -// -// Solidity: function getFeeCollector(uint128 synthMarketId) view returns(address feeCollector) -func (_SpotMarketOptimism *SpotMarketOptimismCallerSession) GetFeeCollector(synthMarketId *big.Int) (common.Address, error) { - return _SpotMarketOptimism.Contract.GetFeeCollector(&_SpotMarketOptimism.CallOpts, synthMarketId) -} - -// GetImplementation is a free data retrieval call binding the contract method 0xaaf10f42. -// -// Solidity: function getImplementation() view returns(address) -func (_SpotMarketOptimism *SpotMarketOptimismCaller) GetImplementation(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _SpotMarketOptimism.contract.Call(opts, &out, "getImplementation") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// GetImplementation is a free data retrieval call binding the contract method 0xaaf10f42. -// -// Solidity: function getImplementation() view returns(address) -func (_SpotMarketOptimism *SpotMarketOptimismSession) GetImplementation() (common.Address, error) { - return _SpotMarketOptimism.Contract.GetImplementation(&_SpotMarketOptimism.CallOpts) -} - -// GetImplementation is a free data retrieval call binding the contract method 0xaaf10f42. -// -// Solidity: function getImplementation() view returns(address) -func (_SpotMarketOptimism *SpotMarketOptimismCallerSession) GetImplementation() (common.Address, error) { - return _SpotMarketOptimism.Contract.GetImplementation(&_SpotMarketOptimism.CallOpts) -} - -// GetMarketFees is a free data retrieval call binding the contract method 0x32598e61. -// -// Solidity: function getMarketFees(uint128 synthMarketId) view returns(uint256 atomicFixedFee, uint256 asyncFixedFee, int256 wrapFee, int256 unwrapFee) -func (_SpotMarketOptimism *SpotMarketOptimismCaller) GetMarketFees(opts *bind.CallOpts, synthMarketId *big.Int) (struct { - AtomicFixedFee *big.Int - AsyncFixedFee *big.Int - WrapFee *big.Int - UnwrapFee *big.Int -}, error) { - var out []interface{} - err := _SpotMarketOptimism.contract.Call(opts, &out, "getMarketFees", synthMarketId) - - outstruct := new(struct { - AtomicFixedFee *big.Int - AsyncFixedFee *big.Int - WrapFee *big.Int - UnwrapFee *big.Int - }) - if err != nil { - return *outstruct, err - } - - outstruct.AtomicFixedFee = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - outstruct.AsyncFixedFee = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int) - outstruct.WrapFee = *abi.ConvertType(out[2], new(*big.Int)).(**big.Int) - outstruct.UnwrapFee = *abi.ConvertType(out[3], new(*big.Int)).(**big.Int) - - return *outstruct, err - -} - -// GetMarketFees is a free data retrieval call binding the contract method 0x32598e61. -// -// Solidity: function getMarketFees(uint128 synthMarketId) view returns(uint256 atomicFixedFee, uint256 asyncFixedFee, int256 wrapFee, int256 unwrapFee) -func (_SpotMarketOptimism *SpotMarketOptimismSession) GetMarketFees(synthMarketId *big.Int) (struct { - AtomicFixedFee *big.Int - AsyncFixedFee *big.Int - WrapFee *big.Int - UnwrapFee *big.Int -}, error) { - return _SpotMarketOptimism.Contract.GetMarketFees(&_SpotMarketOptimism.CallOpts, synthMarketId) -} - -// GetMarketFees is a free data retrieval call binding the contract method 0x32598e61. -// -// Solidity: function getMarketFees(uint128 synthMarketId) view returns(uint256 atomicFixedFee, uint256 asyncFixedFee, int256 wrapFee, int256 unwrapFee) -func (_SpotMarketOptimism *SpotMarketOptimismCallerSession) GetMarketFees(synthMarketId *big.Int) (struct { - AtomicFixedFee *big.Int - AsyncFixedFee *big.Int - WrapFee *big.Int - UnwrapFee *big.Int -}, error) { - return _SpotMarketOptimism.Contract.GetMarketFees(&_SpotMarketOptimism.CallOpts, synthMarketId) -} - -// GetMarketOwner is a free data retrieval call binding the contract method 0xa7b8cb9f. -// -// Solidity: function getMarketOwner(uint128 synthMarketId) view returns(address marketOwner) -func (_SpotMarketOptimism *SpotMarketOptimismCaller) GetMarketOwner(opts *bind.CallOpts, synthMarketId *big.Int) (common.Address, error) { - var out []interface{} - err := _SpotMarketOptimism.contract.Call(opts, &out, "getMarketOwner", synthMarketId) - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// GetMarketOwner is a free data retrieval call binding the contract method 0xa7b8cb9f. -// -// Solidity: function getMarketOwner(uint128 synthMarketId) view returns(address marketOwner) -func (_SpotMarketOptimism *SpotMarketOptimismSession) GetMarketOwner(synthMarketId *big.Int) (common.Address, error) { - return _SpotMarketOptimism.Contract.GetMarketOwner(&_SpotMarketOptimism.CallOpts, synthMarketId) -} - -// GetMarketOwner is a free data retrieval call binding the contract method 0xa7b8cb9f. -// -// Solidity: function getMarketOwner(uint128 synthMarketId) view returns(address marketOwner) -func (_SpotMarketOptimism *SpotMarketOptimismCallerSession) GetMarketOwner(synthMarketId *big.Int) (common.Address, error) { - return _SpotMarketOptimism.Contract.GetMarketOwner(&_SpotMarketOptimism.CallOpts, synthMarketId) -} - -// GetMarketSkewScale is a free data retrieval call binding the contract method 0x8d105571. -// -// Solidity: function getMarketSkewScale(uint128 synthMarketId) view returns(uint256 skewScale) -func (_SpotMarketOptimism *SpotMarketOptimismCaller) GetMarketSkewScale(opts *bind.CallOpts, synthMarketId *big.Int) (*big.Int, error) { - var out []interface{} - err := _SpotMarketOptimism.contract.Call(opts, &out, "getMarketSkewScale", synthMarketId) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetMarketSkewScale is a free data retrieval call binding the contract method 0x8d105571. -// -// Solidity: function getMarketSkewScale(uint128 synthMarketId) view returns(uint256 skewScale) -func (_SpotMarketOptimism *SpotMarketOptimismSession) GetMarketSkewScale(synthMarketId *big.Int) (*big.Int, error) { - return _SpotMarketOptimism.Contract.GetMarketSkewScale(&_SpotMarketOptimism.CallOpts, synthMarketId) -} - -// GetMarketSkewScale is a free data retrieval call binding the contract method 0x8d105571. -// -// Solidity: function getMarketSkewScale(uint128 synthMarketId) view returns(uint256 skewScale) -func (_SpotMarketOptimism *SpotMarketOptimismCallerSession) GetMarketSkewScale(synthMarketId *big.Int) (*big.Int, error) { - return _SpotMarketOptimism.Contract.GetMarketSkewScale(&_SpotMarketOptimism.CallOpts, synthMarketId) -} - -// GetMarketUtilizationFees is a free data retrieval call binding the contract method 0xf375f324. -// -// Solidity: function getMarketUtilizationFees(uint128 synthMarketId) view returns(uint256 utilizationFeeRate) -func (_SpotMarketOptimism *SpotMarketOptimismCaller) GetMarketUtilizationFees(opts *bind.CallOpts, synthMarketId *big.Int) (*big.Int, error) { - var out []interface{} - err := _SpotMarketOptimism.contract.Call(opts, &out, "getMarketUtilizationFees", synthMarketId) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetMarketUtilizationFees is a free data retrieval call binding the contract method 0xf375f324. -// -// Solidity: function getMarketUtilizationFees(uint128 synthMarketId) view returns(uint256 utilizationFeeRate) -func (_SpotMarketOptimism *SpotMarketOptimismSession) GetMarketUtilizationFees(synthMarketId *big.Int) (*big.Int, error) { - return _SpotMarketOptimism.Contract.GetMarketUtilizationFees(&_SpotMarketOptimism.CallOpts, synthMarketId) -} - -// GetMarketUtilizationFees is a free data retrieval call binding the contract method 0xf375f324. -// -// Solidity: function getMarketUtilizationFees(uint128 synthMarketId) view returns(uint256 utilizationFeeRate) -func (_SpotMarketOptimism *SpotMarketOptimismCallerSession) GetMarketUtilizationFees(synthMarketId *big.Int) (*big.Int, error) { - return _SpotMarketOptimism.Contract.GetMarketUtilizationFees(&_SpotMarketOptimism.CallOpts, synthMarketId) -} - -// GetReferrerShare is a free data retrieval call binding the contract method 0xfa4b28ed. -// -// Solidity: function getReferrerShare(uint128 synthMarketId, address referrer) view returns(uint256 sharePercentage) -func (_SpotMarketOptimism *SpotMarketOptimismCaller) GetReferrerShare(opts *bind.CallOpts, synthMarketId *big.Int, referrer common.Address) (*big.Int, error) { - var out []interface{} - err := _SpotMarketOptimism.contract.Call(opts, &out, "getReferrerShare", synthMarketId, referrer) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetReferrerShare is a free data retrieval call binding the contract method 0xfa4b28ed. -// -// Solidity: function getReferrerShare(uint128 synthMarketId, address referrer) view returns(uint256 sharePercentage) -func (_SpotMarketOptimism *SpotMarketOptimismSession) GetReferrerShare(synthMarketId *big.Int, referrer common.Address) (*big.Int, error) { - return _SpotMarketOptimism.Contract.GetReferrerShare(&_SpotMarketOptimism.CallOpts, synthMarketId, referrer) -} - -// GetReferrerShare is a free data retrieval call binding the contract method 0xfa4b28ed. -// -// Solidity: function getReferrerShare(uint128 synthMarketId, address referrer) view returns(uint256 sharePercentage) -func (_SpotMarketOptimism *SpotMarketOptimismCallerSession) GetReferrerShare(synthMarketId *big.Int, referrer common.Address) (*big.Int, error) { - return _SpotMarketOptimism.Contract.GetReferrerShare(&_SpotMarketOptimism.CallOpts, synthMarketId, referrer) -} - -// GetSettlementStrategy is a free data retrieval call binding the contract method 0xf74c377f. -// -// Solidity: function getSettlementStrategy(uint128 marketId, uint256 strategyId) view returns((uint8,uint256,uint256,address,bytes32,string,uint256,uint256,uint256,uint256,bool) settlementStrategy) -func (_SpotMarketOptimism *SpotMarketOptimismCaller) GetSettlementStrategy(opts *bind.CallOpts, marketId *big.Int, strategyId *big.Int) (SettlementStrategyData, error) { - var out []interface{} - err := _SpotMarketOptimism.contract.Call(opts, &out, "getSettlementStrategy", marketId, strategyId) - - if err != nil { - return *new(SettlementStrategyData), err - } - - out0 := *abi.ConvertType(out[0], new(SettlementStrategyData)).(*SettlementStrategyData) - - return out0, err - -} - -// GetSettlementStrategy is a free data retrieval call binding the contract method 0xf74c377f. -// -// Solidity: function getSettlementStrategy(uint128 marketId, uint256 strategyId) view returns((uint8,uint256,uint256,address,bytes32,string,uint256,uint256,uint256,uint256,bool) settlementStrategy) -func (_SpotMarketOptimism *SpotMarketOptimismSession) GetSettlementStrategy(marketId *big.Int, strategyId *big.Int) (SettlementStrategyData, error) { - return _SpotMarketOptimism.Contract.GetSettlementStrategy(&_SpotMarketOptimism.CallOpts, marketId, strategyId) -} - -// GetSettlementStrategy is a free data retrieval call binding the contract method 0xf74c377f. -// -// Solidity: function getSettlementStrategy(uint128 marketId, uint256 strategyId) view returns((uint8,uint256,uint256,address,bytes32,string,uint256,uint256,uint256,uint256,bool) settlementStrategy) -func (_SpotMarketOptimism *SpotMarketOptimismCallerSession) GetSettlementStrategy(marketId *big.Int, strategyId *big.Int) (SettlementStrategyData, error) { - return _SpotMarketOptimism.Contract.GetSettlementStrategy(&_SpotMarketOptimism.CallOpts, marketId, strategyId) -} - -// GetSynth is a free data retrieval call binding the contract method 0x69e0365f. -// -// Solidity: function getSynth(uint128 marketId) view returns(address synthAddress) -func (_SpotMarketOptimism *SpotMarketOptimismCaller) GetSynth(opts *bind.CallOpts, marketId *big.Int) (common.Address, error) { - var out []interface{} - err := _SpotMarketOptimism.contract.Call(opts, &out, "getSynth", marketId) - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// GetSynth is a free data retrieval call binding the contract method 0x69e0365f. -// -// Solidity: function getSynth(uint128 marketId) view returns(address synthAddress) -func (_SpotMarketOptimism *SpotMarketOptimismSession) GetSynth(marketId *big.Int) (common.Address, error) { - return _SpotMarketOptimism.Contract.GetSynth(&_SpotMarketOptimism.CallOpts, marketId) -} - -// GetSynth is a free data retrieval call binding the contract method 0x69e0365f. -// -// Solidity: function getSynth(uint128 marketId) view returns(address synthAddress) -func (_SpotMarketOptimism *SpotMarketOptimismCallerSession) GetSynth(marketId *big.Int) (common.Address, error) { - return _SpotMarketOptimism.Contract.GetSynth(&_SpotMarketOptimism.CallOpts, marketId) -} - -// GetSynthImpl is a free data retrieval call binding the contract method 0x3e0c76ca. -// -// Solidity: function getSynthImpl(uint128 marketId) view returns(address implAddress) -func (_SpotMarketOptimism *SpotMarketOptimismCaller) GetSynthImpl(opts *bind.CallOpts, marketId *big.Int) (common.Address, error) { - var out []interface{} - err := _SpotMarketOptimism.contract.Call(opts, &out, "getSynthImpl", marketId) - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// GetSynthImpl is a free data retrieval call binding the contract method 0x3e0c76ca. -// -// Solidity: function getSynthImpl(uint128 marketId) view returns(address implAddress) -func (_SpotMarketOptimism *SpotMarketOptimismSession) GetSynthImpl(marketId *big.Int) (common.Address, error) { - return _SpotMarketOptimism.Contract.GetSynthImpl(&_SpotMarketOptimism.CallOpts, marketId) -} - -// GetSynthImpl is a free data retrieval call binding the contract method 0x3e0c76ca. -// -// Solidity: function getSynthImpl(uint128 marketId) view returns(address implAddress) -func (_SpotMarketOptimism *SpotMarketOptimismCallerSession) GetSynthImpl(marketId *big.Int) (common.Address, error) { - return _SpotMarketOptimism.Contract.GetSynthImpl(&_SpotMarketOptimism.CallOpts, marketId) -} - -// IsFeatureAllowed is a free data retrieval call binding the contract method 0xcf635949. -// -// Solidity: function isFeatureAllowed(bytes32 feature, address account) view returns(bool) -func (_SpotMarketOptimism *SpotMarketOptimismCaller) IsFeatureAllowed(opts *bind.CallOpts, feature [32]byte, account common.Address) (bool, error) { - var out []interface{} - err := _SpotMarketOptimism.contract.Call(opts, &out, "isFeatureAllowed", feature, account) - - if err != nil { - return *new(bool), err - } - - out0 := *abi.ConvertType(out[0], new(bool)).(*bool) - - return out0, err - -} - -// IsFeatureAllowed is a free data retrieval call binding the contract method 0xcf635949. -// -// Solidity: function isFeatureAllowed(bytes32 feature, address account) view returns(bool) -func (_SpotMarketOptimism *SpotMarketOptimismSession) IsFeatureAllowed(feature [32]byte, account common.Address) (bool, error) { - return _SpotMarketOptimism.Contract.IsFeatureAllowed(&_SpotMarketOptimism.CallOpts, feature, account) -} - -// IsFeatureAllowed is a free data retrieval call binding the contract method 0xcf635949. -// -// Solidity: function isFeatureAllowed(bytes32 feature, address account) view returns(bool) -func (_SpotMarketOptimism *SpotMarketOptimismCallerSession) IsFeatureAllowed(feature [32]byte, account common.Address) (bool, error) { - return _SpotMarketOptimism.Contract.IsFeatureAllowed(&_SpotMarketOptimism.CallOpts, feature, account) -} - -// MinimumCredit is a free data retrieval call binding the contract method 0xafe79200. -// -// Solidity: function minimumCredit(uint128 marketId) view returns(uint256 lockedAmount) -func (_SpotMarketOptimism *SpotMarketOptimismCaller) MinimumCredit(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { - var out []interface{} - err := _SpotMarketOptimism.contract.Call(opts, &out, "minimumCredit", marketId) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// MinimumCredit is a free data retrieval call binding the contract method 0xafe79200. -// -// Solidity: function minimumCredit(uint128 marketId) view returns(uint256 lockedAmount) -func (_SpotMarketOptimism *SpotMarketOptimismSession) MinimumCredit(marketId *big.Int) (*big.Int, error) { - return _SpotMarketOptimism.Contract.MinimumCredit(&_SpotMarketOptimism.CallOpts, marketId) -} - -// MinimumCredit is a free data retrieval call binding the contract method 0xafe79200. -// -// Solidity: function minimumCredit(uint128 marketId) view returns(uint256 lockedAmount) -func (_SpotMarketOptimism *SpotMarketOptimismCallerSession) MinimumCredit(marketId *big.Int) (*big.Int, error) { - return _SpotMarketOptimism.Contract.MinimumCredit(&_SpotMarketOptimism.CallOpts, marketId) -} - -// Name is a free data retrieval call binding the contract method 0xc624440a. -// -// Solidity: function name(uint128 marketId) view returns(string marketName) -func (_SpotMarketOptimism *SpotMarketOptimismCaller) Name(opts *bind.CallOpts, marketId *big.Int) (string, error) { - var out []interface{} - err := _SpotMarketOptimism.contract.Call(opts, &out, "name", marketId) - - if err != nil { - return *new(string), err - } - - out0 := *abi.ConvertType(out[0], new(string)).(*string) - - return out0, err - -} - -// Name is a free data retrieval call binding the contract method 0xc624440a. -// -// Solidity: function name(uint128 marketId) view returns(string marketName) -func (_SpotMarketOptimism *SpotMarketOptimismSession) Name(marketId *big.Int) (string, error) { - return _SpotMarketOptimism.Contract.Name(&_SpotMarketOptimism.CallOpts, marketId) -} - -// Name is a free data retrieval call binding the contract method 0xc624440a. -// -// Solidity: function name(uint128 marketId) view returns(string marketName) -func (_SpotMarketOptimism *SpotMarketOptimismCallerSession) Name(marketId *big.Int) (string, error) { - return _SpotMarketOptimism.Contract.Name(&_SpotMarketOptimism.CallOpts, marketId) -} - -// NominatedOwner is a free data retrieval call binding the contract method 0x53a47bb7. -// -// Solidity: function nominatedOwner() view returns(address) -func (_SpotMarketOptimism *SpotMarketOptimismCaller) NominatedOwner(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _SpotMarketOptimism.contract.Call(opts, &out, "nominatedOwner") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// NominatedOwner is a free data retrieval call binding the contract method 0x53a47bb7. -// -// Solidity: function nominatedOwner() view returns(address) -func (_SpotMarketOptimism *SpotMarketOptimismSession) NominatedOwner() (common.Address, error) { - return _SpotMarketOptimism.Contract.NominatedOwner(&_SpotMarketOptimism.CallOpts) -} - -// NominatedOwner is a free data retrieval call binding the contract method 0x53a47bb7. -// -// Solidity: function nominatedOwner() view returns(address) -func (_SpotMarketOptimism *SpotMarketOptimismCallerSession) NominatedOwner() (common.Address, error) { - return _SpotMarketOptimism.Contract.NominatedOwner(&_SpotMarketOptimism.CallOpts) -} - -// Owner is a free data retrieval call binding the contract method 0x8da5cb5b. -// -// Solidity: function owner() view returns(address) -func (_SpotMarketOptimism *SpotMarketOptimismCaller) Owner(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _SpotMarketOptimism.contract.Call(opts, &out, "owner") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// Owner is a free data retrieval call binding the contract method 0x8da5cb5b. -// -// Solidity: function owner() view returns(address) -func (_SpotMarketOptimism *SpotMarketOptimismSession) Owner() (common.Address, error) { - return _SpotMarketOptimism.Contract.Owner(&_SpotMarketOptimism.CallOpts) -} - -// Owner is a free data retrieval call binding the contract method 0x8da5cb5b. -// -// Solidity: function owner() view returns(address) -func (_SpotMarketOptimism *SpotMarketOptimismCallerSession) Owner() (common.Address, error) { - return _SpotMarketOptimism.Contract.Owner(&_SpotMarketOptimism.CallOpts) -} - -// QuoteBuyExactIn is a free data retrieval call binding the contract method 0x6b5e6ae4. -// -// Solidity: function quoteBuyExactIn(uint128 marketId, uint256 usdAmount) view returns(uint256 synthAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismCaller) QuoteBuyExactIn(opts *bind.CallOpts, marketId *big.Int, usdAmount *big.Int) (struct { - SynthAmount *big.Int - Fees OrderFeesData -}, error) { - var out []interface{} - err := _SpotMarketOptimism.contract.Call(opts, &out, "quoteBuyExactIn", marketId, usdAmount) - - outstruct := new(struct { - SynthAmount *big.Int - Fees OrderFeesData - }) - if err != nil { - return *outstruct, err - } - - outstruct.SynthAmount = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - outstruct.Fees = *abi.ConvertType(out[1], new(OrderFeesData)).(*OrderFeesData) - - return *outstruct, err - -} - -// QuoteBuyExactIn is a free data retrieval call binding the contract method 0x6b5e6ae4. -// -// Solidity: function quoteBuyExactIn(uint128 marketId, uint256 usdAmount) view returns(uint256 synthAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismSession) QuoteBuyExactIn(marketId *big.Int, usdAmount *big.Int) (struct { - SynthAmount *big.Int - Fees OrderFeesData -}, error) { - return _SpotMarketOptimism.Contract.QuoteBuyExactIn(&_SpotMarketOptimism.CallOpts, marketId, usdAmount) -} - -// QuoteBuyExactIn is a free data retrieval call binding the contract method 0x6b5e6ae4. -// -// Solidity: function quoteBuyExactIn(uint128 marketId, uint256 usdAmount) view returns(uint256 synthAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismCallerSession) QuoteBuyExactIn(marketId *big.Int, usdAmount *big.Int) (struct { - SynthAmount *big.Int - Fees OrderFeesData -}, error) { - return _SpotMarketOptimism.Contract.QuoteBuyExactIn(&_SpotMarketOptimism.CallOpts, marketId, usdAmount) -} - -// QuoteBuyExactOut is a free data retrieval call binding the contract method 0x1f3f7640. -// -// Solidity: function quoteBuyExactOut(uint128 marketId, uint256 synthAmount) view returns(uint256 usdAmountCharged, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismCaller) QuoteBuyExactOut(opts *bind.CallOpts, marketId *big.Int, synthAmount *big.Int) (struct { - UsdAmountCharged *big.Int - Fees OrderFeesData -}, error) { - var out []interface{} - err := _SpotMarketOptimism.contract.Call(opts, &out, "quoteBuyExactOut", marketId, synthAmount) - - outstruct := new(struct { - UsdAmountCharged *big.Int - Fees OrderFeesData - }) - if err != nil { - return *outstruct, err - } - - outstruct.UsdAmountCharged = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - outstruct.Fees = *abi.ConvertType(out[1], new(OrderFeesData)).(*OrderFeesData) - - return *outstruct, err - -} - -// QuoteBuyExactOut is a free data retrieval call binding the contract method 0x1f3f7640. -// -// Solidity: function quoteBuyExactOut(uint128 marketId, uint256 synthAmount) view returns(uint256 usdAmountCharged, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismSession) QuoteBuyExactOut(marketId *big.Int, synthAmount *big.Int) (struct { - UsdAmountCharged *big.Int - Fees OrderFeesData -}, error) { - return _SpotMarketOptimism.Contract.QuoteBuyExactOut(&_SpotMarketOptimism.CallOpts, marketId, synthAmount) -} - -// QuoteBuyExactOut is a free data retrieval call binding the contract method 0x1f3f7640. -// -// Solidity: function quoteBuyExactOut(uint128 marketId, uint256 synthAmount) view returns(uint256 usdAmountCharged, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismCallerSession) QuoteBuyExactOut(marketId *big.Int, synthAmount *big.Int) (struct { - UsdAmountCharged *big.Int - Fees OrderFeesData -}, error) { - return _SpotMarketOptimism.Contract.QuoteBuyExactOut(&_SpotMarketOptimism.CallOpts, marketId, synthAmount) -} - -// QuoteSellExactIn is a free data retrieval call binding the contract method 0xc52d1730. -// -// Solidity: function quoteSellExactIn(uint128 marketId, uint256 synthAmount) view returns(uint256 returnAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismCaller) QuoteSellExactIn(opts *bind.CallOpts, marketId *big.Int, synthAmount *big.Int) (struct { - ReturnAmount *big.Int - Fees OrderFeesData -}, error) { - var out []interface{} - err := _SpotMarketOptimism.contract.Call(opts, &out, "quoteSellExactIn", marketId, synthAmount) - - outstruct := new(struct { - ReturnAmount *big.Int - Fees OrderFeesData - }) - if err != nil { - return *outstruct, err - } - - outstruct.ReturnAmount = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - outstruct.Fees = *abi.ConvertType(out[1], new(OrderFeesData)).(*OrderFeesData) - - return *outstruct, err - -} - -// QuoteSellExactIn is a free data retrieval call binding the contract method 0xc52d1730. -// -// Solidity: function quoteSellExactIn(uint128 marketId, uint256 synthAmount) view returns(uint256 returnAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismSession) QuoteSellExactIn(marketId *big.Int, synthAmount *big.Int) (struct { - ReturnAmount *big.Int - Fees OrderFeesData -}, error) { - return _SpotMarketOptimism.Contract.QuoteSellExactIn(&_SpotMarketOptimism.CallOpts, marketId, synthAmount) -} - -// QuoteSellExactIn is a free data retrieval call binding the contract method 0xc52d1730. -// -// Solidity: function quoteSellExactIn(uint128 marketId, uint256 synthAmount) view returns(uint256 returnAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismCallerSession) QuoteSellExactIn(marketId *big.Int, synthAmount *big.Int) (struct { - ReturnAmount *big.Int - Fees OrderFeesData -}, error) { - return _SpotMarketOptimism.Contract.QuoteSellExactIn(&_SpotMarketOptimism.CallOpts, marketId, synthAmount) -} - -// QuoteSellExactOut is a free data retrieval call binding the contract method 0x2c007522. -// -// Solidity: function quoteSellExactOut(uint128 marketId, uint256 usdAmount) view returns(uint256 synthToBurn, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismCaller) QuoteSellExactOut(opts *bind.CallOpts, marketId *big.Int, usdAmount *big.Int) (struct { - SynthToBurn *big.Int - Fees OrderFeesData -}, error) { - var out []interface{} - err := _SpotMarketOptimism.contract.Call(opts, &out, "quoteSellExactOut", marketId, usdAmount) - - outstruct := new(struct { - SynthToBurn *big.Int - Fees OrderFeesData - }) - if err != nil { - return *outstruct, err - } - - outstruct.SynthToBurn = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - outstruct.Fees = *abi.ConvertType(out[1], new(OrderFeesData)).(*OrderFeesData) - - return *outstruct, err - -} - -// QuoteSellExactOut is a free data retrieval call binding the contract method 0x2c007522. -// -// Solidity: function quoteSellExactOut(uint128 marketId, uint256 usdAmount) view returns(uint256 synthToBurn, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismSession) QuoteSellExactOut(marketId *big.Int, usdAmount *big.Int) (struct { - SynthToBurn *big.Int - Fees OrderFeesData -}, error) { - return _SpotMarketOptimism.Contract.QuoteSellExactOut(&_SpotMarketOptimism.CallOpts, marketId, usdAmount) -} - -// QuoteSellExactOut is a free data retrieval call binding the contract method 0x2c007522. -// -// Solidity: function quoteSellExactOut(uint128 marketId, uint256 usdAmount) view returns(uint256 synthToBurn, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismCallerSession) QuoteSellExactOut(marketId *big.Int, usdAmount *big.Int) (struct { - SynthToBurn *big.Int - Fees OrderFeesData -}, error) { - return _SpotMarketOptimism.Contract.QuoteSellExactOut(&_SpotMarketOptimism.CallOpts, marketId, usdAmount) -} - -// ReportedDebt is a free data retrieval call binding the contract method 0xbcec0d0f. -// -// Solidity: function reportedDebt(uint128 marketId) view returns(uint256 reportedDebtAmount) -func (_SpotMarketOptimism *SpotMarketOptimismCaller) ReportedDebt(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) { - var out []interface{} - err := _SpotMarketOptimism.contract.Call(opts, &out, "reportedDebt", marketId) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// ReportedDebt is a free data retrieval call binding the contract method 0xbcec0d0f. -// -// Solidity: function reportedDebt(uint128 marketId) view returns(uint256 reportedDebtAmount) -func (_SpotMarketOptimism *SpotMarketOptimismSession) ReportedDebt(marketId *big.Int) (*big.Int, error) { - return _SpotMarketOptimism.Contract.ReportedDebt(&_SpotMarketOptimism.CallOpts, marketId) -} - -// ReportedDebt is a free data retrieval call binding the contract method 0xbcec0d0f. -// -// Solidity: function reportedDebt(uint128 marketId) view returns(uint256 reportedDebtAmount) -func (_SpotMarketOptimism *SpotMarketOptimismCallerSession) ReportedDebt(marketId *big.Int) (*big.Int, error) { - return _SpotMarketOptimism.Contract.ReportedDebt(&_SpotMarketOptimism.CallOpts, marketId) -} - -// SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7. -// -// Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool isSupported) -func (_SpotMarketOptimism *SpotMarketOptimismCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error) { - var out []interface{} - err := _SpotMarketOptimism.contract.Call(opts, &out, "supportsInterface", interfaceId) - - if err != nil { - return *new(bool), err - } - - out0 := *abi.ConvertType(out[0], new(bool)).(*bool) - - return out0, err - -} - -// SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7. -// -// Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool isSupported) -func (_SpotMarketOptimism *SpotMarketOptimismSession) SupportsInterface(interfaceId [4]byte) (bool, error) { - return _SpotMarketOptimism.Contract.SupportsInterface(&_SpotMarketOptimism.CallOpts, interfaceId) -} - -// SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7. -// -// Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool isSupported) -func (_SpotMarketOptimism *SpotMarketOptimismCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error) { - return _SpotMarketOptimism.Contract.SupportsInterface(&_SpotMarketOptimism.CallOpts, interfaceId) -} - -// AcceptMarketOwnership is a paid mutator transaction binding the contract method 0x1c216a0e. -// -// Solidity: function acceptMarketOwnership(uint128 synthMarketId) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) AcceptMarketOwnership(opts *bind.TransactOpts, synthMarketId *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "acceptMarketOwnership", synthMarketId) -} - -// AcceptMarketOwnership is a paid mutator transaction binding the contract method 0x1c216a0e. -// -// Solidity: function acceptMarketOwnership(uint128 synthMarketId) returns() -func (_SpotMarketOptimism *SpotMarketOptimismSession) AcceptMarketOwnership(synthMarketId *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.AcceptMarketOwnership(&_SpotMarketOptimism.TransactOpts, synthMarketId) -} - -// AcceptMarketOwnership is a paid mutator transaction binding the contract method 0x1c216a0e. -// -// Solidity: function acceptMarketOwnership(uint128 synthMarketId) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) AcceptMarketOwnership(synthMarketId *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.AcceptMarketOwnership(&_SpotMarketOptimism.TransactOpts, synthMarketId) -} - -// AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. -// -// Solidity: function acceptOwnership() returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "acceptOwnership") -} - -// AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. -// -// Solidity: function acceptOwnership() returns() -func (_SpotMarketOptimism *SpotMarketOptimismSession) AcceptOwnership() (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.AcceptOwnership(&_SpotMarketOptimism.TransactOpts) -} - -// AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. -// -// Solidity: function acceptOwnership() returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) AcceptOwnership() (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.AcceptOwnership(&_SpotMarketOptimism.TransactOpts) -} - -// AddSettlementStrategy is a paid mutator transaction binding the contract method 0x97b30e6d. -// -// Solidity: function addSettlementStrategy(uint128 marketId, (uint8,uint256,uint256,address,bytes32,string,uint256,uint256,uint256,uint256,bool) strategy) returns(uint256 strategyId) -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) AddSettlementStrategy(opts *bind.TransactOpts, marketId *big.Int, strategy SettlementStrategyData) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "addSettlementStrategy", marketId, strategy) -} - -// AddSettlementStrategy is a paid mutator transaction binding the contract method 0x97b30e6d. -// -// Solidity: function addSettlementStrategy(uint128 marketId, (uint8,uint256,uint256,address,bytes32,string,uint256,uint256,uint256,uint256,bool) strategy) returns(uint256 strategyId) -func (_SpotMarketOptimism *SpotMarketOptimismSession) AddSettlementStrategy(marketId *big.Int, strategy SettlementStrategyData) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.AddSettlementStrategy(&_SpotMarketOptimism.TransactOpts, marketId, strategy) -} - -// AddSettlementStrategy is a paid mutator transaction binding the contract method 0x97b30e6d. -// -// Solidity: function addSettlementStrategy(uint128 marketId, (uint8,uint256,uint256,address,bytes32,string,uint256,uint256,uint256,uint256,bool) strategy) returns(uint256 strategyId) -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) AddSettlementStrategy(marketId *big.Int, strategy SettlementStrategyData) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.AddSettlementStrategy(&_SpotMarketOptimism.TransactOpts, marketId, strategy) -} - -// AddToFeatureFlagAllowlist is a paid mutator transaction binding the contract method 0xa0778144. -// -// Solidity: function addToFeatureFlagAllowlist(bytes32 feature, address account) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) AddToFeatureFlagAllowlist(opts *bind.TransactOpts, feature [32]byte, account common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "addToFeatureFlagAllowlist", feature, account) -} - -// AddToFeatureFlagAllowlist is a paid mutator transaction binding the contract method 0xa0778144. -// -// Solidity: function addToFeatureFlagAllowlist(bytes32 feature, address account) returns() -func (_SpotMarketOptimism *SpotMarketOptimismSession) AddToFeatureFlagAllowlist(feature [32]byte, account common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.AddToFeatureFlagAllowlist(&_SpotMarketOptimism.TransactOpts, feature, account) -} - -// AddToFeatureFlagAllowlist is a paid mutator transaction binding the contract method 0xa0778144. -// -// Solidity: function addToFeatureFlagAllowlist(bytes32 feature, address account) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) AddToFeatureFlagAllowlist(feature [32]byte, account common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.AddToFeatureFlagAllowlist(&_SpotMarketOptimism.TransactOpts, feature, account) -} - -// Buy is a paid mutator transaction binding the contract method 0x37fb3369. -// -// Solidity: function buy(uint128 marketId, uint256 usdAmount, uint256 minAmountReceived, address referrer) returns(uint256 synthAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) Buy(opts *bind.TransactOpts, marketId *big.Int, usdAmount *big.Int, minAmountReceived *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "buy", marketId, usdAmount, minAmountReceived, referrer) -} - -// Buy is a paid mutator transaction binding the contract method 0x37fb3369. -// -// Solidity: function buy(uint128 marketId, uint256 usdAmount, uint256 minAmountReceived, address referrer) returns(uint256 synthAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismSession) Buy(marketId *big.Int, usdAmount *big.Int, minAmountReceived *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.Buy(&_SpotMarketOptimism.TransactOpts, marketId, usdAmount, minAmountReceived, referrer) -} - -// Buy is a paid mutator transaction binding the contract method 0x37fb3369. -// -// Solidity: function buy(uint128 marketId, uint256 usdAmount, uint256 minAmountReceived, address referrer) returns(uint256 synthAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) Buy(marketId *big.Int, usdAmount *big.Int, minAmountReceived *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.Buy(&_SpotMarketOptimism.TransactOpts, marketId, usdAmount, minAmountReceived, referrer) -} - -// BuyExactIn is a paid mutator transaction binding the contract method 0xa12d9400. -// -// Solidity: function buyExactIn(uint128 marketId, uint256 usdAmount, uint256 minAmountReceived, address referrer) returns(uint256 synthAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) BuyExactIn(opts *bind.TransactOpts, marketId *big.Int, usdAmount *big.Int, minAmountReceived *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "buyExactIn", marketId, usdAmount, minAmountReceived, referrer) -} - -// BuyExactIn is a paid mutator transaction binding the contract method 0xa12d9400. -// -// Solidity: function buyExactIn(uint128 marketId, uint256 usdAmount, uint256 minAmountReceived, address referrer) returns(uint256 synthAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismSession) BuyExactIn(marketId *big.Int, usdAmount *big.Int, minAmountReceived *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.BuyExactIn(&_SpotMarketOptimism.TransactOpts, marketId, usdAmount, minAmountReceived, referrer) -} - -// BuyExactIn is a paid mutator transaction binding the contract method 0xa12d9400. -// -// Solidity: function buyExactIn(uint128 marketId, uint256 usdAmount, uint256 minAmountReceived, address referrer) returns(uint256 synthAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) BuyExactIn(marketId *big.Int, usdAmount *big.Int, minAmountReceived *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.BuyExactIn(&_SpotMarketOptimism.TransactOpts, marketId, usdAmount, minAmountReceived, referrer) -} - -// BuyExactOut is a paid mutator transaction binding the contract method 0x983220bb. -// -// Solidity: function buyExactOut(uint128 marketId, uint256 synthAmount, uint256 maxUsdAmount, address referrer) returns(uint256 usdAmountCharged, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) BuyExactOut(opts *bind.TransactOpts, marketId *big.Int, synthAmount *big.Int, maxUsdAmount *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "buyExactOut", marketId, synthAmount, maxUsdAmount, referrer) -} - -// BuyExactOut is a paid mutator transaction binding the contract method 0x983220bb. -// -// Solidity: function buyExactOut(uint128 marketId, uint256 synthAmount, uint256 maxUsdAmount, address referrer) returns(uint256 usdAmountCharged, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismSession) BuyExactOut(marketId *big.Int, synthAmount *big.Int, maxUsdAmount *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.BuyExactOut(&_SpotMarketOptimism.TransactOpts, marketId, synthAmount, maxUsdAmount, referrer) -} - -// BuyExactOut is a paid mutator transaction binding the contract method 0x983220bb. -// -// Solidity: function buyExactOut(uint128 marketId, uint256 synthAmount, uint256 maxUsdAmount, address referrer) returns(uint256 usdAmountCharged, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) BuyExactOut(marketId *big.Int, synthAmount *big.Int, maxUsdAmount *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.BuyExactOut(&_SpotMarketOptimism.TransactOpts, marketId, synthAmount, maxUsdAmount, referrer) -} - -// CancelOrder is a paid mutator transaction binding the contract method 0x4138dc53. -// -// Solidity: function cancelOrder(uint128 marketId, uint128 asyncOrderId) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) CancelOrder(opts *bind.TransactOpts, marketId *big.Int, asyncOrderId *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "cancelOrder", marketId, asyncOrderId) -} - -// CancelOrder is a paid mutator transaction binding the contract method 0x4138dc53. -// -// Solidity: function cancelOrder(uint128 marketId, uint128 asyncOrderId) returns() -func (_SpotMarketOptimism *SpotMarketOptimismSession) CancelOrder(marketId *big.Int, asyncOrderId *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.CancelOrder(&_SpotMarketOptimism.TransactOpts, marketId, asyncOrderId) -} - -// CancelOrder is a paid mutator transaction binding the contract method 0x4138dc53. -// -// Solidity: function cancelOrder(uint128 marketId, uint128 asyncOrderId) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) CancelOrder(marketId *big.Int, asyncOrderId *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.CancelOrder(&_SpotMarketOptimism.TransactOpts, marketId, asyncOrderId) -} - -// CommitOrder is a paid mutator transaction binding the contract method 0xd393340e. -// -// Solidity: function commitOrder(uint128 marketId, uint8 orderType, uint256 amountProvided, uint256 settlementStrategyId, uint256 minimumSettlementAmount, address referrer) returns((uint128,address,uint8,uint256,uint256,uint256,uint256,uint256,address) asyncOrderClaim) -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) CommitOrder(opts *bind.TransactOpts, marketId *big.Int, orderType uint8, amountProvided *big.Int, settlementStrategyId *big.Int, minimumSettlementAmount *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "commitOrder", marketId, orderType, amountProvided, settlementStrategyId, minimumSettlementAmount, referrer) -} - -// CommitOrder is a paid mutator transaction binding the contract method 0xd393340e. -// -// Solidity: function commitOrder(uint128 marketId, uint8 orderType, uint256 amountProvided, uint256 settlementStrategyId, uint256 minimumSettlementAmount, address referrer) returns((uint128,address,uint8,uint256,uint256,uint256,uint256,uint256,address) asyncOrderClaim) -func (_SpotMarketOptimism *SpotMarketOptimismSession) CommitOrder(marketId *big.Int, orderType uint8, amountProvided *big.Int, settlementStrategyId *big.Int, minimumSettlementAmount *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.CommitOrder(&_SpotMarketOptimism.TransactOpts, marketId, orderType, amountProvided, settlementStrategyId, minimumSettlementAmount, referrer) -} - -// CommitOrder is a paid mutator transaction binding the contract method 0xd393340e. -// -// Solidity: function commitOrder(uint128 marketId, uint8 orderType, uint256 amountProvided, uint256 settlementStrategyId, uint256 minimumSettlementAmount, address referrer) returns((uint128,address,uint8,uint256,uint256,uint256,uint256,uint256,address) asyncOrderClaim) -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) CommitOrder(marketId *big.Int, orderType uint8, amountProvided *big.Int, settlementStrategyId *big.Int, minimumSettlementAmount *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.CommitOrder(&_SpotMarketOptimism.TransactOpts, marketId, orderType, amountProvided, settlementStrategyId, minimumSettlementAmount, referrer) -} - -// CreateSynth is a paid mutator transaction binding the contract method 0x2e535d61. -// -// Solidity: function createSynth(string tokenName, string tokenSymbol, address synthOwner) returns(uint128 synthMarketId) -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) CreateSynth(opts *bind.TransactOpts, tokenName string, tokenSymbol string, synthOwner common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "createSynth", tokenName, tokenSymbol, synthOwner) -} - -// CreateSynth is a paid mutator transaction binding the contract method 0x2e535d61. -// -// Solidity: function createSynth(string tokenName, string tokenSymbol, address synthOwner) returns(uint128 synthMarketId) -func (_SpotMarketOptimism *SpotMarketOptimismSession) CreateSynth(tokenName string, tokenSymbol string, synthOwner common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.CreateSynth(&_SpotMarketOptimism.TransactOpts, tokenName, tokenSymbol, synthOwner) -} - -// CreateSynth is a paid mutator transaction binding the contract method 0x2e535d61. -// -// Solidity: function createSynth(string tokenName, string tokenSymbol, address synthOwner) returns(uint128 synthMarketId) -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) CreateSynth(tokenName string, tokenSymbol string, synthOwner common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.CreateSynth(&_SpotMarketOptimism.TransactOpts, tokenName, tokenSymbol, synthOwner) -} - -// InitOrUpgradeNft is a paid mutator transaction binding the contract method 0x2d22bef9. -// -// Solidity: function initOrUpgradeNft(bytes32 id, string name, string symbol, string uri, address impl) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) InitOrUpgradeNft(opts *bind.TransactOpts, id [32]byte, name string, symbol string, uri string, impl common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "initOrUpgradeNft", id, name, symbol, uri, impl) -} - -// InitOrUpgradeNft is a paid mutator transaction binding the contract method 0x2d22bef9. -// -// Solidity: function initOrUpgradeNft(bytes32 id, string name, string symbol, string uri, address impl) returns() -func (_SpotMarketOptimism *SpotMarketOptimismSession) InitOrUpgradeNft(id [32]byte, name string, symbol string, uri string, impl common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.InitOrUpgradeNft(&_SpotMarketOptimism.TransactOpts, id, name, symbol, uri, impl) -} - -// InitOrUpgradeNft is a paid mutator transaction binding the contract method 0x2d22bef9. -// -// Solidity: function initOrUpgradeNft(bytes32 id, string name, string symbol, string uri, address impl) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) InitOrUpgradeNft(id [32]byte, name string, symbol string, uri string, impl common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.InitOrUpgradeNft(&_SpotMarketOptimism.TransactOpts, id, name, symbol, uri, impl) -} - -// InitOrUpgradeToken is a paid mutator transaction binding the contract method 0xc6f79537. -// -// Solidity: function initOrUpgradeToken(bytes32 id, string name, string symbol, uint8 decimals, address impl) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) InitOrUpgradeToken(opts *bind.TransactOpts, id [32]byte, name string, symbol string, decimals uint8, impl common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "initOrUpgradeToken", id, name, symbol, decimals, impl) -} - -// InitOrUpgradeToken is a paid mutator transaction binding the contract method 0xc6f79537. -// -// Solidity: function initOrUpgradeToken(bytes32 id, string name, string symbol, uint8 decimals, address impl) returns() -func (_SpotMarketOptimism *SpotMarketOptimismSession) InitOrUpgradeToken(id [32]byte, name string, symbol string, decimals uint8, impl common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.InitOrUpgradeToken(&_SpotMarketOptimism.TransactOpts, id, name, symbol, decimals, impl) -} - -// InitOrUpgradeToken is a paid mutator transaction binding the contract method 0xc6f79537. -// -// Solidity: function initOrUpgradeToken(bytes32 id, string name, string symbol, uint8 decimals, address impl) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) InitOrUpgradeToken(id [32]byte, name string, symbol string, decimals uint8, impl common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.InitOrUpgradeToken(&_SpotMarketOptimism.TransactOpts, id, name, symbol, decimals, impl) -} - -// NominateMarketOwner is a paid mutator transaction binding the contract method 0x5950864b. -// -// Solidity: function nominateMarketOwner(uint128 synthMarketId, address newNominatedOwner) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) NominateMarketOwner(opts *bind.TransactOpts, synthMarketId *big.Int, newNominatedOwner common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "nominateMarketOwner", synthMarketId, newNominatedOwner) -} - -// NominateMarketOwner is a paid mutator transaction binding the contract method 0x5950864b. -// -// Solidity: function nominateMarketOwner(uint128 synthMarketId, address newNominatedOwner) returns() -func (_SpotMarketOptimism *SpotMarketOptimismSession) NominateMarketOwner(synthMarketId *big.Int, newNominatedOwner common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.NominateMarketOwner(&_SpotMarketOptimism.TransactOpts, synthMarketId, newNominatedOwner) -} - -// NominateMarketOwner is a paid mutator transaction binding the contract method 0x5950864b. -// -// Solidity: function nominateMarketOwner(uint128 synthMarketId, address newNominatedOwner) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) NominateMarketOwner(synthMarketId *big.Int, newNominatedOwner common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.NominateMarketOwner(&_SpotMarketOptimism.TransactOpts, synthMarketId, newNominatedOwner) -} - -// NominateNewOwner is a paid mutator transaction binding the contract method 0x1627540c. -// -// Solidity: function nominateNewOwner(address newNominatedOwner) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) NominateNewOwner(opts *bind.TransactOpts, newNominatedOwner common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "nominateNewOwner", newNominatedOwner) -} - -// NominateNewOwner is a paid mutator transaction binding the contract method 0x1627540c. -// -// Solidity: function nominateNewOwner(address newNominatedOwner) returns() -func (_SpotMarketOptimism *SpotMarketOptimismSession) NominateNewOwner(newNominatedOwner common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.NominateNewOwner(&_SpotMarketOptimism.TransactOpts, newNominatedOwner) -} - -// NominateNewOwner is a paid mutator transaction binding the contract method 0x1627540c. -// -// Solidity: function nominateNewOwner(address newNominatedOwner) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) NominateNewOwner(newNominatedOwner common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.NominateNewOwner(&_SpotMarketOptimism.TransactOpts, newNominatedOwner) -} - -// RegisterUnmanagedSystem is a paid mutator transaction binding the contract method 0xd245d983. -// -// Solidity: function registerUnmanagedSystem(bytes32 id, address endpoint) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) RegisterUnmanagedSystem(opts *bind.TransactOpts, id [32]byte, endpoint common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "registerUnmanagedSystem", id, endpoint) -} - -// RegisterUnmanagedSystem is a paid mutator transaction binding the contract method 0xd245d983. -// -// Solidity: function registerUnmanagedSystem(bytes32 id, address endpoint) returns() -func (_SpotMarketOptimism *SpotMarketOptimismSession) RegisterUnmanagedSystem(id [32]byte, endpoint common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.RegisterUnmanagedSystem(&_SpotMarketOptimism.TransactOpts, id, endpoint) -} - -// RegisterUnmanagedSystem is a paid mutator transaction binding the contract method 0xd245d983. -// -// Solidity: function registerUnmanagedSystem(bytes32 id, address endpoint) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) RegisterUnmanagedSystem(id [32]byte, endpoint common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.RegisterUnmanagedSystem(&_SpotMarketOptimism.TransactOpts, id, endpoint) -} - -// RemoveFromFeatureFlagAllowlist is a paid mutator transaction binding the contract method 0xb7746b59. -// -// Solidity: function removeFromFeatureFlagAllowlist(bytes32 feature, address account) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) RemoveFromFeatureFlagAllowlist(opts *bind.TransactOpts, feature [32]byte, account common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "removeFromFeatureFlagAllowlist", feature, account) -} - -// RemoveFromFeatureFlagAllowlist is a paid mutator transaction binding the contract method 0xb7746b59. -// -// Solidity: function removeFromFeatureFlagAllowlist(bytes32 feature, address account) returns() -func (_SpotMarketOptimism *SpotMarketOptimismSession) RemoveFromFeatureFlagAllowlist(feature [32]byte, account common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.RemoveFromFeatureFlagAllowlist(&_SpotMarketOptimism.TransactOpts, feature, account) -} - -// RemoveFromFeatureFlagAllowlist is a paid mutator transaction binding the contract method 0xb7746b59. -// -// Solidity: function removeFromFeatureFlagAllowlist(bytes32 feature, address account) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) RemoveFromFeatureFlagAllowlist(feature [32]byte, account common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.RemoveFromFeatureFlagAllowlist(&_SpotMarketOptimism.TransactOpts, feature, account) -} - -// RenounceMarketNomination is a paid mutator transaction binding the contract method 0x298b26bf. -// -// Solidity: function renounceMarketNomination(uint128 synthMarketId) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) RenounceMarketNomination(opts *bind.TransactOpts, synthMarketId *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "renounceMarketNomination", synthMarketId) -} - -// RenounceMarketNomination is a paid mutator transaction binding the contract method 0x298b26bf. -// -// Solidity: function renounceMarketNomination(uint128 synthMarketId) returns() -func (_SpotMarketOptimism *SpotMarketOptimismSession) RenounceMarketNomination(synthMarketId *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.RenounceMarketNomination(&_SpotMarketOptimism.TransactOpts, synthMarketId) -} - -// RenounceMarketNomination is a paid mutator transaction binding the contract method 0x298b26bf. -// -// Solidity: function renounceMarketNomination(uint128 synthMarketId) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) RenounceMarketNomination(synthMarketId *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.RenounceMarketNomination(&_SpotMarketOptimism.TransactOpts, synthMarketId) -} - -// RenounceMarketOwnership is a paid mutator transaction binding the contract method 0xbd1cdfb5. -// -// Solidity: function renounceMarketOwnership(uint128 synthMarketId) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) RenounceMarketOwnership(opts *bind.TransactOpts, synthMarketId *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "renounceMarketOwnership", synthMarketId) -} - -// RenounceMarketOwnership is a paid mutator transaction binding the contract method 0xbd1cdfb5. -// -// Solidity: function renounceMarketOwnership(uint128 synthMarketId) returns() -func (_SpotMarketOptimism *SpotMarketOptimismSession) RenounceMarketOwnership(synthMarketId *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.RenounceMarketOwnership(&_SpotMarketOptimism.TransactOpts, synthMarketId) -} - -// RenounceMarketOwnership is a paid mutator transaction binding the contract method 0xbd1cdfb5. -// -// Solidity: function renounceMarketOwnership(uint128 synthMarketId) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) RenounceMarketOwnership(synthMarketId *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.RenounceMarketOwnership(&_SpotMarketOptimism.TransactOpts, synthMarketId) -} - -// RenounceNomination is a paid mutator transaction binding the contract method 0x718fe928. -// -// Solidity: function renounceNomination() returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) RenounceNomination(opts *bind.TransactOpts) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "renounceNomination") -} - -// RenounceNomination is a paid mutator transaction binding the contract method 0x718fe928. -// -// Solidity: function renounceNomination() returns() -func (_SpotMarketOptimism *SpotMarketOptimismSession) RenounceNomination() (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.RenounceNomination(&_SpotMarketOptimism.TransactOpts) -} - -// RenounceNomination is a paid mutator transaction binding the contract method 0x718fe928. -// -// Solidity: function renounceNomination() returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) RenounceNomination() (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.RenounceNomination(&_SpotMarketOptimism.TransactOpts) -} - -// Sell is a paid mutator transaction binding the contract method 0x4d4bfbd5. -// -// Solidity: function sell(uint128 marketId, uint256 synthAmount, uint256 minUsdAmount, address referrer) returns(uint256 usdAmountReceived, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) Sell(opts *bind.TransactOpts, marketId *big.Int, synthAmount *big.Int, minUsdAmount *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "sell", marketId, synthAmount, minUsdAmount, referrer) -} - -// Sell is a paid mutator transaction binding the contract method 0x4d4bfbd5. -// -// Solidity: function sell(uint128 marketId, uint256 synthAmount, uint256 minUsdAmount, address referrer) returns(uint256 usdAmountReceived, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismSession) Sell(marketId *big.Int, synthAmount *big.Int, minUsdAmount *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.Sell(&_SpotMarketOptimism.TransactOpts, marketId, synthAmount, minUsdAmount, referrer) -} - -// Sell is a paid mutator transaction binding the contract method 0x4d4bfbd5. -// -// Solidity: function sell(uint128 marketId, uint256 synthAmount, uint256 minUsdAmount, address referrer) returns(uint256 usdAmountReceived, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) Sell(marketId *big.Int, synthAmount *big.Int, minUsdAmount *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.Sell(&_SpotMarketOptimism.TransactOpts, marketId, synthAmount, minUsdAmount, referrer) -} - -// SellExactIn is a paid mutator transaction binding the contract method 0x3d1a60e4. -// -// Solidity: function sellExactIn(uint128 marketId, uint256 synthAmount, uint256 minAmountReceived, address referrer) returns(uint256 returnAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) SellExactIn(opts *bind.TransactOpts, marketId *big.Int, synthAmount *big.Int, minAmountReceived *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "sellExactIn", marketId, synthAmount, minAmountReceived, referrer) -} - -// SellExactIn is a paid mutator transaction binding the contract method 0x3d1a60e4. -// -// Solidity: function sellExactIn(uint128 marketId, uint256 synthAmount, uint256 minAmountReceived, address referrer) returns(uint256 returnAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismSession) SellExactIn(marketId *big.Int, synthAmount *big.Int, minAmountReceived *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SellExactIn(&_SpotMarketOptimism.TransactOpts, marketId, synthAmount, minAmountReceived, referrer) -} - -// SellExactIn is a paid mutator transaction binding the contract method 0x3d1a60e4. -// -// Solidity: function sellExactIn(uint128 marketId, uint256 synthAmount, uint256 minAmountReceived, address referrer) returns(uint256 returnAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) SellExactIn(marketId *big.Int, synthAmount *big.Int, minAmountReceived *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SellExactIn(&_SpotMarketOptimism.TransactOpts, marketId, synthAmount, minAmountReceived, referrer) -} - -// SellExactOut is a paid mutator transaction binding the contract method 0x4ce94d9d. -// -// Solidity: function sellExactOut(uint128 marketId, uint256 usdAmount, uint256 maxSynthAmount, address referrer) returns(uint256 synthToBurn, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) SellExactOut(opts *bind.TransactOpts, marketId *big.Int, usdAmount *big.Int, maxSynthAmount *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "sellExactOut", marketId, usdAmount, maxSynthAmount, referrer) -} - -// SellExactOut is a paid mutator transaction binding the contract method 0x4ce94d9d. -// -// Solidity: function sellExactOut(uint128 marketId, uint256 usdAmount, uint256 maxSynthAmount, address referrer) returns(uint256 synthToBurn, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismSession) SellExactOut(marketId *big.Int, usdAmount *big.Int, maxSynthAmount *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SellExactOut(&_SpotMarketOptimism.TransactOpts, marketId, usdAmount, maxSynthAmount, referrer) -} - -// SellExactOut is a paid mutator transaction binding the contract method 0x4ce94d9d. -// -// Solidity: function sellExactOut(uint128 marketId, uint256 usdAmount, uint256 maxSynthAmount, address referrer) returns(uint256 synthToBurn, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) SellExactOut(marketId *big.Int, usdAmount *big.Int, maxSynthAmount *big.Int, referrer common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SellExactOut(&_SpotMarketOptimism.TransactOpts, marketId, usdAmount, maxSynthAmount, referrer) -} - -// SetAsyncFixedFee is a paid mutator transaction binding the contract method 0x61dcca86. -// -// Solidity: function setAsyncFixedFee(uint128 synthMarketId, uint256 asyncFixedFee) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) SetAsyncFixedFee(opts *bind.TransactOpts, synthMarketId *big.Int, asyncFixedFee *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "setAsyncFixedFee", synthMarketId, asyncFixedFee) -} - -// SetAsyncFixedFee is a paid mutator transaction binding the contract method 0x61dcca86. -// -// Solidity: function setAsyncFixedFee(uint128 synthMarketId, uint256 asyncFixedFee) returns() -func (_SpotMarketOptimism *SpotMarketOptimismSession) SetAsyncFixedFee(synthMarketId *big.Int, asyncFixedFee *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SetAsyncFixedFee(&_SpotMarketOptimism.TransactOpts, synthMarketId, asyncFixedFee) -} - -// SetAsyncFixedFee is a paid mutator transaction binding the contract method 0x61dcca86. -// -// Solidity: function setAsyncFixedFee(uint128 synthMarketId, uint256 asyncFixedFee) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) SetAsyncFixedFee(synthMarketId *big.Int, asyncFixedFee *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SetAsyncFixedFee(&_SpotMarketOptimism.TransactOpts, synthMarketId, asyncFixedFee) -} - -// SetAtomicFixedFee is a paid mutator transaction binding the contract method 0x480be91f. -// -// Solidity: function setAtomicFixedFee(uint128 synthMarketId, uint256 atomicFixedFee) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) SetAtomicFixedFee(opts *bind.TransactOpts, synthMarketId *big.Int, atomicFixedFee *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "setAtomicFixedFee", synthMarketId, atomicFixedFee) -} - -// SetAtomicFixedFee is a paid mutator transaction binding the contract method 0x480be91f. -// -// Solidity: function setAtomicFixedFee(uint128 synthMarketId, uint256 atomicFixedFee) returns() -func (_SpotMarketOptimism *SpotMarketOptimismSession) SetAtomicFixedFee(synthMarketId *big.Int, atomicFixedFee *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SetAtomicFixedFee(&_SpotMarketOptimism.TransactOpts, synthMarketId, atomicFixedFee) -} - -// SetAtomicFixedFee is a paid mutator transaction binding the contract method 0x480be91f. -// -// Solidity: function setAtomicFixedFee(uint128 synthMarketId, uint256 atomicFixedFee) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) SetAtomicFixedFee(synthMarketId *big.Int, atomicFixedFee *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SetAtomicFixedFee(&_SpotMarketOptimism.TransactOpts, synthMarketId, atomicFixedFee) -} - -// SetCollateralLeverage is a paid mutator transaction binding the contract method 0x21f7f58f. -// -// Solidity: function setCollateralLeverage(uint128 synthMarketId, uint256 collateralLeverage) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) SetCollateralLeverage(opts *bind.TransactOpts, synthMarketId *big.Int, collateralLeverage *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "setCollateralLeverage", synthMarketId, collateralLeverage) -} - -// SetCollateralLeverage is a paid mutator transaction binding the contract method 0x21f7f58f. -// -// Solidity: function setCollateralLeverage(uint128 synthMarketId, uint256 collateralLeverage) returns() -func (_SpotMarketOptimism *SpotMarketOptimismSession) SetCollateralLeverage(synthMarketId *big.Int, collateralLeverage *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SetCollateralLeverage(&_SpotMarketOptimism.TransactOpts, synthMarketId, collateralLeverage) -} - -// SetCollateralLeverage is a paid mutator transaction binding the contract method 0x21f7f58f. -// -// Solidity: function setCollateralLeverage(uint128 synthMarketId, uint256 collateralLeverage) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) SetCollateralLeverage(synthMarketId *big.Int, collateralLeverage *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SetCollateralLeverage(&_SpotMarketOptimism.TransactOpts, synthMarketId, collateralLeverage) -} - -// SetCustomTransactorFees is a paid mutator transaction binding the contract method 0x95fcd547. -// -// Solidity: function setCustomTransactorFees(uint128 synthMarketId, address transactor, uint256 fixedFeeAmount) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) SetCustomTransactorFees(opts *bind.TransactOpts, synthMarketId *big.Int, transactor common.Address, fixedFeeAmount *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "setCustomTransactorFees", synthMarketId, transactor, fixedFeeAmount) -} - -// SetCustomTransactorFees is a paid mutator transaction binding the contract method 0x95fcd547. -// -// Solidity: function setCustomTransactorFees(uint128 synthMarketId, address transactor, uint256 fixedFeeAmount) returns() -func (_SpotMarketOptimism *SpotMarketOptimismSession) SetCustomTransactorFees(synthMarketId *big.Int, transactor common.Address, fixedFeeAmount *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SetCustomTransactorFees(&_SpotMarketOptimism.TransactOpts, synthMarketId, transactor, fixedFeeAmount) -} - -// SetCustomTransactorFees is a paid mutator transaction binding the contract method 0x95fcd547. -// -// Solidity: function setCustomTransactorFees(uint128 synthMarketId, address transactor, uint256 fixedFeeAmount) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) SetCustomTransactorFees(synthMarketId *big.Int, transactor common.Address, fixedFeeAmount *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SetCustomTransactorFees(&_SpotMarketOptimism.TransactOpts, synthMarketId, transactor, fixedFeeAmount) -} - -// SetDecayRate is a paid mutator transaction binding the contract method 0xec846bac. -// -// Solidity: function setDecayRate(uint128 marketId, uint256 rate) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) SetDecayRate(opts *bind.TransactOpts, marketId *big.Int, rate *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "setDecayRate", marketId, rate) -} - -// SetDecayRate is a paid mutator transaction binding the contract method 0xec846bac. -// -// Solidity: function setDecayRate(uint128 marketId, uint256 rate) returns() -func (_SpotMarketOptimism *SpotMarketOptimismSession) SetDecayRate(marketId *big.Int, rate *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SetDecayRate(&_SpotMarketOptimism.TransactOpts, marketId, rate) -} - -// SetDecayRate is a paid mutator transaction binding the contract method 0xec846bac. -// -// Solidity: function setDecayRate(uint128 marketId, uint256 rate) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) SetDecayRate(marketId *big.Int, rate *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SetDecayRate(&_SpotMarketOptimism.TransactOpts, marketId, rate) -} - -// SetDeniers is a paid mutator transaction binding the contract method 0x715cb7d2. -// -// Solidity: function setDeniers(bytes32 feature, address[] deniers) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) SetDeniers(opts *bind.TransactOpts, feature [32]byte, deniers []common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "setDeniers", feature, deniers) -} - -// SetDeniers is a paid mutator transaction binding the contract method 0x715cb7d2. -// -// Solidity: function setDeniers(bytes32 feature, address[] deniers) returns() -func (_SpotMarketOptimism *SpotMarketOptimismSession) SetDeniers(feature [32]byte, deniers []common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SetDeniers(&_SpotMarketOptimism.TransactOpts, feature, deniers) -} - -// SetDeniers is a paid mutator transaction binding the contract method 0x715cb7d2. -// -// Solidity: function setDeniers(bytes32 feature, address[] deniers) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) SetDeniers(feature [32]byte, deniers []common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SetDeniers(&_SpotMarketOptimism.TransactOpts, feature, deniers) -} - -// SetFeatureFlagAllowAll is a paid mutator transaction binding the contract method 0x7d632bd2. -// -// Solidity: function setFeatureFlagAllowAll(bytes32 feature, bool allowAll) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) SetFeatureFlagAllowAll(opts *bind.TransactOpts, feature [32]byte, allowAll bool) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "setFeatureFlagAllowAll", feature, allowAll) -} - -// SetFeatureFlagAllowAll is a paid mutator transaction binding the contract method 0x7d632bd2. -// -// Solidity: function setFeatureFlagAllowAll(bytes32 feature, bool allowAll) returns() -func (_SpotMarketOptimism *SpotMarketOptimismSession) SetFeatureFlagAllowAll(feature [32]byte, allowAll bool) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SetFeatureFlagAllowAll(&_SpotMarketOptimism.TransactOpts, feature, allowAll) -} - -// SetFeatureFlagAllowAll is a paid mutator transaction binding the contract method 0x7d632bd2. -// -// Solidity: function setFeatureFlagAllowAll(bytes32 feature, bool allowAll) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) SetFeatureFlagAllowAll(feature [32]byte, allowAll bool) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SetFeatureFlagAllowAll(&_SpotMarketOptimism.TransactOpts, feature, allowAll) -} - -// SetFeatureFlagDenyAll is a paid mutator transaction binding the contract method 0x5e52ad6e. -// -// Solidity: function setFeatureFlagDenyAll(bytes32 feature, bool denyAll) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) SetFeatureFlagDenyAll(opts *bind.TransactOpts, feature [32]byte, denyAll bool) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "setFeatureFlagDenyAll", feature, denyAll) -} - -// SetFeatureFlagDenyAll is a paid mutator transaction binding the contract method 0x5e52ad6e. -// -// Solidity: function setFeatureFlagDenyAll(bytes32 feature, bool denyAll) returns() -func (_SpotMarketOptimism *SpotMarketOptimismSession) SetFeatureFlagDenyAll(feature [32]byte, denyAll bool) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SetFeatureFlagDenyAll(&_SpotMarketOptimism.TransactOpts, feature, denyAll) -} - -// SetFeatureFlagDenyAll is a paid mutator transaction binding the contract method 0x5e52ad6e. -// -// Solidity: function setFeatureFlagDenyAll(bytes32 feature, bool denyAll) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) SetFeatureFlagDenyAll(feature [32]byte, denyAll bool) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SetFeatureFlagDenyAll(&_SpotMarketOptimism.TransactOpts, feature, denyAll) -} - -// SetFeeCollector is a paid mutator transaction binding the contract method 0x025f6120. -// -// Solidity: function setFeeCollector(uint128 synthMarketId, address feeCollector) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) SetFeeCollector(opts *bind.TransactOpts, synthMarketId *big.Int, feeCollector common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "setFeeCollector", synthMarketId, feeCollector) -} - -// SetFeeCollector is a paid mutator transaction binding the contract method 0x025f6120. -// -// Solidity: function setFeeCollector(uint128 synthMarketId, address feeCollector) returns() -func (_SpotMarketOptimism *SpotMarketOptimismSession) SetFeeCollector(synthMarketId *big.Int, feeCollector common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SetFeeCollector(&_SpotMarketOptimism.TransactOpts, synthMarketId, feeCollector) -} - -// SetFeeCollector is a paid mutator transaction binding the contract method 0x025f6120. -// -// Solidity: function setFeeCollector(uint128 synthMarketId, address feeCollector) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) SetFeeCollector(synthMarketId *big.Int, feeCollector common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SetFeeCollector(&_SpotMarketOptimism.TransactOpts, synthMarketId, feeCollector) -} - -// SetMarketSkewScale is a paid mutator transaction binding the contract method 0x9a40f8cb. -// -// Solidity: function setMarketSkewScale(uint128 synthMarketId, uint256 skewScale) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) SetMarketSkewScale(opts *bind.TransactOpts, synthMarketId *big.Int, skewScale *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "setMarketSkewScale", synthMarketId, skewScale) -} - -// SetMarketSkewScale is a paid mutator transaction binding the contract method 0x9a40f8cb. -// -// Solidity: function setMarketSkewScale(uint128 synthMarketId, uint256 skewScale) returns() -func (_SpotMarketOptimism *SpotMarketOptimismSession) SetMarketSkewScale(synthMarketId *big.Int, skewScale *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SetMarketSkewScale(&_SpotMarketOptimism.TransactOpts, synthMarketId, skewScale) -} - -// SetMarketSkewScale is a paid mutator transaction binding the contract method 0x9a40f8cb. -// -// Solidity: function setMarketSkewScale(uint128 synthMarketId, uint256 skewScale) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) SetMarketSkewScale(synthMarketId *big.Int, skewScale *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SetMarketSkewScale(&_SpotMarketOptimism.TransactOpts, synthMarketId, skewScale) -} - -// SetMarketUtilizationFees is a paid mutator transaction binding the contract method 0x45f2601c. -// -// Solidity: function setMarketUtilizationFees(uint128 synthMarketId, uint256 utilizationFeeRate) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) SetMarketUtilizationFees(opts *bind.TransactOpts, synthMarketId *big.Int, utilizationFeeRate *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "setMarketUtilizationFees", synthMarketId, utilizationFeeRate) -} - -// SetMarketUtilizationFees is a paid mutator transaction binding the contract method 0x45f2601c. -// -// Solidity: function setMarketUtilizationFees(uint128 synthMarketId, uint256 utilizationFeeRate) returns() -func (_SpotMarketOptimism *SpotMarketOptimismSession) SetMarketUtilizationFees(synthMarketId *big.Int, utilizationFeeRate *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SetMarketUtilizationFees(&_SpotMarketOptimism.TransactOpts, synthMarketId, utilizationFeeRate) -} - -// SetMarketUtilizationFees is a paid mutator transaction binding the contract method 0x45f2601c. -// -// Solidity: function setMarketUtilizationFees(uint128 synthMarketId, uint256 utilizationFeeRate) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) SetMarketUtilizationFees(synthMarketId *big.Int, utilizationFeeRate *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SetMarketUtilizationFees(&_SpotMarketOptimism.TransactOpts, synthMarketId, utilizationFeeRate) -} - -// SetSettlementStrategyEnabled is a paid mutator transaction binding the contract method 0x7f73a891. -// -// Solidity: function setSettlementStrategyEnabled(uint128 marketId, uint256 strategyId, bool enabled) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) SetSettlementStrategyEnabled(opts *bind.TransactOpts, marketId *big.Int, strategyId *big.Int, enabled bool) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "setSettlementStrategyEnabled", marketId, strategyId, enabled) -} - -// SetSettlementStrategyEnabled is a paid mutator transaction binding the contract method 0x7f73a891. -// -// Solidity: function setSettlementStrategyEnabled(uint128 marketId, uint256 strategyId, bool enabled) returns() -func (_SpotMarketOptimism *SpotMarketOptimismSession) SetSettlementStrategyEnabled(marketId *big.Int, strategyId *big.Int, enabled bool) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SetSettlementStrategyEnabled(&_SpotMarketOptimism.TransactOpts, marketId, strategyId, enabled) -} - -// SetSettlementStrategyEnabled is a paid mutator transaction binding the contract method 0x7f73a891. -// -// Solidity: function setSettlementStrategyEnabled(uint128 marketId, uint256 strategyId, bool enabled) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) SetSettlementStrategyEnabled(marketId *big.Int, strategyId *big.Int, enabled bool) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SetSettlementStrategyEnabled(&_SpotMarketOptimism.TransactOpts, marketId, strategyId, enabled) -} - -// SetSynthImplementation is a paid mutator transaction binding the contract method 0xec04ceb1. -// -// Solidity: function setSynthImplementation(address synthImplementation) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) SetSynthImplementation(opts *bind.TransactOpts, synthImplementation common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "setSynthImplementation", synthImplementation) -} - -// SetSynthImplementation is a paid mutator transaction binding the contract method 0xec04ceb1. -// -// Solidity: function setSynthImplementation(address synthImplementation) returns() -func (_SpotMarketOptimism *SpotMarketOptimismSession) SetSynthImplementation(synthImplementation common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SetSynthImplementation(&_SpotMarketOptimism.TransactOpts, synthImplementation) -} - -// SetSynthImplementation is a paid mutator transaction binding the contract method 0xec04ceb1. -// -// Solidity: function setSynthImplementation(address synthImplementation) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) SetSynthImplementation(synthImplementation common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SetSynthImplementation(&_SpotMarketOptimism.TransactOpts, synthImplementation) -} - -// SetSynthetix is a paid mutator transaction binding the contract method 0xfec9f9da. -// -// Solidity: function setSynthetix(address synthetix) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) SetSynthetix(opts *bind.TransactOpts, synthetix common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "setSynthetix", synthetix) -} - -// SetSynthetix is a paid mutator transaction binding the contract method 0xfec9f9da. -// -// Solidity: function setSynthetix(address synthetix) returns() -func (_SpotMarketOptimism *SpotMarketOptimismSession) SetSynthetix(synthetix common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SetSynthetix(&_SpotMarketOptimism.TransactOpts, synthetix) -} - -// SetSynthetix is a paid mutator transaction binding the contract method 0xfec9f9da. -// -// Solidity: function setSynthetix(address synthetix) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) SetSynthetix(synthetix common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SetSynthetix(&_SpotMarketOptimism.TransactOpts, synthetix) -} - -// SetWrapper is a paid mutator transaction binding the contract method 0x673a21e5. -// -// Solidity: function setWrapper(uint128 marketId, address wrapCollateralType, uint256 maxWrappableAmount) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) SetWrapper(opts *bind.TransactOpts, marketId *big.Int, wrapCollateralType common.Address, maxWrappableAmount *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "setWrapper", marketId, wrapCollateralType, maxWrappableAmount) -} - -// SetWrapper is a paid mutator transaction binding the contract method 0x673a21e5. -// -// Solidity: function setWrapper(uint128 marketId, address wrapCollateralType, uint256 maxWrappableAmount) returns() -func (_SpotMarketOptimism *SpotMarketOptimismSession) SetWrapper(marketId *big.Int, wrapCollateralType common.Address, maxWrappableAmount *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SetWrapper(&_SpotMarketOptimism.TransactOpts, marketId, wrapCollateralType, maxWrappableAmount) -} - -// SetWrapper is a paid mutator transaction binding the contract method 0x673a21e5. -// -// Solidity: function setWrapper(uint128 marketId, address wrapCollateralType, uint256 maxWrappableAmount) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) SetWrapper(marketId *big.Int, wrapCollateralType common.Address, maxWrappableAmount *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SetWrapper(&_SpotMarketOptimism.TransactOpts, marketId, wrapCollateralType, maxWrappableAmount) -} - -// SetWrapperFees is a paid mutator transaction binding the contract method 0x6539b1c3. -// -// Solidity: function setWrapperFees(uint128 synthMarketId, int256 wrapFee, int256 unwrapFee) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) SetWrapperFees(opts *bind.TransactOpts, synthMarketId *big.Int, wrapFee *big.Int, unwrapFee *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "setWrapperFees", synthMarketId, wrapFee, unwrapFee) -} - -// SetWrapperFees is a paid mutator transaction binding the contract method 0x6539b1c3. -// -// Solidity: function setWrapperFees(uint128 synthMarketId, int256 wrapFee, int256 unwrapFee) returns() -func (_SpotMarketOptimism *SpotMarketOptimismSession) SetWrapperFees(synthMarketId *big.Int, wrapFee *big.Int, unwrapFee *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SetWrapperFees(&_SpotMarketOptimism.TransactOpts, synthMarketId, wrapFee, unwrapFee) -} - -// SetWrapperFees is a paid mutator transaction binding the contract method 0x6539b1c3. -// -// Solidity: function setWrapperFees(uint128 synthMarketId, int256 wrapFee, int256 unwrapFee) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) SetWrapperFees(synthMarketId *big.Int, wrapFee *big.Int, unwrapFee *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SetWrapperFees(&_SpotMarketOptimism.TransactOpts, synthMarketId, wrapFee, unwrapFee) -} - -// SettleOrder is a paid mutator transaction binding the contract method 0x9444ac48. -// -// Solidity: function settleOrder(uint128 marketId, uint128 asyncOrderId) returns(uint256 finalOrderAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) SettleOrder(opts *bind.TransactOpts, marketId *big.Int, asyncOrderId *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "settleOrder", marketId, asyncOrderId) -} - -// SettleOrder is a paid mutator transaction binding the contract method 0x9444ac48. -// -// Solidity: function settleOrder(uint128 marketId, uint128 asyncOrderId) returns(uint256 finalOrderAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismSession) SettleOrder(marketId *big.Int, asyncOrderId *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SettleOrder(&_SpotMarketOptimism.TransactOpts, marketId, asyncOrderId) -} - -// SettleOrder is a paid mutator transaction binding the contract method 0x9444ac48. -// -// Solidity: function settleOrder(uint128 marketId, uint128 asyncOrderId) returns(uint256 finalOrderAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) SettleOrder(marketId *big.Int, asyncOrderId *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SettleOrder(&_SpotMarketOptimism.TransactOpts, marketId, asyncOrderId) -} - -// SettlePythOrder is a paid mutator transaction binding the contract method 0x8a0345c6. -// -// Solidity: function settlePythOrder(bytes result, bytes extraData) payable returns(uint256 finalOrderAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) SettlePythOrder(opts *bind.TransactOpts, result []byte, extraData []byte) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "settlePythOrder", result, extraData) -} - -// SettlePythOrder is a paid mutator transaction binding the contract method 0x8a0345c6. -// -// Solidity: function settlePythOrder(bytes result, bytes extraData) payable returns(uint256 finalOrderAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismSession) SettlePythOrder(result []byte, extraData []byte) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SettlePythOrder(&_SpotMarketOptimism.TransactOpts, result, extraData) -} - -// SettlePythOrder is a paid mutator transaction binding the contract method 0x8a0345c6. -// -// Solidity: function settlePythOrder(bytes result, bytes extraData) payable returns(uint256 finalOrderAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) SettlePythOrder(result []byte, extraData []byte) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SettlePythOrder(&_SpotMarketOptimism.TransactOpts, result, extraData) -} - -// SimulateUpgradeTo is a paid mutator transaction binding the contract method 0xc7f62cda. -// -// Solidity: function simulateUpgradeTo(address newImplementation) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) SimulateUpgradeTo(opts *bind.TransactOpts, newImplementation common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "simulateUpgradeTo", newImplementation) -} - -// SimulateUpgradeTo is a paid mutator transaction binding the contract method 0xc7f62cda. -// -// Solidity: function simulateUpgradeTo(address newImplementation) returns() -func (_SpotMarketOptimism *SpotMarketOptimismSession) SimulateUpgradeTo(newImplementation common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SimulateUpgradeTo(&_SpotMarketOptimism.TransactOpts, newImplementation) -} - -// SimulateUpgradeTo is a paid mutator transaction binding the contract method 0xc7f62cda. -// -// Solidity: function simulateUpgradeTo(address newImplementation) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) SimulateUpgradeTo(newImplementation common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.SimulateUpgradeTo(&_SpotMarketOptimism.TransactOpts, newImplementation) -} - -// Unwrap is a paid mutator transaction binding the contract method 0x784dad9e. -// -// Solidity: function unwrap(uint128 marketId, uint256 unwrapAmount, uint256 minAmountReceived) returns(uint256 returnCollateralAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) Unwrap(opts *bind.TransactOpts, marketId *big.Int, unwrapAmount *big.Int, minAmountReceived *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "unwrap", marketId, unwrapAmount, minAmountReceived) -} - -// Unwrap is a paid mutator transaction binding the contract method 0x784dad9e. -// -// Solidity: function unwrap(uint128 marketId, uint256 unwrapAmount, uint256 minAmountReceived) returns(uint256 returnCollateralAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismSession) Unwrap(marketId *big.Int, unwrapAmount *big.Int, minAmountReceived *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.Unwrap(&_SpotMarketOptimism.TransactOpts, marketId, unwrapAmount, minAmountReceived) -} - -// Unwrap is a paid mutator transaction binding the contract method 0x784dad9e. -// -// Solidity: function unwrap(uint128 marketId, uint256 unwrapAmount, uint256 minAmountReceived) returns(uint256 returnCollateralAmount, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) Unwrap(marketId *big.Int, unwrapAmount *big.Int, minAmountReceived *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.Unwrap(&_SpotMarketOptimism.TransactOpts, marketId, unwrapAmount, minAmountReceived) -} - -// UpdatePriceData is a paid mutator transaction binding the contract method 0x6a0e2085. -// -// Solidity: function updatePriceData(uint128 synthMarketId, bytes32 buyFeedId, bytes32 sellFeedId) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) UpdatePriceData(opts *bind.TransactOpts, synthMarketId *big.Int, buyFeedId [32]byte, sellFeedId [32]byte) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "updatePriceData", synthMarketId, buyFeedId, sellFeedId) -} - -// UpdatePriceData is a paid mutator transaction binding the contract method 0x6a0e2085. -// -// Solidity: function updatePriceData(uint128 synthMarketId, bytes32 buyFeedId, bytes32 sellFeedId) returns() -func (_SpotMarketOptimism *SpotMarketOptimismSession) UpdatePriceData(synthMarketId *big.Int, buyFeedId [32]byte, sellFeedId [32]byte) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.UpdatePriceData(&_SpotMarketOptimism.TransactOpts, synthMarketId, buyFeedId, sellFeedId) -} - -// UpdatePriceData is a paid mutator transaction binding the contract method 0x6a0e2085. -// -// Solidity: function updatePriceData(uint128 synthMarketId, bytes32 buyFeedId, bytes32 sellFeedId) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) UpdatePriceData(synthMarketId *big.Int, buyFeedId [32]byte, sellFeedId [32]byte) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.UpdatePriceData(&_SpotMarketOptimism.TransactOpts, synthMarketId, buyFeedId, sellFeedId) -} - -// UpdateReferrerShare is a paid mutator transaction binding the contract method 0x6ad77077. -// -// Solidity: function updateReferrerShare(uint128 synthMarketId, address referrer, uint256 sharePercentage) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) UpdateReferrerShare(opts *bind.TransactOpts, synthMarketId *big.Int, referrer common.Address, sharePercentage *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "updateReferrerShare", synthMarketId, referrer, sharePercentage) -} - -// UpdateReferrerShare is a paid mutator transaction binding the contract method 0x6ad77077. -// -// Solidity: function updateReferrerShare(uint128 synthMarketId, address referrer, uint256 sharePercentage) returns() -func (_SpotMarketOptimism *SpotMarketOptimismSession) UpdateReferrerShare(synthMarketId *big.Int, referrer common.Address, sharePercentage *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.UpdateReferrerShare(&_SpotMarketOptimism.TransactOpts, synthMarketId, referrer, sharePercentage) -} - -// UpdateReferrerShare is a paid mutator transaction binding the contract method 0x6ad77077. -// -// Solidity: function updateReferrerShare(uint128 synthMarketId, address referrer, uint256 sharePercentage) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) UpdateReferrerShare(synthMarketId *big.Int, referrer common.Address, sharePercentage *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.UpdateReferrerShare(&_SpotMarketOptimism.TransactOpts, synthMarketId, referrer, sharePercentage) -} - -// UpgradeSynthImpl is a paid mutator transaction binding the contract method 0xc99d0cdd. -// -// Solidity: function upgradeSynthImpl(uint128 marketId) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) UpgradeSynthImpl(opts *bind.TransactOpts, marketId *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "upgradeSynthImpl", marketId) -} - -// UpgradeSynthImpl is a paid mutator transaction binding the contract method 0xc99d0cdd. -// -// Solidity: function upgradeSynthImpl(uint128 marketId) returns() -func (_SpotMarketOptimism *SpotMarketOptimismSession) UpgradeSynthImpl(marketId *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.UpgradeSynthImpl(&_SpotMarketOptimism.TransactOpts, marketId) -} - -// UpgradeSynthImpl is a paid mutator transaction binding the contract method 0xc99d0cdd. -// -// Solidity: function upgradeSynthImpl(uint128 marketId) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) UpgradeSynthImpl(marketId *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.UpgradeSynthImpl(&_SpotMarketOptimism.TransactOpts, marketId) -} - -// UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6. -// -// Solidity: function upgradeTo(address newImplementation) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) UpgradeTo(opts *bind.TransactOpts, newImplementation common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "upgradeTo", newImplementation) -} - -// UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6. -// -// Solidity: function upgradeTo(address newImplementation) returns() -func (_SpotMarketOptimism *SpotMarketOptimismSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.UpgradeTo(&_SpotMarketOptimism.TransactOpts, newImplementation) -} - -// UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6. -// -// Solidity: function upgradeTo(address newImplementation) returns() -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.UpgradeTo(&_SpotMarketOptimism.TransactOpts, newImplementation) -} - -// Wrap is a paid mutator transaction binding the contract method 0xd7ce770c. -// -// Solidity: function wrap(uint128 marketId, uint256 wrapAmount, uint256 minAmountReceived) returns(uint256 amountToMint, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismTransactor) Wrap(opts *bind.TransactOpts, marketId *big.Int, wrapAmount *big.Int, minAmountReceived *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.contract.Transact(opts, "wrap", marketId, wrapAmount, minAmountReceived) -} - -// Wrap is a paid mutator transaction binding the contract method 0xd7ce770c. -// -// Solidity: function wrap(uint128 marketId, uint256 wrapAmount, uint256 minAmountReceived) returns(uint256 amountToMint, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismSession) Wrap(marketId *big.Int, wrapAmount *big.Int, minAmountReceived *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.Wrap(&_SpotMarketOptimism.TransactOpts, marketId, wrapAmount, minAmountReceived) -} - -// Wrap is a paid mutator transaction binding the contract method 0xd7ce770c. -// -// Solidity: function wrap(uint128 marketId, uint256 wrapAmount, uint256 minAmountReceived) returns(uint256 amountToMint, (uint256,uint256,int256,int256) fees) -func (_SpotMarketOptimism *SpotMarketOptimismTransactorSession) Wrap(marketId *big.Int, wrapAmount *big.Int, minAmountReceived *big.Int) (*types.Transaction, error) { - return _SpotMarketOptimism.Contract.Wrap(&_SpotMarketOptimism.TransactOpts, marketId, wrapAmount, minAmountReceived) -} - -// SpotMarketOptimismAssociatedSystemSetIterator is returned from FilterAssociatedSystemSet and is used to iterate over the raw logs and unpacked data for AssociatedSystemSet events raised by the SpotMarketOptimism contract. -type SpotMarketOptimismAssociatedSystemSetIterator struct { - Event *SpotMarketOptimismAssociatedSystemSet // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketOptimismAssociatedSystemSetIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismAssociatedSystemSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismAssociatedSystemSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketOptimismAssociatedSystemSetIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketOptimismAssociatedSystemSetIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketOptimismAssociatedSystemSet represents a AssociatedSystemSet event raised by the SpotMarketOptimism contract. -type SpotMarketOptimismAssociatedSystemSet struct { - Kind [32]byte - Id [32]byte - Proxy common.Address - Impl common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterAssociatedSystemSet is a free log retrieval operation binding the contract event 0xc8551a5a03a7b06d5d20159b3b8839429a7aefab4bf3d020f1b65fa903ccb3d2. -// -// Solidity: event AssociatedSystemSet(bytes32 indexed kind, bytes32 indexed id, address proxy, address impl) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) FilterAssociatedSystemSet(opts *bind.FilterOpts, kind [][32]byte, id [][32]byte) (*SpotMarketOptimismAssociatedSystemSetIterator, error) { - - var kindRule []interface{} - for _, kindItem := range kind { - kindRule = append(kindRule, kindItem) - } - var idRule []interface{} - for _, idItem := range id { - idRule = append(idRule, idItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.FilterLogs(opts, "AssociatedSystemSet", kindRule, idRule) - if err != nil { - return nil, err - } - return &SpotMarketOptimismAssociatedSystemSetIterator{contract: _SpotMarketOptimism.contract, event: "AssociatedSystemSet", logs: logs, sub: sub}, nil -} - -// WatchAssociatedSystemSet is a free log subscription operation binding the contract event 0xc8551a5a03a7b06d5d20159b3b8839429a7aefab4bf3d020f1b65fa903ccb3d2. -// -// Solidity: event AssociatedSystemSet(bytes32 indexed kind, bytes32 indexed id, address proxy, address impl) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) WatchAssociatedSystemSet(opts *bind.WatchOpts, sink chan<- *SpotMarketOptimismAssociatedSystemSet, kind [][32]byte, id [][32]byte) (event.Subscription, error) { - - var kindRule []interface{} - for _, kindItem := range kind { - kindRule = append(kindRule, kindItem) - } - var idRule []interface{} - for _, idItem := range id { - idRule = append(idRule, idItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.WatchLogs(opts, "AssociatedSystemSet", kindRule, idRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketOptimismAssociatedSystemSet) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "AssociatedSystemSet", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseAssociatedSystemSet is a log parse operation binding the contract event 0xc8551a5a03a7b06d5d20159b3b8839429a7aefab4bf3d020f1b65fa903ccb3d2. -// -// Solidity: event AssociatedSystemSet(bytes32 indexed kind, bytes32 indexed id, address proxy, address impl) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) ParseAssociatedSystemSet(log types.Log) (*SpotMarketOptimismAssociatedSystemSet, error) { - event := new(SpotMarketOptimismAssociatedSystemSet) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "AssociatedSystemSet", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketOptimismAsyncFixedFeeSetIterator is returned from FilterAsyncFixedFeeSet and is used to iterate over the raw logs and unpacked data for AsyncFixedFeeSet events raised by the SpotMarketOptimism contract. -type SpotMarketOptimismAsyncFixedFeeSetIterator struct { - Event *SpotMarketOptimismAsyncFixedFeeSet // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketOptimismAsyncFixedFeeSetIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismAsyncFixedFeeSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismAsyncFixedFeeSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketOptimismAsyncFixedFeeSetIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketOptimismAsyncFixedFeeSetIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketOptimismAsyncFixedFeeSet represents a AsyncFixedFeeSet event raised by the SpotMarketOptimism contract. -type SpotMarketOptimismAsyncFixedFeeSet struct { - SynthMarketId *big.Int - AsyncFixedFee *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterAsyncFixedFeeSet is a free log retrieval operation binding the contract event 0xaef59d229d195c5b8372221acbf4041b926fb1616a95f93e44379e4f30d57bfe. -// -// Solidity: event AsyncFixedFeeSet(uint256 indexed synthMarketId, uint256 asyncFixedFee) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) FilterAsyncFixedFeeSet(opts *bind.FilterOpts, synthMarketId []*big.Int) (*SpotMarketOptimismAsyncFixedFeeSetIterator, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.FilterLogs(opts, "AsyncFixedFeeSet", synthMarketIdRule) - if err != nil { - return nil, err - } - return &SpotMarketOptimismAsyncFixedFeeSetIterator{contract: _SpotMarketOptimism.contract, event: "AsyncFixedFeeSet", logs: logs, sub: sub}, nil -} - -// WatchAsyncFixedFeeSet is a free log subscription operation binding the contract event 0xaef59d229d195c5b8372221acbf4041b926fb1616a95f93e44379e4f30d57bfe. -// -// Solidity: event AsyncFixedFeeSet(uint256 indexed synthMarketId, uint256 asyncFixedFee) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) WatchAsyncFixedFeeSet(opts *bind.WatchOpts, sink chan<- *SpotMarketOptimismAsyncFixedFeeSet, synthMarketId []*big.Int) (event.Subscription, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.WatchLogs(opts, "AsyncFixedFeeSet", synthMarketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketOptimismAsyncFixedFeeSet) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "AsyncFixedFeeSet", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseAsyncFixedFeeSet is a log parse operation binding the contract event 0xaef59d229d195c5b8372221acbf4041b926fb1616a95f93e44379e4f30d57bfe. -// -// Solidity: event AsyncFixedFeeSet(uint256 indexed synthMarketId, uint256 asyncFixedFee) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) ParseAsyncFixedFeeSet(log types.Log) (*SpotMarketOptimismAsyncFixedFeeSet, error) { - event := new(SpotMarketOptimismAsyncFixedFeeSet) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "AsyncFixedFeeSet", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketOptimismAtomicFixedFeeSetIterator is returned from FilterAtomicFixedFeeSet and is used to iterate over the raw logs and unpacked data for AtomicFixedFeeSet events raised by the SpotMarketOptimism contract. -type SpotMarketOptimismAtomicFixedFeeSetIterator struct { - Event *SpotMarketOptimismAtomicFixedFeeSet // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketOptimismAtomicFixedFeeSetIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismAtomicFixedFeeSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismAtomicFixedFeeSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketOptimismAtomicFixedFeeSetIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketOptimismAtomicFixedFeeSetIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketOptimismAtomicFixedFeeSet represents a AtomicFixedFeeSet event raised by the SpotMarketOptimism contract. -type SpotMarketOptimismAtomicFixedFeeSet struct { - SynthMarketId *big.Int - AtomicFixedFee *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterAtomicFixedFeeSet is a free log retrieval operation binding the contract event 0x6b0a526b06b2f30ba2d5b063c2ef81547512216d37c540b86039e3a19f1d2b3f. -// -// Solidity: event AtomicFixedFeeSet(uint256 indexed synthMarketId, uint256 atomicFixedFee) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) FilterAtomicFixedFeeSet(opts *bind.FilterOpts, synthMarketId []*big.Int) (*SpotMarketOptimismAtomicFixedFeeSetIterator, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.FilterLogs(opts, "AtomicFixedFeeSet", synthMarketIdRule) - if err != nil { - return nil, err - } - return &SpotMarketOptimismAtomicFixedFeeSetIterator{contract: _SpotMarketOptimism.contract, event: "AtomicFixedFeeSet", logs: logs, sub: sub}, nil -} - -// WatchAtomicFixedFeeSet is a free log subscription operation binding the contract event 0x6b0a526b06b2f30ba2d5b063c2ef81547512216d37c540b86039e3a19f1d2b3f. -// -// Solidity: event AtomicFixedFeeSet(uint256 indexed synthMarketId, uint256 atomicFixedFee) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) WatchAtomicFixedFeeSet(opts *bind.WatchOpts, sink chan<- *SpotMarketOptimismAtomicFixedFeeSet, synthMarketId []*big.Int) (event.Subscription, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.WatchLogs(opts, "AtomicFixedFeeSet", synthMarketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketOptimismAtomicFixedFeeSet) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "AtomicFixedFeeSet", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseAtomicFixedFeeSet is a log parse operation binding the contract event 0x6b0a526b06b2f30ba2d5b063c2ef81547512216d37c540b86039e3a19f1d2b3f. -// -// Solidity: event AtomicFixedFeeSet(uint256 indexed synthMarketId, uint256 atomicFixedFee) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) ParseAtomicFixedFeeSet(log types.Log) (*SpotMarketOptimismAtomicFixedFeeSet, error) { - event := new(SpotMarketOptimismAtomicFixedFeeSet) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "AtomicFixedFeeSet", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketOptimismCollateralLeverageSetIterator is returned from FilterCollateralLeverageSet and is used to iterate over the raw logs and unpacked data for CollateralLeverageSet events raised by the SpotMarketOptimism contract. -type SpotMarketOptimismCollateralLeverageSetIterator struct { - Event *SpotMarketOptimismCollateralLeverageSet // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketOptimismCollateralLeverageSetIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismCollateralLeverageSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismCollateralLeverageSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketOptimismCollateralLeverageSetIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketOptimismCollateralLeverageSetIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketOptimismCollateralLeverageSet represents a CollateralLeverageSet event raised by the SpotMarketOptimism contract. -type SpotMarketOptimismCollateralLeverageSet struct { - SynthMarketId *big.Int - CollateralLeverage *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterCollateralLeverageSet is a free log retrieval operation binding the contract event 0x83113c0e8d811f7e7017948357e945a1a8a6b6fc0d76c8512ffdd6f6766e8a13. -// -// Solidity: event CollateralLeverageSet(uint256 indexed synthMarketId, uint256 collateralLeverage) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) FilterCollateralLeverageSet(opts *bind.FilterOpts, synthMarketId []*big.Int) (*SpotMarketOptimismCollateralLeverageSetIterator, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.FilterLogs(opts, "CollateralLeverageSet", synthMarketIdRule) - if err != nil { - return nil, err - } - return &SpotMarketOptimismCollateralLeverageSetIterator{contract: _SpotMarketOptimism.contract, event: "CollateralLeverageSet", logs: logs, sub: sub}, nil -} - -// WatchCollateralLeverageSet is a free log subscription operation binding the contract event 0x83113c0e8d811f7e7017948357e945a1a8a6b6fc0d76c8512ffdd6f6766e8a13. -// -// Solidity: event CollateralLeverageSet(uint256 indexed synthMarketId, uint256 collateralLeverage) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) WatchCollateralLeverageSet(opts *bind.WatchOpts, sink chan<- *SpotMarketOptimismCollateralLeverageSet, synthMarketId []*big.Int) (event.Subscription, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.WatchLogs(opts, "CollateralLeverageSet", synthMarketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketOptimismCollateralLeverageSet) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "CollateralLeverageSet", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseCollateralLeverageSet is a log parse operation binding the contract event 0x83113c0e8d811f7e7017948357e945a1a8a6b6fc0d76c8512ffdd6f6766e8a13. -// -// Solidity: event CollateralLeverageSet(uint256 indexed synthMarketId, uint256 collateralLeverage) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) ParseCollateralLeverageSet(log types.Log) (*SpotMarketOptimismCollateralLeverageSet, error) { - event := new(SpotMarketOptimismCollateralLeverageSet) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "CollateralLeverageSet", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketOptimismDecayRateUpdatedIterator is returned from FilterDecayRateUpdated and is used to iterate over the raw logs and unpacked data for DecayRateUpdated events raised by the SpotMarketOptimism contract. -type SpotMarketOptimismDecayRateUpdatedIterator struct { - Event *SpotMarketOptimismDecayRateUpdated // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketOptimismDecayRateUpdatedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismDecayRateUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismDecayRateUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketOptimismDecayRateUpdatedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketOptimismDecayRateUpdatedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketOptimismDecayRateUpdated represents a DecayRateUpdated event raised by the SpotMarketOptimism contract. -type SpotMarketOptimismDecayRateUpdated struct { - MarketId *big.Int - Rate *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterDecayRateUpdated is a free log retrieval operation binding the contract event 0x8a1ed33cd71d1533eadd1d4eb0ea2ae64da7d343cb2a932fdf135f345264e2b5. -// -// Solidity: event DecayRateUpdated(uint128 indexed marketId, uint256 rate) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) FilterDecayRateUpdated(opts *bind.FilterOpts, marketId []*big.Int) (*SpotMarketOptimismDecayRateUpdatedIterator, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.FilterLogs(opts, "DecayRateUpdated", marketIdRule) - if err != nil { - return nil, err - } - return &SpotMarketOptimismDecayRateUpdatedIterator{contract: _SpotMarketOptimism.contract, event: "DecayRateUpdated", logs: logs, sub: sub}, nil -} - -// WatchDecayRateUpdated is a free log subscription operation binding the contract event 0x8a1ed33cd71d1533eadd1d4eb0ea2ae64da7d343cb2a932fdf135f345264e2b5. -// -// Solidity: event DecayRateUpdated(uint128 indexed marketId, uint256 rate) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) WatchDecayRateUpdated(opts *bind.WatchOpts, sink chan<- *SpotMarketOptimismDecayRateUpdated, marketId []*big.Int) (event.Subscription, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.WatchLogs(opts, "DecayRateUpdated", marketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketOptimismDecayRateUpdated) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "DecayRateUpdated", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseDecayRateUpdated is a log parse operation binding the contract event 0x8a1ed33cd71d1533eadd1d4eb0ea2ae64da7d343cb2a932fdf135f345264e2b5. -// -// Solidity: event DecayRateUpdated(uint128 indexed marketId, uint256 rate) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) ParseDecayRateUpdated(log types.Log) (*SpotMarketOptimismDecayRateUpdated, error) { - event := new(SpotMarketOptimismDecayRateUpdated) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "DecayRateUpdated", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketOptimismFeatureFlagAllowAllSetIterator is returned from FilterFeatureFlagAllowAllSet and is used to iterate over the raw logs and unpacked data for FeatureFlagAllowAllSet events raised by the SpotMarketOptimism contract. -type SpotMarketOptimismFeatureFlagAllowAllSetIterator struct { - Event *SpotMarketOptimismFeatureFlagAllowAllSet // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketOptimismFeatureFlagAllowAllSetIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismFeatureFlagAllowAllSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismFeatureFlagAllowAllSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketOptimismFeatureFlagAllowAllSetIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketOptimismFeatureFlagAllowAllSetIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketOptimismFeatureFlagAllowAllSet represents a FeatureFlagAllowAllSet event raised by the SpotMarketOptimism contract. -type SpotMarketOptimismFeatureFlagAllowAllSet struct { - Feature [32]byte - AllowAll bool - Raw types.Log // Blockchain specific contextual infos -} - -// FilterFeatureFlagAllowAllSet is a free log retrieval operation binding the contract event 0xa806035d8c8de7cd43725250d3fbf9ee7abe3b99ffb892897913d8a21721121d. -// -// Solidity: event FeatureFlagAllowAllSet(bytes32 indexed feature, bool allowAll) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) FilterFeatureFlagAllowAllSet(opts *bind.FilterOpts, feature [][32]byte) (*SpotMarketOptimismFeatureFlagAllowAllSetIterator, error) { - - var featureRule []interface{} - for _, featureItem := range feature { - featureRule = append(featureRule, featureItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.FilterLogs(opts, "FeatureFlagAllowAllSet", featureRule) - if err != nil { - return nil, err - } - return &SpotMarketOptimismFeatureFlagAllowAllSetIterator{contract: _SpotMarketOptimism.contract, event: "FeatureFlagAllowAllSet", logs: logs, sub: sub}, nil -} - -// WatchFeatureFlagAllowAllSet is a free log subscription operation binding the contract event 0xa806035d8c8de7cd43725250d3fbf9ee7abe3b99ffb892897913d8a21721121d. -// -// Solidity: event FeatureFlagAllowAllSet(bytes32 indexed feature, bool allowAll) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) WatchFeatureFlagAllowAllSet(opts *bind.WatchOpts, sink chan<- *SpotMarketOptimismFeatureFlagAllowAllSet, feature [][32]byte) (event.Subscription, error) { - - var featureRule []interface{} - for _, featureItem := range feature { - featureRule = append(featureRule, featureItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.WatchLogs(opts, "FeatureFlagAllowAllSet", featureRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketOptimismFeatureFlagAllowAllSet) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "FeatureFlagAllowAllSet", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseFeatureFlagAllowAllSet is a log parse operation binding the contract event 0xa806035d8c8de7cd43725250d3fbf9ee7abe3b99ffb892897913d8a21721121d. -// -// Solidity: event FeatureFlagAllowAllSet(bytes32 indexed feature, bool allowAll) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) ParseFeatureFlagAllowAllSet(log types.Log) (*SpotMarketOptimismFeatureFlagAllowAllSet, error) { - event := new(SpotMarketOptimismFeatureFlagAllowAllSet) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "FeatureFlagAllowAllSet", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketOptimismFeatureFlagAllowlistAddedIterator is returned from FilterFeatureFlagAllowlistAdded and is used to iterate over the raw logs and unpacked data for FeatureFlagAllowlistAdded events raised by the SpotMarketOptimism contract. -type SpotMarketOptimismFeatureFlagAllowlistAddedIterator struct { - Event *SpotMarketOptimismFeatureFlagAllowlistAdded // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketOptimismFeatureFlagAllowlistAddedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismFeatureFlagAllowlistAdded) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismFeatureFlagAllowlistAdded) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketOptimismFeatureFlagAllowlistAddedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketOptimismFeatureFlagAllowlistAddedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketOptimismFeatureFlagAllowlistAdded represents a FeatureFlagAllowlistAdded event raised by the SpotMarketOptimism contract. -type SpotMarketOptimismFeatureFlagAllowlistAdded struct { - Feature [32]byte - Account common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterFeatureFlagAllowlistAdded is a free log retrieval operation binding the contract event 0x30b9b4104e2fb00b4f980e414dcd828e691c8fcb286f0c73d7267c3a2de49383. -// -// Solidity: event FeatureFlagAllowlistAdded(bytes32 indexed feature, address account) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) FilterFeatureFlagAllowlistAdded(opts *bind.FilterOpts, feature [][32]byte) (*SpotMarketOptimismFeatureFlagAllowlistAddedIterator, error) { - - var featureRule []interface{} - for _, featureItem := range feature { - featureRule = append(featureRule, featureItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.FilterLogs(opts, "FeatureFlagAllowlistAdded", featureRule) - if err != nil { - return nil, err - } - return &SpotMarketOptimismFeatureFlagAllowlistAddedIterator{contract: _SpotMarketOptimism.contract, event: "FeatureFlagAllowlistAdded", logs: logs, sub: sub}, nil -} - -// WatchFeatureFlagAllowlistAdded is a free log subscription operation binding the contract event 0x30b9b4104e2fb00b4f980e414dcd828e691c8fcb286f0c73d7267c3a2de49383. -// -// Solidity: event FeatureFlagAllowlistAdded(bytes32 indexed feature, address account) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) WatchFeatureFlagAllowlistAdded(opts *bind.WatchOpts, sink chan<- *SpotMarketOptimismFeatureFlagAllowlistAdded, feature [][32]byte) (event.Subscription, error) { - - var featureRule []interface{} - for _, featureItem := range feature { - featureRule = append(featureRule, featureItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.WatchLogs(opts, "FeatureFlagAllowlistAdded", featureRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketOptimismFeatureFlagAllowlistAdded) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "FeatureFlagAllowlistAdded", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseFeatureFlagAllowlistAdded is a log parse operation binding the contract event 0x30b9b4104e2fb00b4f980e414dcd828e691c8fcb286f0c73d7267c3a2de49383. -// -// Solidity: event FeatureFlagAllowlistAdded(bytes32 indexed feature, address account) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) ParseFeatureFlagAllowlistAdded(log types.Log) (*SpotMarketOptimismFeatureFlagAllowlistAdded, error) { - event := new(SpotMarketOptimismFeatureFlagAllowlistAdded) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "FeatureFlagAllowlistAdded", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketOptimismFeatureFlagAllowlistRemovedIterator is returned from FilterFeatureFlagAllowlistRemoved and is used to iterate over the raw logs and unpacked data for FeatureFlagAllowlistRemoved events raised by the SpotMarketOptimism contract. -type SpotMarketOptimismFeatureFlagAllowlistRemovedIterator struct { - Event *SpotMarketOptimismFeatureFlagAllowlistRemoved // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketOptimismFeatureFlagAllowlistRemovedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismFeatureFlagAllowlistRemoved) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismFeatureFlagAllowlistRemoved) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketOptimismFeatureFlagAllowlistRemovedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketOptimismFeatureFlagAllowlistRemovedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketOptimismFeatureFlagAllowlistRemoved represents a FeatureFlagAllowlistRemoved event raised by the SpotMarketOptimism contract. -type SpotMarketOptimismFeatureFlagAllowlistRemoved struct { - Feature [32]byte - Account common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterFeatureFlagAllowlistRemoved is a free log retrieval operation binding the contract event 0xb44a47e11880cc865e8ea382561e406dea8c895366c58e3908f05708b2880890. -// -// Solidity: event FeatureFlagAllowlistRemoved(bytes32 indexed feature, address account) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) FilterFeatureFlagAllowlistRemoved(opts *bind.FilterOpts, feature [][32]byte) (*SpotMarketOptimismFeatureFlagAllowlistRemovedIterator, error) { - - var featureRule []interface{} - for _, featureItem := range feature { - featureRule = append(featureRule, featureItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.FilterLogs(opts, "FeatureFlagAllowlistRemoved", featureRule) - if err != nil { - return nil, err - } - return &SpotMarketOptimismFeatureFlagAllowlistRemovedIterator{contract: _SpotMarketOptimism.contract, event: "FeatureFlagAllowlistRemoved", logs: logs, sub: sub}, nil -} - -// WatchFeatureFlagAllowlistRemoved is a free log subscription operation binding the contract event 0xb44a47e11880cc865e8ea382561e406dea8c895366c58e3908f05708b2880890. -// -// Solidity: event FeatureFlagAllowlistRemoved(bytes32 indexed feature, address account) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) WatchFeatureFlagAllowlistRemoved(opts *bind.WatchOpts, sink chan<- *SpotMarketOptimismFeatureFlagAllowlistRemoved, feature [][32]byte) (event.Subscription, error) { - - var featureRule []interface{} - for _, featureItem := range feature { - featureRule = append(featureRule, featureItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.WatchLogs(opts, "FeatureFlagAllowlistRemoved", featureRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketOptimismFeatureFlagAllowlistRemoved) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "FeatureFlagAllowlistRemoved", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseFeatureFlagAllowlistRemoved is a log parse operation binding the contract event 0xb44a47e11880cc865e8ea382561e406dea8c895366c58e3908f05708b2880890. -// -// Solidity: event FeatureFlagAllowlistRemoved(bytes32 indexed feature, address account) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) ParseFeatureFlagAllowlistRemoved(log types.Log) (*SpotMarketOptimismFeatureFlagAllowlistRemoved, error) { - event := new(SpotMarketOptimismFeatureFlagAllowlistRemoved) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "FeatureFlagAllowlistRemoved", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketOptimismFeatureFlagDeniersResetIterator is returned from FilterFeatureFlagDeniersReset and is used to iterate over the raw logs and unpacked data for FeatureFlagDeniersReset events raised by the SpotMarketOptimism contract. -type SpotMarketOptimismFeatureFlagDeniersResetIterator struct { - Event *SpotMarketOptimismFeatureFlagDeniersReset // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketOptimismFeatureFlagDeniersResetIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismFeatureFlagDeniersReset) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismFeatureFlagDeniersReset) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketOptimismFeatureFlagDeniersResetIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketOptimismFeatureFlagDeniersResetIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketOptimismFeatureFlagDeniersReset represents a FeatureFlagDeniersReset event raised by the SpotMarketOptimism contract. -type SpotMarketOptimismFeatureFlagDeniersReset struct { - Feature [32]byte - Deniers []common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterFeatureFlagDeniersReset is a free log retrieval operation binding the contract event 0x74d48d0b51a70680130c00decd06b4d536fbb3cee16a3b0bdd2309c264dcbd13. -// -// Solidity: event FeatureFlagDeniersReset(bytes32 indexed feature, address[] deniers) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) FilterFeatureFlagDeniersReset(opts *bind.FilterOpts, feature [][32]byte) (*SpotMarketOptimismFeatureFlagDeniersResetIterator, error) { - - var featureRule []interface{} - for _, featureItem := range feature { - featureRule = append(featureRule, featureItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.FilterLogs(opts, "FeatureFlagDeniersReset", featureRule) - if err != nil { - return nil, err - } - return &SpotMarketOptimismFeatureFlagDeniersResetIterator{contract: _SpotMarketOptimism.contract, event: "FeatureFlagDeniersReset", logs: logs, sub: sub}, nil -} - -// WatchFeatureFlagDeniersReset is a free log subscription operation binding the contract event 0x74d48d0b51a70680130c00decd06b4d536fbb3cee16a3b0bdd2309c264dcbd13. -// -// Solidity: event FeatureFlagDeniersReset(bytes32 indexed feature, address[] deniers) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) WatchFeatureFlagDeniersReset(opts *bind.WatchOpts, sink chan<- *SpotMarketOptimismFeatureFlagDeniersReset, feature [][32]byte) (event.Subscription, error) { - - var featureRule []interface{} - for _, featureItem := range feature { - featureRule = append(featureRule, featureItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.WatchLogs(opts, "FeatureFlagDeniersReset", featureRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketOptimismFeatureFlagDeniersReset) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "FeatureFlagDeniersReset", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseFeatureFlagDeniersReset is a log parse operation binding the contract event 0x74d48d0b51a70680130c00decd06b4d536fbb3cee16a3b0bdd2309c264dcbd13. -// -// Solidity: event FeatureFlagDeniersReset(bytes32 indexed feature, address[] deniers) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) ParseFeatureFlagDeniersReset(log types.Log) (*SpotMarketOptimismFeatureFlagDeniersReset, error) { - event := new(SpotMarketOptimismFeatureFlagDeniersReset) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "FeatureFlagDeniersReset", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketOptimismFeatureFlagDenyAllSetIterator is returned from FilterFeatureFlagDenyAllSet and is used to iterate over the raw logs and unpacked data for FeatureFlagDenyAllSet events raised by the SpotMarketOptimism contract. -type SpotMarketOptimismFeatureFlagDenyAllSetIterator struct { - Event *SpotMarketOptimismFeatureFlagDenyAllSet // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketOptimismFeatureFlagDenyAllSetIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismFeatureFlagDenyAllSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismFeatureFlagDenyAllSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketOptimismFeatureFlagDenyAllSetIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketOptimismFeatureFlagDenyAllSetIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketOptimismFeatureFlagDenyAllSet represents a FeatureFlagDenyAllSet event raised by the SpotMarketOptimism contract. -type SpotMarketOptimismFeatureFlagDenyAllSet struct { - Feature [32]byte - DenyAll bool - Raw types.Log // Blockchain specific contextual infos -} - -// FilterFeatureFlagDenyAllSet is a free log retrieval operation binding the contract event 0x97f76d2e384948e28ddd4280a4e76e8600acc328a0c0910c93682a0fccc02018. -// -// Solidity: event FeatureFlagDenyAllSet(bytes32 indexed feature, bool denyAll) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) FilterFeatureFlagDenyAllSet(opts *bind.FilterOpts, feature [][32]byte) (*SpotMarketOptimismFeatureFlagDenyAllSetIterator, error) { - - var featureRule []interface{} - for _, featureItem := range feature { - featureRule = append(featureRule, featureItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.FilterLogs(opts, "FeatureFlagDenyAllSet", featureRule) - if err != nil { - return nil, err - } - return &SpotMarketOptimismFeatureFlagDenyAllSetIterator{contract: _SpotMarketOptimism.contract, event: "FeatureFlagDenyAllSet", logs: logs, sub: sub}, nil -} - -// WatchFeatureFlagDenyAllSet is a free log subscription operation binding the contract event 0x97f76d2e384948e28ddd4280a4e76e8600acc328a0c0910c93682a0fccc02018. -// -// Solidity: event FeatureFlagDenyAllSet(bytes32 indexed feature, bool denyAll) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) WatchFeatureFlagDenyAllSet(opts *bind.WatchOpts, sink chan<- *SpotMarketOptimismFeatureFlagDenyAllSet, feature [][32]byte) (event.Subscription, error) { - - var featureRule []interface{} - for _, featureItem := range feature { - featureRule = append(featureRule, featureItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.WatchLogs(opts, "FeatureFlagDenyAllSet", featureRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketOptimismFeatureFlagDenyAllSet) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "FeatureFlagDenyAllSet", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseFeatureFlagDenyAllSet is a log parse operation binding the contract event 0x97f76d2e384948e28ddd4280a4e76e8600acc328a0c0910c93682a0fccc02018. -// -// Solidity: event FeatureFlagDenyAllSet(bytes32 indexed feature, bool denyAll) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) ParseFeatureFlagDenyAllSet(log types.Log) (*SpotMarketOptimismFeatureFlagDenyAllSet, error) { - event := new(SpotMarketOptimismFeatureFlagDenyAllSet) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "FeatureFlagDenyAllSet", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketOptimismFeeCollectorSetIterator is returned from FilterFeeCollectorSet and is used to iterate over the raw logs and unpacked data for FeeCollectorSet events raised by the SpotMarketOptimism contract. -type SpotMarketOptimismFeeCollectorSetIterator struct { - Event *SpotMarketOptimismFeeCollectorSet // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketOptimismFeeCollectorSetIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismFeeCollectorSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismFeeCollectorSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketOptimismFeeCollectorSetIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketOptimismFeeCollectorSetIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketOptimismFeeCollectorSet represents a FeeCollectorSet event raised by the SpotMarketOptimism contract. -type SpotMarketOptimismFeeCollectorSet struct { - SynthMarketId *big.Int - FeeCollector common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterFeeCollectorSet is a free log retrieval operation binding the contract event 0x9559a9b7e14bf53553c17859be245a108350185ec859ec690012b13b820b7ef4. -// -// Solidity: event FeeCollectorSet(uint256 indexed synthMarketId, address feeCollector) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) FilterFeeCollectorSet(opts *bind.FilterOpts, synthMarketId []*big.Int) (*SpotMarketOptimismFeeCollectorSetIterator, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.FilterLogs(opts, "FeeCollectorSet", synthMarketIdRule) - if err != nil { - return nil, err - } - return &SpotMarketOptimismFeeCollectorSetIterator{contract: _SpotMarketOptimism.contract, event: "FeeCollectorSet", logs: logs, sub: sub}, nil -} - -// WatchFeeCollectorSet is a free log subscription operation binding the contract event 0x9559a9b7e14bf53553c17859be245a108350185ec859ec690012b13b820b7ef4. -// -// Solidity: event FeeCollectorSet(uint256 indexed synthMarketId, address feeCollector) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) WatchFeeCollectorSet(opts *bind.WatchOpts, sink chan<- *SpotMarketOptimismFeeCollectorSet, synthMarketId []*big.Int) (event.Subscription, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.WatchLogs(opts, "FeeCollectorSet", synthMarketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketOptimismFeeCollectorSet) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "FeeCollectorSet", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseFeeCollectorSet is a log parse operation binding the contract event 0x9559a9b7e14bf53553c17859be245a108350185ec859ec690012b13b820b7ef4. -// -// Solidity: event FeeCollectorSet(uint256 indexed synthMarketId, address feeCollector) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) ParseFeeCollectorSet(log types.Log) (*SpotMarketOptimismFeeCollectorSet, error) { - event := new(SpotMarketOptimismFeeCollectorSet) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "FeeCollectorSet", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketOptimismMarketNominationRenouncedIterator is returned from FilterMarketNominationRenounced and is used to iterate over the raw logs and unpacked data for MarketNominationRenounced events raised by the SpotMarketOptimism contract. -type SpotMarketOptimismMarketNominationRenouncedIterator struct { - Event *SpotMarketOptimismMarketNominationRenounced // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketOptimismMarketNominationRenouncedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismMarketNominationRenounced) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismMarketNominationRenounced) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketOptimismMarketNominationRenouncedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketOptimismMarketNominationRenouncedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketOptimismMarketNominationRenounced represents a MarketNominationRenounced event raised by the SpotMarketOptimism contract. -type SpotMarketOptimismMarketNominationRenounced struct { - MarketId *big.Int - Nominee common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterMarketNominationRenounced is a free log retrieval operation binding the contract event 0xf5b87e3c7e0caa8e0d233591fff85e764ebc73d5c7027cce729fd4beab04c2b6. -// -// Solidity: event MarketNominationRenounced(uint128 indexed marketId, address nominee) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) FilterMarketNominationRenounced(opts *bind.FilterOpts, marketId []*big.Int) (*SpotMarketOptimismMarketNominationRenouncedIterator, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.FilterLogs(opts, "MarketNominationRenounced", marketIdRule) - if err != nil { - return nil, err - } - return &SpotMarketOptimismMarketNominationRenouncedIterator{contract: _SpotMarketOptimism.contract, event: "MarketNominationRenounced", logs: logs, sub: sub}, nil -} - -// WatchMarketNominationRenounced is a free log subscription operation binding the contract event 0xf5b87e3c7e0caa8e0d233591fff85e764ebc73d5c7027cce729fd4beab04c2b6. -// -// Solidity: event MarketNominationRenounced(uint128 indexed marketId, address nominee) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) WatchMarketNominationRenounced(opts *bind.WatchOpts, sink chan<- *SpotMarketOptimismMarketNominationRenounced, marketId []*big.Int) (event.Subscription, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.WatchLogs(opts, "MarketNominationRenounced", marketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketOptimismMarketNominationRenounced) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "MarketNominationRenounced", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseMarketNominationRenounced is a log parse operation binding the contract event 0xf5b87e3c7e0caa8e0d233591fff85e764ebc73d5c7027cce729fd4beab04c2b6. -// -// Solidity: event MarketNominationRenounced(uint128 indexed marketId, address nominee) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) ParseMarketNominationRenounced(log types.Log) (*SpotMarketOptimismMarketNominationRenounced, error) { - event := new(SpotMarketOptimismMarketNominationRenounced) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "MarketNominationRenounced", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketOptimismMarketOwnerChangedIterator is returned from FilterMarketOwnerChanged and is used to iterate over the raw logs and unpacked data for MarketOwnerChanged events raised by the SpotMarketOptimism contract. -type SpotMarketOptimismMarketOwnerChangedIterator struct { - Event *SpotMarketOptimismMarketOwnerChanged // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketOptimismMarketOwnerChangedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismMarketOwnerChanged) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismMarketOwnerChanged) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketOptimismMarketOwnerChangedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketOptimismMarketOwnerChangedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketOptimismMarketOwnerChanged represents a MarketOwnerChanged event raised by the SpotMarketOptimism contract. -type SpotMarketOptimismMarketOwnerChanged struct { - MarketId *big.Int - OldOwner common.Address - NewOwner common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterMarketOwnerChanged is a free log retrieval operation binding the contract event 0xe73c996387b656d1e0ea2866c854ed68122ce4e4eea51d6af012938b3c7ff52f. -// -// Solidity: event MarketOwnerChanged(uint128 indexed marketId, address oldOwner, address newOwner) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) FilterMarketOwnerChanged(opts *bind.FilterOpts, marketId []*big.Int) (*SpotMarketOptimismMarketOwnerChangedIterator, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.FilterLogs(opts, "MarketOwnerChanged", marketIdRule) - if err != nil { - return nil, err - } - return &SpotMarketOptimismMarketOwnerChangedIterator{contract: _SpotMarketOptimism.contract, event: "MarketOwnerChanged", logs: logs, sub: sub}, nil -} - -// WatchMarketOwnerChanged is a free log subscription operation binding the contract event 0xe73c996387b656d1e0ea2866c854ed68122ce4e4eea51d6af012938b3c7ff52f. -// -// Solidity: event MarketOwnerChanged(uint128 indexed marketId, address oldOwner, address newOwner) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) WatchMarketOwnerChanged(opts *bind.WatchOpts, sink chan<- *SpotMarketOptimismMarketOwnerChanged, marketId []*big.Int) (event.Subscription, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.WatchLogs(opts, "MarketOwnerChanged", marketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketOptimismMarketOwnerChanged) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "MarketOwnerChanged", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseMarketOwnerChanged is a log parse operation binding the contract event 0xe73c996387b656d1e0ea2866c854ed68122ce4e4eea51d6af012938b3c7ff52f. -// -// Solidity: event MarketOwnerChanged(uint128 indexed marketId, address oldOwner, address newOwner) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) ParseMarketOwnerChanged(log types.Log) (*SpotMarketOptimismMarketOwnerChanged, error) { - event := new(SpotMarketOptimismMarketOwnerChanged) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "MarketOwnerChanged", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketOptimismMarketOwnerNominatedIterator is returned from FilterMarketOwnerNominated and is used to iterate over the raw logs and unpacked data for MarketOwnerNominated events raised by the SpotMarketOptimism contract. -type SpotMarketOptimismMarketOwnerNominatedIterator struct { - Event *SpotMarketOptimismMarketOwnerNominated // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketOptimismMarketOwnerNominatedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismMarketOwnerNominated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismMarketOwnerNominated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketOptimismMarketOwnerNominatedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketOptimismMarketOwnerNominatedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketOptimismMarketOwnerNominated represents a MarketOwnerNominated event raised by the SpotMarketOptimism contract. -type SpotMarketOptimismMarketOwnerNominated struct { - MarketId *big.Int - NewOwner common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterMarketOwnerNominated is a free log retrieval operation binding the contract event 0x54605d90ee82d9b4318b0b4b479f3966976e44b94c6aff221c04f5294f85016b. -// -// Solidity: event MarketOwnerNominated(uint128 indexed marketId, address newOwner) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) FilterMarketOwnerNominated(opts *bind.FilterOpts, marketId []*big.Int) (*SpotMarketOptimismMarketOwnerNominatedIterator, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.FilterLogs(opts, "MarketOwnerNominated", marketIdRule) - if err != nil { - return nil, err - } - return &SpotMarketOptimismMarketOwnerNominatedIterator{contract: _SpotMarketOptimism.contract, event: "MarketOwnerNominated", logs: logs, sub: sub}, nil -} - -// WatchMarketOwnerNominated is a free log subscription operation binding the contract event 0x54605d90ee82d9b4318b0b4b479f3966976e44b94c6aff221c04f5294f85016b. -// -// Solidity: event MarketOwnerNominated(uint128 indexed marketId, address newOwner) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) WatchMarketOwnerNominated(opts *bind.WatchOpts, sink chan<- *SpotMarketOptimismMarketOwnerNominated, marketId []*big.Int) (event.Subscription, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.WatchLogs(opts, "MarketOwnerNominated", marketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketOptimismMarketOwnerNominated) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "MarketOwnerNominated", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseMarketOwnerNominated is a log parse operation binding the contract event 0x54605d90ee82d9b4318b0b4b479f3966976e44b94c6aff221c04f5294f85016b. -// -// Solidity: event MarketOwnerNominated(uint128 indexed marketId, address newOwner) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) ParseMarketOwnerNominated(log types.Log) (*SpotMarketOptimismMarketOwnerNominated, error) { - event := new(SpotMarketOptimismMarketOwnerNominated) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "MarketOwnerNominated", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketOptimismMarketSkewScaleSetIterator is returned from FilterMarketSkewScaleSet and is used to iterate over the raw logs and unpacked data for MarketSkewScaleSet events raised by the SpotMarketOptimism contract. -type SpotMarketOptimismMarketSkewScaleSetIterator struct { - Event *SpotMarketOptimismMarketSkewScaleSet // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketOptimismMarketSkewScaleSetIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismMarketSkewScaleSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismMarketSkewScaleSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketOptimismMarketSkewScaleSetIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketOptimismMarketSkewScaleSetIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketOptimismMarketSkewScaleSet represents a MarketSkewScaleSet event raised by the SpotMarketOptimism contract. -type SpotMarketOptimismMarketSkewScaleSet struct { - SynthMarketId *big.Int - SkewScale *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterMarketSkewScaleSet is a free log retrieval operation binding the contract event 0x786fdfd5a0e146d8f4878876a8439ff01436e5969b14682e12d07d7e926b157c. -// -// Solidity: event MarketSkewScaleSet(uint256 indexed synthMarketId, uint256 skewScale) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) FilterMarketSkewScaleSet(opts *bind.FilterOpts, synthMarketId []*big.Int) (*SpotMarketOptimismMarketSkewScaleSetIterator, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.FilterLogs(opts, "MarketSkewScaleSet", synthMarketIdRule) - if err != nil { - return nil, err - } - return &SpotMarketOptimismMarketSkewScaleSetIterator{contract: _SpotMarketOptimism.contract, event: "MarketSkewScaleSet", logs: logs, sub: sub}, nil -} - -// WatchMarketSkewScaleSet is a free log subscription operation binding the contract event 0x786fdfd5a0e146d8f4878876a8439ff01436e5969b14682e12d07d7e926b157c. -// -// Solidity: event MarketSkewScaleSet(uint256 indexed synthMarketId, uint256 skewScale) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) WatchMarketSkewScaleSet(opts *bind.WatchOpts, sink chan<- *SpotMarketOptimismMarketSkewScaleSet, synthMarketId []*big.Int) (event.Subscription, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.WatchLogs(opts, "MarketSkewScaleSet", synthMarketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketOptimismMarketSkewScaleSet) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "MarketSkewScaleSet", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseMarketSkewScaleSet is a log parse operation binding the contract event 0x786fdfd5a0e146d8f4878876a8439ff01436e5969b14682e12d07d7e926b157c. -// -// Solidity: event MarketSkewScaleSet(uint256 indexed synthMarketId, uint256 skewScale) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) ParseMarketSkewScaleSet(log types.Log) (*SpotMarketOptimismMarketSkewScaleSet, error) { - event := new(SpotMarketOptimismMarketSkewScaleSet) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "MarketSkewScaleSet", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketOptimismMarketUtilizationFeesSetIterator is returned from FilterMarketUtilizationFeesSet and is used to iterate over the raw logs and unpacked data for MarketUtilizationFeesSet events raised by the SpotMarketOptimism contract. -type SpotMarketOptimismMarketUtilizationFeesSetIterator struct { - Event *SpotMarketOptimismMarketUtilizationFeesSet // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketOptimismMarketUtilizationFeesSetIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismMarketUtilizationFeesSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismMarketUtilizationFeesSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketOptimismMarketUtilizationFeesSetIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketOptimismMarketUtilizationFeesSetIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketOptimismMarketUtilizationFeesSet represents a MarketUtilizationFeesSet event raised by the SpotMarketOptimism contract. -type SpotMarketOptimismMarketUtilizationFeesSet struct { - SynthMarketId *big.Int - UtilizationFeeRate *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterMarketUtilizationFeesSet is a free log retrieval operation binding the contract event 0x83dfad56ac61e49feb43345b8c73b6d45eb121decc66b1709ca0413b31c64f63. -// -// Solidity: event MarketUtilizationFeesSet(uint256 indexed synthMarketId, uint256 utilizationFeeRate) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) FilterMarketUtilizationFeesSet(opts *bind.FilterOpts, synthMarketId []*big.Int) (*SpotMarketOptimismMarketUtilizationFeesSetIterator, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.FilterLogs(opts, "MarketUtilizationFeesSet", synthMarketIdRule) - if err != nil { - return nil, err - } - return &SpotMarketOptimismMarketUtilizationFeesSetIterator{contract: _SpotMarketOptimism.contract, event: "MarketUtilizationFeesSet", logs: logs, sub: sub}, nil -} - -// WatchMarketUtilizationFeesSet is a free log subscription operation binding the contract event 0x83dfad56ac61e49feb43345b8c73b6d45eb121decc66b1709ca0413b31c64f63. -// -// Solidity: event MarketUtilizationFeesSet(uint256 indexed synthMarketId, uint256 utilizationFeeRate) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) WatchMarketUtilizationFeesSet(opts *bind.WatchOpts, sink chan<- *SpotMarketOptimismMarketUtilizationFeesSet, synthMarketId []*big.Int) (event.Subscription, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.WatchLogs(opts, "MarketUtilizationFeesSet", synthMarketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketOptimismMarketUtilizationFeesSet) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "MarketUtilizationFeesSet", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseMarketUtilizationFeesSet is a log parse operation binding the contract event 0x83dfad56ac61e49feb43345b8c73b6d45eb121decc66b1709ca0413b31c64f63. -// -// Solidity: event MarketUtilizationFeesSet(uint256 indexed synthMarketId, uint256 utilizationFeeRate) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) ParseMarketUtilizationFeesSet(log types.Log) (*SpotMarketOptimismMarketUtilizationFeesSet, error) { - event := new(SpotMarketOptimismMarketUtilizationFeesSet) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "MarketUtilizationFeesSet", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketOptimismOrderCancelledIterator is returned from FilterOrderCancelled and is used to iterate over the raw logs and unpacked data for OrderCancelled events raised by the SpotMarketOptimism contract. -type SpotMarketOptimismOrderCancelledIterator struct { - Event *SpotMarketOptimismOrderCancelled // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketOptimismOrderCancelledIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismOrderCancelled) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismOrderCancelled) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketOptimismOrderCancelledIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketOptimismOrderCancelledIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketOptimismOrderCancelled represents a OrderCancelled event raised by the SpotMarketOptimism contract. -type SpotMarketOptimismOrderCancelled struct { - MarketId *big.Int - AsyncOrderId *big.Int - AsyncOrderClaim AsyncOrderClaimData - Sender common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterOrderCancelled is a free log retrieval operation binding the contract event 0xa57ffc5057d10e88a0dd7713d14130f9638d680af94401e7f1f4fba44a3ad5e2. -// -// Solidity: event OrderCancelled(uint128 indexed marketId, uint128 indexed asyncOrderId, (uint128,address,uint8,uint256,uint256,uint256,uint256,uint256,address) asyncOrderClaim, address indexed sender) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) FilterOrderCancelled(opts *bind.FilterOpts, marketId []*big.Int, asyncOrderId []*big.Int, sender []common.Address) (*SpotMarketOptimismOrderCancelledIterator, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - var asyncOrderIdRule []interface{} - for _, asyncOrderIdItem := range asyncOrderId { - asyncOrderIdRule = append(asyncOrderIdRule, asyncOrderIdItem) - } - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.FilterLogs(opts, "OrderCancelled", marketIdRule, asyncOrderIdRule, senderRule) - if err != nil { - return nil, err - } - return &SpotMarketOptimismOrderCancelledIterator{contract: _SpotMarketOptimism.contract, event: "OrderCancelled", logs: logs, sub: sub}, nil -} - -// WatchOrderCancelled is a free log subscription operation binding the contract event 0xa57ffc5057d10e88a0dd7713d14130f9638d680af94401e7f1f4fba44a3ad5e2. -// -// Solidity: event OrderCancelled(uint128 indexed marketId, uint128 indexed asyncOrderId, (uint128,address,uint8,uint256,uint256,uint256,uint256,uint256,address) asyncOrderClaim, address indexed sender) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) WatchOrderCancelled(opts *bind.WatchOpts, sink chan<- *SpotMarketOptimismOrderCancelled, marketId []*big.Int, asyncOrderId []*big.Int, sender []common.Address) (event.Subscription, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - var asyncOrderIdRule []interface{} - for _, asyncOrderIdItem := range asyncOrderId { - asyncOrderIdRule = append(asyncOrderIdRule, asyncOrderIdItem) - } - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.WatchLogs(opts, "OrderCancelled", marketIdRule, asyncOrderIdRule, senderRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketOptimismOrderCancelled) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "OrderCancelled", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseOrderCancelled is a log parse operation binding the contract event 0xa57ffc5057d10e88a0dd7713d14130f9638d680af94401e7f1f4fba44a3ad5e2. -// -// Solidity: event OrderCancelled(uint128 indexed marketId, uint128 indexed asyncOrderId, (uint128,address,uint8,uint256,uint256,uint256,uint256,uint256,address) asyncOrderClaim, address indexed sender) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) ParseOrderCancelled(log types.Log) (*SpotMarketOptimismOrderCancelled, error) { - event := new(SpotMarketOptimismOrderCancelled) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "OrderCancelled", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketOptimismOrderCommittedIterator is returned from FilterOrderCommitted and is used to iterate over the raw logs and unpacked data for OrderCommitted events raised by the SpotMarketOptimism contract. -type SpotMarketOptimismOrderCommittedIterator struct { - Event *SpotMarketOptimismOrderCommitted // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketOptimismOrderCommittedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismOrderCommitted) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismOrderCommitted) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketOptimismOrderCommittedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketOptimismOrderCommittedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketOptimismOrderCommitted represents a OrderCommitted event raised by the SpotMarketOptimism contract. -type SpotMarketOptimismOrderCommitted struct { - MarketId *big.Int - OrderType uint8 - AmountProvided *big.Int - AsyncOrderId *big.Int - Sender common.Address - Referrer common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterOrderCommitted is a free log retrieval operation binding the contract event 0xb26c216bf0a127dddc2431e4d8ca845513c8e6fb80e754296e7afab1ce92722f. -// -// Solidity: event OrderCommitted(uint128 indexed marketId, uint8 indexed orderType, uint256 amountProvided, uint128 asyncOrderId, address indexed sender, address referrer) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) FilterOrderCommitted(opts *bind.FilterOpts, marketId []*big.Int, orderType []uint8, sender []common.Address) (*SpotMarketOptimismOrderCommittedIterator, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - var orderTypeRule []interface{} - for _, orderTypeItem := range orderType { - orderTypeRule = append(orderTypeRule, orderTypeItem) - } - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.FilterLogs(opts, "OrderCommitted", marketIdRule, orderTypeRule, senderRule) - if err != nil { - return nil, err - } - return &SpotMarketOptimismOrderCommittedIterator{contract: _SpotMarketOptimism.contract, event: "OrderCommitted", logs: logs, sub: sub}, nil -} - -// WatchOrderCommitted is a free log subscription operation binding the contract event 0xb26c216bf0a127dddc2431e4d8ca845513c8e6fb80e754296e7afab1ce92722f. -// -// Solidity: event OrderCommitted(uint128 indexed marketId, uint8 indexed orderType, uint256 amountProvided, uint128 asyncOrderId, address indexed sender, address referrer) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) WatchOrderCommitted(opts *bind.WatchOpts, sink chan<- *SpotMarketOptimismOrderCommitted, marketId []*big.Int, orderType []uint8, sender []common.Address) (event.Subscription, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - var orderTypeRule []interface{} - for _, orderTypeItem := range orderType { - orderTypeRule = append(orderTypeRule, orderTypeItem) - } - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.WatchLogs(opts, "OrderCommitted", marketIdRule, orderTypeRule, senderRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketOptimismOrderCommitted) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "OrderCommitted", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseOrderCommitted is a log parse operation binding the contract event 0xb26c216bf0a127dddc2431e4d8ca845513c8e6fb80e754296e7afab1ce92722f. -// -// Solidity: event OrderCommitted(uint128 indexed marketId, uint8 indexed orderType, uint256 amountProvided, uint128 asyncOrderId, address indexed sender, address referrer) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) ParseOrderCommitted(log types.Log) (*SpotMarketOptimismOrderCommitted, error) { - event := new(SpotMarketOptimismOrderCommitted) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "OrderCommitted", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketOptimismOrderSettledIterator is returned from FilterOrderSettled and is used to iterate over the raw logs and unpacked data for OrderSettled events raised by the SpotMarketOptimism contract. -type SpotMarketOptimismOrderSettledIterator struct { - Event *SpotMarketOptimismOrderSettled // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketOptimismOrderSettledIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismOrderSettled) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismOrderSettled) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketOptimismOrderSettledIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketOptimismOrderSettledIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketOptimismOrderSettled represents a OrderSettled event raised by the SpotMarketOptimism contract. -type SpotMarketOptimismOrderSettled struct { - MarketId *big.Int - AsyncOrderId *big.Int - FinalOrderAmount *big.Int - Fees OrderFeesData - CollectedFees *big.Int - Settler common.Address - Price *big.Int - OrderType uint8 - Raw types.Log // Blockchain specific contextual infos -} - -// FilterOrderSettled is a free log retrieval operation binding the contract event 0x6c5e8ff282d52fb9f532408e86d4afc62fc1f89c749a8ddca7a6f34c0439a183. -// -// Solidity: event OrderSettled(uint128 indexed marketId, uint128 indexed asyncOrderId, uint256 finalOrderAmount, (uint256,uint256,int256,int256) fees, uint256 collectedFees, address indexed settler, uint256 price, uint8 orderType) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) FilterOrderSettled(opts *bind.FilterOpts, marketId []*big.Int, asyncOrderId []*big.Int, settler []common.Address) (*SpotMarketOptimismOrderSettledIterator, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - var asyncOrderIdRule []interface{} - for _, asyncOrderIdItem := range asyncOrderId { - asyncOrderIdRule = append(asyncOrderIdRule, asyncOrderIdItem) - } - - var settlerRule []interface{} - for _, settlerItem := range settler { - settlerRule = append(settlerRule, settlerItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.FilterLogs(opts, "OrderSettled", marketIdRule, asyncOrderIdRule, settlerRule) - if err != nil { - return nil, err - } - return &SpotMarketOptimismOrderSettledIterator{contract: _SpotMarketOptimism.contract, event: "OrderSettled", logs: logs, sub: sub}, nil -} - -// WatchOrderSettled is a free log subscription operation binding the contract event 0x6c5e8ff282d52fb9f532408e86d4afc62fc1f89c749a8ddca7a6f34c0439a183. -// -// Solidity: event OrderSettled(uint128 indexed marketId, uint128 indexed asyncOrderId, uint256 finalOrderAmount, (uint256,uint256,int256,int256) fees, uint256 collectedFees, address indexed settler, uint256 price, uint8 orderType) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) WatchOrderSettled(opts *bind.WatchOpts, sink chan<- *SpotMarketOptimismOrderSettled, marketId []*big.Int, asyncOrderId []*big.Int, settler []common.Address) (event.Subscription, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - var asyncOrderIdRule []interface{} - for _, asyncOrderIdItem := range asyncOrderId { - asyncOrderIdRule = append(asyncOrderIdRule, asyncOrderIdItem) - } - - var settlerRule []interface{} - for _, settlerItem := range settler { - settlerRule = append(settlerRule, settlerItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.WatchLogs(opts, "OrderSettled", marketIdRule, asyncOrderIdRule, settlerRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketOptimismOrderSettled) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "OrderSettled", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseOrderSettled is a log parse operation binding the contract event 0x6c5e8ff282d52fb9f532408e86d4afc62fc1f89c749a8ddca7a6f34c0439a183. -// -// Solidity: event OrderSettled(uint128 indexed marketId, uint128 indexed asyncOrderId, uint256 finalOrderAmount, (uint256,uint256,int256,int256) fees, uint256 collectedFees, address indexed settler, uint256 price, uint8 orderType) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) ParseOrderSettled(log types.Log) (*SpotMarketOptimismOrderSettled, error) { - event := new(SpotMarketOptimismOrderSettled) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "OrderSettled", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketOptimismOwnerChangedIterator is returned from FilterOwnerChanged and is used to iterate over the raw logs and unpacked data for OwnerChanged events raised by the SpotMarketOptimism contract. -type SpotMarketOptimismOwnerChangedIterator struct { - Event *SpotMarketOptimismOwnerChanged // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketOptimismOwnerChangedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismOwnerChanged) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismOwnerChanged) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketOptimismOwnerChangedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketOptimismOwnerChangedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketOptimismOwnerChanged represents a OwnerChanged event raised by the SpotMarketOptimism contract. -type SpotMarketOptimismOwnerChanged struct { - OldOwner common.Address - NewOwner common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterOwnerChanged is a free log retrieval operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c. -// -// Solidity: event OwnerChanged(address oldOwner, address newOwner) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) FilterOwnerChanged(opts *bind.FilterOpts) (*SpotMarketOptimismOwnerChangedIterator, error) { - - logs, sub, err := _SpotMarketOptimism.contract.FilterLogs(opts, "OwnerChanged") - if err != nil { - return nil, err - } - return &SpotMarketOptimismOwnerChangedIterator{contract: _SpotMarketOptimism.contract, event: "OwnerChanged", logs: logs, sub: sub}, nil -} - -// WatchOwnerChanged is a free log subscription operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c. -// -// Solidity: event OwnerChanged(address oldOwner, address newOwner) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) WatchOwnerChanged(opts *bind.WatchOpts, sink chan<- *SpotMarketOptimismOwnerChanged) (event.Subscription, error) { - - logs, sub, err := _SpotMarketOptimism.contract.WatchLogs(opts, "OwnerChanged") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketOptimismOwnerChanged) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "OwnerChanged", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseOwnerChanged is a log parse operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c. -// -// Solidity: event OwnerChanged(address oldOwner, address newOwner) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) ParseOwnerChanged(log types.Log) (*SpotMarketOptimismOwnerChanged, error) { - event := new(SpotMarketOptimismOwnerChanged) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "OwnerChanged", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketOptimismOwnerNominatedIterator is returned from FilterOwnerNominated and is used to iterate over the raw logs and unpacked data for OwnerNominated events raised by the SpotMarketOptimism contract. -type SpotMarketOptimismOwnerNominatedIterator struct { - Event *SpotMarketOptimismOwnerNominated // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketOptimismOwnerNominatedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismOwnerNominated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismOwnerNominated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketOptimismOwnerNominatedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketOptimismOwnerNominatedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketOptimismOwnerNominated represents a OwnerNominated event raised by the SpotMarketOptimism contract. -type SpotMarketOptimismOwnerNominated struct { - NewOwner common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterOwnerNominated is a free log retrieval operation binding the contract event 0x906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22. -// -// Solidity: event OwnerNominated(address newOwner) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) FilterOwnerNominated(opts *bind.FilterOpts) (*SpotMarketOptimismOwnerNominatedIterator, error) { - - logs, sub, err := _SpotMarketOptimism.contract.FilterLogs(opts, "OwnerNominated") - if err != nil { - return nil, err - } - return &SpotMarketOptimismOwnerNominatedIterator{contract: _SpotMarketOptimism.contract, event: "OwnerNominated", logs: logs, sub: sub}, nil -} - -// WatchOwnerNominated is a free log subscription operation binding the contract event 0x906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22. -// -// Solidity: event OwnerNominated(address newOwner) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) WatchOwnerNominated(opts *bind.WatchOpts, sink chan<- *SpotMarketOptimismOwnerNominated) (event.Subscription, error) { - - logs, sub, err := _SpotMarketOptimism.contract.WatchLogs(opts, "OwnerNominated") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketOptimismOwnerNominated) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "OwnerNominated", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseOwnerNominated is a log parse operation binding the contract event 0x906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22. -// -// Solidity: event OwnerNominated(address newOwner) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) ParseOwnerNominated(log types.Log) (*SpotMarketOptimismOwnerNominated, error) { - event := new(SpotMarketOptimismOwnerNominated) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "OwnerNominated", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketOptimismReferrerShareUpdatedIterator is returned from FilterReferrerShareUpdated and is used to iterate over the raw logs and unpacked data for ReferrerShareUpdated events raised by the SpotMarketOptimism contract. -type SpotMarketOptimismReferrerShareUpdatedIterator struct { - Event *SpotMarketOptimismReferrerShareUpdated // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketOptimismReferrerShareUpdatedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismReferrerShareUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismReferrerShareUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketOptimismReferrerShareUpdatedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketOptimismReferrerShareUpdatedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketOptimismReferrerShareUpdated represents a ReferrerShareUpdated event raised by the SpotMarketOptimism contract. -type SpotMarketOptimismReferrerShareUpdated struct { - MarketId *big.Int - Referrer common.Address - SharePercentage *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterReferrerShareUpdated is a free log retrieval operation binding the contract event 0xd2a3339bb3c610e9030023c1cb3e89374fe0ebd7e37faee9b3d343f33e9df2fb. -// -// Solidity: event ReferrerShareUpdated(uint128 indexed marketId, address referrer, uint256 sharePercentage) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) FilterReferrerShareUpdated(opts *bind.FilterOpts, marketId []*big.Int) (*SpotMarketOptimismReferrerShareUpdatedIterator, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.FilterLogs(opts, "ReferrerShareUpdated", marketIdRule) - if err != nil { - return nil, err - } - return &SpotMarketOptimismReferrerShareUpdatedIterator{contract: _SpotMarketOptimism.contract, event: "ReferrerShareUpdated", logs: logs, sub: sub}, nil -} - -// WatchReferrerShareUpdated is a free log subscription operation binding the contract event 0xd2a3339bb3c610e9030023c1cb3e89374fe0ebd7e37faee9b3d343f33e9df2fb. -// -// Solidity: event ReferrerShareUpdated(uint128 indexed marketId, address referrer, uint256 sharePercentage) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) WatchReferrerShareUpdated(opts *bind.WatchOpts, sink chan<- *SpotMarketOptimismReferrerShareUpdated, marketId []*big.Int) (event.Subscription, error) { - - var marketIdRule []interface{} - for _, marketIdItem := range marketId { - marketIdRule = append(marketIdRule, marketIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.WatchLogs(opts, "ReferrerShareUpdated", marketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketOptimismReferrerShareUpdated) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "ReferrerShareUpdated", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseReferrerShareUpdated is a log parse operation binding the contract event 0xd2a3339bb3c610e9030023c1cb3e89374fe0ebd7e37faee9b3d343f33e9df2fb. -// -// Solidity: event ReferrerShareUpdated(uint128 indexed marketId, address referrer, uint256 sharePercentage) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) ParseReferrerShareUpdated(log types.Log) (*SpotMarketOptimismReferrerShareUpdated, error) { - event := new(SpotMarketOptimismReferrerShareUpdated) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "ReferrerShareUpdated", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketOptimismSettlementStrategyAddedIterator is returned from FilterSettlementStrategyAdded and is used to iterate over the raw logs and unpacked data for SettlementStrategyAdded events raised by the SpotMarketOptimism contract. -type SpotMarketOptimismSettlementStrategyAddedIterator struct { - Event *SpotMarketOptimismSettlementStrategyAdded // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketOptimismSettlementStrategyAddedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismSettlementStrategyAdded) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismSettlementStrategyAdded) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketOptimismSettlementStrategyAddedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketOptimismSettlementStrategyAddedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketOptimismSettlementStrategyAdded represents a SettlementStrategyAdded event raised by the SpotMarketOptimism contract. -type SpotMarketOptimismSettlementStrategyAdded struct { - SynthMarketId *big.Int - StrategyId *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSettlementStrategyAdded is a free log retrieval operation binding the contract event 0x91750a8e3d84ed1bccdc79dcecf63cc1b6f83b5bf8293bf86628cbb248e487f1. -// -// Solidity: event SettlementStrategyAdded(uint128 indexed synthMarketId, uint256 indexed strategyId) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) FilterSettlementStrategyAdded(opts *bind.FilterOpts, synthMarketId []*big.Int, strategyId []*big.Int) (*SpotMarketOptimismSettlementStrategyAddedIterator, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - var strategyIdRule []interface{} - for _, strategyIdItem := range strategyId { - strategyIdRule = append(strategyIdRule, strategyIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.FilterLogs(opts, "SettlementStrategyAdded", synthMarketIdRule, strategyIdRule) - if err != nil { - return nil, err - } - return &SpotMarketOptimismSettlementStrategyAddedIterator{contract: _SpotMarketOptimism.contract, event: "SettlementStrategyAdded", logs: logs, sub: sub}, nil -} - -// WatchSettlementStrategyAdded is a free log subscription operation binding the contract event 0x91750a8e3d84ed1bccdc79dcecf63cc1b6f83b5bf8293bf86628cbb248e487f1. -// -// Solidity: event SettlementStrategyAdded(uint128 indexed synthMarketId, uint256 indexed strategyId) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) WatchSettlementStrategyAdded(opts *bind.WatchOpts, sink chan<- *SpotMarketOptimismSettlementStrategyAdded, synthMarketId []*big.Int, strategyId []*big.Int) (event.Subscription, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - var strategyIdRule []interface{} - for _, strategyIdItem := range strategyId { - strategyIdRule = append(strategyIdRule, strategyIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.WatchLogs(opts, "SettlementStrategyAdded", synthMarketIdRule, strategyIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketOptimismSettlementStrategyAdded) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "SettlementStrategyAdded", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSettlementStrategyAdded is a log parse operation binding the contract event 0x91750a8e3d84ed1bccdc79dcecf63cc1b6f83b5bf8293bf86628cbb248e487f1. -// -// Solidity: event SettlementStrategyAdded(uint128 indexed synthMarketId, uint256 indexed strategyId) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) ParseSettlementStrategyAdded(log types.Log) (*SpotMarketOptimismSettlementStrategyAdded, error) { - event := new(SpotMarketOptimismSettlementStrategyAdded) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "SettlementStrategyAdded", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketOptimismSettlementStrategyUpdatedIterator is returned from FilterSettlementStrategyUpdated and is used to iterate over the raw logs and unpacked data for SettlementStrategyUpdated events raised by the SpotMarketOptimism contract. -type SpotMarketOptimismSettlementStrategyUpdatedIterator struct { - Event *SpotMarketOptimismSettlementStrategyUpdated // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketOptimismSettlementStrategyUpdatedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismSettlementStrategyUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismSettlementStrategyUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketOptimismSettlementStrategyUpdatedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketOptimismSettlementStrategyUpdatedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketOptimismSettlementStrategyUpdated represents a SettlementStrategyUpdated event raised by the SpotMarketOptimism contract. -type SpotMarketOptimismSettlementStrategyUpdated struct { - SynthMarketId *big.Int - StrategyId *big.Int - Enabled bool - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSettlementStrategyUpdated is a free log retrieval operation binding the contract event 0xb0187d91c1ffe66740e5f7619aab4d868a85ac3698b026bed3f420d871b6c048. -// -// Solidity: event SettlementStrategyUpdated(uint128 indexed synthMarketId, uint256 indexed strategyId, bool enabled) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) FilterSettlementStrategyUpdated(opts *bind.FilterOpts, synthMarketId []*big.Int, strategyId []*big.Int) (*SpotMarketOptimismSettlementStrategyUpdatedIterator, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - var strategyIdRule []interface{} - for _, strategyIdItem := range strategyId { - strategyIdRule = append(strategyIdRule, strategyIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.FilterLogs(opts, "SettlementStrategyUpdated", synthMarketIdRule, strategyIdRule) - if err != nil { - return nil, err - } - return &SpotMarketOptimismSettlementStrategyUpdatedIterator{contract: _SpotMarketOptimism.contract, event: "SettlementStrategyUpdated", logs: logs, sub: sub}, nil -} - -// WatchSettlementStrategyUpdated is a free log subscription operation binding the contract event 0xb0187d91c1ffe66740e5f7619aab4d868a85ac3698b026bed3f420d871b6c048. -// -// Solidity: event SettlementStrategyUpdated(uint128 indexed synthMarketId, uint256 indexed strategyId, bool enabled) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) WatchSettlementStrategyUpdated(opts *bind.WatchOpts, sink chan<- *SpotMarketOptimismSettlementStrategyUpdated, synthMarketId []*big.Int, strategyId []*big.Int) (event.Subscription, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - var strategyIdRule []interface{} - for _, strategyIdItem := range strategyId { - strategyIdRule = append(strategyIdRule, strategyIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.WatchLogs(opts, "SettlementStrategyUpdated", synthMarketIdRule, strategyIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketOptimismSettlementStrategyUpdated) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "SettlementStrategyUpdated", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSettlementStrategyUpdated is a log parse operation binding the contract event 0xb0187d91c1ffe66740e5f7619aab4d868a85ac3698b026bed3f420d871b6c048. -// -// Solidity: event SettlementStrategyUpdated(uint128 indexed synthMarketId, uint256 indexed strategyId, bool enabled) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) ParseSettlementStrategyUpdated(log types.Log) (*SpotMarketOptimismSettlementStrategyUpdated, error) { - event := new(SpotMarketOptimismSettlementStrategyUpdated) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "SettlementStrategyUpdated", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketOptimismSynthBoughtIterator is returned from FilterSynthBought and is used to iterate over the raw logs and unpacked data for SynthBought events raised by the SpotMarketOptimism contract. -type SpotMarketOptimismSynthBoughtIterator struct { - Event *SpotMarketOptimismSynthBought // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketOptimismSynthBoughtIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismSynthBought) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismSynthBought) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketOptimismSynthBoughtIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketOptimismSynthBoughtIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketOptimismSynthBought represents a SynthBought event raised by the SpotMarketOptimism contract. -type SpotMarketOptimismSynthBought struct { - SynthMarketId *big.Int - SynthReturned *big.Int - Fees OrderFeesData - CollectedFees *big.Int - Referrer common.Address - Price *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSynthBought is a free log retrieval operation binding the contract event 0xac82d63e679c7d862613aa8b5ccd94f9adc4986763ab14bb3351ab9092ef1303. -// -// Solidity: event SynthBought(uint256 indexed synthMarketId, uint256 synthReturned, (uint256,uint256,int256,int256) fees, uint256 collectedFees, address referrer, uint256 price) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) FilterSynthBought(opts *bind.FilterOpts, synthMarketId []*big.Int) (*SpotMarketOptimismSynthBoughtIterator, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.FilterLogs(opts, "SynthBought", synthMarketIdRule) - if err != nil { - return nil, err - } - return &SpotMarketOptimismSynthBoughtIterator{contract: _SpotMarketOptimism.contract, event: "SynthBought", logs: logs, sub: sub}, nil -} - -// WatchSynthBought is a free log subscription operation binding the contract event 0xac82d63e679c7d862613aa8b5ccd94f9adc4986763ab14bb3351ab9092ef1303. -// -// Solidity: event SynthBought(uint256 indexed synthMarketId, uint256 synthReturned, (uint256,uint256,int256,int256) fees, uint256 collectedFees, address referrer, uint256 price) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) WatchSynthBought(opts *bind.WatchOpts, sink chan<- *SpotMarketOptimismSynthBought, synthMarketId []*big.Int) (event.Subscription, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.WatchLogs(opts, "SynthBought", synthMarketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketOptimismSynthBought) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "SynthBought", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSynthBought is a log parse operation binding the contract event 0xac82d63e679c7d862613aa8b5ccd94f9adc4986763ab14bb3351ab9092ef1303. -// -// Solidity: event SynthBought(uint256 indexed synthMarketId, uint256 synthReturned, (uint256,uint256,int256,int256) fees, uint256 collectedFees, address referrer, uint256 price) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) ParseSynthBought(log types.Log) (*SpotMarketOptimismSynthBought, error) { - event := new(SpotMarketOptimismSynthBought) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "SynthBought", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketOptimismSynthImplementationSetIterator is returned from FilterSynthImplementationSet and is used to iterate over the raw logs and unpacked data for SynthImplementationSet events raised by the SpotMarketOptimism contract. -type SpotMarketOptimismSynthImplementationSetIterator struct { - Event *SpotMarketOptimismSynthImplementationSet // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketOptimismSynthImplementationSetIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismSynthImplementationSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismSynthImplementationSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketOptimismSynthImplementationSetIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketOptimismSynthImplementationSetIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketOptimismSynthImplementationSet represents a SynthImplementationSet event raised by the SpotMarketOptimism contract. -type SpotMarketOptimismSynthImplementationSet struct { - SynthImplementation common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSynthImplementationSet is a free log retrieval operation binding the contract event 0xafffc48b3243eba10d901f21ba761ad741f18a23feed86ca425df4974d3314b0. -// -// Solidity: event SynthImplementationSet(address synthImplementation) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) FilterSynthImplementationSet(opts *bind.FilterOpts) (*SpotMarketOptimismSynthImplementationSetIterator, error) { - - logs, sub, err := _SpotMarketOptimism.contract.FilterLogs(opts, "SynthImplementationSet") - if err != nil { - return nil, err - } - return &SpotMarketOptimismSynthImplementationSetIterator{contract: _SpotMarketOptimism.contract, event: "SynthImplementationSet", logs: logs, sub: sub}, nil -} - -// WatchSynthImplementationSet is a free log subscription operation binding the contract event 0xafffc48b3243eba10d901f21ba761ad741f18a23feed86ca425df4974d3314b0. -// -// Solidity: event SynthImplementationSet(address synthImplementation) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) WatchSynthImplementationSet(opts *bind.WatchOpts, sink chan<- *SpotMarketOptimismSynthImplementationSet) (event.Subscription, error) { - - logs, sub, err := _SpotMarketOptimism.contract.WatchLogs(opts, "SynthImplementationSet") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketOptimismSynthImplementationSet) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "SynthImplementationSet", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSynthImplementationSet is a log parse operation binding the contract event 0xafffc48b3243eba10d901f21ba761ad741f18a23feed86ca425df4974d3314b0. -// -// Solidity: event SynthImplementationSet(address synthImplementation) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) ParseSynthImplementationSet(log types.Log) (*SpotMarketOptimismSynthImplementationSet, error) { - event := new(SpotMarketOptimismSynthImplementationSet) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "SynthImplementationSet", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketOptimismSynthImplementationUpgradedIterator is returned from FilterSynthImplementationUpgraded and is used to iterate over the raw logs and unpacked data for SynthImplementationUpgraded events raised by the SpotMarketOptimism contract. -type SpotMarketOptimismSynthImplementationUpgradedIterator struct { - Event *SpotMarketOptimismSynthImplementationUpgraded // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketOptimismSynthImplementationUpgradedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismSynthImplementationUpgraded) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismSynthImplementationUpgraded) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketOptimismSynthImplementationUpgradedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketOptimismSynthImplementationUpgradedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketOptimismSynthImplementationUpgraded represents a SynthImplementationUpgraded event raised by the SpotMarketOptimism contract. -type SpotMarketOptimismSynthImplementationUpgraded struct { - SynthMarketId *big.Int - Proxy common.Address - Implementation common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSynthImplementationUpgraded is a free log retrieval operation binding the contract event 0xa7badace8b24daeeb3981497a506d3812b3dc6f147ef3f78bc0e2cc664c50330. -// -// Solidity: event SynthImplementationUpgraded(uint256 indexed synthMarketId, address indexed proxy, address implementation) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) FilterSynthImplementationUpgraded(opts *bind.FilterOpts, synthMarketId []*big.Int, proxy []common.Address) (*SpotMarketOptimismSynthImplementationUpgradedIterator, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - var proxyRule []interface{} - for _, proxyItem := range proxy { - proxyRule = append(proxyRule, proxyItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.FilterLogs(opts, "SynthImplementationUpgraded", synthMarketIdRule, proxyRule) - if err != nil { - return nil, err - } - return &SpotMarketOptimismSynthImplementationUpgradedIterator{contract: _SpotMarketOptimism.contract, event: "SynthImplementationUpgraded", logs: logs, sub: sub}, nil -} - -// WatchSynthImplementationUpgraded is a free log subscription operation binding the contract event 0xa7badace8b24daeeb3981497a506d3812b3dc6f147ef3f78bc0e2cc664c50330. -// -// Solidity: event SynthImplementationUpgraded(uint256 indexed synthMarketId, address indexed proxy, address implementation) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) WatchSynthImplementationUpgraded(opts *bind.WatchOpts, sink chan<- *SpotMarketOptimismSynthImplementationUpgraded, synthMarketId []*big.Int, proxy []common.Address) (event.Subscription, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - var proxyRule []interface{} - for _, proxyItem := range proxy { - proxyRule = append(proxyRule, proxyItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.WatchLogs(opts, "SynthImplementationUpgraded", synthMarketIdRule, proxyRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketOptimismSynthImplementationUpgraded) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "SynthImplementationUpgraded", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSynthImplementationUpgraded is a log parse operation binding the contract event 0xa7badace8b24daeeb3981497a506d3812b3dc6f147ef3f78bc0e2cc664c50330. -// -// Solidity: event SynthImplementationUpgraded(uint256 indexed synthMarketId, address indexed proxy, address implementation) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) ParseSynthImplementationUpgraded(log types.Log) (*SpotMarketOptimismSynthImplementationUpgraded, error) { - event := new(SpotMarketOptimismSynthImplementationUpgraded) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "SynthImplementationUpgraded", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketOptimismSynthPriceDataUpdatedIterator is returned from FilterSynthPriceDataUpdated and is used to iterate over the raw logs and unpacked data for SynthPriceDataUpdated events raised by the SpotMarketOptimism contract. -type SpotMarketOptimismSynthPriceDataUpdatedIterator struct { - Event *SpotMarketOptimismSynthPriceDataUpdated // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketOptimismSynthPriceDataUpdatedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismSynthPriceDataUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismSynthPriceDataUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketOptimismSynthPriceDataUpdatedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketOptimismSynthPriceDataUpdatedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketOptimismSynthPriceDataUpdated represents a SynthPriceDataUpdated event raised by the SpotMarketOptimism contract. -type SpotMarketOptimismSynthPriceDataUpdated struct { - SynthMarketId *big.Int - BuyFeedId [32]byte - SellFeedId [32]byte - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSynthPriceDataUpdated is a free log retrieval operation binding the contract event 0x30309eafe094276dfad42e7ac4676aebcf5ea8480c86708ad2a2c9c0335c912e. -// -// Solidity: event SynthPriceDataUpdated(uint256 indexed synthMarketId, bytes32 indexed buyFeedId, bytes32 indexed sellFeedId) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) FilterSynthPriceDataUpdated(opts *bind.FilterOpts, synthMarketId []*big.Int, buyFeedId [][32]byte, sellFeedId [][32]byte) (*SpotMarketOptimismSynthPriceDataUpdatedIterator, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - var buyFeedIdRule []interface{} - for _, buyFeedIdItem := range buyFeedId { - buyFeedIdRule = append(buyFeedIdRule, buyFeedIdItem) - } - var sellFeedIdRule []interface{} - for _, sellFeedIdItem := range sellFeedId { - sellFeedIdRule = append(sellFeedIdRule, sellFeedIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.FilterLogs(opts, "SynthPriceDataUpdated", synthMarketIdRule, buyFeedIdRule, sellFeedIdRule) - if err != nil { - return nil, err - } - return &SpotMarketOptimismSynthPriceDataUpdatedIterator{contract: _SpotMarketOptimism.contract, event: "SynthPriceDataUpdated", logs: logs, sub: sub}, nil -} - -// WatchSynthPriceDataUpdated is a free log subscription operation binding the contract event 0x30309eafe094276dfad42e7ac4676aebcf5ea8480c86708ad2a2c9c0335c912e. -// -// Solidity: event SynthPriceDataUpdated(uint256 indexed synthMarketId, bytes32 indexed buyFeedId, bytes32 indexed sellFeedId) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) WatchSynthPriceDataUpdated(opts *bind.WatchOpts, sink chan<- *SpotMarketOptimismSynthPriceDataUpdated, synthMarketId []*big.Int, buyFeedId [][32]byte, sellFeedId [][32]byte) (event.Subscription, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - var buyFeedIdRule []interface{} - for _, buyFeedIdItem := range buyFeedId { - buyFeedIdRule = append(buyFeedIdRule, buyFeedIdItem) - } - var sellFeedIdRule []interface{} - for _, sellFeedIdItem := range sellFeedId { - sellFeedIdRule = append(sellFeedIdRule, sellFeedIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.WatchLogs(opts, "SynthPriceDataUpdated", synthMarketIdRule, buyFeedIdRule, sellFeedIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketOptimismSynthPriceDataUpdated) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "SynthPriceDataUpdated", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSynthPriceDataUpdated is a log parse operation binding the contract event 0x30309eafe094276dfad42e7ac4676aebcf5ea8480c86708ad2a2c9c0335c912e. -// -// Solidity: event SynthPriceDataUpdated(uint256 indexed synthMarketId, bytes32 indexed buyFeedId, bytes32 indexed sellFeedId) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) ParseSynthPriceDataUpdated(log types.Log) (*SpotMarketOptimismSynthPriceDataUpdated, error) { - event := new(SpotMarketOptimismSynthPriceDataUpdated) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "SynthPriceDataUpdated", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketOptimismSynthRegisteredIterator is returned from FilterSynthRegistered and is used to iterate over the raw logs and unpacked data for SynthRegistered events raised by the SpotMarketOptimism contract. -type SpotMarketOptimismSynthRegisteredIterator struct { - Event *SpotMarketOptimismSynthRegistered // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketOptimismSynthRegisteredIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismSynthRegistered) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismSynthRegistered) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketOptimismSynthRegisteredIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketOptimismSynthRegisteredIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketOptimismSynthRegistered represents a SynthRegistered event raised by the SpotMarketOptimism contract. -type SpotMarketOptimismSynthRegistered struct { - SynthMarketId *big.Int - SynthTokenAddress common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSynthRegistered is a free log retrieval operation binding the contract event 0x04b07b1c236913894927915a3dd91c8e250223fc668ceabdc47074c5a77e2cb9. -// -// Solidity: event SynthRegistered(uint256 indexed synthMarketId, address synthTokenAddress) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) FilterSynthRegistered(opts *bind.FilterOpts, synthMarketId []*big.Int) (*SpotMarketOptimismSynthRegisteredIterator, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.FilterLogs(opts, "SynthRegistered", synthMarketIdRule) - if err != nil { - return nil, err - } - return &SpotMarketOptimismSynthRegisteredIterator{contract: _SpotMarketOptimism.contract, event: "SynthRegistered", logs: logs, sub: sub}, nil -} - -// WatchSynthRegistered is a free log subscription operation binding the contract event 0x04b07b1c236913894927915a3dd91c8e250223fc668ceabdc47074c5a77e2cb9. -// -// Solidity: event SynthRegistered(uint256 indexed synthMarketId, address synthTokenAddress) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) WatchSynthRegistered(opts *bind.WatchOpts, sink chan<- *SpotMarketOptimismSynthRegistered, synthMarketId []*big.Int) (event.Subscription, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.WatchLogs(opts, "SynthRegistered", synthMarketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketOptimismSynthRegistered) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "SynthRegistered", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSynthRegistered is a log parse operation binding the contract event 0x04b07b1c236913894927915a3dd91c8e250223fc668ceabdc47074c5a77e2cb9. -// -// Solidity: event SynthRegistered(uint256 indexed synthMarketId, address synthTokenAddress) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) ParseSynthRegistered(log types.Log) (*SpotMarketOptimismSynthRegistered, error) { - event := new(SpotMarketOptimismSynthRegistered) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "SynthRegistered", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketOptimismSynthSoldIterator is returned from FilterSynthSold and is used to iterate over the raw logs and unpacked data for SynthSold events raised by the SpotMarketOptimism contract. -type SpotMarketOptimismSynthSoldIterator struct { - Event *SpotMarketOptimismSynthSold // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketOptimismSynthSoldIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismSynthSold) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismSynthSold) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketOptimismSynthSoldIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketOptimismSynthSoldIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketOptimismSynthSold represents a SynthSold event raised by the SpotMarketOptimism contract. -type SpotMarketOptimismSynthSold struct { - SynthMarketId *big.Int - AmountReturned *big.Int - Fees OrderFeesData - CollectedFees *big.Int - Referrer common.Address - Price *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSynthSold is a free log retrieval operation binding the contract event 0x61fa4bb370a2f18a502b3bcf1d0755e53371d58791fa42766aa6386bbefb594a. -// -// Solidity: event SynthSold(uint256 indexed synthMarketId, uint256 amountReturned, (uint256,uint256,int256,int256) fees, uint256 collectedFees, address referrer, uint256 price) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) FilterSynthSold(opts *bind.FilterOpts, synthMarketId []*big.Int) (*SpotMarketOptimismSynthSoldIterator, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.FilterLogs(opts, "SynthSold", synthMarketIdRule) - if err != nil { - return nil, err - } - return &SpotMarketOptimismSynthSoldIterator{contract: _SpotMarketOptimism.contract, event: "SynthSold", logs: logs, sub: sub}, nil -} - -// WatchSynthSold is a free log subscription operation binding the contract event 0x61fa4bb370a2f18a502b3bcf1d0755e53371d58791fa42766aa6386bbefb594a. -// -// Solidity: event SynthSold(uint256 indexed synthMarketId, uint256 amountReturned, (uint256,uint256,int256,int256) fees, uint256 collectedFees, address referrer, uint256 price) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) WatchSynthSold(opts *bind.WatchOpts, sink chan<- *SpotMarketOptimismSynthSold, synthMarketId []*big.Int) (event.Subscription, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.WatchLogs(opts, "SynthSold", synthMarketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketOptimismSynthSold) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "SynthSold", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSynthSold is a log parse operation binding the contract event 0x61fa4bb370a2f18a502b3bcf1d0755e53371d58791fa42766aa6386bbefb594a. -// -// Solidity: event SynthSold(uint256 indexed synthMarketId, uint256 amountReturned, (uint256,uint256,int256,int256) fees, uint256 collectedFees, address referrer, uint256 price) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) ParseSynthSold(log types.Log) (*SpotMarketOptimismSynthSold, error) { - event := new(SpotMarketOptimismSynthSold) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "SynthSold", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketOptimismSynthUnwrappedIterator is returned from FilterSynthUnwrapped and is used to iterate over the raw logs and unpacked data for SynthUnwrapped events raised by the SpotMarketOptimism contract. -type SpotMarketOptimismSynthUnwrappedIterator struct { - Event *SpotMarketOptimismSynthUnwrapped // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketOptimismSynthUnwrappedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismSynthUnwrapped) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismSynthUnwrapped) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketOptimismSynthUnwrappedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketOptimismSynthUnwrappedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketOptimismSynthUnwrapped represents a SynthUnwrapped event raised by the SpotMarketOptimism contract. -type SpotMarketOptimismSynthUnwrapped struct { - SynthMarketId *big.Int - AmountUnwrapped *big.Int - Fees OrderFeesData - FeesCollected *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSynthUnwrapped is a free log retrieval operation binding the contract event 0xa1dd74fb936c7942732e4355961ca6944ca6c6744121ace0d9a1203d664231b3. -// -// Solidity: event SynthUnwrapped(uint256 indexed synthMarketId, uint256 amountUnwrapped, (uint256,uint256,int256,int256) fees, uint256 feesCollected) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) FilterSynthUnwrapped(opts *bind.FilterOpts, synthMarketId []*big.Int) (*SpotMarketOptimismSynthUnwrappedIterator, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.FilterLogs(opts, "SynthUnwrapped", synthMarketIdRule) - if err != nil { - return nil, err - } - return &SpotMarketOptimismSynthUnwrappedIterator{contract: _SpotMarketOptimism.contract, event: "SynthUnwrapped", logs: logs, sub: sub}, nil -} - -// WatchSynthUnwrapped is a free log subscription operation binding the contract event 0xa1dd74fb936c7942732e4355961ca6944ca6c6744121ace0d9a1203d664231b3. -// -// Solidity: event SynthUnwrapped(uint256 indexed synthMarketId, uint256 amountUnwrapped, (uint256,uint256,int256,int256) fees, uint256 feesCollected) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) WatchSynthUnwrapped(opts *bind.WatchOpts, sink chan<- *SpotMarketOptimismSynthUnwrapped, synthMarketId []*big.Int) (event.Subscription, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.WatchLogs(opts, "SynthUnwrapped", synthMarketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketOptimismSynthUnwrapped) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "SynthUnwrapped", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSynthUnwrapped is a log parse operation binding the contract event 0xa1dd74fb936c7942732e4355961ca6944ca6c6744121ace0d9a1203d664231b3. -// -// Solidity: event SynthUnwrapped(uint256 indexed synthMarketId, uint256 amountUnwrapped, (uint256,uint256,int256,int256) fees, uint256 feesCollected) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) ParseSynthUnwrapped(log types.Log) (*SpotMarketOptimismSynthUnwrapped, error) { - event := new(SpotMarketOptimismSynthUnwrapped) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "SynthUnwrapped", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketOptimismSynthWrappedIterator is returned from FilterSynthWrapped and is used to iterate over the raw logs and unpacked data for SynthWrapped events raised by the SpotMarketOptimism contract. -type SpotMarketOptimismSynthWrappedIterator struct { - Event *SpotMarketOptimismSynthWrapped // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketOptimismSynthWrappedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismSynthWrapped) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismSynthWrapped) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketOptimismSynthWrappedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketOptimismSynthWrappedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketOptimismSynthWrapped represents a SynthWrapped event raised by the SpotMarketOptimism contract. -type SpotMarketOptimismSynthWrapped struct { - SynthMarketId *big.Int - AmountWrapped *big.Int - Fees OrderFeesData - FeesCollected *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSynthWrapped is a free log retrieval operation binding the contract event 0xea50ab2f37d37692441c4a16317c1287bb410a3a616a16c49c9ca76d415667ff. -// -// Solidity: event SynthWrapped(uint256 indexed synthMarketId, uint256 amountWrapped, (uint256,uint256,int256,int256) fees, uint256 feesCollected) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) FilterSynthWrapped(opts *bind.FilterOpts, synthMarketId []*big.Int) (*SpotMarketOptimismSynthWrappedIterator, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.FilterLogs(opts, "SynthWrapped", synthMarketIdRule) - if err != nil { - return nil, err - } - return &SpotMarketOptimismSynthWrappedIterator{contract: _SpotMarketOptimism.contract, event: "SynthWrapped", logs: logs, sub: sub}, nil -} - -// WatchSynthWrapped is a free log subscription operation binding the contract event 0xea50ab2f37d37692441c4a16317c1287bb410a3a616a16c49c9ca76d415667ff. -// -// Solidity: event SynthWrapped(uint256 indexed synthMarketId, uint256 amountWrapped, (uint256,uint256,int256,int256) fees, uint256 feesCollected) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) WatchSynthWrapped(opts *bind.WatchOpts, sink chan<- *SpotMarketOptimismSynthWrapped, synthMarketId []*big.Int) (event.Subscription, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.WatchLogs(opts, "SynthWrapped", synthMarketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketOptimismSynthWrapped) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "SynthWrapped", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSynthWrapped is a log parse operation binding the contract event 0xea50ab2f37d37692441c4a16317c1287bb410a3a616a16c49c9ca76d415667ff. -// -// Solidity: event SynthWrapped(uint256 indexed synthMarketId, uint256 amountWrapped, (uint256,uint256,int256,int256) fees, uint256 feesCollected) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) ParseSynthWrapped(log types.Log) (*SpotMarketOptimismSynthWrapped, error) { - event := new(SpotMarketOptimismSynthWrapped) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "SynthWrapped", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketOptimismSynthetixSystemSetIterator is returned from FilterSynthetixSystemSet and is used to iterate over the raw logs and unpacked data for SynthetixSystemSet events raised by the SpotMarketOptimism contract. -type SpotMarketOptimismSynthetixSystemSetIterator struct { - Event *SpotMarketOptimismSynthetixSystemSet // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketOptimismSynthetixSystemSetIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismSynthetixSystemSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismSynthetixSystemSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketOptimismSynthetixSystemSetIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketOptimismSynthetixSystemSetIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketOptimismSynthetixSystemSet represents a SynthetixSystemSet event raised by the SpotMarketOptimism contract. -type SpotMarketOptimismSynthetixSystemSet struct { - Synthetix common.Address - UsdTokenAddress common.Address - OracleManager common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSynthetixSystemSet is a free log retrieval operation binding the contract event 0x52dccf7e2653d5ae8cf1d18c5499fd530f01920181d81afdf6bf489d897e24aa. -// -// Solidity: event SynthetixSystemSet(address synthetix, address usdTokenAddress, address oracleManager) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) FilterSynthetixSystemSet(opts *bind.FilterOpts) (*SpotMarketOptimismSynthetixSystemSetIterator, error) { - - logs, sub, err := _SpotMarketOptimism.contract.FilterLogs(opts, "SynthetixSystemSet") - if err != nil { - return nil, err - } - return &SpotMarketOptimismSynthetixSystemSetIterator{contract: _SpotMarketOptimism.contract, event: "SynthetixSystemSet", logs: logs, sub: sub}, nil -} - -// WatchSynthetixSystemSet is a free log subscription operation binding the contract event 0x52dccf7e2653d5ae8cf1d18c5499fd530f01920181d81afdf6bf489d897e24aa. -// -// Solidity: event SynthetixSystemSet(address synthetix, address usdTokenAddress, address oracleManager) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) WatchSynthetixSystemSet(opts *bind.WatchOpts, sink chan<- *SpotMarketOptimismSynthetixSystemSet) (event.Subscription, error) { - - logs, sub, err := _SpotMarketOptimism.contract.WatchLogs(opts, "SynthetixSystemSet") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketOptimismSynthetixSystemSet) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "SynthetixSystemSet", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSynthetixSystemSet is a log parse operation binding the contract event 0x52dccf7e2653d5ae8cf1d18c5499fd530f01920181d81afdf6bf489d897e24aa. -// -// Solidity: event SynthetixSystemSet(address synthetix, address usdTokenAddress, address oracleManager) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) ParseSynthetixSystemSet(log types.Log) (*SpotMarketOptimismSynthetixSystemSet, error) { - event := new(SpotMarketOptimismSynthetixSystemSet) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "SynthetixSystemSet", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketOptimismTransactorFixedFeeSetIterator is returned from FilterTransactorFixedFeeSet and is used to iterate over the raw logs and unpacked data for TransactorFixedFeeSet events raised by the SpotMarketOptimism contract. -type SpotMarketOptimismTransactorFixedFeeSetIterator struct { - Event *SpotMarketOptimismTransactorFixedFeeSet // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketOptimismTransactorFixedFeeSetIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismTransactorFixedFeeSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismTransactorFixedFeeSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketOptimismTransactorFixedFeeSetIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketOptimismTransactorFixedFeeSetIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketOptimismTransactorFixedFeeSet represents a TransactorFixedFeeSet event raised by the SpotMarketOptimism contract. -type SpotMarketOptimismTransactorFixedFeeSet struct { - SynthMarketId *big.Int - Transactor common.Address - FixedFeeAmount *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterTransactorFixedFeeSet is a free log retrieval operation binding the contract event 0xeed7c7ebc4a7e7456a5b14f961bbe55d026f35a2a2b52d1ad43fe11c348df24a. -// -// Solidity: event TransactorFixedFeeSet(uint256 indexed synthMarketId, address transactor, uint256 fixedFeeAmount) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) FilterTransactorFixedFeeSet(opts *bind.FilterOpts, synthMarketId []*big.Int) (*SpotMarketOptimismTransactorFixedFeeSetIterator, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.FilterLogs(opts, "TransactorFixedFeeSet", synthMarketIdRule) - if err != nil { - return nil, err - } - return &SpotMarketOptimismTransactorFixedFeeSetIterator{contract: _SpotMarketOptimism.contract, event: "TransactorFixedFeeSet", logs: logs, sub: sub}, nil -} - -// WatchTransactorFixedFeeSet is a free log subscription operation binding the contract event 0xeed7c7ebc4a7e7456a5b14f961bbe55d026f35a2a2b52d1ad43fe11c348df24a. -// -// Solidity: event TransactorFixedFeeSet(uint256 indexed synthMarketId, address transactor, uint256 fixedFeeAmount) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) WatchTransactorFixedFeeSet(opts *bind.WatchOpts, sink chan<- *SpotMarketOptimismTransactorFixedFeeSet, synthMarketId []*big.Int) (event.Subscription, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.WatchLogs(opts, "TransactorFixedFeeSet", synthMarketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketOptimismTransactorFixedFeeSet) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "TransactorFixedFeeSet", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseTransactorFixedFeeSet is a log parse operation binding the contract event 0xeed7c7ebc4a7e7456a5b14f961bbe55d026f35a2a2b52d1ad43fe11c348df24a. -// -// Solidity: event TransactorFixedFeeSet(uint256 indexed synthMarketId, address transactor, uint256 fixedFeeAmount) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) ParseTransactorFixedFeeSet(log types.Log) (*SpotMarketOptimismTransactorFixedFeeSet, error) { - event := new(SpotMarketOptimismTransactorFixedFeeSet) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "TransactorFixedFeeSet", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketOptimismUpgradedIterator is returned from FilterUpgraded and is used to iterate over the raw logs and unpacked data for Upgraded events raised by the SpotMarketOptimism contract. -type SpotMarketOptimismUpgradedIterator struct { - Event *SpotMarketOptimismUpgraded // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketOptimismUpgradedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismUpgraded) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismUpgraded) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketOptimismUpgradedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketOptimismUpgradedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketOptimismUpgraded represents a Upgraded event raised by the SpotMarketOptimism contract. -type SpotMarketOptimismUpgraded struct { - Self common.Address - Implementation common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterUpgraded is a free log retrieval operation binding the contract event 0x5d611f318680d00598bb735d61bacf0c514c6b50e1e5ad30040a4df2b12791c7. -// -// Solidity: event Upgraded(address indexed self, address implementation) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) FilterUpgraded(opts *bind.FilterOpts, self []common.Address) (*SpotMarketOptimismUpgradedIterator, error) { - - var selfRule []interface{} - for _, selfItem := range self { - selfRule = append(selfRule, selfItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.FilterLogs(opts, "Upgraded", selfRule) - if err != nil { - return nil, err - } - return &SpotMarketOptimismUpgradedIterator{contract: _SpotMarketOptimism.contract, event: "Upgraded", logs: logs, sub: sub}, nil -} - -// WatchUpgraded is a free log subscription operation binding the contract event 0x5d611f318680d00598bb735d61bacf0c514c6b50e1e5ad30040a4df2b12791c7. -// -// Solidity: event Upgraded(address indexed self, address implementation) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *SpotMarketOptimismUpgraded, self []common.Address) (event.Subscription, error) { - - var selfRule []interface{} - for _, selfItem := range self { - selfRule = append(selfRule, selfItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.WatchLogs(opts, "Upgraded", selfRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketOptimismUpgraded) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "Upgraded", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseUpgraded is a log parse operation binding the contract event 0x5d611f318680d00598bb735d61bacf0c514c6b50e1e5ad30040a4df2b12791c7. -// -// Solidity: event Upgraded(address indexed self, address implementation) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) ParseUpgraded(log types.Log) (*SpotMarketOptimismUpgraded, error) { - event := new(SpotMarketOptimismUpgraded) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "Upgraded", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketOptimismWrapperFeesSetIterator is returned from FilterWrapperFeesSet and is used to iterate over the raw logs and unpacked data for WrapperFeesSet events raised by the SpotMarketOptimism contract. -type SpotMarketOptimismWrapperFeesSetIterator struct { - Event *SpotMarketOptimismWrapperFeesSet // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketOptimismWrapperFeesSetIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismWrapperFeesSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismWrapperFeesSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketOptimismWrapperFeesSetIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketOptimismWrapperFeesSetIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketOptimismWrapperFeesSet represents a WrapperFeesSet event raised by the SpotMarketOptimism contract. -type SpotMarketOptimismWrapperFeesSet struct { - SynthMarketId *big.Int - WrapFee *big.Int - UnwrapFee *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterWrapperFeesSet is a free log retrieval operation binding the contract event 0x84c5bc20d6e52e92afe6ebc9d85d3e4d35de276ba3f05cae640db053f5b861b8. -// -// Solidity: event WrapperFeesSet(uint256 indexed synthMarketId, int256 wrapFee, int256 unwrapFee) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) FilterWrapperFeesSet(opts *bind.FilterOpts, synthMarketId []*big.Int) (*SpotMarketOptimismWrapperFeesSetIterator, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.FilterLogs(opts, "WrapperFeesSet", synthMarketIdRule) - if err != nil { - return nil, err - } - return &SpotMarketOptimismWrapperFeesSetIterator{contract: _SpotMarketOptimism.contract, event: "WrapperFeesSet", logs: logs, sub: sub}, nil -} - -// WatchWrapperFeesSet is a free log subscription operation binding the contract event 0x84c5bc20d6e52e92afe6ebc9d85d3e4d35de276ba3f05cae640db053f5b861b8. -// -// Solidity: event WrapperFeesSet(uint256 indexed synthMarketId, int256 wrapFee, int256 unwrapFee) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) WatchWrapperFeesSet(opts *bind.WatchOpts, sink chan<- *SpotMarketOptimismWrapperFeesSet, synthMarketId []*big.Int) (event.Subscription, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.WatchLogs(opts, "WrapperFeesSet", synthMarketIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketOptimismWrapperFeesSet) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "WrapperFeesSet", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseWrapperFeesSet is a log parse operation binding the contract event 0x84c5bc20d6e52e92afe6ebc9d85d3e4d35de276ba3f05cae640db053f5b861b8. -// -// Solidity: event WrapperFeesSet(uint256 indexed synthMarketId, int256 wrapFee, int256 unwrapFee) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) ParseWrapperFeesSet(log types.Log) (*SpotMarketOptimismWrapperFeesSet, error) { - event := new(SpotMarketOptimismWrapperFeesSet) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "WrapperFeesSet", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SpotMarketOptimismWrapperSetIterator is returned from FilterWrapperSet and is used to iterate over the raw logs and unpacked data for WrapperSet events raised by the SpotMarketOptimism contract. -type SpotMarketOptimismWrapperSetIterator struct { - Event *SpotMarketOptimismWrapperSet // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SpotMarketOptimismWrapperSetIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismWrapperSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SpotMarketOptimismWrapperSet) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SpotMarketOptimismWrapperSetIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SpotMarketOptimismWrapperSetIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SpotMarketOptimismWrapperSet represents a WrapperSet event raised by the SpotMarketOptimism contract. -type SpotMarketOptimismWrapperSet struct { - SynthMarketId *big.Int - WrapCollateralType common.Address - MaxWrappableAmount *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterWrapperSet is a free log retrieval operation binding the contract event 0xf6b8d296783aecfc5d372dff3e3e802ab63338637f9a2f3e2aae1e745c148def. -// -// Solidity: event WrapperSet(uint256 indexed synthMarketId, address indexed wrapCollateralType, uint256 maxWrappableAmount) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) FilterWrapperSet(opts *bind.FilterOpts, synthMarketId []*big.Int, wrapCollateralType []common.Address) (*SpotMarketOptimismWrapperSetIterator, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - var wrapCollateralTypeRule []interface{} - for _, wrapCollateralTypeItem := range wrapCollateralType { - wrapCollateralTypeRule = append(wrapCollateralTypeRule, wrapCollateralTypeItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.FilterLogs(opts, "WrapperSet", synthMarketIdRule, wrapCollateralTypeRule) - if err != nil { - return nil, err - } - return &SpotMarketOptimismWrapperSetIterator{contract: _SpotMarketOptimism.contract, event: "WrapperSet", logs: logs, sub: sub}, nil -} - -// WatchWrapperSet is a free log subscription operation binding the contract event 0xf6b8d296783aecfc5d372dff3e3e802ab63338637f9a2f3e2aae1e745c148def. -// -// Solidity: event WrapperSet(uint256 indexed synthMarketId, address indexed wrapCollateralType, uint256 maxWrappableAmount) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) WatchWrapperSet(opts *bind.WatchOpts, sink chan<- *SpotMarketOptimismWrapperSet, synthMarketId []*big.Int, wrapCollateralType []common.Address) (event.Subscription, error) { - - var synthMarketIdRule []interface{} - for _, synthMarketIdItem := range synthMarketId { - synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem) - } - var wrapCollateralTypeRule []interface{} - for _, wrapCollateralTypeItem := range wrapCollateralType { - wrapCollateralTypeRule = append(wrapCollateralTypeRule, wrapCollateralTypeItem) - } - - logs, sub, err := _SpotMarketOptimism.contract.WatchLogs(opts, "WrapperSet", synthMarketIdRule, wrapCollateralTypeRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SpotMarketOptimismWrapperSet) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "WrapperSet", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseWrapperSet is a log parse operation binding the contract event 0xf6b8d296783aecfc5d372dff3e3e802ab63338637f9a2f3e2aae1e745c148def. -// -// Solidity: event WrapperSet(uint256 indexed synthMarketId, address indexed wrapCollateralType, uint256 maxWrappableAmount) -func (_SpotMarketOptimism *SpotMarketOptimismFilterer) ParseWrapperSet(log types.Log) (*SpotMarketOptimismWrapperSet, error) { - event := new(SpotMarketOptimismWrapperSet) - if err := _SpotMarketOptimism.contract.UnpackLog(event, "WrapperSet", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/events/accountCreated.go b/events/accountCreated.go index e3fcce5..0d12354 100644 --- a/events/accountCreated.go +++ b/events/accountCreated.go @@ -3,7 +3,7 @@ package events import ( "github.com/ethereum/go-ethereum/event" - "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarketGoerli" + "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarket" "github.com/gateway-fm/perpsv3-Go/errors" "github.com/gateway-fm/perpsv3-Go/models" "github.com/gateway-fm/perpsv3-Go/pkg/logger" @@ -13,11 +13,11 @@ import ( type AccountCreatedSubscription struct { *basicSubscription NewAccountChan chan *models.Account - contractEventChan chan *perpsMarketGoerli.PerpsMarketGoerliAccountCreated + contractEventChan chan *perpsMarket.PerpsMarketAccountCreated } func (e *Events) ListenAccountCreated() (*AccountCreatedSubscription, error) { - createdChan := make(chan *perpsMarketGoerli.PerpsMarketGoerliAccountCreated) + createdChan := make(chan *perpsMarket.PerpsMarketAccountCreated) createdSub, err := e.perpsMarket.WatchAccountCreated(nil, createdChan, nil, nil) if err != nil { @@ -35,7 +35,7 @@ func (e *Events) ListenAccountCreated() (*AccountCreatedSubscription, error) { // newAccountCreatedSubscription is used to get new AccountCreatedSubscription instance func newAccountCreatedSubscription( eventSub event.Subscription, - created chan *perpsMarketGoerli.PerpsMarketGoerliAccountCreated, + created chan *perpsMarket.PerpsMarketAccountCreated, ) *AccountCreatedSubscription { return &AccountCreatedSubscription{ basicSubscription: newBasicSubscription(eventSub), @@ -45,7 +45,7 @@ func newAccountCreatedSubscription( } // listen is used to run events listen goroutine -func (s *AccountCreatedSubscription) listen(perpsMarket *perpsMarketGoerli.PerpsMarketGoerli) { +func (s *AccountCreatedSubscription) listen(perps *perpsMarket.PerpsMarket) { defer func() { close(s.NewAccountChan) close(s.contractEventChan) @@ -64,13 +64,13 @@ func (s *AccountCreatedSubscription) listen(perpsMarket *perpsMarketGoerli.Perps } return case newAccount := <-s.contractEventChan: - lastInteraction := getAccountLastInteraction(newAccount.AccountId, perpsMarket) + lastInteraction := getAccountLastInteraction(newAccount.AccountId, perps) account := models.FormatAccount( newAccount.AccountId, newAccount.Owner, lastInteraction.Uint64(), - []perpsMarketGoerli.IAccountModuleAccountPermissions{}, + []perpsMarket.IAccountModuleAccountPermissions{}, ) s.NewAccountChan <- account diff --git a/events/accountLiquidated.go b/events/accountLiquidated.go index fef4b19..3f6c0e2 100644 --- a/events/accountLiquidated.go +++ b/events/accountLiquidated.go @@ -3,7 +3,7 @@ package events import ( "github.com/ethereum/go-ethereum/event" - "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarketGoerli" + "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarket" "github.com/gateway-fm/perpsv3-Go/errors" "github.com/gateway-fm/perpsv3-Go/models" "github.com/gateway-fm/perpsv3-Go/pkg/logger" @@ -13,11 +13,11 @@ import ( type AccountLiquidatedSubscription struct { *basicSubscription AccountLiquidated chan *models.AccountLiquidated - contractEventChan chan *perpsMarketGoerli.PerpsMarketGoerliAccountLiquidated + contractEventChan chan *perpsMarket.PerpsMarketAccountLiquidated } func (e *Events) ListenAccountLiquidated() (*AccountLiquidatedSubscription, error) { - createdChan := make(chan *perpsMarketGoerli.PerpsMarketGoerliAccountLiquidated) + createdChan := make(chan *perpsMarket.PerpsMarketAccountLiquidated) liquidatedSub, err := e.perpsMarket.WatchAccountLiquidated(nil, createdChan, nil) if err != nil { @@ -35,7 +35,7 @@ func (e *Events) ListenAccountLiquidated() (*AccountLiquidatedSubscription, erro // newAccountsSubscription func newAccountLiquidatedSubscription( eventSub event.Subscription, - created chan *perpsMarketGoerli.PerpsMarketGoerliAccountLiquidated, + created chan *perpsMarket.PerpsMarketAccountLiquidated, ) *AccountLiquidatedSubscription { return &AccountLiquidatedSubscription{ basicSubscription: newBasicSubscription(eventSub), @@ -45,7 +45,7 @@ func newAccountLiquidatedSubscription( } // listen is used to run events listen goroutine -func (s *AccountLiquidatedSubscription) listen(perpsMarket *perpsMarketGoerli.PerpsMarketGoerli) { +func (s *AccountLiquidatedSubscription) listen(perps *perpsMarket.PerpsMarket) { defer func() { close(s.AccountLiquidated) close(s.contractEventChan) diff --git a/events/accountPermissionRevoked.go b/events/accountPermissionRevoked.go index 9a36c92..6b31d70 100644 --- a/events/accountPermissionRevoked.go +++ b/events/accountPermissionRevoked.go @@ -5,7 +5,7 @@ import ( "github.com/ethereum/go-ethereum/event" - "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarketGoerli" + "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarket" "github.com/gateway-fm/perpsv3-Go/errors" "github.com/gateway-fm/perpsv3-Go/models" "github.com/gateway-fm/perpsv3-Go/pkg/logger" @@ -15,11 +15,11 @@ import ( type AccountPermissionRevokedSubscription struct { *basicSubscription PermissionChangeChan chan *models.PermissionChanged - contractEventChan chan *perpsMarketGoerli.PerpsMarketGoerliPermissionRevoked + contractEventChan chan *perpsMarket.PerpsMarketPermissionRevoked } func (e *Events) ListenAccountPermissionRevoked() (*AccountPermissionRevokedSubscription, error) { - revokedChan := make(chan *perpsMarketGoerli.PerpsMarketGoerliPermissionRevoked) + revokedChan := make(chan *perpsMarket.PerpsMarketPermissionRevoked) revokedSub, err := e.perpsMarket.WatchPermissionRevoked(nil, revokedChan, nil, nil, nil) if err != nil { @@ -37,7 +37,7 @@ func (e *Events) ListenAccountPermissionRevoked() (*AccountPermissionRevokedSubs // newAccountPermissionRevokedSubscription is used to get new AccountPermissionRevokedSubscription instance func newAccountPermissionRevokedSubscription( eventSub event.Subscription, - revoked chan *perpsMarketGoerli.PerpsMarketGoerliPermissionRevoked, + revoked chan *perpsMarket.PerpsMarketPermissionRevoked, ) *AccountPermissionRevokedSubscription { return &AccountPermissionRevokedSubscription{ basicSubscription: newBasicSubscription(eventSub), @@ -47,7 +47,7 @@ func newAccountPermissionRevokedSubscription( } // listen is used to run events listen goroutine -func (s *AccountPermissionRevokedSubscription) listen(perpsMarket *perpsMarketGoerli.PerpsMarketGoerli) { +func (s *AccountPermissionRevokedSubscription) listen(perps *perpsMarket.PerpsMarket) { defer func() { close(s.PermissionChangeChan) close(s.contractEventChan) diff --git a/events/accountPermissionsGranted.go b/events/accountPermissionsGranted.go index 47482b9..3b0fee0 100644 --- a/events/accountPermissionsGranted.go +++ b/events/accountPermissionsGranted.go @@ -5,7 +5,7 @@ import ( "github.com/ethereum/go-ethereum/event" - "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarketGoerli" + "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarket" "github.com/gateway-fm/perpsv3-Go/errors" "github.com/gateway-fm/perpsv3-Go/models" "github.com/gateway-fm/perpsv3-Go/pkg/logger" @@ -15,11 +15,11 @@ import ( type AccountPermissionGrantedSubscription struct { *basicSubscription PermissionChangeChan chan *models.PermissionChanged - contractEventChan chan *perpsMarketGoerli.PerpsMarketGoerliPermissionGranted + contractEventChan chan *perpsMarket.PerpsMarketPermissionGranted } func (e *Events) ListenAccountPermissionGranted() (*AccountPermissionGrantedSubscription, error) { - createdChan := make(chan *perpsMarketGoerli.PerpsMarketGoerliPermissionGranted) + createdChan := make(chan *perpsMarket.PerpsMarketPermissionGranted) createdSub, err := e.perpsMarket.WatchPermissionGranted(nil, createdChan, nil, nil, nil) if err != nil { @@ -37,7 +37,7 @@ func (e *Events) ListenAccountPermissionGranted() (*AccountPermissionGrantedSubs // newAccountPermissionGrantedSubscription is used to get new AccountPermissionGrantedSubscription instance func newAccountPermissionGrantedSubscription( eventSub event.Subscription, - created chan *perpsMarketGoerli.PerpsMarketGoerliPermissionGranted, + created chan *perpsMarket.PerpsMarketPermissionGranted, ) *AccountPermissionGrantedSubscription { return &AccountPermissionGrantedSubscription{ basicSubscription: newBasicSubscription(eventSub), @@ -47,7 +47,7 @@ func newAccountPermissionGrantedSubscription( } // listen is used to run events listen goroutine -func (s *AccountPermissionGrantedSubscription) listen(perpsMarket *perpsMarketGoerli.PerpsMarketGoerli) { +func (s *AccountPermissionGrantedSubscription) listen(perps *perpsMarket.PerpsMarket) { defer func() { close(s.PermissionChangeChan) close(s.contractEventChan) diff --git a/events/events.go b/events/events.go index 593744c..abbcce2 100644 --- a/events/events.go +++ b/events/events.go @@ -1,14 +1,14 @@ package events import ( + "math/big" + "github.com/ethereum/go-ethereum/ethclient" "github.com/ethereum/go-ethereum/event" - "github.com/gateway-fm/perpsv3-Go/pkg/logger" - "math/big" - "github.com/gateway-fm/perpsv3-Go/contracts/coreGoerli" - "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarketGoerli" - "github.com/gateway-fm/perpsv3-Go/contracts/spotMarketGoerli" + "github.com/gateway-fm/perpsv3-Go/contracts/core" + "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarket" + "github.com/gateway-fm/perpsv3-Go/pkg/logger" ) // IEvents is an interface that is used to work with contract event listeners @@ -53,22 +53,19 @@ type IEvents interface { // Events implements IEvents interface type Events struct { rpcClient *ethclient.Client - core *coreGoerli.CoreGoerli - spotMarket *spotMarketGoerli.SpotMarketGoerli - perpsMarket *perpsMarketGoerli.PerpsMarketGoerli + core *core.Core + perpsMarket *perpsMarket.PerpsMarket } // NewEvents is used to create new Events instance that implements IEvents interface func NewEvents( client *ethclient.Client, - core *coreGoerli.CoreGoerli, - spotMarket *spotMarketGoerli.SpotMarketGoerli, - perpsMarket *perpsMarketGoerli.PerpsMarketGoerli, + core *core.Core, + perpsMarket *perpsMarket.PerpsMarket, ) IEvents { return &Events{ rpcClient: client, core: core, - spotMarket: spotMarket, perpsMarket: perpsMarket, } } @@ -99,7 +96,7 @@ func (s *basicSubscription) Close() { } // getAccountLastInteraction -func getAccountLastInteraction(id *big.Int, perpsMarket *perpsMarketGoerli.PerpsMarketGoerli) *big.Int { +func getAccountLastInteraction(id *big.Int, perpsMarket *perpsMarket.PerpsMarket) *big.Int { lastInteraction, err := perpsMarket.GetAccountLastInteraction(nil, id) if err != nil { logger.Log().WithField("layer", "Events-Accounts").Errorf( diff --git a/events/liquidations.go b/events/liquidations.go index 43a5ac8..b28c691 100644 --- a/events/liquidations.go +++ b/events/liquidations.go @@ -7,7 +7,7 @@ import ( "github.com/ethereum/go-ethereum/ethclient" "github.com/ethereum/go-ethereum/event" - "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarketGoerli" + "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarket" "github.com/gateway-fm/perpsv3-Go/errors" "github.com/gateway-fm/perpsv3-Go/models" "github.com/gateway-fm/perpsv3-Go/pkg/logger" @@ -17,11 +17,11 @@ import ( type LiquidationSubscription struct { *basicSubscription LiquidationsChan chan *models.Liquidation - contractEventChan chan *perpsMarketGoerli.PerpsMarketGoerliPositionLiquidated + contractEventChan chan *perpsMarket.PerpsMarketPositionLiquidated } func (e *Events) ListenLiquidations() (*LiquidationSubscription, error) { - contractEventChan := make(chan *perpsMarketGoerli.PerpsMarketGoerliPositionLiquidated) + contractEventChan := make(chan *perpsMarket.PerpsMarketPositionLiquidated) contractSub, err := e.perpsMarket.WatchPositionLiquidated(nil, contractEventChan, nil, nil) if err != nil { @@ -37,7 +37,7 @@ func (e *Events) ListenLiquidations() (*LiquidationSubscription, error) { } // newLiquidationSubscription is used to create new LiquidationSubscription instance -func newLiquidationSubscription(eventSub event.Subscription, contractEventChan chan *perpsMarketGoerli.PerpsMarketGoerliPositionLiquidated) *LiquidationSubscription { +func newLiquidationSubscription(eventSub event.Subscription, contractEventChan chan *perpsMarket.PerpsMarketPositionLiquidated) *LiquidationSubscription { return &LiquidationSubscription{ basicSubscription: newBasicSubscription(eventSub), contractEventChan: contractEventChan, diff --git a/events/marketUpdate.go b/events/marketUpdate.go index 442be5d..34260e2 100644 --- a/events/marketUpdate.go +++ b/events/marketUpdate.go @@ -7,7 +7,7 @@ import ( "github.com/ethereum/go-ethereum/ethclient" "github.com/ethereum/go-ethereum/event" - "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarketGoerli" + "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarket" "github.com/gateway-fm/perpsv3-Go/errors" "github.com/gateway-fm/perpsv3-Go/models" "github.com/gateway-fm/perpsv3-Go/pkg/logger" @@ -17,18 +17,18 @@ import ( type MarketUpdateSubscription struct { *basicSubscription MarketUpdatesChan chan *models.MarketUpdate - contractEventChan chan *perpsMarketGoerli.PerpsMarketGoerliMarketUpdated + contractEventChan chan *perpsMarket.PerpsMarketMarketUpdated } // MarketUpdateSubscriptionBig is a struct for listening to all 'MarketUpdated' contract events and return them as models.MarketUpdateBig struct type MarketUpdateSubscriptionBig struct { *basicSubscription MarketUpdatesChan chan *models.MarketUpdateBig - contractEventChan chan *perpsMarketGoerli.PerpsMarketGoerliMarketUpdated + contractEventChan chan *perpsMarket.PerpsMarketMarketUpdated } func (e *Events) ListenMarketUpdatesBig() (*MarketUpdateSubscriptionBig, error) { - contractEventChan := make(chan *perpsMarketGoerli.PerpsMarketGoerliMarketUpdated) + contractEventChan := make(chan *perpsMarket.PerpsMarketMarketUpdated) contractSub, err := e.perpsMarket.WatchMarketUpdated(nil, contractEventChan) if err != nil { @@ -44,7 +44,7 @@ func (e *Events) ListenMarketUpdatesBig() (*MarketUpdateSubscriptionBig, error) } func (e *Events) ListenMarketUpdates() (*MarketUpdateSubscription, error) { - contractEventChan := make(chan *perpsMarketGoerli.PerpsMarketGoerliMarketUpdated) + contractEventChan := make(chan *perpsMarket.PerpsMarketMarketUpdated) contractSub, err := e.perpsMarket.WatchMarketUpdated(nil, contractEventChan) if err != nil { @@ -60,7 +60,7 @@ func (e *Events) ListenMarketUpdates() (*MarketUpdateSubscription, error) { } // newMarketUpdateSubscription is used to create new MarketUpdateSubscription instance -func newMarketUpdateSubscription(eventSub event.Subscription, contractEventChan chan *perpsMarketGoerli.PerpsMarketGoerliMarketUpdated) *MarketUpdateSubscription { +func newMarketUpdateSubscription(eventSub event.Subscription, contractEventChan chan *perpsMarket.PerpsMarketMarketUpdated) *MarketUpdateSubscription { return &MarketUpdateSubscription{ basicSubscription: newBasicSubscription(eventSub), contractEventChan: contractEventChan, @@ -69,7 +69,7 @@ func newMarketUpdateSubscription(eventSub event.Subscription, contractEventChan } // newMarketUpdateSubscription is used to create new MarketUpdateSubscription instance -func newMarketUpdateSubscriptionBig(eventSub event.Subscription, contractEventChan chan *perpsMarketGoerli.PerpsMarketGoerliMarketUpdated) *MarketUpdateSubscriptionBig { +func newMarketUpdateSubscriptionBig(eventSub event.Subscription, contractEventChan chan *perpsMarket.PerpsMarketMarketUpdated) *MarketUpdateSubscriptionBig { return &MarketUpdateSubscriptionBig{ basicSubscription: newBasicSubscription(eventSub), contractEventChan: contractEventChan, diff --git a/events/orders.go b/events/orders.go index 1af9276..9b76e9a 100644 --- a/events/orders.go +++ b/events/orders.go @@ -7,7 +7,7 @@ import ( "github.com/ethereum/go-ethereum/ethclient" "github.com/ethereum/go-ethereum/event" - "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarketGoerli" + "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarket" "github.com/gateway-fm/perpsv3-Go/errors" "github.com/gateway-fm/perpsv3-Go/models" "github.com/gateway-fm/perpsv3-Go/pkg/logger" @@ -17,11 +17,11 @@ import ( type OrderSubscription struct { *basicSubscription OrdersChan chan *models.Order - contractEventChan chan *perpsMarketGoerli.PerpsMarketGoerliOrderCommitted + contractEventChan chan *perpsMarket.PerpsMarketOrderCommitted } func (e *Events) ListenOrders() (*OrderSubscription, error) { - contractEventChan := make(chan *perpsMarketGoerli.PerpsMarketGoerliOrderCommitted) + contractEventChan := make(chan *perpsMarket.PerpsMarketOrderCommitted) contractSub, err := e.perpsMarket.WatchOrderCommitted(nil, contractEventChan, nil, nil, nil) if err != nil { @@ -37,7 +37,7 @@ func (e *Events) ListenOrders() (*OrderSubscription, error) { } // newOrderSubscription is used to create new OrderSubscription instance -func newOrderSubscription(eventSub event.Subscription, contractEventChan chan *perpsMarketGoerli.PerpsMarketGoerliOrderCommitted) *OrderSubscription { +func newOrderSubscription(eventSub event.Subscription, contractEventChan chan *perpsMarket.PerpsMarketOrderCommitted) *OrderSubscription { return &OrderSubscription{ basicSubscription: newBasicSubscription(eventSub), contractEventChan: contractEventChan, diff --git a/events/trades.go b/events/trades.go index 65de732..446e360 100644 --- a/events/trades.go +++ b/events/trades.go @@ -7,7 +7,7 @@ import ( "github.com/ethereum/go-ethereum/ethclient" "github.com/ethereum/go-ethereum/event" - "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarketGoerli" + "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarket" "github.com/gateway-fm/perpsv3-Go/errors" "github.com/gateway-fm/perpsv3-Go/models" "github.com/gateway-fm/perpsv3-Go/pkg/logger" @@ -17,11 +17,11 @@ import ( type TradeSubscription struct { *basicSubscription TradesChan chan *models.Trade - contractEventChan chan *perpsMarketGoerli.PerpsMarketGoerliOrderSettled + contractEventChan chan *perpsMarket.PerpsMarketOrderSettled } func (e *Events) ListenTrades() (*TradeSubscription, error) { - contractEventChan := make(chan *perpsMarketGoerli.PerpsMarketGoerliOrderSettled) + contractEventChan := make(chan *perpsMarket.PerpsMarketOrderSettled) contractSub, err := e.perpsMarket.WatchOrderSettled(nil, contractEventChan, nil, nil, nil) if err != nil { @@ -37,7 +37,7 @@ func (e *Events) ListenTrades() (*TradeSubscription, error) { } // newTradeSubscription is used to create new TradeSubscription instance -func newTradeSubscription(eventSub event.Subscription, contractEventChan chan *perpsMarketGoerli.PerpsMarketGoerliOrderSettled) *TradeSubscription { +func newTradeSubscription(eventSub event.Subscription, contractEventChan chan *perpsMarket.PerpsMarketOrderSettled) *TradeSubscription { return &TradeSubscription{ basicSubscription: newBasicSubscription(eventSub), contractEventChan: contractEventChan, diff --git a/examples/new_lib.go b/examples/new_lib.go new file mode 100644 index 0000000..36baf60 --- /dev/null +++ b/examples/new_lib.go @@ -0,0 +1,27 @@ +package main + +import ( + "log" + + perpsv3_Go "github.com/gateway-fm/perpsv3-Go" +) + +func main() { + // you can use custom rpc provider url. To use default url use blank string + rpcURL := "" + + conf := perpsv3_Go.GetOptimismGoerliDefaultConfig(rpcURL) + // OR you can use base andromeda chain + // conf := perpsv3_Go.GetBaseAndromedaDefaultConfig(rpcURL) + + lib, err := perpsv3_Go.Create(conf) + if err != nil { + log.Fatal(err) + } + + //... + // call needed methods + // ... + + lib.Close() +} diff --git a/models/account.go b/models/account.go index afa9a6b..f77d6f0 100644 --- a/models/account.go +++ b/models/account.go @@ -5,7 +5,7 @@ import ( "github.com/ethereum/go-ethereum/common" - "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarketGoerli" + "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarket" ) // Account is a struct for account model @@ -35,7 +35,7 @@ func FormatAccount( id *big.Int, owner common.Address, lastInteraction uint64, - permissions []perpsMarketGoerli.IAccountModuleAccountPermissions, + permissions []perpsMarket.IAccountModuleAccountPermissions, ) *Account { return &Account{ ID: id, diff --git a/models/liquidation.go b/models/liquidation.go index c7b25ca..b982299 100644 --- a/models/liquidation.go +++ b/models/liquidation.go @@ -3,7 +3,7 @@ package models import ( "math/big" - "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarketGoerli" + "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarket" "github.com/gateway-fm/perpsv3-Go/pkg/logger" ) @@ -24,7 +24,7 @@ type Liquidation struct { } // GetLiquidationFromEvent is used to get Liquidation struct from given contract event -func GetLiquidationFromEvent(event *perpsMarketGoerli.PerpsMarketGoerliPositionLiquidated, time uint64) *Liquidation { +func GetLiquidationFromEvent(event *perpsMarket.PerpsMarketPositionLiquidated, time uint64) *Liquidation { if event == nil { logger.Log().WithField("layer", "Models-Liquidation").Warning("nil event received") return &Liquidation{} diff --git a/models/marketData.go b/models/marketData.go index dad39c8..fe23471 100644 --- a/models/marketData.go +++ b/models/marketData.go @@ -1,9 +1,10 @@ package models import ( - "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarketGoerli" - "github.com/gateway-fm/perpsv3-Go/pkg/logger" "math/big" + + "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarket" + "github.com/gateway-fm/perpsv3-Go/pkg/logger" ) // MarketUpdate @@ -125,7 +126,7 @@ func GetLiquidationParameters(resp struct { } // GetMarketUpdateFromEvent is used to get MarketUpdate struct from given event and block timestamp -func GetMarketUpdateFromEvent(event *perpsMarketGoerli.PerpsMarketGoerliMarketUpdated, time uint64) *MarketUpdate { +func GetMarketUpdateFromEvent(event *perpsMarket.PerpsMarketMarketUpdated, time uint64) *MarketUpdate { if event == nil { logger.Log().WithField("layer", "Models-MarketUpdate").Warning("nil event received") return &MarketUpdate{} @@ -181,7 +182,7 @@ func GetMarketUpdateFromEvent(event *perpsMarketGoerli.PerpsMarketGoerliMarketUp } // GetMarketUpdateBigFromEvent is used to get MarketUpdateBig model from given event and block timestamp -func GetMarketUpdateBigFromEvent(event *perpsMarketGoerli.PerpsMarketGoerliMarketUpdated, time uint64) *MarketUpdateBig { +func GetMarketUpdateBigFromEvent(event *perpsMarket.PerpsMarketMarketUpdated, time uint64) *MarketUpdateBig { if event == nil { logger.Log().WithField("layer", "Models-GetMarketUpdateBigFromEvent").Warning("nil event received") return &MarketUpdateBig{BlockTimestamp: time} @@ -211,7 +212,7 @@ func GetMarketMetadataFromContractResponse(id *big.Int, name string, symbol stri } // GetMarketSummaryFromContractModel is used to get MarketSummary from contract data struct -func GetMarketSummaryFromContractModel(summary perpsMarketGoerli.IPerpsMarketModuleMarketSummary, marketID *big.Int, time uint64) *MarketSummary { +func GetMarketSummaryFromContractModel(summary perpsMarket.IPerpsMarketModuleMarketSummary, marketID *big.Int, time uint64) *MarketSummary { return &MarketSummary{ MarketID: marketID, Skew: summary.Skew, diff --git a/models/order.go b/models/order.go index 3697734..3a9b6f5 100644 --- a/models/order.go +++ b/models/order.go @@ -5,7 +5,7 @@ import ( "github.com/ethereum/go-ethereum/common" - "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarketGoerli" + "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarket" "github.com/gateway-fm/perpsv3-Go/pkg/logger" ) @@ -36,7 +36,7 @@ type Order struct { } // GetOrderFromEvent is used to get Order struct from given event and block timestamp -func GetOrderFromEvent(event *perpsMarketGoerli.PerpsMarketGoerliOrderCommitted, time uint64) *Order { +func GetOrderFromEvent(event *perpsMarket.PerpsMarketOrderCommitted, time uint64) *Order { if event == nil { logger.Log().WithField("layer", "Models-Order").Warning("nil event received") return &Order{} diff --git a/models/permissions.go b/models/permissions.go index 11dbf8f..ebf7590 100644 --- a/models/permissions.go +++ b/models/permissions.go @@ -3,7 +3,7 @@ package models import ( "strings" - "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarketGoerli" + "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarket" "github.com/gateway-fm/perpsv3-Go/errors" "github.com/gateway-fm/perpsv3-Go/pkg/logger" ) @@ -51,7 +51,7 @@ func PermissionFromString(s string) (Permission, error) { } // decodePermissions is used to decode given contract permissions to Permission slice -func decodePermissions(perm perpsMarketGoerli.IAccountModuleAccountPermissions) (res []Permission) { +func decodePermissions(perm perpsMarket.IAccountModuleAccountPermissions) (res []Permission) { for _, b := range perm.Permissions { p, err := PermissionFromString(strings.TrimRight(string(b[:]), string(rune(0)))) if err != nil { diff --git a/models/trade.go b/models/trade.go index 9496dbb..73e0ee4 100644 --- a/models/trade.go +++ b/models/trade.go @@ -5,7 +5,7 @@ import ( "github.com/ethereum/go-ethereum/common" - "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarketGoerli" + "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarket" "github.com/gateway-fm/perpsv3-Go/pkg/logger" ) @@ -46,7 +46,7 @@ type Trade struct { } // GetTradeFromEvent is used to get new Trade from given event and block timestamp -func GetTradeFromEvent(event *perpsMarketGoerli.PerpsMarketGoerliOrderSettled, time uint64) *Trade { +func GetTradeFromEvent(event *perpsMarket.PerpsMarketOrderSettled, time uint64) *Trade { if event == nil { logger.Log().WithField("layer", "Models-Trade").Warning("nil event received") return &Trade{} diff --git a/models/userPermissions.go b/models/userPermissions.go index 3285ddc..f2cc8ee 100644 --- a/models/userPermissions.go +++ b/models/userPermissions.go @@ -1,10 +1,10 @@ package models import ( - "github.com/ethereum/go-ethereum/common" "math/big" - "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarketGoerli" + "github.com/ethereum/go-ethereum/common" + "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarket" ) // UserPermissions is a struct for permissions granted by account owner to User with a list of Permissions @@ -21,7 +21,7 @@ type PermissionChanged struct { } // getUserPermissions is used to get UserPermissions slice from given contract user permissions slice -func getUserPermissions(perms []perpsMarketGoerli.IAccountModuleAccountPermissions) (res []*UserPermissions) { +func getUserPermissions(perms []perpsMarket.IAccountModuleAccountPermissions) (res []*UserPermissions) { for _, p := range perms { perm := &UserPermissions{ User: p.User, diff --git a/perpsv3.go b/perpsv3.go index e6bdba6..3fc1cff 100644 --- a/perpsv3.go +++ b/perpsv3.go @@ -7,9 +7,8 @@ import ( "github.com/ethereum/go-ethereum/ethclient" "github.com/gateway-fm/perpsv3-Go/config" - "github.com/gateway-fm/perpsv3-Go/contracts/coreGoerli" - "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarketGoerli" - "github.com/gateway-fm/perpsv3-Go/contracts/spotMarketGoerli" + "github.com/gateway-fm/perpsv3-Go/contracts/core" + "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarket" "github.com/gateway-fm/perpsv3-Go/errors" "github.com/gateway-fm/perpsv3-Go/events" "github.com/gateway-fm/perpsv3-Go/models" @@ -187,6 +186,14 @@ func Create(conf *config.PerpsvConfig) (IPerpsv3, error) { return lib, nil } +func GetOptimismGoerliDefaultConfig(rpcURL string) *config.PerpsvConfig { + return config.GetOptimismGoerliDefaultConfig(rpcURL) +} + +func GetBaseAndromedaDefaultConfig(rpcURL string) *config.PerpsvConfig { + return config.GetBaseAndromedaDefaultConfig(rpcURL) +} + func (p *Perpsv3) RetrieveTrades(fromBlock uint64, toBLock *uint64) ([]*models.Trade, error) { return p.service.RetrieveTrades(fromBlock, toBLock) } @@ -345,66 +352,38 @@ func (p *Perpsv3) init() error { p.rpcClient = rpcClient - core, err := p.getGoerliCoreContract() + coreContact, err := p.getCoreContract() if err != nil { return err } - spotMarket, err := p.getGoerliSpotMarketContract() - if err != nil { - return err - } - - perpsMarket, err := p.getGoerliPerpsMarket() + perpsMarketContract, err := p.getPerpsMarket() if err != nil { return err } p.service = services.NewService( rpcClient, - core, + coreContact, p.config.FirstContractBlocks.Core, - spotMarket, - p.config.FirstContractBlocks.SpotMarket, - perpsMarket, + perpsMarketContract, p.config.FirstContractBlocks.PerpsMarket, ) - p.events = events.NewEvents(rpcClient, core, spotMarket, perpsMarket) + p.events = events.NewEvents(rpcClient, coreContact, perpsMarketContract) return nil } -// getGoerliSpotMarketContract is used to get spot market contract instance deployed on goerli test net -func (p *Perpsv3) getGoerliSpotMarketContract() (*spotMarketGoerli.SpotMarketGoerli, error) { - if p.config.ContractAddresses.SpotMarket != "" { - addr, err := getAddr(p.config.ContractAddresses.SpotMarket, "spot market") - if err != nil { - return nil, err - } - - contract, err := spotMarketGoerli.NewSpotMarketGoerli(addr, p.rpcClient) - if err != nil { - logger.Log().WithField("layer", "Init").Errorf("error getting spot market contract: %v", err.Error()) - return nil, errors.GetInitContractErr(err) - } - - return contract, nil - } else { - logger.Log().WithField("layer", "Init").Errorf("no spot market contract address") - return nil, errors.BlankContractAddrErr - } -} - // getGoerliCoreContract is used to get core contract instance deployed on goerli test net -func (p *Perpsv3) getGoerliCoreContract() (*coreGoerli.CoreGoerli, error) { +func (p *Perpsv3) getCoreContract() (*core.Core, error) { if p.config.ContractAddresses.Core != "" { addr, err := getAddr(p.config.ContractAddresses.Core, "core") if err != nil { return nil, err } - contract, err := coreGoerli.NewCoreGoerli(addr, p.rpcClient) + contract, err := core.NewCore(addr, p.rpcClient) if err != nil { logger.Log().WithField("layer", "Init").Errorf("error getting core contract: %v", err.Error()) return nil, errors.GetInitContractErr(err) @@ -417,15 +396,15 @@ func (p *Perpsv3) getGoerliCoreContract() (*coreGoerli.CoreGoerli, error) { } } -// getGoerliPerpsMarket is used to get perps market contract instance deployed on goerli test net -func (p *Perpsv3) getGoerliPerpsMarket() (*perpsMarketGoerli.PerpsMarketGoerli, error) { +// getGoerliPerpsMarket is used to get perps market contract instance +func (p *Perpsv3) getPerpsMarket() (*perpsMarket.PerpsMarket, error) { if p.config.ContractAddresses.PerpsMarket != "" { - addr, err := getAddr(p.config.ContractAddresses.PerpsMarket, "core") + addr, err := getAddr(p.config.ContractAddresses.PerpsMarket, "perps") if err != nil { return nil, err } - contract, err := perpsMarketGoerli.NewPerpsMarketGoerli(addr, p.rpcClient) + contract, err := perpsMarket.NewPerpsMarket(addr, p.rpcClient) if err != nil { logger.Log().WithField("layer", "Init").Errorf("error getting perps market contract: %v", err.Error()) return nil, errors.GetInitContractErr(err) diff --git a/perpsv3_test.go b/perpsv3_test.go index 93a3b62..0f66395 100644 --- a/perpsv3_test.go +++ b/perpsv3_test.go @@ -24,7 +24,7 @@ func TestInit(t *testing.T) { }{ { name: "goerli default config", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), }, // No default perps market address on mainnet // @@ -37,8 +37,7 @@ func TestInit(t *testing.T) { conf: &config.PerpsvConfig{ RPC: "", ContractAddresses: &config.ContractAddresses{ - Core: "0x76490713314fCEC173f44e99346F54c6e92a8E42", - SpotMarket: "0x5FF4b3aacdeC86782d8c757FAa638d8790799E83", + Core: "0x76490713314fCEC173f44e99346F54c6e92a8E42", }, ConnectionTimeout: time.Second * 30, ReadTimeout: time.Second * 15, @@ -50,8 +49,7 @@ func TestInit(t *testing.T) { conf: &config.PerpsvConfig{ RPC: "not-url", ContractAddresses: &config.ContractAddresses{ - Core: "0x76490713314fCEC173f44e99346F54c6e92a8E42", - SpotMarket: "0x5FF4b3aacdeC86782d8c757FAa638d8790799E83", + Core: "0x76490713314fCEC173f44e99346F54c6e92a8E42", }, ConnectionTimeout: time.Second * 30, ReadTimeout: time.Second * 15, @@ -63,8 +61,7 @@ func TestInit(t *testing.T) { conf: &config.PerpsvConfig{ RPC: "https://rpc.goerli.optimism.gateway.fm", ContractAddresses: &config.ContractAddresses{ - Core: "", - SpotMarket: "0x5FF4b3aacdeC86782d8c757FAa638d8790799E83", + Core: "", }, ConnectionTimeout: time.Second * 30, ReadTimeout: time.Second * 15, @@ -76,34 +73,7 @@ func TestInit(t *testing.T) { conf: &config.PerpsvConfig{ RPC: "https://rpc.goerli.optimism.gateway.fm", ContractAddresses: &config.ContractAddresses{ - Core: "not-addr", - SpotMarket: "0x5FF4b3aacdeC86782d8c757FAa638d8790799E83", - }, - ConnectionTimeout: time.Second * 30, - ReadTimeout: time.Second * 15, - }, - wantErr: errors.InvalidContractAddrErr, - }, - { - name: "no spot market addr", - conf: &config.PerpsvConfig{ - RPC: "https://rpc.goerli.optimism.gateway.fm", - ContractAddresses: &config.ContractAddresses{ - Core: "0x76490713314fCEC173f44e99346F54c6e92a8E42", - SpotMarket: "", - }, - ConnectionTimeout: time.Second * 30, - ReadTimeout: time.Second * 15, - }, - wantErr: errors.BlankContractAddrErr, - }, - { - name: "bad spot market addr", - conf: &config.PerpsvConfig{ - RPC: "https://rpc.goerli.optimism.gateway.fm", - ContractAddresses: &config.ContractAddresses{ - Core: "0x76490713314fCEC173f44e99346F54c6e92a8E42", - SpotMarket: "not-addr", + Core: "not-addr", }, ConnectionTimeout: time.Second * 30, ReadTimeout: time.Second * 15, @@ -175,28 +145,28 @@ func TestPerpsv3_RetrieveTrades(t *testing.T) { }{ { name: "no error default values", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), startBlock: 0, endBlock: nil, wantRes: []*models.Trade{trade, trade, trade}, }, { name: "no error custom values", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), startBlock: blockN, endBlock: &blockN, wantRes: []*models.Trade{trade}, }, { name: "no error custom values blank result", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), startBlock: blockN, endBlock: &blockN, wantRes: []*models.Trade{}, }, { name: "error", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), startBlock: 0, endBlock: nil, wantErr: errors.FilterErr, @@ -273,25 +243,25 @@ func TestPerpsv3_RetrieveTradesLimit(t *testing.T) { }{ { name: "no error default values", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), limit: 0, wantRes: []*models.Trade{trade, trade, trade}, }, { name: "no error custom values", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), limit: 1, wantRes: []*models.Trade{trade}, }, { name: "no error custom values blank result", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), limit: 1, wantRes: []*models.Trade{}, }, { name: "error", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), limit: 1, wantErr: errors.FilterErr, }, @@ -353,28 +323,28 @@ func TestPerpsv3_RetrieveOrders(t *testing.T) { }{ { name: "no error default values", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), startBlock: 0, endBlock: nil, wantRes: []*models.Order{liquidation, liquidation, liquidation}, }, { name: "no error custom values", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), startBlock: blockN, endBlock: &blockN, wantRes: []*models.Order{liquidation}, }, { name: "no error custom values blank result", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), startBlock: blockN, endBlock: &blockN, wantRes: []*models.Order{}, }, { name: "error", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), startBlock: 0, endBlock: nil, wantErr: errors.FilterErr, @@ -434,25 +404,25 @@ func TestPerpsv3_RetrieveOrdersLimit(t *testing.T) { }{ { name: "no error default values", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), limit: 0, wantRes: []*models.Order{liquidation, liquidation, liquidation}, }, { name: "no error custom values", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), limit: 1, wantRes: []*models.Order{liquidation}, }, { name: "no error custom values blank result", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), limit: 1, wantRes: []*models.Order{}, }, { name: "error", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), limit: 1, wantErr: errors.FilterErr, }, @@ -503,28 +473,28 @@ func TestPerpsv3_RetrieveLiquidations(t *testing.T) { }{ { name: "no error default values", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), startBlock: 0, endBlock: nil, wantRes: []*models.Liquidation{liquidation, liquidation, liquidation}, }, { name: "no error custom values", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), startBlock: blockN, endBlock: &blockN, wantRes: []*models.Liquidation{liquidation}, }, { name: "no error custom values blank result", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), startBlock: blockN, endBlock: &blockN, wantRes: []*models.Liquidation{}, }, { name: "error", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), startBlock: 0, endBlock: nil, wantErr: errors.FilterErr, @@ -573,25 +543,25 @@ func TestPerpsv3_RetrieveLiquidationsLimit(t *testing.T) { }{ { name: "no error default values", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), limit: 0, wantRes: []*models.Liquidation{liquidation, liquidation, liquidation}, }, { name: "no error custom values", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), limit: 10, wantRes: []*models.Liquidation{liquidation}, }, { name: "no error custom values blank result", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), limit: 10, wantRes: []*models.Liquidation{}, }, { name: "error", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), limit: 0, wantErr: errors.FilterErr, }, @@ -652,28 +622,28 @@ func TestPerpsv3_RetrieveMarketUpdates(t *testing.T) { }{ { name: "no error default values", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), startBlock: 0, endBlock: nil, wantRes: []*models.MarketUpdate{marketUpdate, marketUpdate, marketUpdate}, }, { name: "no error custom values", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), startBlock: blockN, endBlock: &blockN, wantRes: []*models.MarketUpdate{marketUpdate}, }, { name: "no error custom values blank result", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), startBlock: blockN, endBlock: &blockN, wantRes: []*models.MarketUpdate{}, }, { name: "error", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), startBlock: 0, endBlock: nil, wantErr: errors.FilterErr, @@ -732,25 +702,25 @@ func TestPerpsv3_RetrieveMarketUpdatesLimit(t *testing.T) { }{ { name: "no error default values", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), limit: 0, wantRes: []*models.MarketUpdate{marketUpdate, marketUpdate, marketUpdate}, }, { name: "no error custom values", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), limit: 1, wantRes: []*models.MarketUpdate{marketUpdate}, }, { name: "no error custom values blank result", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), limit: 1, wantRes: []*models.MarketUpdate{}, }, { name: "error", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), limit: 1, wantErr: errors.FilterErr, }, @@ -805,28 +775,28 @@ func TestPerpsv3_RetrieveMarketUpdatesBig(t *testing.T) { }{ { name: "no error default values", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), startBlock: 0, endBlock: nil, wantRes: []*models.MarketUpdateBig{marketUpdate, marketUpdate, marketUpdate}, }, { name: "no error custom values", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), startBlock: blockN, endBlock: &blockN, wantRes: []*models.MarketUpdateBig{marketUpdate}, }, { name: "no error custom values blank result", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), startBlock: blockN, endBlock: &blockN, wantRes: []*models.MarketUpdateBig{}, }, { name: "error", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), startBlock: 0, endBlock: nil, wantErr: errors.FilterErr, @@ -879,25 +849,25 @@ func TestPerpsv3_RetrieveMarketUpdatesBigLimit(t *testing.T) { }{ { name: "no error default values", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), limit: 0, wantRes: []*models.MarketUpdateBig{marketUpdate, marketUpdate, marketUpdate}, }, { name: "no error custom values", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), limit: 1, wantRes: []*models.MarketUpdateBig{marketUpdate}, }, { name: "no error custom values blank result", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), limit: 1, wantRes: []*models.MarketUpdateBig{}, }, { name: "error", - conf: config.GetGoerliDefaultPerpsvConfig(), + conf: config.GetOptimismGoerliDefaultConfig(""), limit: 1, wantErr: errors.FilterErr, }, @@ -949,7 +919,7 @@ func TestPerpsv3_ListenTrades(t *testing.T) { defer ctrl.Finish() mockEvents := mock_events.NewMockIEvents(ctrl) - p, _ := createTest(config.GetGoerliDefaultPerpsvConfig()) + p, _ := createTest(config.GetOptimismGoerliDefaultConfig("")) p.events = mockEvents mockEvents.EXPECT().ListenTrades().Return(tt.sub, tt.wantErr) @@ -989,7 +959,7 @@ func TestPerpsv3_ListenOrders(t *testing.T) { defer ctrl.Finish() mockEvents := mock_events.NewMockIEvents(ctrl) - p, _ := createTest(config.GetGoerliDefaultPerpsvConfig()) + p, _ := createTest(config.GetOptimismGoerliDefaultConfig("")) p.events = mockEvents mockEvents.EXPECT().ListenOrders().Return(tt.sub, tt.wantErr) @@ -1029,7 +999,7 @@ func TestPerpsv3_ListenMarketUpdates(t *testing.T) { defer ctrl.Finish() mockEvents := mock_events.NewMockIEvents(ctrl) - p, _ := createTest(config.GetGoerliDefaultPerpsvConfig()) + p, _ := createTest(config.GetOptimismGoerliDefaultConfig("")) p.events = mockEvents mockEvents.EXPECT().ListenMarketUpdates().Return(tt.sub, tt.wantErr) @@ -1078,7 +1048,7 @@ func TestPerpsv3_GetPosition(t *testing.T) { defer ctrl.Finish() mockService := mock_services.NewMockIService(ctrl) - p, _ := createTest(config.GetGoerliDefaultPerpsvConfig()) + p, _ := createTest(config.GetOptimismGoerliDefaultConfig("")) p.service = mockService mockService.EXPECT().GetPosition(tt.accountID, tt.marketID).Return(tt.wantRes, tt.wantErr) @@ -1124,7 +1094,7 @@ func TestPerpsv3_GetMarketMetadata(t *testing.T) { defer ctrl.Finish() mockService := mock_services.NewMockIService(ctrl) - p, _ := createTest(config.GetGoerliDefaultPerpsvConfig()) + p, _ := createTest(config.GetOptimismGoerliDefaultConfig("")) p.service = mockService mockService.EXPECT().GetMarketMetadata(tt.marketID).Return(tt.wantRes, tt.wantErr) @@ -1182,7 +1152,7 @@ func TestPerpsv3_FormatAccount(t *testing.T) { defer ctrl.Finish() mockService := mock_services.NewMockIService(ctrl) - p, _ := createTest(config.GetGoerliDefaultPerpsvConfig()) + p, _ := createTest(config.GetOptimismGoerliDefaultConfig("")) p.service = mockService mockService.EXPECT().FormatAccount(tt.accountID).Return(tt.wantRes, tt.wantErr) @@ -1255,7 +1225,7 @@ func TestPerpsv3_FormatAccounts(t *testing.T) { defer ctrl.Finish() mockService := mock_services.NewMockIService(ctrl) - p, _ := createTest(config.GetGoerliDefaultPerpsvConfig()) + p, _ := createTest(config.GetOptimismGoerliDefaultConfig("")) p.service = mockService mockService.EXPECT().FormatAccounts().Return(tt.wantRes, tt.wantErr) @@ -1332,7 +1302,7 @@ func TestPerpsv3_FormatAccountsLimit(t *testing.T) { defer ctrl.Finish() mockService := mock_services.NewMockIService(ctrl) - p, _ := createTest(config.GetGoerliDefaultPerpsvConfig()) + p, _ := createTest(config.GetOptimismGoerliDefaultConfig("")) p.service = mockService mockService.EXPECT().FormatAccountsLimit(tt.limit).Return(tt.wantRes, tt.wantErr) @@ -1382,7 +1352,7 @@ func TestPerpsv3_GetMarketSummary(t *testing.T) { defer ctrl.Finish() mockService := mock_services.NewMockIService(ctrl) - p, _ := createTest(config.GetGoerliDefaultPerpsvConfig()) + p, _ := createTest(config.GetOptimismGoerliDefaultConfig("")) p.service = mockService mockService.EXPECT().GetMarketSummary(tt.marketID).Return(tt.summary, tt.wantErr) diff --git a/services/accounts_test.go b/services/accounts_test.go index fbf193a..18ad7d5 100644 --- a/services/accounts_test.go +++ b/services/accounts_test.go @@ -1,17 +1,18 @@ package services import ( - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/ethclient" - "github.com/gateway-fm/perpsv3-Go/contracts/coreGoerli" - "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarketGoerli" - "github.com/gateway-fm/perpsv3-Go/contracts/spotMarketGoerli" - "github.com/gateway-fm/perpsv3-Go/models" - "github.com/stretchr/testify/require" "log" "math/big" "os" "testing" + + "github.com/ethereum/go-ethereum/common" + "github.com/ethereum/go-ethereum/ethclient" + "github.com/stretchr/testify/require" + + "github.com/gateway-fm/perpsv3-Go/contracts/core" + "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarket" + "github.com/gateway-fm/perpsv3-Go/models" ) func TestService_FormatAccount_OnChain(t *testing.T) { @@ -22,9 +23,8 @@ func TestService_FormatAccount_OnChain(t *testing.T) { rpcClient, _ := ethclient.Dial(rpc) - coreC, _ := coreGoerli.NewCoreGoerli(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient) - spot, _ := spotMarketGoerli.NewSpotMarketGoerli(common.HexToAddress("0x5FF4b3aacdeC86782d8c757FAa638d8790799E83"), rpcClient) - perps, _ := perpsMarketGoerli.NewPerpsMarketGoerli(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient) + coreC, _ := core.NewCore(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient) + perps, _ := perpsMarket.NewPerpsMarket(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient) idPer := new(big.Int) idPer.SetString("170141183460469231731687303715884105754", 10) @@ -56,7 +56,7 @@ func TestService_FormatAccount_OnChain(t *testing.T) { } for _, tt := range testCases { t.Run(tt.name, func(t *testing.T) { - s := NewService(rpcClient, coreC, 11664658, spot, 10875051, perps, 12708889) + s := NewService(rpcClient, coreC, 11664658, perps, 12708889) res, err := s.FormatAccount(tt.id) @@ -78,11 +78,10 @@ func TestService_FormatAccounts_OnChain_Limit(t *testing.T) { rpcClient, _ := ethclient.Dial(rpc) - coreC, _ := coreGoerli.NewCoreGoerli(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient) - spot, _ := spotMarketGoerli.NewSpotMarketGoerli(common.HexToAddress("0x5FF4b3aacdeC86782d8c757FAa638d8790799E83"), rpcClient) - perps, _ := perpsMarketGoerli.NewPerpsMarketGoerli(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient) + coreC, _ := core.NewCore(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient) + perps, _ := perpsMarket.NewPerpsMarket(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient) - s := NewService(rpcClient, coreC, 11664658, spot, 10875051, perps, 12708889) + s := NewService(rpcClient, coreC, 11664658, perps, 12708889) _, err := s.FormatAccountsLimit(20000) diff --git a/services/liquidations.go b/services/liquidations.go index 4329e51..1443a89 100644 --- a/services/liquidations.go +++ b/services/liquidations.go @@ -6,7 +6,7 @@ import ( "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarketGoerli" + "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarket" "github.com/gateway-fm/perpsv3-Go/errors" "github.com/gateway-fm/perpsv3-Go/models" "github.com/gateway-fm/perpsv3-Go/pkg/logger" @@ -86,7 +86,7 @@ func (s *Service) retrieveLiquidations(opts *bind.FilterOpts) ([]*models.Liquida } // getLiquidation is used to get models.Liquidation from given event and block number -func (s *Service) getLiquidation(event *perpsMarketGoerli.PerpsMarketGoerliPositionLiquidated, blockN uint64) (*models.Liquidation, error) { +func (s *Service) getLiquidation(event *perpsMarket.PerpsMarketPositionLiquidated, blockN uint64) (*models.Liquidation, error) { block, err := s.rpcClient.HeaderByNumber(context.Background(), big.NewInt(int64(blockN))) if err != nil { logger.Log().WithField("layer", "Service-RetrieveLiquidations").Errorf( diff --git a/services/luquidations_test.go b/services/luquidations_test.go index 628d963..2cd1369 100644 --- a/services/luquidations_test.go +++ b/services/luquidations_test.go @@ -1,17 +1,18 @@ package services import ( - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/ethclient" - "github.com/gateway-fm/perpsv3-Go/contracts/coreGoerli" - "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarketGoerli" - "github.com/gateway-fm/perpsv3-Go/contracts/spotMarketGoerli" - "github.com/gateway-fm/perpsv3-Go/models" - "github.com/stretchr/testify/require" "log" "math/big" "os" "testing" + + "github.com/ethereum/go-ethereum/common" + "github.com/ethereum/go-ethereum/ethclient" + "github.com/stretchr/testify/require" + + "github.com/gateway-fm/perpsv3-Go/contracts/core" + "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarket" + "github.com/gateway-fm/perpsv3-Go/models" ) func TestService_RetrieveLiquidations_OnChain_Limit(t *testing.T) { @@ -22,11 +23,10 @@ func TestService_RetrieveLiquidations_OnChain_Limit(t *testing.T) { rpcClient, _ := ethclient.Dial(rpc) - coreC, _ := coreGoerli.NewCoreGoerli(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient) - spot, _ := spotMarketGoerli.NewSpotMarketGoerli(common.HexToAddress("0x5FF4b3aacdeC86782d8c757FAa638d8790799E83"), rpcClient) - perps, _ := perpsMarketGoerli.NewPerpsMarketGoerli(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient) + coreC, _ := core.NewCore(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient) + perps, _ := perpsMarket.NewPerpsMarket(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient) - s := NewService(rpcClient, coreC, 11664658, spot, 10875051, perps, 12708889) + s := NewService(rpcClient, coreC, 11664658, perps, 12708889) _, err := s.RetrieveLiquidationsLimit(20000) @@ -41,9 +41,8 @@ func TestService_RetrieveLiquidations_OnChain(t *testing.T) { rpcClient, _ := ethclient.Dial(rpc) - coreC, _ := coreGoerli.NewCoreGoerli(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient) - spot, _ := spotMarketGoerli.NewSpotMarketGoerli(common.HexToAddress("0x5FF4b3aacdeC86782d8c757FAa638d8790799E83"), rpcClient) - perps, _ := perpsMarketGoerli.NewPerpsMarketGoerli(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient) + coreC, _ := core.NewCore(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient) + perps, _ := perpsMarket.NewPerpsMarket(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient) id := new(big.Int) id.SetString("170141183460469231731687303715884105753", 10) @@ -80,7 +79,7 @@ func TestService_RetrieveLiquidations_OnChain(t *testing.T) { } for _, tt := range testCases { t.Run(tt.name, func(t *testing.T) { - s := NewService(rpcClient, coreC, 11664658, spot, 10875051, perps, 0) + s := NewService(rpcClient, coreC, 11664658, perps, 0) res, err := s.RetrieveLiquidations(tt.startBlock, &tt.endBlock) if err != nil { diff --git a/services/marketData.go b/services/marketData.go index 5a163d8..5bb1a85 100644 --- a/services/marketData.go +++ b/services/marketData.go @@ -6,7 +6,7 @@ import ( "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarketGoerli" + "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarket" "github.com/gateway-fm/perpsv3-Go/errors" "github.com/gateway-fm/perpsv3-Go/models" "github.com/gateway-fm/perpsv3-Go/pkg/logger" @@ -246,7 +246,7 @@ func (s *Service) retrieveMarketUpdatesBig(opts *bind.FilterOpts) ([]*models.Mar } // getMarketUpdate is used to get models.MarketUpdate from given event and block number -func (s *Service) getMarketUpdate(event *perpsMarketGoerli.PerpsMarketGoerliMarketUpdated, blockN uint64) (*models.MarketUpdate, error) { +func (s *Service) getMarketUpdate(event *perpsMarket.PerpsMarketMarketUpdated, blockN uint64) (*models.MarketUpdate, error) { block, err := s.rpcClient.HeaderByNumber(context.Background(), big.NewInt(int64(blockN))) if err != nil { logger.Log().WithField("layer", "Service-getMarketUpdate").Errorf( @@ -259,7 +259,7 @@ func (s *Service) getMarketUpdate(event *perpsMarketGoerli.PerpsMarketGoerliMark } // getMarketUpdate is used to get models.MarketUpdate from given event and block number -func (s *Service) getMarketUpdateBig(event *perpsMarketGoerli.PerpsMarketGoerliMarketUpdated, blockN uint64) (*models.MarketUpdateBig, error) { +func (s *Service) getMarketUpdateBig(event *perpsMarket.PerpsMarketMarketUpdated, blockN uint64) (*models.MarketUpdateBig, error) { block, err := s.rpcClient.HeaderByNumber(context.Background(), big.NewInt(int64(blockN))) if err != nil { logger.Log().WithField("layer", "Service-getMarketUpdate").Errorf( diff --git a/services/marketData_test.go b/services/marketData_test.go index a6bf48f..377c4fb 100644 --- a/services/marketData_test.go +++ b/services/marketData_test.go @@ -1,18 +1,19 @@ package services import ( - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/ethclient" - "github.com/gateway-fm/perpsv3-Go/contracts/coreGoerli" - "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarketGoerli" - "github.com/gateway-fm/perpsv3-Go/contracts/spotMarketGoerli" - "github.com/gateway-fm/perpsv3-Go/errors" - "github.com/gateway-fm/perpsv3-Go/models" - "github.com/stretchr/testify/require" "log" "math/big" "os" "testing" + + "github.com/ethereum/go-ethereum/common" + "github.com/ethereum/go-ethereum/ethclient" + "github.com/stretchr/testify/require" + + "github.com/gateway-fm/perpsv3-Go/contracts/core" + "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarket" + "github.com/gateway-fm/perpsv3-Go/errors" + "github.com/gateway-fm/perpsv3-Go/models" ) func TestService_RetrieveMarketUpdates_OnChain(t *testing.T) { @@ -23,9 +24,8 @@ func TestService_RetrieveMarketUpdates_OnChain(t *testing.T) { rpcClient, _ := ethclient.Dial(rpc) - coreC, _ := coreGoerli.NewCoreGoerli(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient) - spot, _ := spotMarketGoerli.NewSpotMarketGoerli(common.HexToAddress("0x5FF4b3aacdeC86782d8c757FAa638d8790799E83"), rpcClient) - perps, _ := perpsMarketGoerli.NewPerpsMarketGoerli(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient) + coreC, _ := core.NewCore(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient) + perps, _ := perpsMarket.NewPerpsMarket(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient) want := &models.MarketUpdate{ MarketID: 200, @@ -63,7 +63,7 @@ func TestService_RetrieveMarketUpdates_OnChain(t *testing.T) { } for _, tt := range testCases { t.Run(tt.name, func(t *testing.T) { - s := NewService(rpcClient, coreC, 11664658, spot, 10875051, perps, 0) + s := NewService(rpcClient, coreC, 11664658, perps, 0) res, err := s.RetrieveMarketUpdates(tt.startBlock, &tt.endBlock) require.NoError(t, err) @@ -88,9 +88,8 @@ func TestService_RetrieveMarketUpdatesBig_OnChain(t *testing.T) { rpcClient, _ := ethclient.Dial(rpc) - coreC, _ := coreGoerli.NewCoreGoerli(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient) - spot, _ := spotMarketGoerli.NewSpotMarketGoerli(common.HexToAddress("0x5FF4b3aacdeC86782d8c757FAa638d8790799E83"), rpcClient) - perps, _ := perpsMarketGoerli.NewPerpsMarketGoerli(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient) + coreC, _ := core.NewCore(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient) + perps, _ := perpsMarket.NewPerpsMarket(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient) price := new(big.Int) price.SetString("26050583159510000000000", 10) @@ -131,7 +130,7 @@ func TestService_RetrieveMarketUpdatesBig_OnChain(t *testing.T) { } for _, tt := range testCases { t.Run(tt.name, func(t *testing.T) { - s := NewService(rpcClient, coreC, 11664658, spot, 10875051, perps, 0) + s := NewService(rpcClient, coreC, 11664658, perps, 0) res, err := s.RetrieveMarketUpdatesBig(tt.startBlock, &tt.endBlock) require.NoError(t, err) @@ -156,11 +155,10 @@ func TestService_RetrieveMarketUpdates_OnChain_Limit(t *testing.T) { rpcClient, _ := ethclient.Dial(rpc) - coreC, _ := coreGoerli.NewCoreGoerli(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient) - spot, _ := spotMarketGoerli.NewSpotMarketGoerli(common.HexToAddress("0x5FF4b3aacdeC86782d8c757FAa638d8790799E83"), rpcClient) - perps, _ := perpsMarketGoerli.NewPerpsMarketGoerli(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient) + coreC, _ := core.NewCore(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient) + perps, _ := perpsMarket.NewPerpsMarket(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient) - s := NewService(rpcClient, coreC, 11664658, spot, 10875051, perps, 12708889) + s := NewService(rpcClient, coreC, 11664658, perps, 12708889) _, err := s.RetrieveMarketUpdatesLimit(20000) @@ -175,11 +173,10 @@ func TestService_RetrieveMarketUpdatesBig_OnChain_Limit(t *testing.T) { rpcClient, _ := ethclient.Dial(rpc) - coreC, _ := coreGoerli.NewCoreGoerli(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient) - spot, _ := spotMarketGoerli.NewSpotMarketGoerli(common.HexToAddress("0x5FF4b3aacdeC86782d8c757FAa638d8790799E83"), rpcClient) - perps, _ := perpsMarketGoerli.NewPerpsMarketGoerli(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient) + coreC, _ := core.NewCore(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient) + perps, _ := perpsMarket.NewPerpsMarket(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient) - s := NewService(rpcClient, coreC, 11664658, spot, 10875051, perps, 12708889) + s := NewService(rpcClient, coreC, 11664658, perps, 12708889) _, err := s.RetrieveMarketUpdatesBigLimit(20000) @@ -194,9 +191,8 @@ func TestService_GetMarketMetadata_OnChain(t *testing.T) { rpcClient, _ := ethclient.Dial(rpc) - coreC, _ := coreGoerli.NewCoreGoerli(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient) - spot, _ := spotMarketGoerli.NewSpotMarketGoerli(common.HexToAddress("0x5FF4b3aacdeC86782d8c757FAa638d8790799E83"), rpcClient) - perps, _ := perpsMarketGoerli.NewPerpsMarketGoerli(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient) + coreC, _ := core.NewCore(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient) + perps, _ := perpsMarket.NewPerpsMarket(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient) testCases := []struct { name string @@ -234,7 +230,7 @@ func TestService_GetMarketMetadata_OnChain(t *testing.T) { } for _, tt := range testCases { t.Run(tt.name, func(t *testing.T) { - s := NewService(rpcClient, coreC, 11664658, spot, 10875051, perps, 0) + s := NewService(rpcClient, coreC, 11664658, perps, 0) res, err := s.GetMarketMetadata(tt.marketID) @@ -257,9 +253,8 @@ func TestService_GetMarketSummary(t *testing.T) { rpcClient, _ := ethclient.Dial(rpc) - coreC, _ := coreGoerli.NewCoreGoerli(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient) - spot, _ := spotMarketGoerli.NewSpotMarketGoerli(common.HexToAddress("0x5FF4b3aacdeC86782d8c757FAa638d8790799E83"), rpcClient) - perps, _ := perpsMarketGoerli.NewPerpsMarketGoerli(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient) + coreC, _ := core.NewCore(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient) + perps, _ := perpsMarket.NewPerpsMarket(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient) testCases := []struct { name string @@ -286,7 +281,7 @@ func TestService_GetMarketSummary(t *testing.T) { } for _, tt := range testCases { t.Run(tt.name, func(t *testing.T) { - s := NewService(rpcClient, coreC, 11664658, spot, 10875051, perps, 0) + s := NewService(rpcClient, coreC, 11664658, perps, 0) res, err := s.GetMarketSummary(tt.marketID) @@ -316,9 +311,8 @@ func TestService_GetMarketIDs(t *testing.T) { rpcClient, _ := ethclient.Dial(rpc) - coreC, _ := coreGoerli.NewCoreGoerli(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient) - spot, _ := spotMarketGoerli.NewSpotMarketGoerli(common.HexToAddress("0x5FF4b3aacdeC86782d8c757FAa638d8790799E83"), rpcClient) - perps, _ := perpsMarketGoerli.NewPerpsMarketGoerli(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient) + coreC, _ := core.NewCore(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient) + perps, _ := perpsMarket.NewPerpsMarket(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient) testCases := []struct { name string @@ -332,7 +326,7 @@ func TestService_GetMarketIDs(t *testing.T) { } for _, tt := range testCases { t.Run(tt.name, func(t *testing.T) { - s := NewService(rpcClient, coreC, 11664658, spot, 10875051, perps, 0) + s := NewService(rpcClient, coreC, 11664658, perps, 0) res, err := s.GetMarketIDs() @@ -354,9 +348,8 @@ func TestService_GetFoundingRate(t *testing.T) { rpcClient, _ := ethclient.Dial(rpc) - coreC, _ := coreGoerli.NewCoreGoerli(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient) - spot, _ := spotMarketGoerli.NewSpotMarketGoerli(common.HexToAddress("0x5FF4b3aacdeC86782d8c757FAa638d8790799E83"), rpcClient) - perps, _ := perpsMarketGoerli.NewPerpsMarketGoerli(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient) + coreC, _ := core.NewCore(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient) + perps, _ := perpsMarket.NewPerpsMarket(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient) testCases := []struct { name string @@ -374,7 +367,7 @@ func TestService_GetFoundingRate(t *testing.T) { } for _, tt := range testCases { t.Run(tt.name, func(t *testing.T) { - s := NewService(rpcClient, coreC, 11664658, spot, 10875051, perps, 0) + s := NewService(rpcClient, coreC, 11664658, perps, 0) res, err := s.GetFoundingRate(tt.id) diff --git a/services/orders.go b/services/orders.go index df07d30..8dbdaf5 100644 --- a/services/orders.go +++ b/services/orders.go @@ -2,11 +2,11 @@ package services import ( "context" + "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarket" "math/big" "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarketGoerli" "github.com/gateway-fm/perpsv3-Go/errors" "github.com/gateway-fm/perpsv3-Go/models" "github.com/gateway-fm/perpsv3-Go/pkg/logger" @@ -87,7 +87,7 @@ func (s *Service) retrieveOrders(opts *bind.FilterOpts) ([]*models.Order, error) } // getOrder is used to get models.Order from given event and block number -func (s *Service) getOrder(event *perpsMarketGoerli.PerpsMarketGoerliOrderCommitted, blockN uint64) (*models.Order, error) { +func (s *Service) getOrder(event *perpsMarket.PerpsMarketOrderCommitted, blockN uint64) (*models.Order, error) { block, err := s.rpcClient.HeaderByNumber(context.Background(), big.NewInt(int64(blockN))) if err != nil { logger.Log().WithField("layer", "Service-RetrieveTrades").Errorf( diff --git a/services/orders_test.go b/services/orders_test.go index ff9129c..dcb2f5d 100644 --- a/services/orders_test.go +++ b/services/orders_test.go @@ -8,11 +8,11 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethclient" - "github.com/gateway-fm/perpsv3-Go/contracts/coreGoerli" - "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarketGoerli" - "github.com/gateway-fm/perpsv3-Go/contracts/spotMarketGoerli" - "github.com/gateway-fm/perpsv3-Go/models" "github.com/stretchr/testify/require" + + "github.com/gateway-fm/perpsv3-Go/contracts/core" + "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarket" + "github.com/gateway-fm/perpsv3-Go/models" ) func TestService_RetrieveOrders_OnChain(t *testing.T) { @@ -23,9 +23,8 @@ func TestService_RetrieveOrders_OnChain(t *testing.T) { rpcClient, _ := ethclient.Dial(rpc) - coreC, _ := coreGoerli.NewCoreGoerli(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient) - spot, _ := spotMarketGoerli.NewSpotMarketGoerli(common.HexToAddress("0x5FF4b3aacdeC86782d8c757FAa638d8790799E83"), rpcClient) - perps, _ := perpsMarketGoerli.NewPerpsMarketGoerli(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient) + coreC, _ := core.NewCore(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient) + perps, _ := perpsMarket.NewPerpsMarket(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient) sizeDelta := new(big.Int) sizeDelta.SetString("-500000000000000000", 10) @@ -70,7 +69,7 @@ func TestService_RetrieveOrders_OnChain(t *testing.T) { } for _, tt := range testCases { t.Run(tt.name, func(t *testing.T) { - s := NewService(rpcClient, coreC, 11664658, spot, 10875051, perps, 0) + s := NewService(rpcClient, coreC, 11664658, perps, 0) res, err := s.RetrieveOrders(tt.startBlock, &tt.endBlock) if err != nil { @@ -100,11 +99,10 @@ func TestService_RetrieveOrders_OnChain_Limit(t *testing.T) { rpcClient, _ := ethclient.Dial(rpc) - coreC, _ := coreGoerli.NewCoreGoerli(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient) - spot, _ := spotMarketGoerli.NewSpotMarketGoerli(common.HexToAddress("0x5FF4b3aacdeC86782d8c757FAa638d8790799E83"), rpcClient) - perps, _ := perpsMarketGoerli.NewPerpsMarketGoerli(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient) + coreC, _ := core.NewCore(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient) + perps, _ := perpsMarket.NewPerpsMarket(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient) - s := NewService(rpcClient, coreC, 11664658, spot, 10875051, perps, 12708889) + s := NewService(rpcClient, coreC, 11664658, perps, 12708889) _, err := s.RetrieveOrdersLimit(20000) diff --git a/services/positions_test.go b/services/positions_test.go index 38a9a17..3e7183d 100644 --- a/services/positions_test.go +++ b/services/positions_test.go @@ -9,11 +9,11 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethclient" - "github.com/gateway-fm/perpsv3-Go/contracts/coreGoerli" - "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarketGoerli" - "github.com/gateway-fm/perpsv3-Go/contracts/spotMarketGoerli" - "github.com/gateway-fm/perpsv3-Go/errors" "github.com/stretchr/testify/require" + + "github.com/gateway-fm/perpsv3-Go/contracts/core" + "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarket" + "github.com/gateway-fm/perpsv3-Go/errors" ) func TestService_GetPosition_OnChain(t *testing.T) { @@ -24,9 +24,8 @@ func TestService_GetPosition_OnChain(t *testing.T) { rpcClient, _ := ethclient.Dial(rpc) - coreC, _ := coreGoerli.NewCoreGoerli(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient) - spot, _ := spotMarketGoerli.NewSpotMarketGoerli(common.HexToAddress("0x5FF4b3aacdeC86782d8c757FAa638d8790799E83"), rpcClient) - perps, _ := perpsMarketGoerli.NewPerpsMarketGoerli(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient) + coreC, _ := core.NewCore(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient) + perps, _ := perpsMarket.NewPerpsMarket(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient) testCases := []struct { name string @@ -53,7 +52,7 @@ func TestService_GetPosition_OnChain(t *testing.T) { } for _, tt := range testCases { t.Run(tt.name, func(t *testing.T) { - s := NewService(rpcClient, coreC, 11664658, spot, 10875051, perps, 0) + s := NewService(rpcClient, coreC, 11664658, perps, 0) res, err := s.GetPosition(tt.accountID, tt.marketID) diff --git a/services/service.go b/services/service.go index d4245a2..aa87716 100644 --- a/services/service.go +++ b/services/service.go @@ -4,16 +4,14 @@ import ( "context" "math/big" - "github.com/gateway-fm/perpsv3-Go/errors" - "github.com/gateway-fm/perpsv3-Go/pkg/logger" - "github.com/ethereum/go-ethereum/accounts/abi/bind" "github.com/ethereum/go-ethereum/ethclient" - "github.com/gateway-fm/perpsv3-Go/contracts/coreGoerli" - "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarketGoerli" - "github.com/gateway-fm/perpsv3-Go/contracts/spotMarketGoerli" + "github.com/gateway-fm/perpsv3-Go/contracts/core" + "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarket" + "github.com/gateway-fm/perpsv3-Go/errors" "github.com/gateway-fm/perpsv3-Go/models" + "github.com/gateway-fm/perpsv3-Go/pkg/logger" ) // IService is a service layer interface @@ -107,30 +105,24 @@ type IService interface { // Service is an implementation of IService interface type Service struct { rpcClient *ethclient.Client - core *coreGoerli.CoreGoerli + core *core.Core coreFirstBlock uint64 - spotMarket *spotMarketGoerli.SpotMarketGoerli - spotMarketFirstBlock uint64 - perpsMarket *perpsMarketGoerli.PerpsMarketGoerli + perpsMarket *perpsMarket.PerpsMarket perpsMarketFirstBlock uint64 } // NewService is used to get instance of Service func NewService( rpc *ethclient.Client, - core *coreGoerli.CoreGoerli, + core *core.Core, coreFirstBlock uint64, - spotMarket *spotMarketGoerli.SpotMarketGoerli, - spotMarketFirstBlock uint64, - perpsMarket *perpsMarketGoerli.PerpsMarketGoerli, + perpsMarket *perpsMarket.PerpsMarket, perpsMarketFirstBlock uint64, ) IService { return &Service{ rpcClient: rpc, core: core, coreFirstBlock: coreFirstBlock, - spotMarket: spotMarket, - spotMarketFirstBlock: spotMarketFirstBlock, perpsMarket: perpsMarket, perpsMarketFirstBlock: perpsMarketFirstBlock, } diff --git a/services/trades.go b/services/trades.go index d3fff2a..a41b40a 100644 --- a/services/trades.go +++ b/services/trades.go @@ -6,7 +6,7 @@ import ( "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarketGoerli" + "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarket" "github.com/gateway-fm/perpsv3-Go/errors" "github.com/gateway-fm/perpsv3-Go/models" "github.com/gateway-fm/perpsv3-Go/pkg/logger" @@ -88,7 +88,7 @@ func (s *Service) retrieveTrades(opts *bind.FilterOpts) ([]*models.Trade, error) } // getTrade is used to get models.Trade from given event and block number -func (s *Service) getTrade(event *perpsMarketGoerli.PerpsMarketGoerliOrderSettled, blockN uint64) (*models.Trade, error) { +func (s *Service) getTrade(event *perpsMarket.PerpsMarketOrderSettled, blockN uint64) (*models.Trade, error) { block, err := s.rpcClient.HeaderByNumber(context.Background(), big.NewInt(int64(blockN))) if err != nil { logger.Log().WithField("layer", "Service-RetrieveTrades").Errorf( diff --git a/services/trades_test.go b/services/trades_test.go index 2e8c7cf..f7aea55 100644 --- a/services/trades_test.go +++ b/services/trades_test.go @@ -8,11 +8,11 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethclient" - "github.com/gateway-fm/perpsv3-Go/contracts/coreGoerli" - "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarketGoerli" - "github.com/gateway-fm/perpsv3-Go/contracts/spotMarketGoerli" - "github.com/gateway-fm/perpsv3-Go/models" "github.com/stretchr/testify/require" + + "github.com/gateway-fm/perpsv3-Go/contracts/core" + "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarket" + "github.com/gateway-fm/perpsv3-Go/models" ) func TestService_RetrieveTrades_OnChain(t *testing.T) { @@ -23,9 +23,8 @@ func TestService_RetrieveTrades_OnChain(t *testing.T) { rpcClient, _ := ethclient.Dial(rpc) - coreC, _ := coreGoerli.NewCoreGoerli(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient) - spot, _ := spotMarketGoerli.NewSpotMarketGoerli(common.HexToAddress("0x5FF4b3aacdeC86782d8c757FAa638d8790799E83"), rpcClient) - perps, _ := perpsMarketGoerli.NewPerpsMarketGoerli(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient) + coreC, _ := core.NewCore(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient) + perps, _ := perpsMarket.NewPerpsMarket(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient) fillPrice := new(big.Int) fillPrice.SetString("26050753699652653732215", 10) @@ -87,7 +86,7 @@ func TestService_RetrieveTrades_OnChain(t *testing.T) { } for _, tt := range testCases { t.Run(tt.name, func(t *testing.T) { - s := NewService(rpcClient, coreC, 11664658, spot, 10875051, perps, 0) + s := NewService(rpcClient, coreC, 11664658, perps, 0) res, err := s.RetrieveTrades(tt.startBlock, &tt.endBlock) require.NoError(t, err) @@ -127,11 +126,10 @@ func TestService_RetrieveTrades_OnChain_Limit(t *testing.T) { rpcClient, _ := ethclient.Dial(rpc) - coreC, _ := coreGoerli.NewCoreGoerli(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient) - spot, _ := spotMarketGoerli.NewSpotMarketGoerli(common.HexToAddress("0x5FF4b3aacdeC86782d8c757FAa638d8790799E83"), rpcClient) - perps, _ := perpsMarketGoerli.NewPerpsMarketGoerli(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient) + coreC, _ := core.NewCore(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient) + perps, _ := perpsMarket.NewPerpsMarket(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient) - s := NewService(rpcClient, coreC, 11664658, spot, 10875051, perps, 12708889) + s := NewService(rpcClient, coreC, 11664658, perps, 12708889) res, err := s.RetrieveTradesLimit(20000)