@near-kit-tool-box/fun 0.1.7 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (281) hide show
  1. package/dist/fun/ft/ft_balance_of_fun_json.d.ts +4 -0
  2. package/dist/fun/ft/ft_balance_of_fun_json.d.ts.map +1 -0
  3. package/dist/fun/ft/ft_balance_of_fun_json.js +9 -0
  4. package/dist/fun/ft/ft_balance_of_fun_json.js.map +1 -0
  5. package/dist/fun/ft/ft_metadata_fun_json.d.ts +4 -0
  6. package/dist/fun/ft/ft_metadata_fun_json.d.ts.map +1 -0
  7. package/dist/fun/ft/ft_metadata_fun_json.js +10 -0
  8. package/dist/fun/ft/ft_metadata_fun_json.js.map +1 -0
  9. package/dist/fun/ft/ft_storage_deposit_fun_json.d.ts +3 -0
  10. package/dist/fun/ft/ft_storage_deposit_fun_json.d.ts.map +1 -0
  11. package/dist/fun/ft/ft_storage_deposit_fun_json.js +9 -0
  12. package/dist/fun/ft/ft_storage_deposit_fun_json.js.map +1 -0
  13. package/dist/fun/ft/ft_total_supply_fun_json.d.ts +3 -0
  14. package/dist/fun/ft/ft_total_supply_fun_json.d.ts.map +1 -0
  15. package/dist/fun/ft/ft_total_supply_fun_json.js +9 -0
  16. package/dist/fun/ft/ft_total_supply_fun_json.js.map +1 -0
  17. package/dist/fun/ft/ft_transfer_call_fun_json.d.ts +4 -0
  18. package/dist/fun/ft/ft_transfer_call_fun_json.d.ts.map +1 -0
  19. package/dist/fun/ft/ft_transfer_call_fun_json.js +9 -0
  20. package/dist/fun/ft/ft_transfer_call_fun_json.js.map +1 -0
  21. package/dist/fun/ft/ft_transfer_fun_json.d.ts +4 -0
  22. package/dist/fun/ft/ft_transfer_fun_json.d.ts.map +1 -0
  23. package/dist/fun/ft/ft_transfer_fun_json.js +9 -0
  24. package/dist/fun/ft/ft_transfer_fun_json.js.map +1 -0
  25. package/dist/fun/greeting/greeting_get_greeting_fun_json.d.ts +3 -0
  26. package/dist/fun/greeting/greeting_get_greeting_fun_json.d.ts.map +1 -0
  27. package/dist/fun/greeting/greeting_get_greeting_fun_json.js +9 -0
  28. package/dist/fun/greeting/greeting_get_greeting_fun_json.js.map +1 -0
  29. package/dist/fun/greeting/greeting_set_greeting_fun_json.d.ts +4 -0
  30. package/dist/fun/greeting/greeting_set_greeting_fun_json.d.ts.map +1 -0
  31. package/dist/fun/greeting/greeting_set_greeting_fun_json.js +9 -0
  32. package/dist/fun/greeting/greeting_set_greeting_fun_json.js.map +1 -0
  33. package/dist/fun/near/near_add_key_fun_json.d.ts +4 -0
  34. package/dist/fun/near/near_add_key_fun_json.d.ts.map +1 -0
  35. package/dist/fun/near/near_add_key_fun_json.js +11 -0
  36. package/dist/fun/near/near_add_key_fun_json.js.map +1 -0
  37. package/dist/fun/near/near_create_account_fun_json.d.ts +3 -0
  38. package/dist/fun/near/near_create_account_fun_json.d.ts.map +1 -0
  39. package/dist/fun/near/near_create_account_fun_json.js +9 -0
  40. package/dist/fun/near/near_create_account_fun_json.js.map +1 -0
  41. package/dist/fun/near/near_delete_account_fun_json.d.ts +4 -0
  42. package/dist/fun/near/near_delete_account_fun_json.d.ts.map +1 -0
  43. package/dist/fun/near/near_delete_account_fun_json.js +11 -0
  44. package/dist/fun/near/near_delete_account_fun_json.js.map +1 -0
  45. package/dist/fun/near/near_delete_key_fun_json.d.ts +4 -0
  46. package/dist/fun/near/near_delete_key_fun_json.d.ts.map +1 -0
  47. package/dist/fun/near/near_delete_key_fun_json.js +11 -0
  48. package/dist/fun/near/near_delete_key_fun_json.js.map +1 -0
  49. package/dist/fun/pool/pool_deposit_and_stake_fun_json.d.ts +4 -0
  50. package/dist/fun/pool/pool_deposit_and_stake_fun_json.d.ts.map +1 -0
  51. package/dist/fun/pool/pool_deposit_and_stake_fun_json.js +9 -0
  52. package/dist/fun/pool/pool_deposit_and_stake_fun_json.js.map +1 -0
  53. package/dist/fun/pool/pool_get_accounts_fun_json.d.ts +3 -0
  54. package/dist/fun/pool/pool_get_accounts_fun_json.d.ts.map +1 -0
  55. package/dist/fun/pool/pool_get_accounts_fun_json.js +9 -0
  56. package/dist/fun/pool/pool_get_accounts_fun_json.js.map +1 -0
  57. package/dist/fun/pool/pool_get_number_of_accounts_fun_json.d.ts +3 -0
  58. package/dist/fun/pool/pool_get_number_of_accounts_fun_json.d.ts.map +1 -0
  59. package/dist/fun/pool/pool_get_number_of_accounts_fun_json.js +9 -0
  60. package/dist/fun/pool/pool_get_number_of_accounts_fun_json.js.map +1 -0
  61. package/dist/fun/pool/pool_ping_fun_json.d.ts +3 -0
  62. package/dist/fun/pool/pool_ping_fun_json.d.ts.map +1 -0
  63. package/dist/fun/pool/pool_ping_fun_json.js +11 -0
  64. package/dist/fun/pool/pool_ping_fun_json.js.map +1 -0
  65. package/dist/fun/pumpopoly_world/pumpopoly_world_elite_move_fun_json.d.ts +3 -0
  66. package/dist/fun/pumpopoly_world/pumpopoly_world_elite_move_fun_json.d.ts.map +1 -0
  67. package/dist/fun/pumpopoly_world/pumpopoly_world_elite_move_fun_json.js +9 -0
  68. package/dist/fun/pumpopoly_world/pumpopoly_world_elite_move_fun_json.js.map +1 -0
  69. package/dist/fun/pumpopoly_world/pumpopoly_world_move_player_fun_json.d.ts +3 -0
  70. package/dist/fun/pumpopoly_world/pumpopoly_world_move_player_fun_json.d.ts.map +1 -0
  71. package/dist/fun/pumpopoly_world/pumpopoly_world_move_player_fun_json.js +9 -0
  72. package/dist/fun/pumpopoly_world/pumpopoly_world_move_player_fun_json.js.map +1 -0
  73. package/dist/fun/rhea_ammv2/rhea_ammv2_add_simple_pool_fun_json.d.ts +4 -0
  74. package/dist/fun/rhea_ammv2/rhea_ammv2_add_simple_pool_fun_json.d.ts.map +1 -0
  75. package/dist/fun/rhea_ammv2/rhea_ammv2_add_simple_pool_fun_json.js +9 -0
  76. package/dist/fun/rhea_ammv2/rhea_ammv2_add_simple_pool_fun_json.js.map +1 -0
  77. package/dist/fun/rhea_ammv2/rhea_ammv2_get_deposits_fun_json.d.ts +4 -0
  78. package/dist/fun/rhea_ammv2/rhea_ammv2_get_deposits_fun_json.d.ts.map +1 -0
  79. package/dist/fun/rhea_ammv2/rhea_ammv2_get_deposits_fun_json.js +9 -0
  80. package/dist/fun/rhea_ammv2/rhea_ammv2_get_deposits_fun_json.js.map +1 -0
  81. package/dist/fun/rhea_ammv2/rhea_ammv2_get_number_of_pools_fun_json.d.ts +3 -0
  82. package/dist/fun/rhea_ammv2/rhea_ammv2_get_number_of_pools_fun_json.d.ts.map +1 -0
  83. package/dist/fun/rhea_ammv2/rhea_ammv2_get_number_of_pools_fun_json.js +9 -0
  84. package/dist/fun/rhea_ammv2/rhea_ammv2_get_number_of_pools_fun_json.js.map +1 -0
  85. package/dist/fun/rhea_ammv2/rhea_ammv2_get_pool_fun_json.d.ts +4 -0
  86. package/dist/fun/rhea_ammv2/rhea_ammv2_get_pool_fun_json.d.ts.map +1 -0
  87. package/dist/fun/rhea_ammv2/rhea_ammv2_get_pool_fun_json.js +9 -0
  88. package/dist/fun/rhea_ammv2/rhea_ammv2_get_pool_fun_json.js.map +1 -0
  89. package/dist/fun/rhea_ammv2/rhea_ammv2_get_pools_fun_json.d.ts +4 -0
  90. package/dist/fun/rhea_ammv2/rhea_ammv2_get_pools_fun_json.d.ts.map +1 -0
  91. package/dist/fun/rhea_ammv2/rhea_ammv2_get_pools_fun_json.js +9 -0
  92. package/dist/fun/rhea_ammv2/rhea_ammv2_get_pools_fun_json.js.map +1 -0
  93. package/dist/fun/rhea_ammv2/rhea_ammv2_get_return_fun_json.d.ts +4 -0
  94. package/dist/fun/rhea_ammv2/rhea_ammv2_get_return_fun_json.d.ts.map +1 -0
  95. package/dist/fun/rhea_ammv2/rhea_ammv2_get_return_fun_json.js +14 -0
  96. package/dist/fun/rhea_ammv2/rhea_ammv2_get_return_fun_json.js.map +1 -0
  97. package/dist/fun/rhea_ammv2/rhea_ammv2_storage_balance_of_fun_json.d.ts +4 -0
  98. package/dist/fun/rhea_ammv2/rhea_ammv2_storage_balance_of_fun_json.d.ts.map +1 -0
  99. package/dist/fun/rhea_ammv2/rhea_ammv2_storage_balance_of_fun_json.js +9 -0
  100. package/dist/fun/rhea_ammv2/rhea_ammv2_storage_balance_of_fun_json.js.map +1 -0
  101. package/dist/fun/rhea_ammv2/rhea_ammv2_storage_deposit_fun_json.d.ts +4 -0
  102. package/dist/fun/rhea_ammv2/rhea_ammv2_storage_deposit_fun_json.d.ts.map +1 -0
  103. package/dist/fun/rhea_ammv2/rhea_ammv2_storage_deposit_fun_json.js +9 -0
  104. package/dist/fun/rhea_ammv2/rhea_ammv2_storage_deposit_fun_json.js.map +1 -0
  105. package/dist/fun/rhea_ammv2/rhea_ammv2_swap_fun_json.d.ts +4 -0
  106. package/dist/fun/rhea_ammv2/rhea_ammv2_swap_fun_json.d.ts.map +1 -0
  107. package/dist/fun/rhea_ammv2/rhea_ammv2_swap_fun_json.js +9 -0
  108. package/dist/fun/rhea_ammv2/rhea_ammv2_swap_fun_json.js.map +1 -0
  109. package/dist/fun/rhea_ammv2/rhea_ammv2_withdraw_fun_json.d.ts +4 -0
  110. package/dist/fun/rhea_ammv2/rhea_ammv2_withdraw_fun_json.d.ts.map +1 -0
  111. package/dist/fun/rhea_ammv2/rhea_ammv2_withdraw_fun_json.js +14 -0
  112. package/dist/fun/rhea_ammv2/rhea_ammv2_withdraw_fun_json.js.map +1 -0
  113. package/dist/fun/wrap_near/wrap_near_deposit_fun_json.d.ts +4 -0
  114. package/dist/fun/wrap_near/wrap_near_deposit_fun_json.d.ts.map +1 -0
  115. package/dist/fun/wrap_near/wrap_near_deposit_fun_json.js +9 -0
  116. package/dist/fun/wrap_near/wrap_near_deposit_fun_json.js.map +1 -0
  117. package/dist/fun/wrap_near/wrap_near_withdraw_fun_json.d.ts +3 -0
  118. package/dist/fun/wrap_near/wrap_near_withdraw_fun_json.d.ts.map +1 -0
  119. package/dist/fun/wrap_near/wrap_near_withdraw_fun_json.js +9 -0
  120. package/dist/fun/wrap_near/wrap_near_withdraw_fun_json.js.map +1 -0
  121. package/dist/index.d.ts +39 -16
  122. package/dist/index.d.ts.map +1 -1
  123. package/dist/index.js +55 -28
  124. package/dist/index.js.map +1 -1
  125. package/dist/lib/args/ft_args.d.ts +7 -0
  126. package/dist/lib/args/ft_args.d.ts.map +1 -0
  127. package/dist/lib/args/ft_args.js +10 -0
  128. package/dist/lib/args/ft_args.js.map +1 -0
  129. package/dist/lib/args/greeting_args.d.ts +4 -0
  130. package/dist/lib/args/greeting_args.d.ts.map +1 -0
  131. package/dist/lib/args/greeting_args.js +10 -0
  132. package/dist/lib/args/greeting_args.js.map +1 -0
  133. package/dist/lib/{contract_rhea_args.d.ts → args/rhea_ammv2_args.d.ts} +6 -6
  134. package/dist/lib/args/rhea_ammv2_args.d.ts.map +1 -0
  135. package/dist/lib/args/rhea_ammv2_args.js +11 -0
  136. package/dist/lib/args/rhea_ammv2_args.js.map +1 -0
  137. package/dist/lib/const_id/contract_id_const_type.d.ts +6 -0
  138. package/dist/lib/const_id/contract_id_const_type.d.ts.map +1 -0
  139. package/dist/lib/const_id/contract_id_const_type.js +8 -0
  140. package/dist/lib/const_id/contract_id_const_type.js.map +1 -0
  141. package/dist/lib/const_id/greeting_contract_id_const.d.ts +4 -0
  142. package/dist/lib/const_id/greeting_contract_id_const.d.ts.map +1 -0
  143. package/dist/lib/const_id/greeting_contract_id_const.js +13 -0
  144. package/dist/lib/const_id/greeting_contract_id_const.js.map +1 -0
  145. package/dist/lib/const_id/index.d.ts +7 -0
  146. package/dist/lib/const_id/index.d.ts.map +1 -0
  147. package/dist/lib/const_id/index.js +22 -0
  148. package/dist/lib/const_id/index.js.map +1 -0
  149. package/dist/lib/const_id/near_tld_contract_id_const.d.ts +4 -0
  150. package/dist/lib/const_id/near_tld_contract_id_const.d.ts.map +1 -0
  151. package/dist/lib/const_id/near_tld_contract_id_const.js +13 -0
  152. package/dist/lib/const_id/near_tld_contract_id_const.js.map +1 -0
  153. package/dist/lib/const_id/pumpopoly_world_contract_id_const.d.ts +4 -0
  154. package/dist/lib/const_id/pumpopoly_world_contract_id_const.d.ts.map +1 -0
  155. package/dist/lib/const_id/pumpopoly_world_contract_id_const.js +13 -0
  156. package/dist/lib/const_id/pumpopoly_world_contract_id_const.js.map +1 -0
  157. package/dist/lib/const_id/rhea_ammv2_contract_id_const.d.ts +4 -0
  158. package/dist/lib/const_id/rhea_ammv2_contract_id_const.d.ts.map +1 -0
  159. package/dist/lib/const_id/rhea_ammv2_contract_id_const.js +13 -0
  160. package/dist/lib/const_id/rhea_ammv2_contract_id_const.js.map +1 -0
  161. package/dist/lib/const_id/wrap_near_contract_id_const.d.ts +4 -0
  162. package/dist/lib/const_id/wrap_near_contract_id_const.d.ts.map +1 -0
  163. package/dist/lib/const_id/wrap_near_contract_id_const.js +13 -0
  164. package/dist/lib/const_id/wrap_near_contract_id_const.js.map +1 -0
  165. package/dist/lib/methods/index.d.ts +8 -0
  166. package/dist/lib/methods/index.d.ts.map +1 -0
  167. package/dist/lib/methods/index.js +16 -0
  168. package/dist/lib/methods/index.js.map +1 -0
  169. package/dist/lib/methods/methods_ft.d.ts +15 -0
  170. package/dist/lib/methods/methods_ft.d.ts.map +1 -0
  171. package/dist/lib/methods/methods_ft.js +22 -0
  172. package/dist/lib/methods/methods_ft.js.map +1 -0
  173. package/dist/lib/methods/methods_greeting.d.ts +5 -0
  174. package/dist/lib/methods/methods_greeting.d.ts.map +1 -0
  175. package/dist/lib/methods/methods_greeting.js +12 -0
  176. package/dist/lib/methods/methods_greeting.js.map +1 -0
  177. package/dist/lib/methods/methods_near.d.ts +14 -0
  178. package/dist/lib/methods/methods_near.d.ts.map +1 -0
  179. package/dist/lib/methods/methods_near.js +24 -0
  180. package/dist/lib/methods/methods_near.js.map +1 -0
  181. package/dist/lib/methods/methods_pool.d.ts +55 -0
  182. package/dist/lib/methods/methods_pool.d.ts.map +1 -0
  183. package/dist/lib/methods/methods_pool.js +63 -0
  184. package/dist/lib/methods/methods_pool.js.map +1 -0
  185. package/dist/lib/methods/methods_pumpopoly_world.d.ts +37 -0
  186. package/dist/lib/methods/methods_pumpopoly_world.d.ts.map +1 -0
  187. package/dist/lib/methods/methods_pumpopoly_world.js +45 -0
  188. package/dist/lib/methods/methods_pumpopoly_world.js.map +1 -0
  189. package/dist/lib/methods/methods_rhea_ammv2.d.ts +164 -0
  190. package/dist/lib/methods/methods_rhea_ammv2.d.ts.map +1 -0
  191. package/dist/lib/methods/methods_rhea_ammv2.js +171 -0
  192. package/dist/lib/methods/methods_rhea_ammv2.js.map +1 -0
  193. package/dist/lib/methods/methods_wrap_near.d.ts +18 -0
  194. package/dist/lib/methods/methods_wrap_near.d.ts.map +1 -0
  195. package/dist/lib/methods/methods_wrap_near.js +26 -0
  196. package/dist/lib/methods/methods_wrap_near.js.map +1 -0
  197. package/dist/types/{ft_metadata_types.d.ts → ft_metadata_get_response_type.d.ts} +1 -1
  198. package/dist/types/ft_metadata_get_response_type.d.ts.map +1 -0
  199. package/dist/types/{ft_metadata_types.js → ft_metadata_get_response_type.js} +1 -1
  200. package/dist/types/ft_metadata_get_response_type.js.map +1 -0
  201. package/dist/types/rhea_ammv2_get_deposits_type.d.ts +4 -0
  202. package/dist/types/rhea_ammv2_get_deposits_type.d.ts.map +1 -0
  203. package/dist/types/rhea_ammv2_get_deposits_type.js +15 -0
  204. package/dist/types/rhea_ammv2_get_deposits_type.js.map +1 -0
  205. package/dist/types/{rhea_ref_types.d.ts → rhea_ammv2_get_pool_type.d.ts} +4 -11
  206. package/dist/types/rhea_ammv2_get_pool_type.d.ts.map +1 -0
  207. package/dist/types/rhea_ammv2_get_pool_type.js +13 -0
  208. package/dist/types/rhea_ammv2_get_pool_type.js.map +1 -0
  209. package/dist/types/storage_balance_of_response_type.d.ts +5 -0
  210. package/dist/types/storage_balance_of_response_type.d.ts.map +1 -0
  211. package/dist/types/storage_balance_of_response_type.js +13 -0
  212. package/dist/types/storage_balance_of_response_type.js.map +1 -0
  213. package/package.json +5 -10
  214. package/dist/fun/ft/ft_fun.d.ts +0 -3583
  215. package/dist/fun/ft/ft_fun.d.ts.map +0 -1
  216. package/dist/fun/ft/ft_fun.js +0 -54
  217. package/dist/fun/ft/ft_fun.js.map +0 -1
  218. package/dist/fun/greeting/greeting_get_fun.d.ts +0 -3
  219. package/dist/fun/greeting/greeting_get_fun.d.ts.map +0 -1
  220. package/dist/fun/greeting/greeting_get_fun.js +0 -9
  221. package/dist/fun/greeting/greeting_get_fun.js.map +0 -1
  222. package/dist/fun/greeting/greeting_set_fun.d.ts +0 -1195
  223. package/dist/fun/greeting/greeting_set_fun.d.ts.map +0 -1
  224. package/dist/fun/greeting/greeting_set_fun.js +0 -9
  225. package/dist/fun/greeting/greeting_set_fun.js.map +0 -1
  226. package/dist/fun/near/add_key_near.d.ts +0 -1194
  227. package/dist/fun/near/add_key_near.d.ts.map +0 -1
  228. package/dist/fun/near/add_key_near.js +0 -11
  229. package/dist/fun/near/add_key_near.js.map +0 -1
  230. package/dist/fun/near/create_account_near.d.ts +0 -1194
  231. package/dist/fun/near/create_account_near.d.ts.map +0 -1
  232. package/dist/fun/near/create_account_near.js +0 -10
  233. package/dist/fun/near/create_account_near.js.map +0 -1
  234. package/dist/fun/near/delete_account_fun.d.ts +0 -1194
  235. package/dist/fun/near/delete_account_fun.d.ts.map +0 -1
  236. package/dist/fun/near/delete_account_fun.js +0 -11
  237. package/dist/fun/near/delete_account_fun.js.map +0 -1
  238. package/dist/fun/near/delete_key_near.d.ts +0 -1194
  239. package/dist/fun/near/delete_key_near.d.ts.map +0 -1
  240. package/dist/fun/near/delete_key_near.js +0 -11
  241. package/dist/fun/near/delete_key_near.js.map +0 -1
  242. package/dist/fun/near/wrap_near.d.ts +0 -2387
  243. package/dist/fun/near/wrap_near.d.ts.map +0 -1
  244. package/dist/fun/near/wrap_near.js +0 -16
  245. package/dist/fun/near/wrap_near.js.map +0 -1
  246. package/dist/fun/pool/pool_fun.d.ts +0 -2390
  247. package/dist/fun/pool/pool_fun.d.ts.map +0 -1
  248. package/dist/fun/pool/pool_fun.js +0 -37
  249. package/dist/fun/pool/pool_fun.js.map +0 -1
  250. package/dist/fun/pumpopoly/pumpopoly_world_fun.d.ts +0 -2386
  251. package/dist/fun/pumpopoly/pumpopoly_world_fun.d.ts.map +0 -1
  252. package/dist/fun/pumpopoly/pumpopoly_world_fun.js +0 -20
  253. package/dist/fun/pumpopoly/pumpopoly_world_fun.js.map +0 -1
  254. package/dist/fun/rhea/rhea_call_fun.d.ts +0 -4772
  255. package/dist/fun/rhea/rhea_call_fun.d.ts.map +0 -1
  256. package/dist/fun/rhea/rhea_call_fun.js +0 -43
  257. package/dist/fun/rhea/rhea_call_fun.js.map +0 -1
  258. package/dist/fun/rhea/rhea_view_fun.d.ts +0 -10
  259. package/dist/fun/rhea/rhea_view_fun.d.ts.map +0 -1
  260. package/dist/fun/rhea/rhea_view_fun.js +0 -56
  261. package/dist/fun/rhea/rhea_view_fun.js.map +0 -1
  262. package/dist/lib/contract_ft_args.d.ts +0 -7
  263. package/dist/lib/contract_ft_args.d.ts.map +0 -1
  264. package/dist/lib/contract_ft_args.js +0 -3
  265. package/dist/lib/contract_ft_args.js.map +0 -1
  266. package/dist/lib/contract_greeting_args.d.ts +0 -4
  267. package/dist/lib/contract_greeting_args.d.ts.map +0 -1
  268. package/dist/lib/contract_greeting_args.js +0 -3
  269. package/dist/lib/contract_greeting_args.js.map +0 -1
  270. package/dist/lib/contract_greeting_const.d.ts +0 -5
  271. package/dist/lib/contract_greeting_const.d.ts.map +0 -1
  272. package/dist/lib/contract_greeting_const.js +0 -8
  273. package/dist/lib/contract_greeting_const.js.map +0 -1
  274. package/dist/lib/contract_rhea_args.d.ts.map +0 -1
  275. package/dist/lib/contract_rhea_args.js +0 -11
  276. package/dist/lib/contract_rhea_args.js.map +0 -1
  277. package/dist/types/ft_metadata_types.d.ts.map +0 -1
  278. package/dist/types/ft_metadata_types.js.map +0 -1
  279. package/dist/types/rhea_ref_types.d.ts.map +0 -1
  280. package/dist/types/rhea_ref_types.js +0 -15
  281. package/dist/types/rhea_ref_types.js.map +0 -1
