@sonarwatch/portfolio-plugins 0.6.9 → 0.7.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/CHANGELOG.md +8 -0
- package/package.json +2 -2
- package/src/Storage.d.ts +18 -0
- package/src/Storage.js +7 -0
- package/src/Storage.js.map +1 -0
- package/src/StorageMemory.d.ts +20 -0
- package/src/StorageMemory.js +93 -0
- package/src/StorageMemory.js.map +1 -0
- package/src/index.d.ts +0 -1
- package/src/index.js +30 -15
- package/src/index.js.map +1 -1
- package/src/plugins/aave/constants.d.ts +2 -1
- package/src/plugins/aave/constants.js +6 -1
- package/src/plugins/aave/constants.js.map +1 -1
- package/src/plugins/aave/index.d.ts +2 -0
- package/src/plugins/aave/index.js +2 -1
- package/src/plugins/aave/index.js.map +1 -1
- package/src/plugins/aftermath/constants.d.ts +2 -0
- package/src/plugins/aftermath/constants.js +6 -1
- package/src/plugins/aftermath/constants.js.map +1 -1
- package/src/plugins/aftermath/index.d.ts +2 -0
- package/src/plugins/aftermath/index.js +3 -1
- package/src/plugins/aftermath/index.js.map +1 -1
- package/src/plugins/astroport/constants.d.ts +2 -0
- package/src/plugins/astroport/constants.js +6 -1
- package/src/plugins/astroport/constants.js.map +1 -1
- package/src/plugins/astroport/index.d.ts +2 -0
- package/src/plugins/astroport/index.js +3 -1
- package/src/plugins/astroport/index.js.map +1 -1
- package/src/plugins/auxexchange/constants.d.ts +2 -0
- package/src/plugins/auxexchange/constants.js +6 -1
- package/src/plugins/auxexchange/constants.js.map +1 -1
- package/src/plugins/auxexchange/index.d.ts +2 -0
- package/src/plugins/auxexchange/index.js +3 -1
- package/src/plugins/auxexchange/index.js.map +1 -1
- package/src/plugins/cetus/constants.d.ts +2 -0
- package/src/plugins/cetus/constants.js +6 -1
- package/src/plugins/cetus/constants.js.map +1 -1
- package/src/plugins/cetus/index.d.ts +2 -0
- package/src/plugins/cetus/index.js +3 -1
- package/src/plugins/cetus/index.js.map +1 -1
- package/src/plugins/drift/constants.d.ts +2 -0
- package/src/plugins/drift/constants.js +6 -1
- package/src/plugins/drift/constants.js.map +1 -1
- package/src/plugins/drift/index.d.ts +2 -0
- package/src/plugins/drift/index.js +3 -1
- package/src/plugins/drift/index.js.map +1 -1
- package/src/plugins/liquiditypools-sei/constants.d.ts +4 -1
- package/src/plugins/liquiditypools-sei/constants.js +16 -7
- package/src/plugins/liquiditypools-sei/constants.js.map +1 -1
- package/src/plugins/liquiditypools-sei/fetcher.js +1 -1
- package/src/plugins/liquiditypools-sei/fetcher.js.map +1 -1
- package/src/plugins/liquiditypools-sei/index.d.ts +2 -0
- package/src/plugins/liquiditypools-sei/index.js +3 -1
- package/src/plugins/liquiditypools-sei/index.js.map +1 -1
- package/src/plugins/liquiditypools-sei/job.js +1 -1
- package/src/plugins/liquiditypools-sei/job.js.map +1 -1
- package/src/plugins/liquidswap/constants.d.ts +2 -0
- package/src/plugins/liquidswap/constants.js +6 -1
- package/src/plugins/liquidswap/constants.js.map +1 -1
- package/src/plugins/liquidswap/index.d.ts +2 -0
- package/src/plugins/liquidswap/index.js +3 -1
- package/src/plugins/liquidswap/index.js.map +1 -1
- package/src/plugins/maker/sdaiJob.js +2 -2
- package/src/plugins/maker/sdaiJob.js.map +1 -1
- package/src/plugins/mango/constants.d.ts +2 -0
- package/src/plugins/mango/constants.js +6 -1
- package/src/plugins/mango/constants.js.map +1 -1
- package/src/plugins/mango/index.d.ts +2 -0
- package/src/plugins/mango/index.js +3 -1
- package/src/plugins/mango/index.js.map +1 -1
- package/src/plugins/marginfi/constants.d.ts +2 -0
- package/src/plugins/marginfi/constants.js +6 -1
- package/src/plugins/marginfi/constants.js.map +1 -1
- package/src/plugins/marginfi/index.d.ts +2 -0
- package/src/plugins/marginfi/index.js +3 -1
- package/src/plugins/marginfi/index.js.map +1 -1
- package/src/plugins/marinade/constants.d.ts +3 -1
- package/src/plugins/marinade/constants.js +7 -3
- package/src/plugins/marinade/constants.js.map +1 -1
- package/src/plugins/marinade/index.d.ts +2 -0
- package/src/plugins/marinade/index.js +3 -1
- package/src/plugins/marinade/index.js.map +1 -1
- package/src/plugins/meteora/constants.d.ts +2 -0
- package/src/plugins/meteora/constants.js +6 -1
- package/src/plugins/meteora/constants.js.map +1 -1
- package/src/plugins/meteora/index.d.ts +2 -0
- package/src/plugins/meteora/index.js +3 -1
- package/src/plugins/meteora/index.js.map +1 -1
- package/src/plugins/morpho/constants.d.ts +2 -0
- package/src/plugins/morpho/constants.js +6 -1
- package/src/plugins/morpho/constants.js.map +1 -1
- package/src/plugins/morpho/index.d.ts +2 -0
- package/src/plugins/morpho/index.js +3 -1
- package/src/plugins/morpho/index.js.map +1 -1
- package/src/plugins/native-stake/aptosFetcher.js +1 -2
- package/src/plugins/native-stake/aptosFetcher.js.map +1 -1
- package/src/plugins/native-stake/constants.d.ts +2 -0
- package/src/plugins/native-stake/constants.js +6 -1
- package/src/plugins/native-stake/constants.js.map +1 -1
- package/src/plugins/native-stake/index.d.ts +2 -0
- package/src/plugins/native-stake/index.js +3 -1
- package/src/plugins/native-stake/index.js.map +1 -1
- package/src/plugins/native-stake/solanaFetcher.js +2 -3
- package/src/plugins/native-stake/solanaFetcher.js.map +1 -1
- package/src/plugins/native-stake/suiFetcher.js +1 -2
- package/src/plugins/native-stake/suiFetcher.js.map +1 -1
- package/src/plugins/orca/constants.d.ts +2 -0
- package/src/plugins/orca/constants.js +6 -1
- package/src/plugins/orca/constants.js.map +1 -1
- package/src/plugins/orca/index.d.ts +2 -0
- package/src/plugins/orca/index.js +3 -1
- package/src/plugins/orca/index.js.map +1 -1
- package/src/plugins/orders/clobs-solana/constants.d.ts +3 -0
- package/src/plugins/orders/clobs-solana/constants.js +15 -6
- package/src/plugins/orders/clobs-solana/constants.js.map +1 -1
- package/src/plugins/orders/clobs-solana/openbookFetcher.js +2 -3
- package/src/plugins/orders/clobs-solana/openbookFetcher.js.map +1 -1
- package/src/plugins/orders/clobs-solana/serumFetcherExecutorGenerator.js +4 -4
- package/src/plugins/orders/clobs-solana/serumFetcherExecutorGenerator.js.map +1 -1
- package/src/plugins/orders/constants.d.ts +1 -1
- package/src/plugins/orders/constants.js +2 -2
- package/src/plugins/orders/constants.js.map +1 -1
- package/src/plugins/orders/index.d.ts +2 -0
- package/src/plugins/orders/index.js +8 -1
- package/src/plugins/orders/index.js.map +1 -1
- package/src/plugins/orders/jupiter/constants.d.ts +2 -0
- package/src/plugins/orders/jupiter/constants.js +9 -0
- package/src/plugins/orders/jupiter/constants.js.map +1 -0
- package/src/plugins/orders/jupiter/limitFetcher.js +3 -3
- package/src/plugins/orders/jupiter/limitFetcher.js.map +1 -1
- package/src/plugins/pancakeswap/constants.d.ts +2 -0
- package/src/plugins/pancakeswap/constants.js +6 -1
- package/src/plugins/pancakeswap/constants.js.map +1 -1
- package/src/plugins/pancakeswap/index.d.ts +2 -0
- package/src/plugins/pancakeswap/index.js +3 -1
- package/src/plugins/pancakeswap/index.js.map +1 -1
- package/src/plugins/raydium/constants.d.ts +2 -0
- package/src/plugins/raydium/constants.js +6 -1
- package/src/plugins/raydium/constants.js.map +1 -1
- package/src/plugins/raydium/index.d.ts +2 -0
- package/src/plugins/raydium/index.js +3 -1
- package/src/plugins/raydium/index.js.map +1 -1
- package/src/plugins/saber/constants.d.ts +2 -0
- package/src/plugins/saber/constants.js +6 -1
- package/src/plugins/saber/constants.js.map +1 -1
- package/src/plugins/saber/index.d.ts +2 -0
- package/src/plugins/saber/index.js +3 -1
- package/src/plugins/saber/index.js.map +1 -1
- package/src/plugins/solend/constants.d.ts +2 -0
- package/src/plugins/solend/constants.js +6 -1
- package/src/plugins/solend/constants.js.map +1 -1
- package/src/plugins/solend/index.d.ts +2 -0
- package/src/plugins/solend/index.js +3 -1
- package/src/plugins/solend/index.js.map +1 -1
- package/src/plugins/staking-aptos/constants.d.ts +2 -0
- package/src/plugins/staking-aptos/constants.js +7 -3
- package/src/plugins/staking-aptos/constants.js.map +1 -1
- package/src/plugins/staking-aptos/index.d.ts +2 -0
- package/src/plugins/staking-aptos/index.js +3 -1
- package/src/plugins/staking-aptos/index.js.map +1 -1
- package/src/plugins/tensor/constants.d.ts +3 -1
- package/src/plugins/tensor/constants.js +7 -3
- package/src/plugins/tensor/constants.js.map +1 -1
- package/src/plugins/tensor/index.d.ts +2 -0
- package/src/plugins/tensor/index.js +3 -1
- package/src/plugins/tensor/index.js.map +1 -1
- package/src/plugins/thala/constants.d.ts +2 -0
- package/src/plugins/thala/constants.js +6 -1
- package/src/plugins/thala/constants.js.map +1 -1
- package/src/plugins/thala/index.d.ts +2 -0
- package/src/plugins/thala/index.js +3 -1
- package/src/plugins/thala/index.js.map +1 -1
- package/src/plugins/tokens/constants.d.ts +3 -0
- package/src/plugins/tokens/constants.js +12 -3
- package/src/plugins/tokens/constants.js.map +1 -1
- package/src/plugins/tokens/fetchers/aptos-nfts.js +3 -3
- package/src/plugins/tokens/fetchers/aptos-nfts.js.map +1 -1
- package/src/plugins/tokens/fetchers/aptos.js +4 -4
- package/src/plugins/tokens/fetchers/aptos.js.map +1 -1
- package/src/plugins/tokens/fetchers/evms/evmExecutorGenerator.js +1 -2
- package/src/plugins/tokens/fetchers/evms/evmExecutorGenerator.js.map +1 -1
- package/src/plugins/tokens/fetchers/evms/evmNativeExecutorGenerator.js +2 -2
- package/src/plugins/tokens/fetchers/evms/evmNativeExecutorGenerator.js.map +1 -1
- package/src/plugins/tokens/fetchers/evms/index.js +4 -4
- package/src/plugins/tokens/fetchers/evms/index.js.map +1 -1
- package/src/plugins/tokens/fetchers/sei.js +3 -3
- package/src/plugins/tokens/fetchers/sei.js.map +1 -1
- package/src/plugins/tokens/fetchers/solana-native.js +3 -3
- package/src/plugins/tokens/fetchers/solana-native.js.map +1 -1
- package/src/plugins/tokens/fetchers/solana-nfts-underlyings.js +2 -2
- package/src/plugins/tokens/fetchers/solana-nfts-underlyings.js.map +1 -1
- package/src/plugins/tokens/fetchers/solana-nfts.js +3 -3
- package/src/plugins/tokens/fetchers/solana-nfts.js.map +1 -1
- package/src/plugins/tokens/fetchers/solana.js +4 -4
- package/src/plugins/tokens/fetchers/solana.js.map +1 -1
- package/src/plugins/tokens/fetchers/sui-nfts.js +3 -3
- package/src/plugins/tokens/fetchers/sui-nfts.js.map +1 -1
- package/src/plugins/tokens/fetchers/sui.js +2 -3
- package/src/plugins/tokens/fetchers/sui.js.map +1 -1
- package/src/plugins/tokens/index.d.ts +2 -0
- package/src/plugins/tokens/index.js +10 -9
- package/src/plugins/tokens/index.js.map +1 -1
- package/src/plugins/turbos/constants.d.ts +2 -0
- package/src/plugins/turbos/constants.js +6 -1
- package/src/plugins/turbos/constants.js.map +1 -1
- package/src/plugins/turbos/index.d.ts +2 -0
- package/src/plugins/turbos/index.js +3 -1
- package/src/plugins/turbos/index.js.map +1 -1
- package/src/utils/misc/computeAndStoreTokenPrice.js +2 -2
- package/src/utils/misc/computeAndStoreTokenPrice.js.map +1 -1
- package/src/platforms.d.ts +0 -33
- package/src/platforms.js +0 -164
- package/src/platforms.js.map +0 -1
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,14 @@
|
|
2
2
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
4
4
|
|
5
|
+
## [0.7.1](https://github.com/sonarwatch/portfolio/compare/plugins-0.7.0...plugins-0.7.1) (2023-08-30)
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
# [0.7.0](https://github.com/sonarwatch/portfolio/compare/plugins-0.6.9...plugins-0.7.0) (2023-08-30)
|
10
|
+
|
11
|
+
|
12
|
+
|
5
13
|
## [0.6.9](https://github.com/sonarwatch/portfolio/compare/plugins-0.6.8...plugins-0.6.9) (2023-08-29)
|
6
14
|
|
7
15
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sonarwatch/portfolio-plugins",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.7.1",
|
4
4
|
"type": "commonjs",
|
5
5
|
"generators": "./generators.json",
|
6
6
|
"dependencies": {
|
@@ -35,7 +35,7 @@
|
|
35
35
|
"web3-v1": "npm:web3@^1.5.0"
|
36
36
|
},
|
37
37
|
"peerDependencies": {
|
38
|
-
"@sonarwatch/portfolio-core": "0.
|
38
|
+
"@sonarwatch/portfolio-core": "0.7.1"
|
39
39
|
},
|
40
40
|
"main": "./src/index.js",
|
41
41
|
"types": "./src/index.d.ts"
|
package/src/Storage.d.ts
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
import { NetworkIdType } from '@sonarwatch/portfolio-core';
|
2
|
+
export type MaybePromise<T> = T | Promise<T>;
|
3
|
+
export type StorageValue = null | string | number | boolean | object | (null | string | number | boolean | object)[];
|
4
|
+
export type TransactionOptions = Record<string, string | number | boolean | object>;
|
5
|
+
export type Item = {
|
6
|
+
key: string;
|
7
|
+
value: StorageValue;
|
8
|
+
};
|
9
|
+
export declare abstract class Storage {
|
10
|
+
abstract dispose(): Promise<void>;
|
11
|
+
abstract get(key: string, prefix?: string, networkId?: NetworkIdType, opts?: TransactionOptions): MaybePromise<StorageValue | undefined>;
|
12
|
+
abstract getMany(keys: string[], prefix?: string, networkId?: NetworkIdType, opts?: TransactionOptions): MaybePromise<Array<StorageValue | undefined>>;
|
13
|
+
abstract getAll(prefix?: string, networkId?: NetworkIdType, opts?: TransactionOptions): MaybePromise<Item[]>;
|
14
|
+
abstract set(key: string, value: StorageValue, prefix?: string, networkId?: NetworkIdType, opts?: TransactionOptions): MaybePromise<void>;
|
15
|
+
abstract setMany(items: Item[], prefix?: string, networkId?: NetworkIdType, opts?: TransactionOptions): MaybePromise<void>;
|
16
|
+
abstract del(key: string, prefix?: string, networkId?: NetworkIdType, opts?: TransactionOptions): MaybePromise<void>;
|
17
|
+
abstract delMany(keys: string[], prefix?: string, networkId?: NetworkIdType, opts?: TransactionOptions): MaybePromise<void>;
|
18
|
+
}
|
package/src/Storage.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Storage.js","sourceRoot":"","sources":["../../../../packages/plugins/src/Storage.ts"],"names":[],"mappings":";;;AAiBA,MAAsB,OAAO;CAmD5B;AAnDD,0BAmDC"}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
/// <reference types="node" />
|
2
|
+
import { NetworkIdType } from '@sonarwatch/portfolio-core';
|
3
|
+
import { Item, Storage, StorageValue, TransactionOptions } from './Storage';
|
4
|
+
export type StorageMemoryOptions = {
|
5
|
+
ttl?: number;
|
6
|
+
};
|
7
|
+
export declare class StorageMemory extends Storage {
|
8
|
+
data: Map<string, StorageValue>;
|
9
|
+
timeouts: Map<string, NodeJS.Timeout>;
|
10
|
+
ttl?: number;
|
11
|
+
constructor(opts?: StorageMemoryOptions);
|
12
|
+
dispose(): Promise<void>;
|
13
|
+
get(key: string, prefix?: string, networkId?: NetworkIdType): StorageValue | undefined;
|
14
|
+
set(key: string, value: StorageValue, prefix?: string, networkId?: NetworkIdType, opts?: TransactionOptions): void;
|
15
|
+
getMany(keys: string[], prefix?: string | undefined, networkId?: NetworkIdType | undefined): (StorageValue | undefined)[];
|
16
|
+
setMany(items: Item[], prefix?: string | undefined, networkId?: NetworkIdType | undefined, opts?: TransactionOptions | undefined): void;
|
17
|
+
del(key: string, prefix?: string | undefined, networkId?: NetworkIdType | undefined): void;
|
18
|
+
delMany(keys: string[], prefix?: string | undefined, networkId?: NetworkIdType | undefined): void;
|
19
|
+
getAll(prefix?: string | undefined, networkId?: NetworkIdType | undefined): Item[];
|
20
|
+
}
|
@@ -0,0 +1,93 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
+
});
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
exports.StorageMemory = void 0;
|
13
|
+
const Storage_1 = require("./Storage");
|
14
|
+
function getPath(key, prefix, networkId) {
|
15
|
+
const prefixPath = prefix ? `${prefix}/` : '';
|
16
|
+
const networkIdPath = networkId ? `${networkId}/` : '';
|
17
|
+
return `${prefixPath}${networkIdPath}${key}`;
|
18
|
+
}
|
19
|
+
function getStartsWithPath(prefix, networkId) {
|
20
|
+
const prefixPath = prefix ? `${prefix}/` : '';
|
21
|
+
const networkIdPath = networkId ? `${networkId}/` : '';
|
22
|
+
return `${prefixPath}${networkIdPath}`;
|
23
|
+
}
|
24
|
+
class StorageMemory extends Storage_1.Storage {
|
25
|
+
constructor(opts) {
|
26
|
+
super();
|
27
|
+
this.data = new Map();
|
28
|
+
this.timeouts = new Map();
|
29
|
+
this.ttl = opts === null || opts === void 0 ? void 0 : opts.ttl;
|
30
|
+
}
|
31
|
+
// eslint-disable-next-line class-methods-use-this, @typescript-eslint/no-empty-function
|
32
|
+
dispose() {
|
33
|
+
return __awaiter(this, void 0, void 0, function* () { });
|
34
|
+
}
|
35
|
+
get(key, prefix, networkId) {
|
36
|
+
const path = getPath(key, prefix, networkId);
|
37
|
+
return this.data.get(path);
|
38
|
+
}
|
39
|
+
set(key, value, prefix, networkId, opts) {
|
40
|
+
const path = getPath(key, prefix, networkId);
|
41
|
+
// Clear previous timeout
|
42
|
+
const prevTimeout = this.timeouts.get(path);
|
43
|
+
if (prevTimeout)
|
44
|
+
clearTimeout(prevTimeout);
|
45
|
+
this.timeouts.delete(path);
|
46
|
+
// Set new timout
|
47
|
+
const optsTtl = opts && opts['ttl'] && typeof opts['ttl'] === 'number'
|
48
|
+
? opts['ttl']
|
49
|
+
: undefined;
|
50
|
+
const ttl = optsTtl || this.ttl;
|
51
|
+
if (ttl) {
|
52
|
+
const timeout = setTimeout(() => {
|
53
|
+
this.data.delete(path);
|
54
|
+
}, ttl);
|
55
|
+
this.timeouts.set(path, timeout);
|
56
|
+
}
|
57
|
+
// Set item
|
58
|
+
this.data.set(path, value);
|
59
|
+
}
|
60
|
+
getMany(keys, prefix, networkId) {
|
61
|
+
return keys.map((key) => this.get(key, prefix, networkId));
|
62
|
+
}
|
63
|
+
setMany(items, prefix, networkId, opts) {
|
64
|
+
items.forEach((item) => this.set(item.key, item.value, prefix, networkId, opts));
|
65
|
+
}
|
66
|
+
del(key, prefix, networkId) {
|
67
|
+
const path = getPath(key, prefix, networkId);
|
68
|
+
// Clear previous timeout
|
69
|
+
const prevTimeout = this.timeouts.get(path);
|
70
|
+
if (prevTimeout)
|
71
|
+
clearTimeout(prevTimeout);
|
72
|
+
this.timeouts.delete(path);
|
73
|
+
this.data.delete(path);
|
74
|
+
}
|
75
|
+
delMany(keys, prefix, networkId) {
|
76
|
+
keys.forEach((key) => this.del(key, prefix, networkId));
|
77
|
+
}
|
78
|
+
getAll(prefix, networkId) {
|
79
|
+
const startWithPath = getStartsWithPath(prefix, networkId);
|
80
|
+
const items = [];
|
81
|
+
this.data.forEach((value, path) => {
|
82
|
+
if (path.startsWith(startWithPath)) {
|
83
|
+
items.push({
|
84
|
+
key: path.slice(startWithPath.length),
|
85
|
+
value,
|
86
|
+
});
|
87
|
+
}
|
88
|
+
});
|
89
|
+
return items;
|
90
|
+
}
|
91
|
+
}
|
92
|
+
exports.StorageMemory = StorageMemory;
|
93
|
+
//# sourceMappingURL=StorageMemory.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"StorageMemory.js","sourceRoot":"","sources":["../../../../packages/plugins/src/StorageMemory.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,uCAA4E;AAE5E,SAAS,OAAO,CAAC,GAAW,EAAE,MAAe,EAAE,SAAyB;IACtE,MAAM,UAAU,GAAG,MA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,CAAC;IAEQ,GAAG,CACV,GAAW,EACX,MAA2B,EAC3B,SAAqC;QAErC,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;QAE7C,yBAAyB;QACzB,MAAM,WAAW,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAC5C,IAAI,WAAW;YAAE,YAAY,CAAC,WAAW,CAAC,CAAC;QAC3C,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAE3B,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC;IAEQ,OAAO,CACd,IAAc,EACd,MAA2B,EAC3B,SAAqC;QAErC,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC;IAC1D,CAAC;IAEQ,MAAM,CACb,MAA2B,EAC3B,SAAqC;QAErC,MAAM,aAAa,GAAG,iBAAiB,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;QAC3D,MAAM,KAAK,GAAW,EAAE,CAAC;QAEzB,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE;YAChC,IAAI,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE;gBAClC,KAAK,CAAC,IAAI,CAAC;oBACT,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC;oBACrC,KAAK;iBACN,CAAC,CAAC;aACJ;QACH,CAAC,CAAC,CAAC;QACH,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AAhHD,sCAgHC"}
|
package/src/index.d.ts
CHANGED
package/src/index.js
CHANGED
@@ -10,24 +10,11 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
11
11
|
o[k2] = m[k];
|
12
12
|
}));
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
-
}) : function(o, v) {
|
16
|
-
o["default"] = v;
|
17
|
-
});
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
-
if (mod && mod.__esModule) return mod;
|
20
|
-
var result = {};
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
-
__setModuleDefault(result, mod);
|
23
|
-
return result;
|
24
|
-
};
|
25
13
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
26
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
27
15
|
};
|
28
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
17
|
exports.fetchersByAddressSystem = exports.fetchers = exports.jobs = exports.platforms = void 0;
|
30
|
-
const platformsObj = __importStar(require("./platforms"));
|
31
18
|
const tokens_1 = require("./plugins/tokens");
|
32
19
|
const native_stake_1 = require("./plugins/native-stake");
|
33
20
|
const marinade_1 = require("./plugins/marinade");
|
@@ -59,8 +46,35 @@ const getFetchersByAddressSystem_1 = require("./utils/misc/getFetchersByAddressS
|
|
59
46
|
__exportStar(require("./Cache"), exports);
|
60
47
|
__exportStar(require("./Fetcher"), exports);
|
61
48
|
__exportStar(require("./Job"), exports);
|
62
|
-
|
63
|
-
exports.platforms =
|
49
|
+
// PLATFORMS //
|
50
|
+
exports.platforms = [
|
51
|
+
...aave_1.platforms,
|
52
|
+
...orca_1.platforms,
|
53
|
+
...cetus_1.platforms,
|
54
|
+
...drift_1.platforms,
|
55
|
+
...auxexchange_1.platforms,
|
56
|
+
...liquiditypools_sei_1.platforms,
|
57
|
+
...liquidswap_1.platforms,
|
58
|
+
...aftermath_1.platforms,
|
59
|
+
...pancakeswap_1.platforms,
|
60
|
+
...tokens_1.platforms,
|
61
|
+
...native_stake_1.platforms,
|
62
|
+
...marinade_1.platforms,
|
63
|
+
...saber_1.platforms,
|
64
|
+
...solend_1.platforms,
|
65
|
+
...marginfi_1.platforms,
|
66
|
+
...raydium_1.platforms,
|
67
|
+
...meteora_1.platforms,
|
68
|
+
...turbos_1.platforms,
|
69
|
+
...thala_1.platforms,
|
70
|
+
...tensor_1.platforms,
|
71
|
+
...orders_1.platforms,
|
72
|
+
...staking_aptos_1.platforms,
|
73
|
+
...morpho_1.platforms,
|
74
|
+
...mango_1.platforms,
|
75
|
+
...astroport_1.platforms,
|
76
|
+
];
|
77
|
+
// JOBS //
|
64
78
|
exports.jobs = [
|
65
79
|
...tokens_1.jobs,
|
66
80
|
...native_stake_1.jobs,
|
@@ -87,6 +101,7 @@ exports.jobs = [
|
|
87
101
|
...aftermath_1.jobs,
|
88
102
|
...liquidswap_1.jobs,
|
89
103
|
];
|
104
|
+
// FETCHERS //
|
90
105
|
exports.fetchers = [
|
91
106
|
...tokens_1.fetchers,
|
92
107
|
...native_stake_1.fetchers,
|
package/src/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAGA,6CAI0B;AAC1B,yDAIgC;AAChC,iDAG4B;AAC5B,iDAI4B;AAC5B,2CAGyB;AACzB,6CAI0B;AAC1B,+CAI2B;AAC3B,yCAIwB;AACxB,+CAG2B;AAC3B,2CAIyB;AACzB,6CAI0B;AAC1B,2CAIyB;AACzB,6CAG0B;AAC1B,6CAI0B;AAC1B,yCAIwB;AACxB,2DAGiC;AACjC,6CAI0B;AAC1B,2CAIyB;AACzB,2CAIyB;AACzB,qDAA6D;AAC7D,mDAI6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Ac;IACjB,GAAG,uBAAmB;IACtB,GAAG,iBAAc;IACjB,GAAG,mBAAgB;IACnB,GAAG,mBAAgB;IACnB,GAAG,iBAAc;IACjB,GAAG,gBAAa;IAChB,GAAG,kBAAe;IAClB,GAAG,eAAY;IACf,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,iBAAc;IACjB,GAAG,wBAAoB;IACvB,GAAG,eAAY;IACf,GAAG,iBAAc;IACjB,GAAG,iBAAc;IACjB,GAAG,6BAAyB;IAC5B,GAAG,oBAAiB;CACrB,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,uDAA0B,EAAC,gBAAQ,CAAC,CAAC"}
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { NetworkIdType } from '@sonarwatch/portfolio-core';
|
1
|
+
import { NetworkIdType, Platform } from '@sonarwatch/portfolio-core';
|
2
2
|
import { LendingConfig } from './types';
|
3
|
+
export declare const aavePlatform: Platform;
|
3
4
|
export declare const lendingConfigs: Map<NetworkIdType, LendingConfig[]>;
|
4
5
|
export declare const platformId = "aave";
|
@@ -1,7 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.platformId = exports.lendingConfigs = void 0;
|
3
|
+
exports.platformId = exports.lendingConfigs = exports.aavePlatform = void 0;
|
4
4
|
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
5
|
+
exports.aavePlatform = {
|
6
|
+
id: 'aave',
|
7
|
+
name: 'AAVE',
|
8
|
+
image: 'https://alpha.sonar.watch/img/platforms/aave.png',
|
9
|
+
};
|
5
10
|
exports.lendingConfigs = new Map([
|
6
11
|
[
|
7
12
|
portfolio_core_1.NetworkId.avalanche,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/aave/constants.ts"],"names":[],"mappings":";;;AAAA,+
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/aave/constants.ts"],"names":[],"mappings":";;;AAAA,+DAKoC;AAGvB,QAAA,YAAY,GAAa;IACpC,EAAE,EAAE,MAAM;IACV,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,kDAAkD;CAC1D,CAAC;AAEW,QAAA,cAAc,GAAwC,IAAI,GAAG,CAAC;IACzE;QACE,0BAAS,CAAC,SAAS;QACnB;YACE;gBACE,OAAO,EAAE,yBAAQ,CAAC,SAAS,CAAC,OAAO;gBACnC,SAAS,EAAE,0BAAS,CAAC,SAAS;gBAC9B,WAAW,EAAE,SAAS;gBACtB,0BAA0B,EACxB,4CAA4C;gBAC9C,8BAA8B,EAC5B,4CAA4C;gBAC9C,yBAAyB,EAAE,4CAA4C;aACxE;YACD;gBACE,OAAO,EAAE,yBAAQ,CAAC,SAAS,CAAC,OAAO;gBACnC,SAAS,EAAE,0BAAS,CAAC,SAAS;gBAC9B,WAAW,EAAE,SAAS;gBACtB,0BAA0B,EACxB,4CAA4C;gBAC9C,8BAA8B,EAC5B,4CAA4C;gBAC9C,yBAAyB,EAAE,4CAA4C;aACxE;SACF;KACF;IACD;QACE,0BAAS,CAAC,OAAO;QACjB;YACE;gBACE,OAAO,EAAE,yBAAQ,CAAC,OAAO,CAAC,OAAO;gBACjC,SAAS,EAAE,0BAAS,CAAC,OAAO;gBAC5B,WAAW,EAAE,SAAS;gBACtB,0BAA0B,EACxB,4CAA4C;gBAC9C,8BAA8B,EAC5B,4CAA4C;gBAC9C,yBAAyB,EAAE,4CAA4C;aACxE;YACD;gBACE,OAAO,EAAE,yBAAQ,CAAC,OAAO,CAAC,OAAO;gBACjC,SAAS,EAAE,0BAAS,CAAC,OAAO;gBAC5B,WAAW,EAAE,SAAS;gBACtB,0BAA0B,EACxB,4CAA4C;gBAC9C,8BAA8B,EAC5B,4CAA4C;gBAC9C,yBAAyB,EAAE,4CAA4C;aACxE;SACF;KACF;IACD;QACE,0BAAS,CAAC,QAAQ;QAClB;YACE;gBACE,OAAO,EAAE,yBAAQ,CAAC,QAAQ,CAAC,OAAO;gBAClC,SAAS,EAAE,0BAAS,CAAC,QAAQ;gBAC7B,WAAW,EAAE,cAAc;gBAC3B,0BAA0B,EACxB,4CAA4C;gBAC9C,8BAA8B,EAC5B,4CAA4C;gBAC9C,yBAAyB,EAAE,4CAA4C;aACxE;YACD;gBACE,OAAO,EAAE,yBAAQ,CAAC,QAAQ,CAAC,OAAO;gBAClC,SAAS,EAAE,0BAAS,CAAC,QAAQ;gBAC7B,WAAW,EAAE,aAAa;gBAC1B,0BAA0B,EACxB,4CAA4C;gBAC9C,8BAA8B,EAC5B,4CAA4C;gBAC9C,yBAAyB,EAAE,4CAA4C;aACxE;YACD;gBACE,OAAO,EAAE,yBAAQ,CAAC,QAAQ,CAAC,OAAO;gBAClC,SAAS,EAAE,0BAAS,CAAC,QAAQ;gBAC7B,WAAW,EAAE,aAAa;gBAC1B,0BAA0B,EACxB,4CAA4C;gBAC9C,8BAA8B,EAC5B,4CAA4C;gBAC9C,yBAAyB,EAAE,4CAA4C;aACxE;SACF;KACF;CACF,CAAC,CAAC;AAEU,QAAA,UAAU,GAAG,MAAM,CAAC"}
|
@@ -3,11 +3,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.fetchers = exports.jobs = void 0;
|
6
|
+
exports.fetchers = exports.jobs = exports.platforms = void 0;
|
7
7
|
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
8
8
|
const lendingPoolsJob_1 = __importDefault(require("./lendingPoolsJob"));
|
9
9
|
const getLendingFetcherExecutor_1 = __importDefault(require("./getLendingFetcherExecutor"));
|
10
10
|
const constants_1 = require("./constants");
|
11
|
+
exports.platforms = [constants_1.aavePlatform];
|
11
12
|
exports.jobs = [lendingPoolsJob_1.default];
|
12
13
|
exports.fetchers = [
|
13
14
|
{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/aave/index.ts"],"names":[],"mappings":";;;;;;AAAA,+
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/aave/index.ts"],"names":[],"mappings":";;;;;;AAAA,+DAAiE;AAGjE,wEAAgD;AAChD,4FAAoE;AACpE,2CAAuD;AAE1C,QAAA,SAAS,GAAe,CAAC,wBAAY,CAAC,CAAC;AACvC,QAAA,IAAI,GAAU,CAAC,yBAAe,CAAC,CAAC;AAChC,QAAA,QAAQ,GAAc;IACjC;QACE,EAAE,EAAE,GAAG,sBAAU,IAAI,0BAAS,CAAC,QAAQ,UAAU;QACjD,SAAS,EAAE,0BAAS,CAAC,QAAQ;QAC7B,QAAQ,EAAE,IAAA,mCAAyB,EAAC,0BAAS,CAAC,QAAQ,CAAC;KACxD;IACD;QACE,EAAE,EAAE,GAAG,sBAAU,IAAI,0BAAS,CAAC,OAAO,UAAU;QAChD,SAAS,EAAE,0BAAS,CAAC,OAAO;QAC5B,QAAQ,EAAE,IAAA,mCAAyB,EAAC,0BAAS,CAAC,OAAO,CAAC;KACvD;IACD;QACE,EAAE,EAAE,GAAG,sBAAU,IAAI,0BAAS,CAAC,SAAS,UAAU;QAClD,SAAS,EAAE,0BAAS,CAAC,SAAS;QAC9B,QAAQ,EAAE,IAAA,mCAAyB,EAAC,0BAAS,CAAC,SAAS,CAAC;KACzD;CACF,CAAC"}
|
@@ -1,6 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.lpCoinsTable = exports.platformId = void 0;
|
3
|
+
exports.lpCoinsTable = exports.aftermathPlatform = exports.platformId = void 0;
|
4
4
|
exports.platformId = 'aftermath';
|
5
|
+
exports.aftermathPlatform = {
|
6
|
+
id: 'aftermath',
|
7
|
+
name: 'Aftermath',
|
8
|
+
image: 'https://alpha.sonar.watch/img/platforms/aftermath.png',
|
9
|
+
};
|
5
10
|
exports.lpCoinsTable = '0x7f3bb65251feccacc7f48461239be1008233b85594114f7bf304e5e5b340bf59';
|
6
11
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/aftermath/constants.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/aftermath/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,WAAW,CAAC;AAEzB,QAAA,iBAAiB,GAAa;IACzC,EAAE,EAAE,WAAW;IACf,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,uDAAuD;CAC/D,CAAC;AAEW,QAAA,YAAY,GACvB,oEAAoE,CAAC"}
|
@@ -3,8 +3,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.fetchers = exports.jobs = void 0;
|
6
|
+
exports.fetchers = exports.jobs = exports.platforms = void 0;
|
7
7
|
const poolsJob_1 = __importDefault(require("./poolsJob"));
|
8
|
+
const constants_1 = require("./constants");
|
9
|
+
exports.platforms = [constants_1.aftermathPlatform];
|
8
10
|
exports.jobs = [poolsJob_1.default];
|
9
11
|
exports.fetchers = [];
|
10
12
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/aftermath/index.ts"],"names":[],"mappings":";;;;;;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/aftermath/index.ts"],"names":[],"mappings":";;;;;;AAGA,0DAAkC;AAClC,2CAAgD;AAEnC,QAAA,SAAS,GAAe,CAAC,6BAAiB,CAAC,CAAC;AAC5C,QAAA,IAAI,GAAU,CAAC,kBAAQ,CAAC,CAAC;AACzB,QAAA,QAAQ,GAAc,EAAE,CAAC"}
|
@@ -1,7 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.lpTokensCode = exports.newLpTokensCode = exports.platformId = void 0;
|
3
|
+
exports.lpTokensCode = exports.newLpTokensCode = exports.astroportPlatform = exports.platformId = void 0;
|
4
4
|
exports.platformId = 'astroport';
|
5
|
+
exports.astroportPlatform = {
|
6
|
+
id: exports.platformId,
|
7
|
+
name: 'Astroport',
|
8
|
+
image: 'https://alpha.sonar.watch/img/platforms/astroport.png',
|
9
|
+
};
|
5
10
|
exports.newLpTokensCode = 149;
|
6
11
|
exports.lpTokensCode = 3;
|
7
12
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/astroport/constants.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/astroport/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,WAAW,CAAC;AACzB,QAAA,iBAAiB,GAAa;IACzC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,uDAAuD;CAC/D,CAAC;AAEW,QAAA,eAAe,GAAG,GAAG,CAAC;AACtB,QAAA,YAAY,GAAG,CAAC,CAAC"}
|
@@ -3,9 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.fetchers = exports.jobs = void 0;
|
6
|
+
exports.fetchers = exports.jobs = exports.platforms = void 0;
|
7
7
|
const lpSeiJob_1 = __importDefault(require("./lpSeiJob"));
|
8
8
|
const lpSeiFetcher_1 = __importDefault(require("./lpSeiFetcher"));
|
9
|
+
const constants_1 = require("./constants");
|
10
|
+
exports.platforms = [constants_1.astroportPlatform];
|
9
11
|
exports.jobs = [lpSeiJob_1.default];
|
10
12
|
exports.fetchers = [lpSeiFetcher_1.default];
|
11
13
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/astroport/index.ts"],"names":[],"mappings":";;;;;;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/astroport/index.ts"],"names":[],"mappings":";;;;;;AAGA,0DAAkC;AAClC,kEAA0C;AAC1C,2CAAgD;AAEnC,QAAA,SAAS,GAAe,CAAC,6BAAiB,CAAC,CAAC;AAC5C,QAAA,IAAI,GAAU,CAAC,kBAAQ,CAAC,CAAC;AACzB,QAAA,QAAQ,GAAc,CAAC,sBAAY,CAAC,CAAC"}
|
@@ -1,4 +1,6 @@
|
|
1
|
+
import { Platform } from '@sonarwatch/portfolio-core';
|
1
2
|
export declare const platformId = "auxexchange";
|
3
|
+
export declare const auxExchangePlatform: Platform;
|
2
4
|
export declare const programAddress = "0xbd35135844473187163ca197ca93b2ab014370587bb0ed3befff9e902d6bb541";
|
3
5
|
export declare const lpTypePrefix: string;
|
4
6
|
export declare const lpCoinInfoTypePrefix: string;
|
@@ -1,8 +1,13 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.lpCoinInfoTypePrefix = exports.lpTypePrefix = exports.programAddress = exports.platformId = void 0;
|
3
|
+
exports.lpCoinInfoTypePrefix = exports.lpTypePrefix = exports.programAddress = exports.auxExchangePlatform = exports.platformId = void 0;
|
4
4
|
const aptos_1 = require("../../utils/aptos");
|
5
5
|
exports.platformId = 'auxexchange';
|
6
|
+
exports.auxExchangePlatform = {
|
7
|
+
id: exports.platformId,
|
8
|
+
name: 'Aux Exchange',
|
9
|
+
image: 'https://alpha.sonar.watch/img/platforms/auxexchange.png',
|
10
|
+
};
|
6
11
|
exports.programAddress = '0xbd35135844473187163ca197ca93b2ab014370587bb0ed3befff9e902d6bb541';
|
7
12
|
exports.lpTypePrefix = `${exports.programAddress}::amm::LP<`;
|
8
13
|
exports.lpCoinInfoTypePrefix = `${aptos_1.coinInfo}<${exports.lpTypePrefix}`;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/auxexchange/constants.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/auxexchange/constants.ts"],"names":[],"mappings":";;;AACA,6CAA6C;AAEhC,QAAA,UAAU,GAAG,aAAa,CAAC;AAC3B,QAAA,mBAAmB,GAAa;IAC3C,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,cAAc;IACpB,KAAK,EAAE,yDAAyD;CACjE,CAAC;AAEW,QAAA,cAAc,GACzB,oEAAoE,CAAC;AAC1D,QAAA,YAAY,GAAG,GAAG,sBAAc,YAAY,CAAC;AAC7C,QAAA,oBAAoB,GAAG,GAAG,gBAAQ,IAAI,oBAAY,EAAE,CAAC"}
|
@@ -3,8 +3,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.fetchers = exports.jobs = void 0;
|
6
|
+
exports.fetchers = exports.jobs = exports.platforms = void 0;
|
7
7
|
const aptosLpJob_1 = __importDefault(require("./aptosLpJob"));
|
8
|
+
const constants_1 = require("./constants");
|
9
|
+
exports.platforms = [constants_1.auxExchangePlatform];
|
8
10
|
exports.jobs = [aptosLpJob_1.default];
|
9
11
|
exports.fetchers = [];
|
10
12
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/auxexchange/index.ts"],"names":[],"mappings":";;;;;;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/auxexchange/index.ts"],"names":[],"mappings":";;;;;;AAGA,8DAAsC;AACtC,2CAAkD;AAErC,QAAA,SAAS,GAAe,CAAC,+BAAmB,CAAC,CAAC;AAC9C,QAAA,IAAI,GAAU,CAAC,oBAAU,CAAC,CAAC;AAC3B,QAAA,QAAQ,GAAc,EAAE,CAAC"}
|
@@ -1,4 +1,6 @@
|
|
1
|
+
import { Platform } from '@sonarwatch/portfolio-core';
|
1
2
|
export declare const platformId = "cetus";
|
3
|
+
export declare const cetusPlatform: Platform;
|
2
4
|
export declare const clmmPoolsPrefix: string;
|
3
5
|
export declare const clmmPoolPackageId = "0x1eabed72c53feb3805120a081dc15963c204dc8d091542592abaf7a35689b2fb";
|
4
6
|
export declare const clmmType: string;
|
@@ -1,7 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.clmmPoolsHandle = exports.clmmType = exports.clmmPoolPackageId = exports.clmmPoolsPrefix = exports.platformId = void 0;
|
3
|
+
exports.clmmPoolsHandle = exports.clmmType = exports.clmmPoolPackageId = exports.clmmPoolsPrefix = exports.cetusPlatform = exports.platformId = void 0;
|
4
4
|
exports.platformId = 'cetus';
|
5
|
+
exports.cetusPlatform = {
|
6
|
+
id: exports.platformId,
|
7
|
+
name: 'Cetus',
|
8
|
+
image: 'https://alpha.sonar.watch/img/platforms/cetus.png',
|
9
|
+
};
|
5
10
|
exports.clmmPoolsPrefix = `${exports.platformId}-clmmPools`;
|
6
11
|
exports.clmmPoolPackageId = '0x1eabed72c53feb3805120a081dc15963c204dc8d091542592abaf7a35689b2fb';
|
7
12
|
exports.clmmType = `${exports.clmmPoolPackageId}::position::Position`;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cetus/constants.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cetus/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,aAAa,GAAa;IACrC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,mDAAmD;CAC3D,CAAC;AACW,QAAA,eAAe,GAAG,GAAG,kBAAU,YAAY,CAAC;AAE5C,QAAA,iBAAiB,GAC5B,oEAAoE,CAAC;AAE1D,QAAA,QAAQ,GAAG,GAAG,yBAAiB,sBAAsB,CAAC;AAEtD,QAAA,eAAe,GAC1B,oEAAoE,CAAC"}
|
@@ -3,9 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.fetchers = exports.jobs = void 0;
|
6
|
+
exports.fetchers = exports.jobs = exports.platforms = void 0;
|
7
7
|
const poolsJob_1 = __importDefault(require("./poolsJob"));
|
8
8
|
const clmmsFetcher_1 = __importDefault(require("./clmmsFetcher"));
|
9
|
+
const constants_1 = require("./constants");
|
10
|
+
exports.platforms = [constants_1.cetusPlatform];
|
9
11
|
exports.jobs = [poolsJob_1.default];
|
10
12
|
exports.fetchers = [clmmsFetcher_1.default];
|
11
13
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cetus/index.ts"],"names":[],"mappings":";;;;;;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cetus/index.ts"],"names":[],"mappings":";;;;;;AAGA,0DAAkC;AAClC,kEAAiD;AACjD,2CAA4C;AAE/B,QAAA,SAAS,GAAe,CAAC,yBAAa,CAAC,CAAC;AACxC,QAAA,IAAI,GAAU,CAAC,kBAAQ,CAAC,CAAC;AACzB,QAAA,QAAQ,GAAc,CAAC,sBAAmB,CAAC,CAAC"}
|
@@ -1,4 +1,6 @@
|
|
1
1
|
import { PublicKey } from '@solana/web3.js';
|
2
|
+
import { Platform } from '@sonarwatch/portfolio-core';
|
2
3
|
export declare const platformId = "drift";
|
4
|
+
export declare const driftPlatform: Platform;
|
3
5
|
export declare const prefixSpotMarkets: string;
|
4
6
|
export declare const DriftProgram: PublicKey;
|
@@ -1,8 +1,13 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.DriftProgram = exports.prefixSpotMarkets = exports.platformId = void 0;
|
3
|
+
exports.DriftProgram = exports.prefixSpotMarkets = exports.driftPlatform = exports.platformId = void 0;
|
4
4
|
const web3_js_1 = require("@solana/web3.js");
|
5
5
|
exports.platformId = 'drift';
|
6
|
+
exports.driftPlatform = {
|
7
|
+
id: exports.platformId,
|
8
|
+
name: 'Drift',
|
9
|
+
image: 'https://alpha.sonar.watch/img/platforms/drift.png',
|
10
|
+
};
|
6
11
|
exports.prefixSpotMarkets = `${exports.platformId}-spotMarkets`;
|
7
12
|
exports.DriftProgram = new web3_js_1.PublicKey('dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH');
|
8
13
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,aAAa,GAAa;IACrC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,mDAAmD;CAC3D,CAAC;AACW,QAAA,iBAAiB,GAAG,GAAG,kBAAU,cAAc,CAAC;AAEhD,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,6CAA6C,CAC9C,CAAC"}
|