[
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "agentVault",
        "type": "address"
      },
      {
        "indexed": true,
        "internalType": "address",
        "name": "minter",
        "type": "address"
      },
      {
        "indexed": true,
        "internalType": "uint256",
        "name": "collateralReservationId",
        "type": "uint256"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "reservedAmountUBA",
        "type": "uint256"
      }
    ],
    "name": "CollateralReservationDeleted",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "agentVault",
        "type": "address"
      },
      {
        "indexed": true,
        "internalType": "address",
        "name": "minter",
        "type": "address"
      },
      {
        "indexed": true,
        "internalType": "uint256",
        "name": "collateralReservationId",
        "type": "uint256"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "valueUBA",
        "type": "uint256"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "feeUBA",
        "type": "uint256"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "firstUnderlyingBlock",
        "type": "uint256"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "lastUnderlyingBlock",
        "type": "uint256"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "lastUnderlyingTimestamp",
        "type": "uint256"
      },
      {
        "indexed": false,
        "internalType": "string",
        "name": "paymentAddress",
        "type": "string"
      },
      {
        "indexed": false,
        "internalType": "bytes32",
        "name": "paymentReference",
        "type": "bytes32"
      },
      {
        "indexed": false,
        "internalType": "address",
        "name": "executor",
        "type": "address"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "executorFeeNatWei",
        "type": "uint256"
      }
    ],
    "name": "CollateralReserved",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "agentVault",
        "type": "address"
      },
      {
        "indexed": false,
        "internalType": "bytes32",
        "name": "transactionHash",
        "type": "bytes32"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "depositedUBA",
        "type": "uint256"
      }
    ],
    "name": "ConfirmedClosedMintingPayment",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "agentVault",
        "type": "address"
      },
      {
        "indexed": true,
        "internalType": "uint256",
        "name": "collateralReservationId",
        "type": "uint256"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "mintedAmountUBA",
        "type": "uint256"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "agentFeeUBA",
        "type": "uint256"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "poolFeeUBA",
        "type": "uint256"
      }
    ],
    "name": "MintingExecuted",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "agentVault",
        "type": "address"
      },
      {
        "indexed": true,
        "internalType": "address",
        "name": "minter",
        "type": "address"
      },
      {
        "indexed": true,
        "internalType": "uint256",
        "name": "collateralReservationId",
        "type": "uint256"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "reservedAmountUBA",
        "type": "uint256"
      }
    ],
    "name": "MintingPaymentDefault",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "agentVault",
        "type": "address"
      },
      {
        "indexed": false,
        "internalType": "bool",
        "name": "mintFromFreeUnderlying",
        "type": "bool"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "mintedAmountUBA",
        "type": "uint256"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "depositedAmountUBA",
        "type": "uint256"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "poolFeeUBA",
        "type": "uint256"
      }
    ],
    "name": "SelfMint",
    "type": "event"
  },
  {
    "inputs": [
      {
        "internalType": "uint256",
        "name": "_lots",
        "type": "uint256"
      }
    ],
    "name": "collateralReservationFee",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "_reservationFeeNATWei",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint256",
        "name": "_collateralReservationId",
        "type": "uint256"
      }
    ],
    "name": "collateralReservationInfo",
    "outputs": [
      {
        "components": [
          {
            "internalType": "uint64",
            "name": "collateralReservationId",
            "type": "uint64"
          },
          {
            "internalType": "address",
            "name": "agentVault",
            "type": "address"
          },
          {
            "internalType": "address",
            "name": "minter",
            "type": "address"
          },
          {
            "internalType": "string",
            "name": "paymentAddress",
            "type": "string"
          },
          {
            "internalType": "bytes32",
            "name": "paymentReference",
            "type": "bytes32"
          },
          {
            "internalType": "uint256",
            "name": "valueUBA",
            "type": "uint256"
          },
          {
            "internalType": "uint128",
            "name": "mintingFeeUBA",
            "type": "uint128"
          },
          {
            "internalType": "uint128",
            "name": "reservationFeeNatWei",
            "type": "uint128"
          },
          {
            "internalType": "uint16",
            "name": "poolFeeShareBIPS",
            "type": "uint16"
          },
          {
            "internalType": "uint64",
            "name": "firstUnderlyingBlock",
            "type": "uint64"
          },
          {
            "internalType": "uint64",
            "name": "lastUnderlyingBlock",
            "type": "uint64"
          },
          {
            "internalType": "uint64",
            "name": "lastUnderlyingTimestamp",
            "type": "uint64"
          },
          {
            "internalType": "address",
            "name": "executor",
            "type": "address"
          },
          {
            "internalType": "uint256",
            "name": "executorFeeNatWei",
            "type": "uint256"
          },
          {
            "internalType": "enum CollateralReservationInfo.Status",
            "name": "status",
            "type": "uint8"
          }
        ],
        "internalType": "struct CollateralReservationInfo.Data",
        "name": "",
        "type": "tuple"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "components": [
          {
            "internalType": "bytes32[]",
            "name": "merkleProof",
            "type": "bytes32[]"
          },
          {
            "components": [
              {
                "internalType": "bytes32",
                "name": "attestationType",
                "type": "bytes32"
              },
              {
                "internalType": "bytes32",
                "name": "sourceId",
                "type": "bytes32"
              },
              {
                "internalType": "uint64",
                "name": "votingRound",
                "type": "uint64"
              },
              {
                "internalType": "uint64",
                "name": "lowestUsedTimestamp",
                "type": "uint64"
              },
              {
                "components": [
                  {
                    "internalType": "bytes32",
                    "name": "transactionId",
                    "type": "bytes32"
                  },
                  {
                    "internalType": "uint256",
                    "name": "inUtxo",
                    "type": "uint256"
                  },
                  {
                    "internalType": "uint256",
                    "name": "utxo",
                    "type": "uint256"
                  }
                ],
                "internalType": "struct IPayment.RequestBody",
                "name": "requestBody",
                "type": "tuple"
              },
              {
                "components": [
                  {
                    "internalType": "uint64",
                    "name": "blockNumber",
                    "type": "uint64"
                  },
                  {
                    "internalType": "uint64",
                    "name": "blockTimestamp",
                    "type": "uint64"
                  },
                  {
                    "internalType": "bytes32",
                    "name": "sourceAddressHash",
                    "type": "bytes32"
                  },
                  {
                    "internalType": "bytes32",
                    "name": "sourceAddressesRoot",
                    "type": "bytes32"
                  },
                  {
                    "internalType": "bytes32",
                    "name": "receivingAddressHash",
                    "type": "bytes32"
                  },
                  {
                    "internalType": "bytes32",
                    "name": "intendedReceivingAddressHash",
                    "type": "bytes32"
                  },
                  {
                    "internalType": "int256",
                    "name": "spentAmount",
                    "type": "int256"
                  },
                  {
                    "internalType": "int256",
                    "name": "intendedSpentAmount",
                    "type": "int256"
                  },
                  {
                    "internalType": "int256",
                    "name": "receivedAmount",
                    "type": "int256"
                  },
                  {
                    "internalType": "int256",
                    "name": "intendedReceivedAmount",
                    "type": "int256"
                  },
                  {
                    "internalType": "bytes32",
                    "name": "standardPaymentReference",
                    "type": "bytes32"
                  },
                  {
                    "internalType": "bool",
                    "name": "oneToOne",
                    "type": "bool"
                  },
                  {
                    "internalType": "uint8",
                    "name": "status",
                    "type": "uint8"
                  }
                ],
                "internalType": "struct IPayment.ResponseBody",
                "name": "responseBody",
                "type": "tuple"
              }
            ],
            "internalType": "struct IPayment.Response",
            "name": "data",
            "type": "tuple"
          }
        ],
        "internalType": "struct IPayment.Proof",
        "name": "_payment",
        "type": "tuple"
      },
      {
        "internalType": "uint256",
        "name": "_collateralReservationId",
        "type": "uint256"
      }
    ],
    "name": "confirmClosedMintingPayment",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "components": [
          {
            "internalType": "bytes32[]",
            "name": "merkleProof",
            "type": "bytes32[]"
          },
          {
            "components": [
              {
                "internalType": "bytes32",
                "name": "attestationType",
                "type": "bytes32"
              },
              {
                "internalType": "bytes32",
                "name": "sourceId",
                "type": "bytes32"
              },
              {
                "internalType": "uint64",
                "name": "votingRound",
                "type": "uint64"
              },
              {
                "internalType": "uint64",
                "name": "lowestUsedTimestamp",
                "type": "uint64"
              },
              {
                "components": [
                  {
                    "internalType": "bytes32",
                    "name": "transactionId",
                    "type": "bytes32"
                  },
                  {
                    "internalType": "uint256",
                    "name": "inUtxo",
                    "type": "uint256"
                  },
                  {
                    "internalType": "uint256",
                    "name": "utxo",
                    "type": "uint256"
                  }
                ],
                "internalType": "struct IPayment.RequestBody",
                "name": "requestBody",
                "type": "tuple"
              },
              {
                "components": [
                  {
                    "internalType": "uint64",
                    "name": "blockNumber",
                    "type": "uint64"
                  },
                  {
                    "internalType": "uint64",
                    "name": "blockTimestamp",
                    "type": "uint64"
                  },
                  {
                    "internalType": "bytes32",
                    "name": "sourceAddressHash",
                    "type": "bytes32"
                  },
                  {
                    "internalType": "bytes32",
                    "name": "sourceAddressesRoot",
                    "type": "bytes32"
                  },
                  {
                    "internalType": "bytes32",
                    "name": "receivingAddressHash",
                    "type": "bytes32"
                  },
                  {
                    "internalType": "bytes32",
                    "name": "intendedReceivingAddressHash",
                    "type": "bytes32"
                  },
                  {
                    "internalType": "int256",
                    "name": "spentAmount",
                    "type": "int256"
                  },
                  {
                    "internalType": "int256",
                    "name": "intendedSpentAmount",
                    "type": "int256"
                  },
                  {
                    "internalType": "int256",
                    "name": "receivedAmount",
                    "type": "int256"
                  },
                  {
                    "internalType": "int256",
                    "name": "intendedReceivedAmount",
                    "type": "int256"
                  },
                  {
                    "internalType": "bytes32",
                    "name": "standardPaymentReference",
                    "type": "bytes32"
                  },
                  {
                    "internalType": "bool",
                    "name": "oneToOne",
                    "type": "bool"
                  },
                  {
                    "internalType": "uint8",
                    "name": "status",
                    "type": "uint8"
                  }
                ],
                "internalType": "struct IPayment.ResponseBody",
                "name": "responseBody",
                "type": "tuple"
              }
            ],
            "internalType": "struct IPayment.Response",
            "name": "data",
            "type": "tuple"
          }
        ],
        "internalType": "struct IPayment.Proof",
        "name": "_payment",
        "type": "tuple"
      },
      {
        "internalType": "uint256",
        "name": "_collateralReservationId",
        "type": "uint256"
      }
    ],
    "name": "executeMinting",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "_agentVault",
        "type": "address"
      },
      {
        "internalType": "uint64",
        "name": "_lots",
        "type": "uint64"
      }
    ],
    "name": "mintFromFreeUnderlying",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "components": [
          {
            "internalType": "bytes32[]",
            "name": "merkleProof",
            "type": "bytes32[]"
          },
          {
            "components": [
              {
                "internalType": "bytes32",
                "name": "attestationType",
                "type": "bytes32"
              },
              {
                "internalType": "bytes32",
                "name": "sourceId",
                "type": "bytes32"
              },
              {
                "internalType": "uint64",
                "name": "votingRound",
                "type": "uint64"
              },
              {
                "internalType": "uint64",
                "name": "lowestUsedTimestamp",
                "type": "uint64"
              },
              {
                "components": [
                  {
                    "internalType": "uint64",
                    "name": "minimalBlockNumber",
                    "type": "uint64"
                  },
                  {
                    "internalType": "uint64",
                    "name": "deadlineBlockNumber",
                    "type": "uint64"
                  },
                  {
                    "internalType": "uint64",
                    "name": "deadlineTimestamp",
                    "type": "uint64"
                  },
                  {
                    "internalType": "bytes32",
                    "name": "destinationAddressHash",
                    "type": "bytes32"
                  },
                  {
                    "internalType": "uint256",
                    "name": "amount",
                    "type": "uint256"
                  },
                  {
                    "internalType": "bytes32",
                    "name": "standardPaymentReference",
                    "type": "bytes32"
                  },
                  {
                    "internalType": "bool",
                    "name": "checkSourceAddresses",
                    "type": "bool"
                  },
                  {
                    "internalType": "bytes32",
                    "name": "sourceAddressesRoot",
                    "type": "bytes32"
                  }
                ],
                "internalType": "struct IReferencedPaymentNonexistence.RequestBody",
                "name": "requestBody",
                "type": "tuple"
              },
              {
                "components": [
                  {
                    "internalType": "uint64",
                    "name": "minimalBlockTimestamp",
                    "type": "uint64"
                  },
                  {
                    "internalType": "uint64",
                    "name": "firstOverflowBlockNumber",
                    "type": "uint64"
                  },
                  {
                    "internalType": "uint64",
                    "name": "firstOverflowBlockTimestamp",
                    "type": "uint64"
                  }
                ],
                "internalType": "struct IReferencedPaymentNonexistence.ResponseBody",
                "name": "responseBody",
                "type": "tuple"
              }
            ],
            "internalType": "struct IReferencedPaymentNonexistence.Response",
            "name": "data",
            "type": "tuple"
          }
        ],
        "internalType": "struct IReferencedPaymentNonexistence.Proof",
        "name": "_proof",
        "type": "tuple"
      },
      {
        "internalType": "uint256",
        "name": "_collateralReservationId",
        "type": "uint256"
      }
    ],
    "name": "mintingPaymentDefault",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "_agentVault",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "_lots",
        "type": "uint256"
      },
      {
        "internalType": "uint256",
        "name": "_maxMintingFeeBIPS",
        "type": "uint256"
      },
      {
        "internalType": "address payable",
        "name": "_executor",
        "type": "address"
      }
    ],
    "name": "reserveCollateral",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "_collateralReservationId",
        "type": "uint256"
      }
    ],
    "stateMutability": "payable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "components": [
          {
            "internalType": "bytes32[]",
            "name": "merkleProof",
            "type": "bytes32[]"
          },
          {
            "components": [
              {
                "internalType": "bytes32",
                "name": "attestationType",
                "type": "bytes32"
              },
              {
                "internalType": "bytes32",
                "name": "sourceId",
                "type": "bytes32"
              },
              {
                "internalType": "uint64",
                "name": "votingRound",
                "type": "uint64"
              },
              {
                "internalType": "uint64",
                "name": "lowestUsedTimestamp",
                "type": "uint64"
              },
              {
                "components": [
                  {
                    "internalType": "bytes32",
                    "name": "transactionId",
                    "type": "bytes32"
                  },
                  {
                    "internalType": "uint256",
                    "name": "inUtxo",
                    "type": "uint256"
                  },
                  {
                    "internalType": "uint256",
                    "name": "utxo",
                    "type": "uint256"
                  }
                ],
                "internalType": "struct IPayment.RequestBody",
                "name": "requestBody",
                "type": "tuple"
              },
              {
                "components": [
                  {
                    "internalType": "uint64",
                    "name": "blockNumber",
                    "type": "uint64"
                  },
                  {
                    "internalType": "uint64",
                    "name": "blockTimestamp",
                    "type": "uint64"
                  },
                  {
                    "internalType": "bytes32",
                    "name": "sourceAddressHash",
                    "type": "bytes32"
                  },
                  {
                    "internalType": "bytes32",
                    "name": "sourceAddressesRoot",
                    "type": "bytes32"
                  },
                  {
                    "internalType": "bytes32",
                    "name": "receivingAddressHash",
                    "type": "bytes32"
                  },
                  {
                    "internalType": "bytes32",
                    "name": "intendedReceivingAddressHash",
                    "type": "bytes32"
                  },
                  {
                    "internalType": "int256",
                    "name": "spentAmount",
                    "type": "int256"
                  },
                  {
                    "internalType": "int256",
                    "name": "intendedSpentAmount",
                    "type": "int256"
                  },
                  {
                    "internalType": "int256",
                    "name": "receivedAmount",
                    "type": "int256"
                  },
                  {
                    "internalType": "int256",
                    "name": "intendedReceivedAmount",
                    "type": "int256"
                  },
                  {
                    "internalType": "bytes32",
                    "name": "standardPaymentReference",
                    "type": "bytes32"
                  },
                  {
                    "internalType": "bool",
                    "name": "oneToOne",
                    "type": "bool"
                  },
                  {
                    "internalType": "uint8",
                    "name": "status",
                    "type": "uint8"
                  }
                ],
                "internalType": "struct IPayment.ResponseBody",
                "name": "responseBody",
                "type": "tuple"
              }
            ],
            "internalType": "struct IPayment.Response",
            "name": "data",
            "type": "tuple"
          }
        ],
        "internalType": "struct IPayment.Proof",
        "name": "_payment",
        "type": "tuple"
      },
      {
        "internalType": "address",
        "name": "_agentVault",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "_lots",
        "type": "uint256"
      }
    ],
    "name": "selfMint",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "components": [
          {
            "internalType": "bytes32[]",
            "name": "merkleProof",
            "type": "bytes32[]"
          },
          {
            "components": [
              {
                "internalType": "bytes32",
                "name": "attestationType",
                "type": "bytes32"
              },
              {
                "internalType": "bytes32",
                "name": "sourceId",
                "type": "bytes32"
              },
              {
                "internalType": "uint64",
                "name": "votingRound",
                "type": "uint64"
              },
              {
                "internalType": "uint64",
                "name": "lowestUsedTimestamp",
                "type": "uint64"
              },
              {
                "components": [
                  {
                    "internalType": "uint64",
                    "name": "blockNumber",
                    "type": "uint64"
                  },
                  {
                    "internalType": "uint64",
                    "name": "queryWindow",
                    "type": "uint64"
                  }
                ],
                "internalType": "struct IConfirmedBlockHeightExists.RequestBody",
                "name": "requestBody",
                "type": "tuple"
              },
              {
                "components": [
                  {
                    "internalType": "uint64",
                    "name": "blockTimestamp",
                    "type": "uint64"
                  },
                  {
                    "internalType": "uint64",
                    "name": "numberOfConfirmations",
                    "type": "uint64"
                  },
                  {
                    "internalType": "uint64",
                    "name": "lowestQueryWindowBlockNumber",
                    "type": "uint64"
                  },
                  {
                    "internalType": "uint64",
                    "name": "lowestQueryWindowBlockTimestamp",
                    "type": "uint64"
                  }
                ],
                "internalType": "struct IConfirmedBlockHeightExists.ResponseBody",
                "name": "responseBody",
                "type": "tuple"
              }
            ],
            "internalType": "struct IConfirmedBlockHeightExists.Response",
            "name": "data",
            "type": "tuple"
          }
        ],
        "internalType": "struct IConfirmedBlockHeightExists.Proof",
        "name": "_proof",
        "type": "tuple"
      },
      {
        "internalType": "uint256",
        "name": "_collateralReservationId",
        "type": "uint256"
      }
    ],
    "name": "unstickMinting",
    "outputs": [],
    "stateMutability": "payable",
    "type": "function"
  }
]
