tornadoProxyABI.json 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. [
  2. {
  3. "inputs": [
  4. {
  5. "internalType": "bytes32",
  6. "name": "_tornadoTrees",
  7. "type": "bytes32"
  8. },
  9. {
  10. "internalType": "bytes32",
  11. "name": "_governance",
  12. "type": "bytes32"
  13. },
  14. {
  15. "internalType": "contract ITornado[]",
  16. "name": "_instances",
  17. "type": "address[]"
  18. }
  19. ],
  20. "stateMutability": "nonpayable",
  21. "type": "constructor"
  22. },
  23. {
  24. "inputs": [],
  25. "name": "governance",
  26. "outputs": [
  27. {
  28. "internalType": "address",
  29. "name": "",
  30. "type": "address"
  31. }
  32. ],
  33. "stateMutability": "view",
  34. "type": "function"
  35. },
  36. {
  37. "inputs": [
  38. {
  39. "internalType": "contract ITornado",
  40. "name": "",
  41. "type": "address"
  42. }
  43. ],
  44. "name": "instances",
  45. "outputs": [
  46. {
  47. "internalType": "bool",
  48. "name": "",
  49. "type": "bool"
  50. }
  51. ],
  52. "stateMutability": "view",
  53. "type": "function"
  54. },
  55. {
  56. "inputs": [
  57. {
  58. "internalType": "bytes32",
  59. "name": "node",
  60. "type": "bytes32"
  61. }
  62. ],
  63. "name": "resolve",
  64. "outputs": [
  65. {
  66. "internalType": "address",
  67. "name": "",
  68. "type": "address"
  69. }
  70. ],
  71. "stateMutability": "view",
  72. "type": "function"
  73. },
  74. {
  75. "inputs": [],
  76. "name": "tornadoTrees",
  77. "outputs": [
  78. {
  79. "internalType": "contract ITornadoTrees",
  80. "name": "",
  81. "type": "address"
  82. }
  83. ],
  84. "stateMutability": "view",
  85. "type": "function"
  86. },
  87. {
  88. "inputs": [
  89. {
  90. "internalType": "contract ITornado",
  91. "name": "tornado",
  92. "type": "address"
  93. },
  94. {
  95. "internalType": "bytes32",
  96. "name": "commitment",
  97. "type": "bytes32"
  98. }
  99. ],
  100. "name": "deposit",
  101. "outputs": [],
  102. "stateMutability": "payable",
  103. "type": "function"
  104. },
  105. {
  106. "inputs": [
  107. {
  108. "internalType": "contract ITornado",
  109. "name": "instance",
  110. "type": "address"
  111. },
  112. {
  113. "internalType": "bool",
  114. "name": "update",
  115. "type": "bool"
  116. }
  117. ],
  118. "name": "updateInstances",
  119. "outputs": [],
  120. "stateMutability": "nonpayable",
  121. "type": "function"
  122. },
  123. {
  124. "inputs": [
  125. {
  126. "internalType": "contract ITornado",
  127. "name": "tornado",
  128. "type": "address"
  129. },
  130. {
  131. "internalType": "bytes",
  132. "name": "proof",
  133. "type": "bytes"
  134. },
  135. {
  136. "internalType": "bytes32",
  137. "name": "root",
  138. "type": "bytes32"
  139. },
  140. {
  141. "internalType": "bytes32",
  142. "name": "nullifierHash",
  143. "type": "bytes32"
  144. },
  145. {
  146. "internalType": "address payable",
  147. "name": "recipient",
  148. "type": "address"
  149. },
  150. {
  151. "internalType": "address payable",
  152. "name": "relayer",
  153. "type": "address"
  154. },
  155. {
  156. "internalType": "uint256",
  157. "name": "fee",
  158. "type": "uint256"
  159. },
  160. {
  161. "internalType": "uint256",
  162. "name": "refund",
  163. "type": "uint256"
  164. }
  165. ],
  166. "name": "withdraw",
  167. "outputs": [],
  168. "stateMutability": "payable",
  169. "type": "function"
  170. }
  171. ]