abi.js 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.executeOpportunityAbi = void 0;
  4. exports.executeOpportunityAbi = {
  5. type: "function",
  6. name: "executeOpportunity",
  7. inputs: [
  8. {
  9. name: "params",
  10. type: "tuple",
  11. internalType: "struct ExecutionParams",
  12. components: [
  13. {
  14. name: "permit",
  15. type: "tuple",
  16. internalType: "struct ISignatureTransfer.PermitBatchTransferFrom",
  17. components: [
  18. {
  19. name: "permitted",
  20. type: "tuple[]",
  21. internalType: "struct ISignatureTransfer.TokenPermissions[]",
  22. components: [
  23. {
  24. name: "token",
  25. type: "address",
  26. internalType: "address",
  27. },
  28. {
  29. name: "amount",
  30. type: "uint256",
  31. internalType: "uint256",
  32. },
  33. ],
  34. },
  35. {
  36. name: "nonce",
  37. type: "uint256",
  38. internalType: "uint256",
  39. },
  40. {
  41. name: "deadline",
  42. type: "uint256",
  43. internalType: "uint256",
  44. },
  45. ],
  46. },
  47. {
  48. name: "witness",
  49. type: "tuple",
  50. internalType: "struct ExecutionWitness",
  51. components: [
  52. {
  53. name: "buyTokens",
  54. type: "tuple[]",
  55. internalType: "struct TokenAmount[]",
  56. components: [
  57. {
  58. name: "token",
  59. type: "address",
  60. internalType: "address",
  61. },
  62. {
  63. name: "amount",
  64. type: "uint256",
  65. internalType: "uint256",
  66. },
  67. ],
  68. },
  69. {
  70. name: "executor",
  71. type: "address",
  72. internalType: "address",
  73. },
  74. {
  75. name: "targetContract",
  76. type: "address",
  77. internalType: "address",
  78. },
  79. {
  80. name: "targetCalldata",
  81. type: "bytes",
  82. internalType: "bytes",
  83. },
  84. {
  85. name: "targetCallValue",
  86. type: "uint256",
  87. internalType: "uint256",
  88. },
  89. {
  90. name: "bidAmount",
  91. type: "uint256",
  92. internalType: "uint256",
  93. },
  94. ],
  95. },
  96. ],
  97. },
  98. {
  99. name: "signature",
  100. type: "bytes",
  101. internalType: "bytes",
  102. },
  103. ],
  104. outputs: [],
  105. stateMutability: "payable",
  106. };