@sleet-js/social-near-contract-methods-const 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 ADDED
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 sleet.near
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # social-near-contract-methods-const
2
+ const's for social.near smart contract methods
3
+
4
+
5
+ ℹ️ can be used with any near api js option.
6
+
7
+
8
+ ---
9
+
10
+
11
+ ### DEV
12
+ to devlop and publish this package
13
+ ```bash
14
+ bun install
15
+ bun run index.ts
16
+ bun build index.ts
17
+ bun publish --dry-run
18
+ bunx npm login
19
+ bun publish --access public
20
+ ```
21
+
22
+ ---
23
+
24
+ ### HOW TO USE
25
+
26
+ add
27
+ ```sh
28
+ npm i @sleet-js/social-near-contract-methods-const
29
+ bun add @sleet-js/social-near-contract-methods-const
30
+ ```
31
+
32
+ import
33
+ ```js
34
+ import { social_near_methods_const } from '@sleet-js/social-near-contract-methods-const';
35
+ ```
36
+
37
+
38
+
39
+ ---
40
+
41
+
42
+
43
+ copyright 2026 by sleet.near
package/index.ts ADDED
@@ -0,0 +1,33 @@
1
+ // =======================================
2
+ // ====== social_near_methods_const ======
3
+ export const social_near_methods_const = {
4
+ storage_deposit: "storage_deposit",
5
+ storage_withdraw: "storage_withdraw",
6
+ storage_unregister: "storage_unregister",
7
+ storage_balance_bounds: "storage_balance_bounds",
8
+ storage_balance_of: "storage_balance_of",
9
+ get_accounts: "get_accounts",
10
+ get_account: "get_account",
11
+ get_account_count: "get_account_count",
12
+ get: "get",
13
+ keys: "keys",
14
+ set: "set",
15
+ get_node_count: "get_node_count",
16
+ get_nodes: "get_nodes",
17
+ get_node: "get_node",
18
+ grant_write_permission: "grant_write_permission",
19
+ debug_get_permissions: "debug_get_permissions",
20
+ is_write_permission_granted: "is_write_permission_granted",
21
+ migrate_state: "migrate_state",
22
+ genesis_init_node_count: "genesis_init_node_count",
23
+ genesis_init_nodes: "genesis_init_nodes",
24
+ genesis_init_accounts: "genesis_init_accounts",
25
+ get_version: "get_version",
26
+ get_shared_storage_pool: "get_shared_storage_pool",
27
+ shared_storage_pool_deposit: "shared_storage_pool_deposit",
28
+ share_storage: "share_storage",
29
+ get_account_storage: "get_account_storage",
30
+ new: "new",
31
+ set_status: "set_status",
32
+ get_status: "get_status",
33
+ } as const;
package/package.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "@sleet-js/social-near-contract-methods-const",
3
+ "version": "0.0.1",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "https://github.com/sleet-js/smart-contract-methods-const.git"
7
+ },
8
+ "homepage": "https://sleet-js.near.page",
9
+ "license": "MIT",
10
+ "module": "index.ts",
11
+ "type": "module",
12
+ "devDependencies": {
13
+ "@types/bun": "latest"
14
+ },
15
+ "peerDependencies": {
16
+ "typescript": "^5"
17
+ }
18
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,28 @@
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
+ }