@dynamic-labs/stellar 0.0.0 → 4.57.2
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/CHANGELOG.md +6746 -0
- package/LICENSE +21 -0
- package/README.md +73 -0
- package/package.cjs +8 -0
- package/package.js +4 -0
- package/package.json +24 -1
- package/src/index.cjs +14 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +10 -0
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,73 @@
|
|
|
1
|
+
# @dynamic-labs/stellar
|
|
2
|
+
|
|
3
|
+
A Stellar wallet connector package for the Dynamic SDK that enables seamless integration with Stellar network wallets.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @dynamic-labs/stellar
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Supported Wallets
|
|
12
|
+
|
|
13
|
+
- Freighter
|
|
14
|
+
- Albedo
|
|
15
|
+
- xBull
|
|
16
|
+
- Lobstr
|
|
17
|
+
- Rabet
|
|
18
|
+
|
|
19
|
+
## Supported Networks
|
|
20
|
+
|
|
21
|
+
- Stellar Public Network (Mainnet)
|
|
22
|
+
- Stellar Testnet
|
|
23
|
+
- Stellar Futurenet
|
|
24
|
+
|
|
25
|
+
## Usage
|
|
26
|
+
|
|
27
|
+
### Basic Integration
|
|
28
|
+
|
|
29
|
+
```typescript
|
|
30
|
+
import { DynamicContextProvider } from '@dynamic-labs/sdk-react-core';
|
|
31
|
+
import { StellarWalletConnectors } from '@dynamic-labs/stellar';
|
|
32
|
+
|
|
33
|
+
function App() {
|
|
34
|
+
return (
|
|
35
|
+
<DynamicContextProvider
|
|
36
|
+
settings={{
|
|
37
|
+
environmentId: 'your-environment-id',
|
|
38
|
+
walletConnectors: [StellarWalletConnectors],
|
|
39
|
+
}}
|
|
40
|
+
>
|
|
41
|
+
{/* Your app content */}
|
|
42
|
+
</DynamicContextProvider>
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Testing
|
|
48
|
+
|
|
49
|
+
### Run Tests
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
npx nx test stellar
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Build Package
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
npx nx build stellar
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Contributing
|
|
62
|
+
|
|
63
|
+
We welcome contributions! Please see our [contributing guidelines](https://github.com/dynamic-labs/dynamic-sdk/blob/main/CONTRIBUTING.md) for details.
|
|
64
|
+
|
|
65
|
+
## License
|
|
66
|
+
|
|
67
|
+
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.
|
|
68
|
+
|
|
69
|
+
## Support
|
|
70
|
+
|
|
71
|
+
- **Documentation**: [docs.dynamic.xyz](https://docs.dynamic.xyz)
|
|
72
|
+
- **GitHub Issues**: [Report bugs or request features](https://github.com/dynamic-labs/dynamic-sdk/issues)
|
|
73
|
+
- **Discord**: [Join our community](https://discord.gg/dynamic)
|
package/package.cjs
ADDED
package/package.js
ADDED
package/package.json
CHANGED
|
@@ -1 +1,24 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"name": "@dynamic-labs/stellar",
|
|
3
|
+
"version": "4.57.2",
|
|
4
|
+
"description": "A React SDK for implementing Stellar 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
|
+
".": {
|
|
13
|
+
"types": "./src/index.d.ts",
|
|
14
|
+
"import": "./src/index.js",
|
|
15
|
+
"require": "./src/index.cjs"
|
|
16
|
+
},
|
|
17
|
+
"./package.json": "./package.json"
|
|
18
|
+
},
|
|
19
|
+
"homepage": "https://www.dynamic.xyz/",
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@dynamic-labs/assert-package-version": "4.57.2"
|
|
22
|
+
},
|
|
23
|
+
"peerDependencies": {}
|
|
24
|
+
}
|
package/src/index.cjs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
var assertPackageVersion = require('@dynamic-labs/assert-package-version');
|
|
7
|
+
var _package = require('../package.cjs');
|
|
8
|
+
|
|
9
|
+
assertPackageVersion.assertPackageVersion('@dynamic-labs/stellar', _package.version);
|
|
10
|
+
// Wallet connector factory
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unused-vars
|
|
12
|
+
const StellarWalletConnectors = (props) => [];
|
|
13
|
+
|
|
14
|
+
exports.StellarWalletConnectors = StellarWalletConnectors;
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StellarWalletConnectors: (props: any) => never[];
|
package/src/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import { assertPackageVersion } from '@dynamic-labs/assert-package-version';
|
|
3
|
+
import { version } from '../package.js';
|
|
4
|
+
|
|
5
|
+
assertPackageVersion('@dynamic-labs/stellar', version);
|
|
6
|
+
// Wallet connector factory
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unused-vars
|
|
8
|
+
const StellarWalletConnectors = (props) => [];
|
|
9
|
+
|
|
10
|
+
export { StellarWalletConnectors };
|