@crypticdot/defituna-client 2.0.4
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 +42 -0
- package/README.md +23 -0
- package/dist/index.d.mts +4491 -0
- package/dist/index.d.ts +4491 -0
- package/dist/index.js +10230 -0
- package/dist/index.mjs +10478 -0
- package/package.json +66 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
DefiTuna SDK Source-Available License v1.0
|
|
2
|
+
Copyright (c) Cryptic Dot
|
|
3
|
+
|
|
4
|
+
This SDK is released under a source-available license. You are permitted to view and use the code under the terms below.
|
|
5
|
+
|
|
6
|
+
1. Grant of Rights
|
|
7
|
+
|
|
8
|
+
You are granted a limited, non-exclusive, non-transferable, non-sublicensable license to:
|
|
9
|
+
|
|
10
|
+
- View and read the source code for educational and integration purposes;
|
|
11
|
+
- Use the SDK **as-is**, without modification, for the sole purpose of building software that interacts with the DefiTuna protocol and services provided by Cryptic Dot;
|
|
12
|
+
- Use the SDK in production environments only if the SDK is used to interact directly with DefiTuna smart contracts, APIs, or infrastructure.
|
|
13
|
+
|
|
14
|
+
2. Restrictions
|
|
15
|
+
|
|
16
|
+
You may **not**:
|
|
17
|
+
|
|
18
|
+
- Modify, adapt, fork, or create derivative works of the SDK;
|
|
19
|
+
- Redistribute, republish, or sublicense the SDK or any portion thereof;
|
|
20
|
+
- Use the SDK for or in connection with any product, protocol, or service that is not built specifically to interact with DefiTuna;
|
|
21
|
+
- Use the SDK to develop or improve competing products, including AMMs, liquidity protocols, trading tools, or DeFi platforms;
|
|
22
|
+
- Use the SDK in any way that violates applicable law or harms the integrity of DefiTuna or Cryptic Dot.
|
|
23
|
+
|
|
24
|
+
3. Contributions
|
|
25
|
+
|
|
26
|
+
If you submit any pull request, patch, or contribution, you grant Cryptic Dot an irrevocable, worldwide, royalty-free license to use, modify, and distribute your contribution without obligation or attribution.
|
|
27
|
+
|
|
28
|
+
4. No Trademark Rights
|
|
29
|
+
|
|
30
|
+
This license does not grant any rights to use the names, logos, or trademarks of Cryptic Dot or DefiTuna.
|
|
31
|
+
|
|
32
|
+
5. Disclaimer
|
|
33
|
+
|
|
34
|
+
THE SDK IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. CRYPTIC DOT DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
|
|
35
|
+
|
|
36
|
+
6. Termination
|
|
37
|
+
|
|
38
|
+
This license is automatically terminated if you violate any of its terms. Upon termination, you must cease use of the SDK and delete all copies.
|
|
39
|
+
|
|
40
|
+
7. Governing Law
|
|
41
|
+
|
|
42
|
+
This license is governed by the laws of the Republic of Panama, without regard to its conflict of laws principles.
|
package/README.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# DefiTuna Client
|
|
2
|
+
|
|
3
|
+
> ⚠️ **WARNING:** DefiTuna Client version 2.0 is not yet compatible with the mainnet onchain program.
|
|
4
|
+
> Please use the previous 1.0.x version.
|
|
5
|
+
|
|
6
|
+
## Overview
|
|
7
|
+
This package provides developers with low-level functionalities for interacting with the DefiTuna Program on Solana.
|
|
8
|
+
|
|
9
|
+
> **Note:** This SDK uses Solana Kit. It is not compatible with Solana Web3.js.
|
|
10
|
+
|
|
11
|
+
## Key Features
|
|
12
|
+
- **Codama Client**: The package includes a set of generated client code based on the DefiTuna Program IDL. This ensures all the necessary program information is easily accessible in a structured format and handles all decoding and encoding of instructions and account data, making it much easier to interact with the program.
|
|
13
|
+
- **PDA (Program Derived Addresses) Utilities**: This feature contains utility functions that help derive Program Derived Addresses (PDAs) for accounts within the DefiTuna Program, simplifying address generation for developers.
|
|
14
|
+
|
|
15
|
+
## Installation
|
|
16
|
+
```bash
|
|
17
|
+
# NPM
|
|
18
|
+
npm install @defituna/client
|
|
19
|
+
# Yarn
|
|
20
|
+
yarn add @defituna/client
|
|
21
|
+
# PNPM
|
|
22
|
+
pnpm add @defituna/client
|
|
23
|
+
```
|