@stargatefinance/stg-evm-sdk-v2 1.0.8 → 1.0.9
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 +48 -0
- package/deployments/coredao-mainnet/CreditMessaging.json +1501 -0
- package/deployments/coredao-mainnet/FeeLibV1USDC.json +611 -0
- package/deployments/coredao-mainnet/FeeLibV1USDT.json +611 -0
- package/deployments/coredao-mainnet/OFTWrapper.json +1506 -0
- package/deployments/coredao-mainnet/RewardLib.json +41 -0
- package/deployments/coredao-mainnet/RewardRegistryLib.json +41 -0
- package/deployments/coredao-mainnet/StargateMultiRewarder.json +1203 -0
- package/deployments/coredao-mainnet/StargatePoolUSDC.json +2577 -0
- package/deployments/coredao-mainnet/StargatePoolUSDT.json +2575 -0
- package/deployments/coredao-mainnet/StargateStaking.json +746 -0
- package/deployments/coredao-mainnet/TokenMessaging.json +2475 -0
- package/deployments/coredao-mainnet/Treasurer.json +450 -0
- package/dist/deployed/CreditMessaging.cjs +3 -0
- package/dist/deployed/CreditMessaging.cjs.map +1 -1
- package/dist/deployed/CreditMessaging.mjs +3 -0
- package/dist/deployed/CreditMessaging.mjs.map +1 -1
- package/dist/deployed/FeeLibV1USDC.cjs +3 -0
- package/dist/deployed/FeeLibV1USDC.cjs.map +1 -1
- package/dist/deployed/FeeLibV1USDC.mjs +3 -0
- package/dist/deployed/FeeLibV1USDC.mjs.map +1 -1
- package/dist/deployed/FeeLibV1USDT.cjs +3 -0
- package/dist/deployed/FeeLibV1USDT.cjs.map +1 -1
- package/dist/deployed/FeeLibV1USDT.mjs +3 -0
- package/dist/deployed/FeeLibV1USDT.mjs.map +1 -1
- package/dist/deployed/OFTWrapper.cjs +3 -0
- package/dist/deployed/OFTWrapper.cjs.map +1 -1
- package/dist/deployed/OFTWrapper.mjs +3 -0
- package/dist/deployed/OFTWrapper.mjs.map +1 -1
- package/dist/deployed/RewardLib.cjs +3 -0
- package/dist/deployed/RewardLib.cjs.map +1 -1
- package/dist/deployed/RewardLib.mjs +3 -0
- package/dist/deployed/RewardLib.mjs.map +1 -1
- package/dist/deployed/RewardRegistryLib.cjs +3 -0
- package/dist/deployed/RewardRegistryLib.cjs.map +1 -1
- package/dist/deployed/RewardRegistryLib.mjs +3 -0
- package/dist/deployed/RewardRegistryLib.mjs.map +1 -1
- package/dist/deployed/StargateMultiRewarder.cjs +3 -0
- package/dist/deployed/StargateMultiRewarder.cjs.map +1 -1
- package/dist/deployed/StargateMultiRewarder.mjs +3 -0
- package/dist/deployed/StargateMultiRewarder.mjs.map +1 -1
- package/dist/deployed/StargatePoolUSDC.cjs +3 -0
- package/dist/deployed/StargatePoolUSDC.cjs.map +1 -1
- package/dist/deployed/StargatePoolUSDC.mjs +3 -0
- package/dist/deployed/StargatePoolUSDC.mjs.map +1 -1
- package/dist/deployed/StargatePoolUSDT.cjs +3 -0
- package/dist/deployed/StargatePoolUSDT.cjs.map +1 -1
- package/dist/deployed/StargatePoolUSDT.mjs +3 -0
- package/dist/deployed/StargatePoolUSDT.mjs.map +1 -1
- package/dist/deployed/StargateStaking.cjs +3 -0
- package/dist/deployed/StargateStaking.cjs.map +1 -1
- package/dist/deployed/StargateStaking.mjs +3 -0
- package/dist/deployed/StargateStaking.mjs.map +1 -1
- package/dist/deployed/TokenMessaging.cjs +3 -0
- package/dist/deployed/TokenMessaging.cjs.map +1 -1
- package/dist/deployed/TokenMessaging.mjs +3 -0
- package/dist/deployed/TokenMessaging.mjs.map +1 -1
- package/dist/deployed/Treasurer.cjs +3 -0
- package/dist/deployed/Treasurer.cjs.map +1 -1
- package/dist/deployed/Treasurer.mjs +3 -0
- package/dist/deployed/Treasurer.mjs.map +1 -1
- package/dist/deployed/contracts.cjs +36 -0
- package/dist/deployed/contracts.cjs.map +1 -1
- package/dist/deployed/contracts.mjs +36 -0
- package/dist/deployed/contracts.mjs.map +1 -1
- package/dist/deployed/index.cjs +36 -0
- package/dist/deployed/index.cjs.map +1 -1
- package/dist/deployed/index.mjs +36 -0
- package/dist/deployed/index.mjs.map +1 -1
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Stargate EVM SDK V2
|
|
2
|
+
|
|
3
|
+
The Stargate EVM SDK V2 (`@stargatefinance/stg-evm-sdk-v2`) is a comprehensive software development kit designed for interacting with Stargate contracts on the Ethereum Virtual Machine (EVM) compatible blockchains by supplying essential information and utilities.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- **Cross-Chain Asset Transfers**: Transfer native assets across different blockchains using Stargate's unified liquidity pools.
|
|
8
|
+
- **Deployment Files**: Contains deployment information for each supported chain, including addresses and ABIs of deployed contracts.
|
|
9
|
+
- **Comprehensive Utilities**: Provides necessary tools and utilities to interact with Stargate contracts, including error parsing and deployment configurations.
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
To install the Stargate EVM SDK V2 in your project, use npm:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install @stargatefinance/stg-evm-sdk-v2
|
|
17
|
+
```
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
Start off by Installing the `node_modules`:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
pnpm install
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Building the SDK
|
|
27
|
+
To build the SDK, use the provided pnpm script:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
pnpm build
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
This command will compile the TypeScript source files into JavaScript and place them in the dist directory.
|
|
34
|
+
|
|
35
|
+
### Importing the SDK
|
|
36
|
+
|
|
37
|
+
To use the SDK, import it into your JavaScript or TypeScript project:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
import { ... } from '@stargatefinance/stg-evm-sdk-v2';
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Deployment Information
|
|
44
|
+
The SDK includes deployment information for each supported chain, stored in the deployments folder. This folder contains JSON files detailing the deployed contract addresses for various blockchains. For example, to access deployment information for a contract on Arbitrum Mainnet, navigate to `deployments/arbitrum-mainnet/<ContractName>.json`. Here you can view information such as the contract address, ABI, constructor arguments, and other metadata.
|
|
45
|
+
|
|
46
|
+
## Error Handling
|
|
47
|
+
The SDK also provides an `errors.json` file generated during the `build` phase to support parsing and handling errors returned by Stargate contracts.
|
|
48
|
+
|