@sonarwatch/portfolio-plugins 0.11.184 → 0.11.186
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +1472 -1459
- package/README.md +3 -3
- package/package.json +2 -2
- package/src/index.js +2 -0
- package/src/index.js.map +1 -1
- package/src/plugins/aave/constants.d.ts +1 -1
- package/src/plugins/aave/constants.js +2 -2
- package/src/plugins/aave/constants.js.map +1 -1
- package/src/plugins/aave/index.js +1 -1
- package/src/plugins/aave/index.js.map +1 -1
- package/src/plugins/aftermath/constants.d.ts +1 -1
- package/src/plugins/aftermath/constants.js +2 -2
- package/src/plugins/aftermath/constants.js.map +1 -1
- package/src/plugins/aftermath/index.js +1 -1
- package/src/plugins/aftermath/index.js.map +1 -1
- package/src/plugins/aptin/constants.d.ts +3 -0
- package/src/plugins/aptin/constants.js +5 -2
- package/src/plugins/aptin/constants.js.map +1 -1
- package/src/plugins/aptin/depositsFetcher.js +2 -2
- package/src/plugins/aptin/depositsFetcher.js.map +1 -1
- package/src/plugins/armada-staking/constants.js +6 -6
- package/src/plugins/armada-staking/constants.js.map +1 -1
- package/src/plugins/aurory/constants.d.ts +1 -1
- package/src/plugins/aurory/constants.js +3 -3
- package/src/plugins/aurory/constants.js.map +1 -1
- package/src/plugins/aurory/stakingFetcher.js +2 -2
- package/src/plugins/aurory/stakingFetcher.js.map +1 -1
- package/src/plugins/auxexchange/aptosLpJob.js +2 -2
- package/src/plugins/auxexchange/aptosLpJob.js.map +1 -1
- package/src/plugins/auxexchange/constants.d.ts +2 -2
- package/src/plugins/auxexchange/constants.js +4 -4
- package/src/plugins/auxexchange/constants.js.map +1 -1
- package/src/plugins/auxexchange/index.js +1 -1
- package/src/plugins/auxexchange/index.js.map +1 -1
- package/src/plugins/balancer/helpers/pools.js +21 -21
- package/src/plugins/banx/constants.js +1 -1
- package/src/plugins/banx/constants.js.map +1 -1
- package/src/plugins/bucket/constants.d.ts +1 -1
- package/src/plugins/bucket/constants.js +2 -2
- package/src/plugins/bucket/constants.js.map +1 -1
- package/src/plugins/bucket/index.js +1 -1
- package/src/plugins/bucket/index.js.map +1 -1
- package/src/plugins/cetus/constants.d.ts +1 -1
- package/src/plugins/cetus/constants.js +2 -2
- package/src/plugins/cetus/constants.js.map +1 -1
- package/src/plugins/cetus/index.js +1 -1
- package/src/plugins/cetus/index.js.map +1 -1
- package/src/plugins/clone/constants.js +1 -1
- package/src/plugins/clone/constants.js.map +1 -1
- package/src/plugins/compound/constants.d.ts +1 -1
- package/src/plugins/compound/constants.js +2 -2
- package/src/plugins/compound/constants.js.map +1 -1
- package/src/plugins/compound/index.js +1 -1
- package/src/plugins/compound/index.js.map +1 -1
- package/src/plugins/curve/constants.d.ts +1 -1
- package/src/plugins/curve/constants.js +2 -2
- package/src/plugins/curve/constants.js.map +1 -1
- package/src/plugins/curve/index.js +1 -1
- package/src/plugins/curve/index.js.map +1 -1
- package/src/plugins/daos/constants.js +2 -1
- package/src/plugins/daos/constants.js.map +1 -1
- package/src/plugins/drift/constants.d.ts +1 -1
- package/src/plugins/drift/constants.js +2 -2
- package/src/plugins/drift/constants.js.map +1 -1
- package/src/plugins/drift/index.js +1 -1
- package/src/plugins/drift/index.js.map +1 -1
- package/src/plugins/flash/poolJob.js +23 -8
- package/src/plugins/flash/poolJob.js.map +1 -1
- package/src/plugins/flash/stakeFetcher.js +20 -6
- package/src/plugins/flash/stakeFetcher.js.map +1 -1
- package/src/plugins/flash/types.d.ts +1 -0
- package/src/plugins/flexlend/constants.d.ts +1 -1
- package/src/plugins/flexlend/constants.js +2 -2
- package/src/plugins/flexlend/constants.js.map +1 -1
- package/src/plugins/flexlend/depositsFetcher.js +1 -1
- package/src/plugins/flexlend/depositsFetcher.js.map +1 -1
- package/src/plugins/flexlend/index.js +1 -1
- package/src/plugins/flexlend/index.js.map +1 -1
- package/src/plugins/goosefx/constants.d.ts +1 -1
- package/src/plugins/goosefx/constants.js +2 -2
- package/src/plugins/goosefx/constants.js.map +1 -1
- package/src/plugins/goosefx/index.js +1 -1
- package/src/plugins/goosefx/index.js.map +1 -1
- package/src/plugins/hawksight/constants.d.ts +1 -1
- package/src/plugins/hawksight/constants.js +2 -2
- package/src/plugins/hawksight/constants.js.map +1 -1
- package/src/plugins/hawksight/index.js +1 -1
- package/src/plugins/hawksight/index.js.map +1 -1
- package/src/plugins/jito/constants.d.ts +1 -1
- package/src/plugins/jito/constants.js +2 -2
- package/src/plugins/jito/constants.js.map +1 -1
- package/src/plugins/jito/index.js +1 -1
- package/src/plugins/jito/index.js.map +1 -1
- package/src/plugins/jupiter/exchange/constants.d.ts +1 -1
- package/src/plugins/jupiter/exchange/constants.js +2 -2
- package/src/plugins/jupiter/exchange/constants.js.map +1 -1
- package/src/plugins/jupiter/exchange/dcaFetcher.js +1 -1
- package/src/plugins/jupiter/exchange/dcaFetcher.js.map +1 -1
- package/src/plugins/jupiter/governance/constants.d.ts +2 -2
- package/src/plugins/jupiter/governance/constants.js +4 -4
- package/src/plugins/jupiter/governance/constants.js.map +1 -1
- package/src/plugins/jupiter/governance/voteFetcher.js +2 -2
- package/src/plugins/jupiter/governance/voteFetcher.js.map +1 -1
- package/src/plugins/jupiter/index.js +3 -3
- package/src/plugins/jupiter/index.js.map +1 -1
- package/src/plugins/jupiter/launchpad/allocationsFetcher.js +2 -2
- package/src/plugins/jupiter/launchpad/allocationsFetcher.js.map +1 -1
- package/src/plugins/jupiter/launchpad/constants.d.ts +2 -2
- package/src/plugins/jupiter/launchpad/constants.js +4 -4
- package/src/plugins/jupiter/launchpad/constants.js.map +1 -1
- package/src/plugins/kamino/airdropFetcher.js +2 -2
- package/src/plugins/kamino/airdropFetcher.js.map +1 -1
- package/src/plugins/kamino/constants.d.ts +1 -1
- package/src/plugins/kamino/constants.js +2 -2
- package/src/plugins/kamino/constants.js.map +1 -1
- package/src/plugins/kamino/index.js +1 -1
- package/src/plugins/kamino/index.js.map +1 -1
- package/src/plugins/lido/constants.d.ts +1 -1
- package/src/plugins/lido/constants.js +2 -2
- package/src/plugins/lido/constants.js.map +1 -1
- package/src/plugins/lido/index.js +1 -1
- package/src/plugins/lido/index.js.map +1 -1
- package/src/plugins/liquidswap/constants.d.ts +1 -1
- package/src/plugins/liquidswap/constants.js +2 -2
- package/src/plugins/liquidswap/constants.js.map +1 -1
- package/src/plugins/liquidswap/index.js +1 -1
- package/src/plugins/liquidswap/index.js.map +1 -1
- package/src/plugins/llama-protocols/getLlamaProtocolsJob.js +4 -0
- package/src/plugins/llama-protocols/getLlamaProtocolsJob.js.map +1 -1
- package/src/plugins/llama-protocols/helpers.js +1 -0
- package/src/plugins/llama-protocols/helpers.js.map +1 -1
- package/src/plugins/magiceden/constants.d.ts +1 -1
- package/src/plugins/magiceden/constants.js +2 -2
- package/src/plugins/magiceden/constants.js.map +1 -1
- package/src/plugins/magiceden/index.js +1 -1
- package/src/plugins/magiceden/index.js.map +1 -1
- package/src/plugins/maker/constants.d.ts +1 -1
- package/src/plugins/maker/constants.js +2 -2
- package/src/plugins/maker/constants.js.map +1 -1
- package/src/plugins/maker/index.js +1 -1
- package/src/plugins/maker/index.js.map +1 -1
- package/src/plugins/mango/constants.d.ts +1 -1
- package/src/plugins/mango/constants.js +2 -2
- package/src/plugins/mango/constants.js.map +1 -1
- package/src/plugins/mango/index.js +1 -1
- package/src/plugins/mango/index.js.map +1 -1
- package/src/plugins/maple/constants.d.ts +1 -1
- package/src/plugins/maple/constants.js +2 -2
- package/src/plugins/maple/constants.js.map +1 -1
- package/src/plugins/maple/index.js +1 -1
- package/src/plugins/maple/index.js.map +1 -1
- package/src/plugins/marginfi/constants.d.ts +2 -2
- package/src/plugins/marginfi/constants.js +3 -3
- package/src/plugins/marginfi/constants.js.map +1 -1
- package/src/plugins/marginfi/index.js +1 -1
- package/src/plugins/marginfi/index.js.map +1 -1
- package/src/plugins/marinade/constants.d.ts +1 -1
- package/src/plugins/marinade/constants.js +2 -2
- package/src/plugins/marinade/constants.js.map +1 -1
- package/src/plugins/marinade/index.js +1 -1
- package/src/plugins/marinade/index.js.map +1 -1
- package/src/plugins/meteora/constants.d.ts +1 -1
- package/src/plugins/meteora/constants.js +2 -2
- package/src/plugins/meteora/constants.js.map +1 -1
- package/src/plugins/meteora/index.js +1 -1
- package/src/plugins/meteora/index.js.map +1 -1
- package/src/plugins/morpho/constants.d.ts +1 -1
- package/src/plugins/morpho/constants.js +2 -2
- package/src/plugins/morpho/constants.js.map +1 -1
- package/src/plugins/morpho/index.js +1 -1
- package/src/plugins/morpho/index.js.map +1 -1
- package/src/plugins/native-stake/solana/solanaFetcher.js +7 -7
- package/src/plugins/native-stake/solana/solanaFetcher.js.map +1 -1
- package/src/plugins/navi/constants.d.ts +1 -1
- package/src/plugins/navi/constants.js +2 -2
- package/src/plugins/navi/constants.js.map +1 -1
- package/src/plugins/navi/index.js +1 -1
- package/src/plugins/navi/index.js.map +1 -1
- package/src/plugins/nosana/constants.js +1 -1
- package/src/plugins/nosana/constants.js.map +1 -1
- package/src/plugins/orca/constants.d.ts +1 -1
- package/src/plugins/orca/constants.js +2 -2
- package/src/plugins/orca/constants.js.map +1 -1
- package/src/plugins/orca/index.js +1 -1
- package/src/plugins/orca/index.js.map +1 -1
- package/src/plugins/pancakeswap/constants.d.ts +1 -1
- package/src/plugins/pancakeswap/constants.js +2 -2
- package/src/plugins/pancakeswap/constants.js.map +1 -1
- package/src/plugins/pancakeswap/index.js +1 -1
- package/src/plugins/pancakeswap/index.js.map +1 -1
- package/src/plugins/paraswap/constants.d.ts +1 -1
- package/src/plugins/paraswap/constants.js +2 -2
- package/src/plugins/paraswap/constants.js.map +1 -1
- package/src/plugins/paraswap/index.js +1 -1
- package/src/plugins/paraswap/index.js.map +1 -1
- package/src/plugins/parcl/constants.d.ts +1 -1
- package/src/plugins/parcl/constants.js +2 -2
- package/src/plugins/parcl/constants.js.map +1 -1
- package/src/plugins/parcl/index.js +1 -1
- package/src/plugins/parcl/index.js.map +1 -1
- package/src/plugins/rain/constants.js +1 -1
- package/src/plugins/rain/constants.js.map +1 -1
- package/src/plugins/raydium/constants.d.ts +1 -1
- package/src/plugins/raydium/constants.js +2 -2
- package/src/plugins/raydium/constants.js.map +1 -1
- package/src/plugins/raydium/index.js +1 -1
- package/src/plugins/raydium/index.js.map +1 -1
- package/src/plugins/rocket-pool/constants.d.ts +1 -1
- package/src/plugins/rocket-pool/constants.js +2 -2
- package/src/plugins/rocket-pool/constants.js.map +1 -1
- package/src/plugins/rocket-pool/index.js +1 -1
- package/src/plugins/rocket-pool/index.js.map +1 -1
- package/src/plugins/saber/constants.d.ts +1 -1
- package/src/plugins/saber/constants.js +2 -2
- package/src/plugins/saber/constants.js.map +1 -1
- package/src/plugins/saber/index.js +1 -1
- package/src/plugins/saber/index.js.map +1 -1
- package/src/plugins/scallop/constants.d.ts +1 -1
- package/src/plugins/scallop/constants.js +9 -9
- package/src/plugins/scallop/constants.js.map +1 -1
- package/src/plugins/scallop/index.js +1 -1
- package/src/plugins/scallop/index.js.map +1 -1
- package/src/plugins/solend/constants.d.ts +1 -1
- package/src/plugins/solend/constants.js +2 -2
- package/src/plugins/solend/constants.js.map +1 -1
- package/src/plugins/solend/index.js +1 -1
- package/src/plugins/solend/index.js.map +1 -1
- package/src/plugins/stader/constants.d.ts +1 -1
- package/src/plugins/stader/constants.js +2 -2
- package/src/plugins/stader/constants.js.map +1 -1
- package/src/plugins/stader/index.js +1 -1
- package/src/plugins/stader/index.js.map +1 -1
- package/src/plugins/stargate/constants.d.ts +1 -1
- package/src/plugins/stargate/constants.js +2 -2
- package/src/plugins/stargate/constants.js.map +1 -1
- package/src/plugins/stargate/index.js +1 -1
- package/src/plugins/stargate/index.js.map +1 -1
- package/src/plugins/sushiswap/helpers.js +24 -24
- package/src/plugins/switchboard/constants.d.ts +1 -0
- package/src/plugins/switchboard/constants.js +5 -0
- package/src/plugins/switchboard/constants.js.map +1 -0
- package/src/plugins/switchboard/helpers/getSwitchboardPrice.d.ts +3 -0
- package/src/plugins/switchboard/helpers/getSwitchboardPrice.js +20 -0
- package/src/plugins/switchboard/helpers/getSwitchboardPrice.js.map +1 -0
- package/src/plugins/switchboard/helpers/getSwitchboardPrices.d.ts +3 -0
- package/src/plugins/switchboard/helpers/getSwitchboardPrices.js +23 -0
- package/src/plugins/switchboard/helpers/getSwitchboardPrices.js.map +1 -0
- package/src/plugins/switchboard/helpers/misc.d.ts +2 -0
- package/src/plugins/switchboard/helpers/misc.js +26 -0
- package/src/plugins/switchboard/helpers/misc.js.map +1 -0
- package/src/plugins/switchboard/index.d.ts +4 -0
- package/src/plugins/switchboard/index.js +10 -0
- package/src/plugins/switchboard/index.js.map +1 -0
- package/src/plugins/switchboard/pricingJob.d.ts +3 -0
- package/src/plugins/switchboard/pricingJob.js +57 -0
- package/src/plugins/switchboard/pricingJob.js.map +1 -0
- package/src/plugins/switchboard/structs.d.ts +74 -0
- package/src/plugins/switchboard/structs.js +72 -0
- package/src/plugins/switchboard/structs.js.map +1 -0
- package/src/plugins/tensor/constants.d.ts +1 -1
- package/src/plugins/tensor/constants.js +2 -2
- package/src/plugins/tensor/constants.js.map +1 -1
- package/src/plugins/tensor/index.js +1 -1
- package/src/plugins/tensor/index.js.map +1 -1
- package/src/plugins/thala/constants.d.ts +12 -5
- package/src/plugins/thala/constants.js +9 -9
- package/src/plugins/thala/constants.js.map +1 -1
- package/src/plugins/thala/index.js +1 -1
- package/src/plugins/thala/index.js.map +1 -1
- package/src/plugins/thala/vaultsRatesJob.js +1 -1
- package/src/plugins/thala/vaultsRatesJob.js.map +1 -1
- package/src/plugins/turbos/constants.d.ts +1 -1
- package/src/plugins/turbos/constants.js +2 -2
- package/src/plugins/turbos/constants.js.map +1 -1
- package/src/plugins/turbos/index.js +1 -1
- package/src/plugins/turbos/index.js.map +1 -1
- package/src/plugins/uniswap/constants.d.ts +1 -1
- package/src/plugins/uniswap/constants.js +2 -2
- package/src/plugins/uniswap/constants.js.map +1 -1
- package/src/plugins/uniswap/index.js +1 -1
- package/src/plugins/uniswap/index.js.map +1 -1
- package/src/plugins/uniswap-v2/helpers.js +22 -22
- package/src/plugins/venus/constants.d.ts +1 -1
- package/src/plugins/venus/constants.js +3 -7
- package/src/plugins/venus/constants.js.map +1 -1
- package/src/plugins/venus/index.js +1 -1
- package/src/plugins/venus/index.js.map +1 -1
- package/src/plugins/wormhole/constants.js +1 -1
- package/src/plugins/wormhole/constants.js.map +1 -1
- package/src/plugins/x-staking-solana/constants.js +2 -2
- package/src/plugins/x-staking-solana/constants.js.map +1 -1
- package/src/plugins/zeta/constants.d.ts +1 -1
- package/src/plugins/zeta/constants.js +2 -2
- package/src/plugins/zeta/constants.js.map +1 -1
- package/src/plugins/zeta/index.js +1 -1
- package/src/plugins/zeta/index.js.map +1 -1
- package/src/utils/sei/constants.js +8 -8
- package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
@@ -0,0 +1,74 @@
|
|
1
|
+
/// <reference types="node" />
|
2
|
+
import { BeetStruct, FixableBeetStruct } from '@metaplex-foundation/beet';
|
3
|
+
import BigNumber from 'bignumber.js';
|
4
|
+
import { PublicKey } from '@solana/web3.js';
|
5
|
+
export declare enum AggregatorResolutionMode {
|
6
|
+
ModeRoundResolution = 0,
|
7
|
+
ModeSlidingResolution = 1
|
8
|
+
}
|
9
|
+
export type Hash = {
|
10
|
+
data: number[];
|
11
|
+
};
|
12
|
+
export declare const hashStruct: BeetStruct<Hash, Partial<Hash>>;
|
13
|
+
export type SwitchboardDecimal = {
|
14
|
+
mantissa: BigNumber;
|
15
|
+
scale: number;
|
16
|
+
};
|
17
|
+
export declare const switchboardDecimalStruct: BeetStruct<SwitchboardDecimal, Partial<SwitchboardDecimal>>;
|
18
|
+
export type AggregatorRound = {
|
19
|
+
numSuccess: number;
|
20
|
+
numError: number;
|
21
|
+
isClosed: boolean;
|
22
|
+
roundOpenSlot: BigNumber;
|
23
|
+
roundOpenTimestamp: BigNumber;
|
24
|
+
result: SwitchboardDecimal;
|
25
|
+
stdDeviation: SwitchboardDecimal;
|
26
|
+
minResponse: SwitchboardDecimal;
|
27
|
+
maxResponse: SwitchboardDecimal;
|
28
|
+
oraclePubkeysData: PublicKey[];
|
29
|
+
mediansData: SwitchboardDecimal[];
|
30
|
+
currentPayout: BigNumber[];
|
31
|
+
mediansFulfilled: boolean[];
|
32
|
+
errorsFulfilled: boolean[];
|
33
|
+
};
|
34
|
+
export declare const aggregatorRoundStruct: FixableBeetStruct<AggregatorRound, Partial<AggregatorRound>>;
|
35
|
+
export type AggregatorAccount = {
|
36
|
+
buffer: Buffer;
|
37
|
+
name: number[];
|
38
|
+
metadata: number[];
|
39
|
+
reserved1: number[];
|
40
|
+
queuePubkey: PublicKey;
|
41
|
+
oracleRequestBatchSize: number;
|
42
|
+
minOracleResults: number;
|
43
|
+
minJobResults: number;
|
44
|
+
minUpdateDelaySeconds: number;
|
45
|
+
startAfter: BigNumber;
|
46
|
+
varianceThreshold: SwitchboardDecimal;
|
47
|
+
forceReportPeriod: BigNumber;
|
48
|
+
expiration: BigNumber;
|
49
|
+
consecutiveFailureCount: BigNumber;
|
50
|
+
nextAllowedUpdateTime: BigNumber;
|
51
|
+
isLocked: boolean;
|
52
|
+
crankPubkey: PublicKey;
|
53
|
+
latestConfirmedRound: AggregatorRound;
|
54
|
+
currentRound: AggregatorRound;
|
55
|
+
jobPubkeysData: PublicKey[];
|
56
|
+
jobHashes: Hash[];
|
57
|
+
jobPubkeysSize: number;
|
58
|
+
jobsChecksum: number[];
|
59
|
+
authority: PublicKey;
|
60
|
+
historyBuffer: PublicKey;
|
61
|
+
previousConfirmedRoundResult: SwitchboardDecimal;
|
62
|
+
previousConfirmedRoundSlot: BigNumber;
|
63
|
+
disableCrank: boolean;
|
64
|
+
jobWeights: number[];
|
65
|
+
creationTimestamp: BigNumber;
|
66
|
+
resolutionMode: AggregatorResolutionMode;
|
67
|
+
basePriorityFee: number;
|
68
|
+
priorityFeeBump: number;
|
69
|
+
priorityFeeBumpPeriod: number;
|
70
|
+
maxPriorityFeeMultiplier: number;
|
71
|
+
parentFunction: PublicKey;
|
72
|
+
ebuf: number[];
|
73
|
+
};
|
74
|
+
export declare const aggregatorAccountStruct: FixableBeetStruct<AggregatorAccount, Partial<AggregatorAccount>>;
|
@@ -0,0 +1,72 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.aggregatorAccountStruct = exports.aggregatorRoundStruct = exports.switchboardDecimalStruct = exports.hashStruct = exports.AggregatorResolutionMode = void 0;
|
4
|
+
const beet_1 = require("@metaplex-foundation/beet");
|
5
|
+
const beet_solana_1 = require("@metaplex-foundation/beet-solana");
|
6
|
+
const solana_1 = require("../../utils/solana");
|
7
|
+
var AggregatorResolutionMode;
|
8
|
+
(function (AggregatorResolutionMode) {
|
9
|
+
AggregatorResolutionMode[AggregatorResolutionMode["ModeRoundResolution"] = 0] = "ModeRoundResolution";
|
10
|
+
AggregatorResolutionMode[AggregatorResolutionMode["ModeSlidingResolution"] = 1] = "ModeSlidingResolution";
|
11
|
+
})(AggregatorResolutionMode || (exports.AggregatorResolutionMode = AggregatorResolutionMode = {}));
|
12
|
+
exports.hashStruct = new beet_1.BeetStruct([['data', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 32)]], (args) => args);
|
13
|
+
exports.switchboardDecimalStruct = new beet_1.BeetStruct([
|
14
|
+
['mantissa', solana_1.i128],
|
15
|
+
['scale', beet_1.u32],
|
16
|
+
], (args) => args);
|
17
|
+
exports.aggregatorRoundStruct = new beet_1.FixableBeetStruct([
|
18
|
+
['numSuccess', beet_1.u32],
|
19
|
+
['numError', beet_1.u32],
|
20
|
+
['isClosed', beet_1.bool],
|
21
|
+
['roundOpenSlot', solana_1.u64],
|
22
|
+
['roundOpenTimestamp', solana_1.i64],
|
23
|
+
['result', exports.switchboardDecimalStruct],
|
24
|
+
['stdDeviation', exports.switchboardDecimalStruct],
|
25
|
+
['minResponse', exports.switchboardDecimalStruct],
|
26
|
+
['maxResponse', exports.switchboardDecimalStruct],
|
27
|
+
['oraclePubkeysData', (0, beet_1.uniformFixedSizeArray)(beet_solana_1.publicKey, 16)],
|
28
|
+
['mediansData', (0, beet_1.uniformFixedSizeArray)(exports.switchboardDecimalStruct, 16)],
|
29
|
+
['currentPayout', (0, beet_1.uniformFixedSizeArray)(solana_1.i64, 16)],
|
30
|
+
['mediansFulfilled', (0, beet_1.uniformFixedSizeArray)(beet_1.bool, 16)],
|
31
|
+
['errorsFulfilled', (0, beet_1.uniformFixedSizeArray)(beet_1.bool, 16)],
|
32
|
+
], (args) => args);
|
33
|
+
exports.aggregatorAccountStruct = new beet_1.FixableBeetStruct([
|
34
|
+
['buffer', (0, solana_1.blob)(8)],
|
35
|
+
['name', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 32)],
|
36
|
+
['metadata', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 128)],
|
37
|
+
['reserved1', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 32)],
|
38
|
+
['queuePubkey', beet_solana_1.publicKey],
|
39
|
+
['oracleRequestBatchSize', beet_1.u32],
|
40
|
+
['minOracleResults', beet_1.u32],
|
41
|
+
['minJobResults', beet_1.u32],
|
42
|
+
['minUpdateDelaySeconds', beet_1.u32],
|
43
|
+
['startAfter', solana_1.i64],
|
44
|
+
['varianceThreshold', exports.switchboardDecimalStruct],
|
45
|
+
['forceReportPeriod', solana_1.i64],
|
46
|
+
['expiration', solana_1.i64],
|
47
|
+
['consecutiveFailureCount', solana_1.u64],
|
48
|
+
['nextAllowedUpdateTime', solana_1.i64],
|
49
|
+
['isLocked', beet_1.bool],
|
50
|
+
['crankPubkey', beet_solana_1.publicKey],
|
51
|
+
['latestConfirmedRound', exports.aggregatorRoundStruct],
|
52
|
+
['currentRound', exports.aggregatorRoundStruct],
|
53
|
+
['jobPubkeysData', (0, beet_1.uniformFixedSizeArray)(beet_solana_1.publicKey, 16)],
|
54
|
+
['jobHashes', (0, beet_1.uniformFixedSizeArray)(exports.hashStruct, 16)],
|
55
|
+
['jobPubkeysSize', beet_1.u32],
|
56
|
+
['jobsChecksum', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 32)],
|
57
|
+
['authority', beet_solana_1.publicKey],
|
58
|
+
['historyBuffer', beet_solana_1.publicKey],
|
59
|
+
['previousConfirmedRoundResult', exports.switchboardDecimalStruct],
|
60
|
+
['previousConfirmedRoundSlot', solana_1.u64],
|
61
|
+
['disableCrank', beet_1.bool],
|
62
|
+
['jobWeights', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 16)],
|
63
|
+
['creationTimestamp', solana_1.i64],
|
64
|
+
['resolutionMode', beet_1.u8],
|
65
|
+
['basePriorityFee', beet_1.u32],
|
66
|
+
['priorityFeeBump', beet_1.u32],
|
67
|
+
['priorityFeeBumpPeriod', beet_1.u32],
|
68
|
+
['maxPriorityFeeMultiplier', beet_1.u32],
|
69
|
+
['parentFunction', beet_solana_1.publicKey],
|
70
|
+
['ebuf', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 90)],
|
71
|
+
], (args) => args);
|
72
|
+
//# sourceMappingURL=structs.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/switchboard/structs.ts"],"names":[],"mappings":"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"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { PublicKey } from '@solana/web3.js';
|
2
2
|
import { Platform } from '@sonarwatch/portfolio-core';
|
3
3
|
export declare const platformId = "tensor";
|
4
|
-
export declare const
|
4
|
+
export declare const platform: Platform;
|
5
5
|
export declare const cachePrefix = "tensor";
|
6
6
|
export declare const tensorPid: PublicKey;
|
7
7
|
export declare const locksPid: PublicKey;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.locksPid = exports.tensorPid = exports.cachePrefix = exports.
|
3
|
+
exports.locksPid = exports.tensorPid = exports.cachePrefix = exports.platform = exports.platformId = void 0;
|
4
4
|
const web3_js_1 = require("@solana/web3.js");
|
5
5
|
exports.platformId = 'tensor';
|
6
|
-
exports.
|
6
|
+
exports.platform = {
|
7
7
|
id: exports.platformId,
|
8
8
|
name: 'Tensor',
|
9
9
|
image: 'https://sonar.watch/img/platforms/tensor.png',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tensor/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tensor/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,8CAA8C;IACrD,OAAO,EAAE,+BAA+B;IACxC,OAAO,EAAE,2BAA2B;CACrC,CAAC;AACW,QAAA,WAAW,GAAG,QAAQ,CAAC;AAEvB,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,6CAA6C,CAC9C,CAAC;AAEW,QAAA,QAAQ,GAAG,IAAI,mBAAS,CACnC,6CAA6C,CAC9C,CAAC"}
|
@@ -7,6 +7,6 @@ exports.fetchers = exports.platforms = void 0;
|
|
7
7
|
const constants_1 = require("./constants");
|
8
8
|
const bidsFetcher_1 = __importDefault(require("./bidsFetcher"));
|
9
9
|
const locksFetcher_1 = __importDefault(require("./locksFetcher"));
|
10
|
-
exports.platforms = [constants_1.
|
10
|
+
exports.platforms = [constants_1.platform];
|
11
11
|
exports.fetchers = [bidsFetcher_1.default, locksFetcher_1.default];
|
12
12
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tensor/index.ts"],"names":[],"mappings":";;;;;;AAIA,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tensor/index.ts"],"names":[],"mappings":";;;;;;AAIA,2CAAuC;AACvC,gEAAwC;AACxC,kEAA0C;AAE7B,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,QAAQ,GAAc,CAAC,qBAAW,EAAE,sBAAY,CAAC,CAAC"}
|
@@ -1,8 +1,7 @@
|
|
1
1
|
import { Platform } from '@sonarwatch/portfolio-core';
|
2
|
-
import { InputViewFunctionData } from '@aptos-labs/ts-sdk';
|
3
2
|
export declare const platformId = "thala";
|
4
|
-
export declare const
|
5
|
-
export declare const
|
3
|
+
export declare const platform: Platform;
|
4
|
+
export declare const packageId = "0x6f986d146e4a90b828d8c12c14b6f4e003fdff11a8eecceceb63744363eaac01";
|
6
5
|
export declare const vaultFilter = "0x6f986d146e4a90b828d8c12c14b6f4e003fdff11a8eecceceb63744363eaac01::vault::Vault<";
|
7
6
|
export declare const vaultCollateralParamsFilter = "0x6f986d146e4a90b828d8c12c14b6f4e003fdff11a8eecceceb63744363eaac01::vault::VaultCollateralParams<";
|
8
7
|
export declare const thlCoin = "0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_coin::THL";
|
@@ -15,5 +14,13 @@ export declare const lpStableTypePrefix = "0x48271d39d0b05bd6efca2278f22277d6fcc
|
|
15
14
|
export declare const lpWeightedTypePrefix = "0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::weighted_pool::WeightedPool";
|
16
15
|
export declare const lpStableCoinInfoTypePrefix = "0x1::coin::CoinInfo<0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::stable_pool::StablePoolToken";
|
17
16
|
export declare const lpWeightedCoinInfoTypePrefix = "0x1::coin::CoinInfo<0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::weighted_pool::WeightedPoolToken";
|
18
|
-
export declare const stabilityDepositPayload: (owner: string) =>
|
19
|
-
|
17
|
+
export declare const stabilityDepositPayload: (owner: string) => {
|
18
|
+
function: `${string}::${string}::${string}`;
|
19
|
+
typeArguments: string[];
|
20
|
+
functionArguments: string[];
|
21
|
+
};
|
22
|
+
export declare const stabilityClaimablePayload: (owner: string) => {
|
23
|
+
function: `${string}::${string}::${string}`;
|
24
|
+
typeArguments: never[];
|
25
|
+
functionArguments: string[];
|
26
|
+
};
|
@@ -1,25 +1,25 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.stabilityClaimablePayload = exports.stabilityDepositPayload = exports.lpWeightedCoinInfoTypePrefix = exports.lpStableCoinInfoTypePrefix = exports.lpWeightedTypePrefix = exports.lpStableTypePrefix = exports.lpWeightedTypeTokenPrefix = exports.lpStableTypeTokenPrefix = exports.programAddressLP = exports.stabilityEndpoint = exports.modCoin = exports.thlCoin = exports.vaultCollateralParamsFilter = exports.vaultFilter = exports.
|
3
|
+
exports.stabilityClaimablePayload = exports.stabilityDepositPayload = exports.lpWeightedCoinInfoTypePrefix = exports.lpStableCoinInfoTypePrefix = exports.lpWeightedTypePrefix = exports.lpStableTypePrefix = exports.lpWeightedTypeTokenPrefix = exports.lpStableTypeTokenPrefix = exports.programAddressLP = exports.stabilityEndpoint = exports.modCoin = exports.thlCoin = exports.vaultCollateralParamsFilter = exports.vaultFilter = exports.packageId = exports.platform = exports.platformId = void 0;
|
4
4
|
const aptos_1 = require("../../utils/aptos");
|
5
5
|
exports.platformId = 'thala';
|
6
|
-
exports.
|
6
|
+
exports.platform = {
|
7
7
|
id: exports.platformId,
|
8
8
|
name: 'Thala',
|
9
9
|
image: 'https://sonar.watch/img/platforms/thala.png',
|
10
10
|
defiLlamaId: 'parent#thala-labs',
|
11
11
|
website: 'https://www.thala.fi/',
|
12
12
|
};
|
13
|
-
exports.
|
13
|
+
exports.packageId = '0x6f986d146e4a90b828d8c12c14b6f4e003fdff11a8eecceceb63744363eaac01';
|
14
14
|
const stabilityModule = 'stability_pool';
|
15
15
|
const vaultModule = 'vault';
|
16
|
-
const liquidityDeposit = `${exports.
|
17
|
-
const liquidityClaimable = `${exports.
|
18
|
-
const cryptoType = `${exports.
|
19
|
-
exports.vaultFilter = `${exports.
|
20
|
-
exports.vaultCollateralParamsFilter = `${exports.
|
16
|
+
const liquidityDeposit = `${exports.packageId}::${stabilityModule}::account_deposit`;
|
17
|
+
const liquidityClaimable = `${exports.packageId}::${stabilityModule}::claimable_thl`;
|
18
|
+
const cryptoType = `${exports.packageId}::${stabilityModule}::Crypto`;
|
19
|
+
exports.vaultFilter = `${exports.packageId}::${vaultModule}::Vault<`;
|
20
|
+
exports.vaultCollateralParamsFilter = `${exports.packageId}::${vaultModule}::VaultCollateralParams<`;
|
21
21
|
exports.thlCoin = `0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_coin::THL`;
|
22
|
-
exports.modCoin = `${exports.
|
22
|
+
exports.modCoin = `${exports.packageId}::mod_coin::MOD`;
|
23
23
|
exports.stabilityEndpoint = 'https://app.thala.fi/api/total-stability';
|
24
24
|
exports.programAddressLP = '0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af';
|
25
25
|
exports.lpStableTypeTokenPrefix = `${exports.programAddressLP}::stable_pool::StablePoolToken`;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thala/constants.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thala/constants.ts"],"names":[],"mappings":";;;AACA,6CAA6C;AAEhC,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,6CAA6C;IACpD,WAAW,EAAE,mBAAmB;IAChC,OAAO,EAAE,uBAAuB;CACjC,CAAC;AACW,QAAA,SAAS,GACpB,oEAAoE,CAAC;AAEvE,MAAM,eAAe,GAAG,gBAAgB,CAAC;AACzC,MAAM,WAAW,GAAG,OAAO,CAAC;AAE5B,MAAM,gBAAgB,GAAG,GAAG,iBAAS,KAAK,eAAe,mBAAmB,CAAC;AAC7E,MAAM,kBAAkB,GAAG,GAAG,iBAAS,KAAK,eAAe,iBAAiB,CAAC;AAE7E,MAAM,UAAU,GAAG,GAAG,iBAAS,KAAK,eAAe,UAAU,CAAC;AACjD,QAAA,WAAW,GAAG,GAAG,iBAAS,KAAK,WAAW,UAAU,CAAC;AACrD,QAAA,2BAA2B,GAAG,GAAG,iBAAS,KAAK,WAAW,0BAA0B,CAAC;AAErF,QAAA,OAAO,GAAG,kFAAkF,CAAC;AAC7F,QAAA,OAAO,GAAG,GAAG,iBAAS,iBAAiB,CAAC;AAExC,QAAA,iBAAiB,GAAG,0CAA0C,CAAC;AAE/D,QAAA,gBAAgB,GAC3B,oEAAoE,CAAC;AAC1D,QAAA,uBAAuB,GAAG,GAAG,wBAAgB,gCAAgC,CAAC;AAC9E,QAAA,yBAAyB,GAAG,GAAG,wBAAgB,oCAAoC,CAAC;AACpF,QAAA,kBAAkB,GAAG,GAAG,wBAAgB,2BAA2B,CAAC;AACpE,QAAA,oBAAoB,GAAG,GAAG,wBAAgB,+BAA+B,CAAC;AAC1E,QAAA,0BAA0B,GAAG,GAAG,gBAAQ,IAAI,+BAAuB,EAAE,CAAC;AACtE,QAAA,4BAA4B,GAAG,GAAG,gBAAQ,IAAI,iCAAyB,EAAE,CAAC;AAEhF,MAAM,uBAAuB,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,CAAC;IACzD,QAAQ,EAAE,gBAAqD;IAC/D,aAAa,EAAE,CAAC,UAAU,CAAC;IAC3B,iBAAiB,EAAE,CAAC,KAAK,CAAC;CAC3B,CAAC,CAAC;AAJU,QAAA,uBAAuB,2BAIjC;AAEI,MAAM,yBAAyB,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,CAAC;IAC3D,QAAQ,EAAE,kBAAuD;IACjE,aAAa,EAAE,EAAE;IACjB,iBAAiB,EAAE,CAAC,KAAK,CAAC;CAC3B,CAAC,CAAC;AAJU,QAAA,yBAAyB,6BAInC"}
|
@@ -10,7 +10,7 @@ const stakingAprJob_1 = __importDefault(require("./stakingAprJob"));
|
|
10
10
|
const vaultsFetcher_1 = __importDefault(require("./vaultsFetcher"));
|
11
11
|
const stabilityPoolFetcher_1 = __importDefault(require("./stabilityPoolFetcher"));
|
12
12
|
const constants_1 = require("./constants");
|
13
|
-
exports.platforms = [constants_1.
|
13
|
+
exports.platforms = [constants_1.platform];
|
14
14
|
exports.jobs = [vaultsRatesJob_1.default, lpTokensJob_1.default, stakingAprJob_1.default];
|
15
15
|
exports.fetchers = [vaultsFetcher_1.default, stabilityPoolFetcher_1.default];
|
16
16
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thala/index.ts"],"names":[],"mappings":";;;;;;AAGA,sEAA4C;AAC5C,gEAAuC;AACvC,oEAA4C;AAC5C,oEAA4C;AAC5C,kFAAiD;AACjD,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thala/index.ts"],"names":[],"mappings":";;;;;;AAGA,sEAA4C;AAC5C,gEAAuC;AACvC,oEAA4C;AAC5C,oEAA4C;AAC5C,kFAAiD;AACjD,2CAAuC;AAE1B,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,wBAAY,EAAE,qBAAU,EAAE,uBAAa,CAAC,CAAC;AACxD,QAAA,QAAQ,GAAc,CAAC,uBAAa,EAAE,8BAAW,CAAC,CAAC"}
|
@@ -15,7 +15,7 @@ const helpers_1 = require("./helpers");
|
|
15
15
|
const aptos_1 = require("../../utils/aptos");
|
16
16
|
const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
17
17
|
const connection = (0, clients_1.getClientAptos)();
|
18
|
-
const vaultsRate = yield (0, aptos_1.getAccountResources)(connection, constants_1.
|
18
|
+
const vaultsRate = yield (0, aptos_1.getAccountResources)(connection, constants_1.packageId);
|
19
19
|
if (!vaultsRate)
|
20
20
|
return;
|
21
21
|
vaultsRate.forEach((resource) => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"vaultsRatesJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thala/vaultsRatesJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2CAIqB;AACrB,iDAAqD;AAErD,uCAAwC;AACxC,6CAAuE;AAIvE,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,UAAU,GAAG,IAAA,wBAAc,GAAE,CAAC;IACpC,MAAM,UAAU,GAAG,MAAM,IAAA,2BAAmB,EAAC,UAAU,EAAE,
|
1
|
+
{"version":3,"file":"vaultsRatesJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thala/vaultsRatesJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2CAIqB;AACrB,iDAAqD;AAErD,uCAAwC;AACxC,6CAAuE;AAIvE,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,UAAU,GAAG,IAAA,wBAAc,GAAE,CAAC;IACpC,MAAM,UAAU,GAAG,MAAM,IAAA,2BAAmB,EAAC,UAAU,EAAE,qBAAS,CAAC,CAAC;IACpE,IAAI,CAAC,UAAU;QAAE,OAAO;IAExB,UAAU,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;QAC9B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,uCAA2B,CAAC;YAAE,OAAO;QACnE,IAAI,CAAC,QAAQ,CAAC,IAAI;YAAE,OAAO;QAC3B,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAsC,CAAC;QAClE,IAAI,CAAC,SAAS;YAAE,OAAO;QACvB,KAAK,CAAC,OAAO,CACX,IAAA,qBAAa,EAAC,QAAQ,CAAC,IAAI,CAAC,EAC5B,IAAA,qBAAW,EAAC,MAAM,CAAC,SAAS,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC,EAC3D;YACE,MAAM,EAAE,GAAG,sBAAU,cAAc;SACpC,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,eAAe;IAChC,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Platform } from '@sonarwatch/portfolio-core';
|
2
2
|
export declare const platformId = "turbos";
|
3
|
-
export declare const
|
3
|
+
export declare const platform: Platform;
|
4
4
|
export declare const clmmPoolsPrefix = "turbos-clmmPools";
|
5
5
|
export declare const poolTableId = "0x08984ed8705f44b6403705dc248896e56ab7961447820ae29be935ce0d32198b";
|
6
6
|
export declare const packageIdOriginal = "0x91bfbc386a41afcfd9b2533058d7e915a1d3829089cc268ff4333d54d6339ca1";
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.clmmNftType = exports.packageIdOriginal = exports.poolTableId = exports.clmmPoolsPrefix = exports.
|
3
|
+
exports.clmmNftType = exports.packageIdOriginal = exports.poolTableId = exports.clmmPoolsPrefix = exports.platform = exports.platformId = void 0;
|
4
4
|
exports.platformId = 'turbos';
|
5
|
-
exports.
|
5
|
+
exports.platform = {
|
6
6
|
id: exports.platformId,
|
7
7
|
name: 'Turbos',
|
8
8
|
image: 'https://sonar.watch/img/platforms/turbos.png',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/turbos/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/turbos/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,8CAA8C;IACrD,WAAW,EAAE,QAAQ;IACrB,OAAO,EAAE,6BAA6B;CACvC,CAAC;AACW,QAAA,eAAe,GAAG,GAAG,kBAAU,YAAY,CAAC;AAE5C,QAAA,WAAW,GACtB,oEAAoE,CAAC;AAE1D,QAAA,iBAAiB,GAC5B,oEAAoE,CAAC;AAE1D,QAAA,WAAW,GAAG,GAAG,yBAAiB,mCAAmC,CAAC"}
|
@@ -7,7 +7,7 @@ exports.fetchers = exports.jobs = exports.platforms = void 0;
|
|
7
7
|
const poolsJob_1 = __importDefault(require("./poolsJob"));
|
8
8
|
const clmmsPositionsFetcher_1 = __importDefault(require("./clmmsPositionsFetcher"));
|
9
9
|
const constants_1 = require("./constants");
|
10
|
-
exports.platforms = [constants_1.
|
10
|
+
exports.platforms = [constants_1.platform];
|
11
11
|
exports.jobs = [poolsJob_1.default];
|
12
12
|
exports.fetchers = [clmmsPositionsFetcher_1.default];
|
13
13
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/turbos/index.ts"],"names":[],"mappings":";;;;;;AAGA,0DAAkC;AAClC,oFAA0D;AAC1D,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/turbos/index.ts"],"names":[],"mappings":";;;;;;AAGA,0DAAkC;AAClC,oFAA0D;AAC1D,2CAAuC;AAE1B,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,kBAAQ,CAAC,CAAC;AACzB,QAAA,QAAQ,GAAc,CAAC,+BAAmB,CAAC,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Platform } from '@sonarwatch/portfolio-core';
|
2
2
|
import { UniswapNetworkConfig } from './types';
|
3
3
|
export declare const platformId = "uniswap";
|
4
|
-
export declare const
|
4
|
+
export declare const platform: Platform;
|
5
5
|
export declare const poolsPrefix = "uniswap-v3";
|
6
6
|
export declare const poolsKey = "poolsInfo";
|
7
7
|
export declare const uniswapNetworksConfigs: UniswapNetworkConfig[];
|
@@ -1,9 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.uniswapNetworksConfigs = exports.poolsKey = exports.poolsPrefix = exports.
|
3
|
+
exports.uniswapNetworksConfigs = exports.poolsKey = exports.poolsPrefix = exports.platform = exports.platformId = void 0;
|
4
4
|
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
5
5
|
exports.platformId = 'uniswap';
|
6
|
-
exports.
|
6
|
+
exports.platform = {
|
7
7
|
id: exports.platformId,
|
8
8
|
name: 'Uniswap',
|
9
9
|
image: 'https://sonar.watch/img/platforms/uniswap.png',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uniswap/constants.ts"],"names":[],"mappings":";;;AAAA,+DAAiE;AAGpD,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uniswap/constants.ts"],"names":[],"mappings":";;;AAAA,+DAAiE;AAGpD,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,+CAA+C;IACtD,WAAW,EAAE,gBAAgB;IAC7B,OAAO,EAAE,sBAAsB;CAChC,CAAC;AAEW,QAAA,WAAW,GAAG,YAAY,CAAC;AAC3B,QAAA,QAAQ,GAAG,WAAW,CAAC;AAEvB,QAAA,sBAAsB,GAA2B;IAC5D;QACE,SAAS,EAAE,0BAAS,CAAC,QAAQ;QAC7B,OAAO,EAAE,4CAA4C;QACrD,eAAe,EAAE,4CAA4C;KAC9D;IACD;QACE,SAAS,EAAE,0BAAS,CAAC,OAAO;QAC5B,OAAO,EAAE,4CAA4C;QACrD,eAAe,EAAE,4CAA4C;KAC9D;IACD,IAAI;IACJ,mCAAmC;IACnC,2DAA2D;IAC3D,mEAAmE;IACnE,KAAK;IACL,IAAI;IACJ,+BAA+B;IAC/B,2DAA2D;IAC3D,mEAAmE;IACnE,KAAK;IACL;QACE,SAAS,EAAE,0BAAS,CAAC,GAAG;QACxB,OAAO,EAAE,4CAA4C;QACrD,eAAe,EAAE,4CAA4C;KAC9D;IACD,IAAI;IACJ,mCAAmC;IACnC,2DAA2D;IAC3D,mEAAmE;IACnE,KAAK;CACN,CAAC"}
|
@@ -7,5 +7,5 @@ exports.jobs = [];
|
|
7
7
|
exports.fetchers = [
|
8
8
|
...constants_1.uniswapNetworksConfigs.map((config) => (0, getUniV3PositionsFetcher_1.getUniV3PositionsFetcher)(config, constants_1.platformId, 'V3')),
|
9
9
|
];
|
10
|
-
exports.platforms = [constants_1.
|
10
|
+
exports.platforms = [constants_1.platform];
|
11
11
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uniswap/index.ts"],"names":[],"mappings":";;;AAIA,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uniswap/index.ts"],"names":[],"mappings":";;;AAIA,2CAA2E;AAC3E,yEAAsE;AAEzD,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc;IACjC,GAAG,kCAAsB,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CACvC,IAAA,mDAAwB,EAAC,MAAM,EAAE,sBAAU,EAAE,IAAI,CAAC,CACnD;CACF,CAAC;AACW,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC"}
|
@@ -40,28 +40,28 @@ function getPairKey(version) {
|
|
40
40
|
exports.getPairKey = getPairKey;
|
41
41
|
function getPairsV2FromTheGraph(url, length = 300) {
|
42
42
|
return __awaiter(this, void 0, void 0, function* () {
|
43
|
-
const query = (0, graphql_request_1.gql) `
|
44
|
-
{
|
45
|
-
pairs(
|
46
|
-
orderBy: reserveUSD
|
47
|
-
first: ${length}
|
48
|
-
orderDirection: desc
|
49
|
-
where: { trackedReserveETH_not: "0" }
|
50
|
-
) {
|
51
|
-
id
|
52
|
-
reserve0
|
53
|
-
reserve1
|
54
|
-
totalSupply
|
55
|
-
token0 {
|
56
|
-
id
|
57
|
-
decimals
|
58
|
-
}
|
59
|
-
token1 {
|
60
|
-
id
|
61
|
-
decimals
|
62
|
-
}
|
63
|
-
}
|
64
|
-
}
|
43
|
+
const query = (0, graphql_request_1.gql) `
|
44
|
+
{
|
45
|
+
pairs(
|
46
|
+
orderBy: reserveUSD
|
47
|
+
first: ${length}
|
48
|
+
orderDirection: desc
|
49
|
+
where: { trackedReserveETH_not: "0" }
|
50
|
+
) {
|
51
|
+
id
|
52
|
+
reserve0
|
53
|
+
reserve1
|
54
|
+
totalSupply
|
55
|
+
token0 {
|
56
|
+
id
|
57
|
+
decimals
|
58
|
+
}
|
59
|
+
token1 {
|
60
|
+
id
|
61
|
+
decimals
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
65
|
`;
|
66
66
|
const res = yield (0, graphql_request_1.default)(url, query);
|
67
67
|
const pairs = res.pairs;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { Platform } from '@sonarwatch/portfolio-core';
|
2
2
|
export declare const platformId = "venus";
|
3
|
-
export declare const
|
3
|
+
export declare const platform: Platform;
|
4
4
|
export declare const comptrollerVenus = "0xfD36E2c2a6789Db23113685031d7F16329158384";
|
@@ -1,14 +1,10 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.comptrollerVenus = exports.
|
7
|
-
const upperCaseFirstLetter_1 = __importDefault(require("../../utils/misc/upperCaseFirstLetter"));
|
3
|
+
exports.comptrollerVenus = exports.platform = exports.platformId = void 0;
|
8
4
|
exports.platformId = 'venus';
|
9
|
-
exports.
|
5
|
+
exports.platform = {
|
10
6
|
id: exports.platformId,
|
11
|
-
name:
|
7
|
+
name: 'Venus',
|
12
8
|
image: 'https://sonar.watch/img/platforms/venus.png',
|
13
9
|
defiLlamaId: 'venus-core-pool',
|
14
10
|
website: 'https://app.venus.io/',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/venus/constants.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/venus/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,6CAA6C;IACpD,WAAW,EAAE,iBAAiB;IAC9B,OAAO,EAAE,uBAAuB;CACjC,CAAC;AAEW,QAAA,gBAAgB,GAAG,4CAA4C,CAAC"}
|
@@ -14,5 +14,5 @@ exports.jobs = [
|
|
14
14
|
exports.fetchers = [
|
15
15
|
(0, getPositionsV2Fetcher_1.default)(portfolio_core_1.NetworkId.bnb, constants_1.platformId),
|
16
16
|
];
|
17
|
-
exports.platforms = [constants_1.
|
17
|
+
exports.platforms = [constants_1.platform];
|
18
18
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/venus/index.ts"],"names":[],"mappings":";;;;;;AAAA,+DAAiE;AAGjE,kFAA0D;AAC1D,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/venus/index.ts"],"names":[],"mappings":";;;;;;AAAA,+DAAiE;AAGjE,kFAA0D;AAC1D,2CAAqE;AACrE,8FAAsE;AAEzD,QAAA,IAAI,GAAU;IACzB,IAAA,yBAAe,EAAC,0BAAS,CAAC,GAAG,EAAE,sBAAU,EAAE,4BAAgB,CAAC;CAC7D,CAAC;AACW,QAAA,QAAQ,GAAc;IACjC,IAAA,+BAAqB,EAAC,0BAAS,CAAC,GAAG,EAAE,sBAAU,CAAC;CACjD,CAAC;AACW,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC"}
|
@@ -5,7 +5,7 @@ exports.platformId = 'wormhole';
|
|
5
5
|
exports.platform = {
|
6
6
|
id: exports.platformId,
|
7
7
|
name: 'Wormhole',
|
8
|
-
image: 'https://sonar.watch/img/platforms/wormhole.
|
8
|
+
image: 'https://sonar.watch/img/platforms/wormhole.webp',
|
9
9
|
website: 'https://airdrop.wormhole.com/',
|
10
10
|
twitter: 'https://twitter.com/wormhole',
|
11
11
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/wormhole/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/wormhole/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,iDAAiD;IACxD,OAAO,EAAE,+BAA+B;IACxC,OAAO,EAAE,8BAA8B;CACxC,CAAC;AAEW,QAAA,MAAM,GAAG,2CAA2C,CAAC;AACrD,QAAA,KAAK,GAAG,8CAA8C,CAAC;AACvD,QAAA,QAAQ,GAAG,CAAC,CAAC"}
|
@@ -35,7 +35,7 @@ exports.xStakingConfigs = [
|
|
35
35
|
vault: constants_1.vaultPubkey,
|
36
36
|
xMint: constants_1.xAuryMint,
|
37
37
|
xDecimals: 9,
|
38
|
-
platformId: constants_1.
|
38
|
+
platformId: constants_1.platformId,
|
39
39
|
},
|
40
40
|
{
|
41
41
|
mint: 'GTH3wG3NErjwcf7VGCoXEXkgXSHvYhx5gtATeeM5JAS1',
|
@@ -67,7 +67,7 @@ exports.xStakingConfigs = [
|
|
67
67
|
vault: '2eFeetCpZJprr67F2dToT52BbSkdeqKZT6hmVdVG14eU',
|
68
68
|
xMint: 'xHWKW3Yyji9xe6FnTmDqu3rBApt3Ysu5ysywUA85Len',
|
69
69
|
xDecimals: 6,
|
70
|
-
platformId: constants_2.
|
70
|
+
platformId: constants_2.platformId,
|
71
71
|
},
|
72
72
|
];
|
73
73
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/x-staking-solana/constants.ts"],"names":[],"mappings":";;;AACA,mDAM6B;AAC7B,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/x-staking-solana/constants.ts"],"names":[],"mappings":";;;AACA,mDAM6B;AAC7B,sDAA2E;AAE9D,QAAA,sBAAsB,GAAG,cAAc,CAAC;AACxC,QAAA,oBAAoB,GAAa;IAC5C,EAAE,EAAE,8BAAsB;IAC1B,IAAI,EAAE,eAAe;IACrB,KAAK,EAAE,oDAAoD;IAC3D,qEAAqE;IACrE,OAAO,EAAE,4BAA4B;IACrC,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AAEW,QAAA,qBAAqB,GAAG,aAAa,CAAC;AACtC,QAAA,mBAAmB,GAAa;IAC3C,EAAE,EAAE,6BAAqB;IACzB,IAAI,EAAE,cAAc;IACpB,KAAK,EAAE,mDAAmD;IAC1D,OAAO,EAAE,2BAA2B;IACpC,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AAEW,QAAA,mBAAmB,GAAG,WAAW,CAAC;AAClC,QAAA,iBAAiB,GAAa;IACzC,EAAE,EAAE,2BAAmB;IACvB,IAAI,EAAE,cAAc;IACpB,KAAK,EAAE,iDAAiD;IACxD,OAAO,EAAE,uCAAuC;IAChD,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AAEW,QAAA,eAAe,GAAoB;IAC9C;QACE,IAAI,EAAE,oBAAQ;QACd,QAAQ,EAAR,oBAAQ;QACR,KAAK,EAAE,uBAAW;QAClB,KAAK,EAAE,qBAAS;QAChB,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,sBAAgB;KAC7B;IACD;QACE,IAAI,EAAE,8CAA8C;QACpD,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,8CAA8C;QACrD,KAAK,EAAE,8CAA8C;QACrD,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,8BAAsB;KACnC;IACD;QACE,IAAI,EAAE,6CAA6C;QACnD,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,8CAA8C;QACrD,KAAK,EAAE,6CAA6C;QACpD,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,6BAAqB;KAClC;IACD;QACE,IAAI,EAAE,6CAA6C;QACnD,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,8CAA8C;QACrD,KAAK,EAAE,6CAA6C;QACpD,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,2BAAmB;KAChC;IACD;QACE,IAAI,EAAE,8CAA8C;QACpD,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,8CAA8C;QACrD,KAAK,EAAE,6CAA6C;QACpD,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,sBAAmB;KAChC;CACF,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { PublicKey } from '@solana/web3.js';
|
2
2
|
import { Platform } from '@sonarwatch/portfolio-core';
|
3
3
|
export declare const platformId = "zeta";
|
4
|
-
export declare const
|
4
|
+
export declare const platform: Platform;
|
5
5
|
export declare const usdcMint = "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v";
|
6
6
|
export declare const programId: PublicKey;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.programId = exports.usdcMint = exports.
|
3
|
+
exports.programId = exports.usdcMint = exports.platform = exports.platformId = void 0;
|
4
4
|
const web3_js_1 = require("@solana/web3.js");
|
5
5
|
exports.platformId = 'zeta';
|
6
|
-
exports.
|
6
|
+
exports.platform = {
|
7
7
|
id: exports.platformId,
|
8
8
|
name: 'Zeta',
|
9
9
|
image: 'https://sonar.watch/img/platforms/zeta.png',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,MAAM,CAAC;AACpB,QAAA,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,MAAM,CAAC;AACpB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,4CAA4C;IACnD,WAAW,EAAE,MAAM;IACnB,OAAO,EAAE,2BAA2B;CACrC,CAAC;AAEW,QAAA,QAAQ,GAAG,8CAA8C,CAAC;AAC1D,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,6CAA6C,CAC9C,CAAC"}
|
@@ -8,5 +8,5 @@ const depositsFetcher_1 = __importDefault(require("./depositsFetcher"));
|
|
8
8
|
const constants_1 = require("./constants");
|
9
9
|
exports.jobs = [];
|
10
10
|
exports.fetchers = [depositsFetcher_1.default];
|
11
|
-
exports.platforms = [constants_1.
|
11
|
+
exports.platforms = [constants_1.platform];
|
12
12
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/index.ts"],"names":[],"mappings":";;;;;;AAGA,wEAAgD;AAChD,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/index.ts"],"names":[],"mappings":";;;;;;AAGA,wEAAgD;AAChD,2CAAuC;AAE1B,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,yBAAe,CAAC,CAAC;AACxC,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC"}
|
@@ -1,16 +1,16 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.poolQueryMsg = exports.minterQueryMsg = exports.tokenInfoQueryMsg = exports.infoQueryMsg = void 0;
|
4
|
-
exports.infoQueryMsg = JSON.parse(`{
|
5
|
-
"info": {}
|
4
|
+
exports.infoQueryMsg = JSON.parse(`{
|
5
|
+
"info": {}
|
6
6
|
}`);
|
7
|
-
exports.tokenInfoQueryMsg = JSON.parse(`{
|
8
|
-
"token_info": {}
|
7
|
+
exports.tokenInfoQueryMsg = JSON.parse(`{
|
8
|
+
"token_info": {}
|
9
9
|
}`);
|
10
|
-
exports.minterQueryMsg = JSON.parse(`{
|
11
|
-
"minter": {}
|
10
|
+
exports.minterQueryMsg = JSON.parse(`{
|
11
|
+
"minter": {}
|
12
12
|
}`);
|
13
|
-
exports.poolQueryMsg = JSON.parse(`{
|
14
|
-
"pool": {}
|
13
|
+
exports.poolQueryMsg = JSON.parse(`{
|
14
|
+
"pool": {}
|
15
15
|
}`);
|
16
16
|
//# sourceMappingURL=constants.js.map
|