@sonarwatch/portfolio-plugins 0.11.97 → 0.11.99
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +1095 -1087
- package/README.md +3 -3
- package/package.json +3 -3
- package/src/plugins/01/depostisFetcher.js +2 -1
- package/src/plugins/01/depostisFetcher.js.map +1 -1
- package/src/plugins/aave/helpers.js +2 -1
- package/src/plugins/aave/helpers.js.map +1 -1
- package/src/plugins/aftermath/poolsJob.js +22 -20
- package/src/plugins/aftermath/poolsJob.js.map +1 -1
- package/src/plugins/aptin/depositsFetcher.js +2 -1
- package/src/plugins/aptin/depositsFetcher.js.map +1 -1
- package/src/plugins/aries/depositsFetcher.js +2 -1
- package/src/plugins/aries/depositsFetcher.js.map +1 -1
- package/src/plugins/aurory/helpers.d.ts +1 -1
- package/src/plugins/aurory/helpers.js +1 -12
- package/src/plugins/aurory/helpers.js.map +1 -1
- package/src/plugins/aurory/stakingFetcher.js +1 -1
- package/src/plugins/aurory/stakingFetcher.js.map +1 -1
- package/src/plugins/balancer/helpers/pools.js +21 -21
- package/src/plugins/bucket/collateralFetcher.js +7 -9
- package/src/plugins/bucket/collateralFetcher.js.map +1 -1
- package/src/plugins/cetus/clmmsFetcher.js +5 -5
- package/src/plugins/cetus/clmmsFetcher.js.map +1 -1
- package/src/plugins/cetus/helpers.d.ts +4 -4
- package/src/plugins/cetus/helpers.js +23 -12
- package/src/plugins/cetus/helpers.js.map +1 -1
- package/src/plugins/cetus/poolsJob.js +5 -10
- package/src/plugins/cetus/poolsJob.js.map +1 -1
- package/src/plugins/compound/getPositionsV2Fetcher.js +2 -1
- package/src/plugins/compound/getPositionsV2Fetcher.js.map +1 -1
- package/src/plugins/compound/getPositionsV3Fetcher.js +2 -1
- package/src/plugins/compound/getPositionsV3Fetcher.js.map +1 -1
- package/src/plugins/drift/deposits.js +2 -1
- package/src/plugins/drift/deposits.js.map +1 -1
- package/src/plugins/flash/perpetualFetcher.js +2 -1
- package/src/plugins/flash/perpetualFetcher.js.map +1 -1
- package/src/plugins/flowmatic/stakingFetcher.js +2 -0
- package/src/plugins/flowmatic/stakingFetcher.js.map +1 -1
- package/src/plugins/genesysgo/stakingFetcher.js +2 -0
- package/src/plugins/genesysgo/stakingFetcher.js.map +1 -1
- package/src/plugins/jupiter/perpetualFetcher.js +2 -1
- package/src/plugins/jupiter/perpetualFetcher.js.map +1 -1
- package/src/plugins/kamino/lendsFetcher.js +6 -3
- package/src/plugins/kamino/lendsFetcher.js.map +1 -1
- package/src/plugins/maker/vaultsFetcher.js +2 -1
- package/src/plugins/maker/vaultsFetcher.js.map +1 -1
- package/src/plugins/mango/boostFetcher.js +2 -1
- package/src/plugins/mango/boostFetcher.js.map +1 -1
- package/src/plugins/mango/collateralFetcher.js +2 -1
- package/src/plugins/mango/collateralFetcher.js.map +1 -1
- package/src/plugins/mango/redeemFetcher.js +2 -1
- package/src/plugins/mango/redeemFetcher.js.map +1 -1
- package/src/plugins/maple/ethereumFetcher.js +2 -1
- package/src/plugins/maple/ethereumFetcher.js.map +1 -1
- package/src/plugins/marginfi/fetcherExecutor.js +2 -1
- package/src/plugins/marginfi/fetcherExecutor.js.map +1 -1
- package/src/plugins/morpho/aaveV3CollateralFetcher.js +2 -1
- package/src/plugins/morpho/aaveV3CollateralFetcher.js.map +1 -1
- package/src/plugins/navi/collateralFetcher.js +10 -8
- package/src/plugins/navi/collateralFetcher.js.map +1 -1
- package/src/plugins/navi/reservesJob.js +5 -4
- package/src/plugins/navi/reservesJob.js.map +1 -1
- package/src/plugins/port/obligationsFetcher.js +2 -1
- package/src/plugins/port/obligationsFetcher.js.map +1 -1
- package/src/plugins/scallop/helpers.d.ts +0 -49
- package/src/plugins/scallop/helpers.js +1 -39
- package/src/plugins/scallop/helpers.js.map +1 -1
- package/src/plugins/scallop/lendingsFetcher.js +19 -15
- package/src/plugins/scallop/lendingsFetcher.js.map +1 -1
- package/src/plugins/scallop/marketJob.js +16 -16
- package/src/plugins/scallop/marketJob.js.map +1 -1
- package/src/plugins/scallop/obligationsFetcher.js +27 -22
- package/src/plugins/scallop/obligationsFetcher.js.map +1 -1
- package/src/plugins/scallop/poolsJob.js +7 -12
- package/src/plugins/scallop/poolsJob.js.map +1 -1
- package/src/plugins/scallop/spoolsMarketJob.js +8 -15
- package/src/plugins/scallop/spoolsMarketJob.js.map +1 -1
- package/src/plugins/scallop/types/coin.d.ts +1 -1
- package/src/plugins/scallop/types/market.d.ts +3 -4
- package/src/plugins/scallop/types/market.js.map +1 -1
- package/src/plugins/solend/obligationsFetcher.js +2 -1
- package/src/plugins/solend/obligationsFetcher.js.map +1 -1
- package/src/plugins/sushiswap/helpers.js +24 -24
- package/src/plugins/thala/vaultsFetcher.js +2 -1
- package/src/plugins/thala/vaultsFetcher.js.map +1 -1
- package/src/plugins/tokens/fetchers/sui-nfts.js +47 -107
- package/src/plugins/tokens/fetchers/sui-nfts.js.map +1 -1
- package/src/plugins/tokens/types.d.ts +0 -48
- package/src/plugins/turbos/clmmsPositionsFetcher.js +18 -16
- package/src/plugins/turbos/clmmsPositionsFetcher.js.map +1 -1
- package/src/plugins/turbos/helper.d.ts +3 -3
- package/src/plugins/turbos/helper.js +6 -4
- package/src/plugins/turbos/helper.js.map +1 -1
- package/src/plugins/turbos/poolsJob.js +10 -10
- package/src/plugins/turbos/poolsJob.js.map +1 -1
- package/src/plugins/uniswap-v2/helpers.js +22 -22
- package/src/utils/clients/getClientSui.d.ts +2 -2
- package/src/utils/clients/getClientSui.js +8 -3
- package/src/utils/clients/getClientSui.js.map +1 -1
- package/src/utils/clients/types.d.ts +2 -0
- package/src/utils/sei/constants.js +8 -8
- package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
- package/src/utils/sui/getDynamicFieldObject.d.ts +4 -0
- package/src/utils/sui/{getMultipleObjectsSafe.js → getDynamicFieldObject.js} +9 -13
- package/src/utils/sui/getDynamicFieldObject.js.map +1 -0
- package/src/utils/sui/getDynamicFields.d.ts +3 -0
- package/src/utils/sui/getDynamicFields.js +38 -0
- package/src/utils/sui/getDynamicFields.js.map +1 -0
- package/src/utils/sui/getObject.d.ts +4 -0
- package/src/utils/sui/{getDynamicFieldsSafe.js → getObject.js} +8 -16
- package/src/utils/sui/getObject.js.map +1 -0
- package/src/utils/sui/getObjectDeletedResponse.d.ts +3 -0
- package/src/utils/sui/getObjectDeletedResponse.js +19 -0
- package/src/utils/sui/getObjectDeletedResponse.js.map +1 -0
- package/src/utils/sui/getObjectNotExistsResponse.d.ts +2 -0
- package/src/utils/sui/getObjectNotExistsResponse.js +14 -0
- package/src/utils/sui/getObjectNotExistsResponse.js.map +1 -0
- package/src/utils/sui/getOwnedObjects.d.ts +4 -0
- package/src/utils/sui/getOwnedObjects.js +36 -0
- package/src/utils/sui/getOwnedObjects.js.map +1 -0
- package/src/utils/sui/multiGetObjects.d.ts +4 -0
- package/src/utils/sui/multiGetObjects.js +32 -0
- package/src/utils/sui/multiGetObjects.js.map +1 -0
- package/src/utils/sui/queryEvents.d.ts +4 -0
- package/src/utils/sui/{queryEventSafe.js → queryEvents.js} +16 -12
- package/src/utils/sui/queryEvents.js.map +1 -0
- package/src/utils/sui/structs/kiosk.d.ts +7 -0
- package/src/utils/sui/structs/kiosk.js +3 -0
- package/src/utils/sui/structs/kiosk.js.map +1 -0
- package/src/utils/sui/structs/nft.d.ts +41 -0
- package/src/utils/sui/structs/nft.js +3 -0
- package/src/utils/sui/structs/nft.js.map +1 -0
- package/src/utils/sui/types.d.ts +23 -0
- package/src/utils/sui/types.js +3 -0
- package/src/utils/sui/types.js.map +1 -0
- package/src/utils/sui/getDynamicFieldsSafe.d.ts +0 -13
- package/src/utils/sui/getDynamicFieldsSafe.js.map +0 -1
- package/src/utils/sui/getFormattedCollectionNameAndId.d.ts +0 -4
- package/src/utils/sui/getFormattedCollectionNameAndId.js +0 -19
- package/src/utils/sui/getFormattedCollectionNameAndId.js.map +0 -1
- package/src/utils/sui/getMultipleObjectsSafe.d.ts +0 -67
- package/src/utils/sui/getMultipleObjectsSafe.js.map +0 -1
- package/src/utils/sui/queryEventSafe.d.ts +0 -14
- package/src/utils/sui/queryEventSafe.js.map +0 -1
@@ -1,67 +0,0 @@
|
|
1
|
-
import { JsonRpcProvider } from '@mysten/sui.js';
|
2
|
-
export default function getMultipleSuiObjectsSafe(client: JsonRpcProvider, ids: string[], options?: {
|
3
|
-
showContent?: boolean;
|
4
|
-
showType?: boolean;
|
5
|
-
showBcs?: boolean;
|
6
|
-
showDisplay?: boolean;
|
7
|
-
showOwner?: boolean;
|
8
|
-
showPreviousTransaction?: boolean;
|
9
|
-
showStorageRebate?: boolean;
|
10
|
-
}): Promise<{
|
11
|
-
data?: {
|
12
|
-
objectId: string;
|
13
|
-
version: string;
|
14
|
-
digest: string;
|
15
|
-
type?: string | undefined;
|
16
|
-
bcs?: {
|
17
|
-
type: string;
|
18
|
-
version: number;
|
19
|
-
hasPublicTransfer: boolean;
|
20
|
-
dataType: "moveObject";
|
21
|
-
bcsBytes: string;
|
22
|
-
} | {
|
23
|
-
id: string;
|
24
|
-
dataType: "package";
|
25
|
-
moduleMap: Record<string, string>;
|
26
|
-
} | undefined;
|
27
|
-
owner?: {
|
28
|
-
AddressOwner: string;
|
29
|
-
} | {
|
30
|
-
ObjectOwner: string;
|
31
|
-
} | {
|
32
|
-
Shared: {
|
33
|
-
initial_shared_version: number;
|
34
|
-
};
|
35
|
-
} | "Immutable" | undefined;
|
36
|
-
storageRebate?: string | undefined;
|
37
|
-
previousTransaction?: string | undefined;
|
38
|
-
content?: {
|
39
|
-
type: string;
|
40
|
-
fields: Record<string, any>;
|
41
|
-
hasPublicTransfer: boolean;
|
42
|
-
dataType: "moveObject";
|
43
|
-
} | {
|
44
|
-
disassembled: Record<string, string>;
|
45
|
-
dataType: "package";
|
46
|
-
} | undefined;
|
47
|
-
display?: Record<string, string> | {
|
48
|
-
data: Record<string, string> | null;
|
49
|
-
error: {
|
50
|
-
code: string;
|
51
|
-
version?: number | undefined;
|
52
|
-
digest?: string | undefined;
|
53
|
-
error?: string | undefined;
|
54
|
-
object_id?: string | undefined;
|
55
|
-
parent_object_id?: string | undefined;
|
56
|
-
} | null;
|
57
|
-
} | undefined;
|
58
|
-
} | undefined;
|
59
|
-
error?: {
|
60
|
-
code: string;
|
61
|
-
version?: number | undefined;
|
62
|
-
digest?: string | undefined;
|
63
|
-
error?: string | undefined;
|
64
|
-
object_id?: string | undefined;
|
65
|
-
parent_object_id?: string | undefined;
|
66
|
-
} | undefined;
|
67
|
-
}[]>;
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"getMultipleObjectsSafe.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/sui/getMultipleObjectsSafe.ts"],"names":[],"mappings":";;;;;;;;;;;AAEA,SAA8B,yBAAyB,CACrD,MAAuB,EACvB,GAAa,EACb,OAQC;;QAED,MAAM,OAAO,GAAG,EAAE,CAAC;QACnB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,GAAG,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC;YACzC,MAAM,aAAa,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;YACrD,MAAM,WAAW,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC;gBAC/C,GAAG,EAAE,aAAa;gBAClB,OAAO;aACR,CAAC,CAAC;YACH,OAAO,CAAC,IAAI,CAAC,GAAG,WAAW,CAAC,CAAC;QAC/B,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;CAAA;AAvBD,4CAuBC"}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { JsonRpcProvider, SuiEventFilter } from '@mysten/sui.js';
|
2
|
-
export default function queryEventsSafe(client: JsonRpcProvider, query: SuiEventFilter): Promise<{
|
3
|
-
id: {
|
4
|
-
txDigest: string;
|
5
|
-
eventSeq: string;
|
6
|
-
};
|
7
|
-
packageId: string;
|
8
|
-
transactionModule: string;
|
9
|
-
sender: string;
|
10
|
-
type: string;
|
11
|
-
parsedJson?: Record<string, any> | undefined;
|
12
|
-
bcs?: string | undefined;
|
13
|
-
timestampMs?: string | undefined;
|
14
|
-
}[]>;
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"queryEventSafe.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/sui/queryEventSafe.ts"],"names":[],"mappings":";;;;;;;;;;;AAEA,SAA8B,eAAe,CAC3C,MAAuB,EACvB,KAAqB;;QAErB,MAAM,UAAU,GAAG,EAAE,CAAC;QACtB,IAAI,IAAI,CAAC;QACT,IAAI,MAAM,CAAC;QACX,GAAG,CAAC;YACF,IAAI,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC;gBAC9B,KAAK;gBACL,MAAM;aACP,CAAC,CAAC;YACH,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC;YACzB,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC;gBAAE,UAAU,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;QAC1D,CAAC,QAAQ,IAAI,CAAC,WAAW,EAAE;QAC3B,OAAO,UAAU,CAAC;IACpB,CAAC;CAAA;AAhBD,kCAgBC"}
|