@tonappchain/sdk 0.7.2 → 0.7.3-rc1

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.
Files changed (44) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +203 -199
  3. package/dist/src/adapters/BaseContractOpener.js +8 -5
  4. package/dist/src/assets/AssetFactory.d.ts +4 -1
  5. package/dist/src/assets/AssetFactory.js +4 -0
  6. package/dist/src/assets/FT.d.ts +3 -3
  7. package/dist/src/assets/FT.js +28 -15
  8. package/dist/src/assets/NFT.d.ts +3 -3
  9. package/dist/src/assets/NFT.js +10 -4
  10. package/dist/src/assets/TAC.d.ts +24 -0
  11. package/dist/src/assets/TAC.js +74 -0
  12. package/dist/src/assets/TON.d.ts +3 -3
  13. package/dist/src/assets/TON.js +12 -5
  14. package/dist/src/assets/index.d.ts +1 -0
  15. package/dist/src/assets/index.js +3 -1
  16. package/dist/src/errors/index.d.ts +1 -1
  17. package/dist/src/errors/index.js +6 -1
  18. package/dist/src/errors/instances.d.ts +4 -0
  19. package/dist/src/errors/instances.js +7 -1
  20. package/dist/src/interfaces/Asset.d.ts +11 -6
  21. package/dist/src/interfaces/IConfiguration.d.ts +1 -3
  22. package/dist/src/interfaces/ILiteSequencerClient.d.ts +9 -1
  23. package/dist/src/interfaces/IOperationTracker.d.ts +20 -1
  24. package/dist/src/interfaces/ITACTransactionManager.d.ts +19 -1
  25. package/dist/src/interfaces/ITacSDK.d.ts +29 -8
  26. package/dist/src/sdk/Consts.d.ts +4 -0
  27. package/dist/src/sdk/Consts.js +5 -1
  28. package/dist/src/sdk/LiteSequencerClient.d.ts +3 -1
  29. package/dist/src/sdk/LiteSequencerClient.js +37 -0
  30. package/dist/src/sdk/OperationTracker.d.ts +4 -1
  31. package/dist/src/sdk/OperationTracker.js +58 -0
  32. package/dist/src/sdk/TACTransactionManager.d.ts +3 -0
  33. package/dist/src/sdk/TACTransactionManager.js +170 -34
  34. package/dist/src/sdk/TONTransactionManager.js +28 -6
  35. package/dist/src/sdk/TacSdk.d.ts +4 -3
  36. package/dist/src/sdk/TacSdk.js +4 -0
  37. package/dist/src/sdk/Utils.d.ts +2 -1
  38. package/dist/src/sdk/Utils.js +4 -0
  39. package/dist/src/structs/InternalStruct.d.ts +35 -1
  40. package/dist/src/structs/Struct.d.ts +155 -5
  41. package/dist/src/structs/Struct.js +12 -1
  42. package/dist/src/wrappers/ContentUtils.d.ts +36 -13
  43. package/dist/src/wrappers/ContentUtils.js +197 -98
  44. package/package.json +121 -121