@@ -1,2387 +0,0 @@
1
- import { Near } from "near-kit";
2
- import type { AmountInput } from "../../types/AmountInput";
3
- export declare function wrap_near_deposit_fun(near: Near, wrap_contractId: string, amount: AmountInput): Promise<{
4
- final_execution_status: "NONE";
5
- transaction?: {
6
- hash: string;
7
- signer_id: string;
8
- receiver_id: string;
9
- nonce: number;
10
- } | undefined;
11
- status?: "Pending" | "Unknown" | {
12
- SuccessValue: string;
13
- } | {
14
- SuccessReceiptId: string;
15
- } | {
16
- Failure: {
17
- [x: string]: any;
18
- error_message?: string | undefined;
19
- error_type?: string | undefined;
20
- };
21
- } | undefined;
22
- transaction_outcome?: {
23
- id: string;
24
- outcome: {
25
- logs: string[];
26
- receipt_ids: string[];
27
- gas_burnt: number;
28
- tokens_burnt: string;
29
- executor_id: string;
30
- status: "Pending" | "Unknown" | {
31
- SuccessValue: string;
32
- } | {
33
- SuccessReceiptId: string;
34
- } | {
35
- Failure: {
36
- [x: string]: any;
37
- error_message?: string | undefined;
38
- error_type?: string | undefined;
39
- };
40
- };
41
- metadata?: {
42
- gas_profile?: {
43
- [x: string]: any;
44
- cost?: string | undefined;
45
- cost_category?: string | undefined;
46
- gas_used?: string | undefined;
47
- }[] | null | undefined;
48
- version: 4;
49
- contracts?: ({
50
- local: string;
51
- } | {
52
- global_hash: string;
53
- } | {
54
- global_account_id: string;
55
- } | null)[] | null | undefined;
56
- } | {
57
- gas_profile?: {
58
- [x: string]: any;
59
- cost?: string | undefined;
60
- cost_category?: string | undefined;
61
- gas_used?: string | undefined;
62
- }[] | null | undefined;
63
- version: 1 | 2 | 3;
64
- } | {
65
- gas_profile?: {
66
- [x: string]: any;
67
- cost?: string | undefined;
68
- cost_category?: string | undefined;
69
- gas_used?: string | undefined;
70
- }[] | null | undefined;
71
- version: number;
72
- } | undefined;
73
- };
74
- block_hash: string;
75
- proof: {
76
- hash: string;
77
- direction: "Left" | "Right";
78
- }[];
79
- } | undefined;
80
- receipts_outcome?: {
81
- id: string;
82
- outcome: {
83
- logs: string[];
84
- receipt_ids: string[];
85
- gas_burnt: number;
86
- tokens_burnt: string;
87
- executor_id: string;
88
- status: "Pending" | "Unknown" | {
89
- SuccessValue: string;
90
- } | {
91
- SuccessReceiptId: string;
92
- } | {
93
- Failure: {
94
- [x: string]: any;
95
- error_message?: string | undefined;
96
- error_type?: string | undefined;
97
- };
98
- };
99
- metadata?: {
100
- gas_profile?: {
101
- [x: string]: any;
102
- cost?: string | undefined;
103
- cost_category?: string | undefined;
104
- gas_used?: string | undefined;
105
- }[] | null | undefined;
106
- version: 4;
107
- contracts?: ({
108
- local: string;
109
- } | {
110
- global_hash: string;
111
- } | {
112
- global_account_id: string;
113
- } | null)[] | null | undefined;
114
- } | {
115
- gas_profile?: {
116
- [x: string]: any;
117
- cost?: string | undefined;
118
- cost_category?: string | undefined;
119
- gas_used?: string | undefined;
120
- }[] | null | undefined;
121
- version: 1 | 2 | 3;
122
- } | {
123
- gas_profile?: {
124
- [x: string]: any;
125
- cost?: string | undefined;
126
- cost_category?: string | undefined;
127
- gas_used?: string | undefined;
128
- }[] | null | undefined;
129
- version: number;
130
- } | undefined;
131
- };
132
- block_hash: string;
133
- proof: {
134
- hash: string;
135
- direction: "Left" | "Right";
136
- }[];
137
- }[] | undefined;
138
- } | {
139
- final_execution_status: "INCLUDED";
140
- transaction?: {
141
- hash: string;
142
- signer_id: string;
143
- receiver_id: string;
144
- nonce: number;
145
- } | undefined;
146
- status?: "Pending" | "Unknown" | {
147
- SuccessValue: string;
148
- } | {
149
- SuccessReceiptId: string;
150
- } | {
151
- Failure: {
152
- [x: string]: any;
153
- error_message?: string | undefined;
154
- error_type?: string | undefined;
155
- };
156
- } | undefined;
157
- transaction_outcome?: {
158
- id: string;
159
- outcome: {
160
- logs: string[];
161
- receipt_ids: string[];
162
- gas_burnt: number;
163
- tokens_burnt: string;
164
- executor_id: string;
165
- status: "Pending" | "Unknown" | {
166
- SuccessValue: string;
167
- } | {
168
- SuccessReceiptId: string;
169
- } | {
170
- Failure: {
171
- [x: string]: any;
172
- error_message?: string | undefined;
173
- error_type?: string | undefined;
174
- };
175
- };
176
- metadata?: {
177
- gas_profile?: {
178
- [x: string]: any;
179
- cost?: string | undefined;
180
- cost_category?: string | undefined;
181
- gas_used?: string | undefined;
182
- }[] | null | undefined;
183
- version: 4;
184
- contracts?: ({
185
- local: string;
186
- } | {
187
- global_hash: string;
188
- } | {
189
- global_account_id: string;
190
- } | null)[] | null | undefined;
191
- } | {
192
- gas_profile?: {
193
- [x: string]: any;
194
- cost?: string | undefined;
195
- cost_category?: string | undefined;
196
- gas_used?: string | undefined;
197
- }[] | null | undefined;
198
- version: 1 | 2 | 3;
199
- } | {
200
- gas_profile?: {
201
- [x: string]: any;
202
- cost?: string | undefined;
203
- cost_category?: string | undefined;
204
- gas_used?: string | undefined;
205
- }[] | null | undefined;
206
- version: number;
207
- } | undefined;
208
- };
209
- block_hash: string;
210
- proof: {
211
- hash: string;
212
- direction: "Left" | "Right";
213
- }[];
214
- } | undefined;
215
- receipts_outcome?: {
216
- id: string;
217
- outcome: {
218
- logs: string[];
219
- receipt_ids: string[];
220
- gas_burnt: number;
221
- tokens_burnt: string;
222
- executor_id: string;
223
- status: "Pending" | "Unknown" | {
224
- SuccessValue: string;
225
- } | {
226
- SuccessReceiptId: string;
227
- } | {
228
- Failure: {
229
- [x: string]: any;
230
- error_message?: string | undefined;
231
- error_type?: string | undefined;
232
- };
233
- };
234
- metadata?: {
235
- gas_profile?: {
236
- [x: string]: any;
237
- cost?: string | undefined;
238
- cost_category?: string | undefined;
239
- gas_used?: string | undefined;
240
- }[] | null | undefined;
241
- version: 4;
242
- contracts?: ({
243
- local: string;
244
- } | {
245
- global_hash: string;
246
- } | {
247
- global_account_id: string;
248
- } | null)[] | null | undefined;
249
- } | {
250
- gas_profile?: {
251
- [x: string]: any;
252
- cost?: string | undefined;
253
- cost_category?: string | undefined;
254
- gas_used?: string | undefined;
255
- }[] | null | undefined;
256
- version: 1 | 2 | 3;
257
- } | {
258
- gas_profile?: {
259
- [x: string]: any;
260
- cost?: string | undefined;
261
- cost_category?: string | undefined;
262
- gas_used?: string | undefined;
263
- }[] | null | undefined;
264
- version: number;
265
- } | undefined;
266
- };
267
- block_hash: string;
268
- proof: {
269
- hash: string;
270
- direction: "Left" | "Right";
271
- }[];
272
- }[] | undefined;
273
- } | {
274
- final_execution_status: "INCLUDED_FINAL";
275
- transaction?: {
276
- hash: string;
277
- signer_id: string;
278
- receiver_id: string;
279
- nonce: number;
280
- } | undefined;
281
- status?: "Pending" | "Unknown" | {
282
- SuccessValue: string;
283
- } | {
284
- SuccessReceiptId: string;
285
- } | {
286
- Failure: {
287
- [x: string]: any;
288
- error_message?: string | undefined;
289
- error_type?: string | undefined;
290
- };
291
- } | undefined;
292
- transaction_outcome?: {
293
- id: string;
294
- outcome: {
295
- logs: string[];
296
- receipt_ids: string[];
297
- gas_burnt: number;
298
- tokens_burnt: string;
299
- executor_id: string;
300
- status: "Pending" | "Unknown" | {
301
- SuccessValue: string;
302
- } | {
303
- SuccessReceiptId: string;
304
- } | {
305
- Failure: {
306
- [x: string]: any;
307
- error_message?: string | undefined;
308
- error_type?: string | undefined;
309
- };
310
- };
311
- metadata?: {
312
- gas_profile?: {
313
- [x: string]: any;
314
- cost?: string | undefined;
315
- cost_category?: string | undefined;
316
- gas_used?: string | undefined;
317
- }[] | null | undefined;
318
- version: 4;
319
- contracts?: ({
320
- local: string;
321
- } | {
322
- global_hash: string;
323
- } | {
324
- global_account_id: string;
325
- } | null)[] | null | undefined;
326
- } | {
327
- gas_profile?: {
328
- [x: string]: any;
329
- cost?: string | undefined;
330
- cost_category?: string | undefined;
331
- gas_used?: string | undefined;
332
- }[] | null | undefined;
333
- version: 1 | 2 | 3;
334
- } | {
335
- gas_profile?: {
336
- [x: string]: any;
337
- cost?: string | undefined;
338
- cost_category?: string | undefined;
339
- gas_used?: string | undefined;
340
- }[] | null | undefined;
341
- version: number;
342
- } | undefined;
343
- };
344
- block_hash: string;
345
- proof: {
346
- hash: string;
347
- direction: "Left" | "Right";
348
- }[];
349
- } | undefined;
350
- receipts_outcome?: {
351
- id: string;
352
- outcome: {
353
- logs: string[];
354
- receipt_ids: string[];
355
- gas_burnt: number;
356
- tokens_burnt: string;
357
- executor_id: string;
358
- status: "Pending" | "Unknown" | {
359
- SuccessValue: string;
360
- } | {
361
- SuccessReceiptId: string;
362
- } | {
363
- Failure: {
364
- [x: string]: any;
365
- error_message?: string | undefined;
366
- error_type?: string | undefined;
367
- };
368
- };
369
- metadata?: {
370
- gas_profile?: {
371
- [x: string]: any;
372
- cost?: string | undefined;
373
- cost_category?: string | undefined;
374
- gas_used?: string | undefined;
375
- }[] | null | undefined;
376
- version: 4;
377
- contracts?: ({
378
- local: string;
379
- } | {
380
- global_hash: string;
381
- } | {
382
- global_account_id: string;
383
- } | null)[] | null | undefined;
384
- } | {
385
- gas_profile?: {
386
- [x: string]: any;
387
- cost?: string | undefined;
388
- cost_category?: string | undefined;
389
- gas_used?: string | undefined;
390
- }[] | null | undefined;
391
- version: 1 | 2 | 3;
392
- } | {
393
- gas_profile?: {
394
- [x: string]: any;
395
- cost?: string | undefined;
396
- cost_category?: string | undefined;
397
- gas_used?: string | undefined;
398
- }[] | null | undefined;
399
- version: number;
400
- } | undefined;
401
- };
402
- block_hash: string;
403
- proof: {
404
- hash: string;
405
- direction: "Left" | "Right";
406
- }[];
407
- }[] | undefined;
408
- } | {
409
- final_execution_status: "EXECUTED_OPTIMISTIC";
410
- status: "Pending" | "Unknown" | {
411
- SuccessValue: string;
412
- } | {
413
- SuccessReceiptId: string;
414
- } | {
415
- Failure: {
416
- [x: string]: any;
417
- error_message?: string | undefined;
418
- error_type?: string | undefined;
419
- };
420
- };
421
- transaction: {
422
- signer_id: string;
423
- public_key: string;
424
- nonce: number;
425
- receiver_id: string;
426
- actions: ("CreateAccount" | {
427
- CreateAccount: Record<string, never>;
428
- } | {
429
- Transfer: {
430
- deposit: string;
431
- };
432
- } | {
433
- FunctionCall: {
434
- method_name: string;
435
- args: string;
436
- gas: number;
437
- deposit: string;
438
- };
439
- } | {
440
- DeployContract: {
441
- code: string;
442
- };
443
- } | {
444
- DeployGlobalContract: {
445
- code: string;
446
- };
447
- } | {
448
- DeployGlobalContractByAccountId: {
449
- code: string;
450
- };
451
- } | {
452
- Stake: {
453
- stake: string;
454
- public_key: string;
455
- };
456
- } | {
457
- AddKey: {
458
- public_key: string;
459
- access_key: {
460
- nonce: number;
461
- permission: "FullAccess" | {
462
- FunctionCall: {
463
- receiver_id: string;
464
- method_names: string[];
465
- allowance?: string | null | undefined;
466
- };
467
- } | {
468
- GasKeyFunctionCall: {
469
- balance: string;
470
- num_nonces: number;
471
- receiver_id: string;
472
- method_names: string[];
473
- allowance?: string | null | undefined;
474
- };
475
- } | {
476
- GasKeyFullAccess: {
477
- balance: string;
478
- num_nonces: number;
479
- };
480
- };
481
- };
482
- };
483
- } | {
484
- DeleteKey: {
485
- public_key: string;
486
- };
487
- } | {
488
- DeleteAccount: {
489
- beneficiary_id: string;
490
- };
491
- } | {
492
- UseGlobalContract: {
493
- code_hash: string;
494
- };
495
- } | {
496
- UseGlobalContractByAccountId: {
497
- account_id: string;
498
- };
499
- } | {
500
- Delegate: {
501
- delegate_action: {
502
- sender_id: string;
503
- receiver_id: string;
504
- actions: any[];
505
- nonce: number;
506
- max_block_height: number;
507
- public_key: string;
508
- };
509
- signature: string;
510
- };
511
- } | {
512
- DeterministicStateInit: {
513
- deposit: string;
514
- };
515
- } | {
516
- TransferToGasKey: {
517
- public_key: string;
518
- deposit: string;
519
- };
520
- } | {
521
- WithdrawFromGasKey: {
522
- public_key: string;
523
- amount: string;
524
- };
525
- } | {
526
- DelegateV2: {
527
- delegate_action: {
528
- V2: {
529
- sender_id: string;
530
- receiver_id: string;
531
- actions: any[];
532
- nonce: {
533
- Nonce: {
534
- nonce: number;
535
- };
536
- } | {
537
- GasKeyNonce: {
538
- nonce: number;
539
- nonce_index: number;
540
- };
541
- };
542
- max_block_height: number;
543
- public_key: string;
544
- };
545
- };
546
- signature: string;
547
- };
548
- })[];
549
- signature: string;
550
- hash: string;
551
- priority_fee?: number | undefined;
552
- nonce_mode?: "monotonic" | "strict" | null | undefined;
553
- };
554
- transaction_outcome: {
555
- id: string;
556
- outcome: {
557
- logs: string[];
558
- receipt_ids: string[];
559
- gas_burnt: number;
560
- tokens_burnt: string;
561
- executor_id: string;
562
- status: "Pending" | "Unknown" | {
563
- SuccessValue: string;
564
- } | {
565
- SuccessReceiptId: string;
566
- } | {
567
- Failure: {
568
- [x: string]: any;
569
- error_message?: string | undefined;
570
- error_type?: string | undefined;
571
- };
572
- };
573
- metadata?: {
574
- gas_profile?: {
575
- [x: string]: any;
576
- cost?: string | undefined;
577
- cost_category?: string | undefined;
578
- gas_used?: string | undefined;
579
- }[] | null | undefined;
580
- version: 4;
581
- contracts?: ({
582
- local: string;
583
- } | {
584
- global_hash: string;
585
- } | {
586
- global_account_id: string;
587
- } | null)[] | null | undefined;
588
- } | {
589
- gas_profile?: {
590
- [x: string]: any;
591
- cost?: string | undefined;
592
- cost_category?: string | undefined;
593
- gas_used?: string | undefined;
594
- }[] | null | undefined;
595
- version: 1 | 2 | 3;
596
- } | {
597
- gas_profile?: {
598
- [x: string]: any;
599
- cost?: string | undefined;
600
- cost_category?: string | undefined;
601
- gas_used?: string | undefined;
602
- }[] | null | undefined;
603
- version: number;
604
- } | undefined;
605
- };
606
- block_hash: string;
607
- proof: {
608
- hash: string;
609
- direction: "Left" | "Right";
610
- }[];
611
- };
612
- receipts_outcome: {
613
- id: string;
614
- outcome: {
615
- logs: string[];
616
- receipt_ids: string[];
617
- gas_burnt: number;
618
- tokens_burnt: string;
619
- executor_id: string;
620
- status: "Pending" | "Unknown" | {
621
- SuccessValue: string;
622
- } | {
623
- SuccessReceiptId: string;
624
- } | {
625
- Failure: {
626
- [x: string]: any;
627
- error_message?: string | undefined;
628
- error_type?: string | undefined;
629
- };
630
- };
631
- metadata?: {
632
- gas_profile?: {
633
- [x: string]: any;
634
- cost?: string | undefined;
635
- cost_category?: string | undefined;
636
- gas_used?: string | undefined;
637
- }[] | null | undefined;
638
- version: 4;
639
- contracts?: ({
640
- local: string;
641
- } | {
642
- global_hash: string;
643
- } | {
644
- global_account_id: string;
645
- } | null)[] | null | undefined;
646
- } | {
647
- gas_profile?: {
648
- [x: string]: any;
649
- cost?: string | undefined;
650
- cost_category?: string | undefined;
651
- gas_used?: string | undefined;
652
- }[] | null | undefined;
653
- version: 1 | 2 | 3;
654
- } | {
655
- gas_profile?: {
656
- [x: string]: any;
657
- cost?: string | undefined;
658
- cost_category?: string | undefined;
659
- gas_used?: string | undefined;
660
- }[] | null | undefined;
661
- version: number;
662
- } | undefined;
663
- };
664
- block_hash: string;
665
- proof: {
666
- hash: string;
667
- direction: "Left" | "Right";
668
- }[];
669
- }[];
670
- } | {
671
- final_execution_status: "EXECUTED";
672
- status: "Pending" | "Unknown" | {
673
- SuccessValue: string;
674
- } | {
675
- SuccessReceiptId: string;
676
- } | {
677
- Failure: {
678
- [x: string]: any;
679
- error_message?: string | undefined;
680
- error_type?: string | undefined;
681
- };
682
- };
683
- transaction: {
684
- signer_id: string;
685
- public_key: string;
686
- nonce: number;
687
- receiver_id: string;
688
- actions: ("CreateAccount" | {
689
- CreateAccount: Record<string, never>;
690
- } | {
691
- Transfer: {
692
- deposit: string;
693
- };
694
- } | {
695
- FunctionCall: {
696
- method_name: string;
697
- args: string;
698
- gas: number;
699
- deposit: string;
700
- };
701
- } | {
702
- DeployContract: {
703
- code: string;
704
- };
705
- } | {
706
- DeployGlobalContract: {
707
- code: string;
708
- };
709
- } | {
710
- DeployGlobalContractByAccountId: {
711
- code: string;
712
- };
713
- } | {
714
- Stake: {
715
- stake: string;
716
- public_key: string;
717
- };
718
- } | {
719
- AddKey: {
720
- public_key: string;
721
- access_key: {
722
- nonce: number;
723
- permission: "FullAccess" | {
724
- FunctionCall: {
725
- receiver_id: string;
726
- method_names: string[];
727
- allowance?: string | null | undefined;
728
- };
729
- } | {
730
- GasKeyFunctionCall: {
731
- balance: string;
732
- num_nonces: number;
733
- receiver_id: string;
734
- method_names: string[];
735
- allowance?: string | null | undefined;
736
- };
737
- } | {
738
- GasKeyFullAccess: {
739
- balance: string;
740
- num_nonces: number;
741
- };
742
- };
743
- };
744
- };
745
- } | {
746
- DeleteKey: {
747
- public_key: string;
748
- };
749
- } | {
750
- DeleteAccount: {
751
- beneficiary_id: string;
752
- };
753
- } | {
754
- UseGlobalContract: {
755
- code_hash: string;
756
- };
757
- } | {
758
- UseGlobalContractByAccountId: {
759
- account_id: string;
760
- };
761
- } | {
762
- Delegate: {
763
- delegate_action: {
764
- sender_id: string;
765
- receiver_id: string;
766
- actions: any[];
767
- nonce: number;
768
- max_block_height: number;
769
- public_key: string;
770
- };
771
- signature: string;
772
- };
773
- } | {
774
- DeterministicStateInit: {
775
- deposit: string;
776
- };
777
- } | {
778
- TransferToGasKey: {
779
- public_key: string;
780
- deposit: string;
781
- };
782
- } | {
783
- WithdrawFromGasKey: {
784
- public_key: string;
785
- amount: string;
786
- };
787
- } | {
788
- DelegateV2: {
789
- delegate_action: {
790
- V2: {
791
- sender_id: string;
792
- receiver_id: string;
793
- actions: any[];
794
- nonce: {
795
- Nonce: {
796
- nonce: number;
797
- };
798
- } | {
799
- GasKeyNonce: {
800
- nonce: number;
801
- nonce_index: number;
802
- };
803
- };
804
- max_block_height: number;
805
- public_key: string;
806
- };
807
- };
808
- signature: string;
809
- };
810
- })[];
811
- signature: string;
812
- hash: string;
813
- priority_fee?: number | undefined;
814
- nonce_mode?: "monotonic" | "strict" | null | undefined;
815
- };
816
- transaction_outcome: {
817
- id: string;
818
- outcome: {
819
- logs: string[];
820
- receipt_ids: string[];
821
- gas_burnt: number;
822
- tokens_burnt: string;
823
- executor_id: string;
824
- status: "Pending" | "Unknown" | {
825
- SuccessValue: string;
826
- } | {
827
- SuccessReceiptId: string;
828
- } | {
829
- Failure: {
830
- [x: string]: any;
831
- error_message?: string | undefined;
832
- error_type?: string | undefined;
833
- };
834
- };
835
- metadata?: {
836
- gas_profile?: {
837
- [x: string]: any;
838
- cost?: string | undefined;
839
- cost_category?: string | undefined;
840
- gas_used?: string | undefined;
841
- }[] | null | undefined;
842
- version: 4;
843
- contracts?: ({
844
- local: string;
845
- } | {
846
- global_hash: string;
847
- } | {
848
- global_account_id: string;
849
- } | null)[] | null | undefined;
850
- } | {
851
- gas_profile?: {
852
- [x: string]: any;
853
- cost?: string | undefined;
854
- cost_category?: string | undefined;
855
- gas_used?: string | undefined;
856
- }[] | null | undefined;
857
- version: 1 | 2 | 3;
858
- } | {
859
- gas_profile?: {
860
- [x: string]: any;
861
- cost?: string | undefined;
862
- cost_category?: string | undefined;
863
- gas_used?: string | undefined;
864
- }[] | null | undefined;
865
- version: number;
866
- } | undefined;
867
- };
868
- block_hash: string;
869
- proof: {
870
- hash: string;
871
- direction: "Left" | "Right";
872
- }[];
873
- };
874
- receipts_outcome: {
875
- id: string;
876
- outcome: {
877
- logs: string[];
878
- receipt_ids: string[];
879
- gas_burnt: number;
880
- tokens_burnt: string;
881
- executor_id: string;
882
- status: "Pending" | "Unknown" | {
883
- SuccessValue: string;
884
- } | {
885
- SuccessReceiptId: string;
886
- } | {
887
- Failure: {
888
- [x: string]: any;
889
- error_message?: string | undefined;
890
- error_type?: string | undefined;
891
- };
892
- };
893
- metadata?: {
894
- gas_profile?: {
895
- [x: string]: any;
896
- cost?: string | undefined;
897
- cost_category?: string | undefined;
898
- gas_used?: string | undefined;
899
- }[] | null | undefined;
900
- version: 4;
901
- contracts?: ({
902
- local: string;
903
- } | {
904
- global_hash: string;
905
- } | {
906
- global_account_id: string;
907
- } | null)[] | null | undefined;
908
- } | {
909
- gas_profile?: {
910
- [x: string]: any;
911
- cost?: string | undefined;
912
- cost_category?: string | undefined;
913
- gas_used?: string | undefined;
914
- }[] | null | undefined;
915
- version: 1 | 2 | 3;
916
- } | {
917
- gas_profile?: {
918
- [x: string]: any;
919
- cost?: string | undefined;
920
- cost_category?: string | undefined;
921
- gas_used?: string | undefined;
922
- }[] | null | undefined;
923
- version: number;
924
- } | undefined;
925
- };
926
- block_hash: string;
927
- proof: {
928
- hash: string;
929
- direction: "Left" | "Right";
930
- }[];
931
- }[];
932
- } | {
933
- final_execution_status: "FINAL";
934
- status: "Pending" | "Unknown" | {
935
- SuccessValue: string;
936
- } | {
937
- SuccessReceiptId: string;
938
- } | {
939
- Failure: {
940
- [x: string]: any;
941
- error_message?: string | undefined;
942
- error_type?: string | undefined;
943
- };
944
- };
945
- transaction: {
946
- signer_id: string;
947
- public_key: string;
948
- nonce: number;
949
- receiver_id: string;
950
- actions: ("CreateAccount" | {
951
- CreateAccount: Record<string, never>;
952
- } | {
953
- Transfer: {
954
- deposit: string;
955
- };
956
- } | {
957
- FunctionCall: {
958
- method_name: string;
959
- args: string;
960
- gas: number;
961
- deposit: string;
962
- };
963
- } | {
964
- DeployContract: {
965
- code: string;
966
- };
967
- } | {
968
- DeployGlobalContract: {
969
- code: string;
970
- };
971
- } | {
972
- DeployGlobalContractByAccountId: {
973
- code: string;
974
- };
975
- } | {
976
- Stake: {
977
- stake: string;
978
- public_key: string;
979
- };
980
- } | {
981
- AddKey: {
982
- public_key: string;
983
- access_key: {
984
- nonce: number;
985
- permission: "FullAccess" | {
986
- FunctionCall: {
987
- receiver_id: string;
988
- method_names: string[];
989
- allowance?: string | null | undefined;
990
- };
991
- } | {
992
- GasKeyFunctionCall: {
993
- balance: string;
994
- num_nonces: number;
995
- receiver_id: string;
996
- method_names: string[];
997
- allowance?: string | null | undefined;
998
- };
999
- } | {
1000
- GasKeyFullAccess: {
1001
- balance: string;
1002
- num_nonces: number;
1003
- };
1004
- };
1005
- };
1006
- };
1007
- } | {
1008
- DeleteKey: {
1009
- public_key: string;
1010
- };
1011
- } | {
1012
- DeleteAccount: {
1013
- beneficiary_id: string;
1014
- };
1015
- } | {
1016
- UseGlobalContract: {
1017
- code_hash: string;
1018
- };
1019
- } | {
1020
- UseGlobalContractByAccountId: {
1021
- account_id: string;
1022
- };
1023
- } | {
1024
- Delegate: {
1025
- delegate_action: {
1026
- sender_id: string;
1027
- receiver_id: string;
1028
- actions: any[];
1029
- nonce: number;
1030
- max_block_height: number;
1031
- public_key: string;
1032
- };
1033
- signature: string;
1034
- };
1035
- } | {
1036
- DeterministicStateInit: {
1037
- deposit: string;
1038
- };
1039
- } | {
1040
- TransferToGasKey: {
1041
- public_key: string;
1042
- deposit: string;
1043
- };
1044
- } | {
1045
- WithdrawFromGasKey: {
1046
- public_key: string;
1047
- amount: string;
1048
- };
1049
- } | {
1050
- DelegateV2: {
1051
- delegate_action: {
1052
- V2: {
1053
- sender_id: string;
1054
- receiver_id: string;
1055
- actions: any[];
1056
- nonce: {
1057
- Nonce: {
1058
- nonce: number;
1059
- };
1060
- } | {
1061
- GasKeyNonce: {
1062
- nonce: number;
1063
- nonce_index: number;
1064
- };
1065
- };
1066
- max_block_height: number;
1067
- public_key: string;
1068
- };
1069
- };
1070
- signature: string;
1071
- };
1072
- })[];
1073
- signature: string;
1074
- hash: string;
1075
- priority_fee?: number | undefined;
1076
- nonce_mode?: "monotonic" | "strict" | null | undefined;
1077
- };
1078
- transaction_outcome: {
1079
- id: string;
1080
- outcome: {
1081
- logs: string[];
1082
- receipt_ids: string[];
1083
- gas_burnt: number;
1084
- tokens_burnt: string;
1085
- executor_id: string;
1086
- status: "Pending" | "Unknown" | {
1087
- SuccessValue: string;
1088
- } | {
1089
- SuccessReceiptId: string;
1090
- } | {
1091
- Failure: {
1092
- [x: string]: any;
1093
- error_message?: string | undefined;
1094
- error_type?: string | undefined;
1095
- };
1096
- };
1097
- metadata?: {
1098
- gas_profile?: {
1099
- [x: string]: any;
1100
- cost?: string | undefined;
1101
- cost_category?: string | undefined;
1102
- gas_used?: string | undefined;
1103
- }[] | null | undefined;
1104
- version: 4;
1105
- contracts?: ({
1106
- local: string;
1107
- } | {
1108
- global_hash: string;
1109
- } | {
1110
- global_account_id: string;
1111
- } | null)[] | null | undefined;
1112
- } | {
1113
- gas_profile?: {
1114
- [x: string]: any;
1115
- cost?: string | undefined;
1116
- cost_category?: string | undefined;
1117
- gas_used?: string | undefined;
1118
- }[] | null | undefined;
1119
- version: 1 | 2 | 3;
1120
- } | {
1121
- gas_profile?: {
1122
- [x: string]: any;
1123
- cost?: string | undefined;
1124
- cost_category?: string | undefined;
1125
- gas_used?: string | undefined;
1126
- }[] | null | undefined;
1127
- version: number;
1128
- } | undefined;
1129
- };
1130
- block_hash: string;
1131
- proof: {
1132
- hash: string;
1133
- direction: "Left" | "Right";
1134
- }[];
1135
- };
1136
- receipts_outcome: {
1137
- id: string;
1138
- outcome: {
1139
- logs: string[];
1140
- receipt_ids: string[];
1141
- gas_burnt: number;
1142
- tokens_burnt: string;
1143
- executor_id: string;
1144
- status: "Pending" | "Unknown" | {
1145
- SuccessValue: string;
1146
- } | {
1147
- SuccessReceiptId: string;
1148
- } | {
1149
- Failure: {
1150
- [x: string]: any;
1151
- error_message?: string | undefined;
1152
- error_type?: string | undefined;
1153
- };
1154
- };
1155
- metadata?: {
1156
- gas_profile?: {
1157
- [x: string]: any;
1158
- cost?: string | undefined;
1159
- cost_category?: string | undefined;
1160
- gas_used?: string | undefined;
1161
- }[] | null | undefined;
1162
- version: 4;
1163
- contracts?: ({
1164
- local: string;
1165
- } | {
1166
- global_hash: string;
1167
- } | {
1168
- global_account_id: string;
1169
- } | null)[] | null | undefined;
1170
- } | {
1171
- gas_profile?: {
1172
- [x: string]: any;
1173
- cost?: string | undefined;
1174
- cost_category?: string | undefined;
1175
- gas_used?: string | undefined;
1176
- }[] | null | undefined;
1177
- version: 1 | 2 | 3;
1178
- } | {
1179
- gas_profile?: {
1180
- [x: string]: any;
1181
- cost?: string | undefined;
1182
- cost_category?: string | undefined;
1183
- gas_used?: string | undefined;
1184
- }[] | null | undefined;
1185
- version: number;
1186
- } | undefined;
1187
- };
1188
- block_hash: string;
1189
- proof: {
1190
- hash: string;
1191
- direction: "Left" | "Right";
1192
- }[];
1193
- }[];
1194
- }>;
1195
- export declare function wrap_near_withdraw_fun(near: Near, wrap_contractId: string, amount: string): Promise<{
1196
- final_execution_status: "NONE";
1197
- transaction?: {
1198
- hash: string;
1199
- signer_id: string;
1200
- receiver_id: string;
1201
- nonce: number;
1202
- } | undefined;
1203
- status?: "Pending" | "Unknown" | {
1204
- SuccessValue: string;
1205
- } | {
1206
- SuccessReceiptId: string;
1207
- } | {
1208
- Failure: {
1209
- [x: string]: any;
1210
- error_message?: string | undefined;
1211
- error_type?: string | undefined;
1212
- };
1213
- } | undefined;
1214
- transaction_outcome?: {
1215
- id: string;
1216
- outcome: {
1217
- logs: string[];
1218
- receipt_ids: string[];
1219
- gas_burnt: number;
1220
- tokens_burnt: string;
1221
- executor_id: string;
1222
- status: "Pending" | "Unknown" | {
1223
- SuccessValue: string;
1224
- } | {
1225
- SuccessReceiptId: string;
1226
- } | {
1227
- Failure: {
1228
- [x: string]: any;
1229
- error_message?: string | undefined;
1230
- error_type?: string | undefined;
1231
- };
1232
- };
1233
- metadata?: {
1234
- gas_profile?: {
1235
- [x: string]: any;
1236
- cost?: string | undefined;
1237
- cost_category?: string | undefined;
1238
- gas_used?: string | undefined;
1239
- }[] | null | undefined;
1240
- version: 4;
1241
- contracts?: ({
1242
- local: string;
1243
- } | {
1244
- global_hash: string;
1245
- } | {
1246
- global_account_id: string;
1247
- } | null)[] | null | undefined;
1248
- } | {
1249
- gas_profile?: {
1250
- [x: string]: any;
1251
- cost?: string | undefined;
1252
- cost_category?: string | undefined;
1253
- gas_used?: string | undefined;
1254
- }[] | null | undefined;
1255
- version: 1 | 2 | 3;
1256
- } | {
1257
- gas_profile?: {
1258
- [x: string]: any;
1259
- cost?: string | undefined;
1260
- cost_category?: string | undefined;
1261
- gas_used?: string | undefined;
1262
- }[] | null | undefined;
1263
- version: number;
1264
- } | undefined;
1265
- };
1266
- block_hash: string;
1267
- proof: {
1268
- hash: string;
1269
- direction: "Left" | "Right";
1270
- }[];
1271
- } | undefined;
1272
- receipts_outcome?: {
1273
- id: string;
1274
- outcome: {
1275
- logs: string[];
1276
- receipt_ids: string[];
1277
- gas_burnt: number;
1278
- tokens_burnt: string;
1279
- executor_id: string;
1280
- status: "Pending" | "Unknown" | {
1281
- SuccessValue: string;
1282
- } | {
1283
- SuccessReceiptId: string;
1284
- } | {
1285
- Failure: {
1286
- [x: string]: any;
1287
- error_message?: string | undefined;
1288
- error_type?: string | undefined;
1289
- };
1290
- };
1291
- metadata?: {
1292
- gas_profile?: {
1293
- [x: string]: any;
1294
- cost?: string | undefined;
1295
- cost_category?: string | undefined;
1296
- gas_used?: string | undefined;
1297
- }[] | null | undefined;
1298
- version: 4;
1299
- contracts?: ({
1300
- local: string;
1301
- } | {
1302
- global_hash: string;
1303
- } | {
1304
- global_account_id: string;
1305
- } | null)[] | null | undefined;
1306
- } | {
1307
- gas_profile?: {
1308
- [x: string]: any;
1309
- cost?: string | undefined;
1310
- cost_category?: string | undefined;
1311
- gas_used?: string | undefined;
1312
- }[] | null | undefined;
1313
- version: 1 | 2 | 3;
1314
- } | {
1315
- gas_profile?: {
1316
- [x: string]: any;
1317
- cost?: string | undefined;
1318
- cost_category?: string | undefined;
1319
- gas_used?: string | undefined;
1320
- }[] | null | undefined;
1321
- version: number;
1322
- } | undefined;
1323
- };
1324
- block_hash: string;
1325
- proof: {
1326
- hash: string;
1327
- direction: "Left" | "Right";
1328
- }[];
1329
- }[] | undefined;
1330
- } | {
1331
- final_execution_status: "INCLUDED";
1332
- transaction?: {
1333
- hash: string;
1334
- signer_id: string;
1335
- receiver_id: string;
1336
- nonce: number;
1337
- } | undefined;
1338
- status?: "Pending" | "Unknown" | {
1339
- SuccessValue: string;
1340
- } | {
1341
- SuccessReceiptId: string;
1342
- } | {
1343
- Failure: {
1344
- [x: string]: any;
1345
- error_message?: string | undefined;
1346
- error_type?: string | undefined;
1347
- };
1348
- } | undefined;
1349
- transaction_outcome?: {
1350
- id: string;
1351
- outcome: {
1352
- logs: string[];
1353
- receipt_ids: string[];
1354
- gas_burnt: number;
1355
- tokens_burnt: string;
1356
- executor_id: string;
1357
- status: "Pending" | "Unknown" | {
1358
- SuccessValue: string;
1359
- } | {
1360
- SuccessReceiptId: string;
1361
- } | {
1362
- Failure: {
1363
- [x: string]: any;
1364
- error_message?: string | undefined;
1365
- error_type?: string | undefined;
1366
- };
1367
- };
1368
- metadata?: {
1369
- gas_profile?: {
1370
- [x: string]: any;
1371
- cost?: string | undefined;
1372
- cost_category?: string | undefined;
1373
- gas_used?: string | undefined;
1374
- }[] | null | undefined;
1375
- version: 4;
1376
- contracts?: ({
1377
- local: string;
1378
- } | {
1379
- global_hash: string;
1380
- } | {
1381
- global_account_id: string;
1382
- } | null)[] | null | undefined;
1383
- } | {
1384
- gas_profile?: {
1385
- [x: string]: any;
1386
- cost?: string | undefined;
1387
- cost_category?: string | undefined;
1388
- gas_used?: string | undefined;
1389
- }[] | null | undefined;
1390
- version: 1 | 2 | 3;
1391
- } | {
1392
- gas_profile?: {
1393
- [x: string]: any;
1394
- cost?: string | undefined;
1395
- cost_category?: string | undefined;
1396
- gas_used?: string | undefined;
1397
- }[] | null | undefined;
1398
- version: number;
1399
- } | undefined;
1400
- };
1401
- block_hash: string;
1402
- proof: {
1403
- hash: string;
1404
- direction: "Left" | "Right";
1405
- }[];
1406
- } | undefined;
1407
- receipts_outcome?: {
1408
- id: string;
1409
- outcome: {
1410
- logs: string[];
1411
- receipt_ids: string[];
1412
- gas_burnt: number;
1413
- tokens_burnt: string;
1414
- executor_id: string;
1415
- status: "Pending" | "Unknown" | {
1416
- SuccessValue: string;
1417
- } | {
1418
- SuccessReceiptId: string;
1419
- } | {
1420
- Failure: {
1421
- [x: string]: any;
1422
- error_message?: string | undefined;
1423
- error_type?: string | undefined;
1424
- };
1425
- };
1426
- metadata?: {
1427
- gas_profile?: {
1428
- [x: string]: any;
1429
- cost?: string | undefined;
1430
- cost_category?: string | undefined;
1431
- gas_used?: string | undefined;
1432
- }[] | null | undefined;
1433
- version: 4;
1434
- contracts?: ({
1435
- local: string;
1436
- } | {
1437
- global_hash: string;
1438
- } | {
1439
- global_account_id: string;
1440
- } | null)[] | null | undefined;
1441
- } | {
1442
- gas_profile?: {
1443
- [x: string]: any;
1444
- cost?: string | undefined;
1445
- cost_category?: string | undefined;
1446
- gas_used?: string | undefined;
1447
- }[] | null | undefined;
1448
- version: 1 | 2 | 3;
1449
- } | {
1450
- gas_profile?: {
1451
- [x: string]: any;
1452
- cost?: string | undefined;
1453
- cost_category?: string | undefined;
1454
- gas_used?: string | undefined;
1455
- }[] | null | undefined;
1456
- version: number;
1457
- } | undefined;
1458
- };
1459
- block_hash: string;
1460
- proof: {
1461
- hash: string;
1462
- direction: "Left" | "Right";
1463
- }[];
1464
- }[] | undefined;
1465
- } | {
1466
- final_execution_status: "INCLUDED_FINAL";
1467
- transaction?: {
1468
- hash: string;
1469
- signer_id: string;
1470
- receiver_id: string;
1471
- nonce: number;
1472
- } | undefined;
1473
- status?: "Pending" | "Unknown" | {
1474
- SuccessValue: string;
1475
- } | {
1476
- SuccessReceiptId: string;
1477
- } | {
1478
- Failure: {
1479
- [x: string]: any;
1480
- error_message?: string | undefined;
1481
- error_type?: string | undefined;
1482
- };
1483
- } | undefined;
1484
- transaction_outcome?: {
1485
- id: string;
1486
- outcome: {
1487
- logs: string[];
1488
- receipt_ids: string[];
1489
- gas_burnt: number;
1490
- tokens_burnt: string;
1491
- executor_id: string;
1492
- status: "Pending" | "Unknown" | {
1493
- SuccessValue: string;
1494
- } | {
1495
- SuccessReceiptId: string;
1496
- } | {
1497
- Failure: {
1498
- [x: string]: any;
1499
- error_message?: string | undefined;
1500
- error_type?: string | undefined;
1501
- };
1502
- };
1503
- metadata?: {
1504
- gas_profile?: {
1505
- [x: string]: any;
1506
- cost?: string | undefined;
1507
- cost_category?: string | undefined;
1508
- gas_used?: string | undefined;
1509
- }[] | null | undefined;
1510
- version: 4;
1511
- contracts?: ({
1512
- local: string;
1513
- } | {
1514
- global_hash: string;
1515
- } | {
1516
- global_account_id: string;
1517
- } | null)[] | null | undefined;
1518
- } | {
1519
- gas_profile?: {
1520
- [x: string]: any;
1521
- cost?: string | undefined;
1522
- cost_category?: string | undefined;
1523
- gas_used?: string | undefined;
1524
- }[] | null | undefined;
1525
- version: 1 | 2 | 3;
1526
- } | {
1527
- gas_profile?: {
1528
- [x: string]: any;
1529
- cost?: string | undefined;
1530
- cost_category?: string | undefined;
1531
- gas_used?: string | undefined;
1532
- }[] | null | undefined;
1533
- version: number;
1534
- } | undefined;
1535
- };
1536
- block_hash: string;
1537
- proof: {
1538
- hash: string;
1539
- direction: "Left" | "Right";
1540
- }[];
1541
- } | undefined;
1542
- receipts_outcome?: {
1543
- id: string;
1544
- outcome: {
1545
- logs: string[];
1546
- receipt_ids: string[];
1547
- gas_burnt: number;
1548
- tokens_burnt: string;
1549
- executor_id: string;
1550
- status: "Pending" | "Unknown" | {
1551
- SuccessValue: string;
1552
- } | {
1553
- SuccessReceiptId: string;
1554
- } | {
1555
- Failure: {
1556
- [x: string]: any;
1557
- error_message?: string | undefined;
1558
- error_type?: string | undefined;
1559
- };
1560
- };
1561
- metadata?: {
1562
- gas_profile?: {
1563
- [x: string]: any;
1564
- cost?: string | undefined;
1565
- cost_category?: string | undefined;
1566
- gas_used?: string | undefined;
1567
- }[] | null | undefined;
1568
- version: 4;
1569
- contracts?: ({
1570
- local: string;
1571
- } | {
1572
- global_hash: string;
1573
- } | {
1574
- global_account_id: string;
1575
- } | null)[] | null | undefined;
1576
- } | {
1577
- gas_profile?: {
1578
- [x: string]: any;
1579
- cost?: string | undefined;
1580
- cost_category?: string | undefined;
1581
- gas_used?: string | undefined;
1582
- }[] | null | undefined;
1583
- version: 1 | 2 | 3;
1584
- } | {
1585
- gas_profile?: {
1586
- [x: string]: any;
1587
- cost?: string | undefined;
1588
- cost_category?: string | undefined;
1589
- gas_used?: string | undefined;
1590
- }[] | null | undefined;
1591
- version: number;
1592
- } | undefined;
1593
- };
1594
- block_hash: string;
1595
- proof: {
1596
- hash: string;
1597
- direction: "Left" | "Right";
1598
- }[];
1599
- }[] | undefined;
1600
- } | {
1601
- final_execution_status: "EXECUTED_OPTIMISTIC";
1602
- status: "Pending" | "Unknown" | {
1603
- SuccessValue: string;
1604
- } | {
1605
- SuccessReceiptId: string;
1606
- } | {
1607
- Failure: {
1608
- [x: string]: any;
1609
- error_message?: string | undefined;
1610
- error_type?: string | undefined;
1611
- };
1612
- };
1613
- transaction: {
1614
- signer_id: string;
1615
- public_key: string;
1616
- nonce: number;
1617
- receiver_id: string;
1618
- actions: ("CreateAccount" | {
1619
- CreateAccount: Record<string, never>;
1620
- } | {
1621
- Transfer: {
1622
- deposit: string;
1623
- };
1624
- } | {
1625
- FunctionCall: {
1626
- method_name: string;
1627
- args: string;
1628
- gas: number;
1629
- deposit: string;
1630
- };
1631
- } | {
1632
- DeployContract: {
1633
- code: string;
1634
- };
1635
- } | {
1636
- DeployGlobalContract: {
1637
- code: string;
1638
- };
1639
- } | {
1640
- DeployGlobalContractByAccountId: {
1641
- code: string;
1642
- };
1643
- } | {
1644
- Stake: {
1645
- stake: string;
1646
- public_key: string;
1647
- };
1648
- } | {
1649
- AddKey: {
1650
- public_key: string;
1651
- access_key: {
1652
- nonce: number;
1653
- permission: "FullAccess" | {
1654
- FunctionCall: {
1655
- receiver_id: string;
1656
- method_names: string[];
1657
- allowance?: string | null | undefined;
1658
- };
1659
- } | {
1660
- GasKeyFunctionCall: {
1661
- balance: string;
1662
- num_nonces: number;
1663
- receiver_id: string;
1664
- method_names: string[];
1665
- allowance?: string | null | undefined;
1666
- };
1667
- } | {
1668
- GasKeyFullAccess: {
1669
- balance: string;
1670
- num_nonces: number;
1671
- };
1672
- };
1673
- };
1674
- };
1675
- } | {
1676
- DeleteKey: {
1677
- public_key: string;
1678
- };
1679
- } | {
1680
- DeleteAccount: {
1681
- beneficiary_id: string;
1682
- };
1683
- } | {
1684
- UseGlobalContract: {
1685
- code_hash: string;
1686
- };
1687
- } | {
1688
- UseGlobalContractByAccountId: {
1689
- account_id: string;
1690
- };
1691
- } | {
1692
- Delegate: {
1693
- delegate_action: {
1694
- sender_id: string;
1695
- receiver_id: string;
1696
- actions: any[];
1697
- nonce: number;
1698
- max_block_height: number;
1699
- public_key: string;
1700
- };
1701
- signature: string;
1702
- };
1703
- } | {
1704
- DeterministicStateInit: {
1705
- deposit: string;
1706
- };
1707
- } | {
1708
- TransferToGasKey: {
1709
- public_key: string;
1710
- deposit: string;
1711
- };
1712
- } | {
1713
- WithdrawFromGasKey: {
1714
- public_key: string;
1715
- amount: string;
1716
- };
1717
- } | {
1718
- DelegateV2: {
1719
- delegate_action: {
1720
- V2: {
1721
- sender_id: string;
1722
- receiver_id: string;
1723
- actions: any[];
1724
- nonce: {
1725
- Nonce: {
1726
- nonce: number;
1727
- };
1728
- } | {
1729
- GasKeyNonce: {
1730
- nonce: number;
1731
- nonce_index: number;
1732
- };
1733
- };
1734
- max_block_height: number;
1735
- public_key: string;
1736
- };
1737
- };
1738
- signature: string;
1739
- };
1740
- })[];
1741
- signature: string;
1742
- hash: string;
1743
- priority_fee?: number | undefined;
1744
- nonce_mode?: "monotonic" | "strict" | null | undefined;
1745
- };
1746
- transaction_outcome: {
1747
- id: string;
1748
- outcome: {
1749
- logs: string[];
1750
- receipt_ids: string[];
1751
- gas_burnt: number;
1752
- tokens_burnt: string;
1753
- executor_id: string;
1754
- status: "Pending" | "Unknown" | {
1755
- SuccessValue: string;
1756
- } | {
1757
- SuccessReceiptId: string;
1758
- } | {
1759
- Failure: {
1760
- [x: string]: any;
1761
- error_message?: string | undefined;
1762
- error_type?: string | undefined;
1763
- };
1764
- };
1765
- metadata?: {
1766
- gas_profile?: {
1767
- [x: string]: any;
1768
- cost?: string | undefined;
1769
- cost_category?: string | undefined;
1770
- gas_used?: string | undefined;
1771
- }[] | null | undefined;
1772
- version: 4;
1773
- contracts?: ({
1774
- local: string;
1775
- } | {
1776
- global_hash: string;
1777
- } | {
1778
- global_account_id: string;
1779
- } | null)[] | null | undefined;
1780
- } | {
1781
- gas_profile?: {
1782
- [x: string]: any;
1783
- cost?: string | undefined;
1784
- cost_category?: string | undefined;
1785
- gas_used?: string | undefined;
1786
- }[] | null | undefined;
1787
- version: 1 | 2 | 3;
1788
- } | {
1789
- gas_profile?: {
1790
- [x: string]: any;
1791
- cost?: string | undefined;
1792
- cost_category?: string | undefined;
1793
- gas_used?: string | undefined;
1794
- }[] | null | undefined;
1795
- version: number;
1796
- } | undefined;
1797
- };
1798
- block_hash: string;
1799
- proof: {
1800
- hash: string;
1801
- direction: "Left" | "Right";
1802
- }[];
1803
- };
1804
- receipts_outcome: {
1805
- id: string;
1806
- outcome: {
1807
- logs: string[];
1808
- receipt_ids: string[];
1809
- gas_burnt: number;
1810
- tokens_burnt: string;
1811
- executor_id: string;
1812
- status: "Pending" | "Unknown" | {
1813
- SuccessValue: string;
1814
- } | {
1815
- SuccessReceiptId: string;
1816
- } | {
1817
- Failure: {
1818
- [x: string]: any;
1819
- error_message?: string | undefined;
1820
- error_type?: string | undefined;
1821
- };
1822
- };
1823
- metadata?: {
1824
- gas_profile?: {
1825
- [x: string]: any;
1826
- cost?: string | undefined;
1827
- cost_category?: string | undefined;
1828
- gas_used?: string | undefined;
1829
- }[] | null | undefined;
1830
- version: 4;
1831
- contracts?: ({
1832
- local: string;
1833
- } | {
1834
- global_hash: string;
1835
- } | {
1836
- global_account_id: string;
1837
- } | null)[] | null | undefined;
1838
- } | {
1839
- gas_profile?: {
1840
- [x: string]: any;
1841
- cost?: string | undefined;
1842
- cost_category?: string | undefined;
1843
- gas_used?: string | undefined;
1844
- }[] | null | undefined;
1845
- version: 1 | 2 | 3;
1846
- } | {
1847
- gas_profile?: {
1848
- [x: string]: any;
1849
- cost?: string | undefined;
1850
- cost_category?: string | undefined;
1851
- gas_used?: string | undefined;
1852
- }[] | null | undefined;
1853
- version: number;
1854
- } | undefined;
1855
- };
1856
- block_hash: string;
1857
- proof: {
1858
- hash: string;
1859
- direction: "Left" | "Right";
1860
- }[];
1861
- }[];
1862
- } | {
1863
- final_execution_status: "EXECUTED";
1864
- status: "Pending" | "Unknown" | {
1865
- SuccessValue: string;
1866
- } | {
1867
- SuccessReceiptId: string;
1868
- } | {
1869
- Failure: {
1870
- [x: string]: any;
1871
- error_message?: string | undefined;
1872
- error_type?: string | undefined;
1873
- };
1874
- };
1875
- transaction: {
1876
- signer_id: string;
1877
- public_key: string;
1878
- nonce: number;
1879
- receiver_id: string;
1880
- actions: ("CreateAccount" | {
1881
- CreateAccount: Record<string, never>;
1882
- } | {
1883
- Transfer: {
1884
- deposit: string;
1885
- };
1886
- } | {
1887
- FunctionCall: {
1888
- method_name: string;
1889
- args: string;
1890
- gas: number;
1891
- deposit: string;
1892
- };
1893
- } | {
1894
- DeployContract: {
1895
- code: string;
1896
- };
1897
- } | {
1898
- DeployGlobalContract: {
1899
- code: string;
1900
- };
1901
- } | {
1902
- DeployGlobalContractByAccountId: {
1903
- code: string;
1904
- };
1905
- } | {
1906
- Stake: {
1907
- stake: string;
1908
- public_key: string;
1909
- };
1910
- } | {
1911
- AddKey: {
1912
- public_key: string;
1913
- access_key: {
1914
- nonce: number;
1915
- permission: "FullAccess" | {
1916
- FunctionCall: {
1917
- receiver_id: string;
1918
- method_names: string[];
1919
- allowance?: string | null | undefined;
1920
- };
1921
- } | {
1922
- GasKeyFunctionCall: {
1923
- balance: string;
1924
- num_nonces: number;
1925
- receiver_id: string;
1926
- method_names: string[];
1927
- allowance?: string | null | undefined;
1928
- };
1929
- } | {
1930
- GasKeyFullAccess: {
1931
- balance: string;
1932
- num_nonces: number;
1933
- };
1934
- };
1935
- };
1936
- };
1937
- } | {
1938
- DeleteKey: {
1939
- public_key: string;
1940
- };
1941
- } | {
1942
- DeleteAccount: {
1943
- beneficiary_id: string;
1944
- };
1945
- } | {
1946
- UseGlobalContract: {
1947
- code_hash: string;
1948
- };
1949
- } | {
1950
- UseGlobalContractByAccountId: {
1951
- account_id: string;
1952
- };
1953
- } | {
1954
- Delegate: {
1955
- delegate_action: {
1956
- sender_id: string;
1957
- receiver_id: string;
1958
- actions: any[];
1959
- nonce: number;
1960
- max_block_height: number;
1961
- public_key: string;
1962
- };
1963
- signature: string;
1964
- };
1965
- } | {
1966
- DeterministicStateInit: {
1967
- deposit: string;
1968
- };
1969
- } | {
1970
- TransferToGasKey: {
1971
- public_key: string;
1972
- deposit: string;
1973
- };
1974
- } | {
1975
- WithdrawFromGasKey: {
1976
- public_key: string;
1977
- amount: string;
1978
- };
1979
- } | {
1980
- DelegateV2: {
1981
- delegate_action: {
1982
- V2: {
1983
- sender_id: string;
1984
- receiver_id: string;
1985
- actions: any[];
1986
- nonce: {
1987
- Nonce: {
1988
- nonce: number;
1989
- };
1990
- } | {
1991
- GasKeyNonce: {
1992
- nonce: number;
1993
- nonce_index: number;
1994
- };
1995
- };
1996
- max_block_height: number;
1997
- public_key: string;
1998
- };
1999
- };
2000
- signature: string;
2001
- };
2002
- })[];
2003
- signature: string;
2004
- hash: string;
2005
- priority_fee?: number | undefined;
2006
- nonce_mode?: "monotonic" | "strict" | null | undefined;
2007
- };
2008
- transaction_outcome: {
2009
- id: string;
2010
- outcome: {
2011
- logs: string[];
2012
- receipt_ids: string[];
2013
- gas_burnt: number;
2014
- tokens_burnt: string;
2015
- executor_id: string;
2016
- status: "Pending" | "Unknown" | {
2017
- SuccessValue: string;
2018
- } | {
2019
- SuccessReceiptId: string;
2020
- } | {
2021
- Failure: {
2022
- [x: string]: any;
2023
- error_message?: string | undefined;
2024
- error_type?: string | undefined;
2025
- };
2026
- };
2027
- metadata?: {
2028
- gas_profile?: {
2029
- [x: string]: any;
2030
- cost?: string | undefined;
2031
- cost_category?: string | undefined;
2032
- gas_used?: string | undefined;
2033
- }[] | null | undefined;
2034
- version: 4;
2035
- contracts?: ({
2036
- local: string;
2037
- } | {
2038
- global_hash: string;
2039
- } | {
2040
- global_account_id: string;
2041
- } | null)[] | null | undefined;
2042
- } | {
2043
- gas_profile?: {
2044
- [x: string]: any;
2045
- cost?: string | undefined;
2046
- cost_category?: string | undefined;
2047
- gas_used?: string | undefined;
2048
- }[] | null | undefined;
2049
- version: 1 | 2 | 3;
2050
- } | {
2051
- gas_profile?: {
2052
- [x: string]: any;
2053
- cost?: string | undefined;
2054
- cost_category?: string | undefined;
2055
- gas_used?: string | undefined;
2056
- }[] | null | undefined;
2057
- version: number;
2058
- } | undefined;
2059
- };
2060
- block_hash: string;
2061
- proof: {
2062
- hash: string;
2063
- direction: "Left" | "Right";
2064
- }[];
2065
- };
2066
- receipts_outcome: {
2067
- id: string;
2068
- outcome: {
2069
- logs: string[];
2070
- receipt_ids: string[];
2071
- gas_burnt: number;
2072
- tokens_burnt: string;
2073
- executor_id: string;
2074
- status: "Pending" | "Unknown" | {
2075
- SuccessValue: string;
2076
- } | {
2077
- SuccessReceiptId: string;
2078
- } | {
2079
- Failure: {
2080
- [x: string]: any;
2081
- error_message?: string | undefined;
2082
- error_type?: string | undefined;
2083
- };
2084
- };
2085
- metadata?: {
2086
- gas_profile?: {
2087
- [x: string]: any;
2088
- cost?: string | undefined;
2089
- cost_category?: string | undefined;
2090
- gas_used?: string | undefined;
2091
- }[] | null | undefined;
2092
- version: 4;
2093
- contracts?: ({
2094
- local: string;
2095
- } | {
2096
- global_hash: string;
2097
- } | {
2098
- global_account_id: string;
2099
- } | null)[] | null | undefined;
2100
- } | {
2101
- gas_profile?: {
2102
- [x: string]: any;
2103
- cost?: string | undefined;
2104
- cost_category?: string | undefined;
2105
- gas_used?: string | undefined;
2106
- }[] | null | undefined;
2107
- version: 1 | 2 | 3;
2108
- } | {
2109
- gas_profile?: {
2110
- [x: string]: any;
2111
- cost?: string | undefined;
2112
- cost_category?: string | undefined;
2113
- gas_used?: string | undefined;
2114
- }[] | null | undefined;
2115
- version: number;
2116
- } | undefined;
2117
- };
2118
- block_hash: string;
2119
- proof: {
2120
- hash: string;
2121
- direction: "Left" | "Right";
2122
- }[];
2123
- }[];
2124
- } | {
2125
- final_execution_status: "FINAL";
2126
- status: "Pending" | "Unknown" | {
2127
- SuccessValue: string;
2128
- } | {
2129
- SuccessReceiptId: string;
2130
- } | {
2131
- Failure: {
2132
- [x: string]: any;
2133
- error_message?: string | undefined;
2134
- error_type?: string | undefined;
2135
- };
2136
- };
2137
- transaction: {
2138
- signer_id: string;
2139
- public_key: string;
2140
- nonce: number;
2141
- receiver_id: string;
2142
- actions: ("CreateAccount" | {
2143
- CreateAccount: Record<string, never>;
2144
- } | {
2145
- Transfer: {
2146
- deposit: string;
2147
- };
2148
- } | {
2149
- FunctionCall: {
2150
- method_name: string;
2151
- args: string;
2152
- gas: number;
2153
- deposit: string;
2154
- };
2155
- } | {
2156
- DeployContract: {
2157
- code: string;
2158
- };
2159
- } | {
2160
- DeployGlobalContract: {
2161
- code: string;
2162
- };
2163
- } | {
2164
- DeployGlobalContractByAccountId: {
2165
- code: string;
2166
- };
2167
- } | {
2168
- Stake: {
2169
- stake: string;
2170
- public_key: string;
2171
- };
2172
- } | {
2173
- AddKey: {
2174
- public_key: string;
2175
- access_key: {
2176
- nonce: number;
2177
- permission: "FullAccess" | {
2178
- FunctionCall: {
2179
- receiver_id: string;
2180
- method_names: string[];
2181
- allowance?: string | null | undefined;
2182
- };
2183
- } | {
2184
- GasKeyFunctionCall: {
2185
- balance: string;
2186
- num_nonces: number;
2187
- receiver_id: string;
2188
- method_names: string[];
2189
- allowance?: string | null | undefined;
2190
- };
2191
- } | {
2192
- GasKeyFullAccess: {
2193
- balance: string;
2194
- num_nonces: number;
2195
- };
2196
- };
2197
- };
2198
- };
2199
- } | {
2200
- DeleteKey: {
2201
- public_key: string;
2202
- };
2203
- } | {
2204
- DeleteAccount: {
2205
- beneficiary_id: string;
2206
- };
2207
- } | {
2208
- UseGlobalContract: {
2209
- code_hash: string;
2210
- };
2211
- } | {
2212
- UseGlobalContractByAccountId: {
2213
- account_id: string;
2214
- };
2215
- } | {
2216
- Delegate: {
2217
- delegate_action: {
2218
- sender_id: string;
2219
- receiver_id: string;
2220
- actions: any[];
2221
- nonce: number;
2222
- max_block_height: number;
2223
- public_key: string;
2224
- };
2225
- signature: string;
2226
- };
2227
- } | {
2228
- DeterministicStateInit: {
2229
- deposit: string;
2230
- };
2231
- } | {
2232
- TransferToGasKey: {
2233
- public_key: string;
2234
- deposit: string;
2235
- };
2236
- } | {
2237
- WithdrawFromGasKey: {
2238
- public_key: string;
2239
- amount: string;
2240
- };
2241
- } | {
2242
- DelegateV2: {
2243
- delegate_action: {
2244
- V2: {
2245
- sender_id: string;
2246
- receiver_id: string;
2247
- actions: any[];
2248
- nonce: {
2249
- Nonce: {
2250
- nonce: number;
2251
- };
2252
- } | {
2253
- GasKeyNonce: {
2254
- nonce: number;
2255
- nonce_index: number;
2256
- };
2257
- };
2258
- max_block_height: number;
2259
- public_key: string;
2260
- };
2261
- };
2262
- signature: string;
2263
- };
2264
- })[];
2265
- signature: string;
2266
- hash: string;
2267
- priority_fee?: number | undefined;
2268
- nonce_mode?: "monotonic" | "strict" | null | undefined;
2269
- };
2270
- transaction_outcome: {
2271
- id: string;
2272
- outcome: {
2273
- logs: string[];
2274
- receipt_ids: string[];
2275
- gas_burnt: number;
2276
- tokens_burnt: string;
2277
- executor_id: string;
2278
- status: "Pending" | "Unknown" | {
2279
- SuccessValue: string;
2280
- } | {
2281
- SuccessReceiptId: string;
2282
- } | {
2283
- Failure: {
2284
- [x: string]: any;
2285
- error_message?: string | undefined;
2286
- error_type?: string | undefined;
2287
- };
2288
- };
2289
- metadata?: {
2290
- gas_profile?: {
2291
- [x: string]: any;
2292
- cost?: string | undefined;
2293
- cost_category?: string | undefined;
2294
- gas_used?: string | undefined;
2295
- }[] | null | undefined;
2296
- version: 4;
2297
- contracts?: ({
2298
- local: string;
2299
- } | {
2300
- global_hash: string;
2301
- } | {
2302
- global_account_id: string;
2303
- } | null)[] | null | undefined;
2304
- } | {
2305
- gas_profile?: {
2306
- [x: string]: any;
2307
- cost?: string | undefined;
2308
- cost_category?: string | undefined;
2309
- gas_used?: string | undefined;
2310
- }[] | null | undefined;
2311
- version: 1 | 2 | 3;
2312
- } | {
2313
- gas_profile?: {
2314
- [x: string]: any;
2315
- cost?: string | undefined;
2316
- cost_category?: string | undefined;
2317
- gas_used?: string | undefined;
2318
- }[] | null | undefined;
2319
- version: number;
2320
- } | undefined;
2321
- };
2322
- block_hash: string;
2323
- proof: {
2324
- hash: string;
2325
- direction: "Left" | "Right";
2326
- }[];
2327
- };
2328
- receipts_outcome: {
2329
- id: string;
2330
- outcome: {
2331
- logs: string[];
2332
- receipt_ids: string[];
2333
- gas_burnt: number;
2334
- tokens_burnt: string;
2335
- executor_id: string;
2336
- status: "Pending" | "Unknown" | {
2337
- SuccessValue: string;
2338
- } | {
2339
- SuccessReceiptId: string;
2340
- } | {
2341
- Failure: {
2342
- [x: string]: any;
2343
- error_message?: string | undefined;
2344
- error_type?: string | undefined;
2345
- };
2346
- };
2347
- metadata?: {
2348
- gas_profile?: {
2349
- [x: string]: any;
2350
- cost?: string | undefined;
2351
- cost_category?: string | undefined;
2352
- gas_used?: string | undefined;
2353
- }[] | null | undefined;
2354
- version: 4;
2355
- contracts?: ({
2356
- local: string;
2357
- } | {
2358
- global_hash: string;
2359
- } | {
2360
- global_account_id: string;
2361
- } | null)[] | null | undefined;
2362
- } | {
2363
- gas_profile?: {
2364
- [x: string]: any;
2365
- cost?: string | undefined;
2366
- cost_category?: string | undefined;
2367
- gas_used?: string | undefined;
2368
- }[] | null | undefined;
2369
- version: 1 | 2 | 3;
2370
- } | {
2371
- gas_profile?: {
2372
- [x: string]: any;
2373
- cost?: string | undefined;
2374
- cost_category?: string | undefined;
2375
- gas_used?: string | undefined;
2376
- }[] | null | undefined;
2377
- version: number;
2378
- } | undefined;
2379
- };
2380
- block_hash: string;
2381
- proof: {
2382
- hash: string;
2383
- direction: "Left" | "Right";
2384
- }[];
2385
- }[];
2386
- }>;
2387
- //# sourceMappingURL=wrap_near.d.ts.map