1
0

erc20.ts 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. export const ERC20_ABI = [
  2. // The ERC20 standard methods
  3. {
  4. "constant": true,
  5. "inputs": [
  6. {
  7. "name": "_owner",
  8. "type": "address"
  9. }
  10. ],
  11. "name": "balanceOf",
  12. "outputs": [
  13. {
  14. "name": "balance",
  15. "type": "uint256"
  16. }
  17. ],
  18. "payable": false,
  19. "stateMutability": "view",
  20. "type": "function"
  21. },
  22. {
  23. "constant": true,
  24. "inputs": [],
  25. "name": "totalSupply",
  26. "outputs": [
  27. {
  28. "name": "",
  29. "type": "uint256"
  30. }
  31. ],
  32. "payable": false,
  33. "stateMutability": "view",
  34. "type": "function"
  35. },
  36. {
  37. "constant": true,
  38. "inputs": [
  39. {
  40. "name": "_spender",
  41. "type": "address"
  42. }
  43. ],
  44. "name": "allowance",
  45. "outputs": [
  46. {
  47. "name": "",
  48. "type": "uint256"
  49. }
  50. ],
  51. "payable": false,
  52. "stateMutability": "view",
  53. "type": "function"
  54. },
  55. {
  56. "inputs": [
  57. {
  58. "name": "_spender",
  59. "type": "address"
  60. },
  61. {
  62. "name": "_value",
  63. "type": "uint256"
  64. }
  65. ],
  66. "name": "approve",
  67. "outputs": [
  68. {
  69. "name": "",
  70. "type": "bool"
  71. }
  72. ],
  73. "payable": false,
  74. "stateMutability": "nonpayable",
  75. "type": "function"
  76. },
  77. {
  78. "inputs": [
  79. {
  80. "name": "_to",
  81. "type": "address"
  82. },
  83. {
  84. "name": "_value",
  85. "type": "uint256"
  86. }
  87. ],
  88. "name": "transfer",
  89. "outputs": [
  90. {
  91. "name": "",
  92. "type": "bool"
  93. }
  94. ],
  95. "payable": false,
  96. "stateMutability": "nonpayable",
  97. "type": "function"
  98. },
  99. {
  100. "inputs": [
  101. {
  102. "name": "_from",
  103. "type": "address"
  104. },
  105. {
  106. "name": "_to",
  107. "type": "address"
  108. },
  109. {
  110. "name": "_value",
  111. "type": "uint256"
  112. }
  113. ],
  114. "name": "transferFrom",
  115. "outputs": [
  116. {
  117. "name": "",
  118. "type": "bool"
  119. }
  120. ],
  121. "payable": false,
  122. "stateMutability": "nonpayable",
  123. "type": "function"
  124. },
  125. {
  126. "anonymous": false,
  127. "inputs": [
  128. {
  129. "indexed": true,
  130. "name": "from",
  131. "type": "address"
  132. },
  133. {
  134. "indexed": true,
  135. "name": "to",
  136. "type": "address"
  137. },
  138. {
  139. "indexed": false,
  140. "name": "value",
  141. "type": "uint256"
  142. }
  143. ],
  144. "name": "Transfer",
  145. "type": "event"
  146. },
  147. {
  148. "anonymous": false,
  149. "inputs": [
  150. {
  151. "indexed": true,
  152. "name": "owner",
  153. "type": "address"
  154. },
  155. {
  156. "indexed": true,
  157. "name": "spender",
  158. "type": "address"
  159. },
  160. {
  161. "indexed": false,
  162. "name": "value",
  163. "type": "uint256"
  164. }
  165. ],
  166. "name": "Approval",
  167. "type": "event"
  168. }
  169. ];