@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.
- package/LICENSE +9 -0
- package/README.md +39 -0
- package/dist/fun/ft/ft_fun.d.ts +1600 -0
- package/dist/fun/ft/ft_fun.d.ts.map +1 -0
- package/dist/fun/ft/ft_fun.js +35 -0
- package/dist/fun/ft/ft_fun.js.map +1 -0
- package/dist/fun/greeting/greeting_get_fun.d.ts +3 -0
- package/dist/fun/greeting/greeting_get_fun.d.ts.map +1 -0
- package/dist/fun/greeting/greeting_get_fun.js +9 -0
- package/dist/fun/greeting/greeting_get_fun.js.map +1 -0
- package/dist/fun/greeting/greeting_set_fun.d.ts +535 -0
- package/dist/fun/greeting/greeting_set_fun.d.ts.map +1 -0
- package/dist/fun/greeting/greeting_set_fun.js +9 -0
- package/dist/fun/greeting/greeting_set_fun.js.map +1 -0
- package/dist/fun/near/wrap_near.d.ts +1067 -0
- package/dist/fun/near/wrap_near.d.ts.map +1 -0
- package/dist/fun/near/wrap_near.js +16 -0
- package/dist/fun/near/wrap_near.js.map +1 -0
- package/dist/fun/rhea/rhea_call_fun.d.ts +2132 -0
- package/dist/fun/rhea/rhea_call_fun.d.ts.map +1 -0
- package/dist/fun/rhea/rhea_call_fun.js +43 -0
- package/dist/fun/rhea/rhea_call_fun.js.map +1 -0
- package/dist/fun/rhea/rhea_view_fun.d.ts +10 -0
- package/dist/fun/rhea/rhea_view_fun.d.ts.map +1 -0
- package/dist/fun/rhea/rhea_view_fun.js +56 -0
- package/dist/fun/rhea/rhea_view_fun.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/contract_ft_args.d.ts +7 -0
- package/dist/lib/contract_ft_args.d.ts.map +1 -0
- package/dist/lib/contract_ft_args.js +3 -0
- package/dist/lib/contract_ft_args.js.map +1 -0
- package/dist/lib/contract_greeting_args.d.ts +4 -0
- package/dist/lib/contract_greeting_args.d.ts.map +1 -0
- package/dist/lib/contract_greeting_args.js +3 -0
- package/dist/lib/contract_greeting_args.js.map +1 -0
- package/dist/lib/contract_greeting_const.d.ts +5 -0
- package/dist/lib/contract_greeting_const.d.ts.map +1 -0
- package/dist/lib/contract_greeting_const.js +8 -0
- package/dist/lib/contract_greeting_const.js.map +1 -0
- package/dist/lib/contract_rhea_args.d.ts +28 -0
- package/dist/lib/contract_rhea_args.d.ts.map +1 -0
- package/dist/lib/contract_rhea_args.js +11 -0
- package/dist/lib/contract_rhea_args.js.map +1 -0
- package/dist/types/AmountInput.d.ts +2 -0
- package/dist/types/AmountInput.d.ts.map +1 -0
- package/dist/types/AmountInput.js +3 -0
- package/dist/types/AmountInput.js.map +1 -0
- package/dist/types/rhea_ref_types.d.ts +33 -0
- package/dist/types/rhea_ref_types.d.ts.map +1 -0
- package/dist/types/rhea_ref_types.js +15 -0
- package/dist/types/rhea_ref_types.js.map +1 -0
- 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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================================
|
|
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"}
|