api3dao / airseeker-v1

Airseeker maintains beacons using signed data from an Airnode HTTP Signed Data Gateway

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change Airseeker's gas strategy

metobom opened this issue · comments

Change Airseeker's gas strategy to what Nodary uses currently.

Update: Airseeker should bump dependency once this PR is released with Airnode 0.12

Update: Airnode v0.12 is released so this is not blocked anymore.

Until this #1772 merge, we can use following strategies. In short, except arbitrum, arbitrum-testnet, zksync, zksync-testnet, fulfillmentGasLimit was set to 200k. For arbitrum chains it was set to 10M. For zksync chains it was set to 20M. All gasPriceOracle attribute is same for each chain.

{
...
  "chains": {
    "1": {
      "contracts": {
        "AirnodeRrp": "0xa0AD79D995DdeeB18a14eAef56A549A04e3Aa1Bd",
        "Api3ServerV1": "0x3dEC619dc529363767dEe9E71d8dD1A5bc270D76"
      },
      "providers": { "provider_ethereum_1": { "url": "${RPC_PROVIDER_ETHEREUM_1}" } },
      "options": {
        "gasPriceOracle": [
          { "gasPriceStrategy": "providerRecommendedGasPrice", "recommendedGasPriceMultiplier": 1.1 },
          { "gasPriceStrategy": "constantGasPrice", "gasPrice": { "value": 10, "unit": "gwei" } }
        ],
        "fulfillmentGasLimit": 200000
      }
    },
    "5": {
      "contracts": {
        "AirnodeRrp": "0xa0AD79D995DdeeB18a14eAef56A549A04e3Aa1Bd",
        "Api3ServerV1": "0x3dEC619dc529363767dEe9E71d8dD1A5bc270D76"
      },
      "providers": { "provider_ethereum_goerli_testnet_1": { "url": "${RPC_PROVIDER_ETHEREUM_GOERLI_TESTNET_1}" } },
      "options": {
        "gasPriceOracle": [
          { "gasPriceStrategy": "providerRecommendedGasPrice", "recommendedGasPriceMultiplier": 1.1 },
          { "gasPriceStrategy": "constantGasPrice", "gasPrice": { "value": 10, "unit": "gwei" } }
        ],
        "fulfillmentGasLimit": 200000
      }
    },
    "10": {
      "contracts": {
        "AirnodeRrp": "0xa0AD79D995DdeeB18a14eAef56A549A04e3Aa1Bd",
        "Api3ServerV1": "0x3dEC619dc529363767dEe9E71d8dD1A5bc270D76"
      },
      "providers": { "provider_optimism_1": { "url": "${RPC_PROVIDER_OPTIMISM_1}" } },
      "options": {
        "gasPriceOracle": [
          { "gasPriceStrategy": "providerRecommendedGasPrice", "recommendedGasPriceMultiplier": 1.1 },
          { "gasPriceStrategy": "constantGasPrice", "gasPrice": { "value": 10, "unit": "gwei" } }
        ],
        "fulfillmentGasLimit": 200000
      }
    },
    "56": {
      "contracts": {
        "AirnodeRrp": "0xa0AD79D995DdeeB18a14eAef56A549A04e3Aa1Bd",
        "Api3ServerV1": "0x3dEC619dc529363767dEe9E71d8dD1A5bc270D76"
      },
      "providers": { "provider_bsc_1": { "url": "${RPC_PROVIDER_BSC_1}" } },
      "options": {
        "gasPriceOracle": [
          { "gasPriceStrategy": "providerRecommendedGasPrice", "recommendedGasPriceMultiplier": 1.1 },
          { "gasPriceStrategy": "constantGasPrice", "gasPrice": { "value": 10, "unit": "gwei" } }
        ],
        "fulfillmentGasLimit": 200000
      }
    },
    "97": {
      "contracts": {
        "AirnodeRrp": "0xa0AD79D995DdeeB18a14eAef56A549A04e3Aa1Bd",
        "Api3ServerV1": "0x3dEC619dc529363767dEe9E71d8dD1A5bc270D76"
      },
      "providers": { "provider_bsc_testnet_1": { "url": "${RPC_PROVIDER_BSC_TESTNET_1}" } },
      "options": {
        "gasPriceOracle": [
          { "gasPriceStrategy": "providerRecommendedGasPrice", "recommendedGasPriceMultiplier": 1.1 },
          { "gasPriceStrategy": "constantGasPrice", "gasPrice": { "value": 10, "unit": "gwei" } }
        ],
        "fulfillmentGasLimit": 200000
      }
    },
    "100": {
      "contracts": {
        "AirnodeRrp": "0xa0AD79D995DdeeB18a14eAef56A549A04e3Aa1Bd",
        "Api3ServerV1": "0x3dEC619dc529363767dEe9E71d8dD1A5bc270D76"
      },
      "providers": { "provider_gnosis_1": { "url": "${RPC_PROVIDER_GNOSIS_1}" } },
      "options": {
        "gasPriceOracle": [
          { "gasPriceStrategy": "providerRecommendedGasPrice", "recommendedGasPriceMultiplier": 1.1 },
          { "gasPriceStrategy": "constantGasPrice", "gasPrice": { "value": 10, "unit": "gwei" } }
        ],
        "fulfillmentGasLimit": 200000
      }
    },
    "137": {
      "contracts": {
        "AirnodeRrp": "0xa0AD79D995DdeeB18a14eAef56A549A04e3Aa1Bd",
        "Api3ServerV1": "0x3dEC619dc529363767dEe9E71d8dD1A5bc270D76"
      },
      "providers": { "provider_polygon_1": { "url": "${RPC_PROVIDER_POLYGON_1}" } },
      "options": {
        "gasPriceOracle": [
          { "gasPriceStrategy": "providerRecommendedGasPrice", "recommendedGasPriceMultiplier": 1.1 },
          { "gasPriceStrategy": "constantGasPrice", "gasPrice": { "value": 10, "unit": "gwei" } }
        ],
        "fulfillmentGasLimit": 200000
      }
    },
    "250": {
      "contracts": {
        "AirnodeRrp": "0xa0AD79D995DdeeB18a14eAef56A549A04e3Aa1Bd",
        "Api3ServerV1": "0x3dEC619dc529363767dEe9E71d8dD1A5bc270D76"
      },
      "providers": { "provider_fantom_1": { "url": "${RPC_PROVIDER_FANTOM_1}" } },
      "options": {
        "gasPriceOracle": [
          { "gasPriceStrategy": "providerRecommendedGasPrice", "recommendedGasPriceMultiplier": 1.1 },
          { "gasPriceStrategy": "constantGasPrice", "gasPrice": { "value": 10, "unit": "gwei" } }
        ],
        "fulfillmentGasLimit": 200000
      }
    },
    "280": {
      "contracts": {
        "AirnodeRrp": "0x0000000000000000000000000000000000000000",
        "Api3ServerV1": "0x9104356BB320Ab72FffbDCfe979577fc78377821"
      },
      "providers": { "provider_zksync_testnet_1": { "url": "${RPC_PROVIDER_ZKSYNC_TESTNET_1}" } },
      "options": {
        "gasPriceOracle": [
          { "gasPriceStrategy": "providerRecommendedGasPrice", "recommendedGasPriceMultiplier": 1.1 },
          { "gasPriceStrategy": "constantGasPrice", "gasPrice": { "value": 10, "unit": "gwei" } }
        ],
        "fulfillmentGasLimit": 20000000
      }
    },
    "324": {
      "contracts": {
        "AirnodeRrp": "0x0000000000000000000000000000000000000000",
        "Api3ServerV1": "0xAC26e0F627569c04DAe1B1E039B62bb5d6760Fe8"
      },
      "providers": { "provider_zksync_1": { "url": "${RPC_PROVIDER_ZKSYNC_1}" } },
      "options": {
        "gasPriceOracle": [
          { "gasPriceStrategy": "providerRecommendedGasPrice", "recommendedGasPriceMultiplier": 1.1 },
          { "gasPriceStrategy": "constantGasPrice", "gasPrice": { "value": 10, "unit": "gwei" } }
        ],
        "fulfillmentGasLimit": 20000000
      }
    },
    "420": {
      "contracts": {
        "AirnodeRrp": "0xa0AD79D995DdeeB18a14eAef56A549A04e3Aa1Bd",
        "Api3ServerV1": "0x3dEC619dc529363767dEe9E71d8dD1A5bc270D76"
      },
      "providers": { "provider_optimism_goerli_testnet_1": { "url": "${RPC_PROVIDER_OPTIMISM_GOERLI_TESTNET_1}" } },
      "options": {
        "gasPriceOracle": [
          { "gasPriceStrategy": "providerRecommendedGasPrice", "recommendedGasPriceMultiplier": 1.1 },
          { "gasPriceStrategy": "constantGasPrice", "gasPrice": { "value": 10, "unit": "gwei" } }
        ],
        "fulfillmentGasLimit": 200000
      }
    },
    "1101": {
      "contracts": {
        "AirnodeRrp": "0x0000000000000000000000000000000000000000",
        "Api3ServerV1": "0x3dEC619dc529363767dEe9E71d8dD1A5bc270D76"
      },
      "providers": { "provider_zkevm_1": { "url": "${RPC_PROVIDER_ZKEVM_1}" } },
      "options": {
        "gasPriceOracle": [
          { "gasPriceStrategy": "providerRecommendedGasPrice", "recommendedGasPriceMultiplier": 1.1 },
          { "gasPriceStrategy": "constantGasPrice", "gasPrice": { "value": 10, "unit": "gwei" } }
        ],
        "fulfillmentGasLimit": 200000
      }
    },
    "1284": {
      "contracts": {
        "AirnodeRrp": "0xa0AD79D995DdeeB18a14eAef56A549A04e3Aa1Bd",
        "Api3ServerV1": "0x3dEC619dc529363767dEe9E71d8dD1A5bc270D76"
      },
      "providers": { "provider_moonbeam_1": { "url": "${RPC_PROVIDER_MOONBEAM_1}" } },
      "options": {
        "gasPriceOracle": [
          { "gasPriceStrategy": "providerRecommendedGasPrice", "recommendedGasPriceMultiplier": 1.1 },
          { "gasPriceStrategy": "constantGasPrice", "gasPrice": { "value": 10, "unit": "gwei" } }
        ],
        "fulfillmentGasLimit": 200000
      }
    },
    "1285": {
      "contracts": {
        "AirnodeRrp": "0xa0AD79D995DdeeB18a14eAef56A549A04e3Aa1Bd",
        "Api3ServerV1": "0x3dEC619dc529363767dEe9E71d8dD1A5bc270D76"
      },
      "providers": { "provider_moonriver_1": { "url": "${RPC_PROVIDER_MOONRIVER_1}" } },
      "options": {
        "gasPriceOracle": [
          { "gasPriceStrategy": "providerRecommendedGasPrice", "recommendedGasPriceMultiplier": 1.1 },
          { "gasPriceStrategy": "constantGasPrice", "gasPrice": { "value": 10, "unit": "gwei" } }
        ],
        "fulfillmentGasLimit": 200000
      }
    },
    "1287": {
      "contracts": {
        "AirnodeRrp": "0xa0AD79D995DdeeB18a14eAef56A549A04e3Aa1Bd",
        "Api3ServerV1": "0x3dEC619dc529363767dEe9E71d8dD1A5bc270D76"
      },
      "providers": { "provider_moonbeam_testnet_1": { "url": "${RPC_PROVIDER_MOONBEAM_TESTNET_1}" } },
      "options": {
        "gasPriceOracle": [
          { "gasPriceStrategy": "providerRecommendedGasPrice", "recommendedGasPriceMultiplier": 1.1 },
          { "gasPriceStrategy": "constantGasPrice", "gasPrice": { "value": 10, "unit": "gwei" } }
        ],
        "fulfillmentGasLimit": 200000
      }
    },
    "1442": {
      "contracts": {
        "AirnodeRrp": "0x0000000000000000000000000000000000000000",
        "Api3ServerV1": "0x3dEC619dc529363767dEe9E71d8dD1A5bc270D76"
      },
      "providers": { "provider_zkevm_goerli_testnet_1": { "url": "${RPC_PROVIDER_ZKEVM_GOERLI_TESTNET_1}" } },
      "options": {
        "gasPriceOracle": [
          { "gasPriceStrategy": "providerRecommendedGasPrice", "recommendedGasPriceMultiplier": 1.1 },
          { "gasPriceStrategy": "constantGasPrice", "gasPrice": { "value": 10, "unit": "gwei" } }
        ],
        "fulfillmentGasLimit": 200000
      }
    },
    "4002": {
      "contracts": {
        "AirnodeRrp": "0xa0AD79D995DdeeB18a14eAef56A549A04e3Aa1Bd",
        "Api3ServerV1": "0x3dEC619dc529363767dEe9E71d8dD1A5bc270D76"
      },
      "providers": { "provider_fantom_testnet_1": { "url": "${RPC_PROVIDER_FANTOM_TESTNET_1}" } },
      "options": {
        "gasPriceOracle": [
          { "gasPriceStrategy": "providerRecommendedGasPrice", "recommendedGasPriceMultiplier": 1.1 },
          { "gasPriceStrategy": "constantGasPrice", "gasPrice": { "value": 10, "unit": "gwei" } }
        ],
        "fulfillmentGasLimit": 200000
      }
    },
    "10200": {
      "contracts": {
        "AirnodeRrp": "0x0000000000000000000000000000000000000000",
        "Api3ServerV1": "0x3dEC619dc529363767dEe9E71d8dD1A5bc270D76"
      },
      "providers": { "provider_gnosis_testnet_1": { "url": "${RPC_PROVIDER_GNOSIS_TESTNET_1}" } },
      "options": {
        "gasPriceOracle": [
          { "gasPriceStrategy": "providerRecommendedGasPrice", "recommendedGasPriceMultiplier": 1.1 },
          { "gasPriceStrategy": "constantGasPrice", "gasPrice": { "value": 10, "unit": "gwei" } }
        ],
        "fulfillmentGasLimit": 200000
      }
    },
    "42161": {
      "contracts": {
        "AirnodeRrp": "0xb015ACeEdD478fc497A798Ab45fcED8BdEd08924",
        "Api3ServerV1": "0x3dEC619dc529363767dEe9E71d8dD1A5bc270D76"
      },
      "providers": { "provider_arbitrum_1": { "url": "${RPC_PROVIDER_ARBITRUM_1}" } },
      "options": {
        "gasPriceOracle": [
          { "gasPriceStrategy": "providerRecommendedGasPrice", "recommendedGasPriceMultiplier": 1.1 },
          { "gasPriceStrategy": "constantGasPrice", "gasPrice": { "value": 10, "unit": "gwei" } }
        ],
        "fulfillmentGasLimit": 10000000
      }
    },
    "43113": {
      "contracts": {
        "AirnodeRrp": "0x7f5AF7a37a33898544717AAa6c35c111dCe95b28",
        "Api3ServerV1": "0x3dEC619dc529363767dEe9E71d8dD1A5bc270D76"
      },
      "providers": { "provider_avalanche_testnet_1": { "url": "${RPC_PROVIDER_AVALANCHE_TESTNET_1}" } },
      "options": {
        "gasPriceOracle": [
          { "gasPriceStrategy": "providerRecommendedGasPrice", "recommendedGasPriceMultiplier": 1.1 },
          { "gasPriceStrategy": "constantGasPrice", "gasPrice": { "value": 10, "unit": "gwei" } }
        ],
        "fulfillmentGasLimit": 200000
      }
    },
    "43114": {
      "contracts": {
        "AirnodeRrp": "0xC02Ea0f403d5f3D45a4F1d0d817e7A2601346c9E",
        "Api3ServerV1": "0x3dEC619dc529363767dEe9E71d8dD1A5bc270D76"
      },
      "providers": { "provider_avalanche_1": { "url": "${RPC_PROVIDER_AVALANCHE_1}" } },
      "options": {
        "gasPriceOracle": [
          { "gasPriceStrategy": "providerRecommendedGasPrice", "recommendedGasPriceMultiplier": 1.1 },
          { "gasPriceStrategy": "constantGasPrice", "gasPrice": { "value": 10, "unit": "gwei" } }
        ],
        "fulfillmentGasLimit": 200000
      }
    },
    "80001": {
      "contracts": {
        "AirnodeRrp": "0xa0AD79D995DdeeB18a14eAef56A549A04e3Aa1Bd",
        "Api3ServerV1": "0x3dEC619dc529363767dEe9E71d8dD1A5bc270D76"
      },
      "providers": { "provider_polygon_testnet_1": { "url": "${RPC_PROVIDER_POLYGON_TESTNET_1}" } },
      "options": {
        "gasPriceOracle": [
          { "gasPriceStrategy": "providerRecommendedGasPrice", "recommendedGasPriceMultiplier": 1.1 },
          { "gasPriceStrategy": "constantGasPrice", "gasPrice": { "value": 10, "unit": "gwei" } }
        ],
        "fulfillmentGasLimit": 200000
      }
    },
    "421613": {
      "contracts": {
        "AirnodeRrp": "0xa0AD79D995DdeeB18a14eAef56A549A04e3Aa1Bd",
        "Api3ServerV1": "0x3dEC619dc529363767dEe9E71d8dD1A5bc270D76"
      },
      "providers": { "provider_arbitrum_goerli_testnet_1": { "url": "${RPC_PROVIDER_ARBITRUM_GOERLI_TESTNET_1}" } },
      "options": {
        "gasPriceOracle": [
          { "gasPriceStrategy": "providerRecommendedGasPrice", "recommendedGasPriceMultiplier": 1.1 },
          { "gasPriceStrategy": "constantGasPrice", "gasPrice": { "value": 10, "unit": "gwei" } }
        ],
        "fulfillmentGasLimit": 10000000
      }
    },
    "11155111": {
      "contracts": {
        "AirnodeRrp": "0x2ab9f26E18B64848cd349582ca3B55c2d06f507d",
        "Api3ServerV1": "0x3dEC619dc529363767dEe9E71d8dD1A5bc270D76"
      },
      "providers": { "provider_ethereum_sepolia_testnet_1": { "url": "${RPC_PROVIDER_ETHEREUM_SEPOLIA_TESTNET_1}" } },
      "options": {
        "gasPriceOracle": [
          { "gasPriceStrategy": "providerRecommendedGasPrice", "recommendedGasPriceMultiplier": 1.1 },
          { "gasPriceStrategy": "constantGasPrice", "gasPrice": { "value": 10, "unit": "gwei" } }
        ],
        "fulfillmentGasLimit": 200000
      }
    }
  }
...
}