@dynamic-labs/tron 4.31.3

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,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 Dynamic Labs, Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,83 @@
1
+ # @dynamic-labs/tron
2
+
3
+ A Tron wallet connector package for the Dynamic SDK that enables seamless integration with Spark network wallets.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @dynamic-labs/tron
9
+ ```
10
+
11
+ ## ๐Ÿ”Œ Supported Wallets
12
+
13
+ ### Provider Interface
14
+
15
+ ## ๐ŸŒ Supported Networks
16
+
17
+ ## ๐Ÿ“– Usage
18
+
19
+ ### Basic Integration
20
+
21
+ ```typescript
22
+ import { DynamicContextProvider } from '@dynamic-labs/sdk-react-core';
23
+ import { TronWalletConnectors } from '@dynamic-labs/tron';
24
+
25
+ function App() {
26
+ return (
27
+ <DynamicContextProvider
28
+ settings={{
29
+ environmentId: 'your-environment-id',
30
+ walletConnectors: [TronWalletConnectors()],
31
+ }}
32
+ >
33
+ {/* Your app content */}
34
+ </DynamicContextProvider>
35
+ );
36
+ }
37
+ ```
38
+
39
+ ### Type Checking
40
+
41
+ Use the `isTronWallet` type guard to safely work with Tron wallets:
42
+
43
+ ```typescript
44
+ import { isTronWallet } from '@dynamic-labs/tron';
45
+
46
+ function handleWallet(wallet: Wallet) {
47
+ if (isTronWallet(wallet)) {
48
+ // Do something
49
+ }
50
+ }
51
+ ```
52
+
53
+ ## ๐Ÿงช Testing
54
+
55
+ ### Run Tests
56
+
57
+ ```bash
58
+ npx nx test tron
59
+ ```
60
+
61
+ ### Build Package
62
+
63
+ ```bash
64
+ npx nx build tron
65
+ ```
66
+
67
+ ## ๐Ÿค Contributing
68
+
69
+ We welcome contributions! Please see our [contributing guidelines](https://github.com/dynamic-labs/dynamic-sdk/blob/main/CONTRIBUTING.md) for details.
70
+
71
+ ## ๐Ÿ“„ License
72
+
73
+ This package is part of the Dynamic SDK and follows the same licensing terms. See [LICENSE](https://github.com/dynamic-labs/dynamic-sdk/blob/main/LICENSE) for details.
74
+
75
+ ## ๐Ÿ†˜ Support
76
+
77
+ - **Documentation**: [docs.dynamic.xyz](https://docs.dynamic.xyz)
78
+ - **GitHub Issues**: [Report bugs or request features](https://github.com/dynamic-labs/dynamic-sdk/issues)
79
+ - **Discord**: [Join our community](https://discord.gg/dynamic)
80
+
81
+ ---
82
+
83
+ **Built with โค๏ธ by the Dynamic Labs team**
package/package.cjs ADDED
@@ -0,0 +1,8 @@
1
+ 'use client'
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ var version = "4.31.3";
7
+
8
+ exports.version = version;
package/package.js ADDED
@@ -0,0 +1,4 @@
1
+ 'use client'
2
+ var version = "4.31.3";
3
+
4
+ export { version };
package/package.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "@dynamic-labs/tron",
3
+ "version": "4.31.3",
4
+ "description": "A React SDK for implementing wallet web3 authentication and authorization to your website.",
5
+ "author": "Dynamic Labs, Inc.",
6
+ "license": "MIT",
7
+ "main": "./src/index.cjs",
8
+ "module": "./src/index.js",
9
+ "types": "./src/index.d.ts",
10
+ "type": "module",
11
+ "exports": {
12
+ "./package.json": "./package.json"
13
+ },
14
+ "homepage": "https://www.dynamic.xyz/",
15
+ "dependencies": {
16
+ "@dynamic-labs/assert-package-version": "4.31.3"
17
+ }
18
+ }
package/src/index.cjs ADDED
@@ -0,0 +1,7 @@
1
+ 'use client'
2
+ 'use strict';
3
+
4
+ var assertPackageVersion = require('@dynamic-labs/assert-package-version');
5
+ var _package = require('../package.cjs');
6
+
7
+ assertPackageVersion.assertPackageVersion('@dynamic-labs/tron', _package.version);
package/src/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export {};
package/src/index.js ADDED
@@ -0,0 +1,5 @@
1
+ 'use client'
2
+ import { assertPackageVersion } from '@dynamic-labs/assert-package-version';
3
+ import { version } from '../package.js';
4
+
5
+ assertPackageVersion('@dynamic-labs/tron', version);