{
  "_format": "hh-sol-artifact-1",
  "contractName": "RateLimiter",
  "sourceName": "contracts/oapp/utils/RateLimiter.sol",
  "abi": [
    {
      "inputs": [],
      "name": "RateLimitExceeded",
      "type": "error"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "components": [
            {
              "internalType": "uint32",
              "name": "dstEid",
              "type": "uint32"
            },
            {
              "internalType": "uint256",
              "name": "limit",
              "type": "uint256"
            },
            {
              "internalType": "uint256",
              "name": "window",
              "type": "uint256"
            }
          ],
          "indexed": false,
          "internalType": "struct RateLimiter.RateLimitConfig[]",
          "name": "rateLimitConfigs",
          "type": "tuple[]"
        }
      ],
      "name": "RateLimitsChanged",
      "type": "event"
    },
    {
      "inputs": [
        {
          "internalType": "uint32",
          "name": "_dstEid",
          "type": "uint32"
        }
      ],
      "name": "getAmountCanBeSent",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "currentAmountInFlight",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "amountCanBeSent",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint32",
          "name": "dstEid",
          "type": "uint32"
        }
      ],
      "name": "rateLimits",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "amountInFlight",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "lastUpdated",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "limit",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "window",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    }
  ],
  "bytecode": "0x",
  "deployedBytecode": "0x",
  "linkReferences": {},
  "deployedLinkReferences": {}
}
