@near-kit-tool-box/fun 0.0.1

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 (55) hide show
  1. package/LICENSE +9 -0
  2. package/README.md +39 -0
  3. package/dist/fun/ft/ft_fun.d.ts +1600 -0
  4. package/dist/fun/ft/ft_fun.d.ts.map +1 -0
  5. package/dist/fun/ft/ft_fun.js +35 -0
  6. package/dist/fun/ft/ft_fun.js.map +1 -0
  7. package/dist/fun/greeting/greeting_get_fun.d.ts +3 -0
  8. package/dist/fun/greeting/greeting_get_fun.d.ts.map +1 -0
  9. package/dist/fun/greeting/greeting_get_fun.js +9 -0
  10. package/dist/fun/greeting/greeting_get_fun.js.map +1 -0
  11. package/dist/fun/greeting/greeting_set_fun.d.ts +535 -0
  12. package/dist/fun/greeting/greeting_set_fun.d.ts.map +1 -0
  13. package/dist/fun/greeting/greeting_set_fun.js +9 -0
  14. package/dist/fun/greeting/greeting_set_fun.js.map +1 -0
  15. package/dist/fun/near/wrap_near.d.ts +1067 -0
  16. package/dist/fun/near/wrap_near.d.ts.map +1 -0
  17. package/dist/fun/near/wrap_near.js +16 -0
  18. package/dist/fun/near/wrap_near.js.map +1 -0
  19. package/dist/fun/rhea/rhea_call_fun.d.ts +2132 -0
  20. package/dist/fun/rhea/rhea_call_fun.d.ts.map +1 -0
  21. package/dist/fun/rhea/rhea_call_fun.js +43 -0
  22. package/dist/fun/rhea/rhea_call_fun.js.map +1 -0
  23. package/dist/fun/rhea/rhea_view_fun.d.ts +10 -0
  24. package/dist/fun/rhea/rhea_view_fun.d.ts.map +1 -0
  25. package/dist/fun/rhea/rhea_view_fun.js +56 -0
  26. package/dist/fun/rhea/rhea_view_fun.js.map +1 -0
  27. package/dist/index.d.ts +11 -0
  28. package/dist/index.d.ts.map +1 -0
  29. package/dist/index.js +20 -0
  30. package/dist/index.js.map +1 -0
  31. package/dist/lib/contract_ft_args.d.ts +7 -0
  32. package/dist/lib/contract_ft_args.d.ts.map +1 -0
  33. package/dist/lib/contract_ft_args.js +3 -0
  34. package/dist/lib/contract_ft_args.js.map +1 -0
  35. package/dist/lib/contract_greeting_args.d.ts +4 -0
  36. package/dist/lib/contract_greeting_args.d.ts.map +1 -0
  37. package/dist/lib/contract_greeting_args.js +3 -0
  38. package/dist/lib/contract_greeting_args.js.map +1 -0
  39. package/dist/lib/contract_greeting_const.d.ts +5 -0
  40. package/dist/lib/contract_greeting_const.d.ts.map +1 -0
  41. package/dist/lib/contract_greeting_const.js +8 -0
  42. package/dist/lib/contract_greeting_const.js.map +1 -0
  43. package/dist/lib/contract_rhea_args.d.ts +28 -0
  44. package/dist/lib/contract_rhea_args.d.ts.map +1 -0
  45. package/dist/lib/contract_rhea_args.js +11 -0
  46. package/dist/lib/contract_rhea_args.js.map +1 -0
  47. package/dist/types/AmountInput.d.ts +2 -0
  48. package/dist/types/AmountInput.d.ts.map +1 -0
  49. package/dist/types/AmountInput.js +3 -0
  50. package/dist/types/AmountInput.js.map +1 -0
  51. package/dist/types/rhea_ref_types.d.ts +33 -0
  52. package/dist/types/rhea_ref_types.d.ts.map +1 -0
  53. package/dist/types/rhea_ref_types.js +15 -0
  54. package/dist/types/rhea_ref_types.js.map +1 -0
  55. package/package.json +48 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wrap_near.d.ts","sourceRoot":"","sources":["../../../src/fun/near/wrap_near.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAGhC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,wBAAsB,qBAAqB,CACzC,IAAI,EAAE,IAAI,EACV,eAAe,EAAE,MAAM,EACvB,MAAM,EAAE,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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ASf"}
@@ -0,0 +1,16 @@
1
+ import { Near } from "near-kit";
2
+ import { wrap_near_methods_const } from "@sleet-js/wrap-near-contract-methods-const";
3
+ // ===========================================
4
+ export async function wrap_near_deposit_fun(near, wrap_contractId, amount) {
5
+ // near_deposit takes no args, just attachedDeposit
6
+ const result = await near.call(wrap_contractId, wrap_near_methods_const.near_deposit, {}, // no args
7
+ { attachedDeposit: amount });
8
+ return result;
9
+ }
10
+ // ===========================================
11
+ export async function wrap_near_withdraw_fun(near, wrap_contractId, amount) {
12
+ const result = await near.call(wrap_contractId, wrap_near_methods_const.near_withdraw, { amount: amount }, { attachedDeposit: "1 yocto" });
13
+ return result;
14
+ }
15
+ // ===========================================
16
+ //# sourceMappingURL=wrap_near.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wrap_near.js","sourceRoot":"","sources":["../../../src/fun/near/wrap_near.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAEhC,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AAErF,8CAA8C;AAC9C,MAAM,CAAC,KAAK,UAAU,qBAAqB,CACzC,IAAU,EACV,eAAuB,EACvB,MAAmB;IAEnB,mDAAmD;IACnD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,IAAI,CAC5B,eAAe,EACf,uBAAuB,CAAC,YAAY,EACpC,EAAE,EAAE,UAAU;IACd,EAAE,eAAe,EAAE,MAAM,EAAE,CAC5B,CAAC;IACF,OAAO,MAA+B,CAAC;AACzC,CAAC;AACD,8CAA8C;AAC9C,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAC1C,IAAU,EACV,eAAuB,EACvB,MAAc;IAEd,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,IAAI,CAC5B,eAAe,EACf,uBAAuB,CAAC,aAAa,EACrC,EAAE,MAAM,EAAE,MAAM,EAAE,EAClB,EAAE,eAAe,EAAE,SAAS,EAAE,CAC/B,CAAC;IACF,OAAO,MAA+B,CAAC;AACzC,CAAC;AACD,8CAA8C"}