@scallop-io/sui-scallop-sdk 2.0.0 → 2.0.1

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 CHANGED
@@ -45,12 +45,13 @@ This SDK is used to interact with [sui-lending-protocol](https://github.com/scal
45
45
  ```typescript
46
46
  // Create an instance quickly through the`Scallop` class to construct other models.
47
47
  const scallopSDK = new Scallop({
48
- addressId: '675c65cd301dd817ea262e76',
48
+ addressId: '67c44a103fe1b8c454eb9699',
49
49
  networkType: 'mainnet',
50
50
  ...
51
51
  });
52
52
 
53
53
  const scallopAddress = await scallopSDK.getScallopAddress(...);
54
+ const scallopConstants = await scallopSDK.getScallopConstants(...);
54
55
  const scallopQuery = await scallopSDK.createScallopQuery(...);
55
56
  const scallopBuilder = await scallopSDK.createScallopBuilder(...);
56
57
  const scallopUtils = await scallopSDK.createScallopUtils(...);
@@ -69,27 +70,27 @@ This SDK is used to interact with [sui-lending-protocol](https://github.com/scal
69
70
  } from '@scallop-io/sui-scallop-sdk'
70
71
 
71
72
  const scallopAddress = new ScallopAddress(
72
- addressId: '675c65cd301dd817ea262e76',
73
+ addressId: '67c44a103fe1b8c454eb9699',
73
74
  ...
74
75
  );
75
76
  const scallopConstants = new ScallopConstants(
76
- addressId: '675c65cd301dd817ea262e76',
77
+ addressId: '67c44a103fe1b8c454eb9699',
77
78
  ...
78
79
  );
79
80
  const ScallopQuery = new ScallopQuery(
80
- addressId: '675c65cd301dd817ea262e76',
81
+ addressId: '67c44a103fe1b8c454eb9699',
81
82
  ...
82
83
  );
83
84
  const ScallopBuilder = new ScallopBuilder(
84
- addressId: '675c65cd301dd817ea262e76',
85
+ addressId: '67c44a103fe1b8c454eb9699',
85
86
  ...
86
87
  );
87
88
  const ScallopUtils = new ScallopUtils(
88
- addressId: '675c65cd301dd817ea262e76',
89
+ addressId: '67c44a103fe1b8c454eb9699',
89
90
  ...
90
91
  );
91
92
  const scallopClient = new ScallopClient(
92
- addressId: '675c65cd301dd817ea262e76',
93
+ addressId: '67c44a103fe1b8c454eb9699',
93
94
  ...
94
95
  );
95
96
  const ScallopIndexer = new ScallopIndexer();
package/dist/index.d.mts CHANGED
@@ -1690,6 +1690,11 @@ declare class Scallop {
1690
1690
  * @return Scallop Address.
1691
1691
  */
1692
1692
  getScallopAddress(id?: string): Promise<ScallopAddress>;
1693
+ /**
1694
+ * Get a scallop constants instance that already has initial data.
1695
+ * @returns Scallop Constants
1696
+ */
1697
+ getScallopConstants(params?: Partial<ScallopConstantsParams>): Promise<ScallopConstants>;
1693
1698
  /**
1694
1699
  * Create a scallop builder instance that already has initial data.
1695
1700
  *
package/dist/index.d.ts CHANGED
@@ -1690,6 +1690,11 @@ declare class Scallop {
1690
1690
  * @return Scallop Address.
1691
1691
  */
1692
1692
  getScallopAddress(id?: string): Promise<ScallopAddress>;
1693
+ /**
1694
+ * Get a scallop constants instance that already has initial data.
1695
+ * @returns Scallop Constants
1696
+ */
1697
+ getScallopConstants(params?: Partial<ScallopConstantsParams>): Promise<ScallopConstants>;
1693
1698
  /**
1694
1699
  * Create a scallop builder instance that already has initial data.
1695
1700
  *