Skip to content

Commit

Permalink
fix(pg): disable polygon zkevm action transaction batching
Browse files Browse the repository at this point in the history
  • Loading branch information
RPate97 committed Apr 11, 2024
1 parent 30c88f4 commit 50162e5
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 5 deletions.
7 changes: 7 additions & 0 deletions .changeset/slow-cheetahs-perform.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@sphinx-labs/contracts': patch
'@sphinx-labs/core': patch
'@sphinx-labs/plugins': patch
---

Disable action batching on Polygon ZKEVM
47 changes: 47 additions & 0 deletions packages/contracts/src/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export type SupportedNetwork = {
legacyTx: boolean
actionGasLimitBuffer: boolean
eip2028: boolean
actionTransactionBatching: boolean
rollupStack?: {
provider: RollupProvider
type: RollupType
Expand Down Expand Up @@ -94,6 +95,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
legacyTx: false,
actionGasLimitBuffer: false,
eip2028: true,
actionTransactionBatching: true,
},
{
name: 'sepolia',
Expand Down Expand Up @@ -123,6 +125,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
legacyTx: false,
actionGasLimitBuffer: false,
eip2028: true,
actionTransactionBatching: true,
},
{
name: 'optimism',
Expand Down Expand Up @@ -152,6 +155,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
legacyTx: false,
actionGasLimitBuffer: false,
eip2028: true,
actionTransactionBatching: true,
},
{
name: 'optimism_sepolia',
Expand Down Expand Up @@ -181,6 +185,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
legacyTx: false,
actionGasLimitBuffer: false,
eip2028: true,
actionTransactionBatching: true,
},
{
name: 'arbitrum',
Expand All @@ -204,6 +209,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
legacyTx: false,
actionGasLimitBuffer: false,
eip2028: true,
actionTransactionBatching: true,
},
{
name: 'arbitrum_sepolia',
Expand All @@ -227,6 +233,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
legacyTx: false,
actionGasLimitBuffer: false,
eip2028: true,
actionTransactionBatching: true,
},
{
name: 'polygon',
Expand All @@ -250,6 +257,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
legacyTx: false,
actionGasLimitBuffer: false,
eip2028: true,
actionTransactionBatching: true,
},
{
name: 'polygon_mumbai',
Expand All @@ -273,6 +281,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
legacyTx: false,
actionGasLimitBuffer: false,
eip2028: true,
actionTransactionBatching: true,
},
{
name: 'bnb',
Expand All @@ -296,6 +305,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
legacyTx: false,
actionGasLimitBuffer: false,
eip2028: true,
actionTransactionBatching: true,
},
{
name: 'bnb_testnet',
Expand All @@ -319,6 +329,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
legacyTx: false,
actionGasLimitBuffer: false,
eip2028: true,
actionTransactionBatching: true,
},
{
name: 'gnosis',
Expand Down Expand Up @@ -348,6 +359,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
legacyTx: false,
actionGasLimitBuffer: false,
eip2028: true,
actionTransactionBatching: true,
},
{
name: 'gnosis_chiado',
Expand All @@ -372,6 +384,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
legacyTx: false,
actionGasLimitBuffer: false,
eip2028: true,
actionTransactionBatching: true,
},
{
name: 'linea',
Expand All @@ -395,6 +408,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
legacyTx: false,
actionGasLimitBuffer: false,
eip2028: true,
actionTransactionBatching: false,
},
{
name: 'linea_sepolia',
Expand All @@ -418,6 +432,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
legacyTx: false,
actionGasLimitBuffer: false,
eip2028: true,
actionTransactionBatching: false,
},
{
name: 'polygon_zkevm',
Expand Down Expand Up @@ -448,6 +463,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
legacyTx: false,
actionGasLimitBuffer: false,
eip2028: true,
actionTransactionBatching: false,
},
{
name: 'polygon_zkevm_cardona',
Expand All @@ -471,6 +487,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
legacyTx: false,
actionGasLimitBuffer: false,
eip2028: true,
actionTransactionBatching: false,
},
{
name: 'avalanche',
Expand All @@ -494,6 +511,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
legacyTx: false,
actionGasLimitBuffer: false,
eip2028: true,
actionTransactionBatching: true,
},
{
name: 'avalanche_fuji',
Expand All @@ -517,6 +535,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
legacyTx: false,
actionGasLimitBuffer: false,
eip2028: true,
actionTransactionBatching: true,
},
{
name: 'fantom',
Expand All @@ -540,6 +559,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
legacyTx: false,
actionGasLimitBuffer: false,
eip2028: true,
actionTransactionBatching: true,
},
{
name: 'fantom_testnet',
Expand All @@ -557,6 +577,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
legacyTx: false,
actionGasLimitBuffer: false,
eip2028: true,
actionTransactionBatching: true,
},
{
name: 'base',
Expand Down Expand Up @@ -586,6 +607,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
legacyTx: false,
actionGasLimitBuffer: false,
eip2028: true,
actionTransactionBatching: true,
},
{
name: 'base_sepolia',
Expand Down Expand Up @@ -615,6 +637,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
legacyTx: false,
actionGasLimitBuffer: false,
eip2028: true,
actionTransactionBatching: true,
},
{
name: 'celo',
Expand All @@ -638,6 +661,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
legacyTx: false,
actionGasLimitBuffer: false,
eip2028: true,
actionTransactionBatching: true,
},
{
name: 'celo_alfajores',
Expand All @@ -661,6 +685,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
legacyTx: false,
actionGasLimitBuffer: false,
eip2028: true,
actionTransactionBatching: true,
},
{
name: 'moonriver',
Expand All @@ -685,6 +710,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
actionGasLimitBuffer: false,
eip2028: true,
hardcodedMerkleLeafGas: (10_500_000).toString(),
actionTransactionBatching: false,
},
{
name: 'moonbeam',
Expand All @@ -709,6 +735,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
actionGasLimitBuffer: false,
eip2028: true,
hardcodedMerkleLeafGas: (10_500_000).toString(),
actionTransactionBatching: false,
},
{
name: 'moonbase_alpha',
Expand All @@ -733,6 +760,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
actionGasLimitBuffer: false,
eip2028: true,
hardcodedMerkleLeafGas: (10_500_000).toString(),
actionTransactionBatching: false,
},
{
name: 'fuse',
Expand All @@ -757,6 +785,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
queryFilterBlockLimit: 2000,
actionGasLimitBuffer: false,
eip2028: true,
actionTransactionBatching: true,
},
{
name: 'evmos',
Expand All @@ -774,6 +803,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
legacyTx: false,
actionGasLimitBuffer: false,
eip2028: true,
actionTransactionBatching: true,
},
{
name: 'evmos_testnet',
Expand All @@ -791,6 +821,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
legacyTx: false,
actionGasLimitBuffer: false,
eip2028: true,
actionTransactionBatching: true,
},
{
name: 'kava',
Expand All @@ -816,6 +847,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
queryFilterBlockLimit: 2000,
actionGasLimitBuffer: false,
eip2028: true,
actionTransactionBatching: true,
},
{
name: 'kava_testnet',
Expand All @@ -833,6 +865,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
queryFilterBlockLimit: 2000,
actionGasLimitBuffer: false,
eip2028: true,
actionTransactionBatching: true,
},
{
name: 'scroll',
Expand Down Expand Up @@ -863,6 +896,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
legacyTx: false,
actionGasLimitBuffer: false,
eip2028: true,
actionTransactionBatching: false,
},
{
name: 'scroll_sepolia',
Expand All @@ -886,6 +920,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
legacyTx: false,
actionGasLimitBuffer: false,
eip2028: true,
actionTransactionBatching: false,
},
{
name: 'rootstock',
Expand All @@ -910,6 +945,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
queryFilterBlockLimit: 2000,
actionGasLimitBuffer: true,
eip2028: true,
actionTransactionBatching: false,
},
{
name: 'rootstock_testnet',
Expand All @@ -934,6 +970,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
queryFilterBlockLimit: 2000,
actionGasLimitBuffer: true,
eip2028: true,
actionTransactionBatching: false,
},
{
name: 'zora',
Expand Down Expand Up @@ -963,6 +1000,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
provider: 'Conduit',
type: 'OP Stack',
},
actionTransactionBatching: true,
},
{
name: 'zora_sepolia',
Expand Down Expand Up @@ -992,6 +1030,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
provider: 'Conduit',
type: 'OP Stack',
},
actionTransactionBatching: true,
},
{
name: 'rari',
Expand Down Expand Up @@ -1021,6 +1060,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
provider: 'Caldera',
type: 'Arbitrum',
},
actionTransactionBatching: false,
},
{
name: 'rari_sepolia',
Expand Down Expand Up @@ -1050,6 +1090,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
provider: 'Caldera',
type: 'Arbitrum',
},
actionTransactionBatching: false,
},
{
name: 'blast_sepolia',
Expand All @@ -1073,6 +1114,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
legacyTx: false,
actionGasLimitBuffer: false,
eip2028: true,
actionTransactionBatching: true,
},
{
name: 'blast',
Expand All @@ -1096,6 +1138,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
legacyTx: false,
actionGasLimitBuffer: false,
eip2028: true,
actionTransactionBatching: true,
},
{
name: 'taiko_katla',
Expand All @@ -1113,6 +1156,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
legacyTx: false,
actionGasLimitBuffer: false,
eip2028: true,
actionTransactionBatching: true,
},
{
name: 'mode_sepolia',
Expand All @@ -1137,6 +1181,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
legacyTx: false,
actionGasLimitBuffer: false,
eip2028: true,
actionTransactionBatching: true,
},
{
name: 'mode',
Expand All @@ -1161,6 +1206,7 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
legacyTx: false,
actionGasLimitBuffer: false,
eip2028: true,
actionTransactionBatching: true,
},
{
name: 'darwinia_pangolin',
Expand All @@ -1179,5 +1225,6 @@ export const SPHINX_NETWORKS: Array<SupportedNetwork> = [
actionGasLimitBuffer: false,
eip2028: true,
hardcodedMerkleLeafGas: (11200000).toString(),
actionTransactionBatching: false,
},
]
Loading

0 comments on commit 50162e5

Please sign in to comment.