diff --git a/pyproject.toml b/pyproject.toml index 36b9e85..ab6e446 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "vertex-protocol" -version = "3.1.2" +version = "3.1.3" description = "Vertex Protocol SDK" authors = ["Jeury Mejia "] homepage = "https://vertexprotocol.com/" diff --git a/vertex_protocol/client/__init__.py b/vertex_protocol/client/__init__.py index 5ba844f..82f4e4d 100644 --- a/vertex_protocol/client/__init__.py +++ b/vertex_protocol/client/__init__.py @@ -25,32 +25,22 @@ class VertexClientMode(StrEnum): Attributes: MAINNET: For operating in Vertex's mainnet environment deployed on Arbitrum One. - BLAST_MAINNET: For operating in Vertex's mainnet environment deployed on Blast Mainnet. - MANTLE_MAINNET: For operating in Vertex's mainnet environment deployed on Mantle Mainnet. - SEI_MAINNET: For operating in Vertex's mainnet environment deployed on Sei Mainnet. - BASE_MAINNET: For operating in Vertex's mainnet environment deployed on Base Mainnet. - SONIC_MAINNET: For operating in Vertex's mainnet environment deployed on Sonic Mainnet. - ABSTRACT_MAINNET: For operating in Vertex's mainnet environment deployed on Abstract Mainnet. + BERA_MAINNET: For operating in Vertex's mainnet environment deployed on Berachain Mainnet. SEPOLIA_TESTNET: For operating in Vertex's testnet environment deployed on Arbitrum Sepolia. - BLAST_TESTNET: For operating in Vertex's testnet environment deployed on Blast Testnet. - MANTLE_TESTNET: For operating in Vertex's testnet environment deployed on Mantle Testnet. - SEI_TESTNET: For operating in Vertex's testnet environment deployed on Sei Testnet. - BASE_TESTNET: For operating in Vertex's testnet environment deployed on Base Testnet. - SONIC_TESTNET: For operating in Vertex's testnet environment deployed on Sonic Testnet. - ABSTRACT_TESTNET: For operating in Vertex's testnet environment deployed on Abstract Testnet. + BERA_TESTNET: For operating in Vertex's testnet environment deployed on Bera Testnet. DEVNET: For local development. @@ -65,6 +55,7 @@ class VertexClientMode(StrEnum): BASE_MAINNET = "base-mainnet" SONIC_MAINNET = "sonic-mainnet" ABSTRACT_MAINNET = "abstract-mainnet" + BERA_MAINNET = "bera-mainnet" # testnet SEPOLIA_TESTNET = "sepolia-testnet" @@ -74,6 +65,7 @@ class VertexClientMode(StrEnum): BASE_TESTNET = "base-testnet" SONIC_TESTNET = "sonic-testnet" ABSTRACT_TESTNET = "abstract-testnet" + BERA_TESTNET = "bera-testnet" # dev DEVNET = "devnet" @@ -264,6 +256,12 @@ def client_mode_to_setup( VertexBackendURL.ABSTRACT_MAINNET_TRIGGER.value, VertexNetwork.ABSTRACT_MAINNET.value, ), + VertexClientMode.BERA_MAINNET: ( + VertexBackendURL.BERA_MAINNET_GATEWAY.value, + VertexBackendURL.BERA_MAINNET_INDEXER.value, + VertexBackendURL.BERA_MAINNET_TRIGGER.value, + VertexNetwork.BERA_MAINNET.value, + ), VertexClientMode.SEPOLIA_TESTNET: ( VertexBackendURL.SEPOLIA_TESTNET_GATEWAY.value, VertexBackendURL.SEPOLIA_TESTNET_INDEXER.value, @@ -306,6 +304,12 @@ def client_mode_to_setup( VertexBackendURL.ABSTRACT_TESTNET_TRIGGER.value, VertexNetwork.ABSTRACT_TESTNET.value, ), + VertexClientMode.BERA_TESTNET: ( + VertexBackendURL.BERA_TESTNET_GATEWAY.value, + VertexBackendURL.BERA_TESTNET_INDEXER.value, + VertexBackendURL.BERA_TESTNET_TRIGGER.value, + VertexNetwork.BERA_TESTNET.value, + ), VertexClientMode.DEVNET: ( VertexBackendURL.DEVNET_GATEWAY.value, VertexBackendURL.DEVNET_INDEXER.value, diff --git a/vertex_protocol/contracts/deployments/deployment.beraMainnet.json b/vertex_protocol/contracts/deployments/deployment.beraMainnet.json new file mode 100644 index 0000000..186b414 --- /dev/null +++ b/vertex_protocol/contracts/deployments/deployment.beraMainnet.json @@ -0,0 +1,15 @@ +{ + "publicNodeUrl": "https://rpc.berachain.com", + "explorerUrl": "https://berascan.com", + "startBlock": 1045097, + "deployer": "0xCd55Efc131BEBB66Dd3D68cbda0657eadBDc214D", + "quote": "0xFCBD14DC51f0A4d49d5E53C2E0950e0bC26d0Dce", + "querier": "0xc4002068DEa1Ae3206Ef9CC7fE3fd672934cf9b4", + "clearinghouse": "0x9F90b17E7134aF112C15437Ec4521E4541156036", + "endpoint": "0xACda13Df56ab92A244239f4E2ad291657Ac9C5f2", + "spotEngine": "0x03aAD14233084c1378b81Ca45783b28aacf186BA", + "perpEngine": "0xeba84dbaAeC229dCae114C1a22D9868aB45B87e0", + "vrtxAirdrop": "0x0000000000000000000000000000000000000000", + "vrtxStaking": "0x0000000000000000000000000000000000000000", + "foundationRewardsAirdrop": "0x0000000000000000000000000000000000000000" +} diff --git a/vertex_protocol/contracts/deployments/deployment.beraTestnet.json b/vertex_protocol/contracts/deployments/deployment.beraTestnet.json new file mode 100644 index 0000000..ee5bc75 --- /dev/null +++ b/vertex_protocol/contracts/deployments/deployment.beraTestnet.json @@ -0,0 +1,15 @@ +{ + "publicNodeUrl": "https://bartio.rpc.berachain.com", + "explorerUrl": "https://bartio.beratrail.io", + "startBlock": 6331259, + "deployer": "0x3c06e307BA6Ab81E8Ff6661c1559ce8027744AE5", + "quote": "0xA7Fcb606611358afa388b6bd23b3B2F2c6abEd82", + "querier": "0xae557AEf1C7290252BA390589C717b9355017fD4", + "clearinghouse": "0xf72BE10454B2fB514A2639da885045C89e3EB693", + "endpoint": "0xDFA3926296eaAc8E33c9798836Eae7e8CA1B02FB", + "spotEngine": "0x9D37c59380BA015cF0c115fB89ac6238B96c868E", + "perpEngine": "0x4597CFdd371239a99477Cdabf9cF0B23fDf559B4", + "vrtxAirdrop": "0x0000000000000000000000000000000000000000", + "vrtxStaking": "0x0000000000000000000000000000000000000000", + "foundationRewardsAirdrop": "0x0000000000000000000000000000000000000000" +} diff --git a/vertex_protocol/contracts/types.py b/vertex_protocol/contracts/types.py index 055a000..8b1e4c5 100644 --- a/vertex_protocol/contracts/types.py +++ b/vertex_protocol/contracts/types.py @@ -18,6 +18,7 @@ class VertexNetwork(StrEnum): BASE_MAINNET = "baseMainnet" SONIC_MAINNET = "sonicMainnet" ABSTRACT_MAINNET = "abstractMainnet" + BERA_MAINNET = "beraMainnet" # testnet ARBITRUM_SEPOLIA = "arbitrumSepolia" @@ -27,6 +28,7 @@ class VertexNetwork(StrEnum): BASE_TESTNET = "baseTestnet" SONIC_TESTNET = "sonicTestnet" ABSTRACT_TESTNET = "abstractTestnet" + BERA_TESTNET = "beraTestnet" # dev HARDHAT = "localhost" diff --git a/vertex_protocol/utils/backend.py b/vertex_protocol/utils/backend.py index fcb66a5..ff4c150 100644 --- a/vertex_protocol/utils/backend.py +++ b/vertex_protocol/utils/backend.py @@ -37,6 +37,10 @@ class VertexBackendURL(StrEnum): ABSTRACT_MAINNET_INDEXER = "https://archive.abstract-prod.vertexprotocol.com/v1" ABSTRACT_MAINNET_TRIGGER = "https://trigger.abstract-prod.vertexprotocol.com/v1" + BERA_MAINNET_GATEWAY = "https://gateway.bera-prod.vertexprotocol.com/v1" + BERA_MAINNET_INDEXER = "https://archive.bera-prod.vertexprotocol.com/v1" + BERA_MAINNET_TRIGGER = "https://trigger.bera-prod.vertexprotocol.com/v1" + # testnet SEPOLIA_TESTNET_GATEWAY = "https://gateway.sepolia-test.vertexprotocol.com/v1" SEPOLIA_TESTNET_INDEXER = "https://archive.sepolia-test.vertexprotocol.com/v1" @@ -66,6 +70,10 @@ class VertexBackendURL(StrEnum): ABSTRACT_TESTNET_INDEXER = "https://archive.abstract-test.vertexprotocol.com/v1" ABSTRACT_TESTNET_TRIGGER = "https://trigger.abstract-test.vertexprotocol.com/v1" + BERA_TESTNET_GATEWAY = "https://gateway.bera-test.vertexprotocol.com/v1" + BERA_TESTNET_INDEXER = "https://archive.bera-test.vertexprotocol.com/v1" + BERA_TESTNET_TRIGGER = "https://trigger.bera-test.vertexprotocol.com/v1" + # dev DEVNET_GATEWAY = "http://localhost:80" DEVNET_INDEXER = "http://localhost:8000"