@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.
Files changed (70) hide show
  1. package/README.md +48 -0
  2. package/deployments/coredao-mainnet/CreditMessaging.json +1501 -0
  3. package/deployments/coredao-mainnet/FeeLibV1USDC.json +611 -0
  4. package/deployments/coredao-mainnet/FeeLibV1USDT.json +611 -0
  5. package/deployments/coredao-mainnet/OFTWrapper.json +1506 -0
  6. package/deployments/coredao-mainnet/RewardLib.json +41 -0
  7. package/deployments/coredao-mainnet/RewardRegistryLib.json +41 -0
  8. package/deployments/coredao-mainnet/StargateMultiRewarder.json +1203 -0
  9. package/deployments/coredao-mainnet/StargatePoolUSDC.json +2577 -0
  10. package/deployments/coredao-mainnet/StargatePoolUSDT.json +2575 -0
  11. package/deployments/coredao-mainnet/StargateStaking.json +746 -0
  12. package/deployments/coredao-mainnet/TokenMessaging.json +2475 -0
  13. package/deployments/coredao-mainnet/Treasurer.json +450 -0
  14. package/dist/deployed/CreditMessaging.cjs +3 -0
  15. package/dist/deployed/CreditMessaging.cjs.map +1 -1
  16. package/dist/deployed/CreditMessaging.mjs +3 -0
  17. package/dist/deployed/CreditMessaging.mjs.map +1 -1
  18. package/dist/deployed/FeeLibV1USDC.cjs +3 -0
  19. package/dist/deployed/FeeLibV1USDC.cjs.map +1 -1
  20. package/dist/deployed/FeeLibV1USDC.mjs +3 -0
  21. package/dist/deployed/FeeLibV1USDC.mjs.map +1 -1
  22. package/dist/deployed/FeeLibV1USDT.cjs +3 -0
  23. package/dist/deployed/FeeLibV1USDT.cjs.map +1 -1
  24. package/dist/deployed/FeeLibV1USDT.mjs +3 -0
  25. package/dist/deployed/FeeLibV1USDT.mjs.map +1 -1
  26. package/dist/deployed/OFTWrapper.cjs +3 -0
  27. package/dist/deployed/OFTWrapper.cjs.map +1 -1
  28. package/dist/deployed/OFTWrapper.mjs +3 -0
  29. package/dist/deployed/OFTWrapper.mjs.map +1 -1
  30. package/dist/deployed/RewardLib.cjs +3 -0
  31. package/dist/deployed/RewardLib.cjs.map +1 -1
  32. package/dist/deployed/RewardLib.mjs +3 -0
  33. package/dist/deployed/RewardLib.mjs.map +1 -1
  34. package/dist/deployed/RewardRegistryLib.cjs +3 -0
  35. package/dist/deployed/RewardRegistryLib.cjs.map +1 -1
  36. package/dist/deployed/RewardRegistryLib.mjs +3 -0
  37. package/dist/deployed/RewardRegistryLib.mjs.map +1 -1
  38. package/dist/deployed/StargateMultiRewarder.cjs +3 -0
  39. package/dist/deployed/StargateMultiRewarder.cjs.map +1 -1
  40. package/dist/deployed/StargateMultiRewarder.mjs +3 -0
  41. package/dist/deployed/StargateMultiRewarder.mjs.map +1 -1
  42. package/dist/deployed/StargatePoolUSDC.cjs +3 -0
  43. package/dist/deployed/StargatePoolUSDC.cjs.map +1 -1
  44. package/dist/deployed/StargatePoolUSDC.mjs +3 -0
  45. package/dist/deployed/StargatePoolUSDC.mjs.map +1 -1
  46. package/dist/deployed/StargatePoolUSDT.cjs +3 -0
  47. package/dist/deployed/StargatePoolUSDT.cjs.map +1 -1
  48. package/dist/deployed/StargatePoolUSDT.mjs +3 -0
  49. package/dist/deployed/StargatePoolUSDT.mjs.map +1 -1
  50. package/dist/deployed/StargateStaking.cjs +3 -0
  51. package/dist/deployed/StargateStaking.cjs.map +1 -1
  52. package/dist/deployed/StargateStaking.mjs +3 -0
  53. package/dist/deployed/StargateStaking.mjs.map +1 -1
  54. package/dist/deployed/TokenMessaging.cjs +3 -0
  55. package/dist/deployed/TokenMessaging.cjs.map +1 -1
  56. package/dist/deployed/TokenMessaging.mjs +3 -0
  57. package/dist/deployed/TokenMessaging.mjs.map +1 -1
  58. package/dist/deployed/Treasurer.cjs +3 -0
  59. package/dist/deployed/Treasurer.cjs.map +1 -1
  60. package/dist/deployed/Treasurer.mjs +3 -0
  61. package/dist/deployed/Treasurer.mjs.map +1 -1
  62. package/dist/deployed/contracts.cjs +36 -0
  63. package/dist/deployed/contracts.cjs.map +1 -1
  64. package/dist/deployed/contracts.mjs +36 -0
  65. package/dist/deployed/contracts.mjs.map +1 -1
  66. package/dist/deployed/index.cjs +36 -0
  67. package/dist/deployed/index.cjs.map +1 -1
  68. package/dist/deployed/index.mjs +36 -0
  69. package/dist/deployed/index.mjs.map +1 -1
  70. 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
+