@sleet-js/wrap-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 +2 -3
- package/dist/index.d.ts +17 -0
- package/dist/index.js +19 -0
- package/package.json +14 -3
- package/index.ts +0 -19
- 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
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const wrap_near_methods_const: {
|
|
2
|
+
readonly storage_minimum_balance: "storage_minimum_balance";
|
|
3
|
+
readonly near_deposit: "near_deposit";
|
|
4
|
+
readonly near_withdraw: "near_withdraw";
|
|
5
|
+
readonly new: "new";
|
|
6
|
+
readonly ft_transfer: "ft_transfer";
|
|
7
|
+
readonly ft_transfer_call: "ft_transfer_call";
|
|
8
|
+
readonly ft_total_supply: "ft_total_supply";
|
|
9
|
+
readonly ft_balance_of: "ft_balance_of";
|
|
10
|
+
readonly ft_resolve_transfer: "ft_resolve_transfer";
|
|
11
|
+
readonly storage_deposit: "storage_deposit";
|
|
12
|
+
readonly storage_withdraw: "storage_withdraw";
|
|
13
|
+
readonly storage_unregister: "storage_unregister";
|
|
14
|
+
readonly storage_balance_bounds: "storage_balance_bounds";
|
|
15
|
+
readonly storage_balance_of: "storage_balance_of";
|
|
16
|
+
readonly ft_metadata: "ft_metadata";
|
|
17
|
+
};
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// ====================================
|
|
2
|
+
// ====== wrap_near_methods_const ======
|
|
3
|
+
export const wrap_near_methods_const = {
|
|
4
|
+
storage_minimum_balance: "storage_minimum_balance",
|
|
5
|
+
near_deposit: "near_deposit",
|
|
6
|
+
near_withdraw: "near_withdraw",
|
|
7
|
+
new: "new",
|
|
8
|
+
ft_transfer: "ft_transfer",
|
|
9
|
+
ft_transfer_call: "ft_transfer_call",
|
|
10
|
+
ft_total_supply: "ft_total_supply",
|
|
11
|
+
ft_balance_of: "ft_balance_of",
|
|
12
|
+
ft_resolve_transfer: "ft_resolve_transfer",
|
|
13
|
+
storage_deposit: "storage_deposit",
|
|
14
|
+
storage_withdraw: "storage_withdraw",
|
|
15
|
+
storage_unregister: "storage_unregister",
|
|
16
|
+
storage_balance_bounds: "storage_balance_bounds",
|
|
17
|
+
storage_balance_of: "storage_balance_of",
|
|
18
|
+
ft_metadata: "ft_metadata",
|
|
19
|
+
};
|
package/package.json
CHANGED
|
@@ -1,18 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sleet-js/wrap-near-contract-methods-const",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
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
|
+
"clean": "rm -rf dist",
|
|
20
|
+
"build": "tsc --outDir dist",
|
|
21
|
+
"prepublishOnly": "bun run build"
|
|
22
|
+
},
|
|
12
23
|
"devDependencies": {
|
|
13
|
-
"@types/bun": "
|
|
24
|
+
"@types/bun": "^1.3.11"
|
|
14
25
|
},
|
|
15
26
|
"peerDependencies": {
|
|
16
|
-
"typescript": "^
|
|
27
|
+
"typescript": "^6.0.2"
|
|
17
28
|
}
|
|
18
29
|
}
|
package/index.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// ====================================
|
|
2
|
-
// ====== wrap_near_methods_const ======
|
|
3
|
-
export const wrap_near_methods_const = {
|
|
4
|
-
storage_minimum_balance: "storage_minimum_balance",
|
|
5
|
-
near_deposit: "near_deposit",
|
|
6
|
-
near_withdraw: "near_withdraw",
|
|
7
|
-
new: "new",
|
|
8
|
-
ft_transfer: "ft_transfer",
|
|
9
|
-
ft_transfer_call: "ft_transfer_call",
|
|
10
|
-
ft_total_supply: "ft_total_supply",
|
|
11
|
-
ft_balance_of: "ft_balance_of",
|
|
12
|
-
ft_resolve_transfer: "ft_resolve_transfer",
|
|
13
|
-
storage_deposit: "storage_deposit",
|
|
14
|
-
storage_withdraw: "storage_withdraw",
|
|
15
|
-
storage_unregister: "storage_unregister",
|
|
16
|
-
storage_balance_bounds: "storage_balance_bounds",
|
|
17
|
-
storage_balance_of: "storage_balance_of",
|
|
18
|
-
ft_metadata: "ft_metadata",
|
|
19
|
-
} 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
|
-
}
|