package/package.json CHANGED
@@ -1,121 +1,121 @@
1
- {
2
- "name": "@tonappchain/sdk",
3
- "version": "0.7.2",
4
- "repository": "https://github.com/TacBuild/tac-sdk.git",
5
- "author": "TAC. <developers@tac>",
6
- "license": "MIT",
7
- "main": "dist/src/index.js",
8
- "types": "dist/src/index.d.ts",
9
- "exports": {
10
- ".": {
11
- "node": {
12
- "types": "./dist/src/index.d.ts",
13
- "require": "./dist/src/index.js",
14
- "import": "./dist/src/index.js"
15
- },
16
- "browser": {
17
- "types": "./dist/src/index.d.ts",
18
- "import": "./dist/src/index.js"
19
- },
20
- "types": "./dist/src/index.d.ts",
21
- "require": "./dist/src/index.js",
22
- "import": "./dist/src/index.js",
23
- "default": "./dist/src/index.js"
24
- },
25
- "./package.json": "./package.json",
26
- "./dist": null,
27
- "./dist/*": null,
28
- "./src": null,
29
- "./src/*": null,
30
- "./artifacts": {
31
- "types": "./dist/artifacts/index.d.ts",
32
- "import": "./dist/artifacts/index.js",
33
- "require": "./dist/artifacts/index.js"
34
- },
35
- "./artifacts/types/ton": {
36
- "types": "./dist/artifacts/tonTypes.d.ts",
37
- "import": "./dist/artifacts/tonTypes.js",
38
- "require": "./dist/artifacts/tonTypes.js"
39
- },
40
- "./artifacts/types/tac": {
41
- "types": "./dist/artifacts/tacTypes.d.ts",
42
- "import": "./dist/artifacts/tacTypes.js",
43
- "require": "./dist/artifacts/tacTypes.js"
44
- },
45
- "./artifacts/*": null,
46
- "./*": null
47
- },
48
- "files": [
49
- "dist"
50
- ],
51
- "scripts": {
52
- "litebuild": "rm -rf dist && tsc --declaration",
53
- "build": "bash build.sh",
54
- "build:artifacts:tac:dev": "cd artifacts/dev/l2-evm && npm i && npx hardhat compile && rsync -avh --delete ./artifacts ./scripts ./typechain-types ../tac/internal/",
55
- "build:artifacts:ton:dev": "cd artifacts/dev/l1_tvm_ton && npm i && npm run compile:ts && npm run build:all && rsync -avh --delete ./build ./wrappers ../ton/internal/",
56
- "build:artifacts:tac:testnet": "cd artifacts/testnet/l2-evm && npm i && npx hardhat compile && rsync -avh --delete ./artifacts ./scripts ./typechain-types ../tac/internal/",
57
- "build:artifacts:ton:testnet": "cd artifacts/testnet/l1_tvm_ton && npm i && npm run compile:ts && npm run build:all && rsync -avh --delete ./build ./wrappers ../ton/internal/",
58
- "build:artifacts:tac:mainnet": "cd artifacts/mainnet/l2-evm && npm i && npx hardhat compile && rsync -avh --delete ./artifacts ./scripts ./typechain-types ../tac/internal/",
59
- "build:artifacts:ton:mainnet": "cd artifacts/mainnet/l1_tvm_ton && npm i && npm run compile:ts && npm run build:all && rsync -avh --delete ./build ./wrappers ../ton/internal/",
60
- "build:artifacts:ton:all": "npm run build:artifacts:ton:dev && npm run build:artifacts:ton:testnet && npm run build:artifacts:ton:mainnet",
61
- "build:artifacts:tac:all": "npm run build:artifacts:tac:dev && npm run build:artifacts:tac:testnet && npm run build:artifacts:tac:mainnet",
62
- "build:artifacts": "npm run build:artifacts:ton:all && npm run build:artifacts:tac:all",
63
- "test": "jest --verbose --runInBand",
64
- "release": "npm run build && npx release-it",
65
- "lint": "eslint .",
66
- "lint:fix": "eslint . --fix",
67
- "prettier": "prettier --ignore-path .gitignore --write \"./src/**/*.+(js|ts|json)\""
68
- },
69
- "dependencies": {
70
- "@aws-crypto/sha256-js": "^5.2.0",
71
- "@orbs-network/ton-access": "^2.3.3",
72
- "@tonappchain/ton-lite-client": "3.0.6",
73
- "bn.js": "^5.2.3",
74
- "cli-table3": "^0.6.5",
75
- "dotenv": "^16.4.7"
76
- },
77
- "peerDependencies": {
78
- "@ton/ton": ">=15",
79
- "@tonconnect/ui": ">=2",
80
- "ethers": ">=6",
81
- "ton-crypto": ">=3"
82
- },
83
- "keywords": [],
84
- "description": "",
85
- "devDependencies": {
86
- "@eslint/js": "^9.21.0",
87
- "@jest/globals": "^29.7.0",
88
- "@release-it/keep-a-changelog": "^7.0.0",
89
- "@ton/sandbox": "^0.27.1",
90
- "@ton/test-utils": "^0.5.0",
91
- "@ton/ton": "16.2.2",
92
- "@tonconnect/ui": "^2.0.11",
93
- "@types/bn.js": "^5.1.6",
94
- "@types/jest": "^29.5.14",
95
- "eslint": "^9.26.0",
96
- "eslint-config-prettier": "^10.0.2",
97
- "eslint-plugin-simple-import-sort": "^12.1.1",
98
- "ethers": "^6.13.5",
99
- "jest": "^29.7.0",
100
- "prettier": "^3.5.3",
101
- "ton-crypto": "3.2.0",
102
- "ts-jest": "^29.2.6",
103
- "ts-node": "^10.9.2",
104
- "typescript": "^5.7.3",
105
- "typescript-eslint": "^8.17.0"
106
- },
107
- "publishConfig": {
108
- "access": "public",
109
- "registry": "https://registry.npmjs.org/"
110
- },
111
- "release-it": {
112
- "plugins": {
113
- "@release-it/keep-a-changelog": {
114
- "filename": "CHANGELOG.md"
115
- }
116
- },
117
- "npm": {
118
- "publish": false
119
- }
120
- }
121
- }
1
+ {
2
+ "name": "@tonappchain/sdk",
3
+ "version": "0.7.3-rc1",
4
+ "repository": "https://github.com/TacBuild/tac-sdk.git",
5
+ "author": "TAC. <developers@tac>",
6
+ "license": "MIT",
7
+ "main": "dist/src/index.js",
8
+ "types": "dist/src/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "node": {
12
+ "types": "./dist/src/index.d.ts",
13
+ "require": "./dist/src/index.js",
14
+ "import": "./dist/src/index.js"
15
+ },
16
+ "browser": {
17
+ "types": "./dist/src/index.d.ts",
18
+ "import": "./dist/src/index.js"
19
+ },
20
+ "types": "./dist/src/index.d.ts",
21
+ "require": "./dist/src/index.js",
22
+ "import": "./dist/src/index.js",
23
+ "default": "./dist/src/index.js"
24
+ },
25
+ "./package.json": "./package.json",
26
+ "./dist": null,
27
+ "./dist/*": null,
28
+ "./src": null,
29
+ "./src/*": null,
30
+ "./artifacts": {
31
+ "types": "./dist/artifacts/index.d.ts",
32
+ "import": "./dist/artifacts/index.js",
33
+ "require": "./dist/artifacts/index.js"
34
+ },
35
+ "./artifacts/types/ton": {
36
+ "types": "./dist/artifacts/tonTypes.d.ts",
37
+ "import": "./dist/artifacts/tonTypes.js",
38
+ "require": "./dist/artifacts/tonTypes.js"
39
+ },
40
+ "./artifacts/types/tac": {
41
+ "types": "./dist/artifacts/tacTypes.d.ts",
42
+ "import": "./dist/artifacts/tacTypes.js",
43
+ "require": "./dist/artifacts/tacTypes.js"
44
+ },
45
+ "./artifacts/*": null,
46
+ "./*": null
47
+ },
48
+ "files": [
49
+ "dist"
50
+ ],
51
+ "scripts": {
52
+ "litebuild": "rm -rf dist && tsc --declaration",
53
+ "build": "bash build.sh",
54
+ "build:artifacts:tac:dev": "cd artifacts/dev/l2-evm && npm i && npx hardhat compile && rsync -avh --delete ./artifacts ./scripts ./typechain-types ../tac/internal/",
55
+ "build:artifacts:ton:dev": "cd artifacts/dev/l1_tvm_ton && npm i && npm run compile:ts && npm run build:all && rsync -avh --delete ./build ./wrappers ../ton/internal/",
56
+ "build:artifacts:tac:testnet": "cd artifacts/testnet/l2-evm && npm i && npx hardhat compile && rsync -avh --delete ./artifacts ./scripts ./typechain-types ../tac/internal/",
57
+ "build:artifacts:ton:testnet": "cd artifacts/testnet/l1_tvm_ton && npm i && npm run compile:ts && npm run build:all && rsync -avh --delete ./build ./wrappers ../ton/internal/",
58
+ "build:artifacts:tac:mainnet": "cd artifacts/mainnet/l2-evm && npm i && npx hardhat compile && rsync -avh --delete ./artifacts ./scripts ./typechain-types ../tac/internal/",
59
+ "build:artifacts:ton:mainnet": "cd artifacts/mainnet/l1_tvm_ton && npm i && npm run compile:ts && npm run build:all && rsync -avh --delete ./build ./wrappers ../ton/internal/",
60
+ "build:artifacts:ton:all": "npm run build:artifacts:ton:dev && npm run build:artifacts:ton:testnet && npm run build:artifacts:ton:mainnet",
61
+ "build:artifacts:tac:all": "npm run build:artifacts:tac:dev && npm run build:artifacts:tac:testnet && npm run build:artifacts:tac:mainnet",
62
+ "build:artifacts": "npm run build:artifacts:ton:all && npm run build:artifacts:tac:all",
63
+ "test": "jest --verbose --runInBand",
64
+ "release": "npm run build && npx release-it",
65
+ "lint": "eslint .",
66
+ "lint:fix": "eslint . --fix",
67
+ "prettier": "prettier --ignore-path .gitignore --write \"./src/**/*.+(js|ts|json)\""
68
+ },
69
+ "dependencies": {
70
+ "@aws-crypto/sha256-js": "^5.2.0",
71
+ "@orbs-network/ton-access": "^2.3.3",
72
+ "@tonappchain/ton-lite-client": "3.0.6",
73
+ "bn.js": "^5.2.3",
74
+ "cli-table3": "^0.6.5",
75
+ "dotenv": "^16.4.7"
76
+ },
77
+ "peerDependencies": {
78
+ "@ton/ton": ">=15",
79
+ "@tonconnect/ui": ">=2",
80
+ "ethers": ">=6",
81
+ "ton-crypto": ">=3"
82
+ },
83
+ "keywords": [],
84
+ "description": "",
85
+ "devDependencies": {
86
+ "@eslint/js": "^9.21.0",
87
+ "@jest/globals": "^29.7.0",
88
+ "@release-it/keep-a-changelog": "^7.0.0",
89
+ "@ton/sandbox": "^0.27.1",
90
+ "@ton/test-utils": "^0.5.0",
91
+ "@ton/ton": "16.2.2",
92
+ "@tonconnect/ui": "^2.0.11",
93
+ "@types/bn.js": "^5.1.6",
94
+ "@types/jest": "^29.5.14",
95
+ "eslint": "^9.26.0",
96
+ "eslint-config-prettier": "^10.0.2",
97
+ "eslint-plugin-simple-import-sort": "^12.1.1",
98
+ "ethers": "^6.13.5",
99
+ "jest": "^29.7.0",
100
+ "prettier": "^3.5.3",
101
+ "ton-crypto": "3.2.0",
102
+ "ts-jest": "^29.2.6",
103
+ "ts-node": "^10.9.2",
104
+ "typescript": "^5.7.3",
105
+ "typescript-eslint": "^8.17.0"
106
+ },
107
+ "publishConfig": {
108
+ "access": "public",
109
+ "registry": "https://registry.npmjs.org/"
110
+ },
111
+ "release-it": {
112
+ "plugins": {
113
+ "@release-it/keep-a-changelog": {
114
+ "filename": "CHANGELOG.md"
115
+ }
116
+ },
117
+ "npm": {
118
+ "publish": false
119
+ }
120
+ }
121
+ }