@sleet-js/social-near-contract-methods-const 0.0.1 → 0.0.7

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 CHANGED
@@ -9,11 +9,10 @@ const's for social.near smart contract methods
9
9
 
10
10
 
11
11
  ### DEV
12
- to devlop and publish this package
12
+ to develop and publish this package
13
13
  ```bash
14
14
  bun install
15
- bun run index.ts
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
@@ -0,0 +1,31 @@
1
+ export declare const social_near_methods_const: {
2
+ readonly storage_deposit: "storage_deposit";
3
+ readonly storage_withdraw: "storage_withdraw";
4
+ readonly storage_unregister: "storage_unregister";
5
+ readonly storage_balance_bounds: "storage_balance_bounds";
6
+ readonly storage_balance_of: "storage_balance_of";
7
+ readonly get_accounts: "get_accounts";
8
+ readonly get_account: "get_account";
9
+ readonly get_account_count: "get_account_count";
10
+ readonly get: "get";
11
+ readonly keys: "keys";
12
+ readonly set: "set";
13
+ readonly get_node_count: "get_node_count";
14
+ readonly get_nodes: "get_nodes";
15
+ readonly get_node: "get_node";
16
+ readonly grant_write_permission: "grant_write_permission";
17
+ readonly debug_get_permissions: "debug_get_permissions";
18
+ readonly is_write_permission_granted: "is_write_permission_granted";
19
+ readonly migrate_state: "migrate_state";
20
+ readonly genesis_init_node_count: "genesis_init_node_count";
21
+ readonly genesis_init_nodes: "genesis_init_nodes";
22
+ readonly genesis_init_accounts: "genesis_init_accounts";
23
+ readonly get_version: "get_version";
24
+ readonly get_shared_storage_pool: "get_shared_storage_pool";
25
+ readonly shared_storage_pool_deposit: "shared_storage_pool_deposit";
26
+ readonly share_storage: "share_storage";
27
+ readonly get_account_storage: "get_account_storage";
28
+ readonly new: "new";
29
+ readonly set_status: "set_status";
30
+ readonly get_status: "get_status";
31
+ };
package/dist/index.js 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
+ };
package/package.json CHANGED
@@ -1,18 +1,29 @@
1
1
  {
2
2
  "name": "@sleet-js/social-near-contract-methods-const",
3
- "version": "0.0.1",
3
+ "version": "0.0.7",
4
+ "description": "TypeScript constants for Social NEAR smart contract methods including data storage, accounts, and permissions",
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
+ "clean": "rm -rf dist",
20
+ "build": "tsc --outDir dist",
21
+ "prepublishOnly": "bun run build"
22
+ },
12
23
  "devDependencies": {
13
- "@types/bun": "latest"
24
+ "@types/bun": "^1.3.11"
14
25
  },
15
26
  "peerDependencies": {
16
- "typescript": "^5"
27
+ "typescript": "^6.0.2"
17
28
  }
18
29
  }
package/index.ts DELETED
@@ -1,33 +0,0 @@
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/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
- }