@suilend/sdk 14.3.0 → 16.0.0
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/_generated/_dependencies/pyth-2/price-identifier/structs.d.ts +5 -1
- package/_generated/_dependencies/std/ascii/structs.d.ts +8 -2
- package/_generated/_dependencies/std/option/structs.d.ts +6 -1
- package/_generated/_dependencies/std/type-name/structs.d.ts +7 -1
- package/_generated/_dependencies/sui/bag/structs.d.ts +8 -1
- package/_generated/_dependencies/sui/balance/structs.d.ts +6 -2
- package/_generated/_dependencies/sui/object/structs.d.ts +8 -2
- package/_generated/_dependencies/sui/object-table/structs.d.ts +8 -1
- package/_generated/_envs/mainnet.js +39 -3
- package/_generated/suilend/cell/structs.d.ts +8 -1
- package/_generated/suilend/decimal/structs.d.ts +3 -1
- package/_generated/suilend/lending-market/functions.d.ts +185 -64
- package/_generated/suilend/lending-market/functions.js +227 -65
- package/_generated/suilend/lending-market/structs.d.ts +764 -25
- package/_generated/suilend/lending-market/structs.js +491 -3
- package/_generated/suilend/liquidity-mining/structs.d.ts +169 -5
- package/_generated/suilend/obligation/structs.d.ts +338 -7
- package/_generated/suilend/rate-limiter/functions.d.ts +6 -0
- package/_generated/suilend/rate-limiter/functions.js +12 -0
- package/_generated/suilend/rate-limiter/structs.d.ts +17 -2
- package/_generated/suilend/reserve/structs.d.ts +664 -17
- package/_generated/suilend/reserve/structs.js +623 -4
- package/_generated/suilend/reserve-config/functions.d.ts +64 -9
- package/_generated/suilend/reserve-config/functions.js +88 -11
- package/_generated/suilend/reserve-config/structs.d.ts +45 -3
- package/client.d.ts +4 -7
- package/client.js +15 -9
- package/package.json +1 -1
|
@@ -29,7 +29,11 @@ export declare class PriceIdentifier implements StructClass {
|
|
|
29
29
|
static get r(): PriceIdentifierReified;
|
|
30
30
|
static phantom(): PhantomReified<ToTypeStr<PriceIdentifier>>;
|
|
31
31
|
static get p(): PhantomReified<ToTypeStr<PriceIdentifier>>;
|
|
32
|
-
|
|
32
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
33
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
34
|
+
length: number;
|
|
35
|
+
}, string>;
|
|
36
|
+
}, string>;
|
|
33
37
|
private static cachedBcs;
|
|
34
38
|
static get bcs(): ReturnType<typeof PriceIdentifier.instantiateBcs>;
|
|
35
39
|
static fromFields(fields: Record<string, any>): PriceIdentifier;
|
|
@@ -40,7 +40,11 @@ export declare class String implements StructClass {
|
|
|
40
40
|
static get r(): StringReified;
|
|
41
41
|
static phantom(): PhantomReified<ToTypeStr<String>>;
|
|
42
42
|
static get p(): PhantomReified<ToTypeStr<String>>;
|
|
43
|
-
|
|
43
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
44
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
45
|
+
length: number;
|
|
46
|
+
}, string>;
|
|
47
|
+
}, string>;
|
|
44
48
|
private static cachedBcs;
|
|
45
49
|
static get bcs(): ReturnType<typeof String.instantiateBcs>;
|
|
46
50
|
static fromFields(fields: Record<string, any>): String;
|
|
@@ -83,7 +87,9 @@ export declare class Char implements StructClass {
|
|
|
83
87
|
static get r(): CharReified;
|
|
84
88
|
static phantom(): PhantomReified<ToTypeStr<Char>>;
|
|
85
89
|
static get p(): PhantomReified<ToTypeStr<Char>>;
|
|
86
|
-
|
|
90
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
91
|
+
byte: import("@mysten/bcs").BcsType<number, number, "u8">;
|
|
92
|
+
}, string>;
|
|
87
93
|
private static cachedBcs;
|
|
88
94
|
static get bcs(): ReturnType<typeof Char.instantiateBcs>;
|
|
89
95
|
static fromFields(fields: Record<string, any>): Char;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** This module defines the Option type and its methods to represent and handle an optional value. */
|
|
2
|
+
import { BcsType } from '@mysten/sui/bcs';
|
|
2
3
|
import type { ClientWithCoreApi, SuiClientTypes } from '@mysten/sui/client';
|
|
3
4
|
import { PhantomReified, Reified, StructClass, ToField, ToJSON, ToTypeArgument, ToTypeStr, TypeArgument } from '../../../_framework/reified';
|
|
4
5
|
import { FieldsWithTypes } from '../../../_framework/util';
|
|
@@ -35,7 +36,11 @@ export declare class Option<Element extends TypeArgument> implements StructClass
|
|
|
35
36
|
static get r(): typeof Option.reified;
|
|
36
37
|
static phantom<Element extends Reified<TypeArgument, any>>(Element: Element): PhantomReified<ToTypeStr<Option<ToTypeArgument<Element>>>>;
|
|
37
38
|
static get p(): typeof Option.phantom;
|
|
38
|
-
|
|
39
|
+
protected static instantiateBcs(): <Element extends BcsType<any>>(Element: Element) => import("@mysten/bcs").BcsStruct<{
|
|
40
|
+
vec: BcsType<import("@mysten/bcs").InferBcsType<Element>[], Iterable<import("@mysten/bcs").InferBcsInput<Element>> & {
|
|
41
|
+
length: number;
|
|
42
|
+
}, string>;
|
|
43
|
+
}, string>;
|
|
39
44
|
private static cachedBcs;
|
|
40
45
|
static get bcs(): ReturnType<typeof Option.instantiateBcs>;
|
|
41
46
|
static fromFields<Element extends Reified<TypeArgument, any>>(typeArg: Element, fields: Record<string, any>): Option<ToTypeArgument<Element>>;
|
|
@@ -48,7 +48,13 @@ export declare class TypeName implements StructClass {
|
|
|
48
48
|
static get r(): TypeNameReified;
|
|
49
49
|
static phantom(): PhantomReified<ToTypeStr<TypeName>>;
|
|
50
50
|
static get p(): PhantomReified<ToTypeStr<TypeName>>;
|
|
51
|
-
|
|
51
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
52
|
+
name: import("@mysten/bcs").BcsStruct<{
|
|
53
|
+
bytes: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
54
|
+
length: number;
|
|
55
|
+
}, string>;
|
|
56
|
+
}, string>;
|
|
57
|
+
}, string>;
|
|
52
58
|
private static cachedBcs;
|
|
53
59
|
static get bcs(): ReturnType<typeof TypeName.instantiateBcs>;
|
|
54
60
|
static fromFields(fields: Record<string, any>): TypeName;
|
|
@@ -58,7 +58,14 @@ export declare class Bag implements StructClass {
|
|
|
58
58
|
static get r(): BagReified;
|
|
59
59
|
static phantom(): PhantomReified<ToTypeStr<Bag>>;
|
|
60
60
|
static get p(): PhantomReified<ToTypeStr<Bag>>;
|
|
61
|
-
|
|
61
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
62
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
63
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
64
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
65
|
+
}, string>;
|
|
66
|
+
}, string>;
|
|
67
|
+
size: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
68
|
+
}, string>;
|
|
62
69
|
private static cachedBcs;
|
|
63
70
|
static get bcs(): ReturnType<typeof Bag.instantiateBcs>;
|
|
64
71
|
static fromFields(fields: Record<string, any>): Bag;
|
|
@@ -37,7 +37,9 @@ export declare class Supply<T extends PhantomTypeArgument> implements StructClas
|
|
|
37
37
|
static get r(): typeof Supply.reified;
|
|
38
38
|
static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<Supply<ToPhantomTypeArgument<T>>>>;
|
|
39
39
|
static get p(): typeof Supply.phantom;
|
|
40
|
-
|
|
40
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
41
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
42
|
+
}, string>;
|
|
41
43
|
private static cachedBcs;
|
|
42
44
|
static get bcs(): ReturnType<typeof Supply.instantiateBcs>;
|
|
43
45
|
static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): Supply<ToPhantomTypeArgument<T>>;
|
|
@@ -83,7 +85,9 @@ export declare class Balance<T extends PhantomTypeArgument> implements StructCla
|
|
|
83
85
|
static get r(): typeof Balance.reified;
|
|
84
86
|
static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<Balance<ToPhantomTypeArgument<T>>>>;
|
|
85
87
|
static get p(): typeof Balance.phantom;
|
|
86
|
-
|
|
88
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
89
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
90
|
+
}, string>;
|
|
87
91
|
private static cachedBcs;
|
|
88
92
|
static get bcs(): ReturnType<typeof Balance.instantiateBcs>;
|
|
89
93
|
static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): Balance<ToPhantomTypeArgument<T>>;
|
|
@@ -37,7 +37,9 @@ export declare class ID implements StructClass {
|
|
|
37
37
|
static get r(): IDReified;
|
|
38
38
|
static phantom(): PhantomReified<ToTypeStr<ID>>;
|
|
39
39
|
static get p(): PhantomReified<ToTypeStr<ID>>;
|
|
40
|
-
|
|
40
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
41
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
42
|
+
}, string>;
|
|
41
43
|
private static cachedBcs;
|
|
42
44
|
static get bcs(): ReturnType<typeof ID.instantiateBcs>;
|
|
43
45
|
static fromFields(fields: Record<string, any>): ID;
|
|
@@ -87,7 +89,11 @@ export declare class UID implements StructClass {
|
|
|
87
89
|
static get r(): UIDReified;
|
|
88
90
|
static phantom(): PhantomReified<ToTypeStr<UID>>;
|
|
89
91
|
static get p(): PhantomReified<ToTypeStr<UID>>;
|
|
90
|
-
|
|
92
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
93
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
94
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
95
|
+
}, string>;
|
|
96
|
+
}, string>;
|
|
91
97
|
private static cachedBcs;
|
|
92
98
|
static get bcs(): ReturnType<typeof UID.instantiateBcs>;
|
|
93
99
|
static fromFields(fields: Record<string, any>): UID;
|
|
@@ -42,7 +42,14 @@ export declare class ObjectTable<K extends PhantomTypeArgument, V extends Phanto
|
|
|
42
42
|
static get r(): typeof ObjectTable.reified;
|
|
43
43
|
static phantom<K extends PhantomReified<PhantomTypeArgument>, V extends PhantomReified<PhantomTypeArgument>>(K: K, V: V): PhantomReified<ToTypeStr<ObjectTable<ToPhantomTypeArgument<K>, ToPhantomTypeArgument<V>>>>;
|
|
44
44
|
static get p(): typeof ObjectTable.phantom;
|
|
45
|
-
|
|
45
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
46
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
47
|
+
id: import("@mysten/bcs").BcsStruct<{
|
|
48
|
+
bytes: import("@mysten/bcs").BcsType<string, string, string>;
|
|
49
|
+
}, string>;
|
|
50
|
+
}, string>;
|
|
51
|
+
size: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
52
|
+
}, string>;
|
|
46
53
|
private static cachedBcs;
|
|
47
54
|
static get bcs(): ReturnType<typeof ObjectTable.instantiateBcs>;
|
|
48
55
|
static fromFields<K extends PhantomReified<PhantomTypeArgument>, V extends PhantomReified<PhantomTypeArgument>>(typeArgs: [K, V], fields: Record<string, any>): ObjectTable<ToPhantomTypeArgument<K>, ToPhantomTypeArgument<V>>;
|
|
@@ -2,10 +2,11 @@ export const mainnetEnv = {
|
|
|
2
2
|
packages: {
|
|
3
3
|
'suilend': {
|
|
4
4
|
originalId: '0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf',
|
|
5
|
-
publishedAt: '
|
|
5
|
+
publishedAt: '0xcb4f73954ee5b1429af01cd19e4175e3a93c4df3a663a65d79912b92599eb729',
|
|
6
6
|
typeOrigins: {
|
|
7
7
|
'cell::Cell': '0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf',
|
|
8
8
|
'decimal::Decimal': '0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf',
|
|
9
|
+
'lending_market::AdminWitness': '0xcb4f73954ee5b1429af01cd19e4175e3a93c4df3a663a65d79912b92599eb729',
|
|
9
10
|
'lending_market::BorrowEvent': '0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf',
|
|
10
11
|
'lending_market::ClaimRewardEvent': '0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf',
|
|
11
12
|
'lending_market::DepositEvent': '0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf',
|
|
@@ -20,6 +21,8 @@ export const mainnetEnv = {
|
|
|
20
21
|
'lending_market::MarketPauseEvent': '0x59672975e15c58ffc9450f5236b6aa9fa2407d94b8081e634778aa01957d8c6f',
|
|
21
22
|
'lending_market::MintEvent': '0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf',
|
|
22
23
|
'lending_market::ObligationOwnerCap': '0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf',
|
|
24
|
+
'lending_market::OperationHoldGenerationKey': '0xcb4f73954ee5b1429af01cd19e4175e3a93c4df3a663a65d79912b92599eb729',
|
|
25
|
+
'lending_market::OperationHoldKey': '0xcb4f73954ee5b1429af01cd19e4175e3a93c4df3a663a65d79912b92599eb729',
|
|
23
26
|
'lending_market::PauseCapGenerationKey': '0x59672975e15c58ffc9450f5236b6aa9fa2407d94b8081e634778aa01957d8c6f',
|
|
24
27
|
'lending_market::PauseCapRotatedEvent': '0x59672975e15c58ffc9450f5236b6aa9fa2407d94b8081e634778aa01957d8c6f',
|
|
25
28
|
'lending_market::PauseKey': '0x59672975e15c58ffc9450f5236b6aa9fa2407d94b8081e634778aa01957d8c6f',
|
|
@@ -28,6 +31,7 @@ export const mainnetEnv = {
|
|
|
28
31
|
'lending_market::RepayEvent': '0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf',
|
|
29
32
|
'lending_market::ReservePauseEvent': '0x59672975e15c58ffc9450f5236b6aa9fa2407d94b8081e634778aa01957d8c6f',
|
|
30
33
|
'lending_market::WithdrawEvent': '0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf',
|
|
34
|
+
'lending_market::WithdrawHoldExemptKey': '0xcb4f73954ee5b1429af01cd19e4175e3a93c4df3a663a65d79912b92599eb729',
|
|
31
35
|
'lending_market_registry::LENDING_MARKET_2': '0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf',
|
|
32
36
|
'lending_market_registry::Registry': '0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf',
|
|
33
37
|
'liquidity_mining::PoolReward': '0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf',
|
|
@@ -42,22 +46,27 @@ export const mainnetEnv = {
|
|
|
42
46
|
'obligation::ExistStaleOracles': '0xd2a67633ccb8de063163e25bcfca242929caf5cf1a26c2929dab519ee0b8f331',
|
|
43
47
|
'obligation::Obligation': '0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf',
|
|
44
48
|
'obligation::ObligationDataEvent': '0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf',
|
|
45
|
-
'oracles::PythPriceAndConfidencePro': '
|
|
49
|
+
'oracles::PythPriceAndConfidencePro': '0xcb4f73954ee5b1429af01cd19e4175e3a93c4df3a663a65d79912b92599eb729',
|
|
46
50
|
'rate_limiter::RateLimiter': '0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf',
|
|
47
51
|
'rate_limiter::RateLimiterConfig': '0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf',
|
|
48
52
|
'reserve::BalanceKey': '0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf',
|
|
49
53
|
'reserve::Balances': '0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf',
|
|
50
54
|
'reserve::CToken': '0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf',
|
|
51
55
|
'reserve::ClaimStakingRewardsEvent': '0x5b54b47971238403d6ade3c8c2cc75814cb55145a5184af916bb5b12aaf184cb',
|
|
52
|
-
'reserve::ConfidenceKey': '
|
|
56
|
+
'reserve::ConfidenceKey': '0xcb4f73954ee5b1429af01cd19e4175e3a93c4df3a663a65d79912b92599eb729',
|
|
53
57
|
'reserve::InterestUpdateEvent': '0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf',
|
|
54
58
|
'reserve::LiquidityRequest': '0x5b54b47971238403d6ade3c8c2cc75814cb55145a5184af916bb5b12aaf184cb',
|
|
55
59
|
'reserve::PriceGuard': '0x59672975e15c58ffc9450f5236b6aa9fa2407d94b8081e634778aa01957d8c6f',
|
|
56
60
|
'reserve::PriceGuardKey': '0x59672975e15c58ffc9450f5236b6aa9fa2407d94b8081e634778aa01957d8c6f',
|
|
61
|
+
'reserve::RateLimiterExemptKey': '0xcb4f73954ee5b1429af01cd19e4175e3a93c4df3a663a65d79912b92599eb729',
|
|
62
|
+
'reserve::RawPrice': '0xcb4f73954ee5b1429af01cd19e4175e3a93c4df3a663a65d79912b92599eb729',
|
|
63
|
+
'reserve::RawPriceKey': '0xcb4f73954ee5b1429af01cd19e4175e3a93c4df3a663a65d79912b92599eb729',
|
|
57
64
|
'reserve::Reserve': '0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf',
|
|
58
65
|
'reserve::ReserveAssetDataEvent': '0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf',
|
|
59
66
|
'reserve::ReservePauseKey': '0x59672975e15c58ffc9450f5236b6aa9fa2407d94b8081e634778aa01957d8c6f',
|
|
67
|
+
'reserve::ReserveWitness': '0xcb4f73954ee5b1429af01cd19e4175e3a93c4df3a663a65d79912b92599eb729',
|
|
60
68
|
'reserve::StakerKey': '0x5b54b47971238403d6ade3c8c2cc75814cb55145a5184af916bb5b12aaf184cb',
|
|
69
|
+
'reserve::StakerValidatorKey': '0xcb4f73954ee5b1429af01cd19e4175e3a93c4df3a663a65d79912b92599eb729',
|
|
61
70
|
'reserve_config::ConfidenceMultiplierKey': '0x59672975e15c58ffc9450f5236b6aa9fa2407d94b8081e634778aa01957d8c6f',
|
|
62
71
|
'reserve_config::ReserveConfig': '0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf',
|
|
63
72
|
'reserve_config::ReserveConfigBuilder': '0xf95b06141ed4a174f239417323bde3f209b972f5930d8521ea38a52aff3a6ddf',
|
|
@@ -364,6 +373,33 @@ export const mainnetEnv = {
|
|
|
364
373
|
'version_control::V__DUMMY': '0x55300367a2d40813727ccac4ecee977a39fb9cdb46f2e6b2c354b9798f5de2c0',
|
|
365
374
|
},
|
|
366
375
|
},
|
|
376
|
+
'events': {
|
|
377
|
+
originalId: '0x83a3afdf23a18e024abdbdbd10dc5b1caad415d412ec94e169b8545b421966f4',
|
|
378
|
+
publishedAt: '0x83a3afdf23a18e024abdbdbd10dc5b1caad415d412ec94e169b8545b421966f4',
|
|
379
|
+
typeOrigins: {
|
|
380
|
+
'suilend_admin::FeeReceiversSet': '0x83a3afdf23a18e024abdbdbd10dc5b1caad415d412ec94e169b8545b421966f4',
|
|
381
|
+
'suilend_admin::MarketMigrated': '0x83a3afdf23a18e024abdbdbd10dc5b1caad415d412ec94e169b8545b421966f4',
|
|
382
|
+
'suilend_admin::ObligationOwnerCapMinted': '0x83a3afdf23a18e024abdbdbd10dc5b1caad415d412ec94e169b8545b421966f4',
|
|
383
|
+
'suilend_admin::PointsRewardDrained': '0x83a3afdf23a18e024abdbdbd10dc5b1caad415d412ec94e169b8545b421966f4',
|
|
384
|
+
'suilend_admin::PoolRewardAdded': '0x83a3afdf23a18e024abdbdbd10dc5b1caad415d412ec94e169b8545b421966f4',
|
|
385
|
+
'suilend_admin::PoolRewardCancelled': '0x83a3afdf23a18e024abdbdbd10dc5b1caad415d412ec94e169b8545b421966f4',
|
|
386
|
+
'suilend_admin::PoolRewardClosed': '0x83a3afdf23a18e024abdbdbd10dc5b1caad415d412ec94e169b8545b421966f4',
|
|
387
|
+
'suilend_admin::RateLimiterConfigUpdated': '0x83a3afdf23a18e024abdbdbd10dc5b1caad415d412ec94e169b8545b421966f4',
|
|
388
|
+
'suilend_admin::ReserveAdded': '0x83a3afdf23a18e024abdbdbd10dc5b1caad415d412ec94e169b8545b421966f4',
|
|
389
|
+
'suilend_admin::ReserveConfigUpdated': '0x83a3afdf23a18e024abdbdbd10dc5b1caad415d412ec94e169b8545b421966f4',
|
|
390
|
+
'suilend_admin::ReservePriceFeedChanged': '0x83a3afdf23a18e024abdbdbd10dc5b1caad415d412ec94e169b8545b421966f4',
|
|
391
|
+
'suilend_admin::ReservePriceGuardSet': '0x83a3afdf23a18e024abdbdbd10dc5b1caad415d412ec94e169b8545b421966f4',
|
|
392
|
+
'suilend_admin::StakerInitialized': '0x83a3afdf23a18e024abdbdbd10dc5b1caad415d412ec94e169b8545b421966f4',
|
|
393
|
+
'suilend_admin::StakerValidatorSet': '0x83a3afdf23a18e024abdbdbd10dc5b1caad415d412ec94e169b8545b421966f4',
|
|
394
|
+
'suilend_lending_market::AutoHoldDurationEvent': '0x83a3afdf23a18e024abdbdbd10dc5b1caad415d412ec94e169b8545b421966f4',
|
|
395
|
+
'suilend_lending_market::OperationHoldEvent': '0x83a3afdf23a18e024abdbdbd10dc5b1caad415d412ec94e169b8545b421966f4',
|
|
396
|
+
'suilend_lending_market::ProtocolLiquidationFeeLoweredEvent': '0x83a3afdf23a18e024abdbdbd10dc5b1caad415d412ec94e169b8545b421966f4',
|
|
397
|
+
'suilend_lending_market::ReserveHoldOverrideEvent': '0x83a3afdf23a18e024abdbdbd10dc5b1caad415d412ec94e169b8545b421966f4',
|
|
398
|
+
'suilend_lending_market::ReserveRateLimiterExemptEvent': '0x83a3afdf23a18e024abdbdbd10dc5b1caad415d412ec94e169b8545b421966f4',
|
|
399
|
+
'suilend_lending_market::WithdrawHoldExemptEvent': '0x83a3afdf23a18e024abdbdbd10dc5b1caad415d412ec94e169b8545b421966f4',
|
|
400
|
+
'suilend_reserve::ReserveAssetDataEventV2': '0x83a3afdf23a18e024abdbdbd10dc5b1caad415d412ec94e169b8545b421966f4',
|
|
401
|
+
},
|
|
402
|
+
},
|
|
367
403
|
'pyth-2': {
|
|
368
404
|
originalId: '0x8d97f1cd6ac663735be08d1d2b6d02a159e711586461306ce60a2b7a6a565a9e',
|
|
369
405
|
publishedAt: '0x4e20ddf36af412a4096f9014f4a565af9e812db9a05cc40254846cf6ed0ad91',
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BcsType } from '@mysten/sui/bcs';
|
|
1
2
|
import type { ClientWithCoreApi, SuiClientTypes } from '@mysten/sui/client';
|
|
2
3
|
import { Option } from '../../_dependencies/std/option/structs';
|
|
3
4
|
import { PhantomReified, Reified, StructClass, ToField, ToJSON, ToTypeArgument, ToTypeStr, TypeArgument } from '../../_framework/reified';
|
|
@@ -29,7 +30,13 @@ export declare class Cell<Element extends TypeArgument> implements StructClass {
|
|
|
29
30
|
static get r(): typeof Cell.reified;
|
|
30
31
|
static phantom<Element extends Reified<TypeArgument, any>>(Element: Element): PhantomReified<ToTypeStr<Cell<ToTypeArgument<Element>>>>;
|
|
31
32
|
static get p(): typeof Cell.phantom;
|
|
32
|
-
|
|
33
|
+
protected static instantiateBcs(): <Element extends BcsType<any>>(Element: Element) => import("@mysten/bcs").BcsStruct<{
|
|
34
|
+
element: import("@mysten/bcs").BcsStruct<{
|
|
35
|
+
vec: BcsType<import("@mysten/bcs").InferBcsType<Element>[], Iterable<import("@mysten/bcs").InferBcsInput<Element>> & {
|
|
36
|
+
length: number;
|
|
37
|
+
}, string>;
|
|
38
|
+
}, string>;
|
|
39
|
+
}, string>;
|
|
33
40
|
private static cachedBcs;
|
|
34
41
|
static get bcs(): ReturnType<typeof Cell.instantiateBcs>;
|
|
35
42
|
static fromFields<Element extends Reified<TypeArgument, any>>(typeArg: Element, fields: Record<string, any>): Cell<ToTypeArgument<Element>>;
|
|
@@ -29,7 +29,9 @@ export declare class Decimal implements StructClass {
|
|
|
29
29
|
static get r(): DecimalReified;
|
|
30
30
|
static phantom(): PhantomReified<ToTypeStr<Decimal>>;
|
|
31
31
|
static get p(): PhantomReified<ToTypeStr<Decimal>>;
|
|
32
|
-
|
|
32
|
+
protected static instantiateBcs(): import("@mysten/bcs").BcsStruct<{
|
|
33
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
34
|
+
}, string>;
|
|
33
35
|
private static cachedBcs;
|
|
34
36
|
static get bcs(): ReturnType<typeof Decimal.instantiateBcs>;
|
|
35
37
|
static fromFields(fields: Record<string, any>): Decimal;
|