Calc_ABI.ts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. export default [
  2. {
  3. "inputs": [
  4. {
  5. "internalType": "uint256",
  6. "name": "num1",
  7. "type": "uint256"
  8. },
  9. {
  10. "internalType": "uint24",
  11. "name": "fee",
  12. "type": "uint24"
  13. }
  14. ],
  15. "name": "calc1",
  16. "outputs": [
  17. {
  18. "internalType": "uint256",
  19. "name": "rst1",
  20. "type": "uint256"
  21. }
  22. ],
  23. "stateMutability": "view",
  24. "type": "function"
  25. },
  26. {
  27. "inputs": [
  28. {
  29. "internalType": "uint256",
  30. "name": "num2",
  31. "type": "uint256"
  32. },
  33. {
  34. "internalType": "uint24",
  35. "name": "fee",
  36. "type": "uint24"
  37. }
  38. ],
  39. "name": "calc2",
  40. "outputs": [
  41. {
  42. "internalType": "uint256",
  43. "name": "rst2",
  44. "type": "uint256"
  45. }
  46. ],
  47. "stateMutability": "view",
  48. "type": "function"
  49. },
  50. {
  51. "inputs": [
  52. {
  53. "internalType": "address",
  54. "name": "tokenA",
  55. "type": "address"
  56. },
  57. {
  58. "internalType": "uint256",
  59. "name": "amountA",
  60. "type": "uint256"
  61. },
  62. {
  63. "internalType": "address",
  64. "name": "tokenB",
  65. "type": "address"
  66. },
  67. {
  68. "internalType": "uint24",
  69. "name": "fee",
  70. "type": "uint24"
  71. }
  72. ],
  73. "name": "getQuote",
  74. "outputs": [
  75. {
  76. "internalType": "uint256",
  77. "name": "amountB",
  78. "type": "uint256"
  79. }
  80. ],
  81. "stateMutability": "view",
  82. "type": "function"
  83. }
  84. ]