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/README.md b/README.md
index 170d94f..517e7f3 100644
--- a/README.md
+++ b/README.md
@@ -551,4 +551,4 @@ The goroutine will return events as a `Liquidation` model on the `LiquidationsCh
close the subscription use the `Close` function.
## License
-This project is licensed under the MIT License.
\ No newline at end of file
+This project is licensed under the MIT License.# asatruPythonE2E
diff --git a/Synthetix-Gitbook-v3/SUMMARY.md b/Synthetix-Gitbook-v3/SUMMARY.md
index f4baca0..5e6e923 100644
--- a/Synthetix-Gitbook-v3/SUMMARY.md
+++ b/Synthetix-Gitbook-v3/SUMMARY.md
@@ -2,6 +2,7 @@
* [Overview](README.md)
* [Development progress](development-progress.md)
+* [V3 Frequently Asked Questions (FAQ)](v3-frequently-asked-questions-faq.md)
## For Liquidity Providers
@@ -24,7 +25,8 @@
## For Derivatives Market Builders
* [Build on v3](for-derivatives-market-builders/build-on-v3.md)
-* [Integrating Synthetix](for-derivatives-market-builders/integrating-synthetix.md)
+* [Build on v3 FAQ](for-derivatives-market-builders/build-on-v3-faq.md)
+* [Operating a Market](for-derivatives-market-builders/integrating-synthetix.md)
* [Registering a Market](for-derivatives-market-builders/registering-a-market.md)
## For Traders
@@ -37,6 +39,13 @@
* [Synthetix Governance](for-governance-participants/synthetix-governance.md)
* [Elections](for-governance-participants/elections.md)
+## FOR PERP INTEGRATORS
+
+* [Perps V3](for-perp-integrators/perps-v3.md)
+* [Sandbox with Perps](for-perp-integrators/sandbox-with-perps.md)
+* [Base Andromeda](for-perp-integrators/base-andromeda.md)
+* [Perps V3 Keeper](for-perp-integrators/perps-v3-keeper.md)
+
## For Developers
* [Quick Start](for-developers/quick-start.md)
diff --git a/Synthetix-Gitbook-v3/development-progress.md b/Synthetix-Gitbook-v3/development-progress.md
index 1dc8303..06d5058 100644
--- a/Synthetix-Gitbook-v3/development-progress.md
+++ b/Synthetix-Gitbook-v3/development-progress.md
@@ -4,7 +4,7 @@ description: Progress of major v3 milestones
# Development progress
-
+
{% embed url="https://mirror.xyz/cavalier.eth/nOTmVQcole7f0mnqhF93PHO2qbCMm1Y0JAAdiYX9tjU" %}
Further reading on the milestones for v3
diff --git a/Synthetix-Gitbook-v3/for-derivatives-market-builders/build-on-v3-faq.md b/Synthetix-Gitbook-v3/for-derivatives-market-builders/build-on-v3-faq.md
new file mode 100644
index 0000000..c0cb8cf
--- /dev/null
+++ b/Synthetix-Gitbook-v3/for-derivatives-market-builders/build-on-v3-faq.md
@@ -0,0 +1,30 @@
+---
+description: Considerations for creating new products on v3
+---
+
+# Build on v3 FAQ
+
+> What all is needed to do this?
+
+[#playbook-for-building-on-v3](build-on-v3.md#playbook-for-building-on-v3 "mention")
+
+> Is a new Pool required?
+
+Not necessarily, because existing Pools could choose to delegate some of their collateral to your Market, but you need to convince the Pool owners to do so.
+
+> Is a new Market required?
+
+Usually yes. Your Market is what draws on liquidity delegated to it, by existing Pools (or your own Pool if you create one). A profitable Market deposits earnings (and potentially rewards) to the Pools providing liquidity.
+
+> Can a Market swap snxUSD for another assets? (eg WETH)
+
+A Market must conform to the [IMarket](registering-a-market.md) interface, which means it can only deposit/withdraw snxUSD to/from Pools, but is free to interact with the wider defi ecosystem in any reasonable way.
+
+> Can a Market accept another asset directly? (eg WETH)
+
+See above
+
+> Can the Market owner impose a fee that incentivizes them?
+
+Market owners are free to decide how their Markets function. Ultimately Markets are judged and compared on their performance (withdrawals and deposits to Pools) over time.
+
diff --git a/Synthetix-Gitbook-v3/for-derivatives-market-builders/build-on-v3.md b/Synthetix-Gitbook-v3/for-derivatives-market-builders/build-on-v3.md
index a4ab939..40bb288 100644
--- a/Synthetix-Gitbook-v3/for-derivatives-market-builders/build-on-v3.md
+++ b/Synthetix-Gitbook-v3/for-derivatives-market-builders/build-on-v3.md
@@ -18,6 +18,10 @@ An outline of v3, its components and possibilities
The case for building on Synthetix v3
{% endembed %}
+{% embed url="https://t.me/+Jwf641J8a6M1ZTI1" %}
+Telegram group for integrator discussions
+{% endembed %}
+
## Why build on v3
Synthetix v3 solves the cold-start and scaling liquidity problems for derivate protocols, with more than $500m of liquidity waiting for new markets. Synthetix is an endlessly composable and configurable liquidity layer; backing derivative Markets, so they can scale faster, and LPs can accrue more fees.
@@ -48,6 +52,13 @@ Your high performing Market will be attractive to other Pools and Synthetix LPs.
* Want to create a novel derivatives product? You could create a v3 Market, then request one of the existing Pools to delegate your Market some collateral, or create a Pool.
* Want to control your own liquidity? You could propose to create a new Pool, and offer additional token incentives to Liquidity Providers with the Rewards Manager.
+## Next steps
+
+1. Join the integrator telegram group to ask questions
+2. Follow [Synthetix Integrators](https://twitter.com/i/lists/1677086706246520832) list on X
+
+{% embed url="https://t.me/+Jwf641J8a6M1ZTI1" %}
+
## Notes
* See [development-progress.md](../development-progress.md "mention") for more details on enabled collateral and other milestones.
diff --git a/Synthetix-Gitbook-v3/for-derivatives-market-builders/integrating-synthetix.md b/Synthetix-Gitbook-v3/for-derivatives-market-builders/integrating-synthetix.md
index 2b01960..74f2c49 100644
--- a/Synthetix-Gitbook-v3/for-derivatives-market-builders/integrating-synthetix.md
+++ b/Synthetix-Gitbook-v3/for-derivatives-market-builders/integrating-synthetix.md
@@ -1,10 +1,4 @@
-# Integrating Synthetix
-
-Derivatives market implementations can be [registered](registering-a-market.md) with the Synthetix protocol if they conform to the `IMarket` interface. This consists of just three functions:
-
-* `function name(uint128 marketId) external view returns (string memory);` - A function which should return a human-readable name for the given market.
-* `function reportedDebt(uint129 marketId) external view returns (uint);` - A function which should return the total value of debt issued by the market (to be collateralized by the assets in the pools backing it), denominated with 18 decimals places.
-* `function minimumCredit(uint128 marketId) external view returns (uint);` - A function which returns the amount of credit under which pools cannot rescind credit delegated to the market. This value is dollar-denominated, with 18 decimals places. If the market implementation does not intend to lock collateral, this function can just `return 0;`. **Note that the amount of credit available to a market may still fall below this amount due to price action of the collateral backing it.**
+# Operating a Market
## Managing Credit & Debt[](https://snx-v3-docs.vercel.app/pools-markets/integrating-markets#managing-credit--debt)
diff --git a/Synthetix-Gitbook-v3/for-derivatives-market-builders/registering-a-market.md b/Synthetix-Gitbook-v3/for-derivatives-market-builders/registering-a-market.md
index aa6494a..e2204d2 100644
--- a/Synthetix-Gitbook-v3/for-derivatives-market-builders/registering-a-market.md
+++ b/Synthetix-Gitbook-v3/for-derivatives-market-builders/registering-a-market.md
@@ -9,3 +9,9 @@ Markets can be integrated with the Synthetix protocol to access credit capacity
Before a market can interact with the protocol, it must be registered using the `registerMarket` function. This function accepts the address of a market, which will be able to integrate with Synthetix (to perform actions like depositing and withdrawing snxUSD) using the ID returned by the function.
Markets cannot be registered unless they conform to the `IMarket` interface. See [Integrating Synthetix](integrating-synthetix.md) for more information on the functions that must be implemented.
+
+Derivatives market implementations can be [registered](registering-a-market.md) with the Synthetix protocol if they conform to the `IMarket` interface. This consists of just three functions:
+
+* `function name(uint128 marketId) external view returns (string memory);` - A function which should return a human-readable name for the given market.
+* `function reportedDebt(uint129 marketId) external view returns (uint);` - A function which should return the total value of debt issued by the market (to be collateralized by the assets in the pools backing it), denominated with 18 decimals places.
+* `function minimumCredit(uint128 marketId) external view returns (uint);` - A function which returns the amount of credit under which pools cannot rescind credit delegated to the market. This value is dollar-denominated, with 18 decimals places. If the market implementation does not intend to lock collateral, this function can just `return 0;`. **Note that the amount of credit available to a market may still fall below this amount due to price action of the collateral backing it.**
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/1-OracleManager.json b/Synthetix-Gitbook-v3/for-developers/abis/1-main-OracleManager.json
similarity index 100%
rename from Synthetix-Gitbook-v3/for-developers/abis/1-OracleManager.json
rename to Synthetix-Gitbook-v3/for-developers/abis/1-main-OracleManager.json
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/1-SynthetixCore.json b/Synthetix-Gitbook-v3/for-developers/abis/1-main-SynthetixCore.json
similarity index 100%
rename from Synthetix-Gitbook-v3/for-developers/abis/1-SynthetixCore.json
rename to Synthetix-Gitbook-v3/for-developers/abis/1-main-SynthetixCore.json
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/1-snxAccountNFT.json b/Synthetix-Gitbook-v3/for-developers/abis/1-main-snxAccountNFT.json
similarity index 100%
rename from Synthetix-Gitbook-v3/for-developers/abis/1-snxAccountNFT.json
rename to Synthetix-Gitbook-v3/for-developers/abis/1-main-snxAccountNFT.json
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/1-snxUSDToken.json b/Synthetix-Gitbook-v3/for-developers/abis/1-main-snxUSDToken.json
similarity index 100%
rename from Synthetix-Gitbook-v3/for-developers/abis/1-snxUSDToken.json
rename to Synthetix-Gitbook-v3/for-developers/abis/1-main-snxUSDToken.json
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/10-OracleManager.json b/Synthetix-Gitbook-v3/for-developers/abis/10-main-OracleManager.json
similarity index 100%
rename from Synthetix-Gitbook-v3/for-developers/abis/10-OracleManager.json
rename to Synthetix-Gitbook-v3/for-developers/abis/10-main-OracleManager.json
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/10-SpotMarket.json b/Synthetix-Gitbook-v3/for-developers/abis/10-main-SpotMarket.json
similarity index 100%
rename from Synthetix-Gitbook-v3/for-developers/abis/10-SpotMarket.json
rename to Synthetix-Gitbook-v3/for-developers/abis/10-main-SpotMarket.json
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/10-SynthetixCore.json b/Synthetix-Gitbook-v3/for-developers/abis/10-main-SynthetixCore.json
similarity index 100%
rename from Synthetix-Gitbook-v3/for-developers/abis/10-SynthetixCore.json
rename to Synthetix-Gitbook-v3/for-developers/abis/10-main-SynthetixCore.json
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/10-snxAccountNFT.json b/Synthetix-Gitbook-v3/for-developers/abis/10-main-snxAccountNFT.json
similarity index 100%
rename from Synthetix-Gitbook-v3/for-developers/abis/10-snxAccountNFT.json
rename to Synthetix-Gitbook-v3/for-developers/abis/10-main-snxAccountNFT.json
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/10-snxUSDToken.json b/Synthetix-Gitbook-v3/for-developers/abis/10-main-snxUSDToken.json
similarity index 100%
rename from Synthetix-Gitbook-v3/for-developers/abis/10-snxUSDToken.json
rename to Synthetix-Gitbook-v3/for-developers/abis/10-main-snxUSDToken.json
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/11155111-OracleManager.json b/Synthetix-Gitbook-v3/for-developers/abis/11155111-main-OracleManager.json
similarity index 100%
rename from Synthetix-Gitbook-v3/for-developers/abis/11155111-OracleManager.json
rename to Synthetix-Gitbook-v3/for-developers/abis/11155111-main-OracleManager.json
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/11155111-SynthetixCore.json b/Synthetix-Gitbook-v3/for-developers/abis/11155111-main-SynthetixCore.json
similarity index 100%
rename from Synthetix-Gitbook-v3/for-developers/abis/11155111-SynthetixCore.json
rename to Synthetix-Gitbook-v3/for-developers/abis/11155111-main-SynthetixCore.json
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/11155111-snxAccountNFT.json b/Synthetix-Gitbook-v3/for-developers/abis/11155111-main-snxAccountNFT.json
similarity index 100%
rename from Synthetix-Gitbook-v3/for-developers/abis/11155111-snxAccountNFT.json
rename to Synthetix-Gitbook-v3/for-developers/abis/11155111-main-snxAccountNFT.json
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/11155111-snxUSDToken.json b/Synthetix-Gitbook-v3/for-developers/abis/11155111-main-snxUSDToken.json
similarity index 100%
rename from Synthetix-Gitbook-v3/for-developers/abis/11155111-snxUSDToken.json
rename to Synthetix-Gitbook-v3/for-developers/abis/11155111-main-snxUSDToken.json
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/80001-OracleManager.json b/Synthetix-Gitbook-v3/for-developers/abis/420-dev-OracleManager.json
similarity index 99%
rename from Synthetix-Gitbook-v3/for-developers/abis/80001-OracleManager.json
rename to Synthetix-Gitbook-v3/for-developers/abis/420-dev-OracleManager.json
index 55a2a6b..37d96ba 100644
--- a/Synthetix-Gitbook-v3/for-developers/abis/80001-OracleManager.json
+++ b/Synthetix-Gitbook-v3/for-developers/abis/420-dev-OracleManager.json
@@ -1,5 +1,5 @@
{
- "address": "0x12aE0D5CD26f212bFE242DA78139d463019f7a73",
+ "address": "0x47b8f4EC2D0ef7ADfa97927A597d2C73B3A7e81d",
"abi": [
{
"inputs": [
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/84531-snxAccountNFT.json b/Synthetix-Gitbook-v3/for-developers/abis/420-dev-PerpsAccountNFT.json
similarity index 99%
rename from Synthetix-Gitbook-v3/for-developers/abis/84531-snxAccountNFT.json
rename to Synthetix-Gitbook-v3/for-developers/abis/420-dev-PerpsAccountNFT.json
index b1d3dc1..b11e8da 100644
--- a/Synthetix-Gitbook-v3/for-developers/abis/84531-snxAccountNFT.json
+++ b/Synthetix-Gitbook-v3/for-developers/abis/420-dev-PerpsAccountNFT.json
@@ -1,5 +1,5 @@
{
- "address": "0x1b791d05E437C78039424749243F5A79E747525e",
+ "address": "0x6fBe7F0f515C2126638aAF60a351a98b27f62925",
"abi": [
{
"inputs": [
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/420-dev-PerpsMarket.json b/Synthetix-Gitbook-v3/for-developers/abis/420-dev-PerpsMarket.json
new file mode 100644
index 0000000..a33c533
--- /dev/null
+++ b/Synthetix-Gitbook-v3/for-developers/abis/420-dev-PerpsMarket.json
@@ -0,0 +1,4090 @@
+{
+ "address": "0x8EdfbD5c6aB7167cf7dc7E62D9FeAA59720a2e7E",
+ "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": "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": "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": [
+ {
+ "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": "PerpsMarketAlreadyInitialized",
+ "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": [
+ {
+ "internalType": "contract ISynthetixSystem",
+ "name": "synthetix",
+ "type": "address"
+ },
+ {
+ "internalType": "contract ISpotMarketSystem",
+ "name": "spotMarket",
+ "type": "address"
+ },
+ {
+ "internalType": "string",
+ "name": "marketName",
+ "type": "string"
+ }
+ ],
+ "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": "string",
+ "name": "marketName",
+ "type": "string"
+ }
+ ],
+ "name": "setPerpsMarketName",
+ "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": [
+ {
+ "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"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "fillPrice",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "acceptablePrice",
+ "type": "uint256"
+ }
+ ],
+ "name": "AcceptablePriceNotExceeded",
+ "type": "error"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "uint128",
+ "name": "marketId",
+ "type": "uint128"
+ },
+ {
+ "indexed": true,
+ "internalType": "uint128",
+ "name": "accountId",
+ "type": "uint128"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "desiredPrice",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "fillPrice",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "int128",
+ "name": "sizeDelta",
+ "type": "int128"
+ },
+ {
+ "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": "OrderCancelled",
+ "type": "event"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint128",
+ "name": "accountId",
+ "type": "uint128"
+ }
+ ],
+ "name": "cancelOrder",
+ "outputs": [],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes",
+ "name": "result",
+ "type": "bytes"
+ },
+ {
+ "internalType": "bytes",
+ "name": "extraData",
+ "type": "bytes"
+ }
+ ],
+ "name": "cancelPythOrder",
+ "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": [],
+ "name": "flaggedAccounts",
+ "outputs": [
+ {
+ "internalType": "uint256[]",
+ "name": "accountIds",
+ "type": "uint256[]"
+ }
+ ],
+ "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": [
+ {
+ "internalType": "uint256",
+ "name": "maxNumberOfAccounts",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateFlagged",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "liquidationReward",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint128[]",
+ "name": "accountIds",
+ "type": "uint128[]"
+ }
+ ],
+ "name": "liquidateFlaggedAccounts",
+ "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"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "duration",
+ "type": "uint256"
+ }
+ ],
+ "name": "InvalidSettlementWindowDuration",
+ "type": "error"
+ },
+ {
+ "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"
+ }
+ ],
+ "deployTxnHash": "",
+ "sourceName": "",
+ "contractName": "",
+ "deployedOn": "invoke.upgrade_proxy"
+}
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/84531-SpotMarket.json b/Synthetix-Gitbook-v3/for-developers/abis/420-dev-SpotMarket.json
similarity index 98%
rename from Synthetix-Gitbook-v3/for-developers/abis/84531-SpotMarket.json
rename to Synthetix-Gitbook-v3/for-developers/abis/420-dev-SpotMarket.json
index 5dce69b..ac7a1bd 100644
--- a/Synthetix-Gitbook-v3/for-developers/abis/84531-SpotMarket.json
+++ b/Synthetix-Gitbook-v3/for-developers/abis/420-dev-SpotMarket.json
@@ -1,6 +1,47 @@
{
- "address": "0x5b5ff238F1d43087A033c9c1800BAAC03d4386F1",
+ "address": "0x9bC0DD3436669Ab76C553214B1740CE5E6EbF18e",
"abi": [
+ {
+ "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": "nonpayable",
+ "type": "function"
+ },
{
"inputs": [
{
@@ -774,6 +815,19 @@
"stateMutability": "nonpayable",
"type": "function"
},
+ {
+ "inputs": [
+ {
+ "internalType": "uint128",
+ "name": "synthMarketId",
+ "type": "uint128"
+ }
+ ],
+ "name": "renounceMarketOwnership",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
{
"inputs": [
{
@@ -2148,22 +2202,6 @@
"name": "OverflowUint256ToUint64",
"type": "error"
},
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "deviation",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "tolerance",
- "type": "uint256"
- }
- ],
- "name": "PriceDeviationToleranceExceeded",
- "type": "error"
- },
{
"inputs": [
{
@@ -2455,11 +2493,6 @@
"name": "settlementReward",
"type": "uint256"
},
- {
- "internalType": "uint256",
- "name": "priceDeviationTolerance",
- "type": "uint256"
- },
{
"internalType": "uint256",
"name": "minimumUsdExchangeAmount",
@@ -2544,11 +2577,6 @@
"name": "settlementReward",
"type": "uint256"
},
- {
- "internalType": "uint256",
- "name": "priceDeviationTolerance",
- "type": "uint256"
- },
{
"internalType": "uint256",
"name": "minimumUsdExchangeAmount",
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/420-dev-SynthetixCore.json b/Synthetix-Gitbook-v3/for-developers/abis/420-dev-SynthetixCore.json
new file mode 100644
index 0000000..f1db616
--- /dev/null
+++ b/Synthetix-Gitbook-v3/for-developers/abis/420-dev-SynthetixCore.json
@@ -0,0 +1,5139 @@
+{
+ "address": "0x3f1faD3d8C531A5a3f7ae8d045c37e2075A241A0",
+ "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": "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"
+ }
+ ],
+ "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": "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": "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"
+ }
+ ],
+ "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"
+ }
+ ],
+ "deployTxnHash": "",
+ "sourceName": "",
+ "contractName": "",
+ "deployedOn": "invoke.upgrade_core_proxy"
+}
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/5-snxAccountNFT.json b/Synthetix-Gitbook-v3/for-developers/abis/420-dev-snxAccountNFT.json
similarity index 99%
rename from Synthetix-Gitbook-v3/for-developers/abis/5-snxAccountNFT.json
rename to Synthetix-Gitbook-v3/for-developers/abis/420-dev-snxAccountNFT.json
index b1d3dc1..4ea811b 100644
--- a/Synthetix-Gitbook-v3/for-developers/abis/5-snxAccountNFT.json
+++ b/Synthetix-Gitbook-v3/for-developers/abis/420-dev-snxAccountNFT.json
@@ -1,5 +1,5 @@
{
- "address": "0x1b791d05E437C78039424749243F5A79E747525e",
+ "address": "0x1daA414B74A7581405e8B17bac5B29F31042B7C6",
"abi": [
{
"inputs": [
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/5-snxUSDToken.json b/Synthetix-Gitbook-v3/for-developers/abis/420-dev-snxUSDToken.json
similarity index 99%
rename from Synthetix-Gitbook-v3/for-developers/abis/5-snxUSDToken.json
rename to Synthetix-Gitbook-v3/for-developers/abis/420-dev-snxUSDToken.json
index a15db91..28573fd 100644
--- a/Synthetix-Gitbook-v3/for-developers/abis/5-snxUSDToken.json
+++ b/Synthetix-Gitbook-v3/for-developers/abis/420-dev-snxUSDToken.json
@@ -1,5 +1,5 @@
{
- "address": "0xe487Ad4291019b33e2230F8E2FB1fb6490325260",
+ "address": "0xE0D30C1f189496388B0f5F1c32e75327135F26b8",
"abi": [
{
"inputs": [
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/420-OracleManager.json b/Synthetix-Gitbook-v3/for-developers/abis/420-main-OracleManager.json
similarity index 100%
rename from Synthetix-Gitbook-v3/for-developers/abis/420-OracleManager.json
rename to Synthetix-Gitbook-v3/for-developers/abis/420-main-OracleManager.json
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/420-PerpsAccountNFT.json b/Synthetix-Gitbook-v3/for-developers/abis/420-main-PerpsAccountNFT.json
similarity index 100%
rename from Synthetix-Gitbook-v3/for-developers/abis/420-PerpsAccountNFT.json
rename to Synthetix-Gitbook-v3/for-developers/abis/420-main-PerpsAccountNFT.json
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/420-PerpsMarket.json b/Synthetix-Gitbook-v3/for-developers/abis/420-main-PerpsMarket.json
similarity index 96%
rename from Synthetix-Gitbook-v3/for-developers/abis/420-PerpsMarket.json
rename to Synthetix-Gitbook-v3/for-developers/abis/420-main-PerpsMarket.json
index 84d2f9f..d190729 100644
--- a/Synthetix-Gitbook-v3/for-developers/abis/420-PerpsMarket.json
+++ b/Synthetix-Gitbook-v3/for-developers/abis/420-main-PerpsMarket.json
@@ -624,22 +624,6 @@
"name": "DeniedMulticallTarget",
"type": "error"
},
- {
- "inputs": [
- {
- "internalType": "string",
- "name": "parameter",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "reason",
- "type": "string"
- }
- ],
- "name": "InvalidParameter",
- "type": "error"
- },
{
"inputs": [
{
@@ -651,19 +635,6 @@
"name": "RecursiveMulticall",
"type": "error"
},
- {
- "inputs": [],
- "name": "getMessageSender",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
{
"inputs": [
{
@@ -683,53 +654,6 @@
"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": [
{
@@ -927,6 +851,22 @@
"name": "InvalidMarket",
"type": "error"
},
+ {
+ "inputs": [
+ {
+ "internalType": "string",
+ "name": "parameter",
+ "type": "string"
+ },
+ {
+ "internalType": "string",
+ "name": "reason",
+ "type": "string"
+ }
+ ],
+ "name": "InvalidParameter",
+ "type": "error"
+ },
{
"inputs": [],
"name": "OverflowInt256ToUint256",
@@ -942,6 +882,11 @@
"name": "OverflowUint256ToUint128",
"type": "error"
},
+ {
+ "inputs": [],
+ "name": "PerpsMarketAlreadyInitialized",
+ "type": "error"
+ },
{
"inputs": [],
"name": "PerpsMarketNotInitialized",
@@ -1015,7 +960,23 @@
"type": "function"
},
{
- "inputs": [],
+ "inputs": [
+ {
+ "internalType": "contract ISynthetixSystem",
+ "name": "synthetix",
+ "type": "address"
+ },
+ {
+ "internalType": "contract ISpotMarketSystem",
+ "name": "spotMarket",
+ "type": "address"
+ },
+ {
+ "internalType": "string",
+ "name": "marketName",
+ "type": "string"
+ }
+ ],
"name": "initializeFactory",
"outputs": [
{
@@ -1087,25 +1048,12 @@
{
"inputs": [
{
- "internalType": "contract ISpotMarketSystem",
- "name": "spotMarket",
- "type": "address"
- }
- ],
- "name": "setSpotMarket",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "contract ISynthetixSystem",
- "name": "synthetix",
- "type": "address"
+ "internalType": "string",
+ "name": "marketName",
+ "type": "string"
}
],
- "name": "setSynthetix",
+ "name": "setPerpsMarketName",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
@@ -2203,23 +2151,12 @@
},
{
"inputs": [],
- "name": "OverflowUint256ToUint64",
+ "name": "OverflowInt128ToUint128",
"type": "error"
},
{
- "inputs": [
- {
- "internalType": "uint256",
- "name": "deviation",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "tolerance",
- "type": "uint256"
- }
- ],
- "name": "PriceDeviationToleranceExceeded",
+ "inputs": [],
+ "name": "OverflowUint256ToUint64",
"type": "error"
},
{
@@ -2405,18 +2342,107 @@
"type": "event"
},
{
- "inputs": [],
- "name": "PRECISION",
- "outputs": [
+ "inputs": [
{
- "internalType": "int256",
- "name": "",
- "type": "int256"
+ "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"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "fillPrice",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "acceptablePrice",
+ "type": "uint256"
+ }
+ ],
+ "name": "AcceptablePriceNotExceeded",
+ "type": "error"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "uint128",
+ "name": "marketId",
+ "type": "uint128"
+ },
+ {
+ "indexed": true,
+ "internalType": "uint128",
+ "name": "accountId",
+ "type": "uint128"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "desiredPrice",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "fillPrice",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "int128",
+ "name": "sizeDelta",
+ "type": "int128"
+ },
+ {
+ "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": "OrderCancelled",
+ "type": "event"
+ },
{
"inputs": [
{
@@ -2425,7 +2451,7 @@
"type": "uint128"
}
],
- "name": "settle",
+ "name": "cancelOrder",
"outputs": [],
"stateMutability": "view",
"type": "function"
@@ -2443,7 +2469,7 @@
"type": "bytes"
}
],
- "name": "settlePythOrder",
+ "name": "cancelPythOrder",
"outputs": [],
"stateMutability": "payable",
"type": "function"
@@ -2819,6 +2845,19 @@
"stateMutability": "view",
"type": "function"
},
+ {
+ "inputs": [],
+ "name": "flaggedAccounts",
+ "outputs": [
+ {
+ "internalType": "uint256[]",
+ "name": "accountIds",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
{
"inputs": [
{
@@ -2839,7 +2878,13 @@
"type": "function"
},
{
- "inputs": [],
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "maxNumberOfAccounts",
+ "type": "uint256"
+ }
+ ],
"name": "liquidateFlagged",
"outputs": [
{
@@ -2851,6 +2896,65 @@
"stateMutability": "nonpayable",
"type": "function"
},
+ {
+ "inputs": [
+ {
+ "internalType": "uint128[]",
+ "name": "accountIds",
+ "type": "uint128[]"
+ }
+ ],
+ "name": "liquidateFlaggedAccounts",
+ "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"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "duration",
+ "type": "uint256"
+ }
+ ],
+ "name": "InvalidSettlementWindowDuration",
+ "type": "error"
+ },
{
"anonymous": false,
"inputs": [
@@ -3089,11 +3193,6 @@
"name": "settlementReward",
"type": "uint256"
},
- {
- "internalType": "uint256",
- "name": "priceDeviationTolerance",
- "type": "uint256"
- },
{
"internalType": "bool",
"name": "disabled",
@@ -3189,11 +3288,6 @@
"name": "settlementReward",
"type": "uint256"
},
- {
- "internalType": "uint256",
- "name": "priceDeviationTolerance",
- "type": "uint256"
- },
{
"internalType": "bool",
"name": "disabled",
@@ -3432,11 +3526,6 @@
"name": "settlementReward",
"type": "uint256"
},
- {
- "internalType": "uint256",
- "name": "priceDeviationTolerance",
- "type": "uint256"
- },
{
"internalType": "bool",
"name": "disabled",
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/420-main-SpotMarket.json b/Synthetix-Gitbook-v3/for-developers/abis/420-main-SpotMarket.json
new file mode 100644
index 0000000..3b54e0e
--- /dev/null
+++ b/Synthetix-Gitbook-v3/for-developers/abis/420-main-SpotMarket.json
@@ -0,0 +1,3797 @@
+{
+ "address": "0x5FF4b3aacdeC86782d8c757FAa638d8790799E83",
+ "abi": [
+ {
+ "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": "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": [
+ {
+ "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": "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": "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": "struct OrderFees.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": "struct OrderFees.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": "struct OrderFees.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": "struct OrderFees.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": "struct OrderFees.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": "struct OrderFees.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": "struct OrderFees.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": "struct OrderFees.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": "struct OrderFees.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": "struct OrderFees.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": "struct OrderFees.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": "struct OrderFees.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": "enum Transaction.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": "enum Transaction.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": "struct AsyncOrderClaim.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": "enum Transaction.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": "enum Transaction.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": "enum Transaction.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": "struct AsyncOrderClaim.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": "enum Transaction.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": "struct AsyncOrderClaim.Data",
+ "name": "asyncOrderClaim",
+ "type": "tuple"
+ }
+ ],
+ "stateMutability": "pure",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "enum SettlementStrategy.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": "enum SettlementStrategy.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": "struct OrderFees.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": "enum Transaction.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": "struct OrderFees.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": "struct OrderFees.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": "enum SettlementStrategy.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": "minimumUsdExchangeAmount",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "maxRoundingLoss",
+ "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"
+ },
+ {
+ "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": "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": "minimumUsdExchangeAmount",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "maxRoundingLoss",
+ "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": "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": "struct OrderFees.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": "struct OrderFees.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": "struct OrderFees.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": "struct OrderFees.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"
+ }
+ ],
+ "deployTxnHash": "",
+ "sourceName": "",
+ "contractName": "",
+ "deployedOn": "invoke.upgradeSpotMarketProxy"
+}
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/80001-SynthetixCore.json b/Synthetix-Gitbook-v3/for-developers/abis/420-main-SynthetixCore.json
similarity index 99%
rename from Synthetix-Gitbook-v3/for-developers/abis/80001-SynthetixCore.json
rename to Synthetix-Gitbook-v3/for-developers/abis/420-main-SynthetixCore.json
index 5e6d270..548f046 100644
--- a/Synthetix-Gitbook-v3/for-developers/abis/80001-SynthetixCore.json
+++ b/Synthetix-Gitbook-v3/for-developers/abis/420-main-SynthetixCore.json
@@ -3517,19 +3517,6 @@
"name": "RecursiveMulticall",
"type": "error"
},
- {
- "inputs": [],
- "name": "getMessageSender",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
{
"inputs": [
{
@@ -3549,53 +3536,6 @@
"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": [
@@ -4761,6 +4701,38 @@
"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": [
{
@@ -5019,11 +4991,6 @@
"internalType": "uint256",
"name": "amount",
"type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "value",
- "type": "uint256"
}
],
"stateMutability": "view",
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/420-snxAccountNFT.json b/Synthetix-Gitbook-v3/for-developers/abis/420-main-snxAccountNFT.json
similarity index 100%
rename from Synthetix-Gitbook-v3/for-developers/abis/420-snxAccountNFT.json
rename to Synthetix-Gitbook-v3/for-developers/abis/420-main-snxAccountNFT.json
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/420-snxUSDToken.json b/Synthetix-Gitbook-v3/for-developers/abis/420-main-snxUSDToken.json
similarity index 100%
rename from Synthetix-Gitbook-v3/for-developers/abis/420-snxUSDToken.json
rename to Synthetix-Gitbook-v3/for-developers/abis/420-main-snxUSDToken.json
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/84531-OracleManager.json b/Synthetix-Gitbook-v3/for-developers/abis/5-main-OracleManager.json
similarity index 99%
rename from Synthetix-Gitbook-v3/for-developers/abis/84531-OracleManager.json
rename to Synthetix-Gitbook-v3/for-developers/abis/5-main-OracleManager.json
index 55a2a6b..67df359 100644
--- a/Synthetix-Gitbook-v3/for-developers/abis/84531-OracleManager.json
+++ b/Synthetix-Gitbook-v3/for-developers/abis/5-main-OracleManager.json
@@ -1,5 +1,5 @@
{
- "address": "0x12aE0D5CD26f212bFE242DA78139d463019f7a73",
+ "address": "0x21a642c7b2B511f934DDD1250E2335899696ED0e",
"abi": [
{
"inputs": [
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/84531-SynthetixCore.json b/Synthetix-Gitbook-v3/for-developers/abis/5-main-SynthetixCore.json
similarity index 99%
rename from Synthetix-Gitbook-v3/for-developers/abis/84531-SynthetixCore.json
rename to Synthetix-Gitbook-v3/for-developers/abis/5-main-SynthetixCore.json
index 5e6d270..94d362a 100644
--- a/Synthetix-Gitbook-v3/for-developers/abis/84531-SynthetixCore.json
+++ b/Synthetix-Gitbook-v3/for-developers/abis/5-main-SynthetixCore.json
@@ -1,5 +1,5 @@
{
- "address": "0x76490713314fCEC173f44e99346F54c6e92a8E42",
+ "address": "0x895CE54BBA4f14FeFbF0624673DC303054De0652",
"abi": [
{
"inputs": [
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/5-main-snxAccountNFT.json b/Synthetix-Gitbook-v3/for-developers/abis/5-main-snxAccountNFT.json
new file mode 100644
index 0000000..39db321
--- /dev/null
+++ b/Synthetix-Gitbook-v3/for-developers/abis/5-main-snxAccountNFT.json
@@ -0,0 +1,815 @@
+{
+ "address": "0xf19BdaE737d61A91cd0aeb3E32D0E11f9eF7aE5c",
+ "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": "AlreadyInitialized",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "addr",
+ "type": "address"
+ }
+ ],
+ "name": "CannotSelfApprove",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "requestedIndex",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "length",
+ "type": "uint256"
+ }
+ ],
+ "name": "IndexOverrun",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "addr",
+ "type": "address"
+ }
+ ],
+ "name": "InvalidOwner",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "string",
+ "name": "parameter",
+ "type": "string"
+ },
+ {
+ "internalType": "string",
+ "name": "reason",
+ "type": "string"
+ }
+ ],
+ "name": "InvalidParameter",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "addr",
+ "type": "address"
+ }
+ ],
+ "name": "InvalidTransferRecipient",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "OverflowUint256ToUint128",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "id",
+ "type": "uint256"
+ }
+ ],
+ "name": "TokenAlreadyMinted",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "id",
+ "type": "uint256"
+ }
+ ],
+ "name": "TokenDoesNotExist",
+ "type": "error"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "approved",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "Approval",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "operator",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "bool",
+ "name": "approved",
+ "type": "bool"
+ }
+ ],
+ "name": "ApprovalForAll",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "from",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "Transfer",
+ "type": "event"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "holder",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "balance",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "burn",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "getApproved",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "operator",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "string",
+ "name": "tokenName",
+ "type": "string"
+ },
+ {
+ "internalType": "string",
+ "name": "tokenSymbol",
+ "type": "string"
+ },
+ {
+ "internalType": "string",
+ "name": "uri",
+ "type": "string"
+ }
+ ],
+ "name": "initialize",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "holder",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "operator",
+ "type": "address"
+ }
+ ],
+ "name": "isApprovedForAll",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "isInitialized",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "mint",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "name",
+ "outputs": [
+ {
+ "internalType": "string",
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "ownerOf",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "data",
+ "type": "bytes"
+ }
+ ],
+ "name": "safeMint",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "from",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "safeTransferFrom",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "from",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "data",
+ "type": "bytes"
+ }
+ ],
+ "name": "safeTransferFrom",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ },
+ {
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ }
+ ],
+ "name": "setAllowance",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "operator",
+ "type": "address"
+ },
+ {
+ "internalType": "bool",
+ "name": "approved",
+ "type": "bool"
+ }
+ ],
+ "name": "setApprovalForAll",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "string",
+ "name": "uri",
+ "type": "string"
+ }
+ ],
+ "name": "setBaseTokenURI",
+ "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": [],
+ "name": "symbol",
+ "outputs": [
+ {
+ "internalType": "string",
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "index",
+ "type": "uint256"
+ }
+ ],
+ "name": "tokenByIndex",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "index",
+ "type": "uint256"
+ }
+ ],
+ "name": "tokenOfOwnerByIndex",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "tokenURI",
+ "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": "from",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferFrom",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ }
+ ],
+ "deployTxnHash": "",
+ "sourceName": "",
+ "contractName": "",
+ "deployedOn": "invoke.init_account"
+}
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/84531-snxUSDToken.json b/Synthetix-Gitbook-v3/for-developers/abis/5-main-snxUSDToken.json
similarity index 99%
rename from Synthetix-Gitbook-v3/for-developers/abis/84531-snxUSDToken.json
rename to Synthetix-Gitbook-v3/for-developers/abis/5-main-snxUSDToken.json
index a15db91..dc31808 100644
--- a/Synthetix-Gitbook-v3/for-developers/abis/84531-snxUSDToken.json
+++ b/Synthetix-Gitbook-v3/for-developers/abis/5-main-snxUSDToken.json
@@ -1,5 +1,5 @@
{
- "address": "0xe487Ad4291019b33e2230F8E2FB1fb6490325260",
+ "address": "0x50f194b9949759510cE3700f759D64ac429dcC76",
"abi": [
{
"inputs": [
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/5-OracleManager.json b/Synthetix-Gitbook-v3/for-developers/abis/80001-main-OracleManager.json
similarity index 100%
rename from Synthetix-Gitbook-v3/for-developers/abis/5-OracleManager.json
rename to Synthetix-Gitbook-v3/for-developers/abis/80001-main-OracleManager.json
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/420-SynthetixCore.json b/Synthetix-Gitbook-v3/for-developers/abis/80001-main-SynthetixCore.json
similarity index 100%
rename from Synthetix-Gitbook-v3/for-developers/abis/420-SynthetixCore.json
rename to Synthetix-Gitbook-v3/for-developers/abis/80001-main-SynthetixCore.json
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/80001-snxAccountNFT.json b/Synthetix-Gitbook-v3/for-developers/abis/80001-main-snxAccountNFT.json
similarity index 100%
rename from Synthetix-Gitbook-v3/for-developers/abis/80001-snxAccountNFT.json
rename to Synthetix-Gitbook-v3/for-developers/abis/80001-main-snxAccountNFT.json
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/80001-snxUSDToken.json b/Synthetix-Gitbook-v3/for-developers/abis/80001-main-snxUSDToken.json
similarity index 100%
rename from Synthetix-Gitbook-v3/for-developers/abis/80001-snxUSDToken.json
rename to Synthetix-Gitbook-v3/for-developers/abis/80001-main-snxUSDToken.json
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/84531-andromeda-FakeCollateralTKN.json b/Synthetix-Gitbook-v3/for-developers/abis/84531-andromeda-FakeCollateralTKN.json
new file mode 100644
index 0000000..3d3fedd
--- /dev/null
+++ b/Synthetix-Gitbook-v3/for-developers/abis/84531-andromeda-FakeCollateralTKN.json
@@ -0,0 +1,322 @@
+{
+ "address": "0x7056F16f58638253B8A1E5023d67a8CF98000681",
+ "abi": [
+ {
+ "inputs": [
+ {
+ "internalType": "string",
+ "name": "name",
+ "type": "string"
+ },
+ {
+ "internalType": "string",
+ "name": "symbol",
+ "type": "string"
+ },
+ {
+ "internalType": "uint256",
+ "name": "initialSupply",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "payable",
+ "type": "constructor"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "value",
+ "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": "value",
+ "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": "account",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "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": "uint256",
+ "name": "amount",
+ "type": "uint256"
+ },
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ }
+ ],
+ "name": "mint",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "name",
+ "outputs": [
+ {
+ "internalType": "string",
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "stateMutability": "view",
+ "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"
+ }
+ ],
+ "constructorArgs": ["Token", "TKN", "0"],
+ "linkedLibraries": {},
+ "deployTxnHash": "0xa665d03b3434c33eec4b6e4005538e5d0d173623cd032c9f97ac5a713fe5d3ef",
+ "sourceName": "src/MintableTokenPermissionlessMint.sol",
+ "contractName": "MintableTokenPermissionlessMint",
+ "deployedOn": "contract.MintableToken",
+ "gasUsed": 642711,
+ "gasCost": "1500000051"
+}
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/84531-andromeda-OracleManager.json b/Synthetix-Gitbook-v3/for-developers/abis/84531-andromeda-OracleManager.json
new file mode 100644
index 0000000..319547c
--- /dev/null
+++ b/Synthetix-Gitbook-v3/for-developers/abis/84531-andromeda-OracleManager.json
@@ -0,0 +1,580 @@
+{
+ "address": "0xEC618B8994B76d89EfCD7051BA2D57Dcb6442E95",
+ "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": "int256",
+ "name": "deviation",
+ "type": "int256"
+ }
+ ],
+ "name": "DeviationToleranceExceeded",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "InvalidInputPrice",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "components": [
+ {
+ "internalType": "enum NodeDefinition.NodeType",
+ "name": "nodeType",
+ "type": "uint8"
+ },
+ {
+ "internalType": "bytes",
+ "name": "parameters",
+ "type": "bytes"
+ },
+ {
+ "internalType": "bytes32[]",
+ "name": "parents",
+ "type": "bytes32[]"
+ }
+ ],
+ "internalType": "struct NodeDefinition.Data",
+ "name": "nodeType",
+ "type": "tuple"
+ }
+ ],
+ "name": "InvalidNodeDefinition",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "string",
+ "name": "parameter",
+ "type": "string"
+ },
+ {
+ "internalType": "string",
+ "name": "reason",
+ "type": "string"
+ }
+ ],
+ "name": "InvalidParameter",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "int256",
+ "name": "price",
+ "type": "int256"
+ }
+ ],
+ "name": "InvalidPrice",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "nodeId",
+ "type": "bytes32"
+ }
+ ],
+ "name": "NodeNotRegistered",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "oracleContract",
+ "type": "address"
+ },
+ {
+ "internalType": "bytes",
+ "name": "oracleQuery",
+ "type": "bytes"
+ }
+ ],
+ "name": "OracleDataRequired",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "OverflowInt256ToUint256",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "OverflowInt56ToInt24",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "OverflowUint256ToInt256",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "OverflowUint256ToUint160",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "OverflowUint56ToInt56",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "StalenessToleranceExceeded",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "nodeId",
+ "type": "bytes32"
+ }
+ ],
+ "name": "UnprocessableNode",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "enum ReducerNode.Operations",
+ "name": "operation",
+ "type": "uint8"
+ }
+ ],
+ "name": "UnsupportedOperation",
+ "type": "error"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "bytes32",
+ "name": "nodeId",
+ "type": "bytes32"
+ },
+ {
+ "indexed": false,
+ "internalType": "enum NodeDefinition.NodeType",
+ "name": "nodeType",
+ "type": "uint8"
+ },
+ {
+ "indexed": false,
+ "internalType": "bytes",
+ "name": "parameters",
+ "type": "bytes"
+ },
+ {
+ "indexed": false,
+ "internalType": "bytes32[]",
+ "name": "parents",
+ "type": "bytes32[]"
+ }
+ ],
+ "name": "NodeRegistered",
+ "type": "event"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "nodeId",
+ "type": "bytes32"
+ }
+ ],
+ "name": "getNode",
+ "outputs": [
+ {
+ "components": [
+ {
+ "internalType": "enum NodeDefinition.NodeType",
+ "name": "nodeType",
+ "type": "uint8"
+ },
+ {
+ "internalType": "bytes",
+ "name": "parameters",
+ "type": "bytes"
+ },
+ {
+ "internalType": "bytes32[]",
+ "name": "parents",
+ "type": "bytes32[]"
+ }
+ ],
+ "internalType": "struct NodeDefinition.Data",
+ "name": "node",
+ "type": "tuple"
+ }
+ ],
+ "stateMutability": "pure",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "enum NodeDefinition.NodeType",
+ "name": "nodeType",
+ "type": "uint8"
+ },
+ {
+ "internalType": "bytes",
+ "name": "parameters",
+ "type": "bytes"
+ },
+ {
+ "internalType": "bytes32[]",
+ "name": "parents",
+ "type": "bytes32[]"
+ }
+ ],
+ "name": "getNodeId",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "nodeId",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "pure",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "nodeId",
+ "type": "bytes32"
+ }
+ ],
+ "name": "process",
+ "outputs": [
+ {
+ "components": [
+ {
+ "internalType": "int256",
+ "name": "price",
+ "type": "int256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "timestamp",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "__slotAvailableForFutureUse1",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "__slotAvailableForFutureUse2",
+ "type": "uint256"
+ }
+ ],
+ "internalType": "struct NodeOutput.Data",
+ "name": "node",
+ "type": "tuple"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "nodeId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "bytes32[]",
+ "name": "runtimeKeys",
+ "type": "bytes32[]"
+ },
+ {
+ "internalType": "bytes32[]",
+ "name": "runtimeValues",
+ "type": "bytes32[]"
+ }
+ ],
+ "name": "processWithRuntime",
+ "outputs": [
+ {
+ "components": [
+ {
+ "internalType": "int256",
+ "name": "price",
+ "type": "int256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "timestamp",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "__slotAvailableForFutureUse1",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "__slotAvailableForFutureUse2",
+ "type": "uint256"
+ }
+ ],
+ "internalType": "struct NodeOutput.Data",
+ "name": "node",
+ "type": "tuple"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "enum NodeDefinition.NodeType",
+ "name": "nodeType",
+ "type": "uint8"
+ },
+ {
+ "internalType": "bytes",
+ "name": "parameters",
+ "type": "bytes"
+ },
+ {
+ "internalType": "bytes32[]",
+ "name": "parents",
+ "type": "bytes32[]"
+ }
+ ],
+ "name": "registerNode",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "nodeId",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ }
+ ],
+ "deployTxnHash": "",
+ "sourceName": "",
+ "contractName": "",
+ "deployedOn": "invoke.upgrade_proxy",
+ "gasUsed": 0,
+ "gasCost": "0"
+}
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/84531-andromeda-PerpsAccountNFT.json b/Synthetix-Gitbook-v3/for-developers/abis/84531-andromeda-PerpsAccountNFT.json
new file mode 100644
index 0000000..c3bda35
--- /dev/null
+++ b/Synthetix-Gitbook-v3/for-developers/abis/84531-andromeda-PerpsAccountNFT.json
@@ -0,0 +1,817 @@
+{
+ "address": "0xfBD08C515DedDa6DbE59611b4bAC2E0f4a250301",
+ "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": "AlreadyInitialized",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "addr",
+ "type": "address"
+ }
+ ],
+ "name": "CannotSelfApprove",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "requestedIndex",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "length",
+ "type": "uint256"
+ }
+ ],
+ "name": "IndexOverrun",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "addr",
+ "type": "address"
+ }
+ ],
+ "name": "InvalidOwner",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "string",
+ "name": "parameter",
+ "type": "string"
+ },
+ {
+ "internalType": "string",
+ "name": "reason",
+ "type": "string"
+ }
+ ],
+ "name": "InvalidParameter",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "addr",
+ "type": "address"
+ }
+ ],
+ "name": "InvalidTransferRecipient",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "OverflowUint256ToUint128",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "id",
+ "type": "uint256"
+ }
+ ],
+ "name": "TokenAlreadyMinted",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "id",
+ "type": "uint256"
+ }
+ ],
+ "name": "TokenDoesNotExist",
+ "type": "error"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "approved",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "Approval",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "operator",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "bool",
+ "name": "approved",
+ "type": "bool"
+ }
+ ],
+ "name": "ApprovalForAll",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "from",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "Transfer",
+ "type": "event"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "holder",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "balance",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "burn",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "getApproved",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "operator",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "string",
+ "name": "tokenName",
+ "type": "string"
+ },
+ {
+ "internalType": "string",
+ "name": "tokenSymbol",
+ "type": "string"
+ },
+ {
+ "internalType": "string",
+ "name": "uri",
+ "type": "string"
+ }
+ ],
+ "name": "initialize",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "holder",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "operator",
+ "type": "address"
+ }
+ ],
+ "name": "isApprovedForAll",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "isInitialized",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "mint",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "name",
+ "outputs": [
+ {
+ "internalType": "string",
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "ownerOf",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "data",
+ "type": "bytes"
+ }
+ ],
+ "name": "safeMint",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "from",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "safeTransferFrom",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "from",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "data",
+ "type": "bytes"
+ }
+ ],
+ "name": "safeTransferFrom",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ },
+ {
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ }
+ ],
+ "name": "setAllowance",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "operator",
+ "type": "address"
+ },
+ {
+ "internalType": "bool",
+ "name": "approved",
+ "type": "bool"
+ }
+ ],
+ "name": "setApprovalForAll",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "string",
+ "name": "uri",
+ "type": "string"
+ }
+ ],
+ "name": "setBaseTokenURI",
+ "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": [],
+ "name": "symbol",
+ "outputs": [
+ {
+ "internalType": "string",
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "index",
+ "type": "uint256"
+ }
+ ],
+ "name": "tokenByIndex",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "index",
+ "type": "uint256"
+ }
+ ],
+ "name": "tokenOfOwnerByIndex",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "tokenURI",
+ "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": "from",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferFrom",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ }
+ ],
+ "deployTxnHash": "",
+ "sourceName": "",
+ "contractName": "",
+ "deployedOn": "invoke.init_account",
+ "gasUsed": 0,
+ "gasCost": "0"
+}
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/84531-andromeda-PerpsMarket.json b/Synthetix-Gitbook-v3/for-developers/abis/84531-andromeda-PerpsMarket.json
new file mode 100644
index 0000000..c2a7246
--- /dev/null
+++ b/Synthetix-Gitbook-v3/for-developers/abis/84531-andromeda-PerpsMarket.json
@@ -0,0 +1,4264 @@
+{
+ "address": "0xEED61f0CB02f3B38923b1b6EAa939D5f04f431b6",
+ "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": "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": "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": "PerpsMarketAlreadyInitialized",
+ "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": [
+ {
+ "internalType": "contract ISynthetixSystem",
+ "name": "synthetix",
+ "type": "address"
+ },
+ {
+ "internalType": "contract ISpotMarketSystem",
+ "name": "spotMarket",
+ "type": "address"
+ },
+ {
+ "internalType": "string",
+ "name": "marketName",
+ "type": "string"
+ }
+ ],
+ "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": "string",
+ "name": "marketName",
+ "type": "string"
+ }
+ ],
+ "name": "setPerpsMarketName",
+ "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": [],
+ "name": "KeeperCostsNotSet",
+ "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": "getAccountCollateralIds",
+ "outputs": [
+ {
+ "internalType": "uint256[]",
+ "name": "",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint128",
+ "name": "accountId",
+ "type": "uint128"
+ }
+ ],
+ "name": "getAccountOpenPositions",
+ "outputs": [
+ {
+ "internalType": "uint256[]",
+ "name": "",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "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": "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": "uint256",
+ "name": "settlementStrategyId",
+ "type": "uint256"
+ }
+ ],
+ "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": "commitmentTime",
+ "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": "commitmentTime",
+ "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": "commitmentTime",
+ "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": "commitmentTime",
+ "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": "InsufficientAccountMargin",
+ "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": "uint256",
+ "name": "account",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint128",
+ "name": "synthMarketId",
+ "type": "uint128"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "amount",
+ "type": "uint256"
+ }
+ ],
+ "name": "CollateralDeducted",
+ "type": "event"
+ },
+ {
+ "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": [
+ {
+ "internalType": "uint128",
+ "name": "accountId",
+ "type": "uint128"
+ }
+ ],
+ "name": "settleOrder",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "fillPrice",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "acceptablePrice",
+ "type": "uint256"
+ }
+ ],
+ "name": "AcceptablePriceNotExceeded",
+ "type": "error"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "uint128",
+ "name": "marketId",
+ "type": "uint128"
+ },
+ {
+ "indexed": true,
+ "internalType": "uint128",
+ "name": "accountId",
+ "type": "uint128"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "desiredPrice",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "fillPrice",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "int128",
+ "name": "sizeDelta",
+ "type": "int128"
+ },
+ {
+ "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": "OrderCancelled",
+ "type": "event"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint128",
+ "name": "accountId",
+ "type": "uint128"
+ }
+ ],
+ "name": "cancelOrder",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "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": "AccountLiquidationAttempt",
+ "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": [],
+ "name": "flaggedAccounts",
+ "outputs": [
+ {
+ "internalType": "uint256[]",
+ "name": "accountIds",
+ "type": "uint256[]"
+ }
+ ],
+ "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": [
+ {
+ "internalType": "uint256",
+ "name": "maxNumberOfAccounts",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateFlagged",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "liquidationReward",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint128[]",
+ "name": "accountIds",
+ "type": "uint128[]"
+ }
+ ],
+ "name": "liquidateFlaggedAccounts",
+ "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"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "duration",
+ "type": "uint256"
+ }
+ ],
+ "name": "InvalidSettlementWindowDuration",
+ "type": "error"
+ },
+ {
+ "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": "flagRewardRatioD18",
+ "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"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "strictStalenessTolerance",
+ "type": "uint256"
+ }
+ ],
+ "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": "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": true,
+ "internalType": "uint256",
+ "name": "strategyId",
+ "type": "uint256"
+ },
+ {
+ "components": [
+ {
+ "internalType": "enum SettlementStrategy.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": "bool",
+ "name": "disabled",
+ "type": "bool"
+ }
+ ],
+ "indexed": false,
+ "internalType": "struct SettlementStrategy.Data",
+ "name": "strategy",
+ "type": "tuple"
+ }
+ ],
+ "name": "SettlementStrategySet",
+ "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": "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": "flagRewardRatioD18",
+ "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": "perpsMarketId",
+ "type": "uint128"
+ }
+ ],
+ "name": "getPriceData",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "feedId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "uint256",
+ "name": "strictStalenessTolerance",
+ "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": "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": "flagRewardRatioD18",
+ "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"
+ },
+ {
+ "components": [
+ {
+ "internalType": "enum SettlementStrategy.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": "bool",
+ "name": "disabled",
+ "type": "bool"
+ }
+ ],
+ "internalType": "struct SettlementStrategy.Data",
+ "name": "strategy",
+ "type": "tuple"
+ }
+ ],
+ "name": "setSettlementStrategy",
+ "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"
+ },
+ {
+ "internalType": "uint256",
+ "name": "strictStalenessTolerance",
+ "type": "uint256"
+ }
+ ],
+ "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": true,
+ "internalType": "uint128",
+ "name": "synthMarketId",
+ "type": "uint128"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "maxCollateralAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "CollateralConfigurationSet",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "address",
+ "name": "feeCollector",
+ "type": "address"
+ }
+ ],
+ "name": "FeeCollectorSet",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "bytes32",
+ "name": "keeperCostNodeId",
+ "type": "bytes32"
+ }
+ ],
+ "name": "KeeperCostNodeIdUpdated",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "minKeeperRewardUsd",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "minKeeperProfitRatioD18",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "maxKeeperRewardUsd",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "maxKeeperScalingRatioD18",
+ "type": "uint256"
+ }
+ ],
+ "name": "KeeperRewardGuardsSet",
+ "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": [
+ {
+ "internalType": "uint128",
+ "name": "synthMarketId",
+ "type": "uint128"
+ }
+ ],
+ "name": "getCollateralConfiguration",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "maxCollateralAmount",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getFeeCollector",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "feeCollector",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getKeeperCostNodeId",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "keeperCostNodeId",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getKeeperRewardGuards",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "minKeeperRewardUsd",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "minKeeperProfitRatioD18",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "maxKeeperRewardUsd",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "maxKeeperScalingRatioD18",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getMarkets",
+ "outputs": [
+ {
+ "internalType": "uint256[]",
+ "name": "marketIds",
+ "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": "getSupportedCollaterals",
+ "outputs": [
+ {
+ "internalType": "uint256[]",
+ "name": "supportedCollaterals",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getSynthDeductionPriority",
+ "outputs": [
+ {
+ "internalType": "uint128[]",
+ "name": "",
+ "type": "uint128[]"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint128",
+ "name": "synthMarketId",
+ "type": "uint128"
+ },
+ {
+ "internalType": "uint256",
+ "name": "maxCollateralAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "setCollateralConfiguration",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "feeCollector",
+ "type": "address"
+ }
+ ],
+ "name": "setFeeCollector",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "minKeeperRewardUsd",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "minKeeperProfitRatioD18",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "maxKeeperRewardUsd",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "maxKeeperScalingRatioD18",
+ "type": "uint256"
+ }
+ ],
+ "name": "setKeeperRewardGuards",
+ "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": "bytes32",
+ "name": "keeperCostNodeId",
+ "type": "bytes32"
+ }
+ ],
+ "name": "updateKeeperCostNodeId",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "referrer",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "shareRatioD18",
+ "type": "uint256"
+ }
+ ],
+ "name": "updateReferrerShare",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ }
+ ],
+ "deployTxnHash": "",
+ "sourceName": "",
+ "contractName": "",
+ "deployedOn": "invoke.upgrade_proxy",
+ "gasUsed": 0,
+ "gasCost": "0"
+}
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/84531-andromeda-SpotMarket.json b/Synthetix-Gitbook-v3/for-developers/abis/84531-andromeda-SpotMarket.json
new file mode 100644
index 0000000..ce3c3da
--- /dev/null
+++ b/Synthetix-Gitbook-v3/for-developers/abis/84531-andromeda-SpotMarket.json
@@ -0,0 +1,3852 @@
+{
+ "address": "0x41A883a85b1AdE59F41d459Fa550b40fa56429DB",
+ "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"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "strictStalenessTolerance",
+ "type": "uint256"
+ }
+ ],
+ "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": "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": "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"
+ },
+ {
+ "internalType": "uint256",
+ "name": "strictPriceStalenessTolerance",
+ "type": "uint256"
+ }
+ ],
+ "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": "struct OrderFees.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": "struct OrderFees.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": "struct OrderFees.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": "struct OrderFees.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": "struct OrderFees.Data",
+ "name": "fees",
+ "type": "tuple"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint128",
+ "name": "marketId",
+ "type": "uint128"
+ },
+ {
+ "internalType": "uint256",
+ "name": "usdAmount",
+ "type": "uint256"
+ },
+ {
+ "internalType": "enum Price.Tolerance",
+ "name": "stalenessTolerance",
+ "type": "uint8"
+ }
+ ],
+ "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": "struct OrderFees.Data",
+ "name": "fees",
+ "type": "tuple"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint128",
+ "name": "marketId",
+ "type": "uint128"
+ },
+ {
+ "internalType": "uint256",
+ "name": "synthAmount",
+ "type": "uint256"
+ },
+ {
+ "internalType": "enum Price.Tolerance",
+ "name": "stalenessTolerance",
+ "type": "uint8"
+ }
+ ],
+ "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": "struct OrderFees.Data",
+ "name": "fees",
+ "type": "tuple"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint128",
+ "name": "marketId",
+ "type": "uint128"
+ },
+ {
+ "internalType": "uint256",
+ "name": "synthAmount",
+ "type": "uint256"
+ },
+ {
+ "internalType": "enum Price.Tolerance",
+ "name": "stalenessTolerance",
+ "type": "uint8"
+ }
+ ],
+ "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": "struct OrderFees.Data",
+ "name": "fees",
+ "type": "tuple"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint128",
+ "name": "marketId",
+ "type": "uint128"
+ },
+ {
+ "internalType": "uint256",
+ "name": "usdAmount",
+ "type": "uint256"
+ },
+ {
+ "internalType": "enum Price.Tolerance",
+ "name": "stalenessTolerance",
+ "type": "uint8"
+ }
+ ],
+ "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": "struct OrderFees.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": "struct OrderFees.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": "struct OrderFees.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": "struct OrderFees.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": "enum Transaction.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": "enum Transaction.Type",
+ "name": "orderType",
+ "type": "uint8"
+ },
+ {
+ "internalType": "uint256",
+ "name": "amountEscrowed",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "settlementStrategyId",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "commitmentTime",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "minimumSettlementAmount",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "settledAt",
+ "type": "uint256"
+ },
+ {
+ "internalType": "address",
+ "name": "referrer",
+ "type": "address"
+ }
+ ],
+ "indexed": false,
+ "internalType": "struct AsyncOrderClaim.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": "enum Transaction.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": "enum Transaction.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": "enum Transaction.Type",
+ "name": "orderType",
+ "type": "uint8"
+ },
+ {
+ "internalType": "uint256",
+ "name": "amountEscrowed",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "settlementStrategyId",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "commitmentTime",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "minimumSettlementAmount",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "settledAt",
+ "type": "uint256"
+ },
+ {
+ "internalType": "address",
+ "name": "referrer",
+ "type": "address"
+ }
+ ],
+ "internalType": "struct AsyncOrderClaim.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": "enum Transaction.Type",
+ "name": "orderType",
+ "type": "uint8"
+ },
+ {
+ "internalType": "uint256",
+ "name": "amountEscrowed",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "settlementStrategyId",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "commitmentTime",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "minimumSettlementAmount",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "settledAt",
+ "type": "uint256"
+ },
+ {
+ "internalType": "address",
+ "name": "referrer",
+ "type": "address"
+ }
+ ],
+ "internalType": "struct AsyncOrderClaim.Data",
+ "name": "asyncOrderClaim",
+ "type": "tuple"
+ }
+ ],
+ "stateMutability": "pure",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "enum SettlementStrategy.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": "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": "enum SettlementStrategy.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": "struct OrderFees.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": "enum Transaction.Type",
+ "name": "orderType",
+ "type": "uint8"
+ }
+ ],
+ "name": "OrderSettled",
+ "type": "event"
+ },
+ {
+ "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": "struct OrderFees.Data",
+ "name": "fees",
+ "type": "tuple"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "duration",
+ "type": "uint256"
+ }
+ ],
+ "name": "InvalidSettlementWindowDuration",
+ "type": "error"
+ },
+ {
+ "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"
+ },
+ {
+ "components": [
+ {
+ "internalType": "enum SettlementStrategy.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"
+ }
+ ],
+ "indexed": false,
+ "internalType": "struct SettlementStrategy.Data",
+ "name": "strategy",
+ "type": "tuple"
+ }
+ ],
+ "name": "SettlementStrategySet",
+ "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": "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": "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"
+ },
+ {
+ "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": "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": "struct SettlementStrategy.Data",
+ "name": "settlementStrategy",
+ "type": "tuple"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint128",
+ "name": "marketId",
+ "type": "uint128"
+ },
+ {
+ "internalType": "uint256",
+ "name": "strategyId",
+ "type": "uint256"
+ },
+ {
+ "components": [
+ {
+ "internalType": "enum SettlementStrategy.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": "struct SettlementStrategy.Data",
+ "name": "strategy",
+ "type": "tuple"
+ }
+ ],
+ "name": "setSettlementStrategy",
+ "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": "address",
+ "name": "from",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "FailedTransfer",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "configuredCollateralType",
+ "type": "address"
+ }
+ ],
+ "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": "struct OrderFees.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": "struct OrderFees.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": "struct OrderFees.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": "struct OrderFees.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"
+ }
+ ],
+ "deployTxnHash": "",
+ "sourceName": "",
+ "contractName": "",
+ "deployedOn": "invoke.upgradeSpotMarketProxy",
+ "gasUsed": 0,
+ "gasCost": "0"
+}
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/84531-andromeda-SynthetixCore.json b/Synthetix-Gitbook-v3/for-developers/abis/84531-andromeda-SynthetixCore.json
new file mode 100644
index 0000000..0c34555
--- /dev/null
+++ b/Synthetix-Gitbook-v3/for-developers/abis/84531-andromeda-SynthetixCore.json
@@ -0,0 +1,5298 @@
+{
+ "address": "0xd7cFdcf6499896a1E15Db92629AAC8085af8B2ac",
+ "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": "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"
+ }
+ ],
+ "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"
+ },
+ {
+ "indexed": false,
+ "internalType": "int128",
+ "name": "creditCapacity",
+ "type": "int128"
+ },
+ {
+ "indexed": false,
+ "internalType": "int128",
+ "name": "netIssuance",
+ "type": "int128"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "depositedCollateralValue",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "reportedDebt",
+ "type": "uint256"
+ }
+ ],
+ "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"
+ },
+ {
+ "indexed": false,
+ "internalType": "int128",
+ "name": "creditCapacity",
+ "type": "int128"
+ },
+ {
+ "indexed": false,
+ "internalType": "int128",
+ "name": "netIssuance",
+ "type": "int128"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "depositedCollateralValue",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "reportedDebt",
+ "type": "uint256"
+ }
+ ],
+ "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"
+ },
+ {
+ "indexed": false,
+ "internalType": "int128",
+ "name": "creditCapacity",
+ "type": "int128"
+ },
+ {
+ "indexed": false,
+ "internalType": "int128",
+ "name": "netIssuance",
+ "type": "int128"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "depositedCollateralValue",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "reportedDebt",
+ "type": "uint256"
+ }
+ ],
+ "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"
+ },
+ {
+ "indexed": false,
+ "internalType": "int128",
+ "name": "creditCapacity",
+ "type": "int128"
+ },
+ {
+ "indexed": false,
+ "internalType": "int128",
+ "name": "netIssuance",
+ "type": "int128"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "depositedCollateralValue",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "reportedDebt",
+ "type": "uint256"
+ }
+ ],
+ "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"
+ },
+ {
+ "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": true,
+ "internalType": "uint128",
+ "name": "poolId",
+ "type": "uint128"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ }
+ ],
+ "name": "PoolOwnershipRenounced",
+ "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": "collateralType",
+ "type": "address"
+ }
+ ],
+ "name": "getPoolCollateralConfiguration",
+ "outputs": [
+ {
+ "components": [
+ {
+ "internalType": "uint256",
+ "name": "collateralLimitD18",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "issuanceRatioD18",
+ "type": "uint256"
+ }
+ ],
+ "internalType": "struct PoolCollateralConfiguration.Data",
+ "name": "config",
+ "type": "tuple"
+ }
+ ],
+ "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": "renouncePoolOwnership",
+ "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": "accountId",
+ "type": "uint128"
+ },
+ {
+ "internalType": "uint128",
+ "name": "poolId",
+ "type": "uint128"
+ },
+ {
+ "internalType": "address",
+ "name": "collateralType",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "distributor",
+ "type": "address"
+ }
+ ],
+ "name": "getAvailableRewards",
+ "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": "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"
+ }
+ ],
+ "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"
+ }
+ ],
+ "deployTxnHash": "",
+ "sourceName": "",
+ "contractName": "",
+ "deployedOn": "invoke.upgrade_core_proxy",
+ "gasUsed": 0,
+ "gasCost": "0"
+}
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/84531-andromeda-snxAccountNFT.json b/Synthetix-Gitbook-v3/for-developers/abis/84531-andromeda-snxAccountNFT.json
new file mode 100644
index 0000000..25038da
--- /dev/null
+++ b/Synthetix-Gitbook-v3/for-developers/abis/84531-andromeda-snxAccountNFT.json
@@ -0,0 +1,817 @@
+{
+ "address": "0x09190c9Be3e79dF2Cb5DAEA6320f9A1129aD8e8c",
+ "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": "AlreadyInitialized",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "addr",
+ "type": "address"
+ }
+ ],
+ "name": "CannotSelfApprove",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "requestedIndex",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "length",
+ "type": "uint256"
+ }
+ ],
+ "name": "IndexOverrun",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "addr",
+ "type": "address"
+ }
+ ],
+ "name": "InvalidOwner",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "string",
+ "name": "parameter",
+ "type": "string"
+ },
+ {
+ "internalType": "string",
+ "name": "reason",
+ "type": "string"
+ }
+ ],
+ "name": "InvalidParameter",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "addr",
+ "type": "address"
+ }
+ ],
+ "name": "InvalidTransferRecipient",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "OverflowUint256ToUint128",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "id",
+ "type": "uint256"
+ }
+ ],
+ "name": "TokenAlreadyMinted",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "id",
+ "type": "uint256"
+ }
+ ],
+ "name": "TokenDoesNotExist",
+ "type": "error"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "approved",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "Approval",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "operator",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "bool",
+ "name": "approved",
+ "type": "bool"
+ }
+ ],
+ "name": "ApprovalForAll",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "from",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "Transfer",
+ "type": "event"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "holder",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "balance",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "burn",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "getApproved",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "operator",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "string",
+ "name": "tokenName",
+ "type": "string"
+ },
+ {
+ "internalType": "string",
+ "name": "tokenSymbol",
+ "type": "string"
+ },
+ {
+ "internalType": "string",
+ "name": "uri",
+ "type": "string"
+ }
+ ],
+ "name": "initialize",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "holder",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "operator",
+ "type": "address"
+ }
+ ],
+ "name": "isApprovedForAll",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "isInitialized",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "mint",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "name",
+ "outputs": [
+ {
+ "internalType": "string",
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "ownerOf",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "data",
+ "type": "bytes"
+ }
+ ],
+ "name": "safeMint",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "from",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "safeTransferFrom",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "from",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "data",
+ "type": "bytes"
+ }
+ ],
+ "name": "safeTransferFrom",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ },
+ {
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ }
+ ],
+ "name": "setAllowance",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "operator",
+ "type": "address"
+ },
+ {
+ "internalType": "bool",
+ "name": "approved",
+ "type": "bool"
+ }
+ ],
+ "name": "setApprovalForAll",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "string",
+ "name": "uri",
+ "type": "string"
+ }
+ ],
+ "name": "setBaseTokenURI",
+ "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": [],
+ "name": "symbol",
+ "outputs": [
+ {
+ "internalType": "string",
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "index",
+ "type": "uint256"
+ }
+ ],
+ "name": "tokenByIndex",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "index",
+ "type": "uint256"
+ }
+ ],
+ "name": "tokenOfOwnerByIndex",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "tokenURI",
+ "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": "from",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferFrom",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ }
+ ],
+ "deployTxnHash": "",
+ "sourceName": "",
+ "contractName": "",
+ "deployedOn": "invoke.init_account",
+ "gasUsed": 0,
+ "gasCost": "0"
+}
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/84531-andromeda-snxUSDToken.json b/Synthetix-Gitbook-v3/for-developers/abis/84531-andromeda-snxUSDToken.json
new file mode 100644
index 0000000..c3236db
--- /dev/null
+++ b/Synthetix-Gitbook-v3/for-developers/abis/84531-andromeda-snxUSDToken.json
@@ -0,0 +1,833 @@
+{
+ "address": "0xC9ee9628f23b14483EA413C28712690E8D2dC6a3",
+ "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"
+ }
+ ],
+ "deployTxnHash": "",
+ "sourceName": "",
+ "contractName": "",
+ "deployedOn": "invoke.init_usd",
+ "gasUsed": 0,
+ "gasCost": "0"
+}
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/84531-competition-FakeCollateralfSNX.json b/Synthetix-Gitbook-v3/for-developers/abis/84531-competition-FakeCollateralfSNX.json
new file mode 100644
index 0000000..bd25ec6
--- /dev/null
+++ b/Synthetix-Gitbook-v3/for-developers/abis/84531-competition-FakeCollateralfSNX.json
@@ -0,0 +1,372 @@
+{
+ "address": "0xB2b425098CfEe7dc29d7c437f8578EC02c44A5Ed",
+ "abi": [
+ {
+ "inputs": [
+ {
+ "internalType": "string",
+ "name": "name",
+ "type": "string"
+ },
+ {
+ "internalType": "string",
+ "name": "symbol",
+ "type": "string"
+ },
+ {
+ "internalType": "uint256",
+ "name": "initialSupply",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "payable",
+ "type": "constructor"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "Approval",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "previousOwner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "newOwner",
+ "type": "address"
+ }
+ ],
+ "name": "OwnershipTransferred",
+ "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": "value",
+ "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": "account",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "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": "uint256",
+ "name": "amount",
+ "type": "uint256"
+ },
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ }
+ ],
+ "name": "mint",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "name",
+ "outputs": [
+ {
+ "internalType": "string",
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "owner",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "renounceOwnership",
+ "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"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "newOwner",
+ "type": "address"
+ }
+ ],
+ "name": "transferOwnership",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ }
+ ],
+ "constructorArgs": ["Fake SNX", "fSNX", "0"],
+ "linkedLibraries": {},
+ "deployTxnHash": "0xdfffdbfbeb38b9218bf6e84db6a2699da932bd792a530136116374566635b8a4",
+ "sourceName": "src/MintableToken.sol",
+ "contractName": "MintableToken",
+ "deployedOn": "contract.MintableToken"
+}
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/84531-competition-OracleManager.json b/Synthetix-Gitbook-v3/for-developers/abis/84531-competition-OracleManager.json
new file mode 100644
index 0000000..40d89fc
--- /dev/null
+++ b/Synthetix-Gitbook-v3/for-developers/abis/84531-competition-OracleManager.json
@@ -0,0 +1,562 @@
+{
+ "address": "0xbAbfb6e9f914C1EfBBFFAdeE6cd86B23927434C8",
+ "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": "int256",
+ "name": "deviation",
+ "type": "int256"
+ }
+ ],
+ "name": "DeviationToleranceExceeded",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "InvalidInputPrice",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "components": [
+ {
+ "internalType": "enum NodeDefinition.NodeType",
+ "name": "nodeType",
+ "type": "uint8"
+ },
+ {
+ "internalType": "bytes",
+ "name": "parameters",
+ "type": "bytes"
+ },
+ {
+ "internalType": "bytes32[]",
+ "name": "parents",
+ "type": "bytes32[]"
+ }
+ ],
+ "internalType": "struct NodeDefinition.Data",
+ "name": "nodeType",
+ "type": "tuple"
+ }
+ ],
+ "name": "InvalidNodeDefinition",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "string",
+ "name": "parameter",
+ "type": "string"
+ },
+ {
+ "internalType": "string",
+ "name": "reason",
+ "type": "string"
+ }
+ ],
+ "name": "InvalidParameter",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "int256",
+ "name": "price",
+ "type": "int256"
+ }
+ ],
+ "name": "InvalidPrice",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "nodeId",
+ "type": "bytes32"
+ }
+ ],
+ "name": "NodeNotRegistered",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "OverflowInt256ToUint256",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "OverflowInt56ToInt24",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "OverflowUint256ToInt256",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "OverflowUint256ToUint160",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "OverflowUint56ToInt56",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "StalenessToleranceExceeded",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "nodeId",
+ "type": "bytes32"
+ }
+ ],
+ "name": "UnprocessableNode",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "enum ReducerNode.Operations",
+ "name": "operation",
+ "type": "uint8"
+ }
+ ],
+ "name": "UnsupportedOperation",
+ "type": "error"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "bytes32",
+ "name": "nodeId",
+ "type": "bytes32"
+ },
+ {
+ "indexed": false,
+ "internalType": "enum NodeDefinition.NodeType",
+ "name": "nodeType",
+ "type": "uint8"
+ },
+ {
+ "indexed": false,
+ "internalType": "bytes",
+ "name": "parameters",
+ "type": "bytes"
+ },
+ {
+ "indexed": false,
+ "internalType": "bytes32[]",
+ "name": "parents",
+ "type": "bytes32[]"
+ }
+ ],
+ "name": "NodeRegistered",
+ "type": "event"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "nodeId",
+ "type": "bytes32"
+ }
+ ],
+ "name": "getNode",
+ "outputs": [
+ {
+ "components": [
+ {
+ "internalType": "enum NodeDefinition.NodeType",
+ "name": "nodeType",
+ "type": "uint8"
+ },
+ {
+ "internalType": "bytes",
+ "name": "parameters",
+ "type": "bytes"
+ },
+ {
+ "internalType": "bytes32[]",
+ "name": "parents",
+ "type": "bytes32[]"
+ }
+ ],
+ "internalType": "struct NodeDefinition.Data",
+ "name": "node",
+ "type": "tuple"
+ }
+ ],
+ "stateMutability": "pure",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "enum NodeDefinition.NodeType",
+ "name": "nodeType",
+ "type": "uint8"
+ },
+ {
+ "internalType": "bytes",
+ "name": "parameters",
+ "type": "bytes"
+ },
+ {
+ "internalType": "bytes32[]",
+ "name": "parents",
+ "type": "bytes32[]"
+ }
+ ],
+ "name": "getNodeId",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "nodeId",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "pure",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "nodeId",
+ "type": "bytes32"
+ }
+ ],
+ "name": "process",
+ "outputs": [
+ {
+ "components": [
+ {
+ "internalType": "int256",
+ "name": "price",
+ "type": "int256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "timestamp",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "__slotAvailableForFutureUse1",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "__slotAvailableForFutureUse2",
+ "type": "uint256"
+ }
+ ],
+ "internalType": "struct NodeOutput.Data",
+ "name": "node",
+ "type": "tuple"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "nodeId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "bytes32[]",
+ "name": "runtimeKeys",
+ "type": "bytes32[]"
+ },
+ {
+ "internalType": "bytes32[]",
+ "name": "runtimeValues",
+ "type": "bytes32[]"
+ }
+ ],
+ "name": "processWithRuntime",
+ "outputs": [
+ {
+ "components": [
+ {
+ "internalType": "int256",
+ "name": "price",
+ "type": "int256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "timestamp",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "__slotAvailableForFutureUse1",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "__slotAvailableForFutureUse2",
+ "type": "uint256"
+ }
+ ],
+ "internalType": "struct NodeOutput.Data",
+ "name": "node",
+ "type": "tuple"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "enum NodeDefinition.NodeType",
+ "name": "nodeType",
+ "type": "uint8"
+ },
+ {
+ "internalType": "bytes",
+ "name": "parameters",
+ "type": "bytes"
+ },
+ {
+ "internalType": "bytes32[]",
+ "name": "parents",
+ "type": "bytes32[]"
+ }
+ ],
+ "name": "registerNode",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "nodeId",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ }
+ ],
+ "deployTxnHash": "",
+ "sourceName": "",
+ "contractName": "",
+ "deployedOn": "invoke.upgrade_proxy"
+}
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/84531-competition-PerpsAccountNFT.json b/Synthetix-Gitbook-v3/for-developers/abis/84531-competition-PerpsAccountNFT.json
new file mode 100644
index 0000000..9bcdf6e
--- /dev/null
+++ b/Synthetix-Gitbook-v3/for-developers/abis/84531-competition-PerpsAccountNFT.json
@@ -0,0 +1,815 @@
+{
+ "address": "0x518F2905b24AE298Ca06C1137b806DD5ACD493b6",
+ "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": "AlreadyInitialized",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "addr",
+ "type": "address"
+ }
+ ],
+ "name": "CannotSelfApprove",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "requestedIndex",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "length",
+ "type": "uint256"
+ }
+ ],
+ "name": "IndexOverrun",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "addr",
+ "type": "address"
+ }
+ ],
+ "name": "InvalidOwner",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "string",
+ "name": "parameter",
+ "type": "string"
+ },
+ {
+ "internalType": "string",
+ "name": "reason",
+ "type": "string"
+ }
+ ],
+ "name": "InvalidParameter",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "addr",
+ "type": "address"
+ }
+ ],
+ "name": "InvalidTransferRecipient",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "OverflowUint256ToUint128",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "id",
+ "type": "uint256"
+ }
+ ],
+ "name": "TokenAlreadyMinted",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "id",
+ "type": "uint256"
+ }
+ ],
+ "name": "TokenDoesNotExist",
+ "type": "error"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "approved",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "Approval",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "operator",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "bool",
+ "name": "approved",
+ "type": "bool"
+ }
+ ],
+ "name": "ApprovalForAll",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "from",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "Transfer",
+ "type": "event"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "holder",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "balance",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "burn",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "getApproved",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "operator",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "string",
+ "name": "tokenName",
+ "type": "string"
+ },
+ {
+ "internalType": "string",
+ "name": "tokenSymbol",
+ "type": "string"
+ },
+ {
+ "internalType": "string",
+ "name": "uri",
+ "type": "string"
+ }
+ ],
+ "name": "initialize",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "holder",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "operator",
+ "type": "address"
+ }
+ ],
+ "name": "isApprovedForAll",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "isInitialized",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "mint",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "name",
+ "outputs": [
+ {
+ "internalType": "string",
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "ownerOf",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "data",
+ "type": "bytes"
+ }
+ ],
+ "name": "safeMint",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "from",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "safeTransferFrom",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "from",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "data",
+ "type": "bytes"
+ }
+ ],
+ "name": "safeTransferFrom",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ },
+ {
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ }
+ ],
+ "name": "setAllowance",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "operator",
+ "type": "address"
+ },
+ {
+ "internalType": "bool",
+ "name": "approved",
+ "type": "bool"
+ }
+ ],
+ "name": "setApprovalForAll",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "string",
+ "name": "uri",
+ "type": "string"
+ }
+ ],
+ "name": "setBaseTokenURI",
+ "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": [],
+ "name": "symbol",
+ "outputs": [
+ {
+ "internalType": "string",
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "index",
+ "type": "uint256"
+ }
+ ],
+ "name": "tokenByIndex",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "index",
+ "type": "uint256"
+ }
+ ],
+ "name": "tokenOfOwnerByIndex",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "tokenURI",
+ "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": "from",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferFrom",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ }
+ ],
+ "deployTxnHash": "",
+ "sourceName": "",
+ "contractName": "",
+ "deployedOn": "invoke.init_account"
+}
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/84531-competition-PerpsMarket.json b/Synthetix-Gitbook-v3/for-developers/abis/84531-competition-PerpsMarket.json
new file mode 100644
index 0000000..73dd694
--- /dev/null
+++ b/Synthetix-Gitbook-v3/for-developers/abis/84531-competition-PerpsMarket.json
@@ -0,0 +1,4090 @@
+{
+ "address": "0x9863Dae3f4b5F4Ffe3A841a21565d57F2BA10E87",
+ "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": "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": "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": [
+ {
+ "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": "PerpsMarketAlreadyInitialized",
+ "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": [
+ {
+ "internalType": "contract ISynthetixSystem",
+ "name": "synthetix",
+ "type": "address"
+ },
+ {
+ "internalType": "contract ISpotMarketSystem",
+ "name": "spotMarket",
+ "type": "address"
+ },
+ {
+ "internalType": "string",
+ "name": "marketName",
+ "type": "string"
+ }
+ ],
+ "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": "string",
+ "name": "marketName",
+ "type": "string"
+ }
+ ],
+ "name": "setPerpsMarketName",
+ "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": [
+ {
+ "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"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "fillPrice",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "acceptablePrice",
+ "type": "uint256"
+ }
+ ],
+ "name": "AcceptablePriceNotExceeded",
+ "type": "error"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "uint128",
+ "name": "marketId",
+ "type": "uint128"
+ },
+ {
+ "indexed": true,
+ "internalType": "uint128",
+ "name": "accountId",
+ "type": "uint128"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "desiredPrice",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "fillPrice",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "int128",
+ "name": "sizeDelta",
+ "type": "int128"
+ },
+ {
+ "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": "OrderCancelled",
+ "type": "event"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint128",
+ "name": "accountId",
+ "type": "uint128"
+ }
+ ],
+ "name": "cancelOrder",
+ "outputs": [],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes",
+ "name": "result",
+ "type": "bytes"
+ },
+ {
+ "internalType": "bytes",
+ "name": "extraData",
+ "type": "bytes"
+ }
+ ],
+ "name": "cancelPythOrder",
+ "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": [],
+ "name": "flaggedAccounts",
+ "outputs": [
+ {
+ "internalType": "uint256[]",
+ "name": "accountIds",
+ "type": "uint256[]"
+ }
+ ],
+ "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": [
+ {
+ "internalType": "uint256",
+ "name": "maxNumberOfAccounts",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateFlagged",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "liquidationReward",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint128[]",
+ "name": "accountIds",
+ "type": "uint128[]"
+ }
+ ],
+ "name": "liquidateFlaggedAccounts",
+ "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"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "duration",
+ "type": "uint256"
+ }
+ ],
+ "name": "InvalidSettlementWindowDuration",
+ "type": "error"
+ },
+ {
+ "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"
+ }
+ ],
+ "deployTxnHash": "",
+ "sourceName": "",
+ "contractName": "",
+ "deployedOn": "invoke.upgrade_proxy"
+}
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/84531-competition-SpotMarket.json b/Synthetix-Gitbook-v3/for-developers/abis/84531-competition-SpotMarket.json
new file mode 100644
index 0000000..73313b7
--- /dev/null
+++ b/Synthetix-Gitbook-v3/for-developers/abis/84531-competition-SpotMarket.json
@@ -0,0 +1,3797 @@
+{
+ "address": "0x17633A63083dbd4941891F87Bdf31B896e91e2B9",
+ "abi": [
+ {
+ "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": "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": [
+ {
+ "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": "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": "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": "struct OrderFees.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": "struct OrderFees.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": "struct OrderFees.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": "struct OrderFees.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": "struct OrderFees.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": "struct OrderFees.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": "struct OrderFees.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": "struct OrderFees.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": "struct OrderFees.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": "struct OrderFees.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": "struct OrderFees.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": "struct OrderFees.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": "enum Transaction.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": "enum Transaction.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": "struct AsyncOrderClaim.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": "enum Transaction.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": "enum Transaction.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": "enum Transaction.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": "struct AsyncOrderClaim.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": "enum Transaction.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": "struct AsyncOrderClaim.Data",
+ "name": "asyncOrderClaim",
+ "type": "tuple"
+ }
+ ],
+ "stateMutability": "pure",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "enum SettlementStrategy.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": "enum SettlementStrategy.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": "struct OrderFees.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": "enum Transaction.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": "struct OrderFees.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": "struct OrderFees.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": "enum SettlementStrategy.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": "minimumUsdExchangeAmount",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "maxRoundingLoss",
+ "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"
+ },
+ {
+ "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": "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": "minimumUsdExchangeAmount",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "maxRoundingLoss",
+ "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": "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": "struct OrderFees.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": "struct OrderFees.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": "struct OrderFees.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": "struct OrderFees.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"
+ }
+ ],
+ "deployTxnHash": "",
+ "sourceName": "",
+ "contractName": "",
+ "deployedOn": "invoke.upgradeSpotMarketProxy"
+}
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/84531-competition-SynthetixCore.json b/Synthetix-Gitbook-v3/for-developers/abis/84531-competition-SynthetixCore.json
new file mode 100644
index 0000000..3b3db69
--- /dev/null
+++ b/Synthetix-Gitbook-v3/for-developers/abis/84531-competition-SynthetixCore.json
@@ -0,0 +1,5139 @@
+{
+ "address": "0xa53346A1684DAB73EFfd048fA40Fb1fA9327fDe9",
+ "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": "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"
+ }
+ ],
+ "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": "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": "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"
+ }
+ ],
+ "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"
+ }
+ ],
+ "deployTxnHash": "",
+ "sourceName": "",
+ "contractName": "",
+ "deployedOn": "invoke.upgrade_core_proxy"
+}
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/84531-competition-snxAccountNFT.json b/Synthetix-Gitbook-v3/for-developers/abis/84531-competition-snxAccountNFT.json
new file mode 100644
index 0000000..668a157
--- /dev/null
+++ b/Synthetix-Gitbook-v3/for-developers/abis/84531-competition-snxAccountNFT.json
@@ -0,0 +1,815 @@
+{
+ "address": "0xdD066734028Cb1f07AC8CEdd054BA64Ea05b8461",
+ "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": "AlreadyInitialized",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "addr",
+ "type": "address"
+ }
+ ],
+ "name": "CannotSelfApprove",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "requestedIndex",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "length",
+ "type": "uint256"
+ }
+ ],
+ "name": "IndexOverrun",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "addr",
+ "type": "address"
+ }
+ ],
+ "name": "InvalidOwner",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "string",
+ "name": "parameter",
+ "type": "string"
+ },
+ {
+ "internalType": "string",
+ "name": "reason",
+ "type": "string"
+ }
+ ],
+ "name": "InvalidParameter",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "addr",
+ "type": "address"
+ }
+ ],
+ "name": "InvalidTransferRecipient",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "OverflowUint256ToUint128",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "id",
+ "type": "uint256"
+ }
+ ],
+ "name": "TokenAlreadyMinted",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "id",
+ "type": "uint256"
+ }
+ ],
+ "name": "TokenDoesNotExist",
+ "type": "error"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "approved",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "Approval",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "operator",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "bool",
+ "name": "approved",
+ "type": "bool"
+ }
+ ],
+ "name": "ApprovalForAll",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "from",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "Transfer",
+ "type": "event"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "holder",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "balance",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "burn",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "getApproved",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "operator",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "string",
+ "name": "tokenName",
+ "type": "string"
+ },
+ {
+ "internalType": "string",
+ "name": "tokenSymbol",
+ "type": "string"
+ },
+ {
+ "internalType": "string",
+ "name": "uri",
+ "type": "string"
+ }
+ ],
+ "name": "initialize",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "holder",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "operator",
+ "type": "address"
+ }
+ ],
+ "name": "isApprovedForAll",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "isInitialized",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "mint",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "name",
+ "outputs": [
+ {
+ "internalType": "string",
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "ownerOf",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "data",
+ "type": "bytes"
+ }
+ ],
+ "name": "safeMint",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "from",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "safeTransferFrom",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "from",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "data",
+ "type": "bytes"
+ }
+ ],
+ "name": "safeTransferFrom",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ },
+ {
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ }
+ ],
+ "name": "setAllowance",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "operator",
+ "type": "address"
+ },
+ {
+ "internalType": "bool",
+ "name": "approved",
+ "type": "bool"
+ }
+ ],
+ "name": "setApprovalForAll",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "string",
+ "name": "uri",
+ "type": "string"
+ }
+ ],
+ "name": "setBaseTokenURI",
+ "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": [],
+ "name": "symbol",
+ "outputs": [
+ {
+ "internalType": "string",
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "index",
+ "type": "uint256"
+ }
+ ],
+ "name": "tokenByIndex",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "index",
+ "type": "uint256"
+ }
+ ],
+ "name": "tokenOfOwnerByIndex",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "tokenURI",
+ "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": "from",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferFrom",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ }
+ ],
+ "deployTxnHash": "",
+ "sourceName": "",
+ "contractName": "",
+ "deployedOn": "invoke.init_account"
+}
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/84531-competition-snxUSDToken.json b/Synthetix-Gitbook-v3/for-developers/abis/84531-competition-snxUSDToken.json
new file mode 100644
index 0000000..279f699
--- /dev/null
+++ b/Synthetix-Gitbook-v3/for-developers/abis/84531-competition-snxUSDToken.json
@@ -0,0 +1,831 @@
+{
+ "address": "0x579c612E4Bf390f5504DB9f76b6F5759A3172279",
+ "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"
+ }
+ ],
+ "deployTxnHash": "",
+ "sourceName": "",
+ "contractName": "",
+ "deployedOn": "invoke.init_usd"
+}
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/84531-main-OracleManager.json b/Synthetix-Gitbook-v3/for-developers/abis/84531-main-OracleManager.json
new file mode 100644
index 0000000..6f17a5e
--- /dev/null
+++ b/Synthetix-Gitbook-v3/for-developers/abis/84531-main-OracleManager.json
@@ -0,0 +1,562 @@
+{
+ "address": "0xDca879a959f7B2AB73A6AC59bF84F647Eb6f203e",
+ "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": "int256",
+ "name": "deviation",
+ "type": "int256"
+ }
+ ],
+ "name": "DeviationToleranceExceeded",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "InvalidInputPrice",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "components": [
+ {
+ "internalType": "enum NodeDefinition.NodeType",
+ "name": "nodeType",
+ "type": "uint8"
+ },
+ {
+ "internalType": "bytes",
+ "name": "parameters",
+ "type": "bytes"
+ },
+ {
+ "internalType": "bytes32[]",
+ "name": "parents",
+ "type": "bytes32[]"
+ }
+ ],
+ "internalType": "struct NodeDefinition.Data",
+ "name": "nodeType",
+ "type": "tuple"
+ }
+ ],
+ "name": "InvalidNodeDefinition",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "string",
+ "name": "parameter",
+ "type": "string"
+ },
+ {
+ "internalType": "string",
+ "name": "reason",
+ "type": "string"
+ }
+ ],
+ "name": "InvalidParameter",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "int256",
+ "name": "price",
+ "type": "int256"
+ }
+ ],
+ "name": "InvalidPrice",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "nodeId",
+ "type": "bytes32"
+ }
+ ],
+ "name": "NodeNotRegistered",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "OverflowInt256ToUint256",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "OverflowInt56ToInt24",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "OverflowUint256ToInt256",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "OverflowUint256ToUint160",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "OverflowUint56ToInt56",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "StalenessToleranceExceeded",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "nodeId",
+ "type": "bytes32"
+ }
+ ],
+ "name": "UnprocessableNode",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "enum ReducerNode.Operations",
+ "name": "operation",
+ "type": "uint8"
+ }
+ ],
+ "name": "UnsupportedOperation",
+ "type": "error"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "bytes32",
+ "name": "nodeId",
+ "type": "bytes32"
+ },
+ {
+ "indexed": false,
+ "internalType": "enum NodeDefinition.NodeType",
+ "name": "nodeType",
+ "type": "uint8"
+ },
+ {
+ "indexed": false,
+ "internalType": "bytes",
+ "name": "parameters",
+ "type": "bytes"
+ },
+ {
+ "indexed": false,
+ "internalType": "bytes32[]",
+ "name": "parents",
+ "type": "bytes32[]"
+ }
+ ],
+ "name": "NodeRegistered",
+ "type": "event"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "nodeId",
+ "type": "bytes32"
+ }
+ ],
+ "name": "getNode",
+ "outputs": [
+ {
+ "components": [
+ {
+ "internalType": "enum NodeDefinition.NodeType",
+ "name": "nodeType",
+ "type": "uint8"
+ },
+ {
+ "internalType": "bytes",
+ "name": "parameters",
+ "type": "bytes"
+ },
+ {
+ "internalType": "bytes32[]",
+ "name": "parents",
+ "type": "bytes32[]"
+ }
+ ],
+ "internalType": "struct NodeDefinition.Data",
+ "name": "node",
+ "type": "tuple"
+ }
+ ],
+ "stateMutability": "pure",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "enum NodeDefinition.NodeType",
+ "name": "nodeType",
+ "type": "uint8"
+ },
+ {
+ "internalType": "bytes",
+ "name": "parameters",
+ "type": "bytes"
+ },
+ {
+ "internalType": "bytes32[]",
+ "name": "parents",
+ "type": "bytes32[]"
+ }
+ ],
+ "name": "getNodeId",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "nodeId",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "pure",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "nodeId",
+ "type": "bytes32"
+ }
+ ],
+ "name": "process",
+ "outputs": [
+ {
+ "components": [
+ {
+ "internalType": "int256",
+ "name": "price",
+ "type": "int256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "timestamp",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "__slotAvailableForFutureUse1",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "__slotAvailableForFutureUse2",
+ "type": "uint256"
+ }
+ ],
+ "internalType": "struct NodeOutput.Data",
+ "name": "node",
+ "type": "tuple"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "nodeId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "bytes32[]",
+ "name": "runtimeKeys",
+ "type": "bytes32[]"
+ },
+ {
+ "internalType": "bytes32[]",
+ "name": "runtimeValues",
+ "type": "bytes32[]"
+ }
+ ],
+ "name": "processWithRuntime",
+ "outputs": [
+ {
+ "components": [
+ {
+ "internalType": "int256",
+ "name": "price",
+ "type": "int256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "timestamp",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "__slotAvailableForFutureUse1",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "__slotAvailableForFutureUse2",
+ "type": "uint256"
+ }
+ ],
+ "internalType": "struct NodeOutput.Data",
+ "name": "node",
+ "type": "tuple"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "enum NodeDefinition.NodeType",
+ "name": "nodeType",
+ "type": "uint8"
+ },
+ {
+ "internalType": "bytes",
+ "name": "parameters",
+ "type": "bytes"
+ },
+ {
+ "internalType": "bytes32[]",
+ "name": "parents",
+ "type": "bytes32[]"
+ }
+ ],
+ "name": "registerNode",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "nodeId",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ }
+ ],
+ "deployTxnHash": "",
+ "sourceName": "",
+ "contractName": "",
+ "deployedOn": "invoke.upgrade_proxy"
+}
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/420-SpotMarket.json b/Synthetix-Gitbook-v3/for-developers/abis/84531-main-SpotMarket.json
similarity index 99%
rename from Synthetix-Gitbook-v3/for-developers/abis/420-SpotMarket.json
rename to Synthetix-Gitbook-v3/for-developers/abis/84531-main-SpotMarket.json
index ee47645..9ea780b 100644
--- a/Synthetix-Gitbook-v3/for-developers/abis/420-SpotMarket.json
+++ b/Synthetix-Gitbook-v3/for-developers/abis/84531-main-SpotMarket.json
@@ -1,5 +1,5 @@
{
- "address": "0x5FF4b3aacdeC86782d8c757FAa638d8790799E83",
+ "address": "0x897CAf492D824a88d374f742E898f56FbD33d631",
"abi": [
{
"inputs": [
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/5-SynthetixCore.json b/Synthetix-Gitbook-v3/for-developers/abis/84531-main-SynthetixCore.json
similarity index 99%
rename from Synthetix-Gitbook-v3/for-developers/abis/5-SynthetixCore.json
rename to Synthetix-Gitbook-v3/for-developers/abis/84531-main-SynthetixCore.json
index 5e6d270..4ebc4f9 100644
--- a/Synthetix-Gitbook-v3/for-developers/abis/5-SynthetixCore.json
+++ b/Synthetix-Gitbook-v3/for-developers/abis/84531-main-SynthetixCore.json
@@ -1,5 +1,5 @@
{
- "address": "0x76490713314fCEC173f44e99346F54c6e92a8E42",
+ "address": "0x3a0B49f5B93a95453BdaCfc3653E15F982A0187A",
"abi": [
{
"inputs": [
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/84531-main-snxAccountNFT.json b/Synthetix-Gitbook-v3/for-developers/abis/84531-main-snxAccountNFT.json
new file mode 100644
index 0000000..627133d
--- /dev/null
+++ b/Synthetix-Gitbook-v3/for-developers/abis/84531-main-snxAccountNFT.json
@@ -0,0 +1,815 @@
+{
+ "address": "0x1146D135842015662c46f284FBDb253EDE225fCE",
+ "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": "AlreadyInitialized",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "addr",
+ "type": "address"
+ }
+ ],
+ "name": "CannotSelfApprove",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "requestedIndex",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "length",
+ "type": "uint256"
+ }
+ ],
+ "name": "IndexOverrun",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "addr",
+ "type": "address"
+ }
+ ],
+ "name": "InvalidOwner",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "string",
+ "name": "parameter",
+ "type": "string"
+ },
+ {
+ "internalType": "string",
+ "name": "reason",
+ "type": "string"
+ }
+ ],
+ "name": "InvalidParameter",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "addr",
+ "type": "address"
+ }
+ ],
+ "name": "InvalidTransferRecipient",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "OverflowUint256ToUint128",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "id",
+ "type": "uint256"
+ }
+ ],
+ "name": "TokenAlreadyMinted",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "id",
+ "type": "uint256"
+ }
+ ],
+ "name": "TokenDoesNotExist",
+ "type": "error"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "approved",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "Approval",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "operator",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "bool",
+ "name": "approved",
+ "type": "bool"
+ }
+ ],
+ "name": "ApprovalForAll",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "from",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "Transfer",
+ "type": "event"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "holder",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "balance",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "burn",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "getApproved",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "operator",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "string",
+ "name": "tokenName",
+ "type": "string"
+ },
+ {
+ "internalType": "string",
+ "name": "tokenSymbol",
+ "type": "string"
+ },
+ {
+ "internalType": "string",
+ "name": "uri",
+ "type": "string"
+ }
+ ],
+ "name": "initialize",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "holder",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "operator",
+ "type": "address"
+ }
+ ],
+ "name": "isApprovedForAll",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "isInitialized",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "mint",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "name",
+ "outputs": [
+ {
+ "internalType": "string",
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "ownerOf",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "data",
+ "type": "bytes"
+ }
+ ],
+ "name": "safeMint",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "from",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "safeTransferFrom",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "from",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "data",
+ "type": "bytes"
+ }
+ ],
+ "name": "safeTransferFrom",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ },
+ {
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ }
+ ],
+ "name": "setAllowance",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "operator",
+ "type": "address"
+ },
+ {
+ "internalType": "bool",
+ "name": "approved",
+ "type": "bool"
+ }
+ ],
+ "name": "setApprovalForAll",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "string",
+ "name": "uri",
+ "type": "string"
+ }
+ ],
+ "name": "setBaseTokenURI",
+ "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": [],
+ "name": "symbol",
+ "outputs": [
+ {
+ "internalType": "string",
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "index",
+ "type": "uint256"
+ }
+ ],
+ "name": "tokenByIndex",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "index",
+ "type": "uint256"
+ }
+ ],
+ "name": "tokenOfOwnerByIndex",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "tokenURI",
+ "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": "from",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "tokenId",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferFrom",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ }
+ ],
+ "deployTxnHash": "",
+ "sourceName": "",
+ "contractName": "",
+ "deployedOn": "invoke.init_account"
+}
diff --git a/Synthetix-Gitbook-v3/for-developers/abis/84531-main-snxUSDToken.json b/Synthetix-Gitbook-v3/for-developers/abis/84531-main-snxUSDToken.json
new file mode 100644
index 0000000..e23db50
--- /dev/null
+++ b/Synthetix-Gitbook-v3/for-developers/abis/84531-main-snxUSDToken.json
@@ -0,0 +1,831 @@
+{
+ "address": "0x2b99243d983d515c611a09Ae673399553452ce18",
+ "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"
+ }
+ ],
+ "deployTxnHash": "",
+ "sourceName": "",
+ "contractName": "",
+ "deployedOn": "invoke.init_usd"
+}
diff --git a/Synthetix-Gitbook-v3/for-developers/addresses-+-abis.md b/Synthetix-Gitbook-v3/for-developers/addresses-+-abis.md
index 5c5b092..e1405d3 100644
--- a/Synthetix-Gitbook-v3/for-developers/addresses-+-abis.md
+++ b/Synthetix-Gitbook-v3/for-developers/addresses-+-abis.md
@@ -4,91 +4,140 @@ See the [synthetix-deployments](https://github.com/synthetixio/synthetix-deploym
To download the Addresses + ABIs for Synthetix via the command line, you can run the following command:
-```bash
-npx @usecannon/cli inspect synthetix-omnibus --write-deployments ./deployments --chain-id
+```sh
+npx @usecannon/cli inspect synthetix-omnibus \
+ --write-deployments ./deployments \
+ --chain-id \
+ --preset
```
## Mainnet
Chain ID: 1
-| System | Address | ABI |
-| --- | --- | --- |
-| Synthetix Core | [0xffffffaEff0B96Ea8e4f94b2253f31abdD875847](https://etherscan.io/address/0xffffffaEff0B96Ea8e4f94b2253f31abdD875847) | [View/Download](./abis/1-SynthetixCore.json) |
-| snxAccount NFT | [0x0E429603D3Cb1DFae4E6F52Add5fE82d96d77Dac](https://etherscan.io/address/0x0E429603D3Cb1DFae4E6F52Add5fE82d96d77Dac) | [View/Download](./abis/1-snxAccountNFT.json) |
-| snxUSD Token | [0xb2F30A7C980f052f02563fb518dcc39e6bf38175](https://etherscan.io/address/0xb2F30A7C980f052f02563fb518dcc39e6bf38175) | [View/Download](./abis/1-snxUSDToken.json) |
-| Oracle Manager | [0x0aaF300E148378489a8A471DD3e9E53E30cb42e3](https://etherscan.io/address/0x0aaF300E148378489a8A471DD3e9E53E30cb42e3) | [View/Download](./abis/1-OracleManager.json) |
-| SNX Token | [0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F](https://etherscan.io/address/0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F) | _ERC-20 compliant_ |
+| System | Address | ABI |
+| -------------- | --------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------- |
+| Synthetix Core | [0xffffffaEff0B96Ea8e4f94b2253f31abdD875847](https://etherscan.io/address/0xffffffaEff0B96Ea8e4f94b2253f31abdD875847) | [View/Download](./abis/1-main-SynthetixCore.json) |
+| snxAccount NFT | [0x0E429603D3Cb1DFae4E6F52Add5fE82d96d77Dac](https://etherscan.io/address/0x0E429603D3Cb1DFae4E6F52Add5fE82d96d77Dac) | [View/Download](./abis/1-main-snxAccountNFT.json) |
+| snxUSD Token | [0xb2F30A7C980f052f02563fb518dcc39e6bf38175](https://etherscan.io/address/0xb2F30A7C980f052f02563fb518dcc39e6bf38175) | [View/Download](./abis/1-main-snxUSDToken.json) |
+| Oracle Manager | [0x0aaF300E148378489a8A471DD3e9E53E30cb42e3](https://etherscan.io/address/0x0aaF300E148378489a8A471DD3e9E53E30cb42e3) | [View/Download](./abis/1-main-OracleManager.json) |
+| SNX Token | [0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F](https://etherscan.io/address/0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F) | _ERC-20 compliant_ |
## Goerli
Chain ID: 5
-| System | Address | ABI |
-| --- | --- | --- |
-| Synthetix Core | [0x76490713314fCEC173f44e99346F54c6e92a8E42](https://goerli.etherscan.io/address/0x76490713314fCEC173f44e99346F54c6e92a8E42) | [View/Download](./abis/5-SynthetixCore.json) |
-| snxAccount NFT | [0x1b791d05E437C78039424749243F5A79E747525e](https://goerli.etherscan.io/address/0x1b791d05E437C78039424749243F5A79E747525e) | [View/Download](./abis/5-snxAccountNFT.json) |
-| snxUSD Token | [0xe487Ad4291019b33e2230F8E2FB1fb6490325260](https://goerli.etherscan.io/address/0xe487Ad4291019b33e2230F8E2FB1fb6490325260) | [View/Download](./abis/5-snxUSDToken.json) |
-| Oracle Manager | [0x12aE0D5CD26f212bFE242DA78139d463019f7a73](https://goerli.etherscan.io/address/0x12aE0D5CD26f212bFE242DA78139d463019f7a73) | [View/Download](./abis/5-OracleManager.json) |
-| SNX Token | [0x51f44ca59b867E005e48FA573Cb8df83FC7f7597](https://goerli.etherscan.io/address/0x51f44ca59b867E005e48FA573Cb8df83FC7f7597) | _ERC-20 compliant_ |
+| System | Address | ABI |
+| -------------- | ---------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------- |
+| Synthetix Core | [0x895CE54BBA4f14FeFbF0624673DC303054De0652](https://goerli.etherscan.io/address/0x895CE54BBA4f14FeFbF0624673DC303054De0652) | [View/Download](./abis/5-main-SynthetixCore.json) |
+| snxAccount NFT | [0xf19BdaE737d61A91cd0aeb3E32D0E11f9eF7aE5c](https://goerli.etherscan.io/address/0xf19BdaE737d61A91cd0aeb3E32D0E11f9eF7aE5c) | [View/Download](./abis/5-main-snxAccountNFT.json) |
+| snxUSD Token | [0x50f194b9949759510cE3700f759D64ac429dcC76](https://goerli.etherscan.io/address/0x50f194b9949759510cE3700f759D64ac429dcC76) | [View/Download](./abis/5-main-snxUSDToken.json) |
+| Oracle Manager | [0x21a642c7b2B511f934DDD1250E2335899696ED0e](https://goerli.etherscan.io/address/0x21a642c7b2B511f934DDD1250E2335899696ED0e) | [View/Download](./abis/5-main-OracleManager.json) |
+| SNX Token | [0x51f44ca59b867E005e48FA573Cb8df83FC7f7597](https://goerli.etherscan.io/address/0x51f44ca59b867E005e48FA573Cb8df83FC7f7597) | _ERC-20 compliant_ |
## Sepolia
Chain ID: 11155111
-| System | Address | ABI |
-| --- | --- | --- |
-| Synthetix Core | [0x76490713314fCEC173f44e99346F54c6e92a8E42](https://sepolia.etherscan.io/address/0x76490713314fCEC173f44e99346F54c6e92a8E42) | [View/Download](./abis/11155111-SynthetixCore.json) |
-| snxAccount NFT | [0xe487Ad4291019b33e2230F8E2FB1fb6490325260](https://sepolia.etherscan.io/address/0xe487Ad4291019b33e2230F8E2FB1fb6490325260) | [View/Download](./abis/11155111-snxAccountNFT.json) |
-| snxUSD Token | [0x1b791d05E437C78039424749243F5A79E747525e](https://sepolia.etherscan.io/address/0x1b791d05E437C78039424749243F5A79E747525e) | [View/Download](./abis/11155111-snxUSDToken.json) |
-| Oracle Manager | [0x12aE0D5CD26f212bFE242DA78139d463019f7a73](https://sepolia.etherscan.io/address/0x12aE0D5CD26f212bFE242DA78139d463019f7a73) | [View/Download](./abis/11155111-OracleManager.json) |
+| System | Address | ABI |
+| -------------- | ----------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- |
+| Synthetix Core | [0x76490713314fCEC173f44e99346F54c6e92a8E42](https://sepolia.etherscan.io/address/0x76490713314fCEC173f44e99346F54c6e92a8E42) | [View/Download](./abis/11155111-main-SynthetixCore.json) |
+| snxAccount NFT | [0xe487Ad4291019b33e2230F8E2FB1fb6490325260](https://sepolia.etherscan.io/address/0xe487Ad4291019b33e2230F8E2FB1fb6490325260) | [View/Download](./abis/11155111-main-snxAccountNFT.json) |
+| snxUSD Token | [0x1b791d05E437C78039424749243F5A79E747525e](https://sepolia.etherscan.io/address/0x1b791d05E437C78039424749243F5A79E747525e) | [View/Download](./abis/11155111-main-snxUSDToken.json) |
+| Oracle Manager | [0x12aE0D5CD26f212bFE242DA78139d463019f7a73](https://sepolia.etherscan.io/address/0x12aE0D5CD26f212bFE242DA78139d463019f7a73) | [View/Download](./abis/11155111-main-OracleManager.json) |
## Optimism
Chain ID: 10
-| System | Address | ABI |
-| --- | --- | --- |
-| Synthetix Core | [0xffffffaEff0B96Ea8e4f94b2253f31abdD875847](https://optimistic.etherscan.io/address/0xffffffaEff0B96Ea8e4f94b2253f31abdD875847) | [View/Download](./abis/10-SynthetixCore.json) |
-| snxAccount NFT | [0x0E429603D3Cb1DFae4E6F52Add5fE82d96d77Dac](https://optimistic.etherscan.io/address/0x0E429603D3Cb1DFae4E6F52Add5fE82d96d77Dac) | [View/Download](./abis/10-snxAccountNFT.json) |
-| snxUSD Token | [0xb2F30A7C980f052f02563fb518dcc39e6bf38175](https://optimistic.etherscan.io/address/0xb2F30A7C980f052f02563fb518dcc39e6bf38175) | [View/Download](./abis/10-snxUSDToken.json) |
-| Oracle Manager | [0x0aaF300E148378489a8A471DD3e9E53E30cb42e3](https://optimistic.etherscan.io/address/0x0aaF300E148378489a8A471DD3e9E53E30cb42e3) | [View/Download](./abis/10-OracleManager.json) |
-| Spot Market | [0x38908Ee087D7db73A1Bd1ecab9AAb8E8c9C74595](https://optimistic.etherscan.io/address/0x38908Ee087D7db73A1Bd1ecab9AAb8E8c9C74595) | [View/Download](./abis/10-SpotMarket.json) |
-| SNX Token | [0x8700dAec35aF8Ff88c16BdF0418774CB3D7599B4](https://optimistic.etherscan.io/address/0x8700dAec35aF8Ff88c16BdF0418774CB3D7599B4) | _ERC-20 compliant_ |
+| System | Address | ABI |
+| -------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------- |
+| Synthetix Core | [0xffffffaEff0B96Ea8e4f94b2253f31abdD875847](https://optimistic.etherscan.io/address/0xffffffaEff0B96Ea8e4f94b2253f31abdD875847) | [View/Download](./abis/10-main-SynthetixCore.json) |
+| snxAccount NFT | [0x0E429603D3Cb1DFae4E6F52Add5fE82d96d77Dac](https://optimistic.etherscan.io/address/0x0E429603D3Cb1DFae4E6F52Add5fE82d96d77Dac) | [View/Download](./abis/10-main-snxAccountNFT.json) |
+| snxUSD Token | [0xb2F30A7C980f052f02563fb518dcc39e6bf38175](https://optimistic.etherscan.io/address/0xb2F30A7C980f052f02563fb518dcc39e6bf38175) | [View/Download](./abis/10-main-snxUSDToken.json) |
+| Oracle Manager | [0x0aaF300E148378489a8A471DD3e9E53E30cb42e3](https://optimistic.etherscan.io/address/0x0aaF300E148378489a8A471DD3e9E53E30cb42e3) | [View/Download](./abis/10-main-OracleManager.json) |
+| Spot Market | [0x38908Ee087D7db73A1Bd1ecab9AAb8E8c9C74595](https://optimistic.etherscan.io/address/0x38908Ee087D7db73A1Bd1ecab9AAb8E8c9C74595) | [View/Download](./abis/10-main-SpotMarket.json) |
+| SNX Token | [0x8700dAec35aF8Ff88c16BdF0418774CB3D7599B4](https://optimistic.etherscan.io/address/0x8700dAec35aF8Ff88c16BdF0418774CB3D7599B4) | _ERC-20 compliant_ |
## Optimistic Goerli
Chain ID: 420
-| System | Address | ABI |
-| --- | --- | --- |
-| Synthetix Core | [0x76490713314fCEC173f44e99346F54c6e92a8E42](https://goerli-optimism.etherscan.io/address/0x76490713314fCEC173f44e99346F54c6e92a8E42) | [View/Download](./abis/420-SynthetixCore.json) |
-| snxAccount NFT | [0x1b791d05E437C78039424749243F5A79E747525e](https://goerli-optimism.etherscan.io/address/0x1b791d05E437C78039424749243F5A79E747525e) | [View/Download](./abis/420-snxAccountNFT.json) |
-| snxUSD Token | [0xe487Ad4291019b33e2230F8E2FB1fb6490325260](https://goerli-optimism.etherscan.io/address/0xe487Ad4291019b33e2230F8E2FB1fb6490325260) | [View/Download](./abis/420-snxUSDToken.json) |
-| Oracle Manager | [0x12aE0D5CD26f212bFE242DA78139d463019f7a73](https://goerli-optimism.etherscan.io/address/0x12aE0D5CD26f212bFE242DA78139d463019f7a73) | [View/Download](./abis/420-OracleManager.json) |
-| Spot Market | [0x5FF4b3aacdeC86782d8c757FAa638d8790799E83](https://goerli-optimism.etherscan.io/address/0x5FF4b3aacdeC86782d8c757FAa638d8790799E83) | [View/Download](./abis/420-SpotMarket.json) |
-| Perps Market | [0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b](https://goerli-optimism.etherscan.io/address/0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b) | [View/Download](./abis/420-PerpsMarket.json) |
-| Perps Market Account NFT | [0x01C2f64ABd46AF20950736f3C3e1a9cfc5c36c82](https://goerli-optimism.etherscan.io/address/0x01C2f64ABd46AF20950736f3C3e1a9cfc5c36c82) | [View/Download](./abis/420-PerpsAccountNFT.json) |
-| SNX Token | [0x2E5ED97596a8368EB9E44B1f3F25B2E813845303](https://goerli-optimism.etherscan.io/address/0x2E5ED97596a8368EB9E44B1f3F25B2E813845303) | _ERC-20 compliant_ |
+| System | Address | ABI |
+| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------- |
+| Synthetix Core | [0x76490713314fCEC173f44e99346F54c6e92a8E42](https://goerli-optimism.etherscan.io/address/0x76490713314fCEC173f44e99346F54c6e92a8E42) | [View/Download](./abis/420-main-SynthetixCore.json) |
+| snxAccount NFT | [0x1b791d05E437C78039424749243F5A79E747525e](https://goerli-optimism.etherscan.io/address/0x1b791d05E437C78039424749243F5A79E747525e) | [View/Download](./abis/420-main-snxAccountNFT.json) |
+| snxUSD Token | [0xe487Ad4291019b33e2230F8E2FB1fb6490325260](https://goerli-optimism.etherscan.io/address/0xe487Ad4291019b33e2230F8E2FB1fb6490325260) | [View/Download](./abis/420-main-snxUSDToken.json) |
+| Oracle Manager | [0x12aE0D5CD26f212bFE242DA78139d463019f7a73](https://goerli-optimism.etherscan.io/address/0x12aE0D5CD26f212bFE242DA78139d463019f7a73) | [View/Download](./abis/420-main-OracleManager.json) |
+| Spot Market | [0x5FF4b3aacdeC86782d8c757FAa638d8790799E83](https://goerli-optimism.etherscan.io/address/0x5FF4b3aacdeC86782d8c757FAa638d8790799E83) | [View/Download](./abis/420-main-SpotMarket.json) |
+| Perps Market | [0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b](https://goerli-optimism.etherscan.io/address/0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b) | [View/Download](./abis/420-main-PerpsMarket.json) |
+| Perps Market Account NFT | [0x01C2f64ABd46AF20950736f3C3e1a9cfc5c36c82](https://goerli-optimism.etherscan.io/address/0x01C2f64ABd46AF20950736f3C3e1a9cfc5c36c82) | [View/Download](./abis/420-main-PerpsAccountNFT.json) |
+| SNX Token | [0x2E5ED97596a8368EB9E44B1f3F25B2E813845303](https://goerli-optimism.etherscan.io/address/0x2E5ED97596a8368EB9E44B1f3F25B2E813845303) | _ERC-20 compliant_ |
+
+## Dev on Optimism Goerli
+
+Chain ID: 420
+
+| System | Address | ABI |
+| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------- |
+| Synthetix Core | [0x3f1faD3d8C531A5a3f7ae8d045c37e2075A241A0](https://goerli-optimism.etherscan.io/address/0x3f1faD3d8C531A5a3f7ae8d045c37e2075A241A0) | [View/Download](./abis/420-dev-SynthetixCore.json) |
+| snxAccount NFT | [0x1daA414B74A7581405e8B17bac5B29F31042B7C6](https://goerli-optimism.etherscan.io/address/0x1daA414B74A7581405e8B17bac5B29F31042B7C6) | [View/Download](./abis/420-dev-snxAccountNFT.json) |
+| snxUSD Token | [0xE0D30C1f189496388B0f5F1c32e75327135F26b8](https://goerli-optimism.etherscan.io/address/0xE0D30C1f189496388B0f5F1c32e75327135F26b8) | [View/Download](./abis/420-dev-snxUSDToken.json) |
+| Oracle Manager | [0x47b8f4EC2D0ef7ADfa97927A597d2C73B3A7e81d](https://goerli-optimism.etherscan.io/address/0x47b8f4EC2D0ef7ADfa97927A597d2C73B3A7e81d) | [View/Download](./abis/420-dev-OracleManager.json) |
+| Spot Market | [0x9bC0DD3436669Ab76C553214B1740CE5E6EbF18e](https://goerli-optimism.etherscan.io/address/0x9bC0DD3436669Ab76C553214B1740CE5E6EbF18e) | [View/Download](./abis/420-dev-SpotMarket.json) |
+| Perps Market | [0x8EdfbD5c6aB7167cf7dc7E62D9FeAA59720a2e7E](https://goerli-optimism.etherscan.io/address/0x8EdfbD5c6aB7167cf7dc7E62D9FeAA59720a2e7E) | [View/Download](./abis/420-dev-PerpsMarket.json) |
+| Perps Market Account NFT | [0x6fBe7F0f515C2126638aAF60a351a98b27f62925](https://goerli-optimism.etherscan.io/address/0x6fBe7F0f515C2126638aAF60a351a98b27f62925) | [View/Download](./abis/420-dev-PerpsAccountNFT.json) |
+| SNX Token | [0x2E5ED97596a8368EB9E44B1f3F25B2E813845303](https://goerli-optimism.etherscan.io/address/0x2E5ED97596a8368EB9E44B1f3F25B2E813845303) | _ERC-20 compliant_ |
## Polygon Mumbai
Chain ID: 80001
-| System | Address | ABI |
-| --- | --- | --- |
-| Synthetix Core | [0x76490713314fCEC173f44e99346F54c6e92a8E42](https://mumbai.polygonscan.com/address/0x76490713314fCEC173f44e99346F54c6e92a8E42) | [View/Download](./abis/80001-SynthetixCore.json) |
-| snxAccount NFT | [0xe487Ad4291019b33e2230F8E2FB1fb6490325260](https://mumbai.polygonscan.com/address/0xe487Ad4291019b33e2230F8E2FB1fb6490325260) | [View/Download](./abis/80001-snxAccountNFT.json) |
-| snxUSD Token | [0x1b791d05E437C78039424749243F5A79E747525e](https://mumbai.polygonscan.com/address/0x1b791d05E437C78039424749243F5A79E747525e) | [View/Download](./abis/80001-snxUSDToken.json) |
-| Oracle Manager | [0x12aE0D5CD26f212bFE242DA78139d463019f7a73](https://mumbai.polygonscan.com/address/0x12aE0D5CD26f212bFE242DA78139d463019f7a73) | [View/Download](./abis/80001-OracleManager.json) |
+| System | Address | ABI |
+| -------------- | ------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------- |
+| Synthetix Core | [0x76490713314fCEC173f44e99346F54c6e92a8E42](https://mumbai.polygonscan.com/address/0x76490713314fCEC173f44e99346F54c6e92a8E42) | [View/Download](./abis/80001-main-SynthetixCore.json) |
+| snxAccount NFT | [0xe487Ad4291019b33e2230F8E2FB1fb6490325260](https://mumbai.polygonscan.com/address/0xe487Ad4291019b33e2230F8E2FB1fb6490325260) | [View/Download](./abis/80001-main-snxAccountNFT.json) |
+| snxUSD Token | [0x1b791d05E437C78039424749243F5A79E747525e](https://mumbai.polygonscan.com/address/0x1b791d05E437C78039424749243F5A79E747525e) | [View/Download](./abis/80001-main-snxUSDToken.json) |
+| Oracle Manager | [0x12aE0D5CD26f212bFE242DA78139d463019f7a73](https://mumbai.polygonscan.com/address/0x12aE0D5CD26f212bFE242DA78139d463019f7a73) | [View/Download](./abis/80001-main-OracleManager.json) |
## Base Goerli
Chain ID: 84531
-| System | Address | ABI |
-| --- | --- | --- |
-| Synthetix Core | [0x76490713314fCEC173f44e99346F54c6e92a8E42](https://goerli.basescan.org/address/0x76490713314fCEC173f44e99346F54c6e92a8E42) | [View/Download](./abis/84531-SynthetixCore.json) |
-| snxAccount NFT | [0x1b791d05E437C78039424749243F5A79E747525e](https://goerli.basescan.org/address/0x1b791d05E437C78039424749243F5A79E747525e) | [View/Download](./abis/84531-snxAccountNFT.json) |
-| snxUSD Token | [0xe487Ad4291019b33e2230F8E2FB1fb6490325260](https://goerli.basescan.org/address/0xe487Ad4291019b33e2230F8E2FB1fb6490325260) | [View/Download](./abis/84531-snxUSDToken.json) |
-| Oracle Manager | [0x12aE0D5CD26f212bFE242DA78139d463019f7a73](https://goerli.basescan.org/address/0x12aE0D5CD26f212bFE242DA78139d463019f7a73) | [View/Download](./abis/84531-OracleManager.json) |
+| System | Address | ABI |
+| -------------- | ---------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------- |
+| Synthetix Core | [0x3a0B49f5B93a95453BdaCfc3653E15F982A0187A](https://goerli.basescan.org/address/0x3a0B49f5B93a95453BdaCfc3653E15F982A0187A) | [View/Download](./abis/84531-main-SynthetixCore.json) |
+| snxAccount NFT | [0x1146D135842015662c46f284FBDb253EDE225fCE](https://goerli.basescan.org/address/0x1146D135842015662c46f284FBDb253EDE225fCE) | [View/Download](./abis/84531-main-snxAccountNFT.json) |
+| snxUSD Token | [0x2b99243d983d515c611a09Ae673399553452ce18](https://goerli.basescan.org/address/0x2b99243d983d515c611a09Ae673399553452ce18) | [View/Download](./abis/84531-main-snxUSDToken.json) |
+| Oracle Manager | [0xDca879a959f7B2AB73A6AC59bF84F647Eb6f203e](https://goerli.basescan.org/address/0xDca879a959f7B2AB73A6AC59bF84F647Eb6f203e) | [View/Download](./abis/84531-main-OracleManager.json) |
+| Spot Market | [0x897CAf492D824a88d374f742E898f56FbD33d631](https://goerli.basescan.org/address/0x897CAf492D824a88d374f742E898f56FbD33d631) | [View/Download](./abis/84531-main-SpotMarket.json) |
+
+## Competition on Base Goerli
+
+Chain ID: 84531
+
+| System | Address | ABI |
+| ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------- |
+| Synthetix Core | [0xa53346A1684DAB73EFfd048fA40Fb1fA9327fDe9](https://goerli.basescan.org/address/0xa53346A1684DAB73EFfd048fA40Fb1fA9327fDe9) | [View/Download](./abis/84531-competition-SynthetixCore.json) |
+| snxAccount NFT | [0xdD066734028Cb1f07AC8CEdd054BA64Ea05b8461](https://goerli.basescan.org/address/0xdD066734028Cb1f07AC8CEdd054BA64Ea05b8461) | [View/Download](./abis/84531-competition-snxAccountNFT.json) |
+| snxUSD Token | [0x579c612E4Bf390f5504DB9f76b6F5759A3172279](https://goerli.basescan.org/address/0x579c612E4Bf390f5504DB9f76b6F5759A3172279) | [View/Download](./abis/84531-competition-snxUSDToken.json) |
+| Oracle Manager | [0xbAbfb6e9f914C1EfBBFFAdeE6cd86B23927434C8](https://goerli.basescan.org/address/0xbAbfb6e9f914C1EfBBFFAdeE6cd86B23927434C8) | [View/Download](./abis/84531-competition-OracleManager.json) |
+| Spot Market | [0x17633A63083dbd4941891F87Bdf31B896e91e2B9](https://goerli.basescan.org/address/0x17633A63083dbd4941891F87Bdf31B896e91e2B9) | [View/Download](./abis/84531-competition-SpotMarket.json) |
+| Perps Market | [0x9863Dae3f4b5F4Ffe3A841a21565d57F2BA10E87](https://goerli.basescan.org/address/0x9863Dae3f4b5F4Ffe3A841a21565d57F2BA10E87) | [View/Download](./abis/84531-competition-PerpsMarket.json) |
+| Perps Market Account NFT | [0x518F2905b24AE298Ca06C1137b806DD5ACD493b6](https://goerli.basescan.org/address/0x518F2905b24AE298Ca06C1137b806DD5ACD493b6) | [View/Download](./abis/84531-competition-PerpsAccountNFT.json) |
+| Fake Collateral Fake SNX $fSNX | [0xB2b425098CfEe7dc29d7c437f8578EC02c44A5Ed](https://goerli.basescan.org/address/0xB2b425098CfEe7dc29d7c437f8578EC02c44A5Ed) | [View/Download](./abis/84531-competition-FakeCollateralfSNX.json) |
+
+## Andromeda on Base Goerli
+
+Chain ID: 84531
+
+| System | Address | ABI |
+| -------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------- |
+| Synthetix Core | [0xd7cFdcf6499896a1E15Db92629AAC8085af8B2ac](https://goerli.basescan.org/address/0xd7cFdcf6499896a1E15Db92629AAC8085af8B2ac) | [View/Download](./abis/84531-andromeda-SynthetixCore.json) |
+| snxAccount NFT | [0x09190c9Be3e79dF2Cb5DAEA6320f9A1129aD8e8c](https://goerli.basescan.org/address/0x09190c9Be3e79dF2Cb5DAEA6320f9A1129aD8e8c) | [View/Download](./abis/84531-andromeda-snxAccountNFT.json) |
+| snxUSD Token | [0xC9ee9628f23b14483EA413C28712690E8D2dC6a3](https://goerli.basescan.org/address/0xC9ee9628f23b14483EA413C28712690E8D2dC6a3) | [View/Download](./abis/84531-andromeda-snxUSDToken.json) |
+| Oracle Manager | [0xEC618B8994B76d89EfCD7051BA2D57Dcb6442E95](https://goerli.basescan.org/address/0xEC618B8994B76d89EfCD7051BA2D57Dcb6442E95) | [View/Download](./abis/84531-andromeda-OracleManager.json) |
+| Spot Market | [0x41A883a85b1AdE59F41d459Fa550b40fa56429DB](https://goerli.basescan.org/address/0x41A883a85b1AdE59F41d459Fa550b40fa56429DB) | [View/Download](./abis/84531-andromeda-SpotMarket.json) |
+| Perps Market | [0xEED61f0CB02f3B38923b1b6EAa939D5f04f431b6](https://goerli.basescan.org/address/0xEED61f0CB02f3B38923b1b6EAa939D5f04f431b6) | [View/Download](./abis/84531-andromeda-PerpsMarket.json) |
+| Perps Market Account NFT | [0xfBD08C515DedDa6DbE59611b4bAC2E0f4a250301](https://goerli.basescan.org/address/0xfBD08C515DedDa6DbE59611b4bAC2E0f4a250301) | [View/Download](./abis/84531-andromeda-PerpsAccountNFT.json) |
+| Fake Collateral Token $TKN | [0x7056F16f58638253B8A1E5023d67a8CF98000681](https://goerli.basescan.org/address/0x7056F16f58638253B8A1E5023d67a8CF98000681) | [View/Download](./abis/84531-andromeda-FakeCollateralTKN.json) |
diff --git a/Synthetix-Gitbook-v3/for-developers/developer-faq.md b/Synthetix-Gitbook-v3/for-developers/developer-faq.md
index d3b6a4d..64f650a 100644
--- a/Synthetix-Gitbook-v3/for-developers/developer-faq.md
+++ b/Synthetix-Gitbook-v3/for-developers/developer-faq.md
@@ -4,15 +4,23 @@ description: A guide to help developers start interacting with Synthetix V3
# Developer FAQ
-### General V3
+### General
Where can I get assets on OP Goerli?
* `ETH`: Optimism Goerli ETH is available from various faucets. We recommend the official [Optimism faucet](https://app.optimism.io/faucet) but there are also [other faucets](https://community.optimism.io/docs/useful-tools/faucets/) available.
* `snxETH`: You can wrap OP Goerli ETH into snxETH on "Spot" tab of [the market prototype](https://synthetix-markets-prototype.vercel.app/). This is the easiest way to get assets for testing if you have testnet ETH.
-* `snxUSD`: snxETH acquired through wrapping can be sold for snxUSD on the spot market prototype. More info on spot swaps below
+* `snxUSD`: snxETH acquired through wrapping can be sold for snxUSD on the spot market prototype.
-### **Spot Markets V3**
+## Smart Contracts
+
+* All v3 contracts are under proxy, to find which you have to check the cannon file.
+* Cannon is the tooling used to define v3, see [https://usecannon.com/packages/synthetix](https://usecannon.com/packages/synthetix)
+* Owner is the address indicated by the `owner` function, depends on network.
+* Function to use for enabling feature flag to all is `setFeatureFlagAllowAll` I believe
+* Decide any error from v3 with `cannon decode synthetix-omnibus --chain-id 1 {paste 0x error code here}`
+
+### **Spot Markets**
How can I swap assets?
diff --git a/Synthetix-Gitbook-v3/for-developers/market-development-guide.md b/Synthetix-Gitbook-v3/for-developers/market-development-guide.md
index 7f925f1..f8f5a43 100644
--- a/Synthetix-Gitbook-v3/for-developers/market-development-guide.md
+++ b/Synthetix-Gitbook-v3/for-developers/market-development-guide.md
@@ -1,8 +1,8 @@
# Market Development Guide
-Earlier this year, Synthetix deployed V3, its next generation derivatives platform, to mainnet. A culmination of years of research and experience in creating on-chain derivatives products, the latest version of the protocol consists of a suite of systems and modules. This design allows developers to build custom market implementations for a wide range of financial instruments, such as spot tokens, perpetual futures, options, insurance, and any else, while utilizing the highest degree of decentralized technology currently available.
+Synthetix has deployed V3, its next generation derivatives platform to mainnet. A culmination of years of research and experience in creating on-chain derivatives products, the latest version of the protocol consists of a suite of systems and modules. This design allows developers to build custom market implementations for a wide range of financial instruments, such as spot tokens, perpetual futures, options, insurance, and any else, while utilizing the highest degree of decentralized technology currently available.
-This is a guide to building a simple number guessing game, implemented as a market on Synthetix V3. The code resulting from this guide can be found [on GitHub](https://github.com/Synthetixio/number-guessing-game).
+This is a guide to building a simple number guessing game, implemented as a Market on Synthetix V3. The code resulting from this guide can be found [on GitHub](https://github.com/Synthetixio/number-guessing-game).
Before starting, you will need:
diff --git a/Synthetix-Gitbook-v3/for-developers/quick-start.md b/Synthetix-Gitbook-v3/for-developers/quick-start.md
index 797790d..2430615 100644
--- a/Synthetix-Gitbook-v3/for-developers/quick-start.md
+++ b/Synthetix-Gitbook-v3/for-developers/quick-start.md
@@ -12,7 +12,9 @@ To export the ABIs and contract addresses for this deployment, run the following
npx @usecannon/cli inspect synthetix-sandbox --write-deployments ./deployments
```
-_Remember to always interact with the proxy contracts instead of the router or modules directly._
+{% hint style="info" %}
+Remember to always interact with the proxy contracts instead of the router or modules directly.
+{% endhint %}
Check out the [**Synthetix Sandbox repository**](https://github.com/synthetixio/synthetix-sandbox) to see the specifics of how this node is configured. You can fork the repository, make modifications to the Cannonfile to create different scenarios, and use `SampleIntegration.sol` as a boilerplate for developing smart contract integrations.
diff --git a/Synthetix-Gitbook-v3/for-developers/smart-contracts.md b/Synthetix-Gitbook-v3/for-developers/smart-contracts.md
index 9a07569..5de4339 100644
--- a/Synthetix-Gitbook-v3/for-developers/smart-contracts.md
+++ b/Synthetix-Gitbook-v3/for-developers/smart-contracts.md
@@ -23,7 +23,7 @@
function createAccount(uint128 requestedAccountId) external
```
- Mints an account token with id `requestedAccountId` to `msg.sender`.
+ Mints an account token with id `requestedAccountId` to `ERC2771Context._msgSender()`.
**Parameters**
* `requestedAccountId` (*uint128*) - The id requested for the account being created. Reverts if id already exists. Requirements: - `requestedAccountId` must not already be minted. - `requestedAccountId` must be less than type(uint128).max / 2 Emits a {AccountCreated} event.
@@ -34,7 +34,7 @@
function createAccount() external returns (uint128 accountId)
```
- Mints an account token with an available id to `msg.sender`.
+ Mints an account token with an available id to `ERC2771Context._msgSender()`.
Emits a {AccountCreated} event.
@@ -50,7 +50,7 @@ Emits a {AccountCreated} event.
**Parameters**
* `to` (*address*) - The new holder of the account NFT.
-* `accountId` (*uint128*) - The id of the account that was just transferred. Requirements: - `msg.sender` must be the account token.
+* `accountId` (*uint128*) - The id of the account that was just transferred. Requirements: - `ERC2771Context._msgSender()` must be the account token.
#### grantPermission
@@ -63,7 +63,7 @@ Emits a {AccountCreated} event.
**Parameters**
* `accountId` (*uint128*) - The id of the account that granted the permission.
* `permission` (*bytes32*) - The bytes32 identifier of the permission.
-* `user` (*address*) - The target address that received the permission. Requirements: - `msg.sender` must own the account token with ID `accountId` or have the "admin" permission. Emits a {PermissionGranted} event.
+* `user` (*address*) - The target address that received the permission. Requirements: - `ERC2771Context._msgSender()` must own the account token with ID `accountId` or have the "admin" permission. Emits a {PermissionGranted} event.
#### revokePermission
@@ -76,7 +76,7 @@ Emits a {AccountCreated} event.
**Parameters**
* `accountId` (*uint128*) - The id of the account that revoked the permission.
* `permission` (*bytes32*) - The bytes32 identifier of the permission.
-* `user` (*address*) - The target address that no longer has the permission. Requirements: - `msg.sender` must own the account token with ID `accountId` or have the "admin" permission. Emits a {PermissionRevoked} event.
+* `user` (*address*) - The target address that no longer has the permission. Requirements: - `ERC2771Context._msgSender()` must own the account token with ID `accountId` or have the "admin" permission. Emits a {PermissionRevoked} event.
#### renouncePermission
@@ -84,7 +84,7 @@ Emits a {AccountCreated} event.
function renouncePermission(uint128 accountId, bytes32 permission) external
```
- Revokes `permission` from `msg.sender` for account `accountId`.
+ Revokes `permission` from `ERC2771Context._msgSender()` for account `accountId`.
**Parameters**
* `accountId` (*uint128*) - The id of the account whose permission was renounced.
@@ -202,7 +202,7 @@ Emits a {AccountCreated} event.
#### isInitialized
```solidity
- function isInitialized() external returns (bool)
+ function isInitialized() external view returns (bool)
```
Returns whether the token has been initialized.
@@ -523,7 +523,7 @@ other accounts would be left with no change to their debt, however.
Creates or updates the configuration for the given `collateralType`.
**Parameters**
-* `config` (*struct CollateralConfiguration.Data*) - The CollateralConfiguration object describing the new configuration. Requirements: - `msg.sender` must be the owner of the system. Emits a {CollateralConfigured} event.
+* `config` (*struct CollateralConfiguration.Data*) - The CollateralConfiguration object describing the new configuration. Requirements: - `ERC2771Context._msgSender()` must be the owner of the system. Emits a {CollateralConfigured} event.
#### getCollateralConfigurations
@@ -607,7 +607,7 @@ other accounts would be left with no change to their debt, however.
**Parameters**
* `accountId` (*uint128*) - The id of the account that is making the withdrawal.
* `collateralType` (*address*) - The address of the token to be withdrawn.
-* `tokenAmount` (*uint256*) - The amount being withdrawn, denominated in the token's native decimal representation. Requirements: - `msg.sender` must be the owner of the account, have the `ADMIN` permission, or have the `WITHDRAW` permission. Emits a {Withdrawn} event.
+* `tokenAmount` (*uint256*) - The amount being withdrawn, denominated in the token's native decimal representation. Requirements: - `ERC2771Context._msgSender()` must be the owner of the account, have the `ADMIN` permission, or have the `WITHDRAW` permission. Emits a {Withdrawn} event.
#### getAccountCollateral
@@ -779,7 +779,7 @@ Collateral locks are initially intended for the Synthetix v2 to v3 migration, bu
* `accountId` (*uint128*) - The id of the account that is minting snxUSD.
* `poolId` (*uint128*) - The id of the pool whose collateral will be used to back up the mint.
* `collateralType` (*address*) - The address of the collateral that will be used to back up the mint.
-* `amount` (*uint256*) - The amount of snxUSD to be minted, denominated with 18 decimals of precision. Requirements: - `msg.sender` must be the owner of the account, have the `ADMIN` permission, or have the `MINT` permission. - After minting, the collateralization ratio of the liquidity position must not be below the target collateralization ratio for the corresponding collateral type. Emits a {UsdMinted} event.
+* `amount` (*uint256*) - The amount of snxUSD to be minted, denominated with 18 decimals of precision. Requirements: - `ERC2771Context._msgSender()` must be the owner of the account, have the `ADMIN` permission, or have the `MINT` permission. - After minting, the collateralization ratio of the liquidity position must not be below the target collateralization ratio for the corresponding collateral type. Emits a {UsdMinted} event.
#### burnUsd
@@ -974,7 +974,7 @@ Will only liquidate a portion of the debt for the vault if `maxUsd` is supplied.
#### getMaximumMarketCollateral
```solidity
- function getMaximumMarketCollateral(uint128 marketId, address collateralType) external returns (uint256 amountD18)
+ function getMaximumMarketCollateral(uint128 marketId, address collateralType) external view returns (uint256 amountD18)
```
Return the total maximum amount of a given collateral type that a specified market is allowed to deposit.
@@ -1002,7 +1002,7 @@ Will only liquidate a portion of the debt for the vault if `maxUsd` is supplied.
#### getMarketCollateralValue
```solidity
- function getMarketCollateralValue(uint128 marketId) external returns (uint256 valueD18)
+ function getMarketCollateralValue(uint128 marketId) external view returns (uint256 valueD18)
```
Return the total value of collateral that a specified market has deposited.
@@ -1016,7 +1016,7 @@ Will only liquidate a portion of the debt for the vault if `maxUsd` is supplied.
#### MarketCollateralDeposited
```solidity
- event MarketCollateralDeposited(uint128 marketId, address collateralType, uint256 tokenAmount, address sender)
+ event MarketCollateralDeposited(uint128 marketId, address collateralType, uint256 tokenAmount, address sender, int128 creditCapacity, int128 netIssuance, uint256 depositedCollateralValue, uint256 reportedDebt)
```
Emitted when `amount` of collateral of type `collateralType` is deposited to market `marketId` by `sender`.
@@ -1026,11 +1026,15 @@ Will only liquidate a portion of the debt for the vault if `maxUsd` is supplied.
* `collateralType` (*address*) - The address of the collateral that was directly deposited in the market.
* `tokenAmount` (*uint256*) - The amount of tokens that were deposited, denominated in the token's native decimal representation.
* `sender` (*address*) - The address that triggered the deposit.
+* `creditCapacity` (*int128*) - Updated credit capacity of the market after depositing collateral.
+* `netIssuance` (*int128*) - Updated net issuance.
+* `depositedCollateralValue` (*uint256*) - Updated deposited collateral value of the market.
+* `reportedDebt` (*uint256*) - Updated reported debt of the market after depositing collateral.
#### MarketCollateralWithdrawn
```solidity
- event MarketCollateralWithdrawn(uint128 marketId, address collateralType, uint256 tokenAmount, address sender)
+ event MarketCollateralWithdrawn(uint128 marketId, address collateralType, uint256 tokenAmount, address sender, int128 creditCapacity, int128 netIssuance, uint256 depositedCollateralValue, uint256 reportedDebt)
```
Emitted when `amount` of collateral of type `collateralType` is withdrawn from market `marketId` by `sender`.
@@ -1040,6 +1044,10 @@ Will only liquidate a portion of the debt for the vault if `maxUsd` is supplied.
* `collateralType` (*address*) - The address of the collateral that was withdrawn from the market.
* `tokenAmount` (*uint256*) - The amount of tokens that were withdrawn, denominated in the token's native decimal representation.
* `sender` (*address*) - The address that triggered the withdrawal.
+* `creditCapacity` (*int128*) - Updated credit capacity of the market after withdrawing.
+* `netIssuance` (*int128*) - Updated net issuance.
+* `depositedCollateralValue` (*uint256*) - Updated deposited collateral value of the market.
+* `reportedDebt` (*uint256*) - Updated reported debt of the market after withdrawing collateral.
#### MaximumMarketCollateralConfigured
@@ -1339,7 +1347,7 @@ by limiting the frequency of `delegateCollateral` (or `setPoolConfiguration`) ca
#### MarketUsdDeposited
```solidity
- event MarketUsdDeposited(uint128 marketId, address target, uint256 amount, address market)
+ event MarketUsdDeposited(uint128 marketId, address target, uint256 amount, address market, int128 creditCapacity, int128 netIssuance, uint256 depositedCollateralValue, uint256 reportedDebt)
```
Emitted when a market deposits snxUSD in the system.
@@ -1349,11 +1357,15 @@ by limiting the frequency of `delegateCollateral` (or `setPoolConfiguration`) ca
* `target` (*address*) - The address of the account that provided the snxUSD in the deposit.
* `amount` (*uint256*) - The amount of snxUSD deposited in the system, denominated with 18 decimals of precision.
* `market` (*address*) - The address of the external market that is depositing.
+* `creditCapacity` (*int128*) - Updated credit capacity of the market after depositing.
+* `netIssuance` (*int128*) - Updated net issuance.
+* `depositedCollateralValue` (*uint256*) - Updated deposited collateral value of the market.
+* `reportedDebt` (*uint256*) - Updated reported debt of the market after depositing.
#### MarketUsdWithdrawn
```solidity
- event MarketUsdWithdrawn(uint128 marketId, address target, uint256 amount, address market)
+ event MarketUsdWithdrawn(uint128 marketId, address target, uint256 amount, address market, int128 creditCapacity, int128 netIssuance, uint256 depositedCollateralValue, uint256 reportedDebt)
```
Emitted when a market withdraws snxUSD from the system.
@@ -1363,6 +1375,10 @@ by limiting the frequency of `delegateCollateral` (or `setPoolConfiguration`) ca
* `target` (*address*) - The address of the account that received the snxUSD in the withdrawal.
* `amount` (*uint256*) - The amount of snxUSD withdrawn from the system, denominated with 18 decimals of precision.
* `market` (*address*) - The address of the external market that is withdrawing.
+* `creditCapacity` (*int128*) - Updated credit capacity of the market after withdrawing.
+* `netIssuance` (*int128*) - Updated net issuance.
+* `depositedCollateralValue` (*uint256*) - Updated deposited collateral value of the market.
+* `reportedDebt` (*uint256*) - Updated reported debt of the market after withdrawal.
#### MarketSystemFeePaid
@@ -1394,60 +1410,6 @@ by limiting the frequency of `delegateCollateral` (or `setPoolConfiguration`) ca
* `marketId` (*uint128*) - The id of the market that the setting is applied to
* `minLiquidityRatio` (*uint256*) - The new market-specific minimum liquidity ratio
-### Multicall Module
-
-#### multicall
-
- ```solidity
- function multicall(bytes[] data) external returns (bytes[] results)
- ```
-
- Executes multiple transaction payloads in a single transaction.
-
- Each transaction is executed using `delegatecall`, and targets the system address.
-
-**Parameters**
-* `data` (*bytes[]*) - Array of calldata objects, one for each function that is to be called in the system.
-
-**Returns**
-* `results` (*bytes[]*) - Array of each `delegatecall`'s response corresponding to the incoming calldata array.
-#### multicallThrough
-
- ```solidity
- function multicallThrough(address[] to, bytes[] data, uint256[] values) external payable returns (bytes[] results)
- ```
-
- Similar to `multicall`, but allows for transactions to be executed
-
- If the address specified in `to` iteration is not the core system, it will call the contract with a regular "call". If it is the core system, it will be delegatecall.
-Target `to` contracts will need to support calling the below `getMessageSender` rather than regular `msg.sender` in order to allow for usage of permissioned calls with this function
-It is not possible to call this function recursively.
-Fails immediately on revert of any call.
-
-**Returns**
-* `results` (*bytes[]*) - Array of each call's response corresponding
-#### setAllowlistedMulticallTarget
-
- ```solidity
- function setAllowlistedMulticallTarget(address target, bool allowlisted) external
- ```
-
- Permit the given target to be called through `multicallThrough`.
-
- This function can only be called by the system owner.
-
-**Parameters**
-* `target` (*address*) - The address of the contract to alter permissions
-* `allowlisted` (*bool*) - Whether or not the target is allowlisted
-
-#### getMessageSender
-
- ```solidity
- function getMessageSender() external view returns (address)
- ```
-
- When receiving a call from this contract through `multicallThrough`, the receiver can use this function to get the original caller.
-
### Pool Configuration Module
#### setPreferredPool
@@ -1583,6 +1545,20 @@ Incoming market ids need to be provided in ascending order.
* `collateralType` (*address*) - The collate
* `newConfig` (*struct PoolCollateralConfiguration.Data*) - The config to set
+#### getPoolCollateralConfiguration
+
+ ```solidity
+ function getPoolCollateralConfiguration(uint128 poolId, address collateralType) external view returns (struct PoolCollateralConfiguration.Data config)
+ ```
+
+ Retrieves the pool configuration of a specific collateral type.
+
+**Parameters**
+* `poolId` (*uint128*) - The id of the pool whose configuration is being returned.
+* `collateralType` (*address*) - The address of the collateral.
+
+**Returns**
+* `config` (*struct PoolCollateralConfiguration.Data*) - The PoolCollateralConfiguration object that describes the requested collateral configuration of the pool.
#### setPoolCollateralDisabledByDefault
```solidity
@@ -1678,6 +1654,17 @@ Incoming market ids need to be provided in ascending order.
**Parameters**
* `poolId` (*uint128*) - The id of the pool for which the caller is renouncing ownership nomination.
+#### renouncePoolOwnership
+
+ ```solidity
+ function renouncePoolOwnership(uint128 poolId) external
+ ```
+
+ Allows the current owner to renounce his ownership.
+
+**Parameters**
+* `poolId` (*uint128*) - The id of the pool for which the caller is renouncing ownership nomination.
+
#### getPoolOwner
```solidity
@@ -1718,7 +1705,7 @@ Incoming market ids need to be provided in ascending order.
#### getPoolCollateralIssuanceRatio
```solidity
- function getPoolCollateralIssuanceRatio(uint128 poolId, address collateral) external returns (uint256 issuanceRatioD18)
+ function getPoolCollateralIssuanceRatio(uint128 poolId, address collateral) external view returns (uint256 issuanceRatioD18)
```
returns a pool minimum issuance ratio
@@ -1811,6 +1798,18 @@ Incoming market ids need to be provided in ascending order.
* `poolId` (*uint128*) - The id of the pool for which the owner nomination was renounced.
* `owner` (*address*) - The current owner of the pool.
+#### PoolOwnershipRenounced
+
+ ```solidity
+ event PoolOwnershipRenounced(uint128 poolId, address owner)
+ ```
+
+ Gets fired when pool owner renounces his own ownership.
+
+**Parameters**
+* `poolId` (*uint128*) - The id of the pool for which the owner nomination was renounced.
+* `owner` (*address*) -
+
#### PoolNameUpdated
```solidity
@@ -1966,6 +1965,22 @@ rewards-over-time will be halted)
**Returns**
* `rateD18` (*uint256*) - The queried rewards rate.
+#### getAvailableRewards
+
+ ```solidity
+ function getAvailableRewards(uint128 accountId, uint128 poolId, address collateralType, address distributor) external view returns (uint256 rewardAmount)
+ ```
+
+ Returns the amount of claimable rewards for a given accountId for a vault distributor.
+
+**Parameters**
+* `accountId` (*uint128*) - The id of the account to look up rewards on.
+* `poolId` (*uint128*) - The id of the pool to claim rewards on.
+* `collateralType` (*address*) - The address of the collateral used in the pool's rewards.
+* `distributor` (*address*) - The address of the rewards distributor associated with the rewards being claimed.
+
+**Returns**
+* `rewardAmount` (*uint256*) - The amount of available rewards that are available for the provided account.
#### RewardsDistributed
@@ -2053,7 +2068,7 @@ rewards-over-time will be halted)
#### isInitialized
```solidity
- function isInitialized() external returns (bool)
+ function isInitialized() external view returns (bool)
```
Returns wether the token has been initialized.
@@ -2293,7 +2308,7 @@ Requirements:
* `poolId` (*uint128*) - The id of the pool associated with the position.
* `collateralType` (*address*) - The address of the collateral used in the position.
* `amount` (*uint256*) - The new amount of collateral delegated in the position, denominated with 18 decimals of precision.
-* `leverage` (*uint256*) - The new leverage amount used in the position, denominated with 18 decimals of precision. Requirements: - `msg.sender` must be the owner of the account, have the `ADMIN` permission, or have the `DELEGATE` permission. - If increasing the amount delegated, it must not exceed the available collateral (`getAccountAvailableCollateral`) associated with the account. - If decreasing the amount delegated, the liquidity position must have a collateralization ratio greater than the target collateralization ratio for the corresponding collateral type. Emits a {DelegationUpdated} event.
+* `leverage` (*uint256*) - The new leverage amount used in the position, denominated with 18 decimals of precision. Requirements: - `ERC2771Context._msgSender()` must be the owner of the account, have the `ADMIN` permission, or have the `DELEGATE` permission. - If increasing the amount delegated, it must not exceed the available collateral (`getAccountAvailableCollateral`) associated with the account. - If decreasing the amount delegated, the liquidity position must have a collateralization ratio greater than the target collateralization ratio for the corresponding collateral type. Emits a {DelegationUpdated} event.
#### getPositionCollateralRatio
@@ -2334,14 +2349,13 @@ Call this function using `callStatic` to treat it as a view function.
#### getPositionCollateral
```solidity
- function getPositionCollateral(uint128 accountId, uint128 poolId, address collateralType) external view returns (uint256 collateralAmountD18, uint256 collateralValueD18)
+ function getPositionCollateral(uint128 accountId, uint128 poolId, address collateralType) external view returns (uint256 collateralAmountD18)
```
- Returns the amount and value of the collateral associated with the specified liquidity position.
+ Returns the amount of the collateral associated with the specified liquidity position.
Call this function using `callStatic` to treat it as a view function.
collateralAmount is represented as an integer with 18 decimals.
-collateralValue is represented as an integer with the number of decimals specified by the collateralType.
**Parameters**
* `accountId` (*uint128*) - The id of the account being queried.
@@ -2350,7 +2364,6 @@ collateralValue is represented as an integer with the number of decimals specifi
**Returns**
* `collateralAmountD18` (*uint256*) - The amount of collateral used in the position, denominated with 18 decimals of precision.
-* `collateralValueD18` (*uint256*) - The value of collateral used in the position, denominated with 18 decimals of precision.
#### getPosition
```solidity
@@ -2389,7 +2402,7 @@ Call this function using `callStatic` to treat it as a view function.
#### getVaultCollateral
```solidity
- function getVaultCollateral(uint128 poolId, address collateralType) external returns (uint256 collateralAmountD18, uint256 collateralValueD18)
+ function getVaultCollateral(uint128 poolId, address collateralType) external view returns (uint256 collateralAmountD18, uint256 collateralValueD18)
```
Returns the amount and value of the collateral held by the vault.
@@ -2472,6 +2485,21 @@ The return value is a percentage with 18 decimals places.
* `strategyId` (*uint256*) - id of the strategy.
* `enabled` (*bool*) - set enabled/disabled.
+#### setSettlementStrategy
+
+ ```solidity
+ function setSettlementStrategy(uint128 synthMarketId, uint256 strategyId, struct SettlementStrategy.Data strategy) external
+ ```
+
+ updates the strategy with the new strategy passed in.
+
+ THIS WILL OVERRIDE ANY SETTINGS FOR EXISTING ORDERS
+
+**Parameters**
+* `synthMarketId` (*uint128*) - Id of the market associated with the strategy.
+* `strategyId` (*uint256*) - id of the strategy.
+* `strategy` (*struct SettlementStrategy.Data*) - new strategy config
+
#### getSettlementStrategy
```solidity
@@ -2499,10 +2527,10 @@ The return value is a percentage with 18 decimals places.
* `synthMarketId` (*uint128*) - adds settlement strategy to this specific market.
* `strategyId` (*uint256*) - the newly created settlement strategy id.
-#### SettlementStrategyUpdated
+#### SettlementStrategySet
```solidity
- event SettlementStrategyUpdated(uint128 synthMarketId, uint256 strategyId, bool enabled)
+ event SettlementStrategySet(uint128 synthMarketId, uint256 strategyId, struct SettlementStrategy.Data strategy)
```
Gets fired when settlement strategy is enabled/disabled.
@@ -2512,7 +2540,7 @@ The return value is a percentage with 18 decimals places.
**Parameters**
* `synthMarketId` (*uint128*) - adds settlement strategy to this specific market.
* `strategyId` (*uint256*) - id of the strategy.
-* `enabled` (*bool*) - true/false.
+* `strategy` (*struct SettlementStrategy.Data*) - updated strategy
### Async Order Module
@@ -2617,27 +2645,6 @@ if the strategy is offchain, this function will revert with OffchainLookup error
**Returns**
* `finalOrderAmount` (*uint256*) - amount returned to trader after fees.
* `[1]` (*struct OrderFees.Data*) - OrderFees.Data breakdown of all the fees incurred for the transaction.
-#### settlePythOrder
-
- ```solidity
- function settlePythOrder(bytes result, bytes extraData) external payable returns (uint256 finalOrderAmount, struct OrderFees.Data fees)
- ```
-
- Callback function for Pyth settlement strategy
-
- This is the selector specified as callback when settlement strategy is pyth offchain.
-The data returned from the offchain lookup should be sent as "result"
-The extraData is the same as the one sent during the offchain lookup revert error. It is used to retrieve the commitment claim.
-this function expects ETH that is passed through to the Pyth contract for the fee it's charging.
-To determine the fee, the client should first call getUpdateFee() from Pyth's verifier contract.
-
-**Parameters**
-* `result` (*bytes*) - result returned from the offchain lookup.
-* `extraData` (*bytes*) - extra data sent during the offchain lookup revert error.
-
-**Returns**
-* `finalOrderAmount` (*uint256*) - amount returned to trader after fees.
-* `fees` (*struct OrderFees.Data*) - breakdown of all the fees incurred for the transaction.
#### OrderSettled
@@ -2719,7 +2726,7 @@ Uses the buyFeedId configured for the market.
#### quoteBuyExactIn
```solidity
- function quoteBuyExactIn(uint128 synthMarketId, uint256 usdAmount) external view returns (uint256 synthAmount, struct OrderFees.Data fees)
+ function quoteBuyExactIn(uint128 synthMarketId, uint256 usdAmount, enum Price.Tolerance stalenessTolerance) external view returns (uint256 synthAmount, struct OrderFees.Data fees)
```
quote for buyExactIn. same parameters and return values as buyExactIn
@@ -2727,6 +2734,7 @@ Uses the buyFeedId configured for the market.
**Parameters**
* `synthMarketId` (*uint128*) - market id value
* `usdAmount` (*uint256*) - amount of USD to use for the trade
+* `stalenessTolerance` (*enum Price.Tolerance*) - this enum determines what staleness tolerance to use
**Returns**
* `synthAmount` (*uint256*) - return amount of synth given the USD amount - fees
@@ -2734,7 +2742,7 @@ Uses the buyFeedId configured for the market.
#### quoteBuyExactOut
```solidity
- function quoteBuyExactOut(uint128 synthMarketId, uint256 synthAmount) external view returns (uint256 usdAmountCharged, struct OrderFees.Data)
+ function quoteBuyExactOut(uint128 synthMarketId, uint256 synthAmount, enum Price.Tolerance stalenessTolerance) external view returns (uint256 usdAmountCharged, struct OrderFees.Data)
```
quote for buyExactOut. same parameters and return values as buyExactOut
@@ -2742,6 +2750,7 @@ Uses the buyFeedId configured for the market.
**Parameters**
* `synthMarketId` (*uint128*) - market id value
* `synthAmount` (*uint256*) - amount of synth requested
+* `stalenessTolerance` (*enum Price.Tolerance*) - this enum determines what staleness tolerance to use
**Returns**
* `usdAmountCharged` (*uint256*) - USD amount charged for the synth requested - fees
@@ -2805,7 +2814,7 @@ Leftover fees not collected get deposited into the market manager to improve mar
#### quoteSellExactIn
```solidity
- function quoteSellExactIn(uint128 marketId, uint256 synthAmount) external view returns (uint256 returnAmount, struct OrderFees.Data fees)
+ function quoteSellExactIn(uint128 marketId, uint256 synthAmount, enum Price.Tolerance stalenessTolerance) external view returns (uint256 returnAmount, struct OrderFees.Data fees)
```
quote for sellExactIn
@@ -2815,6 +2824,7 @@ Leftover fees not collected get deposited into the market manager to improve mar
**Parameters**
* `marketId` (*uint128*) - synth market id
* `synthAmount` (*uint256*) - synth amount trader is providing for the trade
+* `stalenessTolerance` (*enum Price.Tolerance*) - this enum determines what staleness tolerance to use
**Returns**
* `returnAmount` (*uint256*) - amount of USD expected back
@@ -2822,7 +2832,7 @@ Leftover fees not collected get deposited into the market manager to improve mar
#### quoteSellExactOut
```solidity
- function quoteSellExactOut(uint128 marketId, uint256 usdAmount) external view returns (uint256 synthToBurn, struct OrderFees.Data fees)
+ function quoteSellExactOut(uint128 marketId, uint256 usdAmount, enum Price.Tolerance stalenessTolerance) external view returns (uint256 synthToBurn, struct OrderFees.Data fees)
```
quote for sellExactOut
@@ -2832,6 +2842,7 @@ Leftover fees not collected get deposited into the market manager to improve mar
**Parameters**
* `marketId` (*uint128*) - synth market id
* `usdAmount` (*uint256*) - USD amount trader wants to receive
+* `stalenessTolerance` (*enum Price.Tolerance*) - this enum determines what staleness tolerance to use
**Returns**
* `synthToBurn` (*uint256*) - amount of synth expected from trader
@@ -2932,7 +2943,7 @@ Leftover fees not collected get deposited into the market manager to improve mar
#### getMarketSkewScale
```solidity
- function getMarketSkewScale(uint128 synthMarketId) external returns (uint256 skewScale)
+ function getMarketSkewScale(uint128 synthMarketId) external view returns (uint256 skewScale)
```
gets the skew scale for a given market
@@ -2960,7 +2971,7 @@ Leftover fees not collected get deposited into the market manager to improve mar
#### getMarketUtilizationFees
```solidity
- function getMarketUtilizationFees(uint128 synthMarketId) external returns (uint256 utilizationFeeRate)
+ function getMarketUtilizationFees(uint128 synthMarketId) external view returns (uint256 utilizationFeeRate)
```
gets the market utilization fee for a given market
@@ -2990,7 +3001,7 @@ this leverage value is a value applied to delegated collateral which is compared
#### getCollateralLeverage
```solidity
- function getCollateralLeverage(uint128 synthMarketId) external returns (uint256 collateralLeverage)
+ function getCollateralLeverage(uint128 synthMarketId) external view returns (uint256 collateralLeverage)
```
gets the collateral leverage for a given market
@@ -3022,7 +3033,7 @@ especially useful for direct integrations where configured traders get a discoun
#### getCustomTransactorFees
```solidity
- function getCustomTransactorFees(uint128 synthMarketId, address transactor) external returns (uint256 fixedFeeAmount)
+ function getCustomTransactorFees(uint128 synthMarketId, address transactor) external view returns (uint256 fixedFeeAmount)
```
gets the fixed fee for a given market and transactor
@@ -3055,7 +3066,7 @@ if fee collector is not set, the fees are deposited into the market manager.
#### getFeeCollector
```solidity
- function getFeeCollector(uint128 synthMarketId) external returns (address feeCollector)
+ function getFeeCollector(uint128 synthMarketId) external view returns (address feeCollector)
```
gets a custom fee collector for a given market
@@ -3097,7 +3108,7 @@ fees can be negative. this is a way to unwind the wrapper if needed by providin
#### getReferrerShare
```solidity
- function getReferrerShare(uint128 marketId, address referrer) external returns (uint256 sharePercentage)
+ function getReferrerShare(uint128 marketId, address referrer) external view returns (uint256 sharePercentage)
```
get the referral share percentage for a given market
@@ -3300,7 +3311,7 @@ This address should not be used directly--use `getSynth` instead
#### updatePriceData
```solidity
- function updatePriceData(uint128 marketId, bytes32 buyFeedId, bytes32 sellFeedId) external
+ function updatePriceData(uint128 marketId, bytes32 buyFeedId, bytes32 sellFeedId, uint256 strictPriceStalenessTolerance) external
```
Update the price data for a given market.
@@ -3311,6 +3322,7 @@ This address should not be used directly--use `getSynth` instead
* `marketId` (*uint128*) - id of the market
* `buyFeedId` (*bytes32*) - the oracle manager buy feed node id
* `sellFeedId` (*bytes32*) - the oracle manager sell feed node id
+* `strictPriceStalenessTolerance` (*uint256*) - configurable price staleness tolerance used for transacting
#### upgradeSynthImpl
@@ -3492,7 +3504,7 @@ Anyone who is willing and able to spend the gas can call this method.
#### SynthPriceDataUpdated
```solidity
- event SynthPriceDataUpdated(uint256 synthMarketId, bytes32 buyFeedId, bytes32 sellFeedId)
+ event SynthPriceDataUpdated(uint256 synthMarketId, bytes32 buyFeedId, bytes32 sellFeedId, uint256 strictStalenessTolerance)
```
Gets fired when the market's price feeds are updated, compatible with oracle manager
@@ -3501,6 +3513,7 @@ Anyone who is willing and able to spend the gas can call this method.
* `synthMarketId` (*uint256*) -
* `buyFeedId` (*bytes32*) - the oracle manager feed id for the buy price
* `sellFeedId` (*bytes32*) - the oracle manager feed id for the sell price
+* `strictStalenessTolerance` (*uint256*) -
#### DecayRateUpdated
@@ -3567,7 +3580,7 @@ Anyone who is willing and able to spend the gas can call this method.
#### decayRate
```solidity
- function decayRate() external returns (uint256)
+ function decayRate() external view returns (uint256)
```
get decay rate for a year
@@ -3583,7 +3596,7 @@ Anyone who is willing and able to spend the gas can call this method.
#### isInitialized
```solidity
- function isInitialized() external returns (bool)
+ function isInitialized() external view returns (bool)
```
Returns wether the token has been initialized.
@@ -3906,6 +3919,52 @@ There is a synthetix v3 core system supply cap also set. If the current supply b
## Perps Market
+### IAccountEvents
+
+#### CollateralDeducted
+
+ ```solidity
+ event CollateralDeducted(uint256 account, uint128 synthMarketId, uint256 amount)
+ ```
+
+ Gets fired when some collateral is deducted from the account for paying fees or liquidations.
+
+**Parameters**
+* `account` (*uint256*) - Id of the account being deducted.
+* `synthMarketId` (*uint128*) - Id of the synth deducted.
+* `amount` (*uint256*) - Amount of synth market deducted from the account.
+
+### Async Order Cancel Module
+
+#### cancelOrder
+
+ ```solidity
+ function cancelOrder(uint128 accountId) external
+ ```
+
+ Cancels an order when price exceeds the acceptable price. Uses the onchain benchmark price at commitment time.
+
+**Parameters**
+* `accountId` (*uint128*) - Id of the account used for the trade.
+
+#### OrderCancelled
+
+ ```solidity
+ event OrderCancelled(uint128 marketId, uint128 accountId, uint256 desiredPrice, uint256 fillPrice, int128 sizeDelta, uint256 settlementReward, bytes32 trackingCode, address settler)
+ ```
+
+ Gets fired when an order is cancelled.
+
+**Parameters**
+* `marketId` (*uint128*) - Id of the market used for the trade.
+* `accountId` (*uint128*) - Id of the account used for the trade.
+* `desiredPrice` (*uint256*) - Price at which the order was cancelled.
+* `fillPrice` (*uint256*) - Price at which the order was cancelled.
+* `sizeDelta` (*int128*) - Size delta from order.
+* `settlementReward` (*uint256*) - Amount of fees collected by the settler.
+* `trackingCode` (*bytes32*) - Optional code for integrator tracking purposes.
+* `settler` (*address*) - address of the settler of the order.
+
### Async Order Module
#### commitOrder
@@ -3925,7 +3984,7 @@ There is a synthetix v3 core system supply cap also set. If the current supply b
#### getOrder
```solidity
- function getOrder(uint128 accountId) external returns (struct AsyncOrder.Data order)
+ function getOrder(uint128 accountId) external view returns (struct AsyncOrder.Data order)
```
Get async order claim details
@@ -3973,7 +4032,7 @@ There is a synthetix v3 core system supply cap also set. If the current supply b
#### OrderCommitted
```solidity
- event OrderCommitted(uint128 marketId, uint128 accountId, enum SettlementStrategy.Type orderType, int128 sizeDelta, uint256 acceptablePrice, uint256 settlementTime, uint256 expirationTime, bytes32 trackingCode, address sender)
+ event OrderCommitted(uint128 marketId, uint128 accountId, enum SettlementStrategy.Type orderType, int128 sizeDelta, uint256 acceptablePrice, uint256 commitmentTime, uint256 settlementTime, uint256 expirationTime, bytes32 trackingCode, address sender)
```
Gets fired when a new order is committed.
@@ -3984,7 +4043,8 @@ There is a synthetix v3 core system supply cap also set. If the current supply b
* `orderType` (*enum SettlementStrategy.Type*) - Should send 0 (at time of writing) that correlates to the transaction type enum defined in SettlementStrategy.Type.
* `sizeDelta` (*int128*) - requested change in size of the order sent by the user.
* `acceptablePrice` (*uint256*) - maximum or minimum, depending on the sizeDelta direction, accepted price to settle the order, set by the user.
-* `settlementTime` (*uint256*) - Time at which the order can be settled.
+* `commitmentTime` (*uint256*) - Time at which the order was committed.
+* `settlementTime` (*uint256*) - start time of the settlement window.
* `expirationTime` (*uint256*) - Time at which the order expired.
* `trackingCode` (*bytes32*) - Optional code for integrator tracking purposes.
* `sender` (*address*) - address of the sender of the order. Authorized to commit by account owner.
@@ -3992,7 +4052,7 @@ There is a synthetix v3 core system supply cap also set. If the current supply b
#### PreviousOrderExpired
```solidity
- event PreviousOrderExpired(uint128 marketId, uint128 accountId, int128 sizeDelta, uint256 acceptablePrice, uint256 settlementTime, bytes32 trackingCode)
+ event PreviousOrderExpired(uint128 marketId, uint128 accountId, int128 sizeDelta, uint256 acceptablePrice, uint256 commitmentTime, bytes32 trackingCode)
```
Gets fired when a new order is committed while a previous one was expired.
@@ -4002,33 +4062,21 @@ There is a synthetix v3 core system supply cap also set. If the current supply b
* `accountId` (*uint128*) - Id of the account used for the trade.
* `sizeDelta` (*int128*) - requested change in size of the order sent by the user.
* `acceptablePrice` (*uint256*) - maximum or minimum, depending on the sizeDelta direction, accepted price to settle the order, set by the user.
-* `settlementTime` (*uint256*) - Time at which the order can be settled.
+* `commitmentTime` (*uint256*) - Time at which the order was committed.
* `trackingCode` (*bytes32*) - Optional code for integrator tracking purposes.
-### Async Order Settlement Module
+### Async Order Settlement Pyth Module
-#### settle
-
- ```solidity
- function settle(uint128 accountId) external view
- ```
-
- Settles an offchain order. It's expected to revert with the OffchainLookup error with the data needed to perform the offchain lookup.
-
-**Parameters**
-* `accountId` (*uint128*) - Id of the account used for the trade.
-
-#### settlePythOrder
+#### settleOrder
```solidity
- function settlePythOrder(bytes result, bytes extraData) external payable
+ function settleOrder(uint128 accountId) external
```
Settles an offchain order using the offchain retrieved data from pyth.
**Parameters**
-* `result` (*bytes*) - the blob of data retrieved offchain.
-* `extraData` (*bytes*) - Extra data from OffchainLookupData.
+* `accountId` (*uint128*) - The account id to settle the order
#### OrderSettled
@@ -4055,18 +4103,6 @@ There is a synthetix v3 core system supply cap also set. If the current supply b
### Collateral Module
-#### setMaxCollateralAmount
-
- ```solidity
- function setMaxCollateralAmount(uint128 synthMarketId, uint256 collateralAmount) external
- ```
-
- Set the max collateral amoutn via this function
-
-**Parameters**
-* `synthMarketId` (*uint128*) - Synth market id, 0 for snxUSD.
-* `collateralAmount` (*uint256*) - max amount that for the synth
-
#### MaxCollateralSet
```solidity
@@ -4081,22 +4117,22 @@ There is a synthetix v3 core system supply cap also set. If the current supply b
### Global Perps Market Module
-#### setMaxCollateralAmount
+#### setCollateralConfiguration
```solidity
- function setMaxCollateralAmount(uint128 synthMarketId, uint256 collateralAmount) external
+ function setCollateralConfiguration(uint128 synthMarketId, uint256 maxCollateralAmount) external
```
Sets the max collateral amount for a specific synth market.
**Parameters**
* `synthMarketId` (*uint128*) - Synth market id, 0 for snxUSD.
-* `collateralAmount` (*uint256*) - Max collateral amount to set for the synth market id.
+* `maxCollateralAmount` (*uint256*) - Max collateral amount to set for the synth market id.
-#### getMaxCollateralAmount
+#### getCollateralConfiguration
```solidity
- function getMaxCollateralAmount(uint128 synthMarketId) external view returns (uint256)
+ function getCollateralConfiguration(uint128 synthMarketId) external view returns (uint256 maxCollateralAmount)
```
Gets the max collateral amount for a specific synth market.
@@ -4105,7 +4141,17 @@ There is a synthetix v3 core system supply cap also set. If the current supply b
* `synthMarketId` (*uint128*) - Synth market id, 0 for snxUSD.
**Returns**
-* `[0]` (*uint256*) - maxCollateralAmount max collateral amount of the specified synth market id
+* `maxCollateralAmount` (*uint256*) - max collateral amount of the specified synth market id
+#### getSupportedCollaterals
+
+ ```solidity
+ function getSupportedCollaterals() external view returns (uint256[] supportedCollaterals)
+ ```
+
+ Gets the list of supported collaterals.
+
+**Returns**
+* `supportedCollaterals` (*uint256[]*) - list of supported collateral ids. By supported collateral we mean a collateral which max is greater than zero
#### setSynthDeductionPriority
```solidity
@@ -4131,29 +4177,33 @@ There is a synthetix v3 core system supply cap also set. If the current supply b
**Returns**
* `[0]` (*uint128[]*) - synthDeductionPriority Ordered array of synth market ids for deduction priority.
-#### setLiquidationRewardGuards
+#### setKeeperRewardGuards
```solidity
- function setLiquidationRewardGuards(uint256 minLiquidationRewardUsd, uint256 maxLiquidationRewardUsd) external
+ function setKeeperRewardGuards(uint256 minKeeperRewardUsd, uint256 minKeeperProfitRatioD18, uint256 maxKeeperRewardUsd, uint256 maxKeeperScalingRatioD18) external
```
- Sets the liquidation reward guard (min and max).
+ Sets the keeper reward guard (min and max).
**Parameters**
-* `minLiquidationRewardUsd` (*uint256*) - Minimum liquidation reward expressed as USD value.
-* `maxLiquidationRewardUsd` (*uint256*) - Maximum liquidation reward expressed as USD value.
+* `minKeeperRewardUsd` (*uint256*) - Minimum keeper reward expressed as USD value.
+* `minKeeperProfitRatioD18` (*uint256*) - Minimum keeper profit ratio used together with minKeeperRewardUsd to calculate the minimum.
+* `maxKeeperRewardUsd` (*uint256*) - Maximum keeper reward expressed as USD value.
+* `maxKeeperScalingRatioD18` (*uint256*) - Scaling used to calculate the Maximum keeper reward together with maxKeeperRewardUsd.
-#### getLiquidationRewardGuards
+#### getKeeperRewardGuards
```solidity
- function getLiquidationRewardGuards() external view returns (uint256 minLiquidationRewardUsd, uint256 maxLiquidationRewardUsd)
+ function getKeeperRewardGuards() external view returns (uint256 minKeeperRewardUsd, uint256 minKeeperProfitRatioD18, uint256 maxKeeperRewardUsd, uint256 maxKeeperScalingRatioD18)
```
- Gets the liquidation reward guard (min and max).
+ Gets the keeper reward guard (min and max).
**Returns**
-* `minLiquidationRewardUsd` (*uint256*) - Minimum liquidation reward expressed as USD value.
-* `maxLiquidationRewardUsd` (*uint256*) - Maximum liquidation reward expressed as USD value.
+* `minKeeperRewardUsd` (*uint256*) - Minimum keeper reward expressed as USD value.
+* `minKeeperProfitRatioD18` (*uint256*) - Minimum keeper profit ratio used together with minKeeperRewardUsd to calculate the minimum.
+* `maxKeeperRewardUsd` (*uint256*) - Maximum keeper reward expressed as USD value.
+* `maxKeeperScalingRatioD18` (*uint256*) - Scaling used to calculate the Maximum keeper reward together with maxKeeperRewardUsd.
#### totalGlobalCollateralValue
```solidity
@@ -4224,7 +4274,7 @@ There is a synthetix v3 core system supply cap also set. If the current supply b
#### getReferrerShare
```solidity
- function getReferrerShare(address referrer) external returns (uint256 shareRatioD18)
+ function getReferrerShare(address referrer) external view returns (uint256 shareRatioD18)
```
get the referral share percentage for the specified referrer
@@ -4234,10 +4284,31 @@ There is a synthetix v3 core system supply cap also set. If the current supply b
**Returns**
* `shareRatioD18` (*uint256*) - The configured share percentage for the referrer
+#### updateKeeperCostNodeId
+
+ ```solidity
+ function updateKeeperCostNodeId(bytes32 keeperCostNodeId) external
+ ```
+
+ Set node id for keeper cost
+
+**Parameters**
+* `keeperCostNodeId` (*bytes32*) - the node id
+
+#### getKeeperCostNodeId
+
+ ```solidity
+ function getKeeperCostNodeId() external view returns (bytes32 keeperCostNodeId)
+ ```
+
+ Get the node id for keeper cost
+
+**Returns**
+* `keeperCostNodeId` (*bytes32*) - the node id
#### getMarkets
```solidity
- function getMarkets() external returns (uint256[] marketIds)
+ function getMarkets() external view returns (uint256[] marketIds)
```
get all existing market ids
@@ -4245,17 +4316,17 @@ There is a synthetix v3 core system supply cap also set. If the current supply b
**Returns**
* `marketIds` (*uint256[]*) - an array of existing market ids
-#### MaxCollateralAmountSet
+#### CollateralConfigurationSet
```solidity
- event MaxCollateralAmountSet(uint128 synthMarketId, uint256 collateralAmount)
+ event CollateralConfigurationSet(uint128 synthMarketId, uint256 maxCollateralAmount)
```
Gets fired when max collateral amount for synth for all the markets is set by owner.
**Parameters**
* `synthMarketId` (*uint128*) - Synth market id, 0 for snxUSD.
-* `collateralAmount` (*uint256*) - max amount that was set for the synth
+* `maxCollateralAmount` (*uint256*) - max amount that was set for the synth
#### SynthDeductionPrioritySet
@@ -4268,17 +4339,19 @@ There is a synthetix v3 core system supply cap also set. If the current supply b
**Parameters**
* `newSynthDeductionPriority` (*uint128[]*) - new synth id priority order for deductions.
-#### LiquidationRewardGuardsSet
+#### KeeperRewardGuardsSet
```solidity
- event LiquidationRewardGuardsSet(uint256 minLiquidationRewardUsd, uint256 maxLiquidationRewardUsd)
+ event KeeperRewardGuardsSet(uint256 minKeeperRewardUsd, uint256 minKeeperProfitRatioD18, uint256 maxKeeperRewardUsd, uint256 maxKeeperScalingRatioD18)
```
- Gets fired when liquidation reward guard is set or updated.
+ Gets fired when keeper reward guard is set or updated.
**Parameters**
-* `minLiquidationRewardUsd` (*uint256*) - Minimum liquidation reward expressed as USD value.
-* `maxLiquidationRewardUsd` (*uint256*) - Maximum liquidation reward expressed as USD value.
+* `minKeeperRewardUsd` (*uint256*) - Minimum keeper reward expressed as USD value.
+* `minKeeperProfitRatioD18` (*uint256*) - Minimum keeper profit ratio used together with minKeeperRewardUsd to calculate the minimum.
+* `maxKeeperRewardUsd` (*uint256*) - Maximum keeper reward expressed as USD value.
+* `maxKeeperScalingRatioD18` (*uint256*) - Scaling used to calculate the Maximum keeper reward together with maxKeeperRewardUsd.
#### FeeCollectorSet
@@ -4315,6 +4388,17 @@ There is a synthetix v3 core system supply cap also set. If the current supply b
* `maxPositionsPerAccount` (*uint128*) - The max number of concurrent Positions per Account
* `maxCollateralsPerAccount` (*uint128*) - The max number of concurrent Collaterals per Account
+#### KeeperCostNodeIdUpdated
+
+ ```solidity
+ event KeeperCostNodeIdUpdated(bytes32 keeperCostNodeId)
+ ```
+
+ Gets fired when feed id for keeper cost node id is updated.
+
+**Parameters**
+* `keeperCostNodeId` (*bytes32*) - oracle node id
+
### Liquidation Module
#### liquidate
@@ -4335,13 +4419,41 @@ There is a synthetix v3 core system supply cap also set. If the current supply b
#### liquidateFlagged
```solidity
- function liquidateFlagged() external returns (uint256 liquidationReward)
+ function liquidateFlagged(uint256 maxNumberOfAccounts) external returns (uint256 liquidationReward)
+ ```
+
+ Liquidates up to maxNumberOfAccounts flagged accounts.
+
+**Parameters**
+* `maxNumberOfAccounts` (*uint256*) - max number of accounts to liquidate.
+
+**Returns**
+* `liquidationReward` (*uint256*) - total reward sent to liquidator.
+#### liquidateFlaggedAccounts
+
+ ```solidity
+ function liquidateFlaggedAccounts(uint128[] accountIds) external returns (uint256 liquidationReward)
```
- Liquidates all flagged accounts.
+ Liquidates the listed flagged accounts.
+
+ if any of the accounts is not flagged for liquidation it will be skipped.
+
+**Parameters**
+* `accountIds` (*uint128[]*) - list of account ids to liquidate.
**Returns**
* `liquidationReward` (*uint256*) - total reward sent to liquidator.
+#### flaggedAccounts
+
+ ```solidity
+ function flaggedAccounts() external view returns (uint256[] accountIds)
+ ```
+
+ Returns the list of flagged accounts.
+
+**Returns**
+* `accountIds` (*uint256[]*) - list of flagged accounts.
#### canLiquidate
```solidity
@@ -4352,6 +4464,18 @@ There is a synthetix v3 core system supply cap also set. If the current supply b
**Returns**
* `isEligible` (*bool*) -
+#### liquidationCapacity
+
+ ```solidity
+ function liquidationCapacity(uint128 marketId) external view returns (uint256 capacity, uint256 maxLiquidationInWindow, uint256 latestLiquidationTimestamp)
+ ```
+
+ Current liquidation capacity for the market
+
+**Returns**
+* `capacity` (*uint256*) - market can liquidate up to this #
+* `maxLiquidationInWindow` (*uint256*) - max amount allowed to liquidate based on the current market configuration
+* `latestLiquidationTimestamp` (*uint256*) - timestamp of the last liquidation of the market
#### PositionLiquidated
@@ -4367,10 +4491,10 @@ There is a synthetix v3 core system supply cap also set. If the current supply b
* `amountLiquidated` (*uint256*) - amount liquidated.
* `currentPositionSize` (*int128*) - position size after liquidation.
-#### AccountLiquidated
+#### AccountLiquidationAttempt
```solidity
- event AccountLiquidated(uint128 accountId, uint256 reward, bool fullLiquidation)
+ event AccountLiquidationAttempt(uint128 accountId, uint256 reward, bool fullLiquidation)
```
Gets fired when an account is liquidated.
@@ -4398,6 +4522,19 @@ There is a synthetix v3 core system supply cap also set. If the current supply b
**Returns**
* `strategyId` (*uint256*) - id of the new settlement strategy.
+#### setSettlementStrategy
+
+ ```solidity
+ function setSettlementStrategy(uint128 marketId, uint256 strategyId, struct SettlementStrategy.Data strategy) external
+ ```
+
+ updates a settlement strategy for a market with this function.
+
+**Parameters**
+* `marketId` (*uint128*) - id of the market.
+* `strategyId` (*uint256*) - the specific strategy id.
+* `strategy` (*struct SettlementStrategy.Data*) - strategy details (see SettlementStrategy.Data struct).
+
#### setOrderFees
```solidity
@@ -4414,7 +4551,7 @@ There is a synthetix v3 core system supply cap also set. If the current supply b
#### updatePriceData
```solidity
- function updatePriceData(uint128 perpsMarketId, bytes32 feedId) external
+ function updatePriceData(uint128 perpsMarketId, bytes32 feedId, uint256 strictStalenessTolerance) external
```
Set node id for perps market
@@ -4422,6 +4559,7 @@ There is a synthetix v3 core system supply cap also set. If the current supply b
**Parameters**
* `perpsMarketId` (*uint128*) - id of the market to set price feed.
* `feedId` (*bytes32*) - the node feed id
+* `strictStalenessTolerance` (*uint256*) - strict price tolerance in seconds (used for liquidations primarily)
#### setFundingParameters
@@ -4454,7 +4592,7 @@ There is a synthetix v3 core system supply cap also set. If the current supply b
#### setLiquidationParameters
```solidity
- function setLiquidationParameters(uint128 marketId, uint256 initialMarginRatioD18, uint256 minimumInitialMarginRatioD18, uint256 maintenanceMarginScalarD18, uint256 liquidationRewardRatioD18, uint256 minimumPositionMargin) external
+ function setLiquidationParameters(uint128 marketId, uint256 initialMarginRatioD18, uint256 minimumInitialMarginRatioD18, uint256 maintenanceMarginScalarD18, uint256 flagRewardRatioD18, uint256 minimumPositionMargin) external
```
Set liquidation parameters for a market with this function.
@@ -4464,7 +4602,7 @@ There is a synthetix v3 core system supply cap also set. If the current supply b
* `initialMarginRatioD18` (*uint256*) - the initial margin ratio (as decimal with 18 digits precision).
* `minimumInitialMarginRatioD18` (*uint256*) - the minimum initial margin ratio (as decimal with 18 digits precision).
* `maintenanceMarginScalarD18` (*uint256*) - the maintenance margin scalar relative to the initial margin ratio (as decimal with 18 digits precision).
-* `liquidationRewardRatioD18` (*uint256*) - the liquidation reward ratio (as decimal with 18 digits precision).
+* `flagRewardRatioD18` (*uint256*) - the flag reward ratio (as decimal with 18 digits precision).
* `minimumPositionMargin` (*uint256*) - the minimum position margin.
#### setMaxMarketSize
@@ -4539,7 +4677,7 @@ There is a synthetix v3 core system supply cap also set. If the current supply b
#### getLiquidationParameters
```solidity
- function getLiquidationParameters(uint128 marketId) external view returns (uint256 initialMarginRatioD18, uint256 minimumInitialMarginRatioD18, uint256 maintenanceMarginScalarD18, uint256 liquidationRewardRatioD18, uint256 minimumPositionMargin)
+ function getLiquidationParameters(uint128 marketId) external view returns (uint256 initialMarginRatioD18, uint256 minimumInitialMarginRatioD18, uint256 maintenanceMarginScalarD18, uint256 flagRewardRatioD18, uint256 minimumPositionMargin)
```
Gets liquidation parameters details of a market.
@@ -4551,7 +4689,7 @@ There is a synthetix v3 core system supply cap also set. If the current supply b
* `initialMarginRatioD18` (*uint256*) - the initial margin ratio (as decimal with 18 digits precision).
* `minimumInitialMarginRatioD18` (*uint256*) - the minimum initial margin ratio (as decimal with 18 digits precision).
* `maintenanceMarginScalarD18` (*uint256*) - the maintenance margin scalar relative to the initial margin ratio (as decimal with 18 digits precision).
-* `liquidationRewardRatioD18` (*uint256*) - the liquidation reward ratio (as decimal with 18 digits precision).
+* `flagRewardRatioD18` (*uint256*) - the flag reward ratio (as decimal with 18 digits precision).
* `minimumPositionMargin` (*uint256*) - the minimum position margin.
#### getFundingParameters
@@ -4607,6 +4745,20 @@ There is a synthetix v3 core system supply cap also set. If the current supply b
**Returns**
* `lockedOiRatioD18` (*uint256*) - the locked OI ratio skew scale (as decimal with 18 digits precision).
+#### getPriceData
+
+ ```solidity
+ function getPriceData(uint128 perpsMarketId) external view returns (bytes32 feedId, uint256 strictStalenessTolerance)
+ ```
+
+ Set node id for perps market
+
+**Parameters**
+* `perpsMarketId` (*uint128*) - id of the market to set price feed.
+
+**Returns**
+* `feedId` (*bytes32*) - the node feed id to get price
+* `strictStalenessTolerance` (*uint256*) -
#### SettlementStrategyAdded
@@ -4621,10 +4773,23 @@ There is a synthetix v3 core system supply cap also set. If the current supply b
* `strategy` (*struct SettlementStrategy.Data*) - the strategy configuration.
* `strategyId` (*uint256*) - the newly created settlement strategy id.
+#### SettlementStrategySet
+
+ ```solidity
+ event SettlementStrategySet(uint128 marketId, uint256 strategyId, struct SettlementStrategy.Data strategy)
+ ```
+
+ Gets fired when new settlement strategy is updated.
+
+**Parameters**
+* `marketId` (*uint128*) - adds settlement strategy to this specific market.
+* `strategyId` (*uint256*) - the newly created settlement strategy id.
+* `strategy` (*struct SettlementStrategy.Data*) - the strategy configuration.
+
#### MarketPriceDataUpdated
```solidity
- event MarketPriceDataUpdated(uint128 marketId, bytes32 feedId)
+ event MarketPriceDataUpdated(uint128 marketId, bytes32 feedId, uint256 strictStalenessTolerance)
```
Gets fired when feed id for perps market is updated.
@@ -4632,6 +4797,7 @@ There is a synthetix v3 core system supply cap also set. If the current supply b
**Parameters**
* `marketId` (*uint128*) - id of perps market
* `feedId` (*bytes32*) - oracle node id
+* `strictStalenessTolerance` (*uint256*) - strict price tolerance in seconds (used for liquidations primarily)
#### OrderFeesSet
@@ -4677,7 +4843,7 @@ There is a synthetix v3 core system supply cap also set. If the current supply b
#### LiquidationParametersSet
```solidity
- event LiquidationParametersSet(uint128 marketId, uint256 initialMarginRatioD18, uint256 maintenanceMarginRatioD18, uint256 minimumInitialMarginRatioD18, uint256 liquidationRewardRatioD18, uint256 minimumPositionMargin)
+ event LiquidationParametersSet(uint128 marketId, uint256 initialMarginRatioD18, uint256 maintenanceMarginRatioD18, uint256 minimumInitialMarginRatioD18, uint256 flagRewardRatioD18, uint256 minimumPositionMargin)
```
Gets fired when liquidation parameters are updated.
@@ -4687,7 +4853,7 @@ There is a synthetix v3 core system supply cap also set. If the current supply b
* `initialMarginRatioD18` (*uint256*) - the initial margin ratio (as decimal with 18 digits precision).
* `maintenanceMarginRatioD18` (*uint256*) - the maintenance margin ratio (as decimal with 18 digits precision).
* `minimumInitialMarginRatioD18` (*uint256*) -
-* `liquidationRewardRatioD18` (*uint256*) - the liquidation reward ratio (as decimal with 18 digits precision).
+* `flagRewardRatioD18` (*uint256*) - the flag reward ratio (as decimal with 18 digits precision).
* `minimumPositionMargin` (*uint256*) - the minimum position margin.
#### MaxMarketSizeSet
@@ -4714,19 +4880,6 @@ There is a synthetix v3 core system supply cap also set. If the current supply b
* `marketId` (*uint128*) - udpates funding parameters to this specific market.
* `lockedOiRatioD18` (*uint256*) - the locked OI ratio skew scale (as decimal with 18 digits precision).
-#### SettlementStrategyEnabled
-
- ```solidity
- event SettlementStrategyEnabled(uint128 marketId, uint256 strategyId, bool enabled)
- ```
-
- Gets fired when a settlement strategy is enabled or disabled.
-
-**Parameters**
-* `marketId` (*uint128*) - udpates funding parameters to this specific market.
-* `strategyId` (*uint256*) - the specific strategy.
-* `enabled` (*bool*) - whether the strategy is enabled or disabled.
-
### IMarketEvents
#### MarketUpdated
@@ -4775,6 +4928,28 @@ There is a synthetix v3 core system supply cap also set. If the current supply b
**Returns**
* `[0]` (*uint256*) - collateralValue collateral value of the account.
+#### getAccountCollateralIds
+
+ ```solidity
+ function getAccountCollateralIds(uint128 accountId) external view returns (uint256[])
+ ```
+
+ Gets the account's collaterals ids
+
+**Parameters**
+* `accountId` (*uint128*) - Id of the account.
+
+#### getAccountOpenPositions
+
+ ```solidity
+ function getAccountOpenPositions(uint128 accountId) external view returns (uint256[])
+ ```
+
+ Gets all markets that a given account id has a position in
+
+**Parameters**
+* `accountId` (*uint128*) - Id of the account.
+
#### totalCollateralValue
```solidity
@@ -4846,7 +5021,7 @@ There is a synthetix v3 core system supply cap also set. If the current supply b
#### getRequiredMargins
```solidity
- function getRequiredMargins(uint128 accountId) external view returns (uint256 requiredInitialMargin, uint256 requiredMaintenanceMargin, uint256 totalAccumulatedLiquidationRewards, uint256 maxLiquidationReward)
+ function getRequiredMargins(uint128 accountId) external view returns (uint256 requiredInitialMargin, uint256 requiredMaintenanceMargin, uint256 maxLiquidationReward)
```
Gets the initial/maintenance margins across all positions that an account has open.
@@ -4859,7 +5034,6 @@ There is a synthetix v3 core system supply cap also set. If the current supply b
**Returns**
* `requiredInitialMargin` (*uint256*) - initial margin req (used when withdrawing collateral).
* `requiredMaintenanceMargin` (*uint256*) - maintenance margin req (used to determine liquidation threshold).
-* `totalAccumulatedLiquidationRewards` (*uint256*) - sum of all liquidation rewards of if all account open positions were to be liquidated fully.
* `maxLiquidationReward` (*uint256*) - max liquidation reward the keeper would receive if account was fully liquidated. Note here that the accumulated rewards are checked against the global max/min configured liquidation rewards.
#### CollateralModified
@@ -4881,7 +5055,7 @@ There is a synthetix v3 core system supply cap also set. If the current supply b
#### initializeFactory
```solidity
- function initializeFactory() external returns (uint128)
+ function initializeFactory(contract ISynthetixSystem synthetix, contract ISpotMarketSystem spotMarket, string marketName) external returns (uint128)
```
Initializes the factory.
@@ -4890,27 +5064,16 @@ There is a synthetix v3 core system supply cap also set. If the current supply b
**Returns**
* `[0]` (*uint128*) - globalPerpsMarketId Id of the global perps market id.
-#### setSynthetix
-
- ```solidity
- function setSynthetix(contract ISynthetixSystem synthetix) external
- ```
-
- Sets the synthetix system.
-
-**Parameters**
-* `synthetix` (*contract ISynthetixSystem*) - address of the main synthetix proxy.
-
-#### setSpotMarket
+#### setPerpsMarketName
```solidity
- function setSpotMarket(contract ISpotMarketSystem spotMarket) external
+ function setPerpsMarketName(string marketName) external
```
- Sets the spot market system.
+ Sets the perps market name.
**Parameters**
-* `spotMarket` (*contract ISpotMarketSystem*) - address of the spot market proxy.
+* `marketName` (*string*) - the new perps market name.
#### createMarket
@@ -5086,7 +5249,7 @@ There is a synthetix v3 core system supply cap also set. If the current supply b
#### fillPrice
```solidity
- function fillPrice(uint128 marketId, int128 orderSize, uint256 price) external returns (uint256)
+ function fillPrice(uint128 marketId, int128 orderSize, uint256 price) external view returns (uint256)
```
Gets a market's fill price for a specific order size and index price.
@@ -5432,7 +5595,7 @@ Requirements:
1. collect all their SNX collateral and debt from v2x
2. create a new staking account on v3 with the supplied {accountId}
3. put the collateral and debt into this newly created staking account
-4. send the created staking account to the msg.sender.
+4. send the created staking account to the ERC2771Context._msgSender().
**Parameters**
* `accountId` (*uint128*) - the new account id that the user wants to have. can be any non-zero integer that is not already occupied.
@@ -5760,7 +5923,7 @@ Requirements:
1. collect all their SNX collateral and debt from v2x
2. create a new staking account on v3 with the supplied {accountId}
3. put the collateral and debt into this newly created staking account
-4. send the created staking account to the msg.sender.
+4. send the created staking account to the ERC2771Context._msgSender().
**Parameters**
* `accountId` (*uint128*) - the new account id that the user wants to have. can be any non-zero integer that is not already occupied.
@@ -5819,6 +5982,12 @@ Requirements:
**Parameters**
* `paused` (*bool*) - whether or not `migrate` should be disable
+#### MarketRegistered
+
+ ```solidity
+ event MarketRegistered(address marketAddress, uint128 marketId, address sender)
+ ```
+
#### Upgraded
```solidity
@@ -5933,7 +6102,7 @@ Requirements:
1. collect all their SNX collateral and debt from v2x
2. create a new staking account on v3 with the supplied {accountId}
3. put the collateral and debt into this newly created staking account
-4. send the created staking account to the msg.sender.
+4. send the created staking account to the ERC2771Context._msgSender().
**Parameters**
* `accountId` (*uint128*) - the new account id that the user wants to have. can be any non-zero integer that is not already occupied.
@@ -6049,7 +6218,7 @@ Requirements:
#### isInitialized
```solidity
- function isInitialized() external returns (bool)
+ function isInitialized() external view returns (bool)
```
Returns whether the token has been initialized.
@@ -7183,7 +7352,7 @@ See {setApprovalForAll}
#### getNodeId
```solidity
- function getNodeId(enum NodeDefinition.NodeType nodeType, bytes parameters, bytes32[] parents) external returns (bytes32 nodeId)
+ function getNodeId(enum NodeDefinition.NodeType nodeType, bytes parameters, bytes32[] parents) external pure returns (bytes32 nodeId)
```
Returns the ID of a node, whether or not it has been registered.
@@ -7319,20 +7488,6 @@ See {setApprovalForAll}
function isValid(struct NodeDefinition.Data nodeDefinition) internal pure returns (bool valid)
```
-### PythNode
-
-#### process
-
- ```solidity
- function process(bytes parameters) internal view returns (struct NodeOutput.Data nodeOutput)
- ```
-
-#### isValid
-
- ```solidity
- function isValid(struct NodeDefinition.Data nodeDefinition) internal view returns (bool valid)
- ```
-
### ReducerNode
#### process
@@ -7400,7 +7555,7 @@ See {setApprovalForAll}
#### process
```solidity
- function process(struct NodeOutput.Data[] parentNodeOutputs, bytes parameters) internal view returns (struct NodeOutput.Data nodeOutput)
+ function process(struct NodeDefinition.Data nodeDefinition, bytes32[] runtimeKeys, bytes32[] runtimeValues) internal view returns (struct NodeOutput.Data nodeOutput)
```
#### isValid
@@ -7429,3 +7584,31 @@ See {setApprovalForAll}
function isValid(struct NodeDefinition.Data nodeDefinition) internal view returns (bool valid)
```
+### PythNode
+
+#### process
+
+ ```solidity
+ function process(bytes parameters) internal view returns (struct NodeOutput.Data nodeOutput)
+ ```
+
+#### isValid
+
+ ```solidity
+ function isValid(struct NodeDefinition.Data nodeDefinition) internal view returns (bool valid)
+ ```
+
+### PythOffchainLookupNode
+
+#### process
+
+ ```solidity
+ function process(bytes parameters, bytes32[] runtimeKeys, bytes32[] runtimeValues) internal pure returns (struct NodeOutput.Data)
+ ```
+
+#### isValid
+
+ ```solidity
+ function isValid(struct NodeDefinition.Data nodeDefinition) internal pure returns (bool valid)
+ ```
+
diff --git a/Synthetix-Gitbook-v3/for-liquidity-pool-managers/creating-and-configuring-pools.md b/Synthetix-Gitbook-v3/for-liquidity-pool-managers/creating-and-configuring-pools.md
index 6218168..ec5def6 100644
--- a/Synthetix-Gitbook-v3/for-liquidity-pool-managers/creating-and-configuring-pools.md
+++ b/Synthetix-Gitbook-v3/for-liquidity-pool-managers/creating-and-configuring-pools.md
@@ -23,6 +23,16 @@ There are a couple scenarios in which a pool's configuration is restricted in ho
* The pool configuration change will be prevented if it would leave the total amount of credit capacity provided to a market lower than the amount it returns in its `minimumCredit` function.
* The pool configuration cannot be changed unless the minimum collateral delegation duration has elapsed since the last time `setPoolConfiguration` was called for this pool.
+### Collateral Configuration
+
+By default, pools accept all collateral types approved by governance (using the configuration set by governance). Pool owners can set pool-specific collateral configurations using the `setPoolCollateralConfiguration` function.
+
+`issuanceRatioD18` is a custom issuance ratio for the specified collateral type. The system will always use the greater of this value and the issuance ratio set by governance. (Setting this value to the maximum integer value effectively turns off minting using this collateral type in this pool.)
+
+`collateralLimitD18` is the maximum total amount of collateral that this pool will accept for the specified collateral type. (Note that if this is less than the `minDelegationD18` value, this pool has opted out of accepting this collateral type.)
+
+In the pool configuration (not to be confused with the pool _collateral_ configuration), pool owners can set the `collateralDisabledByDefault` value to `true`. In this case, new collateral types cannot be delegated to this pool. The pool owner must set a `collateralLimitD18` value to accept it. In other words, `collateralLimitD18 == 0` means that the pool will accept an unlimited amount of this collateral, unless `collateralDisabledByDefault` is set to `true`.
+
### Calculating Credit Capacity[](https://snx-v3-docs.vercel.app/pools-markets/delegating-credit-and-debt#calculating-credit-capacity)
To understand how the pool configuration function works, it's useful to see how it effects the available credit capacity (i.e. amount of withdrawable snxUSD) provided to markets.
diff --git a/Synthetix-Gitbook-v3/for-liquidity-pool-managers/rewards-distributors.md b/Synthetix-Gitbook-v3/for-liquidity-pool-managers/rewards-distributors.md
index 98b4285..32739f4 100644
--- a/Synthetix-Gitbook-v3/for-liquidity-pool-managers/rewards-distributors.md
+++ b/Synthetix-Gitbook-v3/for-liquidity-pool-managers/rewards-distributors.md
@@ -20,10 +20,18 @@ A pool owner can then connect a rewards distributor to a vault with the `registe
Below is an example Rewards Distributor contract that can be used to develop your own.
-{% @github-files/github-code-block url="https://github.com/Synthetixio/example-rewards-distributor" %}
+{% @github-files/github-code-block %}
+
+Below is an example transaction that:
+
+1. Registers a Rewards Distributor contract
+2. to poolId 69
+3. with SNX (on Optimism Goerli)
+
+{% embed url="https://goerli-optimism.etherscan.io/tx/0xcbc66ab9276aa828149cabbe40c7eb88408d9963664ac37f9f69c4f228a7811e" %}
## Distributing Rewards
A registered rewards distributor can call the `distributeRewards` function. The `poolId` and `collateralType` parameters identify the relevant vault. `amount` indicates the total amount of tokens to be distributed starting at the `start` timestamp over `duration` seconds. Note that `duration` may be set to 0, such that the rewards are distributed instantaneously based on the pro-rata distribution at `start`. A rewards distributor can call the `distributeRewards` function multiple times, adding to the rewards already distributed to those participating in the vault.
-Anyone can call the `getAvailableRewards` function to see what an account ID can claim from a distributor registered to a specified vault, accounting for amounts previously claimed. Then, an address that owns (or has relevant permissions on) that account can call the `claimRewards` function. This, in turn, calls the `payout` function on the rewards distributor with the appropriate amount.
+Anyone can static call the `claimRewards` function to see what an account ID can claim from a distributor registered to a specified vault, accounting for amounts previously claimed. Then, an address that owns (or has relevant permissions on) that account can call the `claimRewards` function. This, in turn, calls the `payout` function on the rewards distributor with the appropriate amount.
diff --git a/Synthetix-Gitbook-v3/for-liquidity-providers/liquidity-positions/minting-and-burning-snxusd.md b/Synthetix-Gitbook-v3/for-liquidity-providers/liquidity-positions/minting-and-burning-snxusd.md
index 922e874..ebbc1ef 100644
--- a/Synthetix-Gitbook-v3/for-liquidity-providers/liquidity-positions/minting-and-burning-snxusd.md
+++ b/Synthetix-Gitbook-v3/for-liquidity-providers/liquidity-positions/minting-and-burning-snxusd.md
@@ -3,7 +3,7 @@
The protocol generates **snxUSD**, a decentralized, over-collateralized stablecoin backed by the collateral deposited in the Synthetix protocol. snxUSD is an ERC-20 token used by markets integrated with Synthetix.
{% hint style="info" %}
-**Currently on Testnet:** snxUSD is integrated with [Chainlink's CCIP](https://chain.link/cross-chain) to allow for secure, decentralized cross-chain transfers of snxUSD between networks with a Synthetix deployment.
+Minting and burning effects an account's available balance. snxUSD must be deposited before minting and withdrawn after burning.
{% endhint %}
Once a liquidity position has been created by delegating collateral, liquidity providers can take out an interest-free loan of snxUSD by "minting" it. snxUSD is minted by calling the `mintUsd` function. The debt of the position increases by $1 for each snxUSD token minted.
@@ -11,3 +11,7 @@ Once a liquidity position has been created by delegating collateral, liquidity p
Liquidity providers may not mint snxUSD such that their position’s c-ratio drops below the Issuance C-Ratio for the relevant collateral type. The Issuance C-Ratio for each collateral type is set by governance. The `getCollateralConfiguration` function will return the Issuance C-ratio, represented as an integer with 18 decimal places.
snxUSD can also be used to repay loans by "burning" it. snxUSD is burned by calling the `burnUsd` function. This decreases the debt of a position by $1 per snxUSD burned, regardless of whether this debt was accrued from minting snxUSD or from debt distributed to it by a market. To reduce the collateral delegated to a position, debt must be repaid such that the resulting C-Ratio is above the Issuance C-Ratio.
+
+{% hint style="info" %}
+snxUSD is integrated with [Chainlink's CCIP](https://chain.link/cross-chain) to allow for secure, decentralized cross-chain transfers of snxUSD between networks with a Synthetix deployment.
+{% endhint %}
diff --git a/Synthetix-Gitbook-v3/for-perp-integrators/base-andromeda.md b/Synthetix-Gitbook-v3/for-perp-integrators/base-andromeda.md
new file mode 100644
index 0000000..f5b0323
--- /dev/null
+++ b/Synthetix-Gitbook-v3/for-perp-integrators/base-andromeda.md
@@ -0,0 +1,123 @@
+---
+description: Evolving reference for Core V3 + Perps V3 on Base
+---
+
+# Base Andromeda
+
+{% hint style="info" %}
+### INTERIM timeline
+
+* Week beginning Nov 6th: Perps V3 starting audit ✅
+* Week beginning Nov 13th: Andromeda 3.3.3 on [Base Goerli](https://usecannon.com/packages/synthetix-omnibus/latest/84531-andromeda) ✅
+* Week beginning Nov 27th: Andromeda 3.3.3 on Base mainnet 🚧
+* Week beginning Dec 4th: Andromeda 3.4.0 on Base mainnet (pending Perp audit)
+* TBC: Public launch of Andromeda on Base mainnet and announcements
+{% endhint %}
+
+## Introduction
+
+Andromeda is the combination of
+
+* Core V3
+* Perps V3
+* USDC as collateral
+
+The Spot Market is included, but only to be used as a mechanism to exchange the assets brought by traders and LPs (USDC) for the internal accounting tokens (sUSDC and sUSD).
+
+## Configuration
+
+* Unique to Andromeda Base is the use of a USDC wrapper, enabling USDC to appear to be used as collateral for LPs, and as margin as perp traders.
+* Underneath, USDC is wrapped and or traded into sUSDC for LP collateral (and collecting fees), and sUSD as perp margin
+* The full configuration of Base Goerli can be seen [on Cannon](https://usecannon.com/packages/synthetix-omnibus/3.3.3-dev.e141cd8c/84531-andromeda)
+* Configuration explained:
+ * [this is the part](https://github.com/Synthetixio/synthetix-deployments/pull/66/files#diff-dc0e4e9b2b24d1fcf9c5a8ffd5b5548955777eff55c71dd0ab208dc04e84a89b) that deploys sUSDC (a USDC synth) and creates the spot market
+ * USDC <-> sUSDC can be wrapped/unwrapped on the spot market
+ * sUSD <-> sUSDC can be bought/sold on the spot market
+ * No fee on these, all atomic so can be composed with multicalls
+* _Coming: Andromeda Base Sandbox - in the meantime see the more general_ [sandbox-with-perps.md](sandbox-with-perps.md "mention") _can be used once USDC is wrapped and swapped to sUSD_
+
+// TODO: [https://github.com/pyth-network/pyth-sdk-solidity/blob/main/MockPyth.sol](https://github.com/pyth-network/pyth-sdk-solidity/blob/main/MockPyth.sol)
+
+{% embed url="https://usecannon.com/packages/synthetix-omnibus/latest/84531-andromeda" %}
+Base Goerli Andromeda
+{% endembed %}
+
+## For LPs
+
+LPs can arrive with USDC to provide liquidity (LP). The contracts or integrators need to:
+
+1. Wrap USDC to sUSDC on the Spot Market
+ 1. Function: `SpotMarketProxy.wrap(marketId, wrapAmount, amountReceived)`
+ 2. Example: `wrap(1, 1000000000000000000, 1000000000000000000)`
+2. Deposit sUSDC to Pool
+3. Delegate sUSDC to Market
+
+// TODO: are fees in sUSD and need to be swapped back to USDC?
+
+When withdrawing, initial collateral plus any fees can be withdrawn, then unwrapped from sUSDC to USDC.
+
+## For Traders/Integrators
+
+Integrators can create a seamless trading experience using USDC by utilizing the wrapper and spot market. Since `USDC-sUSDC` and `sUSDC-sUSD` exchanges are both 1:1 swaps, integrators can easily create a "zap" between USDC in their wallet and their account margin.
+
+### **Prerequisites**
+
+An account must meet the following requirements to execute USDC transfers between their wallet and a perps account.
+
+**Deposit:**
+
+* Holds an account NFT for perps
+* Approve `SpotMarketProxy` to transfer USDC
+* Approve `SpotMarketProxy` to transfer sUSDC
+* Approve `PerpsMarketProxy` to transfer sUSD
+
+**Withdraw:**
+
+* Account NFT has some withdrawable margin
+* Approve `SpotMarketProxy` to transfer sUSD
+* Approve `SpotMarketProxy` to transfer sUSDC
+
+### Preparing the Transactions
+
+If you meet these requirements you can prepare a multicall to execute in a single transaction. Use `marketId = 1` for `sUSDC`. Matching values like `wrapAmount` and `amountReceived` in the transactions will guarantee this 1:1 swap.
+
+All transactions should be prepared as a multicall and sent to the `TrustedMulticallForwarder` contracts using `aggregate3Value`.
+
+**Deposit:**
+
+1. `USDC -> sUSDC` - Wrap USDC on the spot market
+ 1. Function: `SpotMarketProxy.wrap(marketId, wrapAmount, amountReceived)`
+ 2. Example: `wrap(1, 1000000000000000000, 1000000000000000000)`
+2. `sUSDC -> sUSD` - Sell sUSDC for sUSD on the spot market
+ 1. Function: `SpotMarketProxy.sell(marketId, synthAmount, minUsdAmount, referrer)`
+ 2. Example: `sell(1, 1000000000000000000, 1000000000000000000, 0x0000000000000000000000000000000000000000)`
+3. Deposit sUSD
+ 1. Function: `PerpsMarketProxy.modifyCollateral(accountId, synthMarketId, amountDelta)`
+ 2. Example: `modifyCollateral(12345, 0, 1000000000000000000)`
+
+**Withdraw:**
+
+1. Withdraw sUSD
+ 1. Function: `PerpsMarketProxy.modifyCollateral(accountId, synthMarketId, amountDelta)`
+ 2. Example: `modifyCollateral(12345, 0, -1000000000000000000)`
+2. `sUSD -> sUSDC` - Buy sUSDC on the spot market
+ 1. Function: `SpotMarketProxy.buy(marketId, usdAmount, minAmountReceived, referrer)`
+ 2. Example: `buy(1, 1000000000000000000, 1000000000000000000, 0x0000000000000000000000000000000000000000)`
+3. `sUSDC -> USDC` - Unwrap sUSDC on the spot market
+ 1. Function: `SpotMarketProxy.unwrap(marketId, unwrapAmount, minAmountReceived)`
+ 2. Example: `unwrap(1, 1000000000000000000, 1000000000000000000)`
+
+**Sample Transactions**
+
+* [Deposit](https://goerli.basescan.org/tx/0x95461a5b05c40c91c952bc06b0d292ec16ffd0c750a7b708a8564183b9b08cf4)
+* [Withdraw](https://goerli.basescan.org/tx/0x4b6d29faaa75223fe1d690993c5e93ef316fc823385cbc52f505927f65702319)
+
+### Notable changes from Testnet Competition
+
+* Interface: [Staleness Tolerance](https://github.com/Synthetixio/synthetix-v3/pull/1860)
+* Keepers: [Gas based keeper rewards](https://github.com/Synthetixio/synthetix-v3/pull/1890)
+
+### Notable recent changes
+
+{% embed url="https://rattle-ticket-183.notion.site/Perps-andromeda-branch-changes-512cf7a6c696463da0980907f00511ea?pvs=4" %}
+
diff --git a/Synthetix-Gitbook-v3/for-perp-integrators/perps-v3-keeper.md b/Synthetix-Gitbook-v3/for-perp-integrators/perps-v3-keeper.md
new file mode 100644
index 0000000..8266d20
--- /dev/null
+++ b/Synthetix-Gitbook-v3/for-perp-integrators/perps-v3-keeper.md
@@ -0,0 +1,5 @@
+# Perps V3 Keeper
+
+{% embed url="https://github.com/Synthetixio/sample-v3-keeper/tree/main" %}
+Template Perps V3 Keeper
+{% endembed %}
diff --git a/Synthetix-Gitbook-v3/for-perp-integrators/perps-v3.md b/Synthetix-Gitbook-v3/for-perp-integrators/perps-v3.md
new file mode 100644
index 0000000..c227c74
--- /dev/null
+++ b/Synthetix-Gitbook-v3/for-perp-integrators/perps-v3.md
@@ -0,0 +1,301 @@
+# Perps V3
+
+{% hint style="info" %}
+Perps V3 is in late stages of development, so minor changes and updates are possible
+{% endhint %}
+
+### Perps V3.0 features and updates
+
+* Cross margin: account margin can be used across multiple positions on markets
+* Only async (delayed offchain) orders: atomic orders can be gamed very easily by front runners; async orders seems to be the way forward in general.
+* No order cancellation: you couldn't cancel within settlement window anyway so it was pointless to add cancel after the order has expired. Removed one extra action for keepers to perform and LPs to pay for.
+* Accounts with Role Based Access Control for modifying collateral, opening/closing positions - enabling full extensibility and composability.
+* Improved liquidations and no more endorsed liquidators
+* Constraints to note
+ * Single position per market
+ * Single pending order
+
+{% embed url="https://github.com/Synthetixio/synthetix-v3/tree/main/markets/perps-market" %}
+
+### Changes from Perps v2
+
+### Expected features for future versions
+
+* Multi collateral: accepts any synths configured in the system as margin for an account
+
+## Workflow
+
+### Factory Owner
+
+* Each proxy is considered to be one “supermarket”, and is initialized with the factory owner as the owner of this supermarket. The supermarket consists of a set of markets that it controls for which cross margin is applied. Each account that’s created is scoped to the supermarket and cannot be used on other supermarkets.
+* Supermarkets can only be initialized once which registers them with the Core system using the following call (returns the registered market id with core system):
+
+```solidity
+function initializeFactory() external returns (uint128);
+```
+
+* Owner can set other global parameters that apply to all markets:
+
+[synthetix-v3/GlobalPerpsMarketConfiguration.sol at main · Synthetixio/synthetix-v3](https://github.com/Synthetixio/synthetix-v3/blob/main/markets/perps-market/contracts/storage/GlobalPerpsMarketConfiguration.sol)
+
+#### Create perps market:
+
+```solidity
+ function createMarket(
+ uint128 requestedMarketId,
+ string memory marketName,
+ string memory marketSymbol
+ ) external returns (uint128);
+```
+
+* Two markets have been created on OP Goerli so far:
+ * `100`: ETH market
+ * `200`: BTC market
+
+#### Set configuration parameters
+
+* If you need the configuration of any of the above created markets, here are the functions you can call:
+
+```solidity
+function getSettlementStrategy(
+ uint128 marketId,
+ uint256 strategyId
+ ) external view returns (SettlementStrategy.Data memory settlementStrategy);
+
+function getLiquidationParameters(
+ uint128 marketId
+ )
+ external
+ view
+ returns (
+ uint256 initialMarginRatioD18,
+ uint256 minimumInitialMarginRatioD18,
+ uint256 maintenanceMarginScalarD18,
+ uint256 liquidationRewardRatioD18,
+ uint256 maxLiquidationLimitAccumulationMultiplier,
+ uint256 maxSecondsInLiquidationWindow,
+ uint256 minimumPositionMargin
+ );
+
+function getFundingParameters(
+ uint128 marketId
+ ) external view returns (uint256 skewScale, uint256 maxFundingVelocity);
+
+function getMaxMarketSize(uint128 marketId) external view returns (uint256 maxMarketSize);
+
+function getOrderFees(
+ uint128 marketId
+ ) external view returns (uint256 makerFeeRatio, uint256 takerFeeRatio);
+
+function getLockedOiRatio(uint128 marketId) external view returns (uint256 lockedOiRatioD18);
+```
+
+[synthetix-v3/PerpsMarketConfiguration.sol at main · Synthetixio/synthetix-v3](https://github.com/Synthetixio/synthetix-v3/blob/main/markets/perps-market/contracts/storage/PerpsMarketConfiguration.sol#L21)
+
+#### Add settlement strategy for async orders:
+
+```solidity
+ function addSettlementStrategy(
+ uint128 marketId,
+ SettlementStrategy.Data memory strategy
+ ) external returns (uint256 strategyId);
+```
+
+* A strategy has been added on OP goerli. You can always query `getSettlementStrategy` to get the details.
+
+## Trader
+
+#### Create account:
+
+`function createAccount(uint128 requestedAccountId) external;`
+
+* Re-using the `AccountModule` from v3 core system which comes packaged with RBAC.
+* The account owner can delegate **`PERPS_MODIFY_COLLATERAL`** role to another address using:
+
+```solidity
+ function grantPermission(
+ uint128 accountId,
+ bytes32 permission,
+ address user
+ ) external
+```
+
+#### Modify collateral:
+
+```solidity
+function modifyCollateral(uint128 accountId, uint128 synthMarketId, int amountDelta) external;
+```
+
+* Use `0` as `synthMarketId` for snxUSD.
+* Use any other synth that has a `maxCollateralAmount` set by owner of factory to add to account’s margin.
+* By providing a negative `amountDelta`, you are able to withdraw collateral of your choosing.
+
+ Note: there are checks in place to ensure you cannot remove more than the required maintenance margin.
+
+#### Commit Order:
+
+```solidity
+ function commitOrder(
+ AsyncOrder.OrderCommitmentRequest memory commitment
+ )
+
+ struct OrderCommitmentRequest {
+ /**
+ * @dev Order market id.
+ */
+ uint128 marketId;
+ /**
+ * @dev Order account id.
+ */
+ uint128 accountId;
+ /**
+ * @dev Order size delta (of asset units expressed in decimal 18 digits). It can be positive or negative.
+ */
+ int128 sizeDelta;
+ /**
+ * @dev Settlement strategy used for the order.
+ */
+ uint128 settlementStrategyId;
+ /**
+ * @dev Acceptable price set at submission. Compared against the fill price.
+ */
+ uint256 acceptablePrice;
+ /**
+ * @dev An optional code provided by frontends to assist with tracking the source of volume and fees.
+ */
+ bytes32 trackingCode;
+ /**
+ * @dev Referrer address to send the referrer fees to, if configured.
+ */
+ address referrer;
+ }
+```
+
+* `sizeDelta` is the change in size of the position. Can determine long/short based on this value.
+* A settlement strategy is required in order to commit orders. Here’s an example of one that uses a pyth offchain settlement strategy:
+
+```solidity
+strategy: {
+ strategyType: 0,
+ settlementDelay: bn(5),
+ settlementWindowDuration: bn(120),
+ priceVerificationContract: 0xff1a0f4744e8582DF1aE09D5611b887B6a12925C,
+ feedId: 0xca80ba6dc32e08d06f1aa886011eed1d77c77be9eb761cc10d72b7d0a2fd57a6, // op goerli
+ url: "", // testnet
+ settlementReward: bn(5),
+ priceWindowDuration: bn(240),
+ disabled: false,
+}
+```
+
+## Liquidation Keepers
+
+* Call either:
+ * `function liquidate(uint128 accountId) external`
+ * If the account is already flagged for liquidation, the call will proceed with liquidating as much of the account’s position as possible.
+ * If the account is not, it will check if the account is eligible and proceed to liquidate.
+ * Otherwise, the call reverts.
+ * `function liquidateFlagged() external`
+ * Iterates through all accounts flagged for liquidation and attempts to liquidate.
+ * Gas could be high but so are the rewards 💰
+
+## Settlement Keepers
+
+* `function settle(uint128 marketId, uint128 accountId) external`
+ * if the order is valid and within settlement window, this function will settle the order and update its accounting of the new position.
+
+### Other Notes:
+
+#### Liquidation Margins
+
+An account is subject to margin requirements as determined by the following values configurable for each market:
+
+```solidity
+uint256 initialMarginFraction;
+uint256 minimumInitialMarginFraction;
+uint256 maintenaceMarginScalar;
+uint256 liquidationMarginRatio;
+```
+
+When opening a position on a given market, the initial margin requirement is a fraction of the notional value. The fraction is determined by calculating the size’s impact on the skew (position size / skewScale), multiplied by the `initialMarginFraction`plus the `minimumInitialMarginScalar`.
+
+Once a positive is live, the liquidation threshold is determined by the `maintenceMargin`which is the initialMargin requirement multiplied by the configured `maintenceMarginScalar`.
+
+To determine if an account is liquidatable, the account’s `availableMargin` must be greater than all calculated maintenance margins combined for each market the account has a position open. The maintenance margin also includes the liquidation settlement reward configured per market as a % of the notional size being liquidated.
+
+`availableMargin` is determined by subtracting any unrealized pnl to the available collateral margin.
+
+Available functions that will come in handy:
+
+```solidity
+// returns account's available margin taking into account positions unrealized pnl
+function getAvailableMargin(uint128 accountId) external view returns (int256 availableMargin);
+
+// returns how much a trader can withdraw from their account based on margin requirements and avialable collateral
+function getWithdrawableMargin(
+ uint128 accountId
+ ) external view returns (int256 withdrawableMargin);
+
+// returns the current margin requirements for the given account id
+function getRequiredMargins(
+ uint128 accountId
+ )
+ external
+ view
+ returns (
+ uint256 requiredInitialMargin,
+ uint256 requiredMaintenanceMargin,
+ uint256 totalAccumulatedLiquidationRewards,
+ uint256 maxLiquidationReward
+ );
+```
+
+#### Estimate Order Validity
+
+There are some functions you can call initially to determine if an order will go through:
+
+```solidity
+// for a given sizeDelta, will return how much total account margin is required
+function requiredMarginForOrder(
+ uint128 marketId,
+ uint128 accountId,
+ int128 sizeDelta
+ ) external view returns (uint256 requiredMargin);
+
+// useful to show the order fees that would be incurred for a given sizeDelta
+function computeOrderFees(
+ uint128 marketId,
+ int128 sizeDelta
+ ) external view returns (uint256 orderFees, uint256 fillPrice);
+```
+
+#### Max Liquidatable Amount
+
+Each market has parameters that dictate how much can be liquidated at any given point.
+
+```solidity
+uint256 maxSecondsInLiquidationWindow;
+uint256 maxLiquidationLimitAccumulationMultiplier;
+```
+
+The equation for max liquidation per second is as follows:
+
+```solidity
+maxLiquidationAmountPerSecond = (makerFee + takerFee) * skewScale * maxLiquidationLimitAccumulationMultiplier
+```
+
+_Note_: _the multiplier is an additional way to limit max liquidation amount per market._
+
+Based on the configured window, `maxSecondsInLiquidationWindow`, and `maxLiquidationAmountPerSecond`, the max liquidatable amount in any given window is:
+
+`maxSecondsInLiquidationWindow * maxLiquidationAmountPerSecond`
+
+Example:
+
+```solidity
+ETH Market:
+maxLiquidationAmountPerSecond = 100 ETH
+maxSecondsInLiquidationWindow = 5 seconds
+```
+
+In this scenario, a max of `500 ETH`can be liquidated in a 5 second window.
diff --git a/Synthetix-Gitbook-v3/for-perp-integrators/sandbox-with-perps.md b/Synthetix-Gitbook-v3/for-perp-integrators/sandbox-with-perps.md
new file mode 100644
index 0000000..951ea2e
--- /dev/null
+++ b/Synthetix-Gitbook-v3/for-perp-integrators/sandbox-with-perps.md
@@ -0,0 +1,5 @@
+# Perp V3 Integrators
+
+If you are looking to build a front end, or integrate your protocol with Perps V3, you've found the right place. Below is a sandbox that takes care of settings up the core system, along with mock collateral, price oracles and other automation.
+
+{% embed url="https://github.com/Synthetixio/synthetix-v3/tree/main/sandboxes/with-perps" %}
diff --git a/Synthetix-Gitbook-v3/v3-frequently-asked-questions-faq.md b/Synthetix-Gitbook-v3/v3-frequently-asked-questions-faq.md
new file mode 100644
index 0000000..7f1794e
--- /dev/null
+++ b/Synthetix-Gitbook-v3/v3-frequently-asked-questions-faq.md
@@ -0,0 +1,146 @@
+# V3 Frequently Asked Questions (FAQ)
+
+Welcome to the V3 Frequently Asked Questions (FAQ) section. This guide is designed to address common questions regarding the V3 release of Synthetix. As the platform evolves, expect this section to see regular updates and revisions to ensure clarity and up-to-date information for our community.
+
+
+
+Who is Synthetix V3 built for?
+
+**Answer:** Synthetix V3 is built with both LPs and derivatives projects in mind.
+
+Derivatives projects will be able to tap into Synthetix liquidity both through existing markets like Perps and Spot Synths, or by building their own derivatives markets. We’ve explored some of the opportunities for new markets, like options, insurance funds, sports AMMs and more, all of which will be able to leverage existing Synthetix liquidity to bootstrap trading activity.
+
+LPs will have greater flexibility to allocate collateral to markets based on their risk profile. As mentioned in another answer, the new Pool and Vault system has two key benefits for LPs:
+
+1. Better risk management: Users can select one of many liquidity pools, which are connected to one or more markets, allowing more fine-tuned control of LP risk.
+2. Wider collateral range: The V3 system is oracle agnostic, allowing any governance-approved asset to serve as collateral for borrowing sUSD and delegate to derivative markets.
+
+
+
+
+
+How is SNX staking evolving with V3?
+
+**Answer:** The power is with stakers in V3, thanks to multi-collateral staking and permissionless pools. V3 creates a generalized system agnostic to collateral type. Liquidity providers can deposit any governance-approved collateral into Pools, which is then used to provide liquidity to derivative markets. In the future, the creation of markets and vaults will be permissionless, giving liquidity providers fine-tune control of their market exposure.
+
+The new Pool and Vault system has two key benefits:
+
+1. Better risk management: Users can select one of many liquidity pools, which are connected to one or more markets, allowing more fine-tuned control of LP risk.
+2. Wider collateral range: The V3 system is collateral agnostic, allowing any governance-approved asset to serve as collateral for borrowing sUSD and delegate to derivative markets.
+
+Stakers have an increasing range of Pools to allocate their capital. This gives stakers more control over their collateral as the V3 system provides many more options for fine-tuned control.
+
+
+
+
+
+What types of collateral will there be outside of SNX?
+
+**Answer:** The V3 system is created to be entirely agnostic to collateral; any ERC-20 with sufficient price feed can be added as collateral. Synthetix governance will determine which assets to support in addition to SNX.
+
+Synthetix V3 features a generalized collateral vault system that is agnostic to collateral types. Over time, Synthetix Governance will determine which assets to support as collateral in addition to the current SNX (staking) and ETH (wrappers). Multi-collateral staking will increase sUSD liquidity and the markets supported by Synthetix. Collateral options will have adjustable variables, such as collateral requirements and rewards, which can be adjusted by governance.
+
+
+
+
+
+What is the cross-chain vision for Synthetix?
+
+**Answer**: The endstate goal of cross-chain Synthetix is to power derivative markets on any governance-approved EVM chain with a fully interoperable system. This will allow Synthetix-powered protocols to onboard traders on any chain and deliver the same low-fee deep liquidity trading experience to new users.
+
+As of Oct 2023, Governance is exploring an initial deployment plan on Base Network to experiment with new collateral types, fee sharing, and V3 markets.
+
+
+
+
+
+How is V3 different from other derivatives platforms?
+
+**Answer:** Simply put, Synthetix V3 isn’t like any other derivatives protocol because it isn’t a derivatives protocol. Instead, Synthetix is a liquidity layer that helps to power derivative protocols with its infrastructure and liquidity. This is a new era of Synthetix. New architecture, new premise, and a fundamentally new offering: _the liquidity layer for defi._
+
+Synthetix will power a multi-market ecosystem, encompassing perpetual futures, spot, options, insurance, exotics, and more, all backed by Synthetix Liquidity. With this vision, V3 paves the way for a new generation of derivative markets, where builders can leverage the protocol and bootstrap their communities for success - a new and exciting premise for Synthetix and the Ethereum ecosystem.
+
+The liquidity-as-a-service model appeals to new DeFi protocols seeking increased liquidity for on-chain derivatives so they can build on Synthetix easily and efficiently. With Synthetix Perps as an example, frontend integrators like Kwenta and Polynomial utilize Synthetix’ liquidity to power perps trading, boasting deep liquidity and historically low fees. Off-chain oracles reduce fees to 5-10bps, and risk management tools ensure market neutrality over the long term. These features combine to ensure Synthetix leads the way in decentralized derivatives.
+
+
+
+
+
+Why should projects integrate with Synthetix Liquidity?
+
+**Answer:** Launching a derivatives protocol can be challenging, with teams often faced with the cold-start problem – not enough liquidity to attract users, and not enough users to attract liquidity providers. With Synthetix, developers can create new markets and seamlessly attract liquidity. In this way, almost any derivative protocol can be built on top of Synthetix V3, as opposed to building from the ground up. Learn more on how protocols can integrate with Synthetix V3 [here](https://docs.synthetix.io/v/v3/).
+
+
+
+
+
+What are the main challenges for users Synthetix foresees as the protocol transitions from V2 to V3?
+
+**Answer:** The transition from V2 to V3 is intended to improve the user experience with Synthetix by giving more flexibility in how LPs allocate their collateral and which derivatives markets builders can integrate with the system.
+
+In the beginning of the transition, Synthetix will set up the Spartan Council Pool, which will include all legacy positions from V2 and will back Perps V3 and Spot Synths. The liquidity provisioning experience in this period should remain similar to what users currently experience on V2. As V3 becomes more built out, with permissionless markets tapping into permissionless liquidity pools, users will have a greater selection of how and where to allocate their collateral.
+
+Further as we transition to V3, there will be two non-fungible USD stablecoins that will be live at the same time. Users should be aware that any markets built on the V3 system will be using the new stablecoin and that external pools or integrations may require an update to the new version.
+
+
+
+
+
+What incentive do projects have to build on Synthetix V3?
+
+**Answer:** The incentives for building on Synthetix V3 are numerous and impactful:
+
+1. **Infrastructure:** Synthetix V3 abstracts away the complexities of building your own infrastructure. This enables derivative developers to primarily focus on market design and innovation rather than backend complexities.
+2. **Liquidity:** A common challenge for most protocols is generating sufficient liquidity to support derivative traders effectively. Synthetix addresses this with a deep liquidity pool to back derivatives, ensuring that protocols can thrive.
+3. **Rewards:** The Partner Volume Rewards program rewards derivative developers and protocols for generating trading volume using Synthetix Perps.
+
+
+
+
+
+What will change in V3 Perps?
+
+**Answer:**\
+\
+Building on the successes of Perps V2, V3 introduces several upgrades to improve the trading and developer experience:
+
+* Multi Collateral: Supports multiple collateral types, currently limited to synths registered with the V3 spot market; this is expected to include sUSD, sETH, sBTC, and other governance-approved spot synths.
+* Cross margin: account margin can be used across positions on markets natively rather than via smart wallets with front-end integrators.
+* Account-Based Access Controls: Enables delegation of account permissions, such as modifying collateral and managing positions, to additional addresses, enhancing extensibility and composability.
+* Liquidation Improvements: Implements gradual, non-sandwichable liquidation of large positions, with configurable delays between partial liquidations.
+* Deterministic Settlements: Improves the settlement process to ensure that the execution price is the earliest valid price post-commitment, minimizing the impact of network congestion.
+* Key limitations
+ * Single position per market (same as v2)
+ * Only async orders (no other order types) (delayed offchain orders)
+ * Single pending order
+ * No cancellation of orders; once order is expired, a new order can be placed.
+
+
+
+
+
+What tooling and resources are available for building on Synthetix V3?
+
+**Answer:** Synthetix will offer a variety of resources for builders looking to integrate with the V3 system. To start, all builders should review our documentation here: [https://docs.synthetix.io/v/v3/](https://docs.synthetix.io/v/v3/). This repository should contain all the relevant contracts, guides, and FAQs for building on top of Synthetix.
+
+Developers can use [Cannon](https://t.co/hcGnoDWtND), a tool for managing protocol deployments that is built and maintained by Synthetix core contributors.\
+\
+SDKs are also being developed to interface with Synthetix Perps.
+
+
+
+
+
+Are there any significant differences between sUSD and snxUSD?
+
+**Answer:** There will not be significant differences between sUSD and snxUSD (note that once V3 is fully live, sUSD will be the new stablecoin, and sUSDLegacy will be what is currently called sUSD from our V2 systems). sUSD and snxUSD will be non-fungible with one another, as they are generated by different versions of Synthetix.
+
+
+
+
+
+How will oracles be used permissionlessly in V3?
+
+**Answer:** Synthetix V3 will maintain agnostic oracle management for markets. This means market creators can choose from multiple oracle solutions, including Chainlink and Pyth, to set up custom aggregation - giving them more control over the oracles that power their markets. The oracle manager opens up new opportunities for supporting new markets and assets.
+
+
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..cfaa18c
--- /dev/null
+++ b/config/chainIDs.go
@@ -0,0 +1,30 @@
+package config
+
+// ChainID is a chain id enum
+type ChainID int
+
+const (
+ Unknown ChainID = iota
+ OptimismGoerli
+ BaseAndromeda
+)
+
+var chainIDStrings = [...]string{
+ Unknown: "Unknown",
+ OptimismGoerli: "OptimismGoerli",
+ BaseAndromeda: "BaseAndromeda",
+}
+
+var chainIDNums = [...]int{
+ Unknown: 0,
+ 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..7ce9a56 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,26 @@ 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://base.fastnode.cc/FNGfsgKFzvLlFKHWrNUYOWIgFRTdiAcVrtAxSMbMfZGdKDUDFgagkwnDgxPqgBit/"
+ }
+
+ //https://rpc.goerli.base.gateway.fm
+
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..7d698ff
--- /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":"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":"PerpsMarketAlreadyInitialized","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":[{"internalType":"contract ISynthetixSystem","name":"synthetix","type":"address"},{"internalType":"contract ISpotMarketSystem","name":"spotMarket","type":"address"},{"internalType":"string","name":"marketName","type":"string"}],"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":"string","name":"marketName","type":"string"}],"name":"setPerpsMarketName","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":[],"name":"KeeperCostsNotSet","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":"getAccountCollateralIds","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"}],"name":"getAccountOpenPositions","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"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":"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":"uint256","name":"settlementStrategyId","type":"uint256"}],"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":"commitmentTime","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":"commitmentTime","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":"commitmentTime","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":"commitmentTime","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":"InsufficientAccountMargin","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":"uint256","name":"account","type":"uint256"},{"indexed":false,"internalType":"uint128","name":"synthMarketId","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"CollateralDeducted","type":"event"},{"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":[{"internalType":"uint128","name":"accountId","type":"uint128"}],"name":"settleOrder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"fillPrice","type":"uint256"},{"internalType":"uint256","name":"acceptablePrice","type":"uint256"}],"name":"AcceptablePriceNotExceeded","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint128","name":"marketId","type":"uint128"},{"indexed":true,"internalType":"uint128","name":"accountId","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"desiredPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"fillPrice","type":"uint256"},{"indexed":false,"internalType":"int128","name":"sizeDelta","type":"int128"},{"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":"OrderCancelled","type":"event"},{"inputs":[{"internalType":"uint128","name":"accountId","type":"uint128"}],"name":"cancelOrder","outputs":[],"stateMutability":"nonpayable","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":"AccountLiquidationAttempt","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":[],"name":"flaggedAccounts","outputs":[{"internalType":"uint256[]","name":"accountIds","type":"uint256[]"}],"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":[{"internalType":"uint256","name":"maxNumberOfAccounts","type":"uint256"}],"name":"liquidateFlagged","outputs":[{"internalType":"uint256","name":"liquidationReward","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128[]","name":"accountIds","type":"uint128[]"}],"name":"liquidateFlaggedAccounts","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"},{"inputs":[{"internalType":"uint256","name":"duration","type":"uint256"}],"name":"InvalidSettlementWindowDuration","type":"error"},{"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":"flagRewardRatioD18","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"},{"indexed":false,"internalType":"uint256","name":"strictStalenessTolerance","type":"uint256"}],"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":"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":true,"internalType":"uint256","name":"strategyId","type":"uint256"},{"components":[{"internalType":"enum SettlementStrategy.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":"bool","name":"disabled","type":"bool"}],"indexed":false,"internalType":"struct SettlementStrategy.Data","name":"strategy","type":"tuple"}],"name":"SettlementStrategySet","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":"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":"flagRewardRatioD18","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":"perpsMarketId","type":"uint128"}],"name":"getPriceData","outputs":[{"internalType":"bytes32","name":"feedId","type":"bytes32"},{"internalType":"uint256","name":"strictStalenessTolerance","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":"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":"flagRewardRatioD18","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"},{"components":[{"internalType":"enum SettlementStrategy.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":"bool","name":"disabled","type":"bool"}],"internalType":"struct SettlementStrategy.Data","name":"strategy","type":"tuple"}],"name":"setSettlementStrategy","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"},{"internalType":"uint256","name":"strictStalenessTolerance","type":"uint256"}],"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":true,"internalType":"uint128","name":"synthMarketId","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"maxCollateralAmount","type":"uint256"}],"name":"CollateralConfigurationSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"feeCollector","type":"address"}],"name":"FeeCollectorSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"keeperCostNodeId","type":"bytes32"}],"name":"KeeperCostNodeIdUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"minKeeperRewardUsd","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"minKeeperProfitRatioD18","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"maxKeeperRewardUsd","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"maxKeeperScalingRatioD18","type":"uint256"}],"name":"KeeperRewardGuardsSet","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":[{"internalType":"uint128","name":"synthMarketId","type":"uint128"}],"name":"getCollateralConfiguration","outputs":[{"internalType":"uint256","name":"maxCollateralAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFeeCollector","outputs":[{"internalType":"address","name":"feeCollector","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getKeeperCostNodeId","outputs":[{"internalType":"bytes32","name":"keeperCostNodeId","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getKeeperRewardGuards","outputs":[{"internalType":"uint256","name":"minKeeperRewardUsd","type":"uint256"},{"internalType":"uint256","name":"minKeeperProfitRatioD18","type":"uint256"},{"internalType":"uint256","name":"maxKeeperRewardUsd","type":"uint256"},{"internalType":"uint256","name":"maxKeeperScalingRatioD18","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMarkets","outputs":[{"internalType":"uint256[]","name":"marketIds","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":"getSupportedCollaterals","outputs":[{"internalType":"uint256[]","name":"supportedCollaterals","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSynthDeductionPriority","outputs":[{"internalType":"uint128[]","name":"","type":"uint128[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"synthMarketId","type":"uint128"},{"internalType":"uint256","name":"maxCollateralAmount","type":"uint256"}],"name":"setCollateralConfiguration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"feeCollector","type":"address"}],"name":"setFeeCollector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"minKeeperRewardUsd","type":"uint256"},{"internalType":"uint256","name":"minKeeperProfitRatioD18","type":"uint256"},{"internalType":"uint256","name":"maxKeeperRewardUsd","type":"uint256"},{"internalType":"uint256","name":"maxKeeperScalingRatioD18","type":"uint256"}],"name":"setKeeperRewardGuards","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":"bytes32","name":"keeperCostNodeId","type":"bytes32"}],"name":"updateKeeperCostNodeId","outputs":[],"stateMutability":"nonpayable","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..0fe08b8
--- /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"}],"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"},{"indexed":false,"internalType":"int128","name":"creditCapacity","type":"int128"},{"indexed":false,"internalType":"int128","name":"netIssuance","type":"int128"},{"indexed":false,"internalType":"uint256","name":"depositedCollateralValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"reportedDebt","type":"uint256"}],"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"},{"indexed":false,"internalType":"int128","name":"creditCapacity","type":"int128"},{"indexed":false,"internalType":"int128","name":"netIssuance","type":"int128"},{"indexed":false,"internalType":"uint256","name":"depositedCollateralValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"reportedDebt","type":"uint256"}],"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"},{"indexed":false,"internalType":"int128","name":"creditCapacity","type":"int128"},{"indexed":false,"internalType":"int128","name":"netIssuance","type":"int128"},{"indexed":false,"internalType":"uint256","name":"depositedCollateralValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"reportedDebt","type":"uint256"}],"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"},{"indexed":false,"internalType":"int128","name":"creditCapacity","type":"int128"},{"indexed":false,"internalType":"int128","name":"netIssuance","type":"int128"},{"indexed":false,"internalType":"uint256","name":"depositedCollateralValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"reportedDebt","type":"uint256"}],"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"},{"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":true,"internalType":"uint128","name":"poolId","type":"uint128"},{"indexed":true,"internalType":"address","name":"owner","type":"address"}],"name":"PoolOwnershipRenounced","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":"collateralType","type":"address"}],"name":"getPoolCollateralConfiguration","outputs":[{"components":[{"internalType":"uint256","name":"collateralLimitD18","type":"uint256"},{"internalType":"uint256","name":"issuanceRatioD18","type":"uint256"}],"internalType":"struct PoolCollateralConfiguration.Data","name":"config","type":"tuple"}],"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":"renouncePoolOwnership","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":"accountId","type":"uint128"},{"internalType":"uint128","name":"poolId","type":"uint128"},{"internalType":"address","name":"collateralType","type":"address"},{"internalType":"address","name":"distributor","type":"address"}],"name":"getAvailableRewards","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":"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"}],"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/FulfillOracleQuery-converter.json b/contracts/FulfillOracleQuery-converter.json
new file mode 100644
index 0000000..dec8da7
--- /dev/null
+++ b/contracts/FulfillOracleQuery-converter.json
@@ -0,0 +1,35 @@
+[
+ {
+ "inputs": [],
+ "stateMutability": "nonpayable",
+ "type": "constructor"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint8",
+ "name": "updateType",
+ "type": "uint8"
+ },
+ {
+ "internalType": "uint64",
+ "name": "stalenessTolerance",
+ "type": "uint64"
+ },
+ {
+ "internalType": "bytes32[]",
+ "name": "priceIDs",
+ "type": "bytes32[]"
+ },
+ {
+ "internalType": "bytes[]",
+ "name": "priceUpdateData",
+ "type": "bytes[]"
+ }
+ ],
+ "name": "convert",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ }
+]
\ No newline at end of file
diff --git a/contracts/coreGoerli/contract.go b/contracts/core/contract.go
similarity index 60%
rename from contracts/coreGoerli/contract.go
rename to contracts/core/contract.go
index 545857b..aeeb1f5 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\"}],\"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\"},{\"indexed\":false,\"internalType\":\"int128\",\"name\":\"creditCapacity\",\"type\":\"int128\"},{\"indexed\":false,\"internalType\":\"int128\",\"name\":\"netIssuance\",\"type\":\"int128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"depositedCollateralValue\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"reportedDebt\",\"type\":\"uint256\"}],\"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\"},{\"indexed\":false,\"internalType\":\"int128\",\"name\":\"creditCapacity\",\"type\":\"int128\"},{\"indexed\":false,\"internalType\":\"int128\",\"name\":\"netIssuance\",\"type\":\"int128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"depositedCollateralValue\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"reportedDebt\",\"type\":\"uint256\"}],\"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\"},{\"indexed\":false,\"internalType\":\"int128\",\"name\":\"creditCapacity\",\"type\":\"int128\"},{\"indexed\":false,\"internalType\":\"int128\",\"name\":\"netIssuance\",\"type\":\"int128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"depositedCollateralValue\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"reportedDebt\",\"type\":\"uint256\"}],\"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\"},{\"indexed\":false,\"internalType\":\"int128\",\"name\":\"creditCapacity\",\"type\":\"int128\"},{\"indexed\":false,\"internalType\":\"int128\",\"name\":\"netIssuance\",\"type\":\"int128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"depositedCollateralValue\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"reportedDebt\",\"type\":\"uint256\"}],\"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\"},{\"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\":true,\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"PoolOwnershipRenounced\",\"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\":\"collateralType\",\"type\":\"address\"}],\"name\":\"getPoolCollateralConfiguration\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"collateralLimitD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"issuanceRatioD18\",\"type\":\"uint256\"}],\"internalType\":\"structPoolCollateralConfiguration.Data\",\"name\":\"config\",\"type\":\"tuple\"}],\"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\":\"renouncePoolOwnership\",\"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\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"poolId\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"collateralType\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"distributor\",\"type\":\"address\"}],\"name\":\"getAvailableRewards\",\"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\":\"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\"}],\"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,60 @@ 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)
+}
+
+// GetAvailableRewards is a free data retrieval call binding the contract method 0xc4b3410e.
+//
+// Solidity: function getAvailableRewards(uint128 accountId, uint128 poolId, address collateralType, address distributor) view returns(uint256)
+func (_Core *CoreCaller) GetAvailableRewards(opts *bind.CallOpts, accountId *big.Int, poolId *big.Int, collateralType common.Address, distributor common.Address) (*big.Int, error) {
+ var out []interface{}
+ err := _Core.contract.Call(opts, &out, "getAvailableRewards", accountId, poolId, collateralType, distributor)
+
+ if err != nil {
+ return *new(*big.Int), err
+ }
+
+ out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
+
+ return out0, err
+
+}
+
+// GetAvailableRewards is a free data retrieval call binding the contract method 0xc4b3410e.
+//
+// Solidity: function getAvailableRewards(uint128 accountId, uint128 poolId, address collateralType, address distributor) view returns(uint256)
+func (_Core *CoreSession) GetAvailableRewards(accountId *big.Int, poolId *big.Int, collateralType common.Address, distributor common.Address) (*big.Int, error) {
+ return _Core.Contract.GetAvailableRewards(&_Core.CallOpts, accountId, poolId, collateralType, distributor)
+}
+
+// GetAvailableRewards is a free data retrieval call binding the contract method 0xc4b3410e.
+//
+// Solidity: function getAvailableRewards(uint128 accountId, uint128 poolId, address collateralType, address distributor) view returns(uint256)
+func (_Core *CoreCallerSession) GetAvailableRewards(accountId *big.Int, poolId *big.Int, collateralType common.Address, distributor common.Address) (*big.Int, error) {
+ return _Core.Contract.GetAvailableRewards(&_Core.CallOpts, accountId, poolId, collateralType, distributor)
}
// 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 +570,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 +601,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.
//
// Solidity: function getCollateralPrice(address collateralType) view returns(uint256)
-func (_CoreGoerli *CoreGoerliCaller) GetCollateralPrice(opts *bind.CallOpts, collateralType common.Address) (*big.Int, error) {
+func (_Core *CoreCaller) GetCollateralPrice(opts *bind.CallOpts, collateralType common.Address) (*big.Int, error) {
var out []interface{}
- err := _CoreGoerli.contract.Call(opts, &out, "getCollateralPrice", collateralType)
+ err := _Core.contract.Call(opts, &out, "getCollateralPrice", collateralType)
if err != nil {
return *new(*big.Int), err
@@ -601,23 +632,23 @@ func (_CoreGoerli *CoreGoerliCaller) GetCollateralPrice(opts *bind.CallOpts, col
// GetCollateralPrice is a free data retrieval call binding the contract method 0x51a40994.
//
// 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)
+func (_Core *CoreSession) GetCollateralPrice(collateralType common.Address) (*big.Int, error) {
+ return _Core.Contract.GetCollateralPrice(&_Core.CallOpts, collateralType)
}
// GetCollateralPrice is a free data retrieval call binding the contract method 0x51a40994.
//
// 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)
+func (_Core *CoreCallerSession) GetCollateralPrice(collateralType common.Address) (*big.Int, error) {
+ return _Core.Contract.GetCollateralPrice(&_Core.CallOpts, collateralType)
}
// 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 +663,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 +694,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 +725,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 +756,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 +787,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 +818,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 +849,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 +880,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 +911,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 +942,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 +973,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 +1004,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 +1035,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 +1074,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 +1111,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 +1142,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 +1173,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 +1204,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 +1235,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 +1266,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 +1297,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 +1328,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 +1359,54 @@ 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)
+}
+
+// GetPoolCollateralConfiguration is a free data retrieval call binding the contract method 0xc77e51f6.
+//
+// Solidity: function getPoolCollateralConfiguration(uint128 poolId, address collateralType) view returns((uint256,uint256) config)
+func (_Core *CoreCaller) GetPoolCollateralConfiguration(opts *bind.CallOpts, poolId *big.Int, collateralType common.Address) (PoolCollateralConfigurationData, error) {
+ var out []interface{}
+ err := _Core.contract.Call(opts, &out, "getPoolCollateralConfiguration", poolId, collateralType)
+
+ if err != nil {
+ return *new(PoolCollateralConfigurationData), err
+ }
+
+ out0 := *abi.ConvertType(out[0], new(PoolCollateralConfigurationData)).(*PoolCollateralConfigurationData)
+
+ return out0, err
+
+}
+
+// GetPoolCollateralConfiguration is a free data retrieval call binding the contract method 0xc77e51f6.
+//
+// Solidity: function getPoolCollateralConfiguration(uint128 poolId, address collateralType) view returns((uint256,uint256) config)
+func (_Core *CoreSession) GetPoolCollateralConfiguration(poolId *big.Int, collateralType common.Address) (PoolCollateralConfigurationData, error) {
+ return _Core.Contract.GetPoolCollateralConfiguration(&_Core.CallOpts, poolId, collateralType)
+}
+
+// GetPoolCollateralConfiguration is a free data retrieval call binding the contract method 0xc77e51f6.
+//
+// Solidity: function getPoolCollateralConfiguration(uint128 poolId, address collateralType) view returns((uint256,uint256) config)
+func (_Core *CoreCallerSession) GetPoolCollateralConfiguration(poolId *big.Int, collateralType common.Address) (PoolCollateralConfigurationData, error) {
+ return _Core.Contract.GetPoolCollateralConfiguration(&_Core.CallOpts, poolId, collateralType)
}
// 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 +1421,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 +1452,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 +1483,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,68 +1514,54 @@ 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 {
- Amount *big.Int
- Value *big.Int
-}, error) {
+// Solidity: function getPositionCollateral(uint128 accountId, uint128 poolId, address collateralType) view returns(uint256 amount)
+func (_Core *CoreCaller) GetPositionCollateral(opts *bind.CallOpts, accountId *big.Int, poolId *big.Int, collateralType common.Address) (*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
- Value *big.Int
- })
if err != nil {
- return *outstruct, err
+ return *new(*big.Int), err
}
- outstruct.Amount = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
- outstruct.Value = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int)
+ out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
- return *outstruct, err
+ return out0, 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 (_CoreGoerli *CoreGoerliSession) 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)
+// Solidity: function getPositionCollateral(uint128 accountId, uint128 poolId, address collateralType) view returns(uint256 amount)
+func (_Core *CoreSession) GetPositionCollateral(accountId *big.Int, poolId *big.Int, collateralType common.Address) (*big.Int, error) {
+ 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 {
- Amount *big.Int
- Value *big.Int
-}, error) {
- return _CoreGoerli.Contract.GetPositionCollateral(&_CoreGoerli.CallOpts, accountId, poolId, collateralType)
+// Solidity: function getPositionCollateral(uint128 accountId, uint128 poolId, address collateralType) view returns(uint256 amount)
+func (_Core *CoreCallerSession) GetPositionCollateral(accountId *big.Int, poolId *big.Int, collateralType common.Address) (*big.Int, error) {
+ 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 +1576,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 +1607,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 +1669,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 +1708,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 +1745,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 +1776,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 +1807,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 +1838,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 +1869,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 +1931,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 +1962,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 +1993,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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
+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)
}
// 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)
+}
+
+// RenouncePoolOwnership is a paid mutator transaction binding the contract method 0x7cc14a92.
+//
+// Solidity: function renouncePoolOwnership(uint128 poolId) returns()
+func (_Core *CoreTransactor) RenouncePoolOwnership(opts *bind.TransactOpts, poolId *big.Int) (*types.Transaction, error) {
+ return _Core.contract.Transact(opts, "renouncePoolOwnership", poolId)
+}
+
+// RenouncePoolOwnership is a paid mutator transaction binding the contract method 0x7cc14a92.
+//
+// Solidity: function renouncePoolOwnership(uint128 poolId) returns()
+func (_Core *CoreSession) RenouncePoolOwnership(poolId *big.Int) (*types.Transaction, error) {
+ return _Core.Contract.RenouncePoolOwnership(&_Core.TransactOpts, poolId)
+}
+
+// RenouncePoolOwnership is a paid mutator transaction binding the contract method 0x7cc14a92.
+//
+// Solidity: function renouncePoolOwnership(uint128 poolId) returns()
+func (_Core *CoreTransactorSession) RenouncePoolOwnership(poolId *big.Int) (*types.Transaction, error) {
+ return _Core.Contract.RenouncePoolOwnership(&_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 +3595,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 +3604,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 +3619,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 +3635,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 +3656,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 +3667,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 +3688,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 +3698,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 +3723,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 +3748,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 +3757,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 +3772,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 +3788,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 +3811,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 +3822,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 +3843,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 +3853,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 +3878,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 +3903,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 +3912,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 +3927,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 +3943,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 +3964,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 +3998,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 +4023,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 +4048,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 +4057,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 +4072,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 +4088,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 +4111,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 +4122,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 +4143,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 +4153,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 +4178,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 +4203,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 +4212,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 +4227,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 +4243,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 +4266,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 +4277,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 +4298,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 +4308,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 +4333,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 +4358,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 +4367,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 +4382,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 +4398,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 +4423,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 +4438,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 +4463,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 +4473,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 +4498,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 +4523,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 +4532,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 +4547,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 +4563,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 +4588,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 +4604,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 +4630,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 +4640,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 +4665,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 +4690,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 +4699,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 +4714,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 +4730,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 +4753,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 +4769,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 +4795,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 +4805,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 +4830,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 +4855,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 +4864,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 +4879,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 +4895,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 +4916,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 +4950,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 +4975,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 +5000,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 +5009,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 +5024,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 +5040,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 +5061,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 +5095,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 +5120,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 +5145,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 +5154,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 +5169,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 +5185,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 +5206,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 +5240,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 +5265,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 +5290,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 +5299,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 +5314,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 +5330,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 +5351,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 +5385,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 +5410,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 +5435,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 +5444,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 +5459,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 +5475,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 +5496,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 +5530,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 +5555,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 +5580,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 +5589,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 +5604,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 +5620,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 +5643,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 +5654,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 +5675,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 +5685,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 +5710,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 +5735,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 +5744,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 +5759,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 +5775,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 +5800,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 +5815,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 +5840,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 +5850,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 +5875,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 +5900,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 +5909,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 +5924,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,30 +5940,34 @@ 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 {
- MarketId *big.Int
- CollateralType common.Address
- TokenAmount *big.Int
- Sender common.Address
- Raw types.Log // Blockchain specific contextual infos
+// CoreMarketCollateralDeposited represents a MarketCollateralDeposited event raised by the Core contract.
+type CoreMarketCollateralDeposited struct {
+ MarketId *big.Int
+ CollateralType common.Address
+ TokenAmount *big.Int
+ Sender common.Address
+ CreditCapacity *big.Int
+ NetIssuance *big.Int
+ DepositedCollateralValue *big.Int
+ ReportedDebt *big.Int
+ Raw types.Log // Blockchain specific contextual infos
}
-// FilterMarketCollateralDeposited is a free log retrieval operation binding the contract event 0x6affa35c1a0ba6198bd74578c93e3a0eb32a96af0af26ce8adf06b933212ca1b.
+// FilterMarketCollateralDeposited is a free log retrieval operation binding the contract event 0x0268c0025d1310f8cbf9a431c755af708633271b9b5902855857297267d6f41b.
//
-// 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) {
+// Solidity: event MarketCollateralDeposited(uint128 indexed marketId, address indexed collateralType, uint256 tokenAmount, address indexed sender, int128 creditCapacity, int128 netIssuance, uint256 depositedCollateralValue, uint256 reportedDebt)
+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 +5983,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.
+// WatchMarketCollateralDeposited is a free log subscription operation binding the contract event 0x0268c0025d1310f8cbf9a431c755af708633271b9b5902855857297267d6f41b.
//
-// 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) {
+// Solidity: event MarketCollateralDeposited(uint128 indexed marketId, address indexed collateralType, uint256 tokenAmount, address indexed sender, int128 creditCapacity, int128 netIssuance, uint256 depositedCollateralValue, uint256 reportedDebt)
+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 +6009,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 +6019,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
@@ -6000,21 +6041,21 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchMarketCollateralDeposited(opts *bind
}), nil
}
-// ParseMarketCollateralDeposited is a log parse operation binding the contract event 0x6affa35c1a0ba6198bd74578c93e3a0eb32a96af0af26ce8adf06b933212ca1b.
+// ParseMarketCollateralDeposited is a log parse operation binding the contract event 0x0268c0025d1310f8cbf9a431c755af708633271b9b5902855857297267d6f41b.
//
-// 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 {
+// Solidity: event MarketCollateralDeposited(uint128 indexed marketId, address indexed collateralType, uint256 tokenAmount, address indexed sender, int128 creditCapacity, int128 netIssuance, uint256 depositedCollateralValue, uint256 reportedDebt)
+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 +6069,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 +6078,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 +6093,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,30 +6109,34 @@ 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 {
- MarketId *big.Int
- CollateralType common.Address
- TokenAmount *big.Int
- Sender common.Address
- Raw types.Log // Blockchain specific contextual infos
+// CoreMarketCollateralWithdrawn represents a MarketCollateralWithdrawn event raised by the Core contract.
+type CoreMarketCollateralWithdrawn struct {
+ MarketId *big.Int
+ CollateralType common.Address
+ TokenAmount *big.Int
+ Sender common.Address
+ CreditCapacity *big.Int
+ NetIssuance *big.Int
+ DepositedCollateralValue *big.Int
+ ReportedDebt *big.Int
+ Raw types.Log // Blockchain specific contextual infos
}
-// FilterMarketCollateralWithdrawn is a free log retrieval operation binding the contract event 0x31fd88ca973dd7ee814313c50c2aaa7cd2d2142634582332b1e2671e6d97fd9a.
+// FilterMarketCollateralWithdrawn is a free log retrieval operation binding the contract event 0x88eb4cc1feb3af3a3e45798dc1d42ec34ef453093ffe0c56fc36e27abd2cc4d7.
//
-// 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) {
+// Solidity: event MarketCollateralWithdrawn(uint128 indexed marketId, address indexed collateralType, uint256 tokenAmount, address indexed sender, int128 creditCapacity, int128 netIssuance, uint256 depositedCollateralValue, uint256 reportedDebt)
+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 +6152,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.
+// WatchMarketCollateralWithdrawn is a free log subscription operation binding the contract event 0x88eb4cc1feb3af3a3e45798dc1d42ec34ef453093ffe0c56fc36e27abd2cc4d7.
//
-// 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) {
+// Solidity: event MarketCollateralWithdrawn(uint128 indexed marketId, address indexed collateralType, uint256 tokenAmount, address indexed sender, int128 creditCapacity, int128 netIssuance, uint256 depositedCollateralValue, uint256 reportedDebt)
+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 +6178,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 +6188,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
@@ -6165,21 +6210,21 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchMarketCollateralWithdrawn(opts *bind
}), nil
}
-// ParseMarketCollateralWithdrawn is a log parse operation binding the contract event 0x31fd88ca973dd7ee814313c50c2aaa7cd2d2142634582332b1e2671e6d97fd9a.
+// ParseMarketCollateralWithdrawn is a log parse operation binding the contract event 0x88eb4cc1feb3af3a3e45798dc1d42ec34ef453093ffe0c56fc36e27abd2cc4d7.
//
-// 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 {
+// Solidity: event MarketCollateralWithdrawn(uint128 indexed marketId, address indexed collateralType, uint256 tokenAmount, address indexed sender, int128 creditCapacity, int128 netIssuance, uint256 depositedCollateralValue, uint256 reportedDebt)
+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 +6238,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 +6247,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 +6262,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 +6278,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 +6300,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 +6315,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 +6340,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 +6350,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 +6375,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 +6400,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 +6409,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 +6424,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 +6440,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 +6461,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 +6495,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 +6520,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 +6545,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 +6554,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 +6569,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,30 +6585,34 @@ 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 {
- MarketId *big.Int
- Target common.Address
- Amount *big.Int
- Market common.Address
- Raw types.Log // Blockchain specific contextual infos
+// CoreMarketUsdDeposited represents a MarketUsdDeposited event raised by the Core contract.
+type CoreMarketUsdDeposited struct {
+ MarketId *big.Int
+ Target common.Address
+ Amount *big.Int
+ Market common.Address
+ CreditCapacity *big.Int
+ NetIssuance *big.Int
+ DepositedCollateralValue *big.Int
+ ReportedDebt *big.Int
+ Raw types.Log // Blockchain specific contextual infos
}
-// FilterMarketUsdDeposited is a free log retrieval operation binding the contract event 0xcbdbec7c74466ca0e764de5f6bca5bef859e31a7d6284be22ac6b4beabddf835.
+// FilterMarketUsdDeposited is a free log retrieval operation binding the contract event 0xf92dddcee1f7e80b04d1141159985b52e0dc3b69d26b9f67b714bf9ff70b4b85.
//
-// 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) {
+// Solidity: event MarketUsdDeposited(uint128 indexed marketId, address indexed target, uint256 amount, address indexed market, int128 creditCapacity, int128 netIssuance, uint256 depositedCollateralValue, uint256 reportedDebt)
+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 +6628,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.
+// WatchMarketUsdDeposited is a free log subscription operation binding the contract event 0xf92dddcee1f7e80b04d1141159985b52e0dc3b69d26b9f67b714bf9ff70b4b85.
//
-// 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) {
+// Solidity: event MarketUsdDeposited(uint128 indexed marketId, address indexed target, uint256 amount, address indexed market, int128 creditCapacity, int128 netIssuance, uint256 depositedCollateralValue, uint256 reportedDebt)
+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 +6654,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 +6664,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
@@ -6637,21 +6686,21 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchMarketUsdDeposited(opts *bind.WatchO
}), nil
}
-// ParseMarketUsdDeposited is a log parse operation binding the contract event 0xcbdbec7c74466ca0e764de5f6bca5bef859e31a7d6284be22ac6b4beabddf835.
+// ParseMarketUsdDeposited is a log parse operation binding the contract event 0xf92dddcee1f7e80b04d1141159985b52e0dc3b69d26b9f67b714bf9ff70b4b85.
//
-// 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 {
+// Solidity: event MarketUsdDeposited(uint128 indexed marketId, address indexed target, uint256 amount, address indexed market, int128 creditCapacity, int128 netIssuance, uint256 depositedCollateralValue, uint256 reportedDebt)
+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 +6714,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 +6723,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 +6738,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,30 +6754,34 @@ 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 {
- MarketId *big.Int
- Target common.Address
- Amount *big.Int
- Market common.Address
- Raw types.Log // Blockchain specific contextual infos
+// CoreMarketUsdWithdrawn represents a MarketUsdWithdrawn event raised by the Core contract.
+type CoreMarketUsdWithdrawn struct {
+ MarketId *big.Int
+ Target common.Address
+ Amount *big.Int
+ Market common.Address
+ CreditCapacity *big.Int
+ NetIssuance *big.Int
+ DepositedCollateralValue *big.Int
+ ReportedDebt *big.Int
+ Raw types.Log // Blockchain specific contextual infos
}
-// FilterMarketUsdWithdrawn is a free log retrieval operation binding the contract event 0x8669e4526579b1f1da479be2f96d1c7953fff439a4f98362a1c9ca07fe42ba41.
+// FilterMarketUsdWithdrawn is a free log retrieval operation binding the contract event 0x53e76a481a00b96d9b07448b333af94f26fbac5059ca153986bf2c98001c3f2c.
//
-// 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) {
+// Solidity: event MarketUsdWithdrawn(uint128 indexed marketId, address indexed target, uint256 amount, address indexed market, int128 creditCapacity, int128 netIssuance, uint256 depositedCollateralValue, uint256 reportedDebt)
+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 +6797,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.
+// WatchMarketUsdWithdrawn is a free log subscription operation binding the contract event 0x53e76a481a00b96d9b07448b333af94f26fbac5059ca153986bf2c98001c3f2c.
//
-// 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) {
+// Solidity: event MarketUsdWithdrawn(uint128 indexed marketId, address indexed target, uint256 amount, address indexed market, int128 creditCapacity, int128 netIssuance, uint256 depositedCollateralValue, uint256 reportedDebt)
+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 +6823,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 +6833,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
@@ -6802,21 +6855,21 @@ func (_CoreGoerli *CoreGoerliFilterer) WatchMarketUsdWithdrawn(opts *bind.WatchO
}), nil
}
-// ParseMarketUsdWithdrawn is a log parse operation binding the contract event 0x8669e4526579b1f1da479be2f96d1c7953fff439a4f98362a1c9ca07fe42ba41.
+// ParseMarketUsdWithdrawn is a log parse operation binding the contract event 0x53e76a481a00b96d9b07448b333af94f26fbac5059ca153986bf2c98001c3f2c.
//
-// 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 {
+// Solidity: event MarketUsdWithdrawn(uint128 indexed marketId, address indexed target, uint256 amount, address indexed market, int128 creditCapacity, int128 netIssuance, uint256 depositedCollateralValue, uint256 reportedDebt)
+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 +6883,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 +6892,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 +6907,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 +6923,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 +6946,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 +6962,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 +6988,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 +6998,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 +7023,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 +7048,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 +7057,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 +7072,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 +7088,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 +7108,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 +7132,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 +7157,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 +7182,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 +7191,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 +7206,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 +7222,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 +7243,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 +7267,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 +7292,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 +7317,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 +7326,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 +7341,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 +7357,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 +7377,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 +7401,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 +7426,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 +7451,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 +7460,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 +7475,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 +7491,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 +7514,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 +7529,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 +7554,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 +7564,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 +7589,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 +7614,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 +7623,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 +7638,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 +7654,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 +7677,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 +7692,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 +7717,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 +7727,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 +7752,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 +7777,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 +7786,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 +7801,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 +7817,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 +7837,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 +7861,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 +7886,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 +7911,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 +7920,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 +7935,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 +7951,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 +7971,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 +7995,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 +8020,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 +8045,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 +8054,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 +8069,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 +8085,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 +8107,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 +8141,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 +8166,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 +8191,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 +8200,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 +8215,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 +8231,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 +8252,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 +8276,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 +8301,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 +8326,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 +8335,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 +8350,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 +8366,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 +8388,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 +8400,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 +8422,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 +8432,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 +8457,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 +8482,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 +8491,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 +8506,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 +8522,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 +8544,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 +8559,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 +8584,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 +8594,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 +8619,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 +8644,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 +8653,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 +8668,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 +8684,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 +8706,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 +8718,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 +8740,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 +8750,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 +8775,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 +8800,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 +8809,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 +8824,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 +8840,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 +8861,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 +8872,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 +8893,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 +8903,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 +8928,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 +8953,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 +8962,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 +8977,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 +8993,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 +9014,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 +9025,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 +9046,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 +9056,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 +9081,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 +9106,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 +9115,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 +9130,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 +9146,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 +9168,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 +9183,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 +9208,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 +9218,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 +9243,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 +9268,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 +9277,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 +9292,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 +9308,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 +9329,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 +9340,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 +9361,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 +9371,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 +9396,171 @@ 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
+}
+
+// CorePoolOwnershipRenouncedIterator is returned from FilterPoolOwnershipRenounced and is used to iterate over the raw logs and unpacked data for PoolOwnershipRenounced events raised by the Core contract.
+type CorePoolOwnershipRenouncedIterator struct {
+ Event *CorePoolOwnershipRenounced // 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 *CorePoolOwnershipRenouncedIterator) 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(CorePoolOwnershipRenounced)
+ 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(CorePoolOwnershipRenounced)
+ 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 *CorePoolOwnershipRenouncedIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *CorePoolOwnershipRenouncedIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// CorePoolOwnershipRenounced represents a PoolOwnershipRenounced event raised by the Core contract.
+type CorePoolOwnershipRenounced struct {
+ PoolId *big.Int
+ Owner common.Address
+ Raw types.Log // Blockchain specific contextual infos
+}
+
+// FilterPoolOwnershipRenounced is a free log retrieval operation binding the contract event 0x0d1df5c898ce9334fe91f342f5c07b0eea630d388f90b4e07e85753d61252734.
+//
+// Solidity: event PoolOwnershipRenounced(uint128 indexed poolId, address indexed owner)
+func (_Core *CoreFilterer) FilterPoolOwnershipRenounced(opts *bind.FilterOpts, poolId []*big.Int, owner []common.Address) (*CorePoolOwnershipRenouncedIterator, 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 := _Core.contract.FilterLogs(opts, "PoolOwnershipRenounced", poolIdRule, ownerRule)
+ if err != nil {
+ return nil, err
+ }
+ return &CorePoolOwnershipRenouncedIterator{contract: _Core.contract, event: "PoolOwnershipRenounced", logs: logs, sub: sub}, nil
+}
+
+// WatchPoolOwnershipRenounced is a free log subscription operation binding the contract event 0x0d1df5c898ce9334fe91f342f5c07b0eea630d388f90b4e07e85753d61252734.
+//
+// Solidity: event PoolOwnershipRenounced(uint128 indexed poolId, address indexed owner)
+func (_Core *CoreFilterer) WatchPoolOwnershipRenounced(opts *bind.WatchOpts, sink chan<- *CorePoolOwnershipRenounced, 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 := _Core.contract.WatchLogs(opts, "PoolOwnershipRenounced", 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(CorePoolOwnershipRenounced)
+ if err := _Core.contract.UnpackLog(event, "PoolOwnershipRenounced", 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
+}
+
+// ParsePoolOwnershipRenounced is a log parse operation binding the contract event 0x0d1df5c898ce9334fe91f342f5c07b0eea630d388f90b4e07e85753d61252734.
+//
+// Solidity: event PoolOwnershipRenounced(uint128 indexed poolId, address indexed owner)
+func (_Core *CoreFilterer) ParsePoolOwnershipRenounced(log types.Log) (*CorePoolOwnershipRenounced, error) {
+ event := new(CorePoolOwnershipRenounced)
+ if err := _Core.contract.UnpackLog(event, "PoolOwnershipRenounced", 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 +9574,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 +9583,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 +9598,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 +9614,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 +9634,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 +9658,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 +9683,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 +9708,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 +9717,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 +9732,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 +9748,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 +9772,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 +9787,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 +9812,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 +9822,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 +9847,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 +9872,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 +9881,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 +9896,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 +9912,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 +9937,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 +9948,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 +9969,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 +9979,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 +10004,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 +10029,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 +10038,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 +10053,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 +10069,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 +10091,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 +10106,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 +10131,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 +10141,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 +10166,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 +10191,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 +10200,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 +10215,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 +10231,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 +10253,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 +10268,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 +10293,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 +10303,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 +10328,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 +10353,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 +10362,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 +10377,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 +10393,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 +10414,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 +10448,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 +10473,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 +10498,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 +10507,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 +10522,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 +10538,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 +10559,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 +10593,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 +10618,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 +10643,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 +10652,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 +10667,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 +10683,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 +10703,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 +10727,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 +10752,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 +10777,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 +10786,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 +10801,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 +10817,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 +10839,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 +10850,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 +10871,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 +10881,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 +10906,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 +10931,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 +10940,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 +10955,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 +10971,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 +10992,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 +11026,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 +11051,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 +11076,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 +11085,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 +11100,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 +11116,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 +11140,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 +11156,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 +11182,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 +11192,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 +11217,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 +11242,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 +11251,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 +11266,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 +11282,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 +11306,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 +11322,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 +11348,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 +11358,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 +11383,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 +11408,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 +11417,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 +11432,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 +11448,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 +11472,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 +11483,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 +11504,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 +11514,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 +11539,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 +11564,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 +11573,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 +11588,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 +11604,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 +11627,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 +11643,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 +11669,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 +11679,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 +11704,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/perpsMarket/contract.go b/contracts/perpsMarket/contract.go
new file mode 100644
index 0000000..0699bc5
--- /dev/null
+++ b/contracts/perpsMarket/contract.go
@@ -0,0 +1,9080 @@
+// Code generated - DO NOT EDIT.
+// This file is a generated binding and any manual changes will be lost.
+
+package perpsMarket
+
+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
+)
+
+// AsyncOrderData is an auto generated low-level Go binding around an user-defined struct.
+type AsyncOrderData struct {
+ CommitmentTime *big.Int
+ Request AsyncOrderOrderCommitmentRequest
+}
+
+// AsyncOrderOrderCommitmentRequest is an auto generated low-level Go binding around an user-defined struct.
+type AsyncOrderOrderCommitmentRequest struct {
+ MarketId *big.Int
+ AccountId *big.Int
+ SizeDelta *big.Int
+ SettlementStrategyId *big.Int
+ AcceptablePrice *big.Int
+ TrackingCode [32]byte
+ Referrer common.Address
+}
+
+// IAccountModuleAccountPermissions is an auto generated low-level Go binding around an user-defined struct.
+type IAccountModuleAccountPermissions struct {
+ User common.Address
+ Permissions [][32]byte
+}
+
+// IPerpsMarketModuleMarketSummary is an auto generated low-level Go binding around an user-defined struct.
+type IPerpsMarketModuleMarketSummary struct {
+ Skew *big.Int
+ Size *big.Int
+ MaxOpenInterest *big.Int
+ CurrentFundingRate *big.Int
+ CurrentFundingVelocity *big.Int
+ IndexPrice *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
+ Disabled bool
+}
+
+// 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\":\"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\":\"PerpsMarketAlreadyInitialized\",\"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\":[{\"internalType\":\"contractISynthetixSystem\",\"name\":\"synthetix\",\"type\":\"address\"},{\"internalType\":\"contractISpotMarketSystem\",\"name\":\"spotMarket\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"marketName\",\"type\":\"string\"}],\"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\":\"string\",\"name\":\"marketName\",\"type\":\"string\"}],\"name\":\"setPerpsMarketName\",\"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\":[],\"name\":\"KeeperCostsNotSet\",\"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\":\"getAccountCollateralIds\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"getAccountOpenPositions\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"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\":\"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\":\"uint256\",\"name\":\"settlementStrategyId\",\"type\":\"uint256\"}],\"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\":\"commitmentTime\",\"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\":\"commitmentTime\",\"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\":\"commitmentTime\",\"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\":\"commitmentTime\",\"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\":\"InsufficientAccountMargin\",\"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\":\"uint256\",\"name\":\"account\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"CollateralDeducted\",\"type\":\"event\"},{\"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\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"settleOrder\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"fillPrice\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"acceptablePrice\",\"type\":\"uint256\"}],\"name\":\"AcceptablePriceNotExceeded\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"desiredPrice\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fillPrice\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"int128\",\"name\":\"sizeDelta\",\"type\":\"int128\"},{\"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\":\"OrderCancelled\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"cancelOrder\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"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\":\"AccountLiquidationAttempt\",\"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\":[],\"name\":\"flaggedAccounts\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"accountIds\",\"type\":\"uint256[]\"}],\"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\":[{\"internalType\":\"uint256\",\"name\":\"maxNumberOfAccounts\",\"type\":\"uint256\"}],\"name\":\"liquidateFlagged\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"liquidationReward\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128[]\",\"name\":\"accountIds\",\"type\":\"uint128[]\"}],\"name\":\"liquidateFlaggedAccounts\",\"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\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"}],\"name\":\"InvalidSettlementWindowDuration\",\"type\":\"error\"},{\"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\":\"flagRewardRatioD18\",\"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\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"strictStalenessTolerance\",\"type\":\"uint256\"}],\"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\":\"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\":true,\"internalType\":\"uint256\",\"name\":\"strategyId\",\"type\":\"uint256\"},{\"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\":\"bool\",\"name\":\"disabled\",\"type\":\"bool\"}],\"indexed\":false,\"internalType\":\"structSettlementStrategy.Data\",\"name\":\"strategy\",\"type\":\"tuple\"}],\"name\":\"SettlementStrategySet\",\"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\":\"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\":\"flagRewardRatioD18\",\"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\":\"perpsMarketId\",\"type\":\"uint128\"}],\"name\":\"getPriceData\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"feedId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"strictStalenessTolerance\",\"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\":\"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\":\"flagRewardRatioD18\",\"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\"},{\"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\":\"bool\",\"name\":\"disabled\",\"type\":\"bool\"}],\"internalType\":\"structSettlementStrategy.Data\",\"name\":\"strategy\",\"type\":\"tuple\"}],\"name\":\"setSettlementStrategy\",\"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\"},{\"internalType\":\"uint256\",\"name\":\"strictStalenessTolerance\",\"type\":\"uint256\"}],\"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\":true,\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"maxCollateralAmount\",\"type\":\"uint256\"}],\"name\":\"CollateralConfigurationSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"feeCollector\",\"type\":\"address\"}],\"name\":\"FeeCollectorSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"keeperCostNodeId\",\"type\":\"bytes32\"}],\"name\":\"KeeperCostNodeIdUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"minKeeperRewardUsd\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"minKeeperProfitRatioD18\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"maxKeeperRewardUsd\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"maxKeeperScalingRatioD18\",\"type\":\"uint256\"}],\"name\":\"KeeperRewardGuardsSet\",\"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\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"}],\"name\":\"getCollateralConfiguration\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"maxCollateralAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getFeeCollector\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"feeCollector\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getKeeperCostNodeId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"keeperCostNodeId\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getKeeperRewardGuards\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"minKeeperRewardUsd\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minKeeperProfitRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxKeeperRewardUsd\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxKeeperScalingRatioD18\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getMarkets\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"marketIds\",\"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\":\"getSupportedCollaterals\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"supportedCollaterals\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getSynthDeductionPriority\",\"outputs\":[{\"internalType\":\"uint128[]\",\"name\":\"\",\"type\":\"uint128[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"maxCollateralAmount\",\"type\":\"uint256\"}],\"name\":\"setCollateralConfiguration\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"feeCollector\",\"type\":\"address\"}],\"name\":\"setFeeCollector\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"minKeeperRewardUsd\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minKeeperProfitRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxKeeperRewardUsd\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxKeeperScalingRatioD18\",\"type\":\"uint256\"}],\"name\":\"setKeeperRewardGuards\",\"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\":\"bytes32\",\"name\":\"keeperCostNodeId\",\"type\":\"bytes32\"}],\"name\":\"updateKeeperCostNodeId\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"shareRatioD18\",\"type\":\"uint256\"}],\"name\":\"updateReferrerShare\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
+}
+
+// PerpsMarketABI is the input ABI used to generate the binding from.
+// Deprecated: Use PerpsMarketMetaData.ABI instead.
+var PerpsMarketABI = PerpsMarketMetaData.ABI
+
+// 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
+}
+
+// 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
+}
+
+// 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
+}
+
+// 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
+}
+
+// PerpsMarketSession is an auto generated Go binding around an Ethereum contract,
+// with pre-set call and transact options.
+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
+}
+
+// PerpsMarketCallerSession is an auto generated read-only Go binding around an Ethereum contract,
+// with pre-set call options.
+type PerpsMarketCallerSession struct {
+ Contract *PerpsMarketCaller // Generic contract caller binding to set the session for
+ CallOpts bind.CallOpts // Call options to use throughout this session
+}
+
+// PerpsMarketTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
+// with pre-set transact options.
+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
+}
+
+// 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
+}
+
+// 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
+}
+
+// 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
+}
+
+// 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 &PerpsMarket{PerpsMarketCaller: PerpsMarketCaller{contract: contract}, PerpsMarketTransactor: PerpsMarketTransactor{contract: contract}, PerpsMarketFilterer: PerpsMarketFilterer{contract: contract}}, 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 &PerpsMarketCaller{contract: contract}, 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 &PerpsMarketTransactor{contract: contract}, nil
+}
+
+// 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 &PerpsMarketFilterer{contract: contract}, nil
+}
+
+// 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
+ }
+ 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 (_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 (_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 (_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 (_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 (_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 (_PerpsMarket *PerpsMarketTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
+ return _PerpsMarket.Contract.contract.Transact(opts, method, params...)
+}
+
+// CanLiquidate is a free data retrieval call binding the contract method 0x9b922bba.
+//
+// Solidity: function canLiquidate(uint128 accountId) view returns(bool isEligible)
+func (_PerpsMarket *PerpsMarketCaller) CanLiquidate(opts *bind.CallOpts, accountId *big.Int) (bool, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "canLiquidate", accountId)
+
+ if err != nil {
+ return *new(bool), err
+ }
+
+ out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
+
+ return out0, err
+
+}
+
+// CanLiquidate is a free data retrieval call binding the contract method 0x9b922bba.
+//
+// Solidity: function canLiquidate(uint128 accountId) view returns(bool isEligible)
+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 (_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 (_PerpsMarket *PerpsMarketCaller) ComputeOrderFees(opts *bind.CallOpts, marketId *big.Int, sizeDelta *big.Int) (struct {
+ OrderFees *big.Int
+ FillPrice *big.Int
+}, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "computeOrderFees", marketId, sizeDelta)
+
+ outstruct := new(struct {
+ OrderFees *big.Int
+ FillPrice *big.Int
+ })
+ if err != nil {
+ return *outstruct, err
+ }
+
+ outstruct.OrderFees = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
+ outstruct.FillPrice = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int)
+
+ return *outstruct, err
+
+}
+
+// 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 (_PerpsMarket *PerpsMarketSession) ComputeOrderFees(marketId *big.Int, sizeDelta *big.Int) (struct {
+ OrderFees *big.Int
+ FillPrice *big.Int
+}, error) {
+ 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 (_PerpsMarket *PerpsMarketCallerSession) ComputeOrderFees(marketId *big.Int, sizeDelta *big.Int) (struct {
+ OrderFees *big.Int
+ FillPrice *big.Int
+}, error) {
+ 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 (_PerpsMarket *PerpsMarketCaller) CurrentFundingRate(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "currentFundingRate", marketId)
+
+ if err != nil {
+ return *new(*big.Int), err
+ }
+
+ out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
+
+ return out0, err
+
+}
+
+// CurrentFundingRate is a free data retrieval call binding the contract method 0xd435b2a2.
+//
+// Solidity: function currentFundingRate(uint128 marketId) view returns(int256)
+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 (_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 (_PerpsMarket *PerpsMarketCaller) CurrentFundingVelocity(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "currentFundingVelocity", marketId)
+
+ if err != nil {
+ return *new(*big.Int), err
+ }
+
+ out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
+
+ return out0, err
+
+}
+
+// CurrentFundingVelocity is a free data retrieval call binding the contract method 0xf265db02.
+//
+// Solidity: function currentFundingVelocity(uint128 marketId) view returns(int256)
+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 (_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 (_PerpsMarket *PerpsMarketCaller) FillPrice(opts *bind.CallOpts, marketId *big.Int, orderSize *big.Int, price *big.Int) (*big.Int, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "fillPrice", marketId, orderSize, price)
+
+ if err != nil {
+ return *new(*big.Int), err
+ }
+
+ out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
+
+ return out0, err
+
+}
+
+// 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 (_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 (_PerpsMarket *PerpsMarketCallerSession) FillPrice(marketId *big.Int, orderSize *big.Int, price *big.Int) (*big.Int, error) {
+ return _PerpsMarket.Contract.FillPrice(&_PerpsMarket.CallOpts, marketId, orderSize, price)
+}
+
+// FlaggedAccounts is a free data retrieval call binding the contract method 0xa788d01f.
+//
+// Solidity: function flaggedAccounts() view returns(uint256[] accountIds)
+func (_PerpsMarket *PerpsMarketCaller) FlaggedAccounts(opts *bind.CallOpts) ([]*big.Int, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "flaggedAccounts")
+
+ if err != nil {
+ return *new([]*big.Int), err
+ }
+
+ out0 := *abi.ConvertType(out[0], new([]*big.Int)).(*[]*big.Int)
+
+ return out0, err
+
+}
+
+// FlaggedAccounts is a free data retrieval call binding the contract method 0xa788d01f.
+//
+// Solidity: function flaggedAccounts() view returns(uint256[] accountIds)
+func (_PerpsMarket *PerpsMarketSession) FlaggedAccounts() ([]*big.Int, error) {
+ return _PerpsMarket.Contract.FlaggedAccounts(&_PerpsMarket.CallOpts)
+}
+
+// FlaggedAccounts is a free data retrieval call binding the contract method 0xa788d01f.
+//
+// Solidity: function flaggedAccounts() view returns(uint256[] accountIds)
+func (_PerpsMarket *PerpsMarketCallerSession) FlaggedAccounts() ([]*big.Int, error) {
+ return _PerpsMarket.Contract.FlaggedAccounts(&_PerpsMarket.CallOpts)
+}
+
+// GetAccountCollateralIds is a free data retrieval call binding the contract method 0x9734ba0f.
+//
+// Solidity: function getAccountCollateralIds(uint128 accountId) view returns(uint256[])
+func (_PerpsMarket *PerpsMarketCaller) GetAccountCollateralIds(opts *bind.CallOpts, accountId *big.Int) ([]*big.Int, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "getAccountCollateralIds", accountId)
+
+ if err != nil {
+ return *new([]*big.Int), err
+ }
+
+ out0 := *abi.ConvertType(out[0], new([]*big.Int)).(*[]*big.Int)
+
+ return out0, err
+
+}
+
+// GetAccountCollateralIds is a free data retrieval call binding the contract method 0x9734ba0f.
+//
+// Solidity: function getAccountCollateralIds(uint128 accountId) view returns(uint256[])
+func (_PerpsMarket *PerpsMarketSession) GetAccountCollateralIds(accountId *big.Int) ([]*big.Int, error) {
+ return _PerpsMarket.Contract.GetAccountCollateralIds(&_PerpsMarket.CallOpts, accountId)
+}
+
+// GetAccountCollateralIds is a free data retrieval call binding the contract method 0x9734ba0f.
+//
+// Solidity: function getAccountCollateralIds(uint128 accountId) view returns(uint256[])
+func (_PerpsMarket *PerpsMarketCallerSession) GetAccountCollateralIds(accountId *big.Int) ([]*big.Int, error) {
+ return _PerpsMarket.Contract.GetAccountCollateralIds(&_PerpsMarket.CallOpts, accountId)
+}
+
+// GetAccountLastInteraction is a free data retrieval call binding the contract method 0x1b5dccdb.
+//
+// Solidity: function getAccountLastInteraction(uint128 accountId) view returns(uint256)
+func (_PerpsMarket *PerpsMarketCaller) GetAccountLastInteraction(opts *bind.CallOpts, accountId *big.Int) (*big.Int, error) {
+ var out []interface{}
+ err := _PerpsMarket.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 (_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 (_PerpsMarket *PerpsMarketCallerSession) GetAccountLastInteraction(accountId *big.Int) (*big.Int, error) {
+ return _PerpsMarket.Contract.GetAccountLastInteraction(&_PerpsMarket.CallOpts, accountId)
+}
+
+// GetAccountOpenPositions is a free data retrieval call binding the contract method 0x35254238.
+//
+// Solidity: function getAccountOpenPositions(uint128 accountId) view returns(uint256[])
+func (_PerpsMarket *PerpsMarketCaller) GetAccountOpenPositions(opts *bind.CallOpts, accountId *big.Int) ([]*big.Int, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "getAccountOpenPositions", accountId)
+
+ if err != nil {
+ return *new([]*big.Int), err
+ }
+
+ out0 := *abi.ConvertType(out[0], new([]*big.Int)).(*[]*big.Int)
+
+ return out0, err
+
+}
+
+// GetAccountOpenPositions is a free data retrieval call binding the contract method 0x35254238.
+//
+// Solidity: function getAccountOpenPositions(uint128 accountId) view returns(uint256[])
+func (_PerpsMarket *PerpsMarketSession) GetAccountOpenPositions(accountId *big.Int) ([]*big.Int, error) {
+ return _PerpsMarket.Contract.GetAccountOpenPositions(&_PerpsMarket.CallOpts, accountId)
+}
+
+// GetAccountOpenPositions is a free data retrieval call binding the contract method 0x35254238.
+//
+// Solidity: function getAccountOpenPositions(uint128 accountId) view returns(uint256[])
+func (_PerpsMarket *PerpsMarketCallerSession) GetAccountOpenPositions(accountId *big.Int) ([]*big.Int, error) {
+ return _PerpsMarket.Contract.GetAccountOpenPositions(&_PerpsMarket.CallOpts, accountId)
+}
+
+// GetAccountOwner is a free data retrieval call binding the contract method 0xbf60c31d.
+//
+// Solidity: function getAccountOwner(uint128 accountId) view returns(address)
+func (_PerpsMarket *PerpsMarketCaller) GetAccountOwner(opts *bind.CallOpts, accountId *big.Int) (common.Address, error) {
+ var out []interface{}
+ err := _PerpsMarket.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 (_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 (_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 (_PerpsMarket *PerpsMarketCaller) GetAccountPermissions(opts *bind.CallOpts, accountId *big.Int) ([]IAccountModuleAccountPermissions, error) {
+ var out []interface{}
+ err := _PerpsMarket.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 (_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 (_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 (_PerpsMarket *PerpsMarketCaller) GetAccountTokenAddress(opts *bind.CallOpts) (common.Address, error) {
+ var out []interface{}
+ err := _PerpsMarket.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 (_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 (_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 (_PerpsMarket *PerpsMarketCaller) GetAssociatedSystem(opts *bind.CallOpts, id [32]byte) (struct {
+ Addr common.Address
+ Kind [32]byte
+}, error) {
+ var out []interface{}
+ err := _PerpsMarket.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 (_PerpsMarket *PerpsMarketSession) GetAssociatedSystem(id [32]byte) (struct {
+ Addr common.Address
+ Kind [32]byte
+}, error) {
+ 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 (_PerpsMarket *PerpsMarketCallerSession) GetAssociatedSystem(id [32]byte) (struct {
+ Addr common.Address
+ Kind [32]byte
+}, error) {
+ 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 (_PerpsMarket *PerpsMarketCaller) GetAvailableMargin(opts *bind.CallOpts, accountId *big.Int) (*big.Int, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "getAvailableMargin", accountId)
+
+ if err != nil {
+ return *new(*big.Int), err
+ }
+
+ out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
+
+ return out0, err
+
+}
+
+// GetAvailableMargin is a free data retrieval call binding the contract method 0x0a7dad2d.
+//
+// Solidity: function getAvailableMargin(uint128 accountId) view returns(int256 availableMargin)
+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 (_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 (_PerpsMarket *PerpsMarketCaller) GetCollateralAmount(opts *bind.CallOpts, accountId *big.Int, synthMarketId *big.Int) (*big.Int, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "getCollateralAmount", accountId, synthMarketId)
+
+ if err != nil {
+ return *new(*big.Int), err
+ }
+
+ out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
+
+ return out0, err
+
+}
+
+// GetCollateralAmount is a free data retrieval call binding the contract method 0x5dbd5c9b.
+//
+// Solidity: function getCollateralAmount(uint128 accountId, uint128 synthMarketId) view returns(uint256)
+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 (_PerpsMarket *PerpsMarketCallerSession) GetCollateralAmount(accountId *big.Int, synthMarketId *big.Int) (*big.Int, error) {
+ return _PerpsMarket.Contract.GetCollateralAmount(&_PerpsMarket.CallOpts, accountId, synthMarketId)
+}
+
+// GetCollateralConfiguration is a free data retrieval call binding the contract method 0xfd51558e.
+//
+// Solidity: function getCollateralConfiguration(uint128 synthMarketId) view returns(uint256 maxCollateralAmount)
+func (_PerpsMarket *PerpsMarketCaller) GetCollateralConfiguration(opts *bind.CallOpts, synthMarketId *big.Int) (*big.Int, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "getCollateralConfiguration", synthMarketId)
+
+ if err != nil {
+ return *new(*big.Int), err
+ }
+
+ out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
+
+ return out0, err
+
+}
+
+// GetCollateralConfiguration is a free data retrieval call binding the contract method 0xfd51558e.
+//
+// Solidity: function getCollateralConfiguration(uint128 synthMarketId) view returns(uint256 maxCollateralAmount)
+func (_PerpsMarket *PerpsMarketSession) GetCollateralConfiguration(synthMarketId *big.Int) (*big.Int, error) {
+ return _PerpsMarket.Contract.GetCollateralConfiguration(&_PerpsMarket.CallOpts, synthMarketId)
+}
+
+// GetCollateralConfiguration is a free data retrieval call binding the contract method 0xfd51558e.
+//
+// Solidity: function getCollateralConfiguration(uint128 synthMarketId) view returns(uint256 maxCollateralAmount)
+func (_PerpsMarket *PerpsMarketCallerSession) GetCollateralConfiguration(synthMarketId *big.Int) (*big.Int, error) {
+ return _PerpsMarket.Contract.GetCollateralConfiguration(&_PerpsMarket.CallOpts, synthMarketId)
+}
+
+// GetDeniers is a free data retrieval call binding the contract method 0xed429cf7.
+//
+// Solidity: function getDeniers(bytes32 feature) view returns(address[])
+func (_PerpsMarket *PerpsMarketCaller) GetDeniers(opts *bind.CallOpts, feature [32]byte) ([]common.Address, error) {
+ var out []interface{}
+ err := _PerpsMarket.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 (_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 (_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 (_PerpsMarket *PerpsMarketCaller) GetFeatureFlagAllowAll(opts *bind.CallOpts, feature [32]byte) (bool, error) {
+ var out []interface{}
+ err := _PerpsMarket.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 (_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 (_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 (_PerpsMarket *PerpsMarketCaller) GetFeatureFlagAllowlist(opts *bind.CallOpts, feature [32]byte) ([]common.Address, error) {
+ var out []interface{}
+ err := _PerpsMarket.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 (_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 (_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 (_PerpsMarket *PerpsMarketCaller) GetFeatureFlagDenyAll(opts *bind.CallOpts, feature [32]byte) (bool, error) {
+ var out []interface{}
+ err := _PerpsMarket.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 (_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 (_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 (_PerpsMarket *PerpsMarketCaller) GetFeeCollector(opts *bind.CallOpts) (common.Address, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "getFeeCollector")
+
+ 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 0x12fde4b7.
+//
+// Solidity: function getFeeCollector() view returns(address feeCollector)
+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 (_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 (_PerpsMarket *PerpsMarketCaller) GetFundingParameters(opts *bind.CallOpts, marketId *big.Int) (struct {
+ SkewScale *big.Int
+ MaxFundingVelocity *big.Int
+}, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "getFundingParameters", marketId)
+
+ outstruct := new(struct {
+ SkewScale *big.Int
+ MaxFundingVelocity *big.Int
+ })
+ if err != nil {
+ return *outstruct, err
+ }
+
+ outstruct.SkewScale = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
+ outstruct.MaxFundingVelocity = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int)
+
+ return *outstruct, err
+
+}
+
+// GetFundingParameters is a free data retrieval call binding the contract method 0x1b68d8fa.
+//
+// Solidity: function getFundingParameters(uint128 marketId) view returns(uint256 skewScale, uint256 maxFundingVelocity)
+func (_PerpsMarket *PerpsMarketSession) GetFundingParameters(marketId *big.Int) (struct {
+ SkewScale *big.Int
+ MaxFundingVelocity *big.Int
+}, error) {
+ 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 (_PerpsMarket *PerpsMarketCallerSession) GetFundingParameters(marketId *big.Int) (struct {
+ SkewScale *big.Int
+ MaxFundingVelocity *big.Int
+}, error) {
+ 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 (_PerpsMarket *PerpsMarketCaller) GetImplementation(opts *bind.CallOpts) (common.Address, error) {
+ var out []interface{}
+ err := _PerpsMarket.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 (_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 (_PerpsMarket *PerpsMarketCallerSession) GetImplementation() (common.Address, error) {
+ return _PerpsMarket.Contract.GetImplementation(&_PerpsMarket.CallOpts)
+}
+
+// GetKeeperCostNodeId is a free data retrieval call binding the contract method 0x1f4653bb.
+//
+// Solidity: function getKeeperCostNodeId() view returns(bytes32 keeperCostNodeId)
+func (_PerpsMarket *PerpsMarketCaller) GetKeeperCostNodeId(opts *bind.CallOpts) ([32]byte, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "getKeeperCostNodeId")
+
+ if err != nil {
+ return *new([32]byte), err
+ }
+
+ out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)
+
+ return out0, err
+
+}
+
+// GetKeeperCostNodeId is a free data retrieval call binding the contract method 0x1f4653bb.
+//
+// Solidity: function getKeeperCostNodeId() view returns(bytes32 keeperCostNodeId)
+func (_PerpsMarket *PerpsMarketSession) GetKeeperCostNodeId() ([32]byte, error) {
+ return _PerpsMarket.Contract.GetKeeperCostNodeId(&_PerpsMarket.CallOpts)
+}
+
+// GetKeeperCostNodeId is a free data retrieval call binding the contract method 0x1f4653bb.
+//
+// Solidity: function getKeeperCostNodeId() view returns(bytes32 keeperCostNodeId)
+func (_PerpsMarket *PerpsMarketCallerSession) GetKeeperCostNodeId() ([32]byte, error) {
+ return _PerpsMarket.Contract.GetKeeperCostNodeId(&_PerpsMarket.CallOpts)
+}
+
+// GetKeeperRewardGuards is a free data retrieval call binding the contract method 0x26e77e84.
+//
+// Solidity: function getKeeperRewardGuards() view returns(uint256 minKeeperRewardUsd, uint256 minKeeperProfitRatioD18, uint256 maxKeeperRewardUsd, uint256 maxKeeperScalingRatioD18)
+func (_PerpsMarket *PerpsMarketCaller) GetKeeperRewardGuards(opts *bind.CallOpts) (struct {
+ MinKeeperRewardUsd *big.Int
+ MinKeeperProfitRatioD18 *big.Int
+ MaxKeeperRewardUsd *big.Int
+ MaxKeeperScalingRatioD18 *big.Int
+}, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "getKeeperRewardGuards")
+
+ outstruct := new(struct {
+ MinKeeperRewardUsd *big.Int
+ MinKeeperProfitRatioD18 *big.Int
+ MaxKeeperRewardUsd *big.Int
+ MaxKeeperScalingRatioD18 *big.Int
+ })
+ if err != nil {
+ return *outstruct, err
+ }
+
+ outstruct.MinKeeperRewardUsd = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
+ outstruct.MinKeeperProfitRatioD18 = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int)
+ outstruct.MaxKeeperRewardUsd = *abi.ConvertType(out[2], new(*big.Int)).(**big.Int)
+ outstruct.MaxKeeperScalingRatioD18 = *abi.ConvertType(out[3], new(*big.Int)).(**big.Int)
+
+ return *outstruct, err
+
+}
+
+// GetKeeperRewardGuards is a free data retrieval call binding the contract method 0x26e77e84.
+//
+// Solidity: function getKeeperRewardGuards() view returns(uint256 minKeeperRewardUsd, uint256 minKeeperProfitRatioD18, uint256 maxKeeperRewardUsd, uint256 maxKeeperScalingRatioD18)
+func (_PerpsMarket *PerpsMarketSession) GetKeeperRewardGuards() (struct {
+ MinKeeperRewardUsd *big.Int
+ MinKeeperProfitRatioD18 *big.Int
+ MaxKeeperRewardUsd *big.Int
+ MaxKeeperScalingRatioD18 *big.Int
+}, error) {
+ return _PerpsMarket.Contract.GetKeeperRewardGuards(&_PerpsMarket.CallOpts)
+}
+
+// GetKeeperRewardGuards is a free data retrieval call binding the contract method 0x26e77e84.
+//
+// Solidity: function getKeeperRewardGuards() view returns(uint256 minKeeperRewardUsd, uint256 minKeeperProfitRatioD18, uint256 maxKeeperRewardUsd, uint256 maxKeeperScalingRatioD18)
+func (_PerpsMarket *PerpsMarketCallerSession) GetKeeperRewardGuards() (struct {
+ MinKeeperRewardUsd *big.Int
+ MinKeeperProfitRatioD18 *big.Int
+ MaxKeeperRewardUsd *big.Int
+ MaxKeeperScalingRatioD18 *big.Int
+}, error) {
+ return _PerpsMarket.Contract.GetKeeperRewardGuards(&_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 flagRewardRatioD18, uint256 minimumPositionMargin)
+func (_PerpsMarket *PerpsMarketCaller) GetLiquidationParameters(opts *bind.CallOpts, marketId *big.Int) (struct {
+ InitialMarginRatioD18 *big.Int
+ MinimumInitialMarginRatioD18 *big.Int
+ MaintenanceMarginScalarD18 *big.Int
+ FlagRewardRatioD18 *big.Int
+ MinimumPositionMargin *big.Int
+}, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "getLiquidationParameters", marketId)
+
+ outstruct := new(struct {
+ InitialMarginRatioD18 *big.Int
+ MinimumInitialMarginRatioD18 *big.Int
+ MaintenanceMarginScalarD18 *big.Int
+ FlagRewardRatioD18 *big.Int
+ MinimumPositionMargin *big.Int
+ })
+ if err != nil {
+ return *outstruct, err
+ }
+
+ outstruct.InitialMarginRatioD18 = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
+ outstruct.MinimumInitialMarginRatioD18 = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int)
+ outstruct.MaintenanceMarginScalarD18 = *abi.ConvertType(out[2], new(*big.Int)).(**big.Int)
+ outstruct.FlagRewardRatioD18 = *abi.ConvertType(out[3], new(*big.Int)).(**big.Int)
+ outstruct.MinimumPositionMargin = *abi.ConvertType(out[4], new(*big.Int)).(**big.Int)
+
+ return *outstruct, err
+
+}
+
+// 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 flagRewardRatioD18, uint256 minimumPositionMargin)
+func (_PerpsMarket *PerpsMarketSession) GetLiquidationParameters(marketId *big.Int) (struct {
+ InitialMarginRatioD18 *big.Int
+ MinimumInitialMarginRatioD18 *big.Int
+ MaintenanceMarginScalarD18 *big.Int
+ FlagRewardRatioD18 *big.Int
+ MinimumPositionMargin *big.Int
+}, error) {
+ 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 flagRewardRatioD18, uint256 minimumPositionMargin)
+func (_PerpsMarket *PerpsMarketCallerSession) GetLiquidationParameters(marketId *big.Int) (struct {
+ InitialMarginRatioD18 *big.Int
+ MinimumInitialMarginRatioD18 *big.Int
+ MaintenanceMarginScalarD18 *big.Int
+ FlagRewardRatioD18 *big.Int
+ MinimumPositionMargin *big.Int
+}, error) {
+ return _PerpsMarket.Contract.GetLiquidationParameters(&_PerpsMarket.CallOpts, marketId)
+}
+
+// GetLockedOiRatio is a free data retrieval call binding the contract method 0x31edc046.
+//
+// Solidity: function getLockedOiRatio(uint128 marketId) view returns(uint256)
+func (_PerpsMarket *PerpsMarketCaller) GetLockedOiRatio(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "getLockedOiRatio", marketId)
+
+ if err != nil {
+ return *new(*big.Int), err
+ }
+
+ out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
+
+ return out0, err
+
+}
+
+// GetLockedOiRatio is a free data retrieval call binding the contract method 0x31edc046.
+//
+// Solidity: function getLockedOiRatio(uint128 marketId) view returns(uint256)
+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 (_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 (_PerpsMarket *PerpsMarketCaller) GetMarketSummary(opts *bind.CallOpts, marketId *big.Int) (IPerpsMarketModuleMarketSummary, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "getMarketSummary", marketId)
+
+ if err != nil {
+ return *new(IPerpsMarketModuleMarketSummary), err
+ }
+
+ out0 := *abi.ConvertType(out[0], new(IPerpsMarketModuleMarketSummary)).(*IPerpsMarketModuleMarketSummary)
+
+ return out0, err
+
+}
+
+// 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 (_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 (_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 (_PerpsMarket *PerpsMarketCaller) GetMarkets(opts *bind.CallOpts) ([]*big.Int, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "getMarkets")
+
+ if err != nil {
+ return *new([]*big.Int), err
+ }
+
+ out0 := *abi.ConvertType(out[0], new([]*big.Int)).(*[]*big.Int)
+
+ return out0, err
+
+}
+
+// GetMarkets is a free data retrieval call binding the contract method 0xec2c9016.
+//
+// Solidity: function getMarkets() view returns(uint256[] marketIds)
+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 (_PerpsMarket *PerpsMarketCallerSession) GetMarkets() ([]*big.Int, error) {
+ return _PerpsMarket.Contract.GetMarkets(&_PerpsMarket.CallOpts)
+}
+
+// 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 (_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 := _PerpsMarket.contract.Call(opts, &out, "getMaxLiquidationParameters", marketId)
+
+ outstruct := new(struct {
+ MaxLiquidationLimitAccumulationMultiplier *big.Int
+ MaxSecondsInLiquidationWindow *big.Int
+ MaxLiquidationPd *big.Int
+ EndorsedLiquidator common.Address
+ })
+ if err != nil {
+ return *outstruct, err
+ }
+
+ outstruct.MaxLiquidationLimitAccumulationMultiplier = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
+ outstruct.MaxSecondsInLiquidationWindow = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int)
+ outstruct.MaxLiquidationPd = *abi.ConvertType(out[2], new(*big.Int)).(**big.Int)
+ outstruct.EndorsedLiquidator = *abi.ConvertType(out[3], new(common.Address)).(*common.Address)
+
+ return *outstruct, err
+
+}
+
+// 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 (_PerpsMarket *PerpsMarketSession) GetMaxLiquidationParameters(marketId *big.Int) (struct {
+ MaxLiquidationLimitAccumulationMultiplier *big.Int
+ MaxSecondsInLiquidationWindow *big.Int
+ MaxLiquidationPd *big.Int
+ EndorsedLiquidator common.Address
+}, error) {
+ 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 (_PerpsMarket *PerpsMarketCallerSession) GetMaxLiquidationParameters(marketId *big.Int) (struct {
+ MaxLiquidationLimitAccumulationMultiplier *big.Int
+ MaxSecondsInLiquidationWindow *big.Int
+ MaxLiquidationPd *big.Int
+ EndorsedLiquidator common.Address
+}, error) {
+ 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 (_PerpsMarket *PerpsMarketCaller) GetMaxMarketSize(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "getMaxMarketSize", marketId)
+
+ if err != nil {
+ return *new(*big.Int), err
+ }
+
+ out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
+
+ return out0, err
+
+}
+
+// GetMaxMarketSize is a free data retrieval call binding the contract method 0x19a99bf5.
+//
+// Solidity: function getMaxMarketSize(uint128 marketId) view returns(uint256 maxMarketSize)
+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 (_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 (_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 := _PerpsMarket.contract.Call(opts, &out, "getOpenPosition", accountId, marketId)
+
+ outstruct := new(struct {
+ TotalPnl *big.Int
+ AccruedFunding *big.Int
+ PositionSize *big.Int
+ })
+ if err != nil {
+ return *outstruct, err
+ }
+
+ outstruct.TotalPnl = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
+ outstruct.AccruedFunding = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int)
+ outstruct.PositionSize = *abi.ConvertType(out[2], new(*big.Int)).(**big.Int)
+
+ return *outstruct, err
+
+}
+
+// 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 (_PerpsMarket *PerpsMarketSession) GetOpenPosition(accountId *big.Int, marketId *big.Int) (struct {
+ TotalPnl *big.Int
+ AccruedFunding *big.Int
+ PositionSize *big.Int
+}, error) {
+ 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 (_PerpsMarket *PerpsMarketCallerSession) GetOpenPosition(accountId *big.Int, marketId *big.Int) (struct {
+ TotalPnl *big.Int
+ AccruedFunding *big.Int
+ PositionSize *big.Int
+}, error) {
+ 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 (_PerpsMarket *PerpsMarketCaller) GetOrder(opts *bind.CallOpts, accountId *big.Int) (AsyncOrderData, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "getOrder", accountId)
+
+ if err != nil {
+ return *new(AsyncOrderData), err
+ }
+
+ out0 := *abi.ConvertType(out[0], new(AsyncOrderData)).(*AsyncOrderData)
+
+ return out0, err
+
+}
+
+// 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 (_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 (_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 (_PerpsMarket *PerpsMarketCaller) GetOrderFees(opts *bind.CallOpts, marketId *big.Int) (struct {
+ MakerFee *big.Int
+ TakerFee *big.Int
+}, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "getOrderFees", marketId)
+
+ outstruct := new(struct {
+ MakerFee *big.Int
+ TakerFee *big.Int
+ })
+ if err != nil {
+ return *outstruct, err
+ }
+
+ outstruct.MakerFee = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
+ outstruct.TakerFee = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int)
+
+ return *outstruct, err
+
+}
+
+// GetOrderFees is a free data retrieval call binding the contract method 0xaac23e8c.
+//
+// Solidity: function getOrderFees(uint128 marketId) view returns(uint256 makerFee, uint256 takerFee)
+func (_PerpsMarket *PerpsMarketSession) GetOrderFees(marketId *big.Int) (struct {
+ MakerFee *big.Int
+ TakerFee *big.Int
+}, error) {
+ 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 (_PerpsMarket *PerpsMarketCallerSession) GetOrderFees(marketId *big.Int) (struct {
+ MakerFee *big.Int
+ TakerFee *big.Int
+}, error) {
+ 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 (_PerpsMarket *PerpsMarketCaller) GetPerAccountCaps(opts *bind.CallOpts) (struct {
+ MaxPositionsPerAccount *big.Int
+ MaxCollateralsPerAccount *big.Int
+}, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "getPerAccountCaps")
+
+ outstruct := new(struct {
+ MaxPositionsPerAccount *big.Int
+ MaxCollateralsPerAccount *big.Int
+ })
+ if err != nil {
+ return *outstruct, err
+ }
+
+ outstruct.MaxPositionsPerAccount = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
+ outstruct.MaxCollateralsPerAccount = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int)
+
+ return *outstruct, err
+
+}
+
+// GetPerAccountCaps is a free data retrieval call binding the contract method 0x774f7b07.
+//
+// Solidity: function getPerAccountCaps() view returns(uint128 maxPositionsPerAccount, uint128 maxCollateralsPerAccount)
+func (_PerpsMarket *PerpsMarketSession) GetPerAccountCaps() (struct {
+ MaxPositionsPerAccount *big.Int
+ MaxCollateralsPerAccount *big.Int
+}, error) {
+ 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 (_PerpsMarket *PerpsMarketCallerSession) GetPerAccountCaps() (struct {
+ MaxPositionsPerAccount *big.Int
+ MaxCollateralsPerAccount *big.Int
+}, error) {
+ return _PerpsMarket.Contract.GetPerAccountCaps(&_PerpsMarket.CallOpts)
+}
+
+// GetPriceData is a free data retrieval call binding the contract method 0x462b9a2d.
+//
+// Solidity: function getPriceData(uint128 perpsMarketId) view returns(bytes32 feedId, uint256 strictStalenessTolerance)
+func (_PerpsMarket *PerpsMarketCaller) GetPriceData(opts *bind.CallOpts, perpsMarketId *big.Int) (struct {
+ FeedId [32]byte
+ StrictStalenessTolerance *big.Int
+}, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "getPriceData", perpsMarketId)
+
+ outstruct := new(struct {
+ FeedId [32]byte
+ StrictStalenessTolerance *big.Int
+ })
+ if err != nil {
+ return *outstruct, err
+ }
+
+ outstruct.FeedId = *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)
+ outstruct.StrictStalenessTolerance = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int)
+
+ return *outstruct, err
+
+}
+
+// GetPriceData is a free data retrieval call binding the contract method 0x462b9a2d.
+//
+// Solidity: function getPriceData(uint128 perpsMarketId) view returns(bytes32 feedId, uint256 strictStalenessTolerance)
+func (_PerpsMarket *PerpsMarketSession) GetPriceData(perpsMarketId *big.Int) (struct {
+ FeedId [32]byte
+ StrictStalenessTolerance *big.Int
+}, error) {
+ return _PerpsMarket.Contract.GetPriceData(&_PerpsMarket.CallOpts, perpsMarketId)
+}
+
+// GetPriceData is a free data retrieval call binding the contract method 0x462b9a2d.
+//
+// Solidity: function getPriceData(uint128 perpsMarketId) view returns(bytes32 feedId, uint256 strictStalenessTolerance)
+func (_PerpsMarket *PerpsMarketCallerSession) GetPriceData(perpsMarketId *big.Int) (struct {
+ FeedId [32]byte
+ StrictStalenessTolerance *big.Int
+}, error) {
+ return _PerpsMarket.Contract.GetPriceData(&_PerpsMarket.CallOpts, perpsMarketId)
+}
+
+// GetReferrerShare is a free data retrieval call binding the contract method 0xcae77b70.
+//
+// Solidity: function getReferrerShare(address referrer) view returns(uint256 shareRatioD18)
+func (_PerpsMarket *PerpsMarketCaller) GetReferrerShare(opts *bind.CallOpts, referrer common.Address) (*big.Int, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "getReferrerShare", 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 0xcae77b70.
+//
+// Solidity: function getReferrerShare(address referrer) view returns(uint256 shareRatioD18)
+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 (_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 maxLiquidationReward)
+func (_PerpsMarket *PerpsMarketCaller) GetRequiredMargins(opts *bind.CallOpts, accountId *big.Int) (struct {
+ RequiredInitialMargin *big.Int
+ RequiredMaintenanceMargin *big.Int
+ MaxLiquidationReward *big.Int
+}, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "getRequiredMargins", accountId)
+
+ outstruct := new(struct {
+ RequiredInitialMargin *big.Int
+ RequiredMaintenanceMargin *big.Int
+ MaxLiquidationReward *big.Int
+ })
+ if err != nil {
+ return *outstruct, err
+ }
+
+ outstruct.RequiredInitialMargin = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
+ outstruct.RequiredMaintenanceMargin = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int)
+ outstruct.MaxLiquidationReward = *abi.ConvertType(out[2], new(*big.Int)).(**big.Int)
+
+ return *outstruct, err
+
+}
+
+// GetRequiredMargins is a free data retrieval call binding the contract method 0x3c0f0753.
+//
+// Solidity: function getRequiredMargins(uint128 accountId) view returns(uint256 requiredInitialMargin, uint256 requiredMaintenanceMargin, uint256 maxLiquidationReward)
+func (_PerpsMarket *PerpsMarketSession) GetRequiredMargins(accountId *big.Int) (struct {
+ RequiredInitialMargin *big.Int
+ RequiredMaintenanceMargin *big.Int
+ MaxLiquidationReward *big.Int
+}, error) {
+ 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 maxLiquidationReward)
+func (_PerpsMarket *PerpsMarketCallerSession) GetRequiredMargins(accountId *big.Int) (struct {
+ RequiredInitialMargin *big.Int
+ RequiredMaintenanceMargin *big.Int
+ MaxLiquidationReward *big.Int
+}, error) {
+ 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,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 := _PerpsMarket.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,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,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)
+}
+
+// GetSupportedCollaterals is a free data retrieval call binding the contract method 0x05db8a69.
+//
+// Solidity: function getSupportedCollaterals() view returns(uint256[] supportedCollaterals)
+func (_PerpsMarket *PerpsMarketCaller) GetSupportedCollaterals(opts *bind.CallOpts) ([]*big.Int, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "getSupportedCollaterals")
+
+ if err != nil {
+ return *new([]*big.Int), err
+ }
+
+ out0 := *abi.ConvertType(out[0], new([]*big.Int)).(*[]*big.Int)
+
+ return out0, err
+
+}
+
+// GetSupportedCollaterals is a free data retrieval call binding the contract method 0x05db8a69.
+//
+// Solidity: function getSupportedCollaterals() view returns(uint256[] supportedCollaterals)
+func (_PerpsMarket *PerpsMarketSession) GetSupportedCollaterals() ([]*big.Int, error) {
+ return _PerpsMarket.Contract.GetSupportedCollaterals(&_PerpsMarket.CallOpts)
+}
+
+// GetSupportedCollaterals is a free data retrieval call binding the contract method 0x05db8a69.
+//
+// Solidity: function getSupportedCollaterals() view returns(uint256[] supportedCollaterals)
+func (_PerpsMarket *PerpsMarketCallerSession) GetSupportedCollaterals() ([]*big.Int, error) {
+ return _PerpsMarket.Contract.GetSupportedCollaterals(&_PerpsMarket.CallOpts)
+}
+
+// GetSynthDeductionPriority is a free data retrieval call binding the contract method 0xfea84a3f.
+//
+// Solidity: function getSynthDeductionPriority() view returns(uint128[])
+func (_PerpsMarket *PerpsMarketCaller) GetSynthDeductionPriority(opts *bind.CallOpts) ([]*big.Int, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "getSynthDeductionPriority")
+
+ if err != nil {
+ return *new([]*big.Int), err
+ }
+
+ out0 := *abi.ConvertType(out[0], new([]*big.Int)).(*[]*big.Int)
+
+ return out0, err
+
+}
+
+// GetSynthDeductionPriority is a free data retrieval call binding the contract method 0xfea84a3f.
+//
+// Solidity: function getSynthDeductionPriority() view returns(uint128[])
+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 (_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 (_PerpsMarket *PerpsMarketCaller) GetWithdrawableMargin(opts *bind.CallOpts, accountId *big.Int) (*big.Int, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "getWithdrawableMargin", accountId)
+
+ if err != nil {
+ return *new(*big.Int), err
+ }
+
+ out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
+
+ return out0, err
+
+}
+
+// GetWithdrawableMargin is a free data retrieval call binding the contract method 0x04aa363e.
+//
+// Solidity: function getWithdrawableMargin(uint128 accountId) view returns(int256 withdrawableMargin)
+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 (_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 (_PerpsMarket *PerpsMarketCaller) HasPermission(opts *bind.CallOpts, accountId *big.Int, permission [32]byte, user common.Address) (bool, error) {
+ var out []interface{}
+ err := _PerpsMarket.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 (_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 (_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 (_PerpsMarket *PerpsMarketCaller) IndexPrice(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "indexPrice", marketId)
+
+ if err != nil {
+ return *new(*big.Int), err
+ }
+
+ out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
+
+ return out0, err
+
+}
+
+// IndexPrice is a free data retrieval call binding the contract method 0x4f778fb4.
+//
+// Solidity: function indexPrice(uint128 marketId) view returns(uint256)
+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 (_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 (_PerpsMarket *PerpsMarketCaller) IsAuthorized(opts *bind.CallOpts, accountId *big.Int, permission [32]byte, user common.Address) (bool, error) {
+ var out []interface{}
+ err := _PerpsMarket.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 (_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 (_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 (_PerpsMarket *PerpsMarketCaller) IsFeatureAllowed(opts *bind.CallOpts, feature [32]byte, account common.Address) (bool, error) {
+ var out []interface{}
+ err := _PerpsMarket.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 (_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 (_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 (_PerpsMarket *PerpsMarketCaller) MaxOpenInterest(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "maxOpenInterest", marketId)
+
+ if err != nil {
+ return *new(*big.Int), err
+ }
+
+ out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
+
+ return out0, err
+
+}
+
+// MaxOpenInterest is a free data retrieval call binding the contract method 0x0e7cace9.
+//
+// Solidity: function maxOpenInterest(uint128 marketId) view returns(uint256)
+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 (_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 (_PerpsMarket *PerpsMarketCaller) Metadata(opts *bind.CallOpts, marketId *big.Int) (struct {
+ Name string
+ Symbol string
+}, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "metadata", marketId)
+
+ outstruct := new(struct {
+ Name string
+ Symbol string
+ })
+ if err != nil {
+ return *outstruct, err
+ }
+
+ outstruct.Name = *abi.ConvertType(out[0], new(string)).(*string)
+ outstruct.Symbol = *abi.ConvertType(out[1], new(string)).(*string)
+
+ return *outstruct, err
+
+}
+
+// Metadata is a free data retrieval call binding the contract method 0xe3bc36bf.
+//
+// Solidity: function metadata(uint128 marketId) view returns(string name, string symbol)
+func (_PerpsMarket *PerpsMarketSession) Metadata(marketId *big.Int) (struct {
+ Name string
+ Symbol string
+}, error) {
+ 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 (_PerpsMarket *PerpsMarketCallerSession) Metadata(marketId *big.Int) (struct {
+ Name string
+ Symbol string
+}, error) {
+ 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 (_PerpsMarket *PerpsMarketCaller) MinimumCredit(opts *bind.CallOpts, perpsMarketId *big.Int) (*big.Int, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "minimumCredit", perpsMarketId)
+
+ 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 perpsMarketId) view returns(uint256)
+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 (_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 (_PerpsMarket *PerpsMarketCaller) Name(opts *bind.CallOpts, perpsMarketId *big.Int) (string, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "name", perpsMarketId)
+
+ 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 perpsMarketId) view returns(string)
+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 (_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 (_PerpsMarket *PerpsMarketCaller) NominatedOwner(opts *bind.CallOpts) (common.Address, error) {
+ var out []interface{}
+ err := _PerpsMarket.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 (_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 (_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 (_PerpsMarket *PerpsMarketCaller) Owner(opts *bind.CallOpts) (common.Address, error) {
+ var out []interface{}
+ err := _PerpsMarket.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 (_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 (_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 (_PerpsMarket *PerpsMarketCaller) ReportedDebt(opts *bind.CallOpts, perpsMarketId *big.Int) (*big.Int, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "reportedDebt", perpsMarketId)
+
+ 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 perpsMarketId) view returns(uint256)
+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 (_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 (_PerpsMarket *PerpsMarketCaller) RequiredMarginForOrder(opts *bind.CallOpts, accountId *big.Int, marketId *big.Int, sizeDelta *big.Int) (*big.Int, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "requiredMarginForOrder", accountId, marketId, sizeDelta)
+
+ if err != nil {
+ return *new(*big.Int), err
+ }
+
+ out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
+
+ return out0, err
+
+}
+
+// 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 (_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 (_PerpsMarket *PerpsMarketCallerSession) RequiredMarginForOrder(accountId *big.Int, marketId *big.Int, sizeDelta *big.Int) (*big.Int, error) {
+ return _PerpsMarket.Contract.RequiredMarginForOrder(&_PerpsMarket.CallOpts, accountId, marketId, sizeDelta)
+}
+
+// Size is a free data retrieval call binding the contract method 0x2b267635.
+//
+// Solidity: function size(uint128 marketId) view returns(uint256)
+func (_PerpsMarket *PerpsMarketCaller) Size(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "size", marketId)
+
+ if err != nil {
+ return *new(*big.Int), err
+ }
+
+ out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
+
+ return out0, err
+
+}
+
+// Size is a free data retrieval call binding the contract method 0x2b267635.
+//
+// Solidity: function size(uint128 marketId) view returns(uint256)
+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 (_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 (_PerpsMarket *PerpsMarketCaller) Skew(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "skew", marketId)
+
+ if err != nil {
+ return *new(*big.Int), err
+ }
+
+ out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
+
+ return out0, err
+
+}
+
+// Skew is a free data retrieval call binding the contract method 0x83a7db27.
+//
+// Solidity: function skew(uint128 marketId) view returns(int256)
+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 (_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 (_PerpsMarket *PerpsMarketCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error) {
+ var out []interface{}
+ err := _PerpsMarket.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 (_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 (_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 (_PerpsMarket *PerpsMarketCaller) TotalAccountOpenInterest(opts *bind.CallOpts, accountId *big.Int) (*big.Int, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "totalAccountOpenInterest", accountId)
+
+ if err != nil {
+ return *new(*big.Int), err
+ }
+
+ out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
+
+ return out0, err
+
+}
+
+// TotalAccountOpenInterest is a free data retrieval call binding the contract method 0x2daf43bc.
+//
+// Solidity: function totalAccountOpenInterest(uint128 accountId) view returns(uint256)
+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 (_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 (_PerpsMarket *PerpsMarketCaller) TotalCollateralValue(opts *bind.CallOpts, accountId *big.Int) (*big.Int, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "totalCollateralValue", accountId)
+
+ if err != nil {
+ return *new(*big.Int), err
+ }
+
+ out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
+
+ return out0, err
+
+}
+
+// TotalCollateralValue is a free data retrieval call binding the contract method 0xb568ae42.
+//
+// Solidity: function totalCollateralValue(uint128 accountId) view returns(uint256)
+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 (_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 (_PerpsMarket *PerpsMarketCaller) TotalGlobalCollateralValue(opts *bind.CallOpts) (*big.Int, error) {
+ var out []interface{}
+ err := _PerpsMarket.contract.Call(opts, &out, "totalGlobalCollateralValue")
+
+ if err != nil {
+ return *new(*big.Int), err
+ }
+
+ out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
+
+ return out0, err
+
+}
+
+// TotalGlobalCollateralValue is a free data retrieval call binding the contract method 0x65c5a0fe.
+//
+// Solidity: function totalGlobalCollateralValue() view returns(uint256 totalCollateralValue)
+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 (_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 (_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 (_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 (_PerpsMarket *PerpsMarketTransactorSession) AcceptOwnership() (*types.Transaction, error) {
+ return _PerpsMarket.Contract.AcceptOwnership(&_PerpsMarket.TransactOpts)
+}
+
+// AddSettlementStrategy is a paid mutator transaction binding the contract method 0x90a871f7.
+//
+// Solidity: function addSettlementStrategy(uint128 marketId, (uint8,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 0x90a871f7.
+//
+// Solidity: function addSettlementStrategy(uint128 marketId, (uint8,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 0x90a871f7.
+//
+// Solidity: function addSettlementStrategy(uint128 marketId, (uint8,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 (_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 (_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 (_PerpsMarket *PerpsMarketTransactorSession) AddToFeatureFlagAllowlist(feature [32]byte, account common.Address) (*types.Transaction, error) {
+ return _PerpsMarket.Contract.AddToFeatureFlagAllowlist(&_PerpsMarket.TransactOpts, feature, account)
+}
+
+// CancelOrder is a paid mutator transaction binding the contract method 0xdbc91396.
+//
+// Solidity: function cancelOrder(uint128 accountId) returns()
+func (_PerpsMarket *PerpsMarketTransactor) CancelOrder(opts *bind.TransactOpts, accountId *big.Int) (*types.Transaction, error) {
+ return _PerpsMarket.contract.Transact(opts, "cancelOrder", accountId)
+}
+
+// CancelOrder is a paid mutator transaction binding the contract method 0xdbc91396.
+//
+// Solidity: function cancelOrder(uint128 accountId) returns()
+func (_PerpsMarket *PerpsMarketSession) CancelOrder(accountId *big.Int) (*types.Transaction, error) {
+ return _PerpsMarket.Contract.CancelOrder(&_PerpsMarket.TransactOpts, accountId)
+}
+
+// CancelOrder is a paid mutator transaction binding the contract method 0xdbc91396.
+//
+// Solidity: function cancelOrder(uint128 accountId) returns()
+func (_PerpsMarket *PerpsMarketTransactorSession) CancelOrder(accountId *big.Int) (*types.Transaction, error) {
+ return _PerpsMarket.Contract.CancelOrder(&_PerpsMarket.TransactOpts, accountId)
+}
+
+// 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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 0x09feb470.
+//
+// Solidity: function initializeFactory(address synthetix, address spotMarket, string marketName) returns(uint128)
+func (_PerpsMarket *PerpsMarketTransactor) InitializeFactory(opts *bind.TransactOpts, synthetix common.Address, spotMarket common.Address, marketName string) (*types.Transaction, error) {
+ return _PerpsMarket.contract.Transact(opts, "initializeFactory", synthetix, spotMarket, marketName)
+}
+
+// InitializeFactory is a paid mutator transaction binding the contract method 0x09feb470.
+//
+// Solidity: function initializeFactory(address synthetix, address spotMarket, string marketName) returns(uint128)
+func (_PerpsMarket *PerpsMarketSession) InitializeFactory(synthetix common.Address, spotMarket common.Address, marketName string) (*types.Transaction, error) {
+ return _PerpsMarket.Contract.InitializeFactory(&_PerpsMarket.TransactOpts, synthetix, spotMarket, marketName)
+}
+
+// InitializeFactory is a paid mutator transaction binding the contract method 0x09feb470.
+//
+// Solidity: function initializeFactory(address synthetix, address spotMarket, string marketName) returns(uint128)
+func (_PerpsMarket *PerpsMarketTransactorSession) InitializeFactory(synthetix common.Address, spotMarket common.Address, marketName string) (*types.Transaction, error) {
+ return _PerpsMarket.Contract.InitializeFactory(&_PerpsMarket.TransactOpts, synthetix, spotMarket, marketName)
+}
+
+// Liquidate is a paid mutator transaction binding the contract method 0x048577de.
+//
+// Solidity: function liquidate(uint128 accountId) returns(uint256 liquidationReward)
+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 (_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 (_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 0xac53c5ae.
+//
+// Solidity: function liquidateFlagged(uint256 maxNumberOfAccounts) returns(uint256 liquidationReward)
+func (_PerpsMarket *PerpsMarketTransactor) LiquidateFlagged(opts *bind.TransactOpts, maxNumberOfAccounts *big.Int) (*types.Transaction, error) {
+ return _PerpsMarket.contract.Transact(opts, "liquidateFlagged", maxNumberOfAccounts)
+}
+
+// LiquidateFlagged is a paid mutator transaction binding the contract method 0xac53c5ae.
+//
+// Solidity: function liquidateFlagged(uint256 maxNumberOfAccounts) returns(uint256 liquidationReward)
+func (_PerpsMarket *PerpsMarketSession) LiquidateFlagged(maxNumberOfAccounts *big.Int) (*types.Transaction, error) {
+ return _PerpsMarket.Contract.LiquidateFlagged(&_PerpsMarket.TransactOpts, maxNumberOfAccounts)
+}
+
+// LiquidateFlagged is a paid mutator transaction binding the contract method 0xac53c5ae.
+//
+// Solidity: function liquidateFlagged(uint256 maxNumberOfAccounts) returns(uint256 liquidationReward)
+func (_PerpsMarket *PerpsMarketTransactorSession) LiquidateFlagged(maxNumberOfAccounts *big.Int) (*types.Transaction, error) {
+ return _PerpsMarket.Contract.LiquidateFlagged(&_PerpsMarket.TransactOpts, maxNumberOfAccounts)
+}
+
+// LiquidateFlaggedAccounts is a paid mutator transaction binding the contract method 0x3ce80659.
+//
+// Solidity: function liquidateFlaggedAccounts(uint128[] accountIds) returns(uint256 liquidationReward)
+func (_PerpsMarket *PerpsMarketTransactor) LiquidateFlaggedAccounts(opts *bind.TransactOpts, accountIds []*big.Int) (*types.Transaction, error) {
+ return _PerpsMarket.contract.Transact(opts, "liquidateFlaggedAccounts", accountIds)
+}
+
+// LiquidateFlaggedAccounts is a paid mutator transaction binding the contract method 0x3ce80659.
+//
+// Solidity: function liquidateFlaggedAccounts(uint128[] accountIds) returns(uint256 liquidationReward)
+func (_PerpsMarket *PerpsMarketSession) LiquidateFlaggedAccounts(accountIds []*big.Int) (*types.Transaction, error) {
+ return _PerpsMarket.Contract.LiquidateFlaggedAccounts(&_PerpsMarket.TransactOpts, accountIds)
+}
+
+// LiquidateFlaggedAccounts is a paid mutator transaction binding the contract method 0x3ce80659.
+//
+// Solidity: function liquidateFlaggedAccounts(uint128[] accountIds) returns(uint256 liquidationReward)
+func (_PerpsMarket *PerpsMarketTransactorSession) LiquidateFlaggedAccounts(accountIds []*big.Int) (*types.Transaction, error) {
+ return _PerpsMarket.Contract.LiquidateFlaggedAccounts(&_PerpsMarket.TransactOpts, accountIds)
+}
+
+// ModifyCollateral is a paid mutator transaction binding the contract method 0xbb58672c.
+//
+// Solidity: function modifyCollateral(uint128 accountId, uint128 synthMarketId, int256 amountDelta) returns()
+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 (_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 (_PerpsMarket *PerpsMarketTransactorSession) ModifyCollateral(accountId *big.Int, synthMarketId *big.Int, amountDelta *big.Int) (*types.Transaction, error) {
+ return _PerpsMarket.Contract.ModifyCollateral(&_PerpsMarket.TransactOpts, accountId, synthMarketId, amountDelta)
+}
+
+// NominateNewOwner is a paid mutator transaction binding the contract method 0x1627540c.
+//
+// Solidity: function nominateNewOwner(address newNominatedOwner) returns()
+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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_PerpsMarket *PerpsMarketTransactorSession) RevokePermission(accountId *big.Int, permission [32]byte, user common.Address) (*types.Transaction, error) {
+ return _PerpsMarket.Contract.RevokePermission(&_PerpsMarket.TransactOpts, accountId, permission, user)
+}
+
+// SetCollateralConfiguration is a paid mutator transaction binding the contract method 0xddf5a974.
+//
+// Solidity: function setCollateralConfiguration(uint128 synthMarketId, uint256 maxCollateralAmount) returns()
+func (_PerpsMarket *PerpsMarketTransactor) SetCollateralConfiguration(opts *bind.TransactOpts, synthMarketId *big.Int, maxCollateralAmount *big.Int) (*types.Transaction, error) {
+ return _PerpsMarket.contract.Transact(opts, "setCollateralConfiguration", synthMarketId, maxCollateralAmount)
+}
+
+// SetCollateralConfiguration is a paid mutator transaction binding the contract method 0xddf5a974.
+//
+// Solidity: function setCollateralConfiguration(uint128 synthMarketId, uint256 maxCollateralAmount) returns()
+func (_PerpsMarket *PerpsMarketSession) SetCollateralConfiguration(synthMarketId *big.Int, maxCollateralAmount *big.Int) (*types.Transaction, error) {
+ return _PerpsMarket.Contract.SetCollateralConfiguration(&_PerpsMarket.TransactOpts, synthMarketId, maxCollateralAmount)
+}
+
+// SetCollateralConfiguration is a paid mutator transaction binding the contract method 0xddf5a974.
+//
+// Solidity: function setCollateralConfiguration(uint128 synthMarketId, uint256 maxCollateralAmount) returns()
+func (_PerpsMarket *PerpsMarketTransactorSession) SetCollateralConfiguration(synthMarketId *big.Int, maxCollateralAmount *big.Int) (*types.Transaction, error) {
+ return _PerpsMarket.Contract.SetCollateralConfiguration(&_PerpsMarket.TransactOpts, synthMarketId, maxCollateralAmount)
+}
+
+// SetDeniers is a paid mutator transaction binding the contract method 0x715cb7d2.
+//
+// Solidity: function setDeniers(bytes32 feature, address[] deniers) returns()
+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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_PerpsMarket *PerpsMarketTransactorSession) SetFundingParameters(marketId *big.Int, skewScale *big.Int, maxFundingVelocity *big.Int) (*types.Transaction, error) {
+ return _PerpsMarket.Contract.SetFundingParameters(&_PerpsMarket.TransactOpts, marketId, skewScale, maxFundingVelocity)
+}
+
+// SetKeeperRewardGuards is a paid mutator transaction binding the contract method 0x96e9f7a0.
+//
+// Solidity: function setKeeperRewardGuards(uint256 minKeeperRewardUsd, uint256 minKeeperProfitRatioD18, uint256 maxKeeperRewardUsd, uint256 maxKeeperScalingRatioD18) returns()
+func (_PerpsMarket *PerpsMarketTransactor) SetKeeperRewardGuards(opts *bind.TransactOpts, minKeeperRewardUsd *big.Int, minKeeperProfitRatioD18 *big.Int, maxKeeperRewardUsd *big.Int, maxKeeperScalingRatioD18 *big.Int) (*types.Transaction, error) {
+ return _PerpsMarket.contract.Transact(opts, "setKeeperRewardGuards", minKeeperRewardUsd, minKeeperProfitRatioD18, maxKeeperRewardUsd, maxKeeperScalingRatioD18)
+}
+
+// SetKeeperRewardGuards is a paid mutator transaction binding the contract method 0x96e9f7a0.
+//
+// Solidity: function setKeeperRewardGuards(uint256 minKeeperRewardUsd, uint256 minKeeperProfitRatioD18, uint256 maxKeeperRewardUsd, uint256 maxKeeperScalingRatioD18) returns()
+func (_PerpsMarket *PerpsMarketSession) SetKeeperRewardGuards(minKeeperRewardUsd *big.Int, minKeeperProfitRatioD18 *big.Int, maxKeeperRewardUsd *big.Int, maxKeeperScalingRatioD18 *big.Int) (*types.Transaction, error) {
+ return _PerpsMarket.Contract.SetKeeperRewardGuards(&_PerpsMarket.TransactOpts, minKeeperRewardUsd, minKeeperProfitRatioD18, maxKeeperRewardUsd, maxKeeperScalingRatioD18)
+}
+
+// SetKeeperRewardGuards is a paid mutator transaction binding the contract method 0x96e9f7a0.
+//
+// Solidity: function setKeeperRewardGuards(uint256 minKeeperRewardUsd, uint256 minKeeperProfitRatioD18, uint256 maxKeeperRewardUsd, uint256 maxKeeperScalingRatioD18) returns()
+func (_PerpsMarket *PerpsMarketTransactorSession) SetKeeperRewardGuards(minKeeperRewardUsd *big.Int, minKeeperProfitRatioD18 *big.Int, maxKeeperRewardUsd *big.Int, maxKeeperScalingRatioD18 *big.Int) (*types.Transaction, error) {
+ return _PerpsMarket.Contract.SetKeeperRewardGuards(&_PerpsMarket.TransactOpts, minKeeperRewardUsd, minKeeperProfitRatioD18, maxKeeperRewardUsd, maxKeeperScalingRatioD18)
+}
+
+// SetLiquidationParameters is a paid mutator transaction binding the contract method 0x25e5409e.
+//
+// Solidity: function setLiquidationParameters(uint128 marketId, uint256 initialMarginRatioD18, uint256 minimumInitialMarginRatioD18, uint256 maintenanceMarginScalarD18, uint256 flagRewardRatioD18, uint256 minimumPositionMargin) returns()
+func (_PerpsMarket *PerpsMarketTransactor) SetLiquidationParameters(opts *bind.TransactOpts, marketId *big.Int, initialMarginRatioD18 *big.Int, minimumInitialMarginRatioD18 *big.Int, maintenanceMarginScalarD18 *big.Int, flagRewardRatioD18 *big.Int, minimumPositionMargin *big.Int) (*types.Transaction, error) {
+ return _PerpsMarket.contract.Transact(opts, "setLiquidationParameters", marketId, initialMarginRatioD18, minimumInitialMarginRatioD18, maintenanceMarginScalarD18, flagRewardRatioD18, minimumPositionMargin)
+}
+
+// SetLiquidationParameters is a paid mutator transaction binding the contract method 0x25e5409e.
+//
+// Solidity: function setLiquidationParameters(uint128 marketId, uint256 initialMarginRatioD18, uint256 minimumInitialMarginRatioD18, uint256 maintenanceMarginScalarD18, uint256 flagRewardRatioD18, uint256 minimumPositionMargin) returns()
+func (_PerpsMarket *PerpsMarketSession) SetLiquidationParameters(marketId *big.Int, initialMarginRatioD18 *big.Int, minimumInitialMarginRatioD18 *big.Int, maintenanceMarginScalarD18 *big.Int, flagRewardRatioD18 *big.Int, minimumPositionMargin *big.Int) (*types.Transaction, error) {
+ return _PerpsMarket.Contract.SetLiquidationParameters(&_PerpsMarket.TransactOpts, marketId, initialMarginRatioD18, minimumInitialMarginRatioD18, maintenanceMarginScalarD18, flagRewardRatioD18, minimumPositionMargin)
+}
+
+// SetLiquidationParameters is a paid mutator transaction binding the contract method 0x25e5409e.
+//
+// Solidity: function setLiquidationParameters(uint128 marketId, uint256 initialMarginRatioD18, uint256 minimumInitialMarginRatioD18, uint256 maintenanceMarginScalarD18, uint256 flagRewardRatioD18, uint256 minimumPositionMargin) returns()
+func (_PerpsMarket *PerpsMarketTransactorSession) SetLiquidationParameters(marketId *big.Int, initialMarginRatioD18 *big.Int, minimumInitialMarginRatioD18 *big.Int, maintenanceMarginScalarD18 *big.Int, flagRewardRatioD18 *big.Int, minimumPositionMargin *big.Int) (*types.Transaction, error) {
+ return _PerpsMarket.Contract.SetLiquidationParameters(&_PerpsMarket.TransactOpts, marketId, initialMarginRatioD18, minimumInitialMarginRatioD18, maintenanceMarginScalarD18, flagRewardRatioD18, minimumPositionMargin)
+}
+
+// SetLockedOiRatio is a paid mutator transaction binding the contract method 0x033723d9.
+//
+// Solidity: function setLockedOiRatio(uint128 marketId, uint256 lockedOiRatioD18) returns()
+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 (_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 (_PerpsMarket *PerpsMarketTransactorSession) SetLockedOiRatio(marketId *big.Int, lockedOiRatioD18 *big.Int) (*types.Transaction, error) {
+ return _PerpsMarket.Contract.SetLockedOiRatio(&_PerpsMarket.TransactOpts, marketId, lockedOiRatioD18)
+}
+
+// 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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_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 (_PerpsMarket *PerpsMarketTransactorSession) SetPerAccountCaps(maxPositionsPerAccount *big.Int, maxCollateralsPerAccount *big.Int) (*types.Transaction, error) {
+ return _PerpsMarket.Contract.SetPerAccountCaps(&_PerpsMarket.TransactOpts, maxPositionsPerAccount, maxCollateralsPerAccount)
+}
+
+// SetPerpsMarketName is a paid mutator transaction binding the contract method 0x55576c59.
+//
+// Solidity: function setPerpsMarketName(string marketName) returns()
+func (_PerpsMarket *PerpsMarketTransactor) SetPerpsMarketName(opts *bind.TransactOpts, marketName string) (*types.Transaction, error) {
+ return _PerpsMarket.contract.Transact(opts, "setPerpsMarketName", marketName)
+}
+
+// SetPerpsMarketName is a paid mutator transaction binding the contract method 0x55576c59.
+//
+// Solidity: function setPerpsMarketName(string marketName) returns()
+func (_PerpsMarket *PerpsMarketSession) SetPerpsMarketName(marketName string) (*types.Transaction, error) {
+ return _PerpsMarket.Contract.SetPerpsMarketName(&_PerpsMarket.TransactOpts, marketName)
+}
+
+// SetPerpsMarketName is a paid mutator transaction binding the contract method 0x55576c59.
+//
+// Solidity: function setPerpsMarketName(string marketName) returns()
+func (_PerpsMarket *PerpsMarketTransactorSession) SetPerpsMarketName(marketName string) (*types.Transaction, error) {
+ return _PerpsMarket.Contract.SetPerpsMarketName(&_PerpsMarket.TransactOpts, marketName)
+}
+
+// SetSettlementStrategy is a paid mutator transaction binding the contract method 0x3a1bf9bf.
+//
+// Solidity: function setSettlementStrategy(uint128 marketId, uint256 strategyId, (uint8,uint256,uint256,address,bytes32,string,uint256,bool) strategy) returns()
+func (_PerpsMarket *PerpsMarketTransactor) SetSettlementStrategy(opts *bind.TransactOpts, marketId *big.Int, strategyId *big.Int, strategy SettlementStrategyData) (*types.Transaction, error) {
+ return _PerpsMarket.contract.Transact(opts, "setSettlementStrategy", marketId, strategyId, strategy)
+}
+
+// SetSettlementStrategy is a paid mutator transaction binding the contract method 0x3a1bf9bf.
+//
+// Solidity: function setSettlementStrategy(uint128 marketId, uint256 strategyId, (uint8,uint256,uint256,address,bytes32,string,uint256,bool) strategy) returns()
+func (_PerpsMarket *PerpsMarketSession) SetSettlementStrategy(marketId *big.Int, strategyId *big.Int, strategy SettlementStrategyData) (*types.Transaction, error) {
+ return _PerpsMarket.Contract.SetSettlementStrategy(&_PerpsMarket.TransactOpts, marketId, strategyId, strategy)
+}
+
+// SetSettlementStrategy is a paid mutator transaction binding the contract method 0x3a1bf9bf.
+//
+// Solidity: function setSettlementStrategy(uint128 marketId, uint256 strategyId, (uint8,uint256,uint256,address,bytes32,string,uint256,bool) strategy) returns()
+func (_PerpsMarket *PerpsMarketTransactorSession) SetSettlementStrategy(marketId *big.Int, strategyId *big.Int, strategy SettlementStrategyData) (*types.Transaction, error) {
+ return _PerpsMarket.Contract.SetSettlementStrategy(&_PerpsMarket.TransactOpts, marketId, strategyId, strategy)
+}
+
+// SetSettlementStrategyEnabled is a paid mutator transaction binding the contract method 0x7f73a891.
+//
+// Solidity: function setSettlementStrategyEnabled(uint128 marketId, uint256 strategyId, bool enabled) returns()
+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 (_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 (_PerpsMarket *PerpsMarketTransactorSession) SetSettlementStrategyEnabled(marketId *big.Int, strategyId *big.Int, enabled bool) (*types.Transaction, error) {
+ return _PerpsMarket.Contract.SetSettlementStrategyEnabled(&_PerpsMarket.TransactOpts, marketId, strategyId, enabled)
+}
+
+// SetSynthDeductionPriority is a paid mutator transaction binding the contract method 0x6aba84a7.
+//
+// Solidity: function setSynthDeductionPriority(uint128[] newSynthDeductionPriority) returns()
+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 (_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 (_PerpsMarket *PerpsMarketTransactorSession) SetSynthDeductionPriority(newSynthDeductionPriority []*big.Int) (*types.Transaction, error) {
+ return _PerpsMarket.Contract.SetSynthDeductionPriority(&_PerpsMarket.TransactOpts, newSynthDeductionPriority)
+}
+
+// SettleOrder is a paid mutator transaction binding the contract method 0xf89648fb.
+//
+// Solidity: function settleOrder(uint128 accountId) returns()
+func (_PerpsMarket *PerpsMarketTransactor) SettleOrder(opts *bind.TransactOpts, accountId *big.Int) (*types.Transaction, error) {
+ return _PerpsMarket.contract.Transact(opts, "settleOrder", accountId)
+}
+
+// SettleOrder is a paid mutator transaction binding the contract method 0xf89648fb.
+//
+// Solidity: function settleOrder(uint128 accountId) returns()
+func (_PerpsMarket *PerpsMarketSession) SettleOrder(accountId *big.Int) (*types.Transaction, error) {
+ return _PerpsMarket.Contract.SettleOrder(&_PerpsMarket.TransactOpts, accountId)
+}
+
+// SettleOrder is a paid mutator transaction binding the contract method 0xf89648fb.
+//
+// Solidity: function settleOrder(uint128 accountId) returns()
+func (_PerpsMarket *PerpsMarketTransactorSession) SettleOrder(accountId *big.Int) (*types.Transaction, error) {
+ return _PerpsMarket.Contract.SettleOrder(&_PerpsMarket.TransactOpts, accountId)
+}
+
+// SimulateUpgradeTo is a paid mutator transaction binding the contract method 0xc7f62cda.
+//
+// Solidity: function simulateUpgradeTo(address newImplementation) returns()
+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 (_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 (_PerpsMarket *PerpsMarketTransactorSession) SimulateUpgradeTo(newImplementation common.Address) (*types.Transaction, error) {
+ return _PerpsMarket.Contract.SimulateUpgradeTo(&_PerpsMarket.TransactOpts, newImplementation)
+}
+
+// UpdateKeeperCostNodeId is a paid mutator transaction binding the contract method 0xf5322087.
+//
+// Solidity: function updateKeeperCostNodeId(bytes32 keeperCostNodeId) returns()
+func (_PerpsMarket *PerpsMarketTransactor) UpdateKeeperCostNodeId(opts *bind.TransactOpts, keeperCostNodeId [32]byte) (*types.Transaction, error) {
+ return _PerpsMarket.contract.Transact(opts, "updateKeeperCostNodeId", keeperCostNodeId)
+}
+
+// UpdateKeeperCostNodeId is a paid mutator transaction binding the contract method 0xf5322087.
+//
+// Solidity: function updateKeeperCostNodeId(bytes32 keeperCostNodeId) returns()
+func (_PerpsMarket *PerpsMarketSession) UpdateKeeperCostNodeId(keeperCostNodeId [32]byte) (*types.Transaction, error) {
+ return _PerpsMarket.Contract.UpdateKeeperCostNodeId(&_PerpsMarket.TransactOpts, keeperCostNodeId)
+}
+
+// UpdateKeeperCostNodeId is a paid mutator transaction binding the contract method 0xf5322087.
+//
+// Solidity: function updateKeeperCostNodeId(bytes32 keeperCostNodeId) returns()
+func (_PerpsMarket *PerpsMarketTransactorSession) UpdateKeeperCostNodeId(keeperCostNodeId [32]byte) (*types.Transaction, error) {
+ return _PerpsMarket.Contract.UpdateKeeperCostNodeId(&_PerpsMarket.TransactOpts, keeperCostNodeId)
+}
+
+// UpdatePriceData is a paid mutator transaction binding the contract method 0xb5848488.
+//
+// Solidity: function updatePriceData(uint128 perpsMarketId, bytes32 feedId, uint256 strictStalenessTolerance) returns()
+func (_PerpsMarket *PerpsMarketTransactor) UpdatePriceData(opts *bind.TransactOpts, perpsMarketId *big.Int, feedId [32]byte, strictStalenessTolerance *big.Int) (*types.Transaction, error) {
+ return _PerpsMarket.contract.Transact(opts, "updatePriceData", perpsMarketId, feedId, strictStalenessTolerance)
+}
+
+// UpdatePriceData is a paid mutator transaction binding the contract method 0xb5848488.
+//
+// Solidity: function updatePriceData(uint128 perpsMarketId, bytes32 feedId, uint256 strictStalenessTolerance) returns()
+func (_PerpsMarket *PerpsMarketSession) UpdatePriceData(perpsMarketId *big.Int, feedId [32]byte, strictStalenessTolerance *big.Int) (*types.Transaction, error) {
+ return _PerpsMarket.Contract.UpdatePriceData(&_PerpsMarket.TransactOpts, perpsMarketId, feedId, strictStalenessTolerance)
+}
+
+// UpdatePriceData is a paid mutator transaction binding the contract method 0xb5848488.
+//
+// Solidity: function updatePriceData(uint128 perpsMarketId, bytes32 feedId, uint256 strictStalenessTolerance) returns()
+func (_PerpsMarket *PerpsMarketTransactorSession) UpdatePriceData(perpsMarketId *big.Int, feedId [32]byte, strictStalenessTolerance *big.Int) (*types.Transaction, error) {
+ return _PerpsMarket.Contract.UpdatePriceData(&_PerpsMarket.TransactOpts, perpsMarketId, feedId, strictStalenessTolerance)
+}
+
+// UpdateReferrerShare is a paid mutator transaction binding the contract method 0x6809fb4d.
+//
+// Solidity: function updateReferrerShare(address referrer, uint256 shareRatioD18) returns()
+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 (_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 (_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 (_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 (_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 (_PerpsMarket *PerpsMarketTransactorSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error) {
+ return _PerpsMarket.Contract.UpgradeTo(&_PerpsMarket.TransactOpts, newImplementation)
+}
+
+// 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
+
+ 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 *PerpsMarketAccountCreatedIterator) 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(PerpsMarketAccountCreated)
+ 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(PerpsMarketAccountCreated)
+ 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 *PerpsMarketAccountCreatedIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketAccountCreatedIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// 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
+}
+
+// FilterAccountCreated is a free log retrieval operation binding the contract event 0xa9e04d307e860938fa63307df8b8090e365276e59fcca12ed55656c25e538019.
+//
+// Solidity: event AccountCreated(uint128 indexed accountId, address indexed owner)
+func (_PerpsMarket *PerpsMarketFilterer) FilterAccountCreated(opts *bind.FilterOpts, accountId []*big.Int, owner []common.Address) (*PerpsMarketAccountCreatedIterator, 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 := _PerpsMarket.contract.FilterLogs(opts, "AccountCreated", accountIdRule, ownerRule)
+ if err != nil {
+ return nil, err
+ }
+ 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 (_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 {
+ accountIdRule = append(accountIdRule, accountIdItem)
+ }
+ var ownerRule []interface{}
+ for _, ownerItem := range owner {
+ ownerRule = append(ownerRule, ownerItem)
+ }
+
+ logs, sub, err := _PerpsMarket.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(PerpsMarketAccountCreated)
+ if err := _PerpsMarket.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 (_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
+}
+
+// PerpsMarketAccountLiquidationAttemptIterator is returned from FilterAccountLiquidationAttempt and is used to iterate over the raw logs and unpacked data for AccountLiquidationAttempt events raised by the PerpsMarket contract.
+type PerpsMarketAccountLiquidationAttemptIterator struct {
+ Event *PerpsMarketAccountLiquidationAttempt // 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 *PerpsMarketAccountLiquidationAttemptIterator) 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(PerpsMarketAccountLiquidationAttempt)
+ 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(PerpsMarketAccountLiquidationAttempt)
+ 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 *PerpsMarketAccountLiquidationAttemptIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketAccountLiquidationAttemptIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// PerpsMarketAccountLiquidationAttempt represents a AccountLiquidationAttempt event raised by the PerpsMarket contract.
+type PerpsMarketAccountLiquidationAttempt struct {
+ AccountId *big.Int
+ Reward *big.Int
+ FullLiquidation bool
+ Raw types.Log // Blockchain specific contextual infos
+}
+
+// FilterAccountLiquidationAttempt is a free log retrieval operation binding the contract event 0x26ef135389b1c68384b54bcb8b8c6b329a4cc302ab22474b8991fa4e957def35.
+//
+// Solidity: event AccountLiquidationAttempt(uint128 indexed accountId, uint256 reward, bool fullLiquidation)
+func (_PerpsMarket *PerpsMarketFilterer) FilterAccountLiquidationAttempt(opts *bind.FilterOpts, accountId []*big.Int) (*PerpsMarketAccountLiquidationAttemptIterator, error) {
+
+ var accountIdRule []interface{}
+ for _, accountIdItem := range accountId {
+ accountIdRule = append(accountIdRule, accountIdItem)
+ }
+
+ logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "AccountLiquidationAttempt", accountIdRule)
+ if err != nil {
+ return nil, err
+ }
+ return &PerpsMarketAccountLiquidationAttemptIterator{contract: _PerpsMarket.contract, event: "AccountLiquidationAttempt", logs: logs, sub: sub}, nil
+}
+
+// WatchAccountLiquidationAttempt is a free log subscription operation binding the contract event 0x26ef135389b1c68384b54bcb8b8c6b329a4cc302ab22474b8991fa4e957def35.
+//
+// Solidity: event AccountLiquidationAttempt(uint128 indexed accountId, uint256 reward, bool fullLiquidation)
+func (_PerpsMarket *PerpsMarketFilterer) WatchAccountLiquidationAttempt(opts *bind.WatchOpts, sink chan<- *PerpsMarketAccountLiquidationAttempt, accountId []*big.Int) (event.Subscription, error) {
+
+ var accountIdRule []interface{}
+ for _, accountIdItem := range accountId {
+ accountIdRule = append(accountIdRule, accountIdItem)
+ }
+
+ logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "AccountLiquidationAttempt", accountIdRule)
+ 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(PerpsMarketAccountLiquidationAttempt)
+ if err := _PerpsMarket.contract.UnpackLog(event, "AccountLiquidationAttempt", 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
+}
+
+// ParseAccountLiquidationAttempt is a log parse operation binding the contract event 0x26ef135389b1c68384b54bcb8b8c6b329a4cc302ab22474b8991fa4e957def35.
+//
+// Solidity: event AccountLiquidationAttempt(uint128 indexed accountId, uint256 reward, bool fullLiquidation)
+func (_PerpsMarket *PerpsMarketFilterer) ParseAccountLiquidationAttempt(log types.Log) (*PerpsMarketAccountLiquidationAttempt, error) {
+ event := new(PerpsMarketAccountLiquidationAttempt)
+ if err := _PerpsMarket.contract.UnpackLog(event, "AccountLiquidationAttempt", log); err != nil {
+ return nil, err
+ }
+ event.Raw = log
+ return event, nil
+}
+
+// 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
+
+ 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 *PerpsMarketAssociatedSystemSetIterator) 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(PerpsMarketAssociatedSystemSet)
+ 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(PerpsMarketAssociatedSystemSet)
+ 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 *PerpsMarketAssociatedSystemSetIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketAssociatedSystemSetIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// PerpsMarketAssociatedSystemSet represents a AssociatedSystemSet event raised by the PerpsMarket contract.
+type PerpsMarketAssociatedSystemSet 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 (_PerpsMarket *PerpsMarketFilterer) FilterAssociatedSystemSet(opts *bind.FilterOpts, kind [][32]byte, id [][32]byte) (*PerpsMarketAssociatedSystemSetIterator, 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 := _PerpsMarket.contract.FilterLogs(opts, "AssociatedSystemSet", kindRule, idRule)
+ if err != nil {
+ return nil, err
+ }
+ 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 (_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 {
+ kindRule = append(kindRule, kindItem)
+ }
+ var idRule []interface{}
+ for _, idItem := range id {
+ idRule = append(idRule, idItem)
+ }
+
+ logs, sub, err := _PerpsMarket.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(PerpsMarketAssociatedSystemSet)
+ if err := _PerpsMarket.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 (_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
+}
+
+// PerpsMarketCollateralConfigurationSetIterator is returned from FilterCollateralConfigurationSet and is used to iterate over the raw logs and unpacked data for CollateralConfigurationSet events raised by the PerpsMarket contract.
+type PerpsMarketCollateralConfigurationSetIterator struct {
+ Event *PerpsMarketCollateralConfigurationSet // 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 *PerpsMarketCollateralConfigurationSetIterator) 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(PerpsMarketCollateralConfigurationSet)
+ 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(PerpsMarketCollateralConfigurationSet)
+ 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 *PerpsMarketCollateralConfigurationSetIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketCollateralConfigurationSetIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// PerpsMarketCollateralConfigurationSet represents a CollateralConfigurationSet event raised by the PerpsMarket contract.
+type PerpsMarketCollateralConfigurationSet struct {
+ SynthMarketId *big.Int
+ MaxCollateralAmount *big.Int
+ Raw types.Log // Blockchain specific contextual infos
+}
+
+// FilterCollateralConfigurationSet is a free log retrieval operation binding the contract event 0x09c99258910b178f427c0a0700e2f50e13ca60cb99967efd0282dbd204c22104.
+//
+// Solidity: event CollateralConfigurationSet(uint128 indexed synthMarketId, uint256 maxCollateralAmount)
+func (_PerpsMarket *PerpsMarketFilterer) FilterCollateralConfigurationSet(opts *bind.FilterOpts, synthMarketId []*big.Int) (*PerpsMarketCollateralConfigurationSetIterator, error) {
+
+ var synthMarketIdRule []interface{}
+ for _, synthMarketIdItem := range synthMarketId {
+ synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem)
+ }
+
+ logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "CollateralConfigurationSet", synthMarketIdRule)
+ if err != nil {
+ return nil, err
+ }
+ return &PerpsMarketCollateralConfigurationSetIterator{contract: _PerpsMarket.contract, event: "CollateralConfigurationSet", logs: logs, sub: sub}, nil
+}
+
+// WatchCollateralConfigurationSet is a free log subscription operation binding the contract event 0x09c99258910b178f427c0a0700e2f50e13ca60cb99967efd0282dbd204c22104.
+//
+// Solidity: event CollateralConfigurationSet(uint128 indexed synthMarketId, uint256 maxCollateralAmount)
+func (_PerpsMarket *PerpsMarketFilterer) WatchCollateralConfigurationSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketCollateralConfigurationSet, synthMarketId []*big.Int) (event.Subscription, error) {
+
+ var synthMarketIdRule []interface{}
+ for _, synthMarketIdItem := range synthMarketId {
+ synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem)
+ }
+
+ logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "CollateralConfigurationSet", 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(PerpsMarketCollateralConfigurationSet)
+ if err := _PerpsMarket.contract.UnpackLog(event, "CollateralConfigurationSet", 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
+}
+
+// ParseCollateralConfigurationSet is a log parse operation binding the contract event 0x09c99258910b178f427c0a0700e2f50e13ca60cb99967efd0282dbd204c22104.
+//
+// Solidity: event CollateralConfigurationSet(uint128 indexed synthMarketId, uint256 maxCollateralAmount)
+func (_PerpsMarket *PerpsMarketFilterer) ParseCollateralConfigurationSet(log types.Log) (*PerpsMarketCollateralConfigurationSet, error) {
+ event := new(PerpsMarketCollateralConfigurationSet)
+ if err := _PerpsMarket.contract.UnpackLog(event, "CollateralConfigurationSet", log); err != nil {
+ return nil, err
+ }
+ event.Raw = log
+ return event, nil
+}
+
+// PerpsMarketCollateralDeductedIterator is returned from FilterCollateralDeducted and is used to iterate over the raw logs and unpacked data for CollateralDeducted events raised by the PerpsMarket contract.
+type PerpsMarketCollateralDeductedIterator struct {
+ Event *PerpsMarketCollateralDeducted // 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 *PerpsMarketCollateralDeductedIterator) 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(PerpsMarketCollateralDeducted)
+ 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(PerpsMarketCollateralDeducted)
+ 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 *PerpsMarketCollateralDeductedIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketCollateralDeductedIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// PerpsMarketCollateralDeducted represents a CollateralDeducted event raised by the PerpsMarket contract.
+type PerpsMarketCollateralDeducted struct {
+ Account *big.Int
+ SynthMarketId *big.Int
+ Amount *big.Int
+ Raw types.Log // Blockchain specific contextual infos
+}
+
+// FilterCollateralDeducted is a free log retrieval operation binding the contract event 0x4598943fbcec152538b18c5a7c3625f352c9e2b8844d3bfbe55d65452afdf665.
+//
+// Solidity: event CollateralDeducted(uint256 account, uint128 synthMarketId, uint256 amount)
+func (_PerpsMarket *PerpsMarketFilterer) FilterCollateralDeducted(opts *bind.FilterOpts) (*PerpsMarketCollateralDeductedIterator, error) {
+
+ logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "CollateralDeducted")
+ if err != nil {
+ return nil, err
+ }
+ return &PerpsMarketCollateralDeductedIterator{contract: _PerpsMarket.contract, event: "CollateralDeducted", logs: logs, sub: sub}, nil
+}
+
+// WatchCollateralDeducted is a free log subscription operation binding the contract event 0x4598943fbcec152538b18c5a7c3625f352c9e2b8844d3bfbe55d65452afdf665.
+//
+// Solidity: event CollateralDeducted(uint256 account, uint128 synthMarketId, uint256 amount)
+func (_PerpsMarket *PerpsMarketFilterer) WatchCollateralDeducted(opts *bind.WatchOpts, sink chan<- *PerpsMarketCollateralDeducted) (event.Subscription, error) {
+
+ logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "CollateralDeducted")
+ 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(PerpsMarketCollateralDeducted)
+ if err := _PerpsMarket.contract.UnpackLog(event, "CollateralDeducted", 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
+}
+
+// ParseCollateralDeducted is a log parse operation binding the contract event 0x4598943fbcec152538b18c5a7c3625f352c9e2b8844d3bfbe55d65452afdf665.
+//
+// Solidity: event CollateralDeducted(uint256 account, uint128 synthMarketId, uint256 amount)
+func (_PerpsMarket *PerpsMarketFilterer) ParseCollateralDeducted(log types.Log) (*PerpsMarketCollateralDeducted, error) {
+ event := new(PerpsMarketCollateralDeducted)
+ if err := _PerpsMarket.contract.UnpackLog(event, "CollateralDeducted", log); err != nil {
+ return nil, err
+ }
+ event.Raw = log
+ return event, nil
+}
+
+// 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
+
+ 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 *PerpsMarketCollateralModifiedIterator) 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(PerpsMarketCollateralModified)
+ 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(PerpsMarketCollateralModified)
+ 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 *PerpsMarketCollateralModifiedIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketCollateralModifiedIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// PerpsMarketCollateralModified represents a CollateralModified event raised by the PerpsMarket contract.
+type PerpsMarketCollateralModified struct {
+ AccountId *big.Int
+ SynthMarketId *big.Int
+ AmountDelta *big.Int
+ Sender common.Address
+ Raw types.Log // Blockchain specific contextual infos
+}
+
+// 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 (_PerpsMarket *PerpsMarketFilterer) FilterCollateralModified(opts *bind.FilterOpts, accountId []*big.Int, synthMarketId []*big.Int, sender []common.Address) (*PerpsMarketCollateralModifiedIterator, error) {
+
+ var accountIdRule []interface{}
+ for _, accountIdItem := range accountId {
+ accountIdRule = append(accountIdRule, accountIdItem)
+ }
+ var synthMarketIdRule []interface{}
+ for _, synthMarketIdItem := range synthMarketId {
+ synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem)
+ }
+
+ var senderRule []interface{}
+ for _, senderItem := range sender {
+ senderRule = append(senderRule, senderItem)
+ }
+
+ logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "CollateralModified", accountIdRule, synthMarketIdRule, senderRule)
+ if err != nil {
+ return nil, err
+ }
+ 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 (_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 {
+ accountIdRule = append(accountIdRule, accountIdItem)
+ }
+ var synthMarketIdRule []interface{}
+ for _, synthMarketIdItem := range synthMarketId {
+ synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem)
+ }
+
+ var senderRule []interface{}
+ for _, senderItem := range sender {
+ senderRule = append(senderRule, senderItem)
+ }
+
+ logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "CollateralModified", accountIdRule, synthMarketIdRule, 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(PerpsMarketCollateralModified)
+ if err := _PerpsMarket.contract.UnpackLog(event, "CollateralModified", 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
+}
+
+// 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 (_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
+}
+
+// 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
+
+ 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 *PerpsMarketFactoryInitializedIterator) 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(PerpsMarketFactoryInitialized)
+ 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(PerpsMarketFactoryInitialized)
+ 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 *PerpsMarketFactoryInitializedIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketFactoryInitializedIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// PerpsMarketFactoryInitialized represents a FactoryInitialized event raised by the PerpsMarket contract.
+type PerpsMarketFactoryInitialized struct {
+ GlobalPerpsMarketId *big.Int
+ Raw types.Log // Blockchain specific contextual infos
+}
+
+// FilterFactoryInitialized is a free log retrieval operation binding the contract event 0xb3240229b07e26f2f02e69dda85ede86e162ccbc6d10e6aade28931e7f533339.
+//
+// Solidity: event FactoryInitialized(uint128 globalPerpsMarketId)
+func (_PerpsMarket *PerpsMarketFilterer) FilterFactoryInitialized(opts *bind.FilterOpts) (*PerpsMarketFactoryInitializedIterator, error) {
+
+ logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "FactoryInitialized")
+ if err != nil {
+ return nil, err
+ }
+ 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 (_PerpsMarket *PerpsMarketFilterer) WatchFactoryInitialized(opts *bind.WatchOpts, sink chan<- *PerpsMarketFactoryInitialized) (event.Subscription, error) {
+
+ logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "FactoryInitialized")
+ 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(PerpsMarketFactoryInitialized)
+ if err := _PerpsMarket.contract.UnpackLog(event, "FactoryInitialized", 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
+}
+
+// ParseFactoryInitialized is a log parse operation binding the contract event 0xb3240229b07e26f2f02e69dda85ede86e162ccbc6d10e6aade28931e7f533339.
+//
+// Solidity: event FactoryInitialized(uint128 globalPerpsMarketId)
+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
+}
+
+// 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
+
+ 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 *PerpsMarketFeatureFlagAllowAllSetIterator) 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(PerpsMarketFeatureFlagAllowAllSet)
+ 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(PerpsMarketFeatureFlagAllowAllSet)
+ 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 *PerpsMarketFeatureFlagAllowAllSetIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketFeatureFlagAllowAllSetIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// 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
+}
+
+// FilterFeatureFlagAllowAllSet is a free log retrieval operation binding the contract event 0xa806035d8c8de7cd43725250d3fbf9ee7abe3b99ffb892897913d8a21721121d.
+//
+// Solidity: event FeatureFlagAllowAllSet(bytes32 indexed feature, bool allowAll)
+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 := _PerpsMarket.contract.FilterLogs(opts, "FeatureFlagAllowAllSet", featureRule)
+ if err != nil {
+ return nil, err
+ }
+ 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 (_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 := _PerpsMarket.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(PerpsMarketFeatureFlagAllowAllSet)
+ if err := _PerpsMarket.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 (_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
+}
+
+// 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
+
+ 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 *PerpsMarketFeatureFlagAllowlistAddedIterator) 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(PerpsMarketFeatureFlagAllowlistAdded)
+ 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(PerpsMarketFeatureFlagAllowlistAdded)
+ 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 *PerpsMarketFeatureFlagAllowlistAddedIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketFeatureFlagAllowlistAddedIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// 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
+}
+
+// FilterFeatureFlagAllowlistAdded is a free log retrieval operation binding the contract event 0x30b9b4104e2fb00b4f980e414dcd828e691c8fcb286f0c73d7267c3a2de49383.
+//
+// Solidity: event FeatureFlagAllowlistAdded(bytes32 indexed feature, address account)
+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 := _PerpsMarket.contract.FilterLogs(opts, "FeatureFlagAllowlistAdded", featureRule)
+ if err != nil {
+ return nil, err
+ }
+ 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 (_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 := _PerpsMarket.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(PerpsMarketFeatureFlagAllowlistAdded)
+ if err := _PerpsMarket.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 (_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
+}
+
+// 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
+
+ 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 *PerpsMarketFeatureFlagAllowlistRemovedIterator) 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(PerpsMarketFeatureFlagAllowlistRemoved)
+ 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(PerpsMarketFeatureFlagAllowlistRemoved)
+ 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 *PerpsMarketFeatureFlagAllowlistRemovedIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketFeatureFlagAllowlistRemovedIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// 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
+}
+
+// FilterFeatureFlagAllowlistRemoved is a free log retrieval operation binding the contract event 0xb44a47e11880cc865e8ea382561e406dea8c895366c58e3908f05708b2880890.
+//
+// Solidity: event FeatureFlagAllowlistRemoved(bytes32 indexed feature, address account)
+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 := _PerpsMarket.contract.FilterLogs(opts, "FeatureFlagAllowlistRemoved", featureRule)
+ if err != nil {
+ return nil, err
+ }
+ 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 (_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 := _PerpsMarket.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(PerpsMarketFeatureFlagAllowlistRemoved)
+ if err := _PerpsMarket.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 (_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
+}
+
+// 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
+
+ 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 *PerpsMarketFeatureFlagDeniersResetIterator) 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(PerpsMarketFeatureFlagDeniersReset)
+ 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(PerpsMarketFeatureFlagDeniersReset)
+ 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 *PerpsMarketFeatureFlagDeniersResetIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketFeatureFlagDeniersResetIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// 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
+}
+
+// FilterFeatureFlagDeniersReset is a free log retrieval operation binding the contract event 0x74d48d0b51a70680130c00decd06b4d536fbb3cee16a3b0bdd2309c264dcbd13.
+//
+// Solidity: event FeatureFlagDeniersReset(bytes32 indexed feature, address[] deniers)
+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 := _PerpsMarket.contract.FilterLogs(opts, "FeatureFlagDeniersReset", featureRule)
+ if err != nil {
+ return nil, err
+ }
+ 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 (_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 := _PerpsMarket.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(PerpsMarketFeatureFlagDeniersReset)
+ if err := _PerpsMarket.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 (_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
+}
+
+// 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
+
+ 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 *PerpsMarketFeatureFlagDenyAllSetIterator) 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(PerpsMarketFeatureFlagDenyAllSet)
+ 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(PerpsMarketFeatureFlagDenyAllSet)
+ 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 *PerpsMarketFeatureFlagDenyAllSetIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketFeatureFlagDenyAllSetIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// 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
+}
+
+// FilterFeatureFlagDenyAllSet is a free log retrieval operation binding the contract event 0x97f76d2e384948e28ddd4280a4e76e8600acc328a0c0910c93682a0fccc02018.
+//
+// Solidity: event FeatureFlagDenyAllSet(bytes32 indexed feature, bool denyAll)
+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 := _PerpsMarket.contract.FilterLogs(opts, "FeatureFlagDenyAllSet", featureRule)
+ if err != nil {
+ return nil, err
+ }
+ 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 (_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 := _PerpsMarket.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(PerpsMarketFeatureFlagDenyAllSet)
+ if err := _PerpsMarket.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 (_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
+}
+
+// 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
+
+ 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 *PerpsMarketFeeCollectorSetIterator) 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(PerpsMarketFeeCollectorSet)
+ 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(PerpsMarketFeeCollectorSet)
+ 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 *PerpsMarketFeeCollectorSetIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketFeeCollectorSetIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// PerpsMarketFeeCollectorSet represents a FeeCollectorSet event raised by the PerpsMarket contract.
+type PerpsMarketFeeCollectorSet struct {
+ FeeCollector common.Address
+ Raw types.Log // Blockchain specific contextual infos
+}
+
+// FilterFeeCollectorSet is a free log retrieval operation binding the contract event 0x12e1d17016b94668449f97876f4a8d5cc2c19f314db337418894734037cc19d4.
+//
+// Solidity: event FeeCollectorSet(address feeCollector)
+func (_PerpsMarket *PerpsMarketFilterer) FilterFeeCollectorSet(opts *bind.FilterOpts) (*PerpsMarketFeeCollectorSetIterator, error) {
+
+ logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "FeeCollectorSet")
+ if err != nil {
+ return nil, err
+ }
+ 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 (_PerpsMarket *PerpsMarketFilterer) WatchFeeCollectorSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketFeeCollectorSet) (event.Subscription, error) {
+
+ logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "FeeCollectorSet")
+ 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(PerpsMarketFeeCollectorSet)
+ if err := _PerpsMarket.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 0x12e1d17016b94668449f97876f4a8d5cc2c19f314db337418894734037cc19d4.
+//
+// Solidity: event FeeCollectorSet(address feeCollector)
+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
+}
+
+// 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
+
+ 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 *PerpsMarketFundingParametersSetIterator) 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(PerpsMarketFundingParametersSet)
+ 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(PerpsMarketFundingParametersSet)
+ 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 *PerpsMarketFundingParametersSetIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketFundingParametersSetIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// PerpsMarketFundingParametersSet represents a FundingParametersSet event raised by the PerpsMarket contract.
+type PerpsMarketFundingParametersSet struct {
+ MarketId *big.Int
+ SkewScale *big.Int
+ MaxFundingVelocity *big.Int
+ Raw types.Log // Blockchain specific contextual infos
+}
+
+// FilterFundingParametersSet is a free log retrieval operation binding the contract event 0xa74afd926bbafbb9252d224a1fcd6a209f851324bd485f556786820a76e31b65.
+//
+// Solidity: event FundingParametersSet(uint128 indexed marketId, uint256 skewScale, uint256 maxFundingVelocity)
+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 := _PerpsMarket.contract.FilterLogs(opts, "FundingParametersSet", marketIdRule)
+ if err != nil {
+ return nil, err
+ }
+ 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 (_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 := _PerpsMarket.contract.WatchLogs(opts, "FundingParametersSet", 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(PerpsMarketFundingParametersSet)
+ if err := _PerpsMarket.contract.UnpackLog(event, "FundingParametersSet", 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
+}
+
+// ParseFundingParametersSet is a log parse operation binding the contract event 0xa74afd926bbafbb9252d224a1fcd6a209f851324bd485f556786820a76e31b65.
+//
+// Solidity: event FundingParametersSet(uint128 indexed marketId, uint256 skewScale, uint256 maxFundingVelocity)
+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
+}
+
+// PerpsMarketKeeperCostNodeIdUpdatedIterator is returned from FilterKeeperCostNodeIdUpdated and is used to iterate over the raw logs and unpacked data for KeeperCostNodeIdUpdated events raised by the PerpsMarket contract.
+type PerpsMarketKeeperCostNodeIdUpdatedIterator struct {
+ Event *PerpsMarketKeeperCostNodeIdUpdated // 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 *PerpsMarketKeeperCostNodeIdUpdatedIterator) 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(PerpsMarketKeeperCostNodeIdUpdated)
+ 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(PerpsMarketKeeperCostNodeIdUpdated)
+ 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 *PerpsMarketKeeperCostNodeIdUpdatedIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketKeeperCostNodeIdUpdatedIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// PerpsMarketKeeperCostNodeIdUpdated represents a KeeperCostNodeIdUpdated event raised by the PerpsMarket contract.
+type PerpsMarketKeeperCostNodeIdUpdated struct {
+ KeeperCostNodeId [32]byte
+ Raw types.Log // Blockchain specific contextual infos
+}
+
+// FilterKeeperCostNodeIdUpdated is a free log retrieval operation binding the contract event 0x60cb06323d52fe6ab34750c42db77ba8dd1e013bb393edb9e1c88a88dee500a7.
+//
+// Solidity: event KeeperCostNodeIdUpdated(bytes32 keeperCostNodeId)
+func (_PerpsMarket *PerpsMarketFilterer) FilterKeeperCostNodeIdUpdated(opts *bind.FilterOpts) (*PerpsMarketKeeperCostNodeIdUpdatedIterator, error) {
+
+ logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "KeeperCostNodeIdUpdated")
+ if err != nil {
+ return nil, err
+ }
+ return &PerpsMarketKeeperCostNodeIdUpdatedIterator{contract: _PerpsMarket.contract, event: "KeeperCostNodeIdUpdated", logs: logs, sub: sub}, nil
+}
+
+// WatchKeeperCostNodeIdUpdated is a free log subscription operation binding the contract event 0x60cb06323d52fe6ab34750c42db77ba8dd1e013bb393edb9e1c88a88dee500a7.
+//
+// Solidity: event KeeperCostNodeIdUpdated(bytes32 keeperCostNodeId)
+func (_PerpsMarket *PerpsMarketFilterer) WatchKeeperCostNodeIdUpdated(opts *bind.WatchOpts, sink chan<- *PerpsMarketKeeperCostNodeIdUpdated) (event.Subscription, error) {
+
+ logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "KeeperCostNodeIdUpdated")
+ 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(PerpsMarketKeeperCostNodeIdUpdated)
+ if err := _PerpsMarket.contract.UnpackLog(event, "KeeperCostNodeIdUpdated", 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
+}
+
+// ParseKeeperCostNodeIdUpdated is a log parse operation binding the contract event 0x60cb06323d52fe6ab34750c42db77ba8dd1e013bb393edb9e1c88a88dee500a7.
+//
+// Solidity: event KeeperCostNodeIdUpdated(bytes32 keeperCostNodeId)
+func (_PerpsMarket *PerpsMarketFilterer) ParseKeeperCostNodeIdUpdated(log types.Log) (*PerpsMarketKeeperCostNodeIdUpdated, error) {
+ event := new(PerpsMarketKeeperCostNodeIdUpdated)
+ if err := _PerpsMarket.contract.UnpackLog(event, "KeeperCostNodeIdUpdated", log); err != nil {
+ return nil, err
+ }
+ event.Raw = log
+ return event, nil
+}
+
+// PerpsMarketKeeperRewardGuardsSetIterator is returned from FilterKeeperRewardGuardsSet and is used to iterate over the raw logs and unpacked data for KeeperRewardGuardsSet events raised by the PerpsMarket contract.
+type PerpsMarketKeeperRewardGuardsSetIterator struct {
+ Event *PerpsMarketKeeperRewardGuardsSet // 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 *PerpsMarketKeeperRewardGuardsSetIterator) 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(PerpsMarketKeeperRewardGuardsSet)
+ 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(PerpsMarketKeeperRewardGuardsSet)
+ 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 *PerpsMarketKeeperRewardGuardsSetIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketKeeperRewardGuardsSetIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// PerpsMarketKeeperRewardGuardsSet represents a KeeperRewardGuardsSet event raised by the PerpsMarket contract.
+type PerpsMarketKeeperRewardGuardsSet struct {
+ MinKeeperRewardUsd *big.Int
+ MinKeeperProfitRatioD18 *big.Int
+ MaxKeeperRewardUsd *big.Int
+ MaxKeeperScalingRatioD18 *big.Int
+ Raw types.Log // Blockchain specific contextual infos
+}
+
+// FilterKeeperRewardGuardsSet is a free log retrieval operation binding the contract event 0xdc784d5448d4b3c13f36956adb978d1e276f2e0c8d37e78c262b5be7641d8b54.
+//
+// Solidity: event KeeperRewardGuardsSet(uint256 minKeeperRewardUsd, uint256 minKeeperProfitRatioD18, uint256 maxKeeperRewardUsd, uint256 maxKeeperScalingRatioD18)
+func (_PerpsMarket *PerpsMarketFilterer) FilterKeeperRewardGuardsSet(opts *bind.FilterOpts) (*PerpsMarketKeeperRewardGuardsSetIterator, error) {
+
+ logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "KeeperRewardGuardsSet")
+ if err != nil {
+ return nil, err
+ }
+ return &PerpsMarketKeeperRewardGuardsSetIterator{contract: _PerpsMarket.contract, event: "KeeperRewardGuardsSet", logs: logs, sub: sub}, nil
+}
+
+// WatchKeeperRewardGuardsSet is a free log subscription operation binding the contract event 0xdc784d5448d4b3c13f36956adb978d1e276f2e0c8d37e78c262b5be7641d8b54.
+//
+// Solidity: event KeeperRewardGuardsSet(uint256 minKeeperRewardUsd, uint256 minKeeperProfitRatioD18, uint256 maxKeeperRewardUsd, uint256 maxKeeperScalingRatioD18)
+func (_PerpsMarket *PerpsMarketFilterer) WatchKeeperRewardGuardsSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketKeeperRewardGuardsSet) (event.Subscription, error) {
+
+ logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "KeeperRewardGuardsSet")
+ 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(PerpsMarketKeeperRewardGuardsSet)
+ if err := _PerpsMarket.contract.UnpackLog(event, "KeeperRewardGuardsSet", 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
+}
+
+// ParseKeeperRewardGuardsSet is a log parse operation binding the contract event 0xdc784d5448d4b3c13f36956adb978d1e276f2e0c8d37e78c262b5be7641d8b54.
+//
+// Solidity: event KeeperRewardGuardsSet(uint256 minKeeperRewardUsd, uint256 minKeeperProfitRatioD18, uint256 maxKeeperRewardUsd, uint256 maxKeeperScalingRatioD18)
+func (_PerpsMarket *PerpsMarketFilterer) ParseKeeperRewardGuardsSet(log types.Log) (*PerpsMarketKeeperRewardGuardsSet, error) {
+ event := new(PerpsMarketKeeperRewardGuardsSet)
+ if err := _PerpsMarket.contract.UnpackLog(event, "KeeperRewardGuardsSet", log); err != nil {
+ return nil, err
+ }
+ event.Raw = log
+ return event, nil
+}
+
+// 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
+
+ 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 *PerpsMarketLiquidationParametersSetIterator) 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(PerpsMarketLiquidationParametersSet)
+ 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(PerpsMarketLiquidationParametersSet)
+ 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 *PerpsMarketLiquidationParametersSetIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketLiquidationParametersSetIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// PerpsMarketLiquidationParametersSet represents a LiquidationParametersSet event raised by the PerpsMarket contract.
+type PerpsMarketLiquidationParametersSet struct {
+ MarketId *big.Int
+ InitialMarginRatioD18 *big.Int
+ MaintenanceMarginRatioD18 *big.Int
+ MinimumInitialMarginRatioD18 *big.Int
+ FlagRewardRatioD18 *big.Int
+ MinimumPositionMargin *big.Int
+ Raw types.Log // Blockchain specific contextual infos
+}
+
+// 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 flagRewardRatioD18, uint256 minimumPositionMargin)
+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 := _PerpsMarket.contract.FilterLogs(opts, "LiquidationParametersSet", marketIdRule)
+ if err != nil {
+ return nil, err
+ }
+ 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 flagRewardRatioD18, uint256 minimumPositionMargin)
+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 := _PerpsMarket.contract.WatchLogs(opts, "LiquidationParametersSet", 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(PerpsMarketLiquidationParametersSet)
+ if err := _PerpsMarket.contract.UnpackLog(event, "LiquidationParametersSet", 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
+}
+
+// ParseLiquidationParametersSet is a log parse operation binding the contract event 0xa0c87f048ec4f5924e50d554aa4a6e65a935f133a2114e5222590c1690e1a7b8.
+//
+// Solidity: event LiquidationParametersSet(uint128 indexed marketId, uint256 initialMarginRatioD18, uint256 maintenanceMarginRatioD18, uint256 minimumInitialMarginRatioD18, uint256 flagRewardRatioD18, uint256 minimumPositionMargin)
+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
+}
+
+// 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
+
+ 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 *PerpsMarketLockedOiRatioSetIterator) 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(PerpsMarketLockedOiRatioSet)
+ 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(PerpsMarketLockedOiRatioSet)
+ 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 *PerpsMarketLockedOiRatioSetIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketLockedOiRatioSetIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// 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
+}
+
+// FilterLockedOiRatioSet is a free log retrieval operation binding the contract event 0x1d841fd5b4c806bc5a073d637a8506e1e74d16cb18251b711cb47e133ceafc2d.
+//
+// Solidity: event LockedOiRatioSet(uint128 indexed marketId, uint256 lockedOiRatioD18)
+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 := _PerpsMarket.contract.FilterLogs(opts, "LockedOiRatioSet", marketIdRule)
+ if err != nil {
+ return nil, err
+ }
+ 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 (_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 := _PerpsMarket.contract.WatchLogs(opts, "LockedOiRatioSet", 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(PerpsMarketLockedOiRatioSet)
+ if err := _PerpsMarket.contract.UnpackLog(event, "LockedOiRatioSet", 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
+}
+
+// ParseLockedOiRatioSet is a log parse operation binding the contract event 0x1d841fd5b4c806bc5a073d637a8506e1e74d16cb18251b711cb47e133ceafc2d.
+//
+// Solidity: event LockedOiRatioSet(uint128 indexed marketId, uint256 lockedOiRatioD18)
+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
+}
+
+// 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
+
+ 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 *PerpsMarketMarketCreatedIterator) 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(PerpsMarketMarketCreated)
+ 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(PerpsMarketMarketCreated)
+ 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 *PerpsMarketMarketCreatedIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketMarketCreatedIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// PerpsMarketMarketCreated represents a MarketCreated event raised by the PerpsMarket contract.
+type PerpsMarketMarketCreated struct {
+ PerpsMarketId *big.Int
+ MarketName string
+ MarketSymbol string
+ Raw types.Log // Blockchain specific contextual infos
+}
+
+// FilterMarketCreated is a free log retrieval operation binding the contract event 0x032553f94ac1323933f22650ec5b8e232babf1c47efca69383b749463116cc49.
+//
+// Solidity: event MarketCreated(uint128 indexed perpsMarketId, string marketName, string marketSymbol)
+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 := _PerpsMarket.contract.FilterLogs(opts, "MarketCreated", perpsMarketIdRule)
+ if err != nil {
+ return nil, err
+ }
+ 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 (_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 := _PerpsMarket.contract.WatchLogs(opts, "MarketCreated", perpsMarketIdRule)
+ 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(PerpsMarketMarketCreated)
+ if err := _PerpsMarket.contract.UnpackLog(event, "MarketCreated", 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
+}
+
+// ParseMarketCreated is a log parse operation binding the contract event 0x032553f94ac1323933f22650ec5b8e232babf1c47efca69383b749463116cc49.
+//
+// Solidity: event MarketCreated(uint128 indexed perpsMarketId, string marketName, string marketSymbol)
+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
+}
+
+// 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
+
+ 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 *PerpsMarketMarketPriceDataUpdatedIterator) 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(PerpsMarketMarketPriceDataUpdated)
+ 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(PerpsMarketMarketPriceDataUpdated)
+ 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 *PerpsMarketMarketPriceDataUpdatedIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketMarketPriceDataUpdatedIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// PerpsMarketMarketPriceDataUpdated represents a MarketPriceDataUpdated event raised by the PerpsMarket contract.
+type PerpsMarketMarketPriceDataUpdated struct {
+ MarketId *big.Int
+ FeedId [32]byte
+ StrictStalenessTolerance *big.Int
+ Raw types.Log // Blockchain specific contextual infos
+}
+
+// FilterMarketPriceDataUpdated is a free log retrieval operation binding the contract event 0x6cf30df68198cadbabcf0342baee973e970617ec00e3cd564a8dc130b0d82dac.
+//
+// Solidity: event MarketPriceDataUpdated(uint128 indexed marketId, bytes32 feedId, uint256 strictStalenessTolerance)
+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 := _PerpsMarket.contract.FilterLogs(opts, "MarketPriceDataUpdated", marketIdRule)
+ if err != nil {
+ return nil, err
+ }
+ return &PerpsMarketMarketPriceDataUpdatedIterator{contract: _PerpsMarket.contract, event: "MarketPriceDataUpdated", logs: logs, sub: sub}, nil
+}
+
+// WatchMarketPriceDataUpdated is a free log subscription operation binding the contract event 0x6cf30df68198cadbabcf0342baee973e970617ec00e3cd564a8dc130b0d82dac.
+//
+// Solidity: event MarketPriceDataUpdated(uint128 indexed marketId, bytes32 feedId, uint256 strictStalenessTolerance)
+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 := _PerpsMarket.contract.WatchLogs(opts, "MarketPriceDataUpdated", 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(PerpsMarketMarketPriceDataUpdated)
+ if err := _PerpsMarket.contract.UnpackLog(event, "MarketPriceDataUpdated", 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
+}
+
+// ParseMarketPriceDataUpdated is a log parse operation binding the contract event 0x6cf30df68198cadbabcf0342baee973e970617ec00e3cd564a8dc130b0d82dac.
+//
+// Solidity: event MarketPriceDataUpdated(uint128 indexed marketId, bytes32 feedId, uint256 strictStalenessTolerance)
+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
+}
+
+// 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
+
+ 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 *PerpsMarketMarketUpdatedIterator) 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(PerpsMarketMarketUpdated)
+ 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(PerpsMarketMarketUpdated)
+ 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 *PerpsMarketMarketUpdatedIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketMarketUpdatedIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// PerpsMarketMarketUpdated represents a MarketUpdated event raised by the PerpsMarket contract.
+type PerpsMarketMarketUpdated struct {
+ MarketId *big.Int
+ Price *big.Int
+ Skew *big.Int
+ Size *big.Int
+ SizeDelta *big.Int
+ CurrentFundingRate *big.Int
+ CurrentFundingVelocity *big.Int
+ Raw types.Log // Blockchain specific contextual infos
+}
+
+// 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 (_PerpsMarket *PerpsMarketFilterer) FilterMarketUpdated(opts *bind.FilterOpts) (*PerpsMarketMarketUpdatedIterator, error) {
+
+ logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "MarketUpdated")
+ if err != nil {
+ return nil, err
+ }
+ 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 (_PerpsMarket *PerpsMarketFilterer) WatchMarketUpdated(opts *bind.WatchOpts, sink chan<- *PerpsMarketMarketUpdated) (event.Subscription, error) {
+
+ logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "MarketUpdated")
+ 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(PerpsMarketMarketUpdated)
+ if err := _PerpsMarket.contract.UnpackLog(event, "MarketUpdated", 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
+}
+
+// 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 (_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
+}
+
+// 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
+
+ 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 *PerpsMarketMaxLiquidationParametersSetIterator) 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(PerpsMarketMaxLiquidationParametersSet)
+ 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(PerpsMarketMaxLiquidationParametersSet)
+ 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 *PerpsMarketMaxLiquidationParametersSetIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketMaxLiquidationParametersSetIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// PerpsMarketMaxLiquidationParametersSet represents a MaxLiquidationParametersSet event raised by the PerpsMarket contract.
+type PerpsMarketMaxLiquidationParametersSet struct {
+ MarketId *big.Int
+ MaxLiquidationLimitAccumulationMultiplier *big.Int
+ MaxSecondsInLiquidationWindow *big.Int
+ MaxLiquidationPd *big.Int
+ EndorsedLiquidator common.Address
+ Raw types.Log // Blockchain specific contextual infos
+}
+
+// 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 (_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 := _PerpsMarket.contract.FilterLogs(opts, "MaxLiquidationParametersSet", marketIdRule)
+ if err != nil {
+ return nil, err
+ }
+ 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 (_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 := _PerpsMarket.contract.WatchLogs(opts, "MaxLiquidationParametersSet", 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(PerpsMarketMaxLiquidationParametersSet)
+ if err := _PerpsMarket.contract.UnpackLog(event, "MaxLiquidationParametersSet", 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
+}
+
+// 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 (_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
+}
+
+// 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
+
+ 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 *PerpsMarketMaxMarketSizeSetIterator) 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(PerpsMarketMaxMarketSizeSet)
+ 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(PerpsMarketMaxMarketSizeSet)
+ 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 *PerpsMarketMaxMarketSizeSetIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketMaxMarketSizeSetIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// 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
+}
+
+// FilterMaxMarketSizeSet is a free log retrieval operation binding the contract event 0xbd063bd3072a194b255163ab8dfd3400c4ab1cc641b920e7aaf1c11f92cd26cf.
+//
+// Solidity: event MaxMarketSizeSet(uint128 indexed marketId, uint256 maxMarketSize)
+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 := _PerpsMarket.contract.FilterLogs(opts, "MaxMarketSizeSet", marketIdRule)
+ if err != nil {
+ return nil, err
+ }
+ 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 (_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 := _PerpsMarket.contract.WatchLogs(opts, "MaxMarketSizeSet", 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(PerpsMarketMaxMarketSizeSet)
+ if err := _PerpsMarket.contract.UnpackLog(event, "MaxMarketSizeSet", 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
+}
+
+// ParseMaxMarketSizeSet is a log parse operation binding the contract event 0xbd063bd3072a194b255163ab8dfd3400c4ab1cc641b920e7aaf1c11f92cd26cf.
+//
+// Solidity: event MaxMarketSizeSet(uint128 indexed marketId, uint256 maxMarketSize)
+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
+}
+
+// PerpsMarketOrderCancelledIterator is returned from FilterOrderCancelled and is used to iterate over the raw logs and unpacked data for OrderCancelled events raised by the PerpsMarket contract.
+type PerpsMarketOrderCancelledIterator struct {
+ Event *PerpsMarketOrderCancelled // 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 *PerpsMarketOrderCancelledIterator) 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(PerpsMarketOrderCancelled)
+ 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(PerpsMarketOrderCancelled)
+ 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 *PerpsMarketOrderCancelledIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketOrderCancelledIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// PerpsMarketOrderCancelled represents a OrderCancelled event raised by the PerpsMarket contract.
+type PerpsMarketOrderCancelled struct {
+ MarketId *big.Int
+ AccountId *big.Int
+ DesiredPrice *big.Int
+ FillPrice *big.Int
+ SizeDelta *big.Int
+ SettlementReward *big.Int
+ TrackingCode [32]byte
+ Settler common.Address
+ Raw types.Log // Blockchain specific contextual infos
+}
+
+// FilterOrderCancelled is a free log retrieval operation binding the contract event 0x7415070016cafa6a064ae5b74d75f9968c033ce38621b3dc6d8e7a3b1e64e3ed.
+//
+// Solidity: event OrderCancelled(uint128 indexed marketId, uint128 indexed accountId, uint256 desiredPrice, uint256 fillPrice, int128 sizeDelta, uint256 settlementReward, bytes32 indexed trackingCode, address settler)
+func (_PerpsMarket *PerpsMarketFilterer) FilterOrderCancelled(opts *bind.FilterOpts, marketId []*big.Int, accountId []*big.Int, trackingCode [][32]byte) (*PerpsMarketOrderCancelledIterator, error) {
+
+ var marketIdRule []interface{}
+ for _, marketIdItem := range marketId {
+ marketIdRule = append(marketIdRule, marketIdItem)
+ }
+ var accountIdRule []interface{}
+ for _, accountIdItem := range accountId {
+ accountIdRule = append(accountIdRule, accountIdItem)
+ }
+
+ var trackingCodeRule []interface{}
+ for _, trackingCodeItem := range trackingCode {
+ trackingCodeRule = append(trackingCodeRule, trackingCodeItem)
+ }
+
+ logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "OrderCancelled", marketIdRule, accountIdRule, trackingCodeRule)
+ if err != nil {
+ return nil, err
+ }
+ return &PerpsMarketOrderCancelledIterator{contract: _PerpsMarket.contract, event: "OrderCancelled", logs: logs, sub: sub}, nil
+}
+
+// WatchOrderCancelled is a free log subscription operation binding the contract event 0x7415070016cafa6a064ae5b74d75f9968c033ce38621b3dc6d8e7a3b1e64e3ed.
+//
+// Solidity: event OrderCancelled(uint128 indexed marketId, uint128 indexed accountId, uint256 desiredPrice, uint256 fillPrice, int128 sizeDelta, uint256 settlementReward, bytes32 indexed trackingCode, address settler)
+func (_PerpsMarket *PerpsMarketFilterer) WatchOrderCancelled(opts *bind.WatchOpts, sink chan<- *PerpsMarketOrderCancelled, marketId []*big.Int, accountId []*big.Int, trackingCode [][32]byte) (event.Subscription, error) {
+
+ var marketIdRule []interface{}
+ for _, marketIdItem := range marketId {
+ marketIdRule = append(marketIdRule, marketIdItem)
+ }
+ var accountIdRule []interface{}
+ for _, accountIdItem := range accountId {
+ accountIdRule = append(accountIdRule, accountIdItem)
+ }
+
+ var trackingCodeRule []interface{}
+ for _, trackingCodeItem := range trackingCode {
+ trackingCodeRule = append(trackingCodeRule, trackingCodeItem)
+ }
+
+ logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "OrderCancelled", marketIdRule, accountIdRule, trackingCodeRule)
+ 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(PerpsMarketOrderCancelled)
+ if err := _PerpsMarket.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 0x7415070016cafa6a064ae5b74d75f9968c033ce38621b3dc6d8e7a3b1e64e3ed.
+//
+// Solidity: event OrderCancelled(uint128 indexed marketId, uint128 indexed accountId, uint256 desiredPrice, uint256 fillPrice, int128 sizeDelta, uint256 settlementReward, bytes32 indexed trackingCode, address settler)
+func (_PerpsMarket *PerpsMarketFilterer) ParseOrderCancelled(log types.Log) (*PerpsMarketOrderCancelled, error) {
+ event := new(PerpsMarketOrderCancelled)
+ if err := _PerpsMarket.contract.UnpackLog(event, "OrderCancelled", log); err != nil {
+ return nil, err
+ }
+ event.Raw = log
+ return event, nil
+}
+
+// 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
+
+ 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 *PerpsMarketOrderCommittedIterator) 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(PerpsMarketOrderCommitted)
+ 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(PerpsMarketOrderCommitted)
+ 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 *PerpsMarketOrderCommittedIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketOrderCommittedIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// PerpsMarketOrderCommitted represents a OrderCommitted event raised by the PerpsMarket contract.
+type PerpsMarketOrderCommitted struct {
+ MarketId *big.Int
+ AccountId *big.Int
+ OrderType uint8
+ SizeDelta *big.Int
+ AcceptablePrice *big.Int
+ CommitmentTime *big.Int
+ SettlementTime *big.Int
+ ExpirationTime *big.Int
+ TrackingCode [32]byte
+ Sender common.Address
+ Raw types.Log // Blockchain specific contextual infos
+}
+
+// FilterOrderCommitted is a free log retrieval operation binding the contract event 0x0f367b4709dff1c8185b0f7a0c636c8b6d9556f8291a6a04589b821142c803db.
+//
+// Solidity: event OrderCommitted(uint128 indexed marketId, uint128 indexed accountId, uint8 orderType, int128 sizeDelta, uint256 acceptablePrice, uint256 commitmentTime, uint256 settlementTime, uint256 expirationTime, bytes32 indexed trackingCode, address sender)
+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 {
+ marketIdRule = append(marketIdRule, marketIdItem)
+ }
+ var accountIdRule []interface{}
+ for _, accountIdItem := range accountId {
+ accountIdRule = append(accountIdRule, accountIdItem)
+ }
+
+ var trackingCodeRule []interface{}
+ for _, trackingCodeItem := range trackingCode {
+ trackingCodeRule = append(trackingCodeRule, trackingCodeItem)
+ }
+
+ logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "OrderCommitted", marketIdRule, accountIdRule, trackingCodeRule)
+ if err != nil {
+ return nil, err
+ }
+ return &PerpsMarketOrderCommittedIterator{contract: _PerpsMarket.contract, event: "OrderCommitted", logs: logs, sub: sub}, nil
+}
+
+// WatchOrderCommitted is a free log subscription operation binding the contract event 0x0f367b4709dff1c8185b0f7a0c636c8b6d9556f8291a6a04589b821142c803db.
+//
+// Solidity: event OrderCommitted(uint128 indexed marketId, uint128 indexed accountId, uint8 orderType, int128 sizeDelta, uint256 acceptablePrice, uint256 commitmentTime, uint256 settlementTime, uint256 expirationTime, bytes32 indexed trackingCode, address sender)
+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 {
+ marketIdRule = append(marketIdRule, marketIdItem)
+ }
+ var accountIdRule []interface{}
+ for _, accountIdItem := range accountId {
+ accountIdRule = append(accountIdRule, accountIdItem)
+ }
+
+ var trackingCodeRule []interface{}
+ for _, trackingCodeItem := range trackingCode {
+ trackingCodeRule = append(trackingCodeRule, trackingCodeItem)
+ }
+
+ logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "OrderCommitted", marketIdRule, accountIdRule, trackingCodeRule)
+ 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(PerpsMarketOrderCommitted)
+ if err := _PerpsMarket.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 0x0f367b4709dff1c8185b0f7a0c636c8b6d9556f8291a6a04589b821142c803db.
+//
+// Solidity: event OrderCommitted(uint128 indexed marketId, uint128 indexed accountId, uint8 orderType, int128 sizeDelta, uint256 acceptablePrice, uint256 commitmentTime, uint256 settlementTime, uint256 expirationTime, bytes32 indexed trackingCode, address sender)
+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
+}
+
+// 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
+
+ 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 *PerpsMarketOrderFeesSetIterator) 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(PerpsMarketOrderFeesSet)
+ 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(PerpsMarketOrderFeesSet)
+ 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 *PerpsMarketOrderFeesSetIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketOrderFeesSetIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// PerpsMarketOrderFeesSet represents a OrderFeesSet event raised by the PerpsMarket contract.
+type PerpsMarketOrderFeesSet struct {
+ MarketId *big.Int
+ MakerFeeRatio *big.Int
+ TakerFeeRatio *big.Int
+ Raw types.Log // Blockchain specific contextual infos
+}
+
+// FilterOrderFeesSet is a free log retrieval operation binding the contract event 0x28969f156340ba9eb31589904eb174d3a4b6a37781fa6f7ad289d349d75dd1ee.
+//
+// Solidity: event OrderFeesSet(uint128 indexed marketId, uint256 makerFeeRatio, uint256 takerFeeRatio)
+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 := _PerpsMarket.contract.FilterLogs(opts, "OrderFeesSet", marketIdRule)
+ if err != nil {
+ return nil, err
+ }
+ 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 (_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 := _PerpsMarket.contract.WatchLogs(opts, "OrderFeesSet", 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(PerpsMarketOrderFeesSet)
+ if err := _PerpsMarket.contract.UnpackLog(event, "OrderFeesSet", 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
+}
+
+// ParseOrderFeesSet is a log parse operation binding the contract event 0x28969f156340ba9eb31589904eb174d3a4b6a37781fa6f7ad289d349d75dd1ee.
+//
+// Solidity: event OrderFeesSet(uint128 indexed marketId, uint256 makerFeeRatio, uint256 takerFeeRatio)
+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
+}
+
+// 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
+
+ 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 *PerpsMarketOrderSettledIterator) 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(PerpsMarketOrderSettled)
+ 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(PerpsMarketOrderSettled)
+ 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 *PerpsMarketOrderSettledIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketOrderSettledIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// PerpsMarketOrderSettled represents a OrderSettled event raised by the PerpsMarket contract.
+type PerpsMarketOrderSettled struct {
+ MarketId *big.Int
+ AccountId *big.Int
+ FillPrice *big.Int
+ Pnl *big.Int
+ AccruedFunding *big.Int
+ SizeDelta *big.Int
+ NewSize *big.Int
+ TotalFees *big.Int
+ ReferralFees *big.Int
+ CollectedFees *big.Int
+ SettlementReward *big.Int
+ TrackingCode [32]byte
+ Settler common.Address
+ Raw types.Log // Blockchain specific contextual infos
+}
+
+// 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 (_PerpsMarket *PerpsMarketFilterer) FilterOrderSettled(opts *bind.FilterOpts, marketId []*big.Int, accountId []*big.Int, trackingCode [][32]byte) (*PerpsMarketOrderSettledIterator, error) {
+
+ var marketIdRule []interface{}
+ for _, marketIdItem := range marketId {
+ marketIdRule = append(marketIdRule, marketIdItem)
+ }
+ var accountIdRule []interface{}
+ for _, accountIdItem := range accountId {
+ accountIdRule = append(accountIdRule, accountIdItem)
+ }
+
+ var trackingCodeRule []interface{}
+ for _, trackingCodeItem := range trackingCode {
+ trackingCodeRule = append(trackingCodeRule, trackingCodeItem)
+ }
+
+ logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "OrderSettled", marketIdRule, accountIdRule, trackingCodeRule)
+ if err != nil {
+ return nil, err
+ }
+ 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 (_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 {
+ marketIdRule = append(marketIdRule, marketIdItem)
+ }
+ var accountIdRule []interface{}
+ for _, accountIdItem := range accountId {
+ accountIdRule = append(accountIdRule, accountIdItem)
+ }
+
+ var trackingCodeRule []interface{}
+ for _, trackingCodeItem := range trackingCode {
+ trackingCodeRule = append(trackingCodeRule, trackingCodeItem)
+ }
+
+ logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "OrderSettled", marketIdRule, accountIdRule, trackingCodeRule)
+ 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(PerpsMarketOrderSettled)
+ if err := _PerpsMarket.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 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 (_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
+}
+
+// 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
+
+ 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 *PerpsMarketOwnerChangedIterator) 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(PerpsMarketOwnerChanged)
+ 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(PerpsMarketOwnerChanged)
+ 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 *PerpsMarketOwnerChangedIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketOwnerChangedIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// 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
+}
+
+// FilterOwnerChanged is a free log retrieval operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c.
+//
+// Solidity: event OwnerChanged(address oldOwner, address newOwner)
+func (_PerpsMarket *PerpsMarketFilterer) FilterOwnerChanged(opts *bind.FilterOpts) (*PerpsMarketOwnerChangedIterator, error) {
+
+ logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "OwnerChanged")
+ if err != nil {
+ return nil, err
+ }
+ 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 (_PerpsMarket *PerpsMarketFilterer) WatchOwnerChanged(opts *bind.WatchOpts, sink chan<- *PerpsMarketOwnerChanged) (event.Subscription, error) {
+
+ logs, sub, err := _PerpsMarket.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(PerpsMarketOwnerChanged)
+ if err := _PerpsMarket.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 (_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
+}
+
+// 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
+
+ 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 *PerpsMarketOwnerNominatedIterator) 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(PerpsMarketOwnerNominated)
+ 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(PerpsMarketOwnerNominated)
+ 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 *PerpsMarketOwnerNominatedIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketOwnerNominatedIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// PerpsMarketOwnerNominated represents a OwnerNominated event raised by the PerpsMarket contract.
+type PerpsMarketOwnerNominated 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 (_PerpsMarket *PerpsMarketFilterer) FilterOwnerNominated(opts *bind.FilterOpts) (*PerpsMarketOwnerNominatedIterator, error) {
+
+ logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "OwnerNominated")
+ if err != nil {
+ return nil, err
+ }
+ 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 (_PerpsMarket *PerpsMarketFilterer) WatchOwnerNominated(opts *bind.WatchOpts, sink chan<- *PerpsMarketOwnerNominated) (event.Subscription, error) {
+
+ logs, sub, err := _PerpsMarket.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(PerpsMarketOwnerNominated)
+ if err := _PerpsMarket.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 (_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
+}
+
+// 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
+
+ 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 *PerpsMarketPerAccountCapsSetIterator) 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(PerpsMarketPerAccountCapsSet)
+ 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(PerpsMarketPerAccountCapsSet)
+ 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 *PerpsMarketPerAccountCapsSetIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketPerAccountCapsSetIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// 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
+}
+
+// FilterPerAccountCapsSet is a free log retrieval operation binding the contract event 0x3448c6d1990f2d48253b91394193cd11ce49f1653f2d03934af6d17195ffe34e.
+//
+// Solidity: event PerAccountCapsSet(uint128 maxPositionsPerAccount, uint128 maxCollateralsPerAccount)
+func (_PerpsMarket *PerpsMarketFilterer) FilterPerAccountCapsSet(opts *bind.FilterOpts) (*PerpsMarketPerAccountCapsSetIterator, error) {
+
+ logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "PerAccountCapsSet")
+ if err != nil {
+ return nil, err
+ }
+ 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 (_PerpsMarket *PerpsMarketFilterer) WatchPerAccountCapsSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketPerAccountCapsSet) (event.Subscription, error) {
+
+ logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "PerAccountCapsSet")
+ 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(PerpsMarketPerAccountCapsSet)
+ if err := _PerpsMarket.contract.UnpackLog(event, "PerAccountCapsSet", 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
+}
+
+// ParsePerAccountCapsSet is a log parse operation binding the contract event 0x3448c6d1990f2d48253b91394193cd11ce49f1653f2d03934af6d17195ffe34e.
+//
+// Solidity: event PerAccountCapsSet(uint128 maxPositionsPerAccount, uint128 maxCollateralsPerAccount)
+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
+}
+
+// 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
+
+ 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 *PerpsMarketPermissionGrantedIterator) 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(PerpsMarketPermissionGranted)
+ 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(PerpsMarketPermissionGranted)
+ 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 *PerpsMarketPermissionGrantedIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketPermissionGrantedIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// PerpsMarketPermissionGranted represents a PermissionGranted event raised by the PerpsMarket contract.
+type PerpsMarketPermissionGranted 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 (_PerpsMarket *PerpsMarketFilterer) FilterPermissionGranted(opts *bind.FilterOpts, accountId []*big.Int, permission [][32]byte, user []common.Address) (*PerpsMarketPermissionGrantedIterator, 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 := _PerpsMarket.contract.FilterLogs(opts, "PermissionGranted", accountIdRule, permissionRule, userRule)
+ if err != nil {
+ return nil, err
+ }
+ 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 (_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 {
+ 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 := _PerpsMarket.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(PerpsMarketPermissionGranted)
+ if err := _PerpsMarket.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 (_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
+}
+
+// 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
+
+ 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 *PerpsMarketPermissionRevokedIterator) 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(PerpsMarketPermissionRevoked)
+ 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(PerpsMarketPermissionRevoked)
+ 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 *PerpsMarketPermissionRevokedIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketPermissionRevokedIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// PerpsMarketPermissionRevoked represents a PermissionRevoked event raised by the PerpsMarket contract.
+type PerpsMarketPermissionRevoked 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 (_PerpsMarket *PerpsMarketFilterer) FilterPermissionRevoked(opts *bind.FilterOpts, accountId []*big.Int, permission [][32]byte, user []common.Address) (*PerpsMarketPermissionRevokedIterator, 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 := _PerpsMarket.contract.FilterLogs(opts, "PermissionRevoked", accountIdRule, permissionRule, userRule)
+ if err != nil {
+ return nil, err
+ }
+ 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 (_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 {
+ 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 := _PerpsMarket.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(PerpsMarketPermissionRevoked)
+ if err := _PerpsMarket.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 (_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
+}
+
+// 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
+
+ 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 *PerpsMarketPositionLiquidatedIterator) 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(PerpsMarketPositionLiquidated)
+ 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(PerpsMarketPositionLiquidated)
+ 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 *PerpsMarketPositionLiquidatedIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketPositionLiquidatedIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// PerpsMarketPositionLiquidated represents a PositionLiquidated event raised by the PerpsMarket contract.
+type PerpsMarketPositionLiquidated struct {
+ AccountId *big.Int
+ MarketId *big.Int
+ AmountLiquidated *big.Int
+ CurrentPositionSize *big.Int
+ Raw types.Log // Blockchain specific contextual infos
+}
+
+// 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 (_PerpsMarket *PerpsMarketFilterer) FilterPositionLiquidated(opts *bind.FilterOpts, accountId []*big.Int, marketId []*big.Int) (*PerpsMarketPositionLiquidatedIterator, error) {
+
+ var accountIdRule []interface{}
+ for _, accountIdItem := range accountId {
+ accountIdRule = append(accountIdRule, accountIdItem)
+ }
+ var marketIdRule []interface{}
+ for _, marketIdItem := range marketId {
+ marketIdRule = append(marketIdRule, marketIdItem)
+ }
+
+ logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "PositionLiquidated", accountIdRule, marketIdRule)
+ if err != nil {
+ return nil, err
+ }
+ 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 (_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 {
+ accountIdRule = append(accountIdRule, accountIdItem)
+ }
+ var marketIdRule []interface{}
+ for _, marketIdItem := range marketId {
+ marketIdRule = append(marketIdRule, marketIdItem)
+ }
+
+ logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "PositionLiquidated", accountIdRule, 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(PerpsMarketPositionLiquidated)
+ if err := _PerpsMarket.contract.UnpackLog(event, "PositionLiquidated", 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
+}
+
+// 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 (_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
+}
+
+// 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
+
+ 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 *PerpsMarketPreviousOrderExpiredIterator) 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(PerpsMarketPreviousOrderExpired)
+ 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(PerpsMarketPreviousOrderExpired)
+ 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 *PerpsMarketPreviousOrderExpiredIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketPreviousOrderExpiredIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// PerpsMarketPreviousOrderExpired represents a PreviousOrderExpired event raised by the PerpsMarket contract.
+type PerpsMarketPreviousOrderExpired struct {
+ MarketId *big.Int
+ AccountId *big.Int
+ SizeDelta *big.Int
+ AcceptablePrice *big.Int
+ CommitmentTime *big.Int
+ TrackingCode [32]byte
+ Raw types.Log // Blockchain specific contextual infos
+}
+
+// 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 commitmentTime, bytes32 indexed trackingCode)
+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 {
+ marketIdRule = append(marketIdRule, marketIdItem)
+ }
+ var accountIdRule []interface{}
+ for _, accountIdItem := range accountId {
+ accountIdRule = append(accountIdRule, accountIdItem)
+ }
+
+ var trackingCodeRule []interface{}
+ for _, trackingCodeItem := range trackingCode {
+ trackingCodeRule = append(trackingCodeRule, trackingCodeItem)
+ }
+
+ logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "PreviousOrderExpired", marketIdRule, accountIdRule, trackingCodeRule)
+ if err != nil {
+ return nil, err
+ }
+ 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 commitmentTime, bytes32 indexed trackingCode)
+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 {
+ marketIdRule = append(marketIdRule, marketIdItem)
+ }
+ var accountIdRule []interface{}
+ for _, accountIdItem := range accountId {
+ accountIdRule = append(accountIdRule, accountIdItem)
+ }
+
+ var trackingCodeRule []interface{}
+ for _, trackingCodeItem := range trackingCode {
+ trackingCodeRule = append(trackingCodeRule, trackingCodeItem)
+ }
+
+ logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "PreviousOrderExpired", marketIdRule, accountIdRule, trackingCodeRule)
+ 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(PerpsMarketPreviousOrderExpired)
+ if err := _PerpsMarket.contract.UnpackLog(event, "PreviousOrderExpired", 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
+}
+
+// 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 commitmentTime, bytes32 indexed trackingCode)
+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
+}
+
+// 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
+
+ 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 *PerpsMarketReferrerShareUpdatedIterator) 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(PerpsMarketReferrerShareUpdated)
+ 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(PerpsMarketReferrerShareUpdated)
+ 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 *PerpsMarketReferrerShareUpdatedIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketReferrerShareUpdatedIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// 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
+}
+
+// FilterReferrerShareUpdated is a free log retrieval operation binding the contract event 0xa225c555f4cd21a533ad4e01eaf30153c84ca28265d954a651410d3c1e56242c.
+//
+// Solidity: event ReferrerShareUpdated(address referrer, uint256 shareRatioD18)
+func (_PerpsMarket *PerpsMarketFilterer) FilterReferrerShareUpdated(opts *bind.FilterOpts) (*PerpsMarketReferrerShareUpdatedIterator, error) {
+
+ logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "ReferrerShareUpdated")
+ if err != nil {
+ return nil, err
+ }
+ 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 (_PerpsMarket *PerpsMarketFilterer) WatchReferrerShareUpdated(opts *bind.WatchOpts, sink chan<- *PerpsMarketReferrerShareUpdated) (event.Subscription, error) {
+
+ logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "ReferrerShareUpdated")
+ 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(PerpsMarketReferrerShareUpdated)
+ if err := _PerpsMarket.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 0xa225c555f4cd21a533ad4e01eaf30153c84ca28265d954a651410d3c1e56242c.
+//
+// Solidity: event ReferrerShareUpdated(address referrer, uint256 shareRatioD18)
+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
+}
+
+// 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
+
+ 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 *PerpsMarketSettlementStrategyAddedIterator) 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(PerpsMarketSettlementStrategyAdded)
+ 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(PerpsMarketSettlementStrategyAdded)
+ 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 *PerpsMarketSettlementStrategyAddedIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketSettlementStrategyAddedIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// 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 0x7b65e958e6a1069f7675c1f0bd79bed340e152a0f946dc044b9bf4e6c2bb5493.
+//
+// Solidity: event SettlementStrategyAdded(uint128 indexed marketId, (uint8,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 {
+ marketIdRule = append(marketIdRule, marketIdItem)
+ }
+
+ var strategyIdRule []interface{}
+ for _, strategyIdItem := range strategyId {
+ strategyIdRule = append(strategyIdRule, strategyIdItem)
+ }
+
+ logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "SettlementStrategyAdded", marketIdRule, strategyIdRule)
+ if err != nil {
+ return nil, err
+ }
+ return &PerpsMarketSettlementStrategyAddedIterator{contract: _PerpsMarket.contract, event: "SettlementStrategyAdded", logs: logs, sub: sub}, nil
+}
+
+// WatchSettlementStrategyAdded is a free log subscription operation binding the contract event 0x7b65e958e6a1069f7675c1f0bd79bed340e152a0f946dc044b9bf4e6c2bb5493.
+//
+// Solidity: event SettlementStrategyAdded(uint128 indexed marketId, (uint8,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 {
+ marketIdRule = append(marketIdRule, marketIdItem)
+ }
+
+ var strategyIdRule []interface{}
+ for _, strategyIdItem := range strategyId {
+ strategyIdRule = append(strategyIdRule, strategyIdItem)
+ }
+
+ logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "SettlementStrategyAdded", marketIdRule, 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(PerpsMarketSettlementStrategyAdded)
+ if err := _PerpsMarket.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 0x7b65e958e6a1069f7675c1f0bd79bed340e152a0f946dc044b9bf4e6c2bb5493.
+//
+// Solidity: event SettlementStrategyAdded(uint128 indexed marketId, (uint8,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
+}
+
+// PerpsMarketSettlementStrategySetIterator is returned from FilterSettlementStrategySet and is used to iterate over the raw logs and unpacked data for SettlementStrategySet events raised by the PerpsMarket contract.
+type PerpsMarketSettlementStrategySetIterator struct {
+ Event *PerpsMarketSettlementStrategySet // 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 *PerpsMarketSettlementStrategySetIterator) 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(PerpsMarketSettlementStrategySet)
+ 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(PerpsMarketSettlementStrategySet)
+ 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 *PerpsMarketSettlementStrategySetIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketSettlementStrategySetIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// PerpsMarketSettlementStrategySet represents a SettlementStrategySet event raised by the PerpsMarket contract.
+type PerpsMarketSettlementStrategySet struct {
+ MarketId *big.Int
+ StrategyId *big.Int
+ Strategy SettlementStrategyData
+ Raw types.Log // Blockchain specific contextual infos
+}
+
+// FilterSettlementStrategySet is a free log retrieval operation binding the contract event 0xa9119a80ed7f829a6107da2aef0de2cfbc1fa35940a1c492e5dcc437931b4de9.
+//
+// Solidity: event SettlementStrategySet(uint128 indexed marketId, uint256 indexed strategyId, (uint8,uint256,uint256,address,bytes32,string,uint256,bool) strategy)
+func (_PerpsMarket *PerpsMarketFilterer) FilterSettlementStrategySet(opts *bind.FilterOpts, marketId []*big.Int, strategyId []*big.Int) (*PerpsMarketSettlementStrategySetIterator, error) {
+
+ var marketIdRule []interface{}
+ for _, marketIdItem := range marketId {
+ marketIdRule = append(marketIdRule, marketIdItem)
+ }
+ var strategyIdRule []interface{}
+ for _, strategyIdItem := range strategyId {
+ strategyIdRule = append(strategyIdRule, strategyIdItem)
+ }
+
+ logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "SettlementStrategySet", marketIdRule, strategyIdRule)
+ if err != nil {
+ return nil, err
+ }
+ return &PerpsMarketSettlementStrategySetIterator{contract: _PerpsMarket.contract, event: "SettlementStrategySet", logs: logs, sub: sub}, nil
+}
+
+// WatchSettlementStrategySet is a free log subscription operation binding the contract event 0xa9119a80ed7f829a6107da2aef0de2cfbc1fa35940a1c492e5dcc437931b4de9.
+//
+// Solidity: event SettlementStrategySet(uint128 indexed marketId, uint256 indexed strategyId, (uint8,uint256,uint256,address,bytes32,string,uint256,bool) strategy)
+func (_PerpsMarket *PerpsMarketFilterer) WatchSettlementStrategySet(opts *bind.WatchOpts, sink chan<- *PerpsMarketSettlementStrategySet, marketId []*big.Int, strategyId []*big.Int) (event.Subscription, error) {
+
+ var marketIdRule []interface{}
+ for _, marketIdItem := range marketId {
+ marketIdRule = append(marketIdRule, marketIdItem)
+ }
+ var strategyIdRule []interface{}
+ for _, strategyIdItem := range strategyId {
+ strategyIdRule = append(strategyIdRule, strategyIdItem)
+ }
+
+ logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "SettlementStrategySet", marketIdRule, 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(PerpsMarketSettlementStrategySet)
+ if err := _PerpsMarket.contract.UnpackLog(event, "SettlementStrategySet", 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
+}
+
+// ParseSettlementStrategySet is a log parse operation binding the contract event 0xa9119a80ed7f829a6107da2aef0de2cfbc1fa35940a1c492e5dcc437931b4de9.
+//
+// Solidity: event SettlementStrategySet(uint128 indexed marketId, uint256 indexed strategyId, (uint8,uint256,uint256,address,bytes32,string,uint256,bool) strategy)
+func (_PerpsMarket *PerpsMarketFilterer) ParseSettlementStrategySet(log types.Log) (*PerpsMarketSettlementStrategySet, error) {
+ event := new(PerpsMarketSettlementStrategySet)
+ if err := _PerpsMarket.contract.UnpackLog(event, "SettlementStrategySet", log); err != nil {
+ return nil, err
+ }
+ event.Raw = log
+ return event, nil
+}
+
+// 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
+
+ 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 *PerpsMarketSynthDeductionPrioritySetIterator) 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(PerpsMarketSynthDeductionPrioritySet)
+ 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(PerpsMarketSynthDeductionPrioritySet)
+ 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 *PerpsMarketSynthDeductionPrioritySetIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketSynthDeductionPrioritySetIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// PerpsMarketSynthDeductionPrioritySet represents a SynthDeductionPrioritySet event raised by the PerpsMarket contract.
+type PerpsMarketSynthDeductionPrioritySet struct {
+ NewSynthDeductionPriority []*big.Int
+ Raw types.Log // Blockchain specific contextual infos
+}
+
+// FilterSynthDeductionPrioritySet is a free log retrieval operation binding the contract event 0xa6beea856d32db9e9614e4af02fc7d6a3fa8337a13e4a48486c142a9a9a8ed8f.
+//
+// Solidity: event SynthDeductionPrioritySet(uint128[] newSynthDeductionPriority)
+func (_PerpsMarket *PerpsMarketFilterer) FilterSynthDeductionPrioritySet(opts *bind.FilterOpts) (*PerpsMarketSynthDeductionPrioritySetIterator, error) {
+
+ logs, sub, err := _PerpsMarket.contract.FilterLogs(opts, "SynthDeductionPrioritySet")
+ if err != nil {
+ return nil, err
+ }
+ 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 (_PerpsMarket *PerpsMarketFilterer) WatchSynthDeductionPrioritySet(opts *bind.WatchOpts, sink chan<- *PerpsMarketSynthDeductionPrioritySet) (event.Subscription, error) {
+
+ logs, sub, err := _PerpsMarket.contract.WatchLogs(opts, "SynthDeductionPrioritySet")
+ 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(PerpsMarketSynthDeductionPrioritySet)
+ if err := _PerpsMarket.contract.UnpackLog(event, "SynthDeductionPrioritySet", 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
+}
+
+// ParseSynthDeductionPrioritySet is a log parse operation binding the contract event 0xa6beea856d32db9e9614e4af02fc7d6a3fa8337a13e4a48486c142a9a9a8ed8f.
+//
+// Solidity: event SynthDeductionPrioritySet(uint128[] newSynthDeductionPriority)
+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
+}
+
+// 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
+
+ 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 *PerpsMarketUpgradedIterator) 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(PerpsMarketUpgraded)
+ 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(PerpsMarketUpgraded)
+ 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 *PerpsMarketUpgradedIterator) Error() error {
+ return it.fail
+}
+
+// Close terminates the iteration process, releasing any pending underlying
+// resources.
+func (it *PerpsMarketUpgradedIterator) Close() error {
+ it.sub.Unsubscribe()
+ return nil
+}
+
+// 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
+}
+
+// FilterUpgraded is a free log retrieval operation binding the contract event 0x5d611f318680d00598bb735d61bacf0c514c6b50e1e5ad30040a4df2b12791c7.
+//
+// Solidity: event Upgraded(address indexed self, address implementation)
+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 := _PerpsMarket.contract.FilterLogs(opts, "Upgraded", selfRule)
+ if err != nil {
+ return nil, err
+ }
+ 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 (_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 := _PerpsMarket.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(PerpsMarketUpgraded)
+ if err := _PerpsMarket.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 (_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
+ return event, nil
+}
diff --git a/contracts/perpsMarketGoerli/contract.go b/contracts/perpsMarketGoerli/contract.go
deleted file mode 100644
index c33ca50..0000000
--- a/contracts/perpsMarketGoerli/contract.go
+++ /dev/null
@@ -1,8485 +0,0 @@
-// Code generated - DO NOT EDIT.
-// This file is a generated binding and any manual changes will be lost.
-
-package perpsMarketGoerli
-
-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
-)
-
-// AsyncOrderData is an auto generated low-level Go binding around an user-defined struct.
-type AsyncOrderData struct {
- SettlementTime *big.Int
- Request AsyncOrderOrderCommitmentRequest
-}
-
-// AsyncOrderOrderCommitmentRequest is an auto generated low-level Go binding around an user-defined struct.
-type AsyncOrderOrderCommitmentRequest struct {
- MarketId *big.Int
- AccountId *big.Int
- SizeDelta *big.Int
- SettlementStrategyId *big.Int
- AcceptablePrice *big.Int
- TrackingCode [32]byte
- Referrer common.Address
-}
-
-// IAccountModuleAccountPermissions is an auto generated low-level Go binding around an user-defined struct.
-type IAccountModuleAccountPermissions struct {
- User common.Address
- Permissions [][32]byte
-}
-
-// IPerpsMarketModuleMarketSummary is an auto generated low-level Go binding around an user-defined struct.
-type IPerpsMarketModuleMarketSummary struct {
- Skew *big.Int
- Size *big.Int
- MaxOpenInterest *big.Int
- CurrentFundingRate *big.Int
- CurrentFundingVelocity *big.Int
- IndexPrice *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
- PriceWindowDuration *big.Int
- PriceVerificationContract common.Address
- 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\"}]",
-}
-
-// PerpsMarketGoerliABI is the input ABI used to generate the binding from.
-// Deprecated: Use PerpsMarketGoerliMetaData.ABI instead.
-var PerpsMarketGoerliABI = PerpsMarketGoerliMetaData.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
-}
-
-// PerpsMarketGoerliCaller is an auto generated read-only Go binding around an Ethereum contract.
-type PerpsMarketGoerliCaller 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 {
- 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 {
- contract *bind.BoundContract // Generic contract wrapper for the low level calls
-}
-
-// PerpsMarketGoerliSession 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
-}
-
-// PerpsMarketGoerliCallerSession 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
-}
-
-// PerpsMarketGoerliTransactorSession 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
-}
-
-// 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
-}
-
-// 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
-}
-
-// 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
-}
-
-// 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)
- if err != nil {
- return nil, err
- }
- return &PerpsMarketGoerli{PerpsMarketGoerliCaller: PerpsMarketGoerliCaller{contract: contract}, PerpsMarketGoerliTransactor: PerpsMarketGoerliTransactor{contract: contract}, PerpsMarketGoerliFilterer: PerpsMarketGoerliFilterer{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)
- if err != nil {
- return nil, err
- }
- return &PerpsMarketGoerliCaller{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)
- if err != nil {
- return nil, err
- }
- return &PerpsMarketGoerliTransactor{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)
- if err != nil {
- return nil, err
- }
- return &PerpsMarketGoerliFilterer{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()
- 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 (_PerpsMarketGoerli *PerpsMarketGoerliRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
- return _PerpsMarketGoerli.Contract.PerpsMarketGoerliCaller.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)
-}
-
-// 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...)
-}
-
-// 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...)
-}
-
-// 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)
-}
-
-// 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...)
-}
-
-// 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) {
- var out []interface{}
- err := _PerpsMarketGoerli.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 (_PerpsMarketGoerli *PerpsMarketGoerliSession) PRECISION() (*big.Int, error) {
- return _PerpsMarketGoerli.Contract.PRECISION(&_PerpsMarketGoerli.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)
-}
-
-// 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) {
- var out []interface{}
- err := _PerpsMarketGoerli.contract.Call(opts, &out, "canLiquidate", accountId)
-
- if err != nil {
- return *new(bool), err
- }
-
- out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
-
- return out0, err
-
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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 {
- OrderFees *big.Int
- FillPrice *big.Int
-}, error) {
- var out []interface{}
- err := _PerpsMarketGoerli.contract.Call(opts, &out, "computeOrderFees", marketId, sizeDelta)
-
- outstruct := new(struct {
- OrderFees *big.Int
- FillPrice *big.Int
- })
- if err != nil {
- return *outstruct, err
- }
-
- outstruct.OrderFees = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
- outstruct.FillPrice = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int)
-
- return *outstruct, err
-
-}
-
-// 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 {
- OrderFees *big.Int
- FillPrice *big.Int
-}, error) {
- return _PerpsMarketGoerli.Contract.ComputeOrderFees(&_PerpsMarketGoerli.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 {
- OrderFees *big.Int
- FillPrice *big.Int
-}, error) {
- return _PerpsMarketGoerli.Contract.ComputeOrderFees(&_PerpsMarketGoerli.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) {
- var out []interface{}
- err := _PerpsMarketGoerli.contract.Call(opts, &out, "currentFundingRate", marketId)
-
- if err != nil {
- return *new(*big.Int), err
- }
-
- out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
-
- return out0, err
-
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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) {
- var out []interface{}
- err := _PerpsMarketGoerli.contract.Call(opts, &out, "currentFundingVelocity", marketId)
-
- if err != nil {
- return *new(*big.Int), err
- }
-
- out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
-
- return out0, err
-
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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) {
- var out []interface{}
- err := _PerpsMarketGoerli.contract.Call(opts, &out, "fillPrice", marketId, orderSize, price)
-
- if err != nil {
- return *new(*big.Int), err
- }
-
- out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
-
- return out0, err
-
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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) {
- var out []interface{}
- err := _PerpsMarketGoerli.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 (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetAccountLastInteraction(accountId *big.Int) (*big.Int, error) {
- return _PerpsMarketGoerli.Contract.GetAccountLastInteraction(&_PerpsMarketGoerli.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)
-}
-
-// 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) {
- var out []interface{}
- err := _PerpsMarketGoerli.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 (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetAccountOwner(accountId *big.Int) (common.Address, error) {
- return _PerpsMarketGoerli.Contract.GetAccountOwner(&_PerpsMarketGoerli.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)
-}
-
-// 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) {
- var out []interface{}
- err := _PerpsMarketGoerli.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 (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetAccountPermissions(accountId *big.Int) ([]IAccountModuleAccountPermissions, error) {
- return _PerpsMarketGoerli.Contract.GetAccountPermissions(&_PerpsMarketGoerli.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)
-}
-
-// 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) {
- var out []interface{}
- err := _PerpsMarketGoerli.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 (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetAccountTokenAddress() (common.Address, error) {
- return _PerpsMarketGoerli.Contract.GetAccountTokenAddress(&_PerpsMarketGoerli.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)
-}
-
-// 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 {
- Addr common.Address
- Kind [32]byte
-}, error) {
- var out []interface{}
- err := _PerpsMarketGoerli.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 (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetAssociatedSystem(id [32]byte) (struct {
- Addr common.Address
- Kind [32]byte
-}, error) {
- return _PerpsMarketGoerli.Contract.GetAssociatedSystem(&_PerpsMarketGoerli.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 {
- Addr common.Address
- Kind [32]byte
-}, error) {
- return _PerpsMarketGoerli.Contract.GetAssociatedSystem(&_PerpsMarketGoerli.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) {
- var out []interface{}
- err := _PerpsMarketGoerli.contract.Call(opts, &out, "getAvailableMargin", accountId)
-
- if err != nil {
- return *new(*big.Int), err
- }
-
- out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
-
- return out0, err
-
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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) {
- var out []interface{}
- err := _PerpsMarketGoerli.contract.Call(opts, &out, "getCollateralAmount", accountId, synthMarketId)
-
- if err != nil {
- return *new(*big.Int), err
- }
-
- out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
-
- return out0, err
-
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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) {
- var out []interface{}
- err := _PerpsMarketGoerli.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 (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetDeniers(feature [32]byte) ([]common.Address, error) {
- return _PerpsMarketGoerli.Contract.GetDeniers(&_PerpsMarketGoerli.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)
-}
-
-// 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) {
- var out []interface{}
- err := _PerpsMarketGoerli.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 (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetFeatureFlagAllowAll(feature [32]byte) (bool, error) {
- return _PerpsMarketGoerli.Contract.GetFeatureFlagAllowAll(&_PerpsMarketGoerli.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)
-}
-
-// 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) {
- var out []interface{}
- err := _PerpsMarketGoerli.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 (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetFeatureFlagAllowlist(feature [32]byte) ([]common.Address, error) {
- return _PerpsMarketGoerli.Contract.GetFeatureFlagAllowlist(&_PerpsMarketGoerli.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)
-}
-
-// 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) {
- var out []interface{}
- err := _PerpsMarketGoerli.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 (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetFeatureFlagDenyAll(feature [32]byte) (bool, error) {
- return _PerpsMarketGoerli.Contract.GetFeatureFlagDenyAll(&_PerpsMarketGoerli.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)
-}
-
-// 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) {
- var out []interface{}
- err := _PerpsMarketGoerli.contract.Call(opts, &out, "getFeeCollector")
-
- 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 0x12fde4b7.
-//
-// Solidity: function getFeeCollector() view returns(address feeCollector)
-func (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetFeeCollector() (common.Address, error) {
- return _PerpsMarketGoerli.Contract.GetFeeCollector(&_PerpsMarketGoerli.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)
-}
-
-// 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 {
- SkewScale *big.Int
- MaxFundingVelocity *big.Int
-}, error) {
- var out []interface{}
- err := _PerpsMarketGoerli.contract.Call(opts, &out, "getFundingParameters", marketId)
-
- outstruct := new(struct {
- SkewScale *big.Int
- MaxFundingVelocity *big.Int
- })
- if err != nil {
- return *outstruct, err
- }
-
- outstruct.SkewScale = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
- outstruct.MaxFundingVelocity = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int)
-
- return *outstruct, err
-
-}
-
-// 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 {
- SkewScale *big.Int
- MaxFundingVelocity *big.Int
-}, error) {
- return _PerpsMarketGoerli.Contract.GetFundingParameters(&_PerpsMarketGoerli.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 {
- SkewScale *big.Int
- MaxFundingVelocity *big.Int
-}, error) {
- return _PerpsMarketGoerli.Contract.GetFundingParameters(&_PerpsMarketGoerli.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) {
- var out []interface{}
- err := _PerpsMarketGoerli.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 (_PerpsMarketGoerli *PerpsMarketGoerliSession) GetImplementation() (common.Address, error) {
- return _PerpsMarketGoerli.Contract.GetImplementation(&_PerpsMarketGoerli.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)
-}
-
-// 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 {
- InitialMarginRatioD18 *big.Int
- MinimumInitialMarginRatioD18 *big.Int
- MaintenanceMarginScalarD18 *big.Int
- LiquidationRewardRatioD18 *big.Int
- MinimumPositionMargin *big.Int
-}, error) {
- var out []interface{}
- err := _PerpsMarketGoerli.contract.Call(opts, &out, "getLiquidationParameters", marketId)
-
- outstruct := new(struct {
- InitialMarginRatioD18 *big.Int
- MinimumInitialMarginRatioD18 *big.Int
- MaintenanceMarginScalarD18 *big.Int
- LiquidationRewardRatioD18 *big.Int
- MinimumPositionMargin *big.Int
- })
- if err != nil {
- return *outstruct, err
- }
-
- outstruct.InitialMarginRatioD18 = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
- outstruct.MinimumInitialMarginRatioD18 = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int)
- outstruct.MaintenanceMarginScalarD18 = *abi.ConvertType(out[2], new(*big.Int)).(**big.Int)
- outstruct.LiquidationRewardRatioD18 = *abi.ConvertType(out[3], new(*big.Int)).(**big.Int)
- outstruct.MinimumPositionMargin = *abi.ConvertType(out[4], new(*big.Int)).(**big.Int)
-
- return *outstruct, err
-
-}
-
-// 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 {
- InitialMarginRatioD18 *big.Int
- MinimumInitialMarginRatioD18 *big.Int
- MaintenanceMarginScalarD18 *big.Int
- LiquidationRewardRatioD18 *big.Int
- MinimumPositionMargin *big.Int
-}, error) {
- return _PerpsMarketGoerli.Contract.GetLiquidationParameters(&_PerpsMarketGoerli.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 {
- InitialMarginRatioD18 *big.Int
- MinimumInitialMarginRatioD18 *big.Int
- MaintenanceMarginScalarD18 *big.Int
- LiquidationRewardRatioD18 *big.Int
- MinimumPositionMargin *big.Int
-}, error) {
- return _PerpsMarketGoerli.Contract.GetLiquidationParameters(&_PerpsMarketGoerli.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 {
- MinLiquidationRewardUsd *big.Int
- MaxLiquidationRewardUsd *big.Int
-}, error) {
- var out []interface{}
- err := _PerpsMarketGoerli.contract.Call(opts, &out, "getLiquidationRewardGuards")
-
- outstruct := new(struct {
- MinLiquidationRewardUsd *big.Int
- MaxLiquidationRewardUsd *big.Int
- })
- if err != nil {
- return *outstruct, err
- }
-
- outstruct.MinLiquidationRewardUsd = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
- outstruct.MaxLiquidationRewardUsd = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int)
-
- return *outstruct, err
-
-}
-
-// 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 {
- MinLiquidationRewardUsd *big.Int
- MaxLiquidationRewardUsd *big.Int
-}, error) {
- return _PerpsMarketGoerli.Contract.GetLiquidationRewardGuards(&_PerpsMarketGoerli.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 {
- MinLiquidationRewardUsd *big.Int
- MaxLiquidationRewardUsd *big.Int
-}, error) {
- return _PerpsMarketGoerli.Contract.GetLiquidationRewardGuards(&_PerpsMarketGoerli.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) {
- var out []interface{}
- err := _PerpsMarketGoerli.contract.Call(opts, &out, "getLockedOiRatio", marketId)
-
- if err != nil {
- return *new(*big.Int), err
- }
-
- out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
-
- return out0, err
-
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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) {
- var out []interface{}
- err := _PerpsMarketGoerli.contract.Call(opts, &out, "getMarketSummary", marketId)
-
- if err != nil {
- return *new(IPerpsMarketModuleMarketSummary), err
- }
-
- out0 := *abi.ConvertType(out[0], new(IPerpsMarketModuleMarketSummary)).(*IPerpsMarketModuleMarketSummary)
-
- return out0, err
-
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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) {
- var out []interface{}
- err := _PerpsMarketGoerli.contract.Call(opts, &out, "getMarkets")
-
- if err != nil {
- return *new([]*big.Int), err
- }
-
- out0 := *abi.ConvertType(out[0], new([]*big.Int)).(*[]*big.Int)
-
- return out0, err
-
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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) {
- var out []interface{}
- err := _PerpsMarketGoerli.contract.Call(opts, &out, "getMaxCollateralAmount", synthMarketId)
-
- if err != nil {
- return *new(*big.Int), err
- }
-
- out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
-
- return out0, err
-
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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 {
- MaxLiquidationLimitAccumulationMultiplier *big.Int
- MaxSecondsInLiquidationWindow *big.Int
- MaxLiquidationPd *big.Int
- EndorsedLiquidator common.Address
-}, error) {
- var out []interface{}
- err := _PerpsMarketGoerli.contract.Call(opts, &out, "getMaxLiquidationParameters", marketId)
-
- outstruct := new(struct {
- MaxLiquidationLimitAccumulationMultiplier *big.Int
- MaxSecondsInLiquidationWindow *big.Int
- MaxLiquidationPd *big.Int
- EndorsedLiquidator common.Address
- })
- if err != nil {
- return *outstruct, err
- }
-
- outstruct.MaxLiquidationLimitAccumulationMultiplier = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
- outstruct.MaxSecondsInLiquidationWindow = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int)
- outstruct.MaxLiquidationPd = *abi.ConvertType(out[2], new(*big.Int)).(**big.Int)
- outstruct.EndorsedLiquidator = *abi.ConvertType(out[3], new(common.Address)).(*common.Address)
-
- return *outstruct, err
-
-}
-
-// 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 {
- MaxLiquidationLimitAccumulationMultiplier *big.Int
- MaxSecondsInLiquidationWindow *big.Int
- MaxLiquidationPd *big.Int
- EndorsedLiquidator common.Address
-}, error) {
- return _PerpsMarketGoerli.Contract.GetMaxLiquidationParameters(&_PerpsMarketGoerli.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 {
- MaxLiquidationLimitAccumulationMultiplier *big.Int
- MaxSecondsInLiquidationWindow *big.Int
- MaxLiquidationPd *big.Int
- EndorsedLiquidator common.Address
-}, error) {
- return _PerpsMarketGoerli.Contract.GetMaxLiquidationParameters(&_PerpsMarketGoerli.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) {
- var out []interface{}
- err := _PerpsMarketGoerli.contract.Call(opts, &out, "getMaxMarketSize", marketId)
-
- if err != nil {
- return *new(*big.Int), err
- }
-
- out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
-
- return out0, err
-
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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 {
- TotalPnl *big.Int
- AccruedFunding *big.Int
- PositionSize *big.Int
-}, error) {
- var out []interface{}
- err := _PerpsMarketGoerli.contract.Call(opts, &out, "getOpenPosition", accountId, marketId)
-
- outstruct := new(struct {
- TotalPnl *big.Int
- AccruedFunding *big.Int
- PositionSize *big.Int
- })
- if err != nil {
- return *outstruct, err
- }
-
- outstruct.TotalPnl = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
- outstruct.AccruedFunding = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int)
- outstruct.PositionSize = *abi.ConvertType(out[2], new(*big.Int)).(**big.Int)
-
- return *outstruct, err
-
-}
-
-// 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 {
- TotalPnl *big.Int
- AccruedFunding *big.Int
- PositionSize *big.Int
-}, error) {
- return _PerpsMarketGoerli.Contract.GetOpenPosition(&_PerpsMarketGoerli.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 {
- TotalPnl *big.Int
- AccruedFunding *big.Int
- PositionSize *big.Int
-}, error) {
- return _PerpsMarketGoerli.Contract.GetOpenPosition(&_PerpsMarketGoerli.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) {
- var out []interface{}
- err := _PerpsMarketGoerli.contract.Call(opts, &out, "getOrder", accountId)
-
- if err != nil {
- return *new(AsyncOrderData), err
- }
-
- out0 := *abi.ConvertType(out[0], new(AsyncOrderData)).(*AsyncOrderData)
-
- return out0, err
-
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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 {
- MakerFee *big.Int
- TakerFee *big.Int
-}, error) {
- var out []interface{}
- err := _PerpsMarketGoerli.contract.Call(opts, &out, "getOrderFees", marketId)
-
- outstruct := new(struct {
- MakerFee *big.Int
- TakerFee *big.Int
- })
- if err != nil {
- return *outstruct, err
- }
-
- outstruct.MakerFee = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
- outstruct.TakerFee = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int)
-
- return *outstruct, err
-
-}
-
-// 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 {
- MakerFee *big.Int
- TakerFee *big.Int
-}, error) {
- return _PerpsMarketGoerli.Contract.GetOrderFees(&_PerpsMarketGoerli.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 {
- MakerFee *big.Int
- TakerFee *big.Int
-}, error) {
- return _PerpsMarketGoerli.Contract.GetOrderFees(&_PerpsMarketGoerli.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 {
- MaxPositionsPerAccount *big.Int
- MaxCollateralsPerAccount *big.Int
-}, error) {
- var out []interface{}
- err := _PerpsMarketGoerli.contract.Call(opts, &out, "getPerAccountCaps")
-
- outstruct := new(struct {
- MaxPositionsPerAccount *big.Int
- MaxCollateralsPerAccount *big.Int
- })
- if err != nil {
- return *outstruct, err
- }
-
- outstruct.MaxPositionsPerAccount = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
- outstruct.MaxCollateralsPerAccount = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int)
-
- return *outstruct, err
-
-}
-
-// 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 {
- MaxPositionsPerAccount *big.Int
- MaxCollateralsPerAccount *big.Int
-}, error) {
- return _PerpsMarketGoerli.Contract.GetPerAccountCaps(&_PerpsMarketGoerli.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 {
- MaxPositionsPerAccount *big.Int
- MaxCollateralsPerAccount *big.Int
-}, error) {
- return _PerpsMarketGoerli.Contract.GetPerAccountCaps(&_PerpsMarketGoerli.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) {
- var out []interface{}
- err := _PerpsMarketGoerli.contract.Call(opts, &out, "getReferrerShare", 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 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)
-}
-
-// 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)
-}
-
-// 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 {
- RequiredInitialMargin *big.Int
- RequiredMaintenanceMargin *big.Int
- TotalAccumulatedLiquidationRewards *big.Int
- MaxLiquidationReward *big.Int
-}, error) {
- var out []interface{}
- err := _PerpsMarketGoerli.contract.Call(opts, &out, "getRequiredMargins", accountId)
-
- outstruct := new(struct {
- RequiredInitialMargin *big.Int
- RequiredMaintenanceMargin *big.Int
- TotalAccumulatedLiquidationRewards *big.Int
- MaxLiquidationReward *big.Int
- })
- if err != nil {
- return *outstruct, err
- }
-
- outstruct.RequiredInitialMargin = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
- outstruct.RequiredMaintenanceMargin = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int)
- outstruct.TotalAccumulatedLiquidationRewards = *abi.ConvertType(out[2], new(*big.Int)).(**big.Int)
- outstruct.MaxLiquidationReward = *abi.ConvertType(out[3], new(*big.Int)).(**big.Int)
-
- return *outstruct, err
-
-}
-
-// 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 {
- RequiredInitialMargin *big.Int
- RequiredMaintenanceMargin *big.Int
- TotalAccumulatedLiquidationRewards *big.Int
- MaxLiquidationReward *big.Int
-}, error) {
- return _PerpsMarketGoerli.Contract.GetRequiredMargins(&_PerpsMarketGoerli.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 {
- RequiredInitialMargin *big.Int
- RequiredMaintenanceMargin *big.Int
- TotalAccumulatedLiquidationRewards *big.Int
- MaxLiquidationReward *big.Int
-}, error) {
- return _PerpsMarketGoerli.Contract.GetRequiredMargins(&_PerpsMarketGoerli.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) {
- var out []interface{}
- err := _PerpsMarketGoerli.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,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)
-}
-
-// 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)
-}
-
-// 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) {
- var out []interface{}
- err := _PerpsMarketGoerli.contract.Call(opts, &out, "getSynthDeductionPriority")
-
- if err != nil {
- return *new([]*big.Int), err
- }
-
- out0 := *abi.ConvertType(out[0], new([]*big.Int)).(*[]*big.Int)
-
- return out0, err
-
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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) {
- var out []interface{}
- err := _PerpsMarketGoerli.contract.Call(opts, &out, "getWithdrawableMargin", accountId)
-
- if err != nil {
- return *new(*big.Int), err
- }
-
- out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
-
- return out0, err
-
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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) {
- var out []interface{}
- err := _PerpsMarketGoerli.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 (_PerpsMarketGoerli *PerpsMarketGoerliSession) HasPermission(accountId *big.Int, permission [32]byte, user common.Address) (bool, error) {
- return _PerpsMarketGoerli.Contract.HasPermission(&_PerpsMarketGoerli.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)
-}
-
-// 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) {
- var out []interface{}
- err := _PerpsMarketGoerli.contract.Call(opts, &out, "indexPrice", marketId)
-
- if err != nil {
- return *new(*big.Int), err
- }
-
- out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
-
- return out0, err
-
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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) {
- var out []interface{}
- err := _PerpsMarketGoerli.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 (_PerpsMarketGoerli *PerpsMarketGoerliSession) IsAuthorized(accountId *big.Int, permission [32]byte, user common.Address) (bool, error) {
- return _PerpsMarketGoerli.Contract.IsAuthorized(&_PerpsMarketGoerli.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)
-}
-
-// 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) {
- var out []interface{}
- err := _PerpsMarketGoerli.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 (_PerpsMarketGoerli *PerpsMarketGoerliSession) IsFeatureAllowed(feature [32]byte, account common.Address) (bool, error) {
- return _PerpsMarketGoerli.Contract.IsFeatureAllowed(&_PerpsMarketGoerli.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)
-}
-
-// 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) {
- var out []interface{}
- err := _PerpsMarketGoerli.contract.Call(opts, &out, "maxOpenInterest", marketId)
-
- if err != nil {
- return *new(*big.Int), err
- }
-
- out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
-
- return out0, err
-
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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 {
- Name string
- Symbol string
-}, error) {
- var out []interface{}
- err := _PerpsMarketGoerli.contract.Call(opts, &out, "metadata", marketId)
-
- outstruct := new(struct {
- Name string
- Symbol string
- })
- if err != nil {
- return *outstruct, err
- }
-
- outstruct.Name = *abi.ConvertType(out[0], new(string)).(*string)
- outstruct.Symbol = *abi.ConvertType(out[1], new(string)).(*string)
-
- return *outstruct, err
-
-}
-
-// 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 {
- Name string
- Symbol string
-}, error) {
- return _PerpsMarketGoerli.Contract.Metadata(&_PerpsMarketGoerli.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 {
- Name string
- Symbol string
-}, error) {
- return _PerpsMarketGoerli.Contract.Metadata(&_PerpsMarketGoerli.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) {
- var out []interface{}
- err := _PerpsMarketGoerli.contract.Call(opts, &out, "minimumCredit", perpsMarketId)
-
- 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 perpsMarketId) view returns(uint256)
-func (_PerpsMarketGoerli *PerpsMarketGoerliSession) MinimumCredit(perpsMarketId *big.Int) (*big.Int, error) {
- return _PerpsMarketGoerli.Contract.MinimumCredit(&_PerpsMarketGoerli.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)
-}
-
-// 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) {
- var out []interface{}
- err := _PerpsMarketGoerli.contract.Call(opts, &out, "name", perpsMarketId)
-
- 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 perpsMarketId) view returns(string)
-func (_PerpsMarketGoerli *PerpsMarketGoerliSession) Name(perpsMarketId *big.Int) (string, error) {
- return _PerpsMarketGoerli.Contract.Name(&_PerpsMarketGoerli.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)
-}
-
-// 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) {
- var out []interface{}
- err := _PerpsMarketGoerli.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 (_PerpsMarketGoerli *PerpsMarketGoerliSession) NominatedOwner() (common.Address, error) {
- return _PerpsMarketGoerli.Contract.NominatedOwner(&_PerpsMarketGoerli.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)
-}
-
-// 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) {
- var out []interface{}
- err := _PerpsMarketGoerli.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 (_PerpsMarketGoerli *PerpsMarketGoerliSession) Owner() (common.Address, error) {
- return _PerpsMarketGoerli.Contract.Owner(&_PerpsMarketGoerli.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)
-}
-
-// 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) {
- var out []interface{}
- err := _PerpsMarketGoerli.contract.Call(opts, &out, "reportedDebt", perpsMarketId)
-
- 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 perpsMarketId) view returns(uint256)
-func (_PerpsMarketGoerli *PerpsMarketGoerliSession) ReportedDebt(perpsMarketId *big.Int) (*big.Int, error) {
- return _PerpsMarketGoerli.Contract.ReportedDebt(&_PerpsMarketGoerli.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)
-}
-
-// 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) {
- var out []interface{}
- err := _PerpsMarketGoerli.contract.Call(opts, &out, "requiredMarginForOrder", accountId, marketId, sizeDelta)
-
- if err != nil {
- return *new(*big.Int), err
- }
-
- out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
-
- return out0, err
-
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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 {
- var out []interface{}
- err := _PerpsMarketGoerli.contract.Call(opts, &out, "settle", accountId)
-
- if err != nil {
- return err
- }
-
- return err
-
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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) {
- var out []interface{}
- err := _PerpsMarketGoerli.contract.Call(opts, &out, "size", marketId)
-
- if err != nil {
- return *new(*big.Int), err
- }
-
- out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
-
- return out0, err
-
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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) {
- var out []interface{}
- err := _PerpsMarketGoerli.contract.Call(opts, &out, "skew", marketId)
-
- if err != nil {
- return *new(*big.Int), err
- }
-
- out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
-
- return out0, err
-
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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) {
- var out []interface{}
- err := _PerpsMarketGoerli.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 (_PerpsMarketGoerli *PerpsMarketGoerliSession) SupportsInterface(interfaceId [4]byte) (bool, error) {
- return _PerpsMarketGoerli.Contract.SupportsInterface(&_PerpsMarketGoerli.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)
-}
-
-// 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) {
- var out []interface{}
- err := _PerpsMarketGoerli.contract.Call(opts, &out, "totalAccountOpenInterest", accountId)
-
- if err != nil {
- return *new(*big.Int), err
- }
-
- out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
-
- return out0, err
-
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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) {
- var out []interface{}
- err := _PerpsMarketGoerli.contract.Call(opts, &out, "totalCollateralValue", accountId)
-
- if err != nil {
- return *new(*big.Int), err
- }
-
- out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
-
- return out0, err
-
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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) {
- var out []interface{}
- err := _PerpsMarketGoerli.contract.Call(opts, &out, "totalGlobalCollateralValue")
-
- if err != nil {
- return *new(*big.Int), err
- }
-
- out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
-
- return out0, err
-
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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")
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// AddSettlementStrategy is a paid mutator transaction binding the contract method 0xda91187c.
-//
-// 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)
-}
-
-// AddSettlementStrategy is a paid mutator transaction binding the contract method 0xda91187c.
-//
-// 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)
-}
-
-// AddSettlementStrategy is a paid mutator transaction binding the contract method 0xda91187c.
-//
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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")
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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")
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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")
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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")
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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)
-}
-
-// 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
-
- 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 *PerpsMarketGoerliAccountCreatedIterator) 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(PerpsMarketGoerliAccountCreated)
- 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(PerpsMarketGoerliAccountCreated)
- 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 *PerpsMarketGoerliAccountCreatedIterator) Error() error {
- return it.fail
-}
-
-// Close terminates the iteration process, releasing any pending underlying
-// resources.
-func (it *PerpsMarketGoerliAccountCreatedIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
-}
-
-// PerpsMarketGoerliAccountCreated represents a AccountCreated event raised by the PerpsMarketGoerli contract.
-type PerpsMarketGoerliAccountCreated 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 (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterAccountCreated(opts *bind.FilterOpts, accountId []*big.Int, owner []common.Address) (*PerpsMarketGoerliAccountCreatedIterator, 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 := _PerpsMarketGoerli.contract.FilterLogs(opts, "AccountCreated", accountIdRule, ownerRule)
- if err != nil {
- return nil, err
- }
- return &PerpsMarketGoerliAccountCreatedIterator{contract: _PerpsMarketGoerli.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) {
-
- 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 := _PerpsMarketGoerli.contract.WatchLogs(opts, "AccountCreated")
- 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(PerpsMarketGoerliAccountCreated)
- if err := _PerpsMarketGoerli.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 (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseAccountCreated(log types.Log) (*PerpsMarketGoerliAccountCreated, error) {
- event := new(PerpsMarketGoerliAccountCreated)
- if err := _PerpsMarketGoerli.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
-
- 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 *PerpsMarketGoerliAccountLiquidatedIterator) 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(PerpsMarketGoerliAccountLiquidated)
- 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(PerpsMarketGoerliAccountLiquidated)
- 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 *PerpsMarketGoerliAccountLiquidatedIterator) Error() error {
- return it.fail
-}
-
-// Close terminates the iteration process, releasing any pending underlying
-// resources.
-func (it *PerpsMarketGoerliAccountLiquidatedIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
-}
-
-// PerpsMarketGoerliAccountLiquidated represents a AccountLiquidated event raised by the PerpsMarketGoerli contract.
-type PerpsMarketGoerliAccountLiquidated struct {
- AccountId *big.Int
- Reward *big.Int
- FullLiquidation bool
- Raw types.Log // Blockchain specific contextual infos
-}
-
-// 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) {
-
- var accountIdRule []interface{}
- for _, accountIdItem := range accountId {
- accountIdRule = append(accountIdRule, accountIdItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "AccountLiquidated", accountIdRule)
- if err != nil {
- return nil, err
- }
- return &PerpsMarketGoerliAccountLiquidatedIterator{contract: _PerpsMarketGoerli.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) {
-
- var accountIdRule []interface{}
- for _, accountIdItem := range accountId {
- accountIdRule = append(accountIdRule, accountIdItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "AccountLiquidated")
- 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(PerpsMarketGoerliAccountLiquidated)
- if err := _PerpsMarketGoerli.contract.UnpackLog(event, "AccountLiquidated", 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
-}
-
-// 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 {
- 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
-
- 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 *PerpsMarketGoerliAssociatedSystemSetIterator) 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(PerpsMarketGoerliAssociatedSystemSet)
- 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(PerpsMarketGoerliAssociatedSystemSet)
- 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 *PerpsMarketGoerliAssociatedSystemSetIterator) Error() error {
- return it.fail
-}
-
-// Close terminates the iteration process, releasing any pending underlying
-// resources.
-func (it *PerpsMarketGoerliAssociatedSystemSetIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
-}
-
-// PerpsMarketGoerliAssociatedSystemSet represents a AssociatedSystemSet event raised by the PerpsMarketGoerli contract.
-type PerpsMarketGoerliAssociatedSystemSet 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 (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterAssociatedSystemSet(opts *bind.FilterOpts, kind [][32]byte, id [][32]byte) (*PerpsMarketGoerliAssociatedSystemSetIterator, 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 := _PerpsMarketGoerli.contract.FilterLogs(opts, "AssociatedSystemSet", kindRule, idRule)
- if err != nil {
- return nil, err
- }
- return &PerpsMarketGoerliAssociatedSystemSetIterator{contract: _PerpsMarketGoerli.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) {
-
- 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 := _PerpsMarketGoerli.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(PerpsMarketGoerliAssociatedSystemSet)
- if err := _PerpsMarketGoerli.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 (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseAssociatedSystemSet(log types.Log) (*PerpsMarketGoerliAssociatedSystemSet, error) {
- event := new(PerpsMarketGoerliAssociatedSystemSet)
- if err := _PerpsMarketGoerli.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
-
- 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 *PerpsMarketGoerliCollateralModifiedIterator) 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(PerpsMarketGoerliCollateralModified)
- 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(PerpsMarketGoerliCollateralModified)
- 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 *PerpsMarketGoerliCollateralModifiedIterator) Error() error {
- return it.fail
-}
-
-// Close terminates the iteration process, releasing any pending underlying
-// resources.
-func (it *PerpsMarketGoerliCollateralModifiedIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
-}
-
-// PerpsMarketGoerliCollateralModified represents a CollateralModified event raised by the PerpsMarketGoerli contract.
-type PerpsMarketGoerliCollateralModified struct {
- AccountId *big.Int
- SynthMarketId *big.Int
- AmountDelta *big.Int
- Sender common.Address
- Raw types.Log // Blockchain specific contextual infos
-}
-
-// 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) {
-
- var accountIdRule []interface{}
- for _, accountIdItem := range accountId {
- accountIdRule = append(accountIdRule, accountIdItem)
- }
- var synthMarketIdRule []interface{}
- for _, synthMarketIdItem := range synthMarketId {
- synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem)
- }
-
- var senderRule []interface{}
- for _, senderItem := range sender {
- senderRule = append(senderRule, senderItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.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
-}
-
-// 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) {
-
- var accountIdRule []interface{}
- for _, accountIdItem := range accountId {
- accountIdRule = append(accountIdRule, accountIdItem)
- }
- var synthMarketIdRule []interface{}
- for _, synthMarketIdItem := range synthMarketId {
- synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem)
- }
-
- var senderRule []interface{}
- for _, senderItem := range sender {
- senderRule = append(senderRule, senderItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "CollateralModified", accountIdRule, synthMarketIdRule, 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(PerpsMarketGoerliCollateralModified)
- if err := _PerpsMarketGoerli.contract.UnpackLog(event, "CollateralModified", 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
-}
-
-// 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 {
- 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
-
- 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 *PerpsMarketGoerliFactoryInitializedIterator) 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(PerpsMarketGoerliFactoryInitialized)
- 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(PerpsMarketGoerliFactoryInitialized)
- 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 *PerpsMarketGoerliFactoryInitializedIterator) Error() error {
- return it.fail
-}
-
-// Close terminates the iteration process, releasing any pending underlying
-// resources.
-func (it *PerpsMarketGoerliFactoryInitializedIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
-}
-
-// PerpsMarketGoerliFactoryInitialized represents a FactoryInitialized event raised by the PerpsMarketGoerli contract.
-type PerpsMarketGoerliFactoryInitialized struct {
- GlobalPerpsMarketId *big.Int
- Raw types.Log // Blockchain specific contextual infos
-}
-
-// 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) {
-
- logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "FactoryInitialized")
- if err != nil {
- return nil, err
- }
- return &PerpsMarketGoerliFactoryInitializedIterator{contract: _PerpsMarketGoerli.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) {
-
- logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "FactoryInitialized")
- 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(PerpsMarketGoerliFactoryInitialized)
- if err := _PerpsMarketGoerli.contract.UnpackLog(event, "FactoryInitialized", 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
-}
-
-// 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 {
- 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
-
- 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 *PerpsMarketGoerliFeatureFlagAllowAllSetIterator) 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(PerpsMarketGoerliFeatureFlagAllowAllSet)
- 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(PerpsMarketGoerliFeatureFlagAllowAllSet)
- 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 *PerpsMarketGoerliFeatureFlagAllowAllSetIterator) Error() error {
- return it.fail
-}
-
-// Close terminates the iteration process, releasing any pending underlying
-// resources.
-func (it *PerpsMarketGoerliFeatureFlagAllowAllSetIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
-}
-
-// PerpsMarketGoerliFeatureFlagAllowAllSet represents a FeatureFlagAllowAllSet event raised by the PerpsMarketGoerli contract.
-type PerpsMarketGoerliFeatureFlagAllowAllSet 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 (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterFeatureFlagAllowAllSet(opts *bind.FilterOpts, feature [][32]byte) (*PerpsMarketGoerliFeatureFlagAllowAllSetIterator, error) {
-
- var featureRule []interface{}
- for _, featureItem := range feature {
- featureRule = append(featureRule, featureItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "FeatureFlagAllowAllSet", featureRule)
- if err != nil {
- return nil, err
- }
- return &PerpsMarketGoerliFeatureFlagAllowAllSetIterator{contract: _PerpsMarketGoerli.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) {
-
- var featureRule []interface{}
- for _, featureItem := range feature {
- featureRule = append(featureRule, featureItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.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(PerpsMarketGoerliFeatureFlagAllowAllSet)
- if err := _PerpsMarketGoerli.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 (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseFeatureFlagAllowAllSet(log types.Log) (*PerpsMarketGoerliFeatureFlagAllowAllSet, error) {
- event := new(PerpsMarketGoerliFeatureFlagAllowAllSet)
- if err := _PerpsMarketGoerli.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
-
- 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 *PerpsMarketGoerliFeatureFlagAllowlistAddedIterator) 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(PerpsMarketGoerliFeatureFlagAllowlistAdded)
- 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(PerpsMarketGoerliFeatureFlagAllowlistAdded)
- 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 *PerpsMarketGoerliFeatureFlagAllowlistAddedIterator) Error() error {
- return it.fail
-}
-
-// Close terminates the iteration process, releasing any pending underlying
-// resources.
-func (it *PerpsMarketGoerliFeatureFlagAllowlistAddedIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
-}
-
-// PerpsMarketGoerliFeatureFlagAllowlistAdded represents a FeatureFlagAllowlistAdded event raised by the PerpsMarketGoerli contract.
-type PerpsMarketGoerliFeatureFlagAllowlistAdded 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 (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterFeatureFlagAllowlistAdded(opts *bind.FilterOpts, feature [][32]byte) (*PerpsMarketGoerliFeatureFlagAllowlistAddedIterator, error) {
-
- var featureRule []interface{}
- for _, featureItem := range feature {
- featureRule = append(featureRule, featureItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "FeatureFlagAllowlistAdded", featureRule)
- if err != nil {
- return nil, err
- }
- return &PerpsMarketGoerliFeatureFlagAllowlistAddedIterator{contract: _PerpsMarketGoerli.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) {
-
- var featureRule []interface{}
- for _, featureItem := range feature {
- featureRule = append(featureRule, featureItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.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(PerpsMarketGoerliFeatureFlagAllowlistAdded)
- if err := _PerpsMarketGoerli.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 (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseFeatureFlagAllowlistAdded(log types.Log) (*PerpsMarketGoerliFeatureFlagAllowlistAdded, error) {
- event := new(PerpsMarketGoerliFeatureFlagAllowlistAdded)
- if err := _PerpsMarketGoerli.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
-
- 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 *PerpsMarketGoerliFeatureFlagAllowlistRemovedIterator) 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(PerpsMarketGoerliFeatureFlagAllowlistRemoved)
- 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(PerpsMarketGoerliFeatureFlagAllowlistRemoved)
- 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 *PerpsMarketGoerliFeatureFlagAllowlistRemovedIterator) Error() error {
- return it.fail
-}
-
-// Close terminates the iteration process, releasing any pending underlying
-// resources.
-func (it *PerpsMarketGoerliFeatureFlagAllowlistRemovedIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
-}
-
-// PerpsMarketGoerliFeatureFlagAllowlistRemoved represents a FeatureFlagAllowlistRemoved event raised by the PerpsMarketGoerli contract.
-type PerpsMarketGoerliFeatureFlagAllowlistRemoved 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 (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterFeatureFlagAllowlistRemoved(opts *bind.FilterOpts, feature [][32]byte) (*PerpsMarketGoerliFeatureFlagAllowlistRemovedIterator, error) {
-
- var featureRule []interface{}
- for _, featureItem := range feature {
- featureRule = append(featureRule, featureItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "FeatureFlagAllowlistRemoved", featureRule)
- if err != nil {
- return nil, err
- }
- return &PerpsMarketGoerliFeatureFlagAllowlistRemovedIterator{contract: _PerpsMarketGoerli.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) {
-
- var featureRule []interface{}
- for _, featureItem := range feature {
- featureRule = append(featureRule, featureItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.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(PerpsMarketGoerliFeatureFlagAllowlistRemoved)
- if err := _PerpsMarketGoerli.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 (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseFeatureFlagAllowlistRemoved(log types.Log) (*PerpsMarketGoerliFeatureFlagAllowlistRemoved, error) {
- event := new(PerpsMarketGoerliFeatureFlagAllowlistRemoved)
- if err := _PerpsMarketGoerli.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
-
- 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 *PerpsMarketGoerliFeatureFlagDeniersResetIterator) 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(PerpsMarketGoerliFeatureFlagDeniersReset)
- 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(PerpsMarketGoerliFeatureFlagDeniersReset)
- 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 *PerpsMarketGoerliFeatureFlagDeniersResetIterator) Error() error {
- return it.fail
-}
-
-// Close terminates the iteration process, releasing any pending underlying
-// resources.
-func (it *PerpsMarketGoerliFeatureFlagDeniersResetIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
-}
-
-// PerpsMarketGoerliFeatureFlagDeniersReset represents a FeatureFlagDeniersReset event raised by the PerpsMarketGoerli contract.
-type PerpsMarketGoerliFeatureFlagDeniersReset 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 (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterFeatureFlagDeniersReset(opts *bind.FilterOpts, feature [][32]byte) (*PerpsMarketGoerliFeatureFlagDeniersResetIterator, error) {
-
- var featureRule []interface{}
- for _, featureItem := range feature {
- featureRule = append(featureRule, featureItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "FeatureFlagDeniersReset", featureRule)
- if err != nil {
- return nil, err
- }
- return &PerpsMarketGoerliFeatureFlagDeniersResetIterator{contract: _PerpsMarketGoerli.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) {
-
- var featureRule []interface{}
- for _, featureItem := range feature {
- featureRule = append(featureRule, featureItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.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(PerpsMarketGoerliFeatureFlagDeniersReset)
- if err := _PerpsMarketGoerli.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 (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseFeatureFlagDeniersReset(log types.Log) (*PerpsMarketGoerliFeatureFlagDeniersReset, error) {
- event := new(PerpsMarketGoerliFeatureFlagDeniersReset)
- if err := _PerpsMarketGoerli.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
-
- 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 *PerpsMarketGoerliFeatureFlagDenyAllSetIterator) 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(PerpsMarketGoerliFeatureFlagDenyAllSet)
- 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(PerpsMarketGoerliFeatureFlagDenyAllSet)
- 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 *PerpsMarketGoerliFeatureFlagDenyAllSetIterator) Error() error {
- return it.fail
-}
-
-// Close terminates the iteration process, releasing any pending underlying
-// resources.
-func (it *PerpsMarketGoerliFeatureFlagDenyAllSetIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
-}
-
-// PerpsMarketGoerliFeatureFlagDenyAllSet represents a FeatureFlagDenyAllSet event raised by the PerpsMarketGoerli contract.
-type PerpsMarketGoerliFeatureFlagDenyAllSet 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 (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterFeatureFlagDenyAllSet(opts *bind.FilterOpts, feature [][32]byte) (*PerpsMarketGoerliFeatureFlagDenyAllSetIterator, error) {
-
- var featureRule []interface{}
- for _, featureItem := range feature {
- featureRule = append(featureRule, featureItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "FeatureFlagDenyAllSet", featureRule)
- if err != nil {
- return nil, err
- }
- return &PerpsMarketGoerliFeatureFlagDenyAllSetIterator{contract: _PerpsMarketGoerli.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) {
-
- var featureRule []interface{}
- for _, featureItem := range feature {
- featureRule = append(featureRule, featureItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.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(PerpsMarketGoerliFeatureFlagDenyAllSet)
- if err := _PerpsMarketGoerli.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 (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseFeatureFlagDenyAllSet(log types.Log) (*PerpsMarketGoerliFeatureFlagDenyAllSet, error) {
- event := new(PerpsMarketGoerliFeatureFlagDenyAllSet)
- if err := _PerpsMarketGoerli.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
-
- 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 *PerpsMarketGoerliFeeCollectorSetIterator) 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(PerpsMarketGoerliFeeCollectorSet)
- 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(PerpsMarketGoerliFeeCollectorSet)
- 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 *PerpsMarketGoerliFeeCollectorSetIterator) Error() error {
- return it.fail
-}
-
-// Close terminates the iteration process, releasing any pending underlying
-// resources.
-func (it *PerpsMarketGoerliFeeCollectorSetIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
-}
-
-// PerpsMarketGoerliFeeCollectorSet represents a FeeCollectorSet event raised by the PerpsMarketGoerli contract.
-type PerpsMarketGoerliFeeCollectorSet struct {
- FeeCollector common.Address
- Raw types.Log // Blockchain specific contextual infos
-}
-
-// 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) {
-
- logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "FeeCollectorSet")
- if err != nil {
- return nil, err
- }
- return &PerpsMarketGoerliFeeCollectorSetIterator{contract: _PerpsMarketGoerli.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) {
-
- logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "FeeCollectorSet")
- 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(PerpsMarketGoerliFeeCollectorSet)
- if err := _PerpsMarketGoerli.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 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 {
- 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
-
- 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 *PerpsMarketGoerliFundingParametersSetIterator) 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(PerpsMarketGoerliFundingParametersSet)
- 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(PerpsMarketGoerliFundingParametersSet)
- 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 *PerpsMarketGoerliFundingParametersSetIterator) Error() error {
- return it.fail
-}
-
-// Close terminates the iteration process, releasing any pending underlying
-// resources.
-func (it *PerpsMarketGoerliFundingParametersSetIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
-}
-
-// PerpsMarketGoerliFundingParametersSet represents a FundingParametersSet event raised by the PerpsMarketGoerli contract.
-type PerpsMarketGoerliFundingParametersSet struct {
- MarketId *big.Int
- SkewScale *big.Int
- MaxFundingVelocity *big.Int
- Raw types.Log // Blockchain specific contextual infos
-}
-
-// 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) {
-
- var marketIdRule []interface{}
- for _, marketIdItem := range marketId {
- marketIdRule = append(marketIdRule, marketIdItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "FundingParametersSet", marketIdRule)
- if err != nil {
- return nil, err
- }
- return &PerpsMarketGoerliFundingParametersSetIterator{contract: _PerpsMarketGoerli.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) {
-
- var marketIdRule []interface{}
- for _, marketIdItem := range marketId {
- marketIdRule = append(marketIdRule, marketIdItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "FundingParametersSet", 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(PerpsMarketGoerliFundingParametersSet)
- if err := _PerpsMarketGoerli.contract.UnpackLog(event, "FundingParametersSet", 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
-}
-
-// 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 {
- 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
-
- 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 *PerpsMarketGoerliLiquidationParametersSetIterator) 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(PerpsMarketGoerliLiquidationParametersSet)
- 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(PerpsMarketGoerliLiquidationParametersSet)
- 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 *PerpsMarketGoerliLiquidationParametersSetIterator) Error() error {
- return it.fail
-}
-
-// Close terminates the iteration process, releasing any pending underlying
-// resources.
-func (it *PerpsMarketGoerliLiquidationParametersSetIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
-}
-
-// PerpsMarketGoerliLiquidationParametersSet represents a LiquidationParametersSet event raised by the PerpsMarketGoerli contract.
-type PerpsMarketGoerliLiquidationParametersSet struct {
- MarketId *big.Int
- InitialMarginRatioD18 *big.Int
- MaintenanceMarginRatioD18 *big.Int
- MinimumInitialMarginRatioD18 *big.Int
- LiquidationRewardRatioD18 *big.Int
- MinimumPositionMargin *big.Int
- Raw types.Log // Blockchain specific contextual infos
-}
-
-// 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) {
-
- var marketIdRule []interface{}
- for _, marketIdItem := range marketId {
- marketIdRule = append(marketIdRule, marketIdItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "LiquidationParametersSet", marketIdRule)
- if err != nil {
- return nil, err
- }
- return &PerpsMarketGoerliLiquidationParametersSetIterator{contract: _PerpsMarketGoerli.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) {
-
- var marketIdRule []interface{}
- for _, marketIdItem := range marketId {
- marketIdRule = append(marketIdRule, marketIdItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "LiquidationParametersSet", 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(PerpsMarketGoerliLiquidationParametersSet)
- if err := _PerpsMarketGoerli.contract.UnpackLog(event, "LiquidationParametersSet", 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
-}
-
-// 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 {
- 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
-
- 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 *PerpsMarketGoerliLiquidationRewardGuardsSetIterator) 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(PerpsMarketGoerliLiquidationRewardGuardsSet)
- 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(PerpsMarketGoerliLiquidationRewardGuardsSet)
- 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 *PerpsMarketGoerliLiquidationRewardGuardsSetIterator) Error() error {
- return it.fail
-}
-
-// Close terminates the iteration process, releasing any pending underlying
-// resources.
-func (it *PerpsMarketGoerliLiquidationRewardGuardsSetIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
-}
-
-// PerpsMarketGoerliLiquidationRewardGuardsSet represents a LiquidationRewardGuardsSet event raised by the PerpsMarketGoerli contract.
-type PerpsMarketGoerliLiquidationRewardGuardsSet struct {
- MinLiquidationRewardUsd *big.Int
- MaxLiquidationRewardUsd *big.Int
- Raw types.Log // Blockchain specific contextual infos
-}
-
-// 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) {
-
- var minLiquidationRewardUsdRule []interface{}
- for _, minLiquidationRewardUsdItem := range minLiquidationRewardUsd {
- minLiquidationRewardUsdRule = append(minLiquidationRewardUsdRule, minLiquidationRewardUsdItem)
- }
- var maxLiquidationRewardUsdRule []interface{}
- for _, maxLiquidationRewardUsdItem := range maxLiquidationRewardUsd {
- maxLiquidationRewardUsdRule = append(maxLiquidationRewardUsdRule, maxLiquidationRewardUsdItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "LiquidationRewardGuardsSet", minLiquidationRewardUsdRule, maxLiquidationRewardUsdRule)
- if err != nil {
- return nil, err
- }
- return &PerpsMarketGoerliLiquidationRewardGuardsSetIterator{contract: _PerpsMarketGoerli.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) {
-
- var minLiquidationRewardUsdRule []interface{}
- for _, minLiquidationRewardUsdItem := range minLiquidationRewardUsd {
- minLiquidationRewardUsdRule = append(minLiquidationRewardUsdRule, minLiquidationRewardUsdItem)
- }
- var maxLiquidationRewardUsdRule []interface{}
- for _, maxLiquidationRewardUsdItem := range maxLiquidationRewardUsd {
- maxLiquidationRewardUsdRule = append(maxLiquidationRewardUsdRule, maxLiquidationRewardUsdItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "LiquidationRewardGuardsSet", minLiquidationRewardUsdRule, maxLiquidationRewardUsdRule)
- 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(PerpsMarketGoerliLiquidationRewardGuardsSet)
- if err := _PerpsMarketGoerli.contract.UnpackLog(event, "LiquidationRewardGuardsSet", 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
-}
-
-// 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 {
- 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
-
- 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 *PerpsMarketGoerliLockedOiRatioSetIterator) 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(PerpsMarketGoerliLockedOiRatioSet)
- 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(PerpsMarketGoerliLockedOiRatioSet)
- 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 *PerpsMarketGoerliLockedOiRatioSetIterator) Error() error {
- return it.fail
-}
-
-// Close terminates the iteration process, releasing any pending underlying
-// resources.
-func (it *PerpsMarketGoerliLockedOiRatioSetIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
-}
-
-// PerpsMarketGoerliLockedOiRatioSet represents a LockedOiRatioSet event raised by the PerpsMarketGoerli contract.
-type PerpsMarketGoerliLockedOiRatioSet struct {
- MarketId *big.Int
- LockedOiRatioD18 *big.Int
- Raw types.Log // Blockchain specific contextual infos
-}
-
-// 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) {
-
- var marketIdRule []interface{}
- for _, marketIdItem := range marketId {
- marketIdRule = append(marketIdRule, marketIdItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "LockedOiRatioSet", marketIdRule)
- if err != nil {
- return nil, err
- }
- return &PerpsMarketGoerliLockedOiRatioSetIterator{contract: _PerpsMarketGoerli.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) {
-
- var marketIdRule []interface{}
- for _, marketIdItem := range marketId {
- marketIdRule = append(marketIdRule, marketIdItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "LockedOiRatioSet", 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(PerpsMarketGoerliLockedOiRatioSet)
- if err := _PerpsMarketGoerli.contract.UnpackLog(event, "LockedOiRatioSet", 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
-}
-
-// 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 {
- 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
-
- 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 *PerpsMarketGoerliMarketCreatedIterator) 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(PerpsMarketGoerliMarketCreated)
- 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(PerpsMarketGoerliMarketCreated)
- 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 *PerpsMarketGoerliMarketCreatedIterator) Error() error {
- return it.fail
-}
-
-// Close terminates the iteration process, releasing any pending underlying
-// resources.
-func (it *PerpsMarketGoerliMarketCreatedIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
-}
-
-// PerpsMarketGoerliMarketCreated represents a MarketCreated event raised by the PerpsMarketGoerli contract.
-type PerpsMarketGoerliMarketCreated struct {
- PerpsMarketId *big.Int
- MarketName string
- MarketSymbol string
- Raw types.Log // Blockchain specific contextual infos
-}
-
-// 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) {
-
- var perpsMarketIdRule []interface{}
- for _, perpsMarketIdItem := range perpsMarketId {
- perpsMarketIdRule = append(perpsMarketIdRule, perpsMarketIdItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "MarketCreated", perpsMarketIdRule)
- if err != nil {
- return nil, err
- }
- return &PerpsMarketGoerliMarketCreatedIterator{contract: _PerpsMarketGoerli.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) {
-
- var perpsMarketIdRule []interface{}
- for _, perpsMarketIdItem := range perpsMarketId {
- perpsMarketIdRule = append(perpsMarketIdRule, perpsMarketIdItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "MarketCreated", perpsMarketIdRule)
- 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(PerpsMarketGoerliMarketCreated)
- if err := _PerpsMarketGoerli.contract.UnpackLog(event, "MarketCreated", 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
-}
-
-// 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 {
- 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
-
- 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 *PerpsMarketGoerliMarketPriceDataUpdatedIterator) 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(PerpsMarketGoerliMarketPriceDataUpdated)
- 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(PerpsMarketGoerliMarketPriceDataUpdated)
- 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 *PerpsMarketGoerliMarketPriceDataUpdatedIterator) Error() error {
- return it.fail
-}
-
-// Close terminates the iteration process, releasing any pending underlying
-// resources.
-func (it *PerpsMarketGoerliMarketPriceDataUpdatedIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
-}
-
-// PerpsMarketGoerliMarketPriceDataUpdated represents a MarketPriceDataUpdated event raised by the PerpsMarketGoerli contract.
-type PerpsMarketGoerliMarketPriceDataUpdated struct {
- MarketId *big.Int
- FeedId [32]byte
- Raw types.Log // Blockchain specific contextual infos
-}
-
-// 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) {
-
- var marketIdRule []interface{}
- for _, marketIdItem := range marketId {
- marketIdRule = append(marketIdRule, marketIdItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "MarketPriceDataUpdated", marketIdRule)
- if err != nil {
- return nil, err
- }
- return &PerpsMarketGoerliMarketPriceDataUpdatedIterator{contract: _PerpsMarketGoerli.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) {
-
- var marketIdRule []interface{}
- for _, marketIdItem := range marketId {
- marketIdRule = append(marketIdRule, marketIdItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "MarketPriceDataUpdated", 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(PerpsMarketGoerliMarketPriceDataUpdated)
- if err := _PerpsMarketGoerli.contract.UnpackLog(event, "MarketPriceDataUpdated", 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
-}
-
-// 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 {
- 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
-
- 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 *PerpsMarketGoerliMarketUpdatedIterator) 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(PerpsMarketGoerliMarketUpdated)
- 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(PerpsMarketGoerliMarketUpdated)
- 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 *PerpsMarketGoerliMarketUpdatedIterator) Error() error {
- return it.fail
-}
-
-// Close terminates the iteration process, releasing any pending underlying
-// resources.
-func (it *PerpsMarketGoerliMarketUpdatedIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
-}
-
-// PerpsMarketGoerliMarketUpdated represents a MarketUpdated event raised by the PerpsMarketGoerli contract.
-type PerpsMarketGoerliMarketUpdated struct {
- MarketId *big.Int
- Price *big.Int
- Skew *big.Int
- Size *big.Int
- SizeDelta *big.Int
- CurrentFundingRate *big.Int
- CurrentFundingVelocity *big.Int
- Raw types.Log // Blockchain specific contextual infos
-}
-
-// 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) {
-
- logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "MarketUpdated")
- if err != nil {
- return nil, err
- }
- return &PerpsMarketGoerliMarketUpdatedIterator{contract: _PerpsMarketGoerli.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) {
-
- logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "MarketUpdated")
- 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(PerpsMarketGoerliMarketUpdated)
- if err := _PerpsMarketGoerli.contract.UnpackLog(event, "MarketUpdated", 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
-}
-
-// 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 {
- 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
-
- 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 *PerpsMarketGoerliMaxCollateralAmountSetIterator) 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(PerpsMarketGoerliMaxCollateralAmountSet)
- 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(PerpsMarketGoerliMaxCollateralAmountSet)
- 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 *PerpsMarketGoerliMaxCollateralAmountSetIterator) Error() error {
- return it.fail
-}
-
-// Close terminates the iteration process, releasing any pending underlying
-// resources.
-func (it *PerpsMarketGoerliMaxCollateralAmountSetIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
-}
-
-// PerpsMarketGoerliMaxCollateralAmountSet represents a MaxCollateralAmountSet event raised by the PerpsMarketGoerli contract.
-type PerpsMarketGoerliMaxCollateralAmountSet struct {
- SynthMarketId *big.Int
- CollateralAmount *big.Int
- Raw types.Log // Blockchain specific contextual infos
-}
-
-// 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) {
-
- var synthMarketIdRule []interface{}
- for _, synthMarketIdItem := range synthMarketId {
- synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "MaxCollateralAmountSet", synthMarketIdRule)
- if err != nil {
- return nil, err
- }
- return &PerpsMarketGoerliMaxCollateralAmountSetIterator{contract: _PerpsMarketGoerli.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) {
-
- var synthMarketIdRule []interface{}
- for _, synthMarketIdItem := range synthMarketId {
- synthMarketIdRule = append(synthMarketIdRule, synthMarketIdItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "MaxCollateralAmountSet", 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(PerpsMarketGoerliMaxCollateralAmountSet)
- if err := _PerpsMarketGoerli.contract.UnpackLog(event, "MaxCollateralAmountSet", 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
-}
-
-// 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 {
- 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
-
- 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 *PerpsMarketGoerliMaxLiquidationParametersSetIterator) 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(PerpsMarketGoerliMaxLiquidationParametersSet)
- 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(PerpsMarketGoerliMaxLiquidationParametersSet)
- 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 *PerpsMarketGoerliMaxLiquidationParametersSetIterator) Error() error {
- return it.fail
-}
-
-// Close terminates the iteration process, releasing any pending underlying
-// resources.
-func (it *PerpsMarketGoerliMaxLiquidationParametersSetIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
-}
-
-// PerpsMarketGoerliMaxLiquidationParametersSet represents a MaxLiquidationParametersSet event raised by the PerpsMarketGoerli contract.
-type PerpsMarketGoerliMaxLiquidationParametersSet struct {
- MarketId *big.Int
- MaxLiquidationLimitAccumulationMultiplier *big.Int
- MaxSecondsInLiquidationWindow *big.Int
- MaxLiquidationPd *big.Int
- EndorsedLiquidator common.Address
- Raw types.Log // Blockchain specific contextual infos
-}
-
-// 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) {
-
- var marketIdRule []interface{}
- for _, marketIdItem := range marketId {
- marketIdRule = append(marketIdRule, marketIdItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "MaxLiquidationParametersSet", marketIdRule)
- if err != nil {
- return nil, err
- }
- return &PerpsMarketGoerliMaxLiquidationParametersSetIterator{contract: _PerpsMarketGoerli.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) {
-
- var marketIdRule []interface{}
- for _, marketIdItem := range marketId {
- marketIdRule = append(marketIdRule, marketIdItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "MaxLiquidationParametersSet", 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(PerpsMarketGoerliMaxLiquidationParametersSet)
- if err := _PerpsMarketGoerli.contract.UnpackLog(event, "MaxLiquidationParametersSet", 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
-}
-
-// 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 {
- 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
-
- 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 *PerpsMarketGoerliMaxMarketSizeSetIterator) 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(PerpsMarketGoerliMaxMarketSizeSet)
- 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(PerpsMarketGoerliMaxMarketSizeSet)
- 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 *PerpsMarketGoerliMaxMarketSizeSetIterator) Error() error {
- return it.fail
-}
-
-// Close terminates the iteration process, releasing any pending underlying
-// resources.
-func (it *PerpsMarketGoerliMaxMarketSizeSetIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
-}
-
-// PerpsMarketGoerliMaxMarketSizeSet represents a MaxMarketSizeSet event raised by the PerpsMarketGoerli contract.
-type PerpsMarketGoerliMaxMarketSizeSet struct {
- MarketId *big.Int
- MaxMarketSize *big.Int
- Raw types.Log // Blockchain specific contextual infos
-}
-
-// 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) {
-
- var marketIdRule []interface{}
- for _, marketIdItem := range marketId {
- marketIdRule = append(marketIdRule, marketIdItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "MaxMarketSizeSet", marketIdRule)
- if err != nil {
- return nil, err
- }
- return &PerpsMarketGoerliMaxMarketSizeSetIterator{contract: _PerpsMarketGoerli.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) {
-
- var marketIdRule []interface{}
- for _, marketIdItem := range marketId {
- marketIdRule = append(marketIdRule, marketIdItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "MaxMarketSizeSet", 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(PerpsMarketGoerliMaxMarketSizeSet)
- if err := _PerpsMarketGoerli.contract.UnpackLog(event, "MaxMarketSizeSet", 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
-}
-
-// 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 {
- 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
-
- 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 *PerpsMarketGoerliOrderCommittedIterator) 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(PerpsMarketGoerliOrderCommitted)
- 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(PerpsMarketGoerliOrderCommitted)
- 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 *PerpsMarketGoerliOrderCommittedIterator) Error() error {
- return it.fail
-}
-
-// Close terminates the iteration process, releasing any pending underlying
-// resources.
-func (it *PerpsMarketGoerliOrderCommittedIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
-}
-
-// PerpsMarketGoerliOrderCommitted represents a OrderCommitted event raised by the PerpsMarketGoerli contract.
-type PerpsMarketGoerliOrderCommitted struct {
- MarketId *big.Int
- AccountId *big.Int
- OrderType uint8
- SizeDelta *big.Int
- AcceptablePrice *big.Int
- SettlementTime *big.Int
- ExpirationTime *big.Int
- TrackingCode [32]byte
- Sender common.Address
- Raw types.Log // Blockchain specific contextual infos
-}
-
-// 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) {
-
- var marketIdRule []interface{}
- for _, marketIdItem := range marketId {
- marketIdRule = append(marketIdRule, marketIdItem)
- }
- var accountIdRule []interface{}
- for _, accountIdItem := range accountId {
- accountIdRule = append(accountIdRule, accountIdItem)
- }
-
- var trackingCodeRule []interface{}
- for _, trackingCodeItem := range trackingCode {
- trackingCodeRule = append(trackingCodeRule, trackingCodeItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.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
-}
-
-// 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) {
-
- var marketIdRule []interface{}
- for _, marketIdItem := range marketId {
- marketIdRule = append(marketIdRule, marketIdItem)
- }
- var accountIdRule []interface{}
- for _, accountIdItem := range accountId {
- accountIdRule = append(accountIdRule, accountIdItem)
- }
-
- var trackingCodeRule []interface{}
- for _, trackingCodeItem := range trackingCode {
- trackingCodeRule = append(trackingCodeRule, trackingCodeItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "OrderCommitted")
- 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(PerpsMarketGoerliOrderCommitted)
- if err := _PerpsMarketGoerli.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 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 {
- 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
-
- 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 *PerpsMarketGoerliOrderFeesSetIterator) 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(PerpsMarketGoerliOrderFeesSet)
- 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(PerpsMarketGoerliOrderFeesSet)
- 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 *PerpsMarketGoerliOrderFeesSetIterator) Error() error {
- return it.fail
-}
-
-// Close terminates the iteration process, releasing any pending underlying
-// resources.
-func (it *PerpsMarketGoerliOrderFeesSetIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
-}
-
-// PerpsMarketGoerliOrderFeesSet represents a OrderFeesSet event raised by the PerpsMarketGoerli contract.
-type PerpsMarketGoerliOrderFeesSet struct {
- MarketId *big.Int
- MakerFeeRatio *big.Int
- TakerFeeRatio *big.Int
- Raw types.Log // Blockchain specific contextual infos
-}
-
-// 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) {
-
- var marketIdRule []interface{}
- for _, marketIdItem := range marketId {
- marketIdRule = append(marketIdRule, marketIdItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "OrderFeesSet", marketIdRule)
- if err != nil {
- return nil, err
- }
- return &PerpsMarketGoerliOrderFeesSetIterator{contract: _PerpsMarketGoerli.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) {
-
- var marketIdRule []interface{}
- for _, marketIdItem := range marketId {
- marketIdRule = append(marketIdRule, marketIdItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "OrderFeesSet", 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(PerpsMarketGoerliOrderFeesSet)
- if err := _PerpsMarketGoerli.contract.UnpackLog(event, "OrderFeesSet", 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
-}
-
-// 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 {
- 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
-
- 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 *PerpsMarketGoerliOrderSettledIterator) 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(PerpsMarketGoerliOrderSettled)
- 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(PerpsMarketGoerliOrderSettled)
- 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 *PerpsMarketGoerliOrderSettledIterator) Error() error {
- return it.fail
-}
-
-// Close terminates the iteration process, releasing any pending underlying
-// resources.
-func (it *PerpsMarketGoerliOrderSettledIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
-}
-
-// PerpsMarketGoerliOrderSettled represents a OrderSettled event raised by the PerpsMarketGoerli contract.
-type PerpsMarketGoerliOrderSettled struct {
- MarketId *big.Int
- AccountId *big.Int
- FillPrice *big.Int
- Pnl *big.Int
- AccruedFunding *big.Int
- SizeDelta *big.Int
- NewSize *big.Int
- TotalFees *big.Int
- ReferralFees *big.Int
- CollectedFees *big.Int
- SettlementReward *big.Int
- TrackingCode [32]byte
- Settler common.Address
- Raw types.Log // Blockchain specific contextual infos
-}
-
-// 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) {
-
- var marketIdRule []interface{}
- for _, marketIdItem := range marketId {
- marketIdRule = append(marketIdRule, marketIdItem)
- }
- var accountIdRule []interface{}
- for _, accountIdItem := range accountId {
- accountIdRule = append(accountIdRule, accountIdItem)
- }
-
- var trackingCodeRule []interface{}
- for _, trackingCodeItem := range trackingCode {
- trackingCodeRule = append(trackingCodeRule, trackingCodeItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.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
-}
-
-// 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) {
-
- var marketIdRule []interface{}
- for _, marketIdItem := range marketId {
- marketIdRule = append(marketIdRule, marketIdItem)
- }
- var accountIdRule []interface{}
- for _, accountIdItem := range accountId {
- accountIdRule = append(accountIdRule, accountIdItem)
- }
-
- var trackingCodeRule []interface{}
- for _, trackingCodeItem := range trackingCode {
- trackingCodeRule = append(trackingCodeRule, trackingCodeItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "OrderSettled")
- 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(PerpsMarketGoerliOrderSettled)
- if err := _PerpsMarketGoerli.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 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 {
- 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
-
- 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 *PerpsMarketGoerliOwnerChangedIterator) 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(PerpsMarketGoerliOwnerChanged)
- 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(PerpsMarketGoerliOwnerChanged)
- 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 *PerpsMarketGoerliOwnerChangedIterator) Error() error {
- return it.fail
-}
-
-// Close terminates the iteration process, releasing any pending underlying
-// resources.
-func (it *PerpsMarketGoerliOwnerChangedIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
-}
-
-// PerpsMarketGoerliOwnerChanged represents a OwnerChanged event raised by the PerpsMarketGoerli contract.
-type PerpsMarketGoerliOwnerChanged 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 (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterOwnerChanged(opts *bind.FilterOpts) (*PerpsMarketGoerliOwnerChangedIterator, error) {
-
- logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "OwnerChanged")
- if err != nil {
- return nil, err
- }
- return &PerpsMarketGoerliOwnerChangedIterator{contract: _PerpsMarketGoerli.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) {
-
- logs, sub, err := _PerpsMarketGoerli.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(PerpsMarketGoerliOwnerChanged)
- if err := _PerpsMarketGoerli.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 (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseOwnerChanged(log types.Log) (*PerpsMarketGoerliOwnerChanged, error) {
- event := new(PerpsMarketGoerliOwnerChanged)
- if err := _PerpsMarketGoerli.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
-
- 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 *PerpsMarketGoerliOwnerNominatedIterator) 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(PerpsMarketGoerliOwnerNominated)
- 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(PerpsMarketGoerliOwnerNominated)
- 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 *PerpsMarketGoerliOwnerNominatedIterator) Error() error {
- return it.fail
-}
-
-// Close terminates the iteration process, releasing any pending underlying
-// resources.
-func (it *PerpsMarketGoerliOwnerNominatedIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
-}
-
-// PerpsMarketGoerliOwnerNominated represents a OwnerNominated event raised by the PerpsMarketGoerli contract.
-type PerpsMarketGoerliOwnerNominated 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 (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterOwnerNominated(opts *bind.FilterOpts) (*PerpsMarketGoerliOwnerNominatedIterator, error) {
-
- logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "OwnerNominated")
- if err != nil {
- return nil, err
- }
- return &PerpsMarketGoerliOwnerNominatedIterator{contract: _PerpsMarketGoerli.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) {
-
- logs, sub, err := _PerpsMarketGoerli.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(PerpsMarketGoerliOwnerNominated)
- if err := _PerpsMarketGoerli.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 (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseOwnerNominated(log types.Log) (*PerpsMarketGoerliOwnerNominated, error) {
- event := new(PerpsMarketGoerliOwnerNominated)
- if err := _PerpsMarketGoerli.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
-
- 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 *PerpsMarketGoerliPerAccountCapsSetIterator) 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(PerpsMarketGoerliPerAccountCapsSet)
- 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(PerpsMarketGoerliPerAccountCapsSet)
- 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 *PerpsMarketGoerliPerAccountCapsSetIterator) Error() error {
- return it.fail
-}
-
-// Close terminates the iteration process, releasing any pending underlying
-// resources.
-func (it *PerpsMarketGoerliPerAccountCapsSetIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
-}
-
-// PerpsMarketGoerliPerAccountCapsSet represents a PerAccountCapsSet event raised by the PerpsMarketGoerli contract.
-type PerpsMarketGoerliPerAccountCapsSet struct {
- MaxPositionsPerAccount *big.Int
- MaxCollateralsPerAccount *big.Int
- Raw types.Log // Blockchain specific contextual infos
-}
-
-// 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) {
-
- logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "PerAccountCapsSet")
- if err != nil {
- return nil, err
- }
- return &PerpsMarketGoerliPerAccountCapsSetIterator{contract: _PerpsMarketGoerli.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) {
-
- logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "PerAccountCapsSet")
- 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(PerpsMarketGoerliPerAccountCapsSet)
- if err := _PerpsMarketGoerli.contract.UnpackLog(event, "PerAccountCapsSet", 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
-}
-
-// 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 {
- 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
-
- 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 *PerpsMarketGoerliPermissionGrantedIterator) 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(PerpsMarketGoerliPermissionGranted)
- 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(PerpsMarketGoerliPermissionGranted)
- 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 *PerpsMarketGoerliPermissionGrantedIterator) Error() error {
- return it.fail
-}
-
-// Close terminates the iteration process, releasing any pending underlying
-// resources.
-func (it *PerpsMarketGoerliPermissionGrantedIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
-}
-
-// PerpsMarketGoerliPermissionGranted represents a PermissionGranted event raised by the PerpsMarketGoerli contract.
-type PerpsMarketGoerliPermissionGranted 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 (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterPermissionGranted(opts *bind.FilterOpts, accountId []*big.Int, permission [][32]byte, user []common.Address) (*PerpsMarketGoerliPermissionGrantedIterator, 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 := _PerpsMarketGoerli.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
-}
-
-// 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) {
-
- 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 := _PerpsMarketGoerli.contract.WatchLogs(opts, "PermissionGranted")
- 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(PerpsMarketGoerliPermissionGranted)
- if err := _PerpsMarketGoerli.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 (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParsePermissionGranted(log types.Log) (*PerpsMarketGoerliPermissionGranted, error) {
- event := new(PerpsMarketGoerliPermissionGranted)
- if err := _PerpsMarketGoerli.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
-
- 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 *PerpsMarketGoerliPermissionRevokedIterator) 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(PerpsMarketGoerliPermissionRevoked)
- 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(PerpsMarketGoerliPermissionRevoked)
- 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 *PerpsMarketGoerliPermissionRevokedIterator) Error() error {
- return it.fail
-}
-
-// Close terminates the iteration process, releasing any pending underlying
-// resources.
-func (it *PerpsMarketGoerliPermissionRevokedIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
-}
-
-// PerpsMarketGoerliPermissionRevoked represents a PermissionRevoked event raised by the PerpsMarketGoerli contract.
-type PerpsMarketGoerliPermissionRevoked 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 (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterPermissionRevoked(opts *bind.FilterOpts, accountId []*big.Int, permission [][32]byte, user []common.Address) (*PerpsMarketGoerliPermissionRevokedIterator, 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 := _PerpsMarketGoerli.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
-}
-
-// 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) {
-
- 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 := _PerpsMarketGoerli.contract.WatchLogs(opts, "PermissionRevoked")
- 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(PerpsMarketGoerliPermissionRevoked)
- if err := _PerpsMarketGoerli.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 (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParsePermissionRevoked(log types.Log) (*PerpsMarketGoerliPermissionRevoked, error) {
- event := new(PerpsMarketGoerliPermissionRevoked)
- if err := _PerpsMarketGoerli.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
-
- 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 *PerpsMarketGoerliPositionLiquidatedIterator) 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(PerpsMarketGoerliPositionLiquidated)
- 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(PerpsMarketGoerliPositionLiquidated)
- 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 *PerpsMarketGoerliPositionLiquidatedIterator) Error() error {
- return it.fail
-}
-
-// Close terminates the iteration process, releasing any pending underlying
-// resources.
-func (it *PerpsMarketGoerliPositionLiquidatedIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
-}
-
-// PerpsMarketGoerliPositionLiquidated represents a PositionLiquidated event raised by the PerpsMarketGoerli contract.
-type PerpsMarketGoerliPositionLiquidated struct {
- AccountId *big.Int
- MarketId *big.Int
- AmountLiquidated *big.Int
- CurrentPositionSize *big.Int
- Raw types.Log // Blockchain specific contextual infos
-}
-
-// 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) {
-
- var accountIdRule []interface{}
- for _, accountIdItem := range accountId {
- accountIdRule = append(accountIdRule, accountIdItem)
- }
- var marketIdRule []interface{}
- for _, marketIdItem := range marketId {
- marketIdRule = append(marketIdRule, marketIdItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "PositionLiquidated", accountIdRule, marketIdRule)
- if err != nil {
- return nil, err
- }
- return &PerpsMarketGoerliPositionLiquidatedIterator{contract: _PerpsMarketGoerli.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) {
-
- var accountIdRule []interface{}
- for _, accountIdItem := range accountId {
- accountIdRule = append(accountIdRule, accountIdItem)
- }
- var marketIdRule []interface{}
- for _, marketIdItem := range marketId {
- marketIdRule = append(marketIdRule, marketIdItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "PositionLiquidated")
- 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(PerpsMarketGoerliPositionLiquidated)
- if err := _PerpsMarketGoerli.contract.UnpackLog(event, "PositionLiquidated", 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
-}
-
-// 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 {
- 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
-
- 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 *PerpsMarketGoerliPreviousOrderExpiredIterator) 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(PerpsMarketGoerliPreviousOrderExpired)
- 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(PerpsMarketGoerliPreviousOrderExpired)
- 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 *PerpsMarketGoerliPreviousOrderExpiredIterator) Error() error {
- return it.fail
-}
-
-// Close terminates the iteration process, releasing any pending underlying
-// resources.
-func (it *PerpsMarketGoerliPreviousOrderExpiredIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
-}
-
-// PerpsMarketGoerliPreviousOrderExpired represents a PreviousOrderExpired event raised by the PerpsMarketGoerli contract.
-type PerpsMarketGoerliPreviousOrderExpired struct {
- MarketId *big.Int
- AccountId *big.Int
- SizeDelta *big.Int
- AcceptablePrice *big.Int
- SettlementTime *big.Int
- TrackingCode [32]byte
- Raw types.Log // Blockchain specific contextual infos
-}
-
-// 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) {
-
- var marketIdRule []interface{}
- for _, marketIdItem := range marketId {
- marketIdRule = append(marketIdRule, marketIdItem)
- }
- var accountIdRule []interface{}
- for _, accountIdItem := range accountId {
- accountIdRule = append(accountIdRule, accountIdItem)
- }
-
- var trackingCodeRule []interface{}
- for _, trackingCodeItem := range trackingCode {
- trackingCodeRule = append(trackingCodeRule, trackingCodeItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.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
-}
-
-// 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) {
-
- var marketIdRule []interface{}
- for _, marketIdItem := range marketId {
- marketIdRule = append(marketIdRule, marketIdItem)
- }
- var accountIdRule []interface{}
- for _, accountIdItem := range accountId {
- accountIdRule = append(accountIdRule, accountIdItem)
- }
-
- var trackingCodeRule []interface{}
- for _, trackingCodeItem := range trackingCode {
- trackingCodeRule = append(trackingCodeRule, trackingCodeItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "PreviousOrderExpired", marketIdRule, accountIdRule, trackingCodeRule)
- 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(PerpsMarketGoerliPreviousOrderExpired)
- if err := _PerpsMarketGoerli.contract.UnpackLog(event, "PreviousOrderExpired", 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
-}
-
-// 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 {
- 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
-
- 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 *PerpsMarketGoerliReferrerShareUpdatedIterator) 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(PerpsMarketGoerliReferrerShareUpdated)
- 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(PerpsMarketGoerliReferrerShareUpdated)
- 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 *PerpsMarketGoerliReferrerShareUpdatedIterator) Error() error {
- return it.fail
-}
-
-// Close terminates the iteration process, releasing any pending underlying
-// resources.
-func (it *PerpsMarketGoerliReferrerShareUpdatedIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
-}
-
-// PerpsMarketGoerliReferrerShareUpdated represents a ReferrerShareUpdated event raised by the PerpsMarketGoerli contract.
-type PerpsMarketGoerliReferrerShareUpdated struct {
- Referrer common.Address
- ShareRatioD18 *big.Int
- Raw types.Log // Blockchain specific contextual infos
-}
-
-// 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) {
-
- logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "ReferrerShareUpdated")
- if err != nil {
- return nil, err
- }
- return &PerpsMarketGoerliReferrerShareUpdatedIterator{contract: _PerpsMarketGoerli.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) {
-
- logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "ReferrerShareUpdated")
- 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(PerpsMarketGoerliReferrerShareUpdated)
- if err := _PerpsMarketGoerli.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 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 {
- 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
-
- 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 *PerpsMarketGoerliSettlementStrategyAddedIterator) 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(PerpsMarketGoerliSettlementStrategyAdded)
- 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(PerpsMarketGoerliSettlementStrategyAdded)
- 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 *PerpsMarketGoerliSettlementStrategyAddedIterator) Error() error {
- return it.fail
-}
-
-// Close terminates the iteration process, releasing any pending underlying
-// resources.
-func (it *PerpsMarketGoerliSettlementStrategyAddedIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
-}
-
-// PerpsMarketGoerliSettlementStrategyAdded represents a SettlementStrategyAdded event raised by the PerpsMarketGoerli contract.
-type PerpsMarketGoerliSettlementStrategyAdded 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.
-//
-// 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) {
-
- var marketIdRule []interface{}
- for _, marketIdItem := range marketId {
- marketIdRule = append(marketIdRule, marketIdItem)
- }
-
- var strategyIdRule []interface{}
- for _, strategyIdItem := range strategyId {
- strategyIdRule = append(strategyIdRule, strategyIdItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "SettlementStrategyAdded", marketIdRule, strategyIdRule)
- if err != nil {
- return nil, err
- }
- return &PerpsMarketGoerliSettlementStrategyAddedIterator{contract: _PerpsMarketGoerli.contract, event: "SettlementStrategyAdded", logs: logs, sub: sub}, nil
-}
-
-// WatchSettlementStrategyAdded is a free log subscription operation binding the contract event 0x6ea79b5183a0fa7ead0ea991cd5e5fa23e2da92b703bbe111479fffcdea58827.
-//
-// 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) {
-
- var marketIdRule []interface{}
- for _, marketIdItem := range marketId {
- marketIdRule = append(marketIdRule, marketIdItem)
- }
-
- var strategyIdRule []interface{}
- for _, strategyIdItem := range strategyId {
- strategyIdRule = append(strategyIdRule, strategyIdItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "SettlementStrategyAdded", marketIdRule, 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(PerpsMarketGoerliSettlementStrategyAdded)
- if err := _PerpsMarketGoerli.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 0x6ea79b5183a0fa7ead0ea991cd5e5fa23e2da92b703bbe111479fffcdea58827.
-//
-// 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 {
- 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
-
- 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 *PerpsMarketGoerliSettlementStrategyEnabledIterator) 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(PerpsMarketGoerliSettlementStrategyEnabled)
- 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(PerpsMarketGoerliSettlementStrategyEnabled)
- 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 *PerpsMarketGoerliSettlementStrategyEnabledIterator) Error() error {
- return it.fail
-}
-
-// Close terminates the iteration process, releasing any pending underlying
-// resources.
-func (it *PerpsMarketGoerliSettlementStrategyEnabledIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
-}
-
-// PerpsMarketGoerliSettlementStrategyEnabled represents a SettlementStrategyEnabled event raised by the PerpsMarketGoerli contract.
-type PerpsMarketGoerliSettlementStrategyEnabled struct {
- MarketId *big.Int
- StrategyId *big.Int
- Enabled bool
- Raw types.Log // Blockchain specific contextual infos
-}
-
-// 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) {
-
- var marketIdRule []interface{}
- for _, marketIdItem := range marketId {
- marketIdRule = append(marketIdRule, marketIdItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "SettlementStrategyEnabled", marketIdRule)
- if err != nil {
- return nil, err
- }
- return &PerpsMarketGoerliSettlementStrategyEnabledIterator{contract: _PerpsMarketGoerli.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) {
-
- var marketIdRule []interface{}
- for _, marketIdItem := range marketId {
- marketIdRule = append(marketIdRule, marketIdItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "SettlementStrategyEnabled", 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(PerpsMarketGoerliSettlementStrategyEnabled)
- if err := _PerpsMarketGoerli.contract.UnpackLog(event, "SettlementStrategyEnabled", 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
-}
-
-// 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 {
- 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
-
- 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 *PerpsMarketGoerliSynthDeductionPrioritySetIterator) 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(PerpsMarketGoerliSynthDeductionPrioritySet)
- 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(PerpsMarketGoerliSynthDeductionPrioritySet)
- 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 *PerpsMarketGoerliSynthDeductionPrioritySetIterator) Error() error {
- return it.fail
-}
-
-// Close terminates the iteration process, releasing any pending underlying
-// resources.
-func (it *PerpsMarketGoerliSynthDeductionPrioritySetIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
-}
-
-// PerpsMarketGoerliSynthDeductionPrioritySet represents a SynthDeductionPrioritySet event raised by the PerpsMarketGoerli contract.
-type PerpsMarketGoerliSynthDeductionPrioritySet struct {
- NewSynthDeductionPriority []*big.Int
- Raw types.Log // Blockchain specific contextual infos
-}
-
-// 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) {
-
- logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "SynthDeductionPrioritySet")
- if err != nil {
- return nil, err
- }
- return &PerpsMarketGoerliSynthDeductionPrioritySetIterator{contract: _PerpsMarketGoerli.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) {
-
- logs, sub, err := _PerpsMarketGoerli.contract.WatchLogs(opts, "SynthDeductionPrioritySet")
- 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(PerpsMarketGoerliSynthDeductionPrioritySet)
- if err := _PerpsMarketGoerli.contract.UnpackLog(event, "SynthDeductionPrioritySet", 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
-}
-
-// 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 {
- 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
-
- 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 *PerpsMarketGoerliUpgradedIterator) 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(PerpsMarketGoerliUpgraded)
- 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(PerpsMarketGoerliUpgraded)
- 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 *PerpsMarketGoerliUpgradedIterator) Error() error {
- return it.fail
-}
-
-// Close terminates the iteration process, releasing any pending underlying
-// resources.
-func (it *PerpsMarketGoerliUpgradedIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
-}
-
-// PerpsMarketGoerliUpgraded represents a Upgraded event raised by the PerpsMarketGoerli contract.
-type PerpsMarketGoerliUpgraded 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 (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) FilterUpgraded(opts *bind.FilterOpts, self []common.Address) (*PerpsMarketGoerliUpgradedIterator, error) {
-
- var selfRule []interface{}
- for _, selfItem := range self {
- selfRule = append(selfRule, selfItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.contract.FilterLogs(opts, "Upgraded", selfRule)
- if err != nil {
- return nil, err
- }
- return &PerpsMarketGoerliUpgradedIterator{contract: _PerpsMarketGoerli.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) {
-
- var selfRule []interface{}
- for _, selfItem := range self {
- selfRule = append(selfRule, selfItem)
- }
-
- logs, sub, err := _PerpsMarketGoerli.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(PerpsMarketGoerliUpgraded)
- if err := _PerpsMarketGoerli.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 (_PerpsMarketGoerli *PerpsMarketGoerliFilterer) ParseUpgraded(log types.Log) (*PerpsMarketGoerliUpgraded, error) {
- event := new(PerpsMarketGoerliUpgraded)
- if err := _PerpsMarketGoerli.contract.UnpackLog(event, "Upgraded", log); err != nil {
- return nil, err
- }
- event.Raw = log
- return event, nil
-}
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/errors/errors.go b/errors/errors.go
index 85a3e80..13c41eb 100644
--- a/errors/errors.go
+++ b/errors/errors.go
@@ -25,8 +25,16 @@ var (
EnumUnsupportedErr = fmt.Errorf("unsupported status err")
// InvalidArgumentErr is used when given argument is invalid
InvalidArgumentErr = fmt.Errorf("invalid argument error")
+ // ChainIDNotSupported is used when chain ID not supported by the lib
+ ChainIDNotSupported = fmt.Errorf("chain id not supported")
+ // FetchErr is used when error occurred when fetch to external dependency
+ FetchErr = fmt.Errorf("fetch error")
)
+func GetFetchErr(err error, service string) error {
+ return fmt.Errorf("%s %w:%w", service, FetchErr, err)
+}
+
func GetDialRPCErr(err error) error {
return fmt.Errorf("%w: %w", DialPRCErr, err)
}
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..5aef2b1 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,13 +13,13 @@ import (
type AccountLiquidatedSubscription struct {
*basicSubscription
AccountLiquidated chan *models.AccountLiquidated
- contractEventChan chan *perpsMarketGoerli.PerpsMarketGoerliAccountLiquidated
+ contractEventChan chan *perpsMarket.PerpsMarketAccountLiquidationAttempt
}
func (e *Events) ListenAccountLiquidated() (*AccountLiquidatedSubscription, error) {
- createdChan := make(chan *perpsMarketGoerli.PerpsMarketGoerliAccountLiquidated)
+ createdChan := make(chan *perpsMarket.PerpsMarketAccountLiquidationAttempt)
- liquidatedSub, err := e.perpsMarket.WatchAccountLiquidated(nil, createdChan, nil)
+ liquidatedSub, err := e.perpsMarket.WatchAccountLiquidationAttempt(nil, createdChan, nil)
if err != nil {
logger.Log().WithField("layer", "Events-AccountLiquidated").Errorf("error watch account liquidated: %v", err.Error())
return nil, errors.GetEventListenErr(err, "AccountLiquidated")
@@ -35,7 +35,7 @@ func (e *Events) ListenAccountLiquidated() (*AccountLiquidatedSubscription, erro
// newAccountsSubscription
func newAccountLiquidatedSubscription(
eventSub event.Subscription,
- created chan *perpsMarketGoerli.PerpsMarketGoerliAccountLiquidated,
+ created chan *perpsMarket.PerpsMarketAccountLiquidationAttempt,
) *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/liquidations_test.go b/events/liquidations_test.go
index 7ad7ad5..8c0f26f 100644
--- a/events/liquidations_test.go
+++ b/events/liquidations_test.go
@@ -3,9 +3,8 @@ package events
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/contracts/core"
+ "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarket"
perps_test "github.com/gateway-fm/perpsv3-Go/utils/testing-contracts/perps-test"
"github.com/stretchr/testify/require"
"log"
@@ -30,11 +29,10 @@ func TestEvents_ListenLiquidations_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)
- e := NewEvents(rpcClient, coreC, spot, perps)
+ e := NewEvents(rpcClient, coreC, perps)
subs, err := e.ListenLiquidations()
require.NoError(t, err)
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/marketUpdate_test.go b/events/marketUpdate_test.go
index ecec714..da9741c 100644
--- a/events/marketUpdate_test.go
+++ b/events/marketUpdate_test.go
@@ -3,9 +3,8 @@ package events
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/contracts/core"
+ "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarket"
perps_test "github.com/gateway-fm/perpsv3-Go/utils/testing-contracts/perps-test"
"github.com/stretchr/testify/require"
"log"
@@ -30,11 +29,10 @@ func TestEvents_ListenMarketUpdates_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)
- e := NewEvents(rpcClient, coreC, spot, perps)
+ e := NewEvents(rpcClient, coreC, perps)
subs, err := e.ListenMarketUpdates()
require.NoError(t, err)
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/orders_test.go b/events/orders_test.go
index ef3e783..b6bbe67 100644
--- a/events/orders_test.go
+++ b/events/orders_test.go
@@ -8,9 +8,8 @@ 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/contracts/core"
+ "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarket"
perps_test "github.com/gateway-fm/perpsv3-Go/utils/testing-contracts/perps-test"
"github.com/stretchr/testify/require"
)
@@ -31,11 +30,10 @@ func TestEvents_ListenOrders_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)
- e := NewEvents(rpcClient, coreC, spot, perps)
+ e := NewEvents(rpcClient, coreC, perps)
subs, err := e.ListenOrders()
require.NoError(t, err)
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/events/trades_test.go b/events/trades_test.go
index 75ab07c..4dd93ba 100644
--- a/events/trades_test.go
+++ b/events/trades_test.go
@@ -8,9 +8,8 @@ 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/contracts/core"
+ "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarket"
perps_test "github.com/gateway-fm/perpsv3-Go/utils/testing-contracts/perps-test"
"github.com/stretchr/testify/require"
)
@@ -31,11 +30,10 @@ func TestEvents_ListenTrades_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)
- e := NewEvents(rpcClient, coreC, spot, perps)
+ e := NewEvents(rpcClient, coreC, perps)
subs, err := e.ListenTrades()
require.NoError(t, err)
diff --git a/examples/new_lib.go b/examples/new_lib.go
new file mode 100644
index 0000000..b193ff0
--- /dev/null
+++ b/examples/new_lib.go
@@ -0,0 +1,182 @@
+package main
+
+import (
+ perpsv3_Go "github.com/gateway-fm/perpsv3-Go"
+ "log"
+)
+
+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)
+ }
+
+ // TODO: clean out tests
+
+ // POSITION
+
+ //accs, err := lib.FormatAccountsLimit(20000)
+ //if err != nil {
+ // log.Fatal(err)
+ //}
+ //
+ //log.Println("accs", len(accs))
+ //
+ //good100 := 0
+ //good200 := 0
+ //good300 := 0
+ //good400 := 0
+ //good500 := 0
+ //
+ //for _, a := range accs {
+ // _, err := lib.GetPosition(a.ID, big.NewInt(100))
+ // if err != nil {
+ // log.Println("id", a.ID.String(), "market", 100)
+ // log.Println(err.Error())
+ // } else {
+ // good100++
+ // }
+ //
+ // _, err = lib.GetPosition(a.ID, big.NewInt(200))
+ // if err != nil {
+ // log.Println("id", a.ID.String(), "market", 200)
+ // log.Println(err.Error())
+ // } else {
+ // good200++
+ // }
+ //
+ // _, err = lib.GetPosition(a.ID, big.NewInt(300))
+ // if err != nil {
+ // log.Println("id", a.ID.String(), "market", 300)
+ // log.Println(err.Error())
+ // } else {
+ // good300++
+ // }
+ //
+ // _, err = lib.GetPosition(a.ID, big.NewInt(400))
+ // if err != nil {
+ // log.Println("id", a.ID.String(), "market", 400)
+ // log.Println(err.Error())
+ // } else {
+ // good400++
+ // }
+ //
+ // _, err = lib.GetPosition(a.ID, big.NewInt(500))
+ // if err != nil {
+ // log.Println("id", a.ID.String(), "market", 500)
+ // log.Println(err.Error())
+ // } else {
+ // good500++
+ // }
+ //}
+ //
+ //log.Println("good100:", good100)
+ //log.Println("good200:", good200)
+ //log.Println("good300:", good300)
+ //log.Println("good400:", good400)
+ //log.Println("good500:", good500)
+
+ //id := new(big.Int)
+ //id.SetString("170141183460469231731687303715884105753", 10)
+ //
+ //position, err := lib.GetPosition(id, big.NewInt(100))
+ //if err != nil {
+ // log.Println(err.Error())
+ //} else {
+ // log.Println(position)
+ //}
+
+ // ACCOUNTS
+
+ //id := new(big.Int)
+ //id.SetString("170141183460469231731687303715884105753", 10)
+ //
+ //format, err := lib.FormatAccount(id)
+ //if err != nil {
+ // log.Println(err.Error())
+ //} else {
+ // log.Println(format)
+ //}
+ //
+ //margin, err := lib.GetAvailableMargin(id)
+ //if err != nil {
+ // log.Println(err.Error())
+ //} else {
+ // log.Println(margin)
+ //}
+ //
+ //rmargin, err := lib.GetRequiredMaintenanceMargin(id)
+ //if err != nil {
+ // log.Println(err.Error())
+ //} else {
+ // log.Println(rmargin)
+ //}
+ //
+ //li, err := lib.GetAccountLastInteraction(id)
+ //if err != nil {
+ // log.Println(err.Error())
+ //} else {
+ // log.Println(li)
+ //}
+ //
+ //ao, err := lib.GetAccountOwner(id)
+ //if err != nil {
+ // log.Println(err.Error())
+ //} else {
+ // log.Println(ao)
+ //}
+
+ // MARKETS
+
+ ids, err := lib.GetMarketIDs()
+ if err != nil {
+ log.Println(err.Error())
+ } else {
+ log.Println(ids)
+ }
+
+ for _, i := range ids {
+ log.Println("market:", i.String())
+
+ summaryi, err := lib.GetMarketSummary(i)
+ if err != nil {
+ log.Println(err.Error())
+ } else {
+ log.Println("summary", summaryi)
+ }
+
+ metai, err := lib.GetMarketMetadata(i)
+ if err != nil {
+ log.Println(err.Error())
+ } else {
+ log.Println("meta:", metai)
+ }
+
+ liqi, err := lib.GetLiquidationParameters(i)
+ if err != nil {
+ log.Println(err.Error())
+ } else {
+ log.Println("liquidation:", liqi)
+ }
+
+ foundi, err := lib.GetFoundingRate(i)
+ if err != nil {
+ log.Println(err.Error())
+ } else {
+ log.Println("founding rate:", foundi)
+ }
+
+ }
+ //...
+ // call needed methods
+ // ...
+
+ lib.Close()
+}
diff --git a/examples/trades_events.go b/examples/trades_events.go
index 7c9bea2..c30159a 100644
--- a/examples/trades_events.go
+++ b/examples/trades_events.go
@@ -6,11 +6,12 @@ import (
"time"
perpsv3_Go "github.com/gateway-fm/perpsv3-Go"
- "github.com/gateway-fm/perpsv3-Go/config"
)
func main() {
- lib, err := perpsv3_Go.Create(config.GetGoerliDefaultPerpsvConfig())
+ conf := perpsv3_Go.GetOptimismGoerliDefaultConfig("")
+
+ lib, err := perpsv3_Go.Create(conf)
if err != nil {
log.Fatal(err)
}
diff --git a/go.mod b/go.mod
index 0266eb5..d4584ca 100644
--- a/go.mod
+++ b/go.mod
@@ -6,6 +6,7 @@ require (
github.com/ethereum/go-ethereum v1.12.2
github.com/golang/mock v1.6.0
github.com/sirupsen/logrus v1.9.3
+ github.com/status-im/keycard-go v0.2.0
github.com/stretchr/testify v1.8.1
github.com/t-tomalak/logrus-easy-formatter v0.0.0-20190827215021-c074f06c5816
)
diff --git a/go.sum b/go.sum
index 286b88d..9eb7b92 100644
--- a/go.sum
+++ b/go.sum
@@ -88,6 +88,7 @@ github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6Mwd
github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ=
github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
github.com/status-im/keycard-go v0.2.0 h1:QDLFswOQu1r5jsycloeQh3bVU8n/NatHHaZobtDnDzA=
+github.com/status-im/keycard-go v0.2.0/go.mod h1:wlp8ZLbsmrF6g6WjugPAx+IzoLrkdf9+mHxBEeo3Hbg=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
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/account_test.go b/models/account_test.go
index 2a29f69..0aa0eaf 100644
--- a/models/account_test.go
+++ b/models/account_test.go
@@ -2,7 +2,7 @@ package models
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/stretchr/testify/require"
"math/big"
"testing"
@@ -17,7 +17,7 @@ func TestFormatAccount(t *testing.T) {
id *big.Int
owner common.Address
lastInteraction uint64
- permissions []perpsMarketGoerli.IAccountModuleAccountPermissions
+ permissions []perpsMarket.IAccountModuleAccountPermissions
want *Account
}{
{
@@ -40,7 +40,7 @@ func TestFormatAccount(t *testing.T) {
id: big.NewInt(1),
owner: common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"),
lastInteraction: uint64(timeNow.Unix()),
- permissions: []perpsMarketGoerli.IAccountModuleAccountPermissions{{
+ permissions: []perpsMarket.IAccountModuleAccountPermissions{{
User: common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"),
Permissions: [][32]byte{{65, 68, 77, 73, 78}},
}},
@@ -59,7 +59,7 @@ func TestFormatAccount(t *testing.T) {
id: big.NewInt(1),
owner: common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"),
lastInteraction: uint64(timeNow.Unix()),
- permissions: []perpsMarketGoerli.IAccountModuleAccountPermissions{{
+ permissions: []perpsMarket.IAccountModuleAccountPermissions{{
User: common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"),
Permissions: [][32]byte{{65, 68, 77, 73, 78}, {87, 73, 84, 72, 68, 82, 65, 87}, {68, 69, 76, 69, 71, 65, 84, 69}},
}},
@@ -78,7 +78,7 @@ func TestFormatAccount(t *testing.T) {
id: big.NewInt(1),
owner: common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"),
lastInteraction: uint64(timeNow.Unix()),
- permissions: []perpsMarketGoerli.IAccountModuleAccountPermissions{
+ permissions: []perpsMarket.IAccountModuleAccountPermissions{
{
User: common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"),
Permissions: [][32]byte{{65, 68, 77, 73, 78}},
@@ -109,7 +109,7 @@ func TestFormatAccount(t *testing.T) {
id: big.NewInt(1),
owner: common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"),
lastInteraction: uint64(timeNow.Unix()),
- permissions: []perpsMarketGoerli.IAccountModuleAccountPermissions{
+ permissions: []perpsMarket.IAccountModuleAccountPermissions{
{
User: common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"),
Permissions: [][32]byte{{65, 68, 77, 73, 78}, {87, 73, 84, 72, 68, 82, 65, 87}, {68, 69, 76, 69, 71, 65, 84, 69}},
@@ -140,7 +140,7 @@ func TestFormatAccount(t *testing.T) {
id: big.NewInt(1),
owner: common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"),
lastInteraction: uint64(timeNow.Unix()),
- permissions: []perpsMarketGoerli.IAccountModuleAccountPermissions{
+ permissions: []perpsMarket.IAccountModuleAccountPermissions{
{
User: common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"),
Permissions: [][32]byte{{65, 68, 77, 73, 78}, {87, 72, 84, 72, 68, 82, 65, 87}, {68, 69, 76, 69, 71, 65, 84, 69}},
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/liquidation_test.go b/models/liquidation_test.go
index 8ab2b72..6daa95b 100644
--- a/models/liquidation_test.go
+++ b/models/liquidation_test.go
@@ -2,7 +2,7 @@ package models
import (
"github.com/ethereum/go-ethereum/core/types"
- "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarketGoerli"
+ "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarket"
"github.com/stretchr/testify/require"
"math/big"
"testing"
@@ -14,7 +14,7 @@ func TestGetLiquidationFromEvent(t *testing.T) {
testCases := []struct {
name string
- event *perpsMarketGoerli.PerpsMarketGoerliPositionLiquidated
+ event *perpsMarket.PerpsMarketPositionLiquidated
time uint64
want *Liquidation
}{
@@ -24,7 +24,7 @@ func TestGetLiquidationFromEvent(t *testing.T) {
},
{
name: "only market ID",
- event: &perpsMarketGoerli.PerpsMarketGoerliPositionLiquidated{
+ event: &perpsMarket.PerpsMarketPositionLiquidated{
MarketId: big.NewInt(1),
},
want: &Liquidation{
@@ -33,7 +33,7 @@ func TestGetLiquidationFromEvent(t *testing.T) {
},
{
name: "only account ID",
- event: &perpsMarketGoerli.PerpsMarketGoerliPositionLiquidated{
+ event: &perpsMarket.PerpsMarketPositionLiquidated{
AccountId: big.NewInt(1),
},
want: &Liquidation{
@@ -42,7 +42,7 @@ func TestGetLiquidationFromEvent(t *testing.T) {
},
{
name: "full event",
- event: &perpsMarketGoerli.PerpsMarketGoerliPositionLiquidated{
+ event: &perpsMarket.PerpsMarketPositionLiquidated{
MarketId: big.NewInt(1),
AccountId: big.NewInt(2),
AmountLiquidated: big.NewInt(3),
diff --git a/models/marketData.go b/models/marketData.go
index dad39c8..7489073 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
@@ -108,15 +109,17 @@ func GetFundingParameters(resp struct {
}
}
+// LiquidationRewardRatioD18 changed to FlagRewardRatioD18
+
func GetLiquidationParameters(resp struct {
InitialMarginRatioD18 *big.Int
MinimumInitialMarginRatioD18 *big.Int
MaintenanceMarginScalarD18 *big.Int
- LiquidationRewardRatioD18 *big.Int
+ FlagRewardRatioD18 *big.Int
MinimumPositionMargin *big.Int
}) *LiquidationParameters {
return &LiquidationParameters{
- LiquidationRewardRatio: resp.LiquidationRewardRatioD18,
+ LiquidationRewardRatio: resp.FlagRewardRatioD18,
MinimumInitialMarginRatio: resp.MinimumInitialMarginRatioD18,
MaintenanceMarginScalar: resp.MaintenanceMarginScalarD18,
InitialMarginRatio: resp.InitialMarginRatioD18,
@@ -125,7 +128,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 +184,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 +214,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/marketData_test.go b/models/marketData_test.go
index 59aa597..51a1711 100644
--- a/models/marketData_test.go
+++ b/models/marketData_test.go
@@ -1,13 +1,13 @@
package models
import (
+ "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarket"
"math/big"
"testing"
"time"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
- "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarketGoerli"
"github.com/stretchr/testify/require"
)
@@ -16,7 +16,7 @@ func TestGetMarketUpdateFromEvent(t *testing.T) {
testCases := []struct {
name string
- event *perpsMarketGoerli.PerpsMarketGoerliMarketUpdated
+ event *perpsMarket.PerpsMarketMarketUpdated
time uint64
want *MarketUpdate
}{
@@ -26,7 +26,7 @@ func TestGetMarketUpdateFromEvent(t *testing.T) {
},
{
name: "only market ID",
- event: &perpsMarketGoerli.PerpsMarketGoerliMarketUpdated{
+ event: &perpsMarket.PerpsMarketMarketUpdated{
MarketId: big.NewInt(1),
},
want: &MarketUpdate{
@@ -36,7 +36,7 @@ func TestGetMarketUpdateFromEvent(t *testing.T) {
},
{
name: "only price",
- event: &perpsMarketGoerli.PerpsMarketGoerliMarketUpdated{
+ event: &perpsMarket.PerpsMarketMarketUpdated{
Price: big.NewInt(1),
},
want: &MarketUpdate{
@@ -46,7 +46,7 @@ func TestGetMarketUpdateFromEvent(t *testing.T) {
},
{
name: "only skew",
- event: &perpsMarketGoerli.PerpsMarketGoerliMarketUpdated{
+ event: &perpsMarket.PerpsMarketMarketUpdated{
Skew: big.NewInt(1),
},
want: &MarketUpdate{
@@ -56,7 +56,7 @@ func TestGetMarketUpdateFromEvent(t *testing.T) {
},
{
name: "only size",
- event: &perpsMarketGoerli.PerpsMarketGoerliMarketUpdated{
+ event: &perpsMarket.PerpsMarketMarketUpdated{
Size: big.NewInt(1),
},
want: &MarketUpdate{
@@ -66,7 +66,7 @@ func TestGetMarketUpdateFromEvent(t *testing.T) {
},
{
name: "only size delta",
- event: &perpsMarketGoerli.PerpsMarketGoerliMarketUpdated{
+ event: &perpsMarket.PerpsMarketMarketUpdated{
SizeDelta: big.NewInt(1),
},
want: &MarketUpdate{
@@ -76,7 +76,7 @@ func TestGetMarketUpdateFromEvent(t *testing.T) {
},
{
name: "only size delta",
- event: &perpsMarketGoerli.PerpsMarketGoerliMarketUpdated{
+ event: &perpsMarket.PerpsMarketMarketUpdated{
SizeDelta: big.NewInt(1),
},
want: &MarketUpdate{
@@ -86,7 +86,7 @@ func TestGetMarketUpdateFromEvent(t *testing.T) {
},
{
name: "only current funding rate",
- event: &perpsMarketGoerli.PerpsMarketGoerliMarketUpdated{
+ event: &perpsMarket.PerpsMarketMarketUpdated{
CurrentFundingRate: big.NewInt(1),
},
want: &MarketUpdate{
@@ -96,7 +96,7 @@ func TestGetMarketUpdateFromEvent(t *testing.T) {
},
{
name: "only current funding velocity",
- event: &perpsMarketGoerli.PerpsMarketGoerliMarketUpdated{
+ event: &perpsMarket.PerpsMarketMarketUpdated{
CurrentFundingVelocity: big.NewInt(1),
},
want: &MarketUpdate{
@@ -107,7 +107,7 @@ func TestGetMarketUpdateFromEvent(t *testing.T) {
{
name: "full event",
- event: &perpsMarketGoerli.PerpsMarketGoerliMarketUpdated{
+ event: &perpsMarket.PerpsMarketMarketUpdated{
MarketId: big.NewInt(1),
Price: big.NewInt(2),
Skew: big.NewInt(3),
@@ -150,7 +150,7 @@ func TestGetMarketUpdateBigFromEvent(t *testing.T) {
testCases := []struct {
name string
- event *perpsMarketGoerli.PerpsMarketGoerliMarketUpdated
+ event *perpsMarket.PerpsMarketMarketUpdated
time uint64
want *MarketUpdateBig
}{
@@ -160,7 +160,7 @@ func TestGetMarketUpdateBigFromEvent(t *testing.T) {
},
{
name: "full event",
- event: &perpsMarketGoerli.PerpsMarketGoerliMarketUpdated{
+ event: &perpsMarket.PerpsMarketMarketUpdated{
MarketId: big.NewInt(1),
Price: big.NewInt(2),
Skew: big.NewInt(3),
@@ -240,7 +240,7 @@ func TestGetMarketMetadataFromContractResponse(t *testing.T) {
func TestGetMarketSummaryFromContractModel(t *testing.T) {
testCases := []struct {
name string
- summary perpsMarketGoerli.IPerpsMarketModuleMarketSummary
+ summary perpsMarket.IPerpsMarketModuleMarketSummary
marketID *big.Int
time uint64
want *MarketSummary
@@ -251,7 +251,7 @@ func TestGetMarketSummaryFromContractModel(t *testing.T) {
},
{
name: "full object",
- summary: perpsMarketGoerli.IPerpsMarketModuleMarketSummary{
+ summary: perpsMarket.IPerpsMarketModuleMarketSummary{
Skew: big.NewInt(100),
Size: big.NewInt(200),
MaxOpenInterest: big.NewInt(300),
diff --git a/models/marketPriceFeedIDOnchain.go b/models/marketPriceFeedIDOnchain.go
new file mode 100644
index 0000000..b0852c8
--- /dev/null
+++ b/models/marketPriceFeedIDOnchain.go
@@ -0,0 +1,48 @@
+package models
+
+import "math/big"
+
+// PriceFeedID is a permission enum
+type PriceFeedID int
+
+const (
+ UNKNOWN PriceFeedID = iota
+ ETH
+ BTC
+ LINK
+ OP
+ SNX
+)
+
+// priceFeedIDs is mapping PriceFeedID to its string value
+var priceFeedIDs = [...]string{
+ UNKNOWN: "UNKNOWN",
+ ETH: "0xca80ba6dc32e08d06f1aa886011eed1d77c77be9eb761cc10d72b7d0a2fd57a6",
+ BTC: "0xf9c0172ba10dfa4d19088d94f5bf61d3b54d5bd7483a322a982e1373ee8ea31b",
+ LINK: "0x83be4ed61dd8a3518d198098ce37240c494710a7b9d85e35d9fceac21df08994",
+ OP: "0x71334dcd37620ce3c33e3bafef04cc80dec083042e49b734315b36d1aad7991f",
+ SNX: "0xe956a4199936e913b402474cb29576066f15108121d434606a19b34036e6d5cc",
+}
+
+// String is used to return PriceFeedID string value
+func (p PriceFeedID) String() string {
+ return priceFeedIDs[p]
+}
+
+// GetPriceFeedIDFromMarketID is used to get PriceFeedID from given market id value
+func GetPriceFeedIDFromMarketID(id *big.Int) PriceFeedID {
+ switch id.Int64() {
+ case int64(100):
+ return ETH
+ case int64(200):
+ return BTC
+ case int64(300):
+ return LINK
+ case int64(400):
+ return OP
+ case int64(500):
+ return SNX
+ default:
+ return UNKNOWN
+ }
+}
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/order_test.go b/models/order_test.go
index c4b130b..c4420eb 100644
--- a/models/order_test.go
+++ b/models/order_test.go
@@ -1,6 +1,7 @@
package models
import (
+ "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarket"
"math/big"
"testing"
"time"
@@ -8,7 +9,6 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/crypto"
- "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarketGoerli"
"github.com/stretchr/testify/require"
)
@@ -17,7 +17,7 @@ func TestGetOrderFromEvent(t *testing.T) {
testCases := []struct {
name string
- event *perpsMarketGoerli.PerpsMarketGoerliOrderCommitted
+ event *perpsMarket.PerpsMarketOrderCommitted
time uint64
want *Order
}{
@@ -27,7 +27,7 @@ func TestGetOrderFromEvent(t *testing.T) {
},
{
name: "only market ID",
- event: &perpsMarketGoerli.PerpsMarketGoerliOrderCommitted{
+ event: &perpsMarket.PerpsMarketOrderCommitted{
MarketId: big.NewInt(1),
},
want: &Order{
@@ -36,7 +36,7 @@ func TestGetOrderFromEvent(t *testing.T) {
},
{
name: "only account ID",
- event: &perpsMarketGoerli.PerpsMarketGoerliOrderCommitted{
+ event: &perpsMarket.PerpsMarketOrderCommitted{
AccountId: big.NewInt(1),
},
want: &Order{
@@ -45,7 +45,7 @@ func TestGetOrderFromEvent(t *testing.T) {
},
{
name: "only settlement time",
- event: &perpsMarketGoerli.PerpsMarketGoerliOrderCommitted{
+ event: &perpsMarket.PerpsMarketOrderCommitted{
SettlementTime: big.NewInt(1),
},
want: &Order{
@@ -54,7 +54,7 @@ func TestGetOrderFromEvent(t *testing.T) {
},
{
name: "only expiration time",
- event: &perpsMarketGoerli.PerpsMarketGoerliOrderCommitted{
+ event: &perpsMarket.PerpsMarketOrderCommitted{
ExpirationTime: big.NewInt(1),
},
want: &Order{
@@ -63,7 +63,7 @@ func TestGetOrderFromEvent(t *testing.T) {
},
{
name: "full event",
- event: &perpsMarketGoerli.PerpsMarketGoerliOrderCommitted{
+ event: &perpsMarket.PerpsMarketOrderCommitted{
MarketId: big.NewInt(1),
AccountId: big.NewInt(2),
OrderType: uint8(3),
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/permissions_test.go b/models/permissions_test.go
index dde01db..c75dd9b 100644
--- a/models/permissions_test.go
+++ b/models/permissions_test.go
@@ -1,7 +1,7 @@
package models
import (
- "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/stretchr/testify/require"
"testing"
@@ -76,7 +76,7 @@ func TestPermissionFromString(t *testing.T) {
func TestDecodePermissions(t *testing.T) {
testCases := []struct {
name string
- contractPerm perpsMarketGoerli.IAccountModuleAccountPermissions
+ contractPerm perpsMarket.IAccountModuleAccountPermissions
want []Permission
}{
{
@@ -84,27 +84,27 @@ func TestDecodePermissions(t *testing.T) {
},
{
name: "one permission",
- contractPerm: perpsMarketGoerli.IAccountModuleAccountPermissions{
+ contractPerm: perpsMarket.IAccountModuleAccountPermissions{
Permissions: [][32]byte{{65, 68, 77, 73, 78}},
},
want: []Permission{0},
},
{
name: "one bad permission",
- contractPerm: perpsMarketGoerli.IAccountModuleAccountPermissions{
+ contractPerm: perpsMarket.IAccountModuleAccountPermissions{
Permissions: [][32]byte{{65, 68, 77, 73, 76}},
},
},
{
name: "several permissions",
- contractPerm: perpsMarketGoerli.IAccountModuleAccountPermissions{
+ contractPerm: perpsMarket.IAccountModuleAccountPermissions{
Permissions: [][32]byte{{65, 68, 77, 73, 78}, {87, 73, 84, 72, 68, 82, 65, 87}, {68, 69, 76, 69, 71, 65, 84, 69}},
},
want: []Permission{0, 1, 2},
},
{
name: "several permissions one bad",
- contractPerm: perpsMarketGoerli.IAccountModuleAccountPermissions{
+ contractPerm: perpsMarket.IAccountModuleAccountPermissions{
Permissions: [][32]byte{{65, 68, 77, 73, 78}, {87, 73, 84, 72, 68, 81, 65, 87}, {68, 69, 76, 69, 71, 65, 84, 69}},
},
want: []Permission{0, 2},
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/trade_test.go b/models/trade_test.go
index 143b366..61c6ac9 100644
--- a/models/trade_test.go
+++ b/models/trade_test.go
@@ -1,6 +1,7 @@
package models
import (
+ "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarket"
"math/big"
"testing"
"time"
@@ -8,7 +9,6 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/crypto"
- "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarketGoerli"
"github.com/stretchr/testify/require"
)
@@ -17,7 +17,7 @@ func TestGetTradeFromEvent(t *testing.T) {
testCases := []struct {
name string
- event *perpsMarketGoerli.PerpsMarketGoerliOrderSettled
+ event *perpsMarket.PerpsMarketOrderSettled
time uint64
want *Trade
}{
@@ -27,7 +27,7 @@ func TestGetTradeFromEvent(t *testing.T) {
},
{
name: "only market ID",
- event: &perpsMarketGoerli.PerpsMarketGoerliOrderSettled{
+ event: &perpsMarket.PerpsMarketOrderSettled{
MarketId: big.NewInt(1),
},
want: &Trade{
@@ -37,7 +37,7 @@ func TestGetTradeFromEvent(t *testing.T) {
},
{
name: "only account ID",
- event: &perpsMarketGoerli.PerpsMarketGoerliOrderSettled{
+ event: &perpsMarket.PerpsMarketOrderSettled{
AccountId: big.NewInt(1),
},
want: &Trade{
@@ -47,7 +47,7 @@ func TestGetTradeFromEvent(t *testing.T) {
},
{
name: "full event",
- event: &perpsMarketGoerli.PerpsMarketGoerliOrderSettled{
+ event: &perpsMarket.PerpsMarketOrderSettled{
MarketId: big.NewInt(1),
AccountId: big.NewInt(2),
FillPrice: big.NewInt(3),
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/models/userPermissions_test.go b/models/userPermissions_test.go
index 87854de..18117ba 100644
--- a/models/userPermissions_test.go
+++ b/models/userPermissions_test.go
@@ -2,7 +2,7 @@ package models
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/stretchr/testify/require"
"testing"
)
@@ -10,7 +10,7 @@ import (
func TestGetPermissions(t *testing.T) {
testCases := []struct {
name string
- contractPerms []perpsMarketGoerli.IAccountModuleAccountPermissions
+ contractPerms []perpsMarket.IAccountModuleAccountPermissions
want []*UserPermissions
}{
{
@@ -18,7 +18,7 @@ func TestGetPermissions(t *testing.T) {
},
{
name: "one user permission no permissions",
- contractPerms: []perpsMarketGoerli.IAccountModuleAccountPermissions{
+ contractPerms: []perpsMarket.IAccountModuleAccountPermissions{
{
User: common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"),
},
@@ -31,7 +31,7 @@ func TestGetPermissions(t *testing.T) {
},
{
name: "one user permission one permission",
- contractPerms: []perpsMarketGoerli.IAccountModuleAccountPermissions{
+ contractPerms: []perpsMarket.IAccountModuleAccountPermissions{
{
User: common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"),
Permissions: [][32]byte{{65, 68, 77, 73, 78}},
@@ -46,7 +46,7 @@ func TestGetPermissions(t *testing.T) {
},
{
name: "one user permission one bad permission",
- contractPerms: []perpsMarketGoerli.IAccountModuleAccountPermissions{
+ contractPerms: []perpsMarket.IAccountModuleAccountPermissions{
{
User: common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"),
Permissions: [][32]byte{{65, 68, 77, 72, 78}},
@@ -60,7 +60,7 @@ func TestGetPermissions(t *testing.T) {
},
{
name: "one user permission several permissions",
- contractPerms: []perpsMarketGoerli.IAccountModuleAccountPermissions{
+ contractPerms: []perpsMarket.IAccountModuleAccountPermissions{
{
User: common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"),
Permissions: [][32]byte{{65, 68, 77, 73, 78}, {87, 73, 84, 72, 68, 82, 65, 87}, {68, 69, 76, 69, 71, 65, 84, 69}},
@@ -75,7 +75,7 @@ func TestGetPermissions(t *testing.T) {
},
{
name: "one user permission several permissions one bad",
- contractPerms: []perpsMarketGoerli.IAccountModuleAccountPermissions{
+ contractPerms: []perpsMarket.IAccountModuleAccountPermissions{
{
User: common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"),
Permissions: [][32]byte{{65, 68, 77, 73, 78}, {87, 73, 84, 72, 68, 81, 65, 87}, {68, 69, 76, 69, 71, 65, 84, 69}},
@@ -90,7 +90,7 @@ func TestGetPermissions(t *testing.T) {
},
{
name: "several user permission no permissions",
- contractPerms: []perpsMarketGoerli.IAccountModuleAccountPermissions{
+ contractPerms: []perpsMarket.IAccountModuleAccountPermissions{
{
User: common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"),
},
@@ -115,7 +115,7 @@ func TestGetPermissions(t *testing.T) {
},
{
name: "several user permission one permission",
- contractPerms: []perpsMarketGoerli.IAccountModuleAccountPermissions{
+ contractPerms: []perpsMarket.IAccountModuleAccountPermissions{
{
User: common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"),
Permissions: [][32]byte{{65, 68, 77, 73, 78}},
@@ -146,7 +146,7 @@ func TestGetPermissions(t *testing.T) {
},
{
name: "several user permission several permissions",
- contractPerms: []perpsMarketGoerli.IAccountModuleAccountPermissions{
+ contractPerms: []perpsMarket.IAccountModuleAccountPermissions{
{
User: common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"),
Permissions: [][32]byte{{65, 68, 77, 73, 78}, {87, 73, 84, 72, 68, 82, 65, 87}, {68, 69, 76, 69, 71, 65, 84, 69}},
diff --git a/perpsv3.go b/perpsv3.go
index e6bdba6..b484bfb 100644
--- a/perpsv3.go
+++ b/perpsv3.go
@@ -1,15 +1,13 @@
package perpsv3_Go
import (
+ "github.com/ethereum/go-ethereum/ethclient"
"math/big"
"github.com/ethereum/go-ethereum/common"
- "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 +185,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 +351,36 @@ 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()
+ perpsMarketContract, err := p.getPerpsMarket()
if err != nil {
return err
}
- perpsMarket, err := p.getGoerliPerpsMarket()
+ srv, err := services.NewService(rpcClient, p.config, coreContact, perpsMarketContract)
if err != nil {
return err
}
- p.service = services.NewService(
- rpcClient,
- core,
- p.config.FirstContractBlocks.Core,
- spotMarket,
- p.config.FirstContractBlocks.SpotMarket,
- perpsMarket,
- p.config.FirstContractBlocks.PerpsMarket,
- )
-
- p.events = events.NewEvents(rpcClient, core, spotMarket, perpsMarket)
+ p.service = srv
+ 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 +393,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/rawContracts/erc7412.go b/rawContracts/erc7412.go
new file mode 100644
index 0000000..93911da
--- /dev/null
+++ b/rawContracts/erc7412.go
@@ -0,0 +1,114 @@
+package rawContracts
+
+import (
+ "encoding/base64"
+ "encoding/json"
+ "fmt"
+ "io"
+ "net/http"
+
+ "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/ethclient"
+
+ "github.com/gateway-fm/perpsv3-Go/errors"
+ "github.com/gateway-fm/perpsv3-Go/utils/abiCoder"
+)
+
+// TODO: change to prod url
+const oracleURL = "https://xc-testnet.pyth.network/api/latest_vaas?ids[]="
+
+// IRawERC7412Contract is a ERC7412 contract interface
+type IRawERC7412Contract interface {
+ // GetCallFulfillOracleQuery is used to get calldata for fulfillOracleQuery method
+ GetCallFulfillOracleQuery(feedID string) ([]byte, error)
+ // Address is used to get contract address
+ Address() common.Address
+}
+
+// ERC7412 is data struct for erc7412 contract implementation
+type ERC7412 struct {
+ abi *abi.ABI
+ address common.Address
+ provider *ethclient.Client
+ contract *bind.BoundContract
+}
+
+// NewERC7412 is used to get new ERC7412 instance
+func NewERC7412(address common.Address, provider *ethclient.Client) (IRawERC7412Contract, error) {
+ c := &ERC7412{}
+
+ abiInstance, err := getABI("./contracts/84531-ERC7412.json")
+ if err != nil {
+ return nil, err
+ }
+
+ c.abi = abiInstance
+ c.provider = provider
+ c.address = address
+ c.contract = bind.NewBoundContract(
+ address,
+ *abiInstance,
+ provider,
+ provider,
+ provider,
+ )
+
+ return c, nil
+}
+
+func (p *ERC7412) Address() common.Address {
+ return p.address
+}
+
+func (p *ERC7412) GetCallFulfillOracleQuery(feedID string) ([]byte, error) {
+ feedIDRaw := common.FromHex(feedID)
+ feedIDRaw32 := *abi.ConvertType(feedIDRaw, new([32]byte)).(*[32]byte)
+
+ resp, err := http.Get(fmt.Sprintf("%s%s", oracleURL, feedID))
+ if err != nil {
+ logErr("GetCallFulfillOracleQuery", fmt.Sprintln("err fetch oracle:", err.Error()))
+ return nil, errors.GetFetchErr(err, "pyth oracle")
+ }
+
+ body, err := io.ReadAll(resp.Body)
+ if err != nil {
+ logErr("GetCallFulfillOracleQuery", fmt.Sprintln("err oracle response read:", err.Error()))
+ return nil, errors.GetFetchErr(err, "pyth oracle")
+ }
+
+ bodyStrings := []string{}
+
+ if err := json.Unmarshal(body, &bodyStrings); err != nil {
+ logErr("GetCallFulfillOracleQuery", fmt.Sprintln("err oracle response unmarshal:", err.Error()))
+ return nil, errors.GetFetchErr(err, "pyth oracle")
+ }
+
+ updateData := make([]byte, base64.StdEncoding.DecodedLen(len(bodyStrings[0])))
+ _, err = base64.StdEncoding.Decode(updateData, []byte(bodyStrings[0]))
+ if err != nil {
+ logErr("GetCallFulfillOracleQuery", fmt.Sprintln("err oracle response decode:", err.Error()))
+ return nil, errors.GetFetchErr(err, "pyth oracle")
+ }
+
+ coder, err := abiCoder.NewCoder([]string{"uint8", "uint64", "bytes32[]", "bytes[]"})
+ if err != nil {
+ logErr("GetCallFulfillOracleQuery", fmt.Sprintln("err pack:", err.Error()))
+ return nil, errors.GetReadContractErr(err, "ERC7412", "encode call data")
+ }
+
+ callDataOracleArgHex, err := coder.Bytes(uint8(1), uint64(30), [][32]byte{feedIDRaw32}, [][]byte{updateData})
+ if err != nil {
+ logErr("GetCallFulfillOracleQuery", fmt.Sprintln("err pack:", err.Error()))
+ return nil, errors.GetReadContractErr(err, "ERC7412", "encode call data")
+ }
+
+ callDataOracle, err := p.abi.Pack("fulfillOracleQuery", callDataOracleArgHex)
+ if err != nil {
+ logErr("GetCallFulfillOracleQuery", fmt.Sprintln("err pack:", err.Error()))
+ return nil, errors.GetReadContractErr(err, "ERC7412", "fulfillOracleQuery")
+ }
+
+ return callDataOracle, nil
+}
diff --git a/rawContracts/forwarder.go b/rawContracts/forwarder.go
new file mode 100644
index 0000000..3d16932
--- /dev/null
+++ b/rawContracts/forwarder.go
@@ -0,0 +1,104 @@
+package rawContracts
+
+import (
+ "fmt"
+
+ "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/common/hexutil"
+ "github.com/ethereum/go-ethereum/ethclient"
+
+ "github.com/gateway-fm/perpsv3-Go/contracts/forwarder"
+ "github.com/gateway-fm/perpsv3-Go/errors"
+)
+
+// IRawForwarderContract is a trustedMulticallForwarder interface
+type IRawForwarderContract interface {
+ // Aggregate3Value is used to call aggregate3Value contract method
+ Aggregate3Value(arg []forwarder.TrustedMulticallForwarderCall3Value) ([]ForwarderResult, error)
+ // Address is used to get contract address
+ Address() common.Address
+}
+
+// Forwarder is an implementation of the trustedMulticallForwarder contract
+type Forwarder struct {
+ abi *abi.ABI
+ address common.Address
+ provider *ethclient.Client
+ contract *bind.BoundContract
+}
+
+// ForwarderResult is a data struct for the trustedMulticallForwarder method response
+type ForwarderResult struct {
+ Success bool
+ ReturnData []byte
+}
+
+// NewForwarder is used to get new Forwarder instance
+func NewForwarder(address common.Address, provider *ethclient.Client) (IRawForwarderContract, error) {
+ c := &Forwarder{}
+
+ abiInstance, err := getABI("./contracts/84531-TrustedMulticallForwarder.json")
+ if err != nil {
+ return nil, err
+ }
+
+ c.abi = abiInstance
+ c.provider = provider
+ c.address = address
+ c.contract = bind.NewBoundContract(
+ address,
+ *abiInstance,
+ provider,
+ provider,
+ provider,
+ )
+
+ return c, nil
+}
+
+func (p *Forwarder) Address() common.Address {
+ return p.address
+}
+
+func (p *Forwarder) Aggregate3Value(arg []forwarder.TrustedMulticallForwarderCall3Value) ([]ForwarderResult, error) {
+ out := []interface{}{}
+
+ if err := p.rawCall(1, &out, "aggregate3Value", arg); err != nil {
+ logErr("Aggregate3Value", fmt.Sprintln("err call contract method:", err.Error()))
+ return nil, errors.GetReadContractErr(err, "RawForwarder", "aggregate3Value")
+ }
+
+ return *abi.ConvertType(out[0], new([]ForwarderResult)).(*[]ForwarderResult), nil
+}
+
+func (p *Forwarder) rawCall(value uint64, results *[]interface{}, method string, params ...interface{}) error {
+ input, err := p.abi.Pack(method, params...)
+ if err != nil {
+ return err
+ }
+
+ cl := p.provider.Client()
+
+ var hex hexutil.Bytes
+
+ arg := map[string]interface{}{
+ "from": common.HexToAddress("0x0000000000000000000000000000000000000000"),
+ "to": &p.address,
+ "input": hexutil.Bytes(input),
+ "value": hexutil.EncodeUint64(value),
+ }
+
+ if err := cl.Call(&hex, "eth_call", arg, "latest"); err != nil {
+ return err
+ }
+
+ res, err := p.abi.Unpack(method, hex)
+ if err != nil {
+ return err
+ }
+ *results = res
+
+ return nil
+}
diff --git a/rawContracts/getABI.go b/rawContracts/getABI.go
new file mode 100644
index 0000000..0184445
--- /dev/null
+++ b/rawContracts/getABI.go
@@ -0,0 +1,40 @@
+package rawContracts
+
+import (
+ "fmt"
+ "github.com/ethereum/go-ethereum/accounts/abi"
+ "github.com/ethereum/go-ethereum/accounts/abi/bind"
+ "github.com/gateway-fm/perpsv3-Go/errors"
+ "io"
+ "os"
+)
+
+// gerABI is used to get contract ABI instance from given ABI file data path
+func getABI(abiFilePath string) (*abi.ABI, error) {
+ abiFile, err := os.Open(abiFilePath)
+ if err != nil {
+ logErr("getABI", fmt.Sprintln("open abi file err:", err.Error()))
+ return nil, errors.GetInitContractErr(err)
+ }
+ defer func() {
+ if err := abiFile.Close(); err != nil {
+ logWarn("getABI", fmt.Sprintln("err close abi file:", err.Error()))
+ }
+ }()
+
+ b, err := io.ReadAll(abiFile)
+ if err != nil {
+ logErr("getABI", fmt.Sprintln("read abi file err:", err.Error()))
+ return nil, errors.GetInitContractErr(err)
+ }
+
+ meta := &bind.MetaData{ABI: string(b)}
+
+ abiInstance, err := meta.GetAbi()
+ if err != nil {
+ logErr("getABI", fmt.Sprintln("get abi from meta err:", err.Error()))
+ return nil, errors.GetInitContractErr(err)
+ }
+
+ return abiInstance, nil
+}
diff --git a/rawContracts/logger.go b/rawContracts/logger.go
new file mode 100644
index 0000000..f3abb02
--- /dev/null
+++ b/rawContracts/logger.go
@@ -0,0 +1,14 @@
+package rawContracts
+
+import (
+ "fmt"
+ "github.com/gateway-fm/perpsv3-Go/pkg/logger"
+)
+
+func logErr(method string, msg string) {
+ logger.Log().WithField("layer", fmt.Sprintf("RawContracts-%v", method)).Error(msg)
+}
+
+func logWarn(method string, msg string) {
+ logger.Log().WithField("layer", fmt.Sprintf("RawContracts-%v", method)).Warning(msg)
+}
diff --git a/rawContracts/perps.go b/rawContracts/perps.go
new file mode 100644
index 0000000..cdf2aec
--- /dev/null
+++ b/rawContracts/perps.go
@@ -0,0 +1,120 @@
+package rawContracts
+
+import (
+ "fmt"
+ "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/ethclient"
+ "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarket"
+ "math/big"
+
+ "github.com/gateway-fm/perpsv3-Go/errors"
+)
+
+// IRawPerpsContract is an interface for the raw implementation of the perps data contracts
+type IRawPerpsContract interface {
+ // GetCallDataOpenPosition is used to get calldata for the getOpenPosition method
+ GetCallDataOpenPosition(marketID *big.Int, accountID *big.Int) ([]byte, error)
+ // GetCallDataMarketSummary is used to get calldata for the getMarketSummary method
+ GetCallDataMarketSummary(marketID *big.Int) ([]byte, error)
+ // UnpackGetMarketSummary is used to unpack outputs for the getMarketSummary method
+ UnpackGetMarketSummary(value []byte) (res *perpsMarket.IPerpsMarketModuleMarketSummary, err error)
+ // UnpackOpenPosition is used to unpack outputs for the getOpenPosition method
+ UnpackOpenPosition(value []byte) (res struct {
+ TotalPnl *big.Int
+ AccruedFunding *big.Int
+ PositionSize *big.Int
+ }, err error)
+ // Address is used to get perps contract address
+ Address() common.Address
+}
+
+// Perps is a raw perps contract implementation
+type Perps struct {
+ abi *abi.ABI
+ address common.Address
+ provider *ethclient.Client
+ contract *bind.BoundContract
+}
+
+// NewPerps is used to get new Perps instance
+func NewPerps(address common.Address, provider *ethclient.Client) (IRawPerpsContract, error) {
+ c := &Perps{}
+
+ abiInstance, err := getABI("./contracts/84531-andromeda-PerpsMarket.json")
+ if err != nil {
+ return nil, err
+ }
+
+ c.abi = abiInstance
+ c.provider = provider
+ c.address = address
+ c.contract = bind.NewBoundContract(
+ address,
+ *abiInstance,
+ provider,
+ provider,
+ provider,
+ )
+
+ return c, nil
+}
+
+func (p *Perps) Address() common.Address {
+ return p.address
+}
+
+func (p *Perps) GetCallDataMarketSummary(marketID *big.Int) ([]byte, error) {
+ callDataSummary, err := p.abi.Pack("getMarketSummary", marketID)
+ if err != nil {
+ logErr("GetCallDataMarketSummary", fmt.Sprintln("abi pack getMarketSummary err:", err.Error()))
+ return nil, errors.GetReadContractErr(err, "PerpsRaw", "getMarketSummary")
+ }
+
+ return callDataSummary, nil
+}
+
+func (p *Perps) GetCallDataOpenPosition(marketID *big.Int, accountID *big.Int) ([]byte, error) {
+ callOpenPosition, err := p.abi.Pack("getOpenPosition", accountID, marketID)
+ if err != nil {
+ logErr("GetCallDataOpenPosition", fmt.Sprintln("abi pack getOpenPosition err:", err.Error()))
+ return nil, errors.GetReadContractErr(err, "PerpsRaw", "getOpenPosition")
+ }
+
+ return callOpenPosition, nil
+}
+
+func (p *Perps) UnpackGetMarketSummary(value []byte) (res *perpsMarket.IPerpsMarketModuleMarketSummary, err error) {
+ unpackedSummary, err := p.abi.Unpack("getMarketSummary", value)
+ if err != nil {
+ logErr("UnpackGetMarketSummary", fmt.Sprintln("abi unpack getMarketSummart err:", err.Error()))
+ return res, errors.GetReadContractErr(err, "PerpsRaw", "UnpackGetMarketSummary")
+ }
+
+ return abi.ConvertType(unpackedSummary[0], new(perpsMarket.IPerpsMarketModuleMarketSummary)).(*perpsMarket.IPerpsMarketModuleMarketSummary), nil
+}
+
+func (p *Perps) UnpackOpenPosition(value []byte) (res struct {
+ TotalPnl *big.Int
+ AccruedFunding *big.Int
+ PositionSize *big.Int
+}, err error) {
+ unpackedOpenPosition, err := p.abi.Unpack("getOpenPosition", value)
+ if err != nil {
+ logErr("UnpackOpenPosition", fmt.Sprintln("abi unpack getOpenPosition err:", err.Error()))
+ return res, errors.GetReadContractErr(err, "PerpsRaw", "UnpackOpenPosition")
+ }
+
+ outstruct := new(struct {
+ TotalPnl *big.Int
+ AccruedFunding *big.Int
+ PositionSize *big.Int
+ })
+
+ outstruct.TotalPnl = *abi.ConvertType(unpackedOpenPosition[0], new(*big.Int)).(**big.Int)
+ outstruct.AccruedFunding = *abi.ConvertType(unpackedOpenPosition[1], new(*big.Int)).(**big.Int)
+ outstruct.PositionSize = *abi.ConvertType(unpackedOpenPosition[2], new(*big.Int)).(**big.Int)
+
+ return *outstruct, err
+}
diff --git a/services/accounts.go b/services/accounts.go
index 21d76b9..6476441 100644
--- a/services/accounts.go
+++ b/services/accounts.go
@@ -80,7 +80,7 @@ func (s *Service) RetrieveAccountLiquidationsLimit(limit uint64) ([]*models.Acco
opts := s.getFilterOptsPerpsMarket(fromBlock, &toBlock)
- iterator, err := s.perpsMarket.FilterAccountLiquidated(opts, nil)
+ iterator, err := s.perpsMarket.FilterAccountLiquidationAttempt(opts, nil)
if err != nil {
logger.Log().WithField("layer", "Service-QueryAccountLiquidatedLimit").Errorf("error get iterator: %v", err.Error())
return nil, errors.GetFilterErr(err, "perps market")
diff --git a/services/accounts_test.go b/services/accounts_test.go
index fbf193a..5fe1cd7 100644
--- a/services/accounts_test.go
+++ b/services/accounts_test.go
@@ -1,17 +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/models"
- "github.com/stretchr/testify/require"
+ "github.com/gateway-fm/perpsv3-Go/config"
"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 +24,10 @@ 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)
+ conf := config.GetBaseAndromedaDefaultConfig(rpc)
+
+ coreC, _ := core.NewCore(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient)
+ perps, _ := perpsMarket.NewPerpsMarket(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient)
idPer := new(big.Int)
idPer.SetString("170141183460469231731687303715884105754", 10)
@@ -56,7 +59,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, conf, coreC, perps)
res, err := s.FormatAccount(tt.id)
@@ -78,11 +81,12 @@ 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)
+ conf := config.GetBaseAndromedaDefaultConfig(rpc)
+
+ 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, conf, coreC, perps)
_, 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..655f09f 100644
--- a/services/luquidations_test.go
+++ b/services/luquidations_test.go
@@ -1,17 +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/models"
- "github.com/stretchr/testify/require"
+ "github.com/gateway-fm/perpsv3-Go/config"
"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 +24,12 @@ 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)
+ conf := config.GetBaseAndromedaDefaultConfig(rpc)
+
+ 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, conf, coreC, perps)
_, err := s.RetrieveLiquidationsLimit(20000)
@@ -41,9 +44,10 @@ 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)
+ conf := config.GetBaseAndromedaDefaultConfig(rpc)
+
+ coreC, _ := core.NewCore(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient)
+ perps, _ := perpsMarket.NewPerpsMarket(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient)
id := new(big.Int)
id.SetString("170141183460469231731687303715884105753", 10)
@@ -80,7 +84,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, conf, coreC, perps)
res, err := s.RetrieveLiquidations(tt.startBlock, &tt.endBlock)
if err != nil {
diff --git a/services/marketData.go b/services/marketData.go
index 5a163d8..76fab97 100644
--- a/services/marketData.go
+++ b/services/marketData.go
@@ -2,11 +2,14 @@ package services
import (
"context"
+ "fmt"
"math/big"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarketGoerli"
+ "github.com/gateway-fm/perpsv3-Go/config"
+ "github.com/gateway-fm/perpsv3-Go/contracts/forwarder"
+ "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"
@@ -131,15 +134,20 @@ func (s *Service) GetMarketSummary(marketID *big.Int) (*models.MarketSummary, er
return nil, errors.GetInvalidArgumentErr("market id cannot be nil")
}
- res, err := s.perpsMarket.GetMarketSummary(nil, marketID)
+ var res perpsMarket.IPerpsMarketModuleMarketSummary
+ var err error
+
+ switch s.chainID {
+ case config.OptimismGoerli:
+ res, err = s.getMarketSummary(marketID)
+ case config.BaseAndromeda:
+ res, err = s.getMarketSummaryMultiCall(marketID)
+ default:
+ return nil, errors.GetInvalidArgumentErr("chain id not supported for GetMarketSummary method")
+ }
+
if err != nil {
- if err.Error() == "execution reverted" {
- logger.Log().WithField("layer", "Service-GetMarketSummary").Errorf("contract error, market does not exist")
- return nil, errors.GetInvalidArgumentErr("market does not exist")
- } else {
- logger.Log().WithField("layer", "Service-GetMarketSummary").Errorf("error from the contract: %v", err.Error())
- return nil, errors.GetReadContractErr(err, "perpsMarket", "getMarketSummary")
- }
+ return nil, err
}
block, err := s.rpcClient.HeaderByNumber(context.Background(), nil)
@@ -153,6 +161,84 @@ func (s *Service) GetMarketSummary(marketID *big.Int) (*models.MarketSummary, er
return models.GetMarketSummaryFromContractModel(res, marketID, block.Time), nil
}
+// getMarketSummary is used to get market summary using Forwarder contract
+func (s *Service) getMarketSummaryMultiCall(marketID *big.Int) (res perpsMarket.IPerpsMarketModuleMarketSummary, err error) {
+ getMarketSummaryCallData, err := s.rawPerpsContract.GetCallDataMarketSummary(marketID)
+ if err != nil {
+ return res, err
+ }
+
+ callSummary := forwarder.TrustedMulticallForwarderCall3Value{
+ Target: s.rawPerpsContract.Address(),
+ AllowFailure: false,
+ Value: big.NewInt(0),
+ CallData: getMarketSummaryCallData,
+ }
+
+ feedID := models.GetPriceFeedIDFromMarketID(marketID)
+ if feedID == models.UNKNOWN {
+ logger.Log().WithField("layer", "getMarketSummaryMultiCall").Errorf(
+ "market ud: %v not supported on andromeda net", marketID.String(),
+ )
+ return res, errors.GetReadContractErr(fmt.Errorf("market %v not supported", marketID.String()), "rawForwarder", "Aggregate3Value")
+ }
+
+ fulfillOracleQueryCallData, err := s.rawERC7412.GetCallFulfillOracleQuery(feedID.String())
+ if err != nil {
+ return res, err
+ }
+
+ callFulfill := forwarder.TrustedMulticallForwarderCall3Value{
+ Target: s.rawERC7412.Address(),
+ AllowFailure: false,
+ Value: big.NewInt(1),
+ CallData: fulfillOracleQueryCallData,
+ }
+
+ call, err := s.rawForwarder.Aggregate3Value([]forwarder.TrustedMulticallForwarderCall3Value{callFulfill, callSummary})
+ if err != nil {
+ return res, err
+ }
+
+ if len(call) != 2 {
+ logger.Log().WithField("layer", "getMarketSummaryMultiCall").Errorf("received %v from rawForwarder contract, expected 2", len(call))
+ return res, errors.GetReadContractErr(fmt.Errorf("invalid call"), "rawForwarder", "Aggregate3Value")
+ }
+
+ if !call[0].Success {
+ logger.Log().WithField("layer", "getMarketSummaryMultiCall").Error("call to erc7412 unsuccessful")
+ return res, errors.GetReadContractErr(fmt.Errorf("invalid call to erc7412"), "rawForwarder", "Aggregate3Value")
+ }
+
+ if !call[1].Success {
+ logger.Log().WithField("layer", "getMarketSummaryMultiCall").Error("call to erc7412 unsuccessful")
+ return res, errors.GetReadContractErr(fmt.Errorf("invalid call to perps market"), "rawForwarder", "Aggregate3Value")
+ }
+
+ unpackedSummary, err := s.rawPerpsContract.UnpackGetMarketSummary(call[1].ReturnData)
+ if err != nil {
+ return res, err
+ }
+
+ return *unpackedSummary, nil
+}
+
+// getMarketSummary is used to get market summary straight from the perps contract
+func (s *Service) getMarketSummary(marketID *big.Int) (res perpsMarket.IPerpsMarketModuleMarketSummary, err error) {
+ res, err = s.perpsMarket.GetMarketSummary(nil, marketID)
+ if err != nil {
+ if err.Error() == "execution reverted" {
+ logger.Log().WithField("layer", "Service-GetMarketSummary").Errorf("contract error, market does not exist")
+ err = errors.GetInvalidArgumentErr("market does not exist")
+ } else {
+ logger.Log().WithField("layer", "Service-GetMarketSummary").Errorf("error from the contract: %v", err.Error())
+ err = errors.GetReadContractErr(err, "perpsMarket", "getMarketSummary")
+ }
+ }
+
+ return res, err
+}
+
func (s *Service) GetMarketIDs() ([]*big.Int, error) {
res, err := s.perpsMarket.GetMarkets(nil)
if err != nil {
@@ -246,7 +332,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 +345,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..834f37f 100644
--- a/services/marketData_test.go
+++ b/services/marketData_test.go
@@ -1,18 +1,20 @@
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"
+ "github.com/gateway-fm/perpsv3-Go/config"
"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 +25,10 @@ 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)
+ conf := config.GetBaseAndromedaDefaultConfig(rpc)
+
+ coreC, _ := core.NewCore(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient)
+ perps, _ := perpsMarket.NewPerpsMarket(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient)
want := &models.MarketUpdate{
MarketID: 200,
@@ -63,7 +66,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, conf, coreC, perps)
res, err := s.RetrieveMarketUpdates(tt.startBlock, &tt.endBlock)
require.NoError(t, err)
@@ -88,9 +91,10 @@ 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)
+ conf := config.GetBaseAndromedaDefaultConfig(rpc)
+
+ coreC, _ := core.NewCore(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient)
+ perps, _ := perpsMarket.NewPerpsMarket(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient)
price := new(big.Int)
price.SetString("26050583159510000000000", 10)
@@ -131,7 +135,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, conf, coreC, perps)
res, err := s.RetrieveMarketUpdatesBig(tt.startBlock, &tt.endBlock)
require.NoError(t, err)
@@ -156,11 +160,12 @@ 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)
+ conf := config.GetBaseAndromedaDefaultConfig(rpc)
+
+ 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, conf, coreC, perps)
_, err := s.RetrieveMarketUpdatesLimit(20000)
@@ -175,11 +180,12 @@ 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)
+ conf := config.GetBaseAndromedaDefaultConfig(rpc)
- s := NewService(rpcClient, coreC, 11664658, spot, 10875051, perps, 12708889)
+ coreC, _ := core.NewCore(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient)
+ perps, _ := perpsMarket.NewPerpsMarket(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient)
+
+ s, _ := NewService(rpcClient, conf, coreC, perps)
_, err := s.RetrieveMarketUpdatesBigLimit(20000)
@@ -194,9 +200,10 @@ 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)
+ conf := config.GetBaseAndromedaDefaultConfig(rpc)
+
+ coreC, _ := core.NewCore(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient)
+ perps, _ := perpsMarket.NewPerpsMarket(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient)
testCases := []struct {
name string
@@ -234,7 +241,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, conf, coreC, perps)
res, err := s.GetMarketMetadata(tt.marketID)
@@ -257,9 +264,10 @@ 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)
+ conf := config.GetBaseAndromedaDefaultConfig(rpc)
+
+ coreC, _ := core.NewCore(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient)
+ perps, _ := perpsMarket.NewPerpsMarket(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient)
testCases := []struct {
name string
@@ -286,7 +294,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, conf, coreC, perps)
res, err := s.GetMarketSummary(tt.marketID)
@@ -316,9 +324,10 @@ 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)
+ conf := config.GetBaseAndromedaDefaultConfig(rpc)
+
+ coreC, _ := core.NewCore(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient)
+ perps, _ := perpsMarket.NewPerpsMarket(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient)
testCases := []struct {
name string
@@ -332,7 +341,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, conf, coreC, perps)
res, err := s.GetMarketIDs()
@@ -354,9 +363,10 @@ 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)
+ conf := config.GetBaseAndromedaDefaultConfig(rpc)
+
+ coreC, _ := core.NewCore(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient)
+ perps, _ := perpsMarket.NewPerpsMarket(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient)
testCases := []struct {
name string
@@ -374,7 +384,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, conf, coreC, perps)
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..f4a3d9d 100644
--- a/services/orders_test.go
+++ b/services/orders_test.go
@@ -1,6 +1,7 @@
package services
import (
+ "github.com/gateway-fm/perpsv3-Go/config"
"log"
"math/big"
"os"
@@ -8,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/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 +24,10 @@ 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)
+ conf := config.GetBaseAndromedaDefaultConfig(rpc)
+
+ coreC, _ := core.NewCore(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient)
+ perps, _ := perpsMarket.NewPerpsMarket(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient)
sizeDelta := new(big.Int)
sizeDelta.SetString("-500000000000000000", 10)
@@ -70,7 +72,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, conf, coreC, perps)
res, err := s.RetrieveOrders(tt.startBlock, &tt.endBlock)
if err != nil {
@@ -100,11 +102,12 @@ 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)
+ conf := config.GetBaseAndromedaDefaultConfig(rpc)
+
+ 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, conf, coreC, perps)
_, err := s.RetrieveOrdersLimit(20000)
diff --git a/services/positions.go b/services/positions.go
index 7ea55c8..5b101ad 100644
--- a/services/positions.go
+++ b/services/positions.go
@@ -2,6 +2,10 @@ package services
import (
"context"
+ "fmt"
+ "github.com/ethereum/go-ethereum/core/types"
+ "github.com/gateway-fm/perpsv3-Go/config"
+ "github.com/gateway-fm/perpsv3-Go/contracts/forwarder"
"math/big"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
@@ -30,6 +34,78 @@ func (s *Service) GetPosition(accountID *big.Int, marketID *big.Int) (*models.Po
opts := &bind.CallOpts{BlockNumber: big.NewInt(int64(latest))}
+ switch s.chainID {
+ case config.OptimismGoerli:
+ return s.getPosition(opts, accountID, marketID, block)
+ case config.BaseAndromeda:
+ return s.getPositionMultiCall(opts, accountID, marketID, block)
+ default:
+ return nil, errors.GetInvalidArgumentErr("chain id not supported for GetMarketSummary method")
+ }
+}
+
+func (s *Service) getPositionMultiCall(opts *bind.CallOpts, accountID *big.Int, marketID *big.Int, block *types.Header) (res *models.Position, err error) {
+ getOpenPositionCallData, err := s.rawPerpsContract.GetCallDataOpenPosition(marketID, accountID)
+ if err != nil {
+ return res, err
+ }
+
+ callPostion := forwarder.TrustedMulticallForwarderCall3Value{
+ Target: s.rawPerpsContract.Address(),
+ AllowFailure: false,
+ Value: big.NewInt(0),
+ CallData: getOpenPositionCallData,
+ }
+
+ feedID := models.GetPriceFeedIDFromMarketID(marketID)
+ if feedID == models.UNKNOWN {
+ logger.Log().WithField("layer", "getPositionMultiCall").Errorf(
+ "market ud: %v not supported on andromeda net", marketID.String(),
+ )
+ return res, errors.GetReadContractErr(fmt.Errorf("market %v not supported", marketID.String()), "rawForwarder", "Aggregate3Value")
+ }
+
+ fulfillOracleQueryCallData, err := s.rawERC7412.GetCallFulfillOracleQuery(feedID.String())
+ if err != nil {
+ return res, err
+ }
+
+ callFulfill := forwarder.TrustedMulticallForwarderCall3Value{
+ Target: s.rawERC7412.Address(),
+ AllowFailure: false,
+ Value: big.NewInt(1),
+ CallData: fulfillOracleQueryCallData,
+ }
+
+ call, err := s.rawForwarder.Aggregate3Value([]forwarder.TrustedMulticallForwarderCall3Value{callFulfill, callPostion})
+ if err != nil {
+ return res, err
+ }
+
+ if len(call) != 2 {
+ logger.Log().WithField("layer", "getPositionMultiCall").Errorf("received %v from rawForwarder contract, expected 2", len(call))
+ return res, errors.GetReadContractErr(fmt.Errorf("invalid call"), "rawForwarder", "Aggregate3Value")
+ }
+
+ if !call[0].Success {
+ logger.Log().WithField("layer", "getPositionMultiCall").Error("call to perps unsuccessful")
+ return res, errors.GetReadContractErr(fmt.Errorf("invalid call to erc7412"), "rawForwarder", "Aggregate3Value")
+ }
+
+ if !call[1].Success {
+ logger.Log().WithField("layer", "getPositionMultiCall").Error("call to erc7412 unsuccessful")
+ return res, errors.GetReadContractErr(fmt.Errorf("invalid call to perps market"), "rawForwarder", "Aggregate3Value")
+ }
+
+ positionContract, err := s.rawPerpsContract.UnpackOpenPosition(call[1].ReturnData)
+ if err != nil {
+ return res, err
+ }
+
+ return models.GetPositionFromContract(positionContract, block.Number.Uint64(), block.Time), nil
+}
+
+func (s *Service) getPosition(opts *bind.CallOpts, accountID *big.Int, marketID *big.Int, block *types.Header) (*models.Position, error) {
positionContract, err := s.perpsMarket.GetOpenPosition(opts, accountID, marketID)
if err != nil {
logger.Log().WithField("layer", "Service-GetPositions").Errorf(
diff --git a/services/positions_test.go b/services/positions_test.go
index 38a9a17..275ac89 100644
--- a/services/positions_test.go
+++ b/services/positions_test.go
@@ -2,6 +2,7 @@ package services
import (
"fmt"
+ "github.com/gateway-fm/perpsv3-Go/config"
"log"
"math/big"
"os"
@@ -9,11 +10,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 +25,10 @@ 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)
+ conf := config.GetBaseAndromedaDefaultConfig(rpc)
+
+ coreC, _ := core.NewCore(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient)
+ perps, _ := perpsMarket.NewPerpsMarket(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient)
testCases := []struct {
name string
@@ -53,7 +55,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, conf, coreC, perps)
res, err := s.GetPosition(tt.accountID, tt.marketID)
diff --git a/services/service.go b/services/service.go
index d4245a2..1adbd67 100644
--- a/services/service.go
+++ b/services/service.go
@@ -2,18 +2,19 @@ package services
import (
"context"
+ "github.com/ethereum/go-ethereum/common"
+ "github.com/gateway-fm/perpsv3-Go/config"
+ "github.com/gateway-fm/perpsv3-Go/rawContracts"
"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
@@ -106,34 +107,62 @@ type IService interface {
// Service is an implementation of IService interface
type Service struct {
- rpcClient *ethclient.Client
- core *coreGoerli.CoreGoerli
- coreFirstBlock uint64
- spotMarket *spotMarketGoerli.SpotMarketGoerli
- spotMarketFirstBlock uint64
- perpsMarket *perpsMarketGoerli.PerpsMarketGoerli
+ chainID config.ChainID
+ rpcClient *ethclient.Client
+
+ core *core.Core
+ coreFirstBlock uint64
+
+ perpsMarket *perpsMarket.PerpsMarket
+ rawPerpsContract rawContracts.IRawPerpsContract
perpsMarketFirstBlock uint64
+
+ rawERC7412 rawContracts.IRawERC7412Contract
+ rawForwarder rawContracts.IRawForwarderContract
}
// NewService is used to get instance of Service
func NewService(
rpc *ethclient.Client,
- core *coreGoerli.CoreGoerli,
- coreFirstBlock uint64,
- spotMarket *spotMarketGoerli.SpotMarketGoerli,
- spotMarketFirstBlock uint64,
- perpsMarket *perpsMarketGoerli.PerpsMarketGoerli,
- perpsMarketFirstBlock uint64,
-) IService {
- return &Service{
- rpcClient: rpc,
- core: core,
- coreFirstBlock: coreFirstBlock,
- spotMarket: spotMarket,
- spotMarketFirstBlock: spotMarketFirstBlock,
- perpsMarket: perpsMarket,
- perpsMarketFirstBlock: perpsMarketFirstBlock,
+ conf *config.PerpsvConfig,
+ core *core.Core,
+ perps *perpsMarket.PerpsMarket,
+) (IService, error) {
+ s := &Service{
+ chainID: conf.ChainID,
+ rpcClient: rpc,
+
+ core: core,
+ coreFirstBlock: conf.FirstContractBlocks.Core,
+
+ perpsMarket: perps,
+ perpsMarketFirstBlock: conf.FirstContractBlocks.PerpsMarket,
+ }
+
+ rawPerpsContract, err := rawContracts.NewPerps(common.HexToAddress(conf.ContractAddresses.PerpsMarket), rpc)
+ if err != nil {
+ return nil, err
}
+
+ s.rawPerpsContract = rawPerpsContract
+
+ if conf.ChainID == config.BaseAndromeda {
+ rawERC7412, err := rawContracts.NewERC7412(common.HexToAddress(conf.ContractAddresses.ERC7412), rpc)
+ if err != nil {
+ return nil, err
+ }
+
+ s.rawERC7412 = rawERC7412
+
+ rawForwarder, err := rawContracts.NewForwarder(common.HexToAddress(conf.ContractAddresses.Forwarder), rpc)
+ if err != nil {
+ return nil, err
+ }
+
+ s.rawForwarder = rawForwarder
+ }
+
+ return s, nil
}
// getIterationsForLimitQuery is used to get iterations of querying data from the contract with given rpc limit for blocks
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..2e4e95e 100644
--- a/services/trades_test.go
+++ b/services/trades_test.go
@@ -1,6 +1,7 @@
package services
import (
+ "github.com/gateway-fm/perpsv3-Go/config"
"log"
"math/big"
"os"
@@ -8,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/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 +24,10 @@ 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)
+ conf := config.GetBaseAndromedaDefaultConfig(rpc)
+
+ coreC, _ := core.NewCore(common.HexToAddress("0x76490713314fCEC173f44e99346F54c6e92a8E42"), rpcClient)
+ perps, _ := perpsMarket.NewPerpsMarket(common.HexToAddress("0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b"), rpcClient)
fillPrice := new(big.Int)
fillPrice.SetString("26050753699652653732215", 10)
@@ -87,7 +89,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, conf, coreC, perps)
res, err := s.RetrieveTrades(tt.startBlock, &tt.endBlock)
require.NoError(t, err)
@@ -127,11 +129,12 @@ 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)
+ conf := config.GetBaseAndromedaDefaultConfig(rpc)
+
+ 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, conf, coreC, perps)
res, err := s.RetrieveTradesLimit(20000)
diff --git a/utils/abiCoder/abiCoder.go b/utils/abiCoder/abiCoder.go
new file mode 100644
index 0000000..cd4bc3d
--- /dev/null
+++ b/utils/abiCoder/abiCoder.go
@@ -0,0 +1,49 @@
+package abiCoder
+
+import (
+ "github.com/ethereum/go-ethereum/accounts/abi"
+ "github.com/ethereum/go-ethereum/crypto"
+)
+
+// Coder is an ABI coder struct
+type Coder struct {
+ args abi.Arguments
+}
+
+// NewCoder is used to get new Coder instance
+func NewCoder(types []string) (*Coder, error) {
+ c := &Coder{}
+
+ args := []abi.Argument{}
+
+ for _, s := range types {
+ t, err := abi.NewType(s, "", nil)
+ if err != nil {
+ return nil, err
+ }
+
+ args = append(args, abi.Argument{Type: t})
+ }
+
+ c.args = args
+
+ return c, nil
+}
+
+// Bytes is used to get ABI encoded bytes that can be decoded by the smart-contract
+func (c *Coder) Bytes(args ...interface{}) ([]byte, error) {
+ return c.args.Pack(args...)
+}
+
+// KeccakHash is used to get ABI byte32 type hash from given args
+func (c *Coder) KeccakHash(args ...interface{}) ([32]byte, error) {
+ b, err := c.args.Pack(args...)
+ if err != nil {
+ return [32]byte{}, err
+ }
+
+ hash := crypto.Keccak256(b)
+ hash32 := *abi.ConvertType(hash, new([32]byte)).(*[32]byte)
+
+ return hash32, nil
+}
diff --git a/utils/testing-contracts/perps-test/perps-market.go b/utils/testing-contracts/perps-test/perps-market.go
index 3a9a88d..6dac0fc 100644
--- a/utils/testing-contracts/perps-test/perps-market.go
+++ b/utils/testing-contracts/perps-test/perps-market.go
@@ -12,8 +12,8 @@ import (
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/ethclient"
- "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarketGoerli"
- "github.com/gateway-fm/perpsv3-Go/contracts/sUSDTGoerli"
+ "github.com/gateway-fm/perpsv3-Go/contracts/perpsMarket"
+ "github.com/gateway-fm/perpsv3-Go/contracts/sUSDT"
"github.com/gateway-fm/perpsv3-Go/pkg/logger"
)
@@ -23,9 +23,9 @@ type TestPerpsMarket struct {
TestAccount *big.Int
chainID *big.Int
rpcClient *ethclient.Client
- perpsMarket *perpsMarketGoerli.PerpsMarketGoerli
+ perpsMarket *perpsMarket.PerpsMarket
perpsMarketAddr common.Address
- snxUSDT *sUSDTGoerli.SUSDTGoerli
+ snxUSDT *sUSDT.SUSDT
}
func GetTestPerpsMarket(rpcUrl string, perpsMarketAddress string, sUSDTAddress string, chainID int) *TestPerpsMarket {
@@ -44,12 +44,12 @@ func GetTestPerpsMarket(rpcUrl string, perpsMarketAddress string, sUSDTAddress s
logger.Log().WithField("layer", "TestPerpsMarket-GetTestPerpsMarket").Fatalf("dial rpc error: %v", err.Error())
}
- perpsMarket, err := perpsMarketGoerli.NewPerpsMarketGoerli(common.HexToAddress(perpsMarketAddress), rpcClient)
+ perpsMarket, err := perpsMarket.NewPerpsMarket(common.HexToAddress(perpsMarketAddress), rpcClient)
if err != nil {
logger.Log().WithField("layer", "TestPerpsMarket-GetTestPerpsMarket").Fatalf("create perps contract err: %v", err.Error())
}
- snxUSDT, err := sUSDTGoerli.NewSUSDTGoerli(common.HexToAddress(sUSDTAddress), rpcClient)
+ snxUSDT, err := sUSDT.NewSUSDT(common.HexToAddress(sUSDTAddress), rpcClient)
if err != nil {
logger.Log().WithField("layer", "TestPerpsMarket-GetTestPerpsMarket").Fatalf("create s-usdt contract err: %v", err.Error())
}
@@ -150,16 +150,16 @@ func (m *TestPerpsMarket) GetCollateralAmount(marketIDS string) {
logger.Log().WithField("layer", "TestPerpsMarket-GetCollateralAmount").Infof("collateral amount: %v", amount.String())
}
-func (m *TestPerpsMarket) GetMaxCollateralAmount(marketIDS string) {
- marketID := m.getBig(marketIDS)
-
- amount, err := m.perpsMarket.GetMaxCollateralAmount(nil, marketID)
- if err != nil {
- logger.Log().WithField("layer", "TestPerpsMarket-GetMaxCollateralAmount").Fatalf("get max collateral amount err: %v", err.Error())
- }
-
- logger.Log().WithField("layer", "TestPerpsMarket-GetMaxCollateralAmount").Infof("max collateral amount: %v", amount.String())
-}
+//func (m *TestPerpsMarket) GetMaxCollateralAmount(marketIDS string) {
+// marketID := m.getBig(marketIDS)
+//
+// amount, err := m.perpsMarket.GetMaxCollateralAmount(nil, marketID)
+// if err != nil {
+// logger.Log().WithField("layer", "TestPerpsMarket-GetMaxCollateralAmount").Fatalf("get max collateral amount err: %v", err.Error())
+// }
+//
+// logger.Log().WithField("layer", "TestPerpsMarket-GetMaxCollateralAmount").Infof("max collateral amount: %v", amount.String())
+//}
func (m *TestPerpsMarket) ModifyCollateral(marketIDS string, amountS string) {
aut := m.getAut("ModifyCollateral")
@@ -188,7 +188,7 @@ func (m *TestPerpsMarket) CommitOrder(marketIDS string, sizeS string) {
logger.Log().WithField("layer", "TestPerpsMarket-CommitOrder").Infof("index price: %v", summary.IndexPrice.String())
- req := perpsMarketGoerli.AsyncOrderOrderCommitmentRequest{
+ req := perpsMarket.AsyncOrderOrderCommitmentRequest{
MarketId: marketID,
AccountId: m.TestAccount,
SizeDelta: size,
diff --git a/utils/testing-contracts/perps-test/settle_order.go b/utils/testing-contracts/perps-test/settle_order.go
index 2a2e99d..2cdef66 100644
--- a/utils/testing-contracts/perps-test/settle_order.go
+++ b/utils/testing-contracts/perps-test/settle_order.go
@@ -10,7 +10,6 @@ import (
"log"
"math/big"
"net/http"
- "strings"
"time"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
@@ -38,7 +37,7 @@ func (m *TestPerpsMarket) SettlePythOrder(accountID *big.Int, maxPythTries int,
logger.Log().WithField("layer", "TestPerpsMarket-SettlePythOrder").Fatalf("GetOrder err: %v", err)
}
- settlementTime := time.Unix(ordData.SettlementTime.Int64(), 2)
+ settlementTime := time.Unix(ordData.CommitmentTime.Int64(), 2)
if time.Now().Before(settlementTime) {
duration := time.Until(settlementTime)
logger.Log().WithField("layer", "TestPerpsMarket-SettlePythOrder").Infof("Waiting %v until order can be settled??? Not in this attempt!", duration)
@@ -50,7 +49,7 @@ func (m *TestPerpsMarket) SettlePythOrder(accountID *big.Int, maxPythTries int,
settlementStrategy := GetSettlementStrategy(int(ordData.Request.MarketId.Int64()), 2)
settlementTimeBytes := make([]byte, 8)
- binary.BigEndian.PutUint64(settlementTimeBytes, ordData.SettlementTime.Uint64())
+ binary.BigEndian.PutUint64(settlementTimeBytes, ordData.CommitmentTime.Uint64())
settlementTimeHex := hex.EncodeToString(settlementTimeBytes)
dataParam := fmt.Sprintf("0x%s%s", hex.EncodeToString(settlementStrategy.FeedID), settlementTimeHex)
@@ -97,13 +96,13 @@ func (m *TestPerpsMarket) SettlePythOrder(accountID *big.Int, maxPythTries int,
log.Printf("extra_data to string: %s", hex.EncodeToString(extraData))
- data, err := hex.DecodeString(strings.TrimPrefix(priceUpdateData.Data, "0x"))
- if err != nil {
- logger.Log().WithField("layer", "TestPerpsMarket-SettlePythOrder").Fatalf("Failed to decode hex string priceUpdateData.Data: %v", err)
- }
- aut := m.getAut("SettlePythOrder")
+ //data, err := hex.DecodeString(strings.TrimPrefix(priceUpdateData.Data, "0x"))
+ //if err != nil {
+ // logger.Log().WithField("layer", "TestPerpsMarket-SettlePythOrder").Fatalf("Failed to decode hex string priceUpdateData.Data: %v", err)
+ //}
+ aut := m.getAut("SettleOrder")
- tx, err := m.perpsMarket.SettlePythOrder(aut, data, extraData)
+ tx, err := m.perpsMarket.SettleOrder(aut, accountID)
if err != nil {
logger.Log().WithField("layer", "TestPerpsMarket-SettlePythOrder").Fatalf("SettlePythOrder: %+v", err)
}
diff --git a/utils/testing-contracts/perps-test/src/main.go b/utils/testing-contracts/perps-test/src/main.go
index 9f5b97b..804fe00 100644
--- a/utils/testing-contracts/perps-test/src/main.go
+++ b/utils/testing-contracts/perps-test/src/main.go
@@ -37,10 +37,10 @@ func main() {
// Market ID
perps.GetCollateralAmount(args[2])
perps.Close()
- case "GetMaxCollateralAmount":
- // Market ID
- perps.GetMaxCollateralAmount(args[2])
- perps.Close()
+ //case "GetMaxCollateralAmount":
+ // // Market ID
+ // perps.GetMaxCollateralAmount(args[2])
+ // perps.Close()
case "SetApproval":
// Amount
perps.SetApproval(args[2])