@sleet-js/wrap-near-contract-methods-const 0.0.1 → 0.0.6
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/README.md +2 -3
- package/{index.ts → dist/index.js} +8 -5
- package/package.json +11 -1
- package/tsconfig.json +0 -28
package/README.md
CHANGED
|
@@ -9,11 +9,10 @@ const's for wrap.near smart contract methods
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
### DEV
|
|
12
|
-
to
|
|
12
|
+
to develop and publish this package
|
|
13
13
|
```bash
|
|
14
14
|
bun install
|
|
15
|
-
bun run
|
|
16
|
-
bun build index.ts
|
|
15
|
+
bun run build
|
|
17
16
|
bun publish --dry-run
|
|
18
17
|
bunx npm login
|
|
19
18
|
bun publish --access public
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
|
|
1
|
+
// @bun
|
|
2
|
+
// index.ts
|
|
3
|
+
var wrap_near_methods_const = {
|
|
4
4
|
storage_minimum_balance: "storage_minimum_balance",
|
|
5
5
|
near_deposit: "near_deposit",
|
|
6
6
|
near_withdraw: "near_withdraw",
|
|
@@ -15,5 +15,8 @@ export const wrap_near_methods_const = {
|
|
|
15
15
|
storage_unregister: "storage_unregister",
|
|
16
16
|
storage_balance_bounds: "storage_balance_bounds",
|
|
17
17
|
storage_balance_of: "storage_balance_of",
|
|
18
|
-
ft_metadata: "ft_metadata"
|
|
19
|
-
}
|
|
18
|
+
ft_metadata: "ft_metadata"
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
wrap_near_methods_const
|
|
22
|
+
};
|
package/package.json
CHANGED
|
@@ -1,14 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sleet-js/wrap-near-contract-methods-const",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
|
+
"description": "TypeScript constants for wrapNEAR smart contract methods including NEAR deposit/withdrawal and FT operations",
|
|
4
5
|
"repository": {
|
|
5
6
|
"type": "git",
|
|
6
7
|
"url": "https://github.com/sleet-js/smart-contract-methods-const.git"
|
|
7
8
|
},
|
|
8
9
|
"homepage": "https://sleet-js.near.page",
|
|
9
10
|
"license": "MIT",
|
|
11
|
+
"main": "dist/index.js",
|
|
10
12
|
"module": "index.ts",
|
|
13
|
+
"types": "dist/index.d.ts",
|
|
11
14
|
"type": "module",
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "bun build index.ts --outdir dist --target bun",
|
|
20
|
+
"prepublishOnly": "bun run build"
|
|
21
|
+
},
|
|
12
22
|
"devDependencies": {
|
|
13
23
|
"@types/bun": "latest"
|
|
14
24
|
},
|
package/tsconfig.json
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
// Environment setup & latest features
|
|
4
|
-
"lib": ["ESNext"],
|
|
5
|
-
"target": "ESNext",
|
|
6
|
-
"module": "ESNext",
|
|
7
|
-
"moduleDetection": "force",
|
|
8
|
-
"jsx": "react-jsx",
|
|
9
|
-
"allowJs": true,
|
|
10
|
-
|
|
11
|
-
// Bundler mode
|
|
12
|
-
"moduleResolution": "bundler",
|
|
13
|
-
"allowImportingTsExtensions": true,
|
|
14
|
-
"verbatimModuleSyntax": true,
|
|
15
|
-
"noEmit": true,
|
|
16
|
-
|
|
17
|
-
// Best practices
|
|
18
|
-
"strict": true,
|
|
19
|
-
"skipLibCheck": true,
|
|
20
|
-
"noFallthroughCasesInSwitch": true,
|
|
21
|
-
"noUncheckedIndexedAccess": true,
|
|
22
|
-
|
|
23
|
-
// Some stricter flags (disabled by default)
|
|
24
|
-
"noUnusedLocals": false,
|
|
25
|
-
"noUnusedParameters": false,
|
|
26
|
-
"noPropertyAccessFromIndexSignature": false
|
|
27
|
-
}
|
|
28
|
-
}
|