@sonarwatch/portfolio-plugins 0.14.49 → 0.14.51
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 +1788 -1780
- package/README.md +3 -3
- package/package.json +1 -1
- package/src/index.js +6 -2
- package/src/index.js.map +1 -1
- package/src/plugins/balancer/helpers/pools.js +21 -21
- package/src/plugins/bluemove/constants.d.ts +1 -2
- package/src/plugins/bluemove/constants.js +2 -3
- package/src/plugins/bluemove/constants.js.map +1 -1
- package/src/plugins/bluemove/index.js +4 -2
- package/src/plugins/bluemove/index.js.map +1 -1
- package/src/plugins/bluemove/lockLpFetcher.js +66 -0
- package/src/plugins/bluemove/lockLpFetcher.js.map +1 -0
- package/src/plugins/{deepbook/poolsJob.js → bluemove/lockLpJob.js} +12 -6
- package/src/plugins/bluemove/lockLpJob.js.map +1 -0
- package/src/plugins/bluemove/types.d.ts +24 -0
- package/src/plugins/deepbook/constants.d.ts +0 -3
- package/src/plugins/deepbook/constants.js +1 -4
- package/src/plugins/deepbook/constants.js.map +1 -1
- package/src/plugins/deepbook/helpers.d.ts +10 -4
- package/src/plugins/deepbook/helpers.js +4 -97
- package/src/plugins/deepbook/helpers.js.map +1 -1
- package/src/plugins/deepbook/index.js +6 -4
- package/src/plugins/deepbook/index.js.map +1 -1
- package/src/plugins/deepbook/types.d.ts +0 -7
- package/src/plugins/deepbook/v2/constants.d.ts +3 -0
- package/src/plugins/deepbook/v2/constants.js +7 -0
- package/src/plugins/deepbook/v2/constants.js.map +1 -0
- package/src/plugins/deepbook/v2/depositsFetcher.d.ts +3 -0
- package/src/plugins/deepbook/{ordersFetcher.js → v2/depositsFetcher.js} +9 -7
- package/src/plugins/deepbook/v2/depositsFetcher.js.map +1 -0
- package/src/plugins/deepbook/v2/helpers.d.ts +4 -0
- package/src/plugins/deepbook/v2/helpers.js +49 -0
- package/src/plugins/deepbook/v2/helpers.js.map +1 -0
- package/src/plugins/deepbook/v2/poolsJob.d.ts +3 -0
- package/src/plugins/deepbook/v2/poolsJob.js +41 -0
- package/src/plugins/deepbook/v2/poolsJob.js.map +1 -0
- package/src/plugins/deepbook/v2/types.d.ts +7 -0
- package/src/plugins/deepbook/v2/types.js +3 -0
- package/src/plugins/deepbook/v2/types.js.map +1 -0
- package/src/plugins/deepbook/v3/constants.d.ts +4 -0
- package/src/plugins/deepbook/v3/constants.js +8 -0
- package/src/plugins/deepbook/v3/constants.js.map +1 -0
- package/src/plugins/deepbook/v3/depositsFetcher.d.ts +3 -0
- package/src/plugins/deepbook/v3/depositsFetcher.js +83 -0
- package/src/plugins/deepbook/v3/depositsFetcher.js.map +1 -0
- package/src/plugins/deepbook/v3/helpers.d.ts +12 -0
- package/src/plugins/deepbook/v3/helpers.js +69 -0
- package/src/plugins/deepbook/v3/helpers.js.map +1 -0
- package/src/plugins/deepbook/v3/poolsJob.d.ts +3 -0
- package/src/plugins/deepbook/v3/poolsJob.js +48 -0
- package/src/plugins/deepbook/v3/poolsJob.js.map +1 -0
- package/src/plugins/doubleup/constants.d.ts +7 -0
- package/src/plugins/doubleup/constants.js +17 -0
- package/src/plugins/doubleup/constants.js.map +1 -0
- package/src/plugins/doubleup/housesAndRedeemJob.d.ts +3 -0
- package/src/plugins/doubleup/housesAndRedeemJob.js +127 -0
- package/src/plugins/doubleup/housesAndRedeemJob.js.map +1 -0
- package/src/plugins/doubleup/index.d.ts +6 -0
- package/src/plugins/doubleup/index.js +13 -0
- package/src/plugins/doubleup/index.js.map +1 -0
- package/src/plugins/doubleup/redeemTicketsFetcher.d.ts +3 -0
- package/src/plugins/doubleup/redeemTicketsFetcher.js +46 -0
- package/src/plugins/doubleup/redeemTicketsFetcher.js.map +1 -0
- package/src/plugins/doubleup/structs.d.ts +19 -0
- package/src/plugins/doubleup/structs.js +22 -0
- package/src/plugins/doubleup/structs.js.map +1 -0
- package/src/plugins/doubleup/types.d.ts +42 -0
- package/src/plugins/doubleup/types.js +3 -0
- package/src/plugins/doubleup/types.js.map +1 -0
- package/src/plugins/moonwalk/constants.d.ts +1 -1
- package/src/plugins/moonwalk/constants.js +2 -2
- package/src/plugins/moonwalk/constants.js.map +1 -1
- package/src/plugins/moonwalk/gamesFetcher.js +36 -13
- package/src/plugins/moonwalk/gamesFetcher.js.map +1 -1
- package/src/plugins/navi/constants.d.ts +0 -9
- package/src/plugins/navi/constants.js +1 -49
- package/src/plugins/navi/constants.js.map +1 -1
- package/src/plugins/suilend/airdropFetcher.js +2 -1
- package/src/plugins/suilend/airdropFetcher.js.map +1 -1
- package/src/plugins/suilend/earlyUsers.json +3 -2
- package/src/plugins/sushiswap/helpers.js +24 -24
- package/src/plugins/uniswap-v2/helpers.js +22 -22
- package/src/plugins/zeta/airdropFetcher.js +14 -14
- package/src/utils/sei/constants.js +8 -8
- package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
- package/src/plugins/deepbook/ordersFetcher.js.map +0 -1
- package/src/plugins/deepbook/poolsJob.js.map +0 -1
- /package/src/plugins/{deepbook/ordersFetcher.d.ts → bluemove/lockLpFetcher.d.ts} +0 -0
- /package/src/plugins/{deepbook/poolsJob.d.ts → bluemove/lockLpJob.d.ts} +0 -0
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.fetchers = exports.jobs = exports.platforms = void 0;
|
7
|
+
const constants_1 = require("./constants");
|
8
|
+
const housesAndRedeemJob_1 = __importDefault(require("./housesAndRedeemJob"));
|
9
|
+
const redeemTicketsFetcher_1 = __importDefault(require("./redeemTicketsFetcher"));
|
10
|
+
exports.platforms = [constants_1.platform];
|
11
|
+
exports.jobs = [housesAndRedeemJob_1.default];
|
12
|
+
exports.fetchers = [redeemTicketsFetcher_1.default];
|
13
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/doubleup/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,8EAA6C;AAC7C,kFAAyD;AAE5C,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,4BAAS,CAAC,CAAC;AAC1B,QAAA,QAAQ,GAAc,CAAC,8BAAmB,CAAC,CAAC"}
|
@@ -0,0 +1,46 @@
|
|
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
|
+
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
13
|
+
const ElementRegistry_1 = require("../../utils/elementbuilder/ElementRegistry");
|
14
|
+
const constants_1 = require("./constants");
|
15
|
+
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
16
|
+
const tickets = yield cache.getItem(constants_1.redeemTicketsKey, {
|
17
|
+
prefix: constants_1.platformId,
|
18
|
+
networkId: portfolio_core_1.NetworkId.sui,
|
19
|
+
});
|
20
|
+
if (!tickets)
|
21
|
+
return [];
|
22
|
+
const elementRegistry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.sui, constants_1.platformId);
|
23
|
+
const withdrawElement = elementRegistry.addElementMultiple({
|
24
|
+
label: 'LiquidityPool',
|
25
|
+
});
|
26
|
+
for (const ticket of tickets) {
|
27
|
+
if (ticket.owner !== owner)
|
28
|
+
continue;
|
29
|
+
withdrawElement.addAsset({
|
30
|
+
address: ticket.mint,
|
31
|
+
amount: ticket.amount,
|
32
|
+
attributes: {
|
33
|
+
lockedUntil: ticket.lockUntil,
|
34
|
+
tags: ['Pending Withdraw'],
|
35
|
+
},
|
36
|
+
});
|
37
|
+
}
|
38
|
+
return elementRegistry.getElements(cache);
|
39
|
+
});
|
40
|
+
const fetcher = {
|
41
|
+
id: `${constants_1.platformId}-redeem-ticket`,
|
42
|
+
networkId: portfolio_core_1.NetworkId.sui,
|
43
|
+
executor,
|
44
|
+
};
|
45
|
+
exports.default = fetcher;
|
46
|
+
//# sourceMappingURL=redeemTicketsFetcher.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"redeemTicketsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/doubleup/redeemTicketsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,gFAA6E;AAC7E,2CAA2D;AAG3D,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,OAAO,CAAiB,4BAAgB,EAAE;QACpE,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,GAAG;KACzB,CAAC,CAAC;IACH,IAAI,CAAC,OAAO;QAAE,OAAO,EAAE,CAAC;IAExB,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,GAAG,EAAE,sBAAU,CAAC,CAAC;IACvE,MAAM,eAAe,GAAG,eAAe,CAAC,kBAAkB,CAAC;QACzD,KAAK,EAAE,eAAe;KACvB,CAAC,CAAC;IACH,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,IAAI,MAAM,CAAC,KAAK,KAAK,KAAK;YAAE,SAAS;QACrC,eAAe,CAAC,QAAQ,CAAC;YACvB,OAAO,EAAE,MAAM,CAAC,IAAI;YACpB,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,UAAU,EAAE;gBACV,WAAW,EAAE,MAAM,CAAC,SAAS;gBAC7B,IAAI,EAAE,CAAC,kBAAkB,CAAC;aAC3B;SACF,CAAC,CAAC;IACL,CAAC;IAED,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,gBAAgB;IACjC,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/// <reference types="node" />
|
2
|
+
import { BeetStruct } from '@metaplex-foundation/beet';
|
3
|
+
import { PublicKey } from '@solana/web3.js';
|
4
|
+
import BigNumber from 'bignumber.js';
|
5
|
+
export declare enum State {
|
6
|
+
Uninitialized = 0,
|
7
|
+
StakePool = 1,
|
8
|
+
InactiveStakePool = 2,
|
9
|
+
StakeAccount = 3
|
10
|
+
}
|
11
|
+
export type Liquidity = {
|
12
|
+
buffer: Buffer;
|
13
|
+
state: State;
|
14
|
+
mint: PublicKey;
|
15
|
+
owner: PublicKey;
|
16
|
+
amountDeposited: BigNumber;
|
17
|
+
space: number[];
|
18
|
+
};
|
19
|
+
export declare const liquidityStruct: BeetStruct<Liquidity, Partial<Liquidity>>;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.liquidityStruct = exports.State = 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 State;
|
8
|
+
(function (State) {
|
9
|
+
State[State["Uninitialized"] = 0] = "Uninitialized";
|
10
|
+
State[State["StakePool"] = 1] = "StakePool";
|
11
|
+
State[State["InactiveStakePool"] = 2] = "InactiveStakePool";
|
12
|
+
State[State["StakeAccount"] = 3] = "StakeAccount";
|
13
|
+
})(State || (exports.State = State = {}));
|
14
|
+
exports.liquidityStruct = new beet_1.BeetStruct([
|
15
|
+
['buffer', (0, solana_1.blob)(8)],
|
16
|
+
['state', beet_1.u8],
|
17
|
+
['mint', beet_solana_1.publicKey],
|
18
|
+
['owner', beet_solana_1.publicKey],
|
19
|
+
['amountDeposited', solana_1.u64],
|
20
|
+
['space', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 128)],
|
21
|
+
], (args) => args);
|
22
|
+
//# sourceMappingURL=structs.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/doubleup/structs.ts"],"names":[],"mappings":";;;AAAA,oDAImC;AACnC,kEAA6D;AAG7D,+CAA+C;AAE/C,IAAY,KAKX;AALD,WAAY,KAAK;IACf,mDAAa,CAAA;IACb,2CAAS,CAAA;IACT,2DAAiB,CAAA;IACjB,iDAAY,CAAA;AACd,CAAC,EALW,KAAK,qBAAL,KAAK,QAKhB;AAWY,QAAA,eAAe,GAAG,IAAI,iBAAU,CAC3C;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,OAAO,EAAE,SAAE,CAAC;IACb,CAAC,MAAM,EAAE,uBAAS,CAAC;IACnB,CAAC,OAAO,EAAE,uBAAS,CAAC;IACpB,CAAC,iBAAiB,EAAE,YAAG,CAAC;IACxB,CAAC,OAAO,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,GAAG,CAAC,CAAC;CAC1C,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAiB,CAC5B,CAAC"}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { ID } from '../../utils/sui/types/id';
|
2
|
+
export type Receipt = {
|
3
|
+
id: ID;
|
4
|
+
amountDeposited: string;
|
5
|
+
};
|
6
|
+
export type House = {
|
7
|
+
house_pipe_debt: ValueFields;
|
8
|
+
house_pool: string;
|
9
|
+
id: ID;
|
10
|
+
max_supply: string;
|
11
|
+
pipe_debt: ValueFields;
|
12
|
+
pool: string;
|
13
|
+
supply: ValueFields;
|
14
|
+
voucher_pool: string;
|
15
|
+
};
|
16
|
+
export type ValueFields = {
|
17
|
+
fields: Value;
|
18
|
+
type: string;
|
19
|
+
};
|
20
|
+
export type Value = {
|
21
|
+
value: string;
|
22
|
+
};
|
23
|
+
export type RedeemRequest = {
|
24
|
+
created_at: string;
|
25
|
+
id: ID;
|
26
|
+
s_coin: SCoin;
|
27
|
+
sender: string;
|
28
|
+
};
|
29
|
+
export type SCoin = {
|
30
|
+
fields: BalanceFields;
|
31
|
+
type: string;
|
32
|
+
};
|
33
|
+
export type BalanceFields = {
|
34
|
+
balance: string;
|
35
|
+
id: ID;
|
36
|
+
};
|
37
|
+
export type RedeemTicket = {
|
38
|
+
owner: string;
|
39
|
+
amount: string;
|
40
|
+
mint: string;
|
41
|
+
lockUntil: number;
|
42
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/doubleup/types.ts"],"names":[],"mappings":""}
|
@@ -4,4 +4,4 @@ export declare const platformId = "moonwalk";
|
|
4
4
|
export declare const platform: Platform;
|
5
5
|
export declare const gamesCacheId = "games";
|
6
6
|
export declare const programId: PublicKey;
|
7
|
-
export declare const
|
7
|
+
export declare const newApi = "https://data.moonwalk.fit/api/v1/users/tokens/";
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.newApi = exports.programId = exports.gamesCacheId = exports.platform = exports.platformId = void 0;
|
4
4
|
const web3_js_1 = require("@solana/web3.js");
|
5
5
|
exports.platformId = 'moonwalk';
|
6
6
|
exports.platform = {
|
@@ -13,5 +13,5 @@ exports.platform = {
|
|
13
13
|
};
|
14
14
|
exports.gamesCacheId = `games`;
|
15
15
|
exports.programId = new web3_js_1.PublicKey('FitAFk15vtx2PBjfr7QTnefaHRx6HwajRiZMt1DdSSKU');
|
16
|
-
exports.
|
16
|
+
exports.newApi = 'https://data.moonwalk.fit/api/v1/users/tokens/';
|
17
17
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/moonwalk/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,iDAAiD;IACxD,OAAO,EAAE,2BAA2B;IACpC,OAAO,EAAE,qCAAqC;IAC9C,qEAAqE;CACtE,CAAC;AACW,QAAA,YAAY,GAAG,OAAO,CAAC;AACvB,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/moonwalk/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,iDAAiD;IACxD,OAAO,EAAE,2BAA2B;IACpC,OAAO,EAAE,qCAAqC;IAC9C,qEAAqE;CACtE,CAAC;AACW,QAAA,YAAY,GAAG,OAAO,CAAC;AACvB,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,MAAM,GAAG,gDAAgD,CAAC"}
|
@@ -16,9 +16,21 @@ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
|
16
16
|
const axios_1 = __importDefault(require("axios"));
|
17
17
|
const constants_1 = require("./constants");
|
18
18
|
const ElementRegistry_1 = require("../../utils/elementbuilder/ElementRegistry");
|
19
|
+
const solana_1 = require("../../utils/solana");
|
20
|
+
const apiKey = process.env['MOONWALK_API_BEARER'];
|
21
|
+
const tokenMap = new Map([
|
22
|
+
['usdc', solana_1.usdcSolanaMint],
|
23
|
+
['sol', portfolio_core_1.solanaNativeWrappedAddress],
|
24
|
+
['bonk', 'DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263'],
|
25
|
+
]);
|
19
26
|
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
20
|
-
|
27
|
+
if (!apiKey)
|
28
|
+
return [];
|
29
|
+
const apiResponse = yield axios_1.default.get(constants_1.newApi + owner, {
|
21
30
|
timeout: 3000,
|
31
|
+
headers: {
|
32
|
+
'X-API-KEY': apiKey,
|
33
|
+
},
|
22
34
|
});
|
23
35
|
if (!apiResponse.data)
|
24
36
|
return [];
|
@@ -28,18 +40,29 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
28
40
|
label: 'Deposit',
|
29
41
|
name: game.game,
|
30
42
|
});
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
+
const token = tokenMap.get(game.token);
|
44
|
+
if (token) {
|
45
|
+
element.addAsset({
|
46
|
+
address: token,
|
47
|
+
amount: game.claimable,
|
48
|
+
alreadyShifted: true,
|
49
|
+
attributes: { isClaimable: true },
|
50
|
+
});
|
51
|
+
element.addAsset({
|
52
|
+
address: token,
|
53
|
+
amount: game.locked,
|
54
|
+
alreadyShifted: true,
|
55
|
+
attributes: { lockedUntil: game.end * 1000 },
|
56
|
+
});
|
57
|
+
}
|
58
|
+
for (const sponsor of game.sponsors) {
|
59
|
+
element.addAsset({
|
60
|
+
address: sponsor.token,
|
61
|
+
amount: sponsor.claimable,
|
62
|
+
alreadyShifted: true,
|
63
|
+
attributes: { isClaimable: true },
|
64
|
+
});
|
65
|
+
}
|
43
66
|
}
|
44
67
|
return registry.getElements(cache);
|
45
68
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"gamesFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/moonwalk/gamesFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+
|
1
|
+
{"version":3,"file":"gamesFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/moonwalk/gamesFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAGoC;AACpC,kDAA6C;AAE7C,2CAAiD;AAGjD,gFAA6E;AAC7E,+CAAoD;AAEpD,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;AAElD,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC;IACvB,CAAC,MAAM,EAAE,uBAAc,CAAC;IACxB,CAAC,KAAK,EAAE,2CAA0B,CAAC;IACnC,CAAC,MAAM,EAAE,8CAA8C,CAAC;CACzD,CAAC,CAAC;AAEH,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,IAAI,CAAC,MAAM;QAAE,OAAO,EAAE,CAAC;IAEvB,MAAM,WAAW,GAAyB,MAAM,eAAK,CAAC,GAAG,CAAC,kBAAM,GAAG,KAAK,EAAE;QACxE,OAAO,EAAE,IAAI;QACb,OAAO,EAAE;YACP,WAAW,EAAE,MAAM;SACpB;KACF,CAAC,CAAC;IACH,IAAI,CAAC,WAAW,CAAC,IAAI;QAAE,OAAO,EAAE,CAAC;IAEjC,MAAM,QAAQ,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM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AC"}
|
@@ -5,15 +5,6 @@ export declare const reservesPrefix = "navi";
|
|
5
5
|
export declare const reservesKey = "reserves";
|
6
6
|
export declare const reserveParentId = "0xe6d4c6610b86ce7735ea754596d71d72d10c7980b5052fc3c8cdf8d09fea9b4b";
|
7
7
|
export declare const rateFactor = 27;
|
8
|
-
export declare const poolsInfos: {
|
9
|
-
id: number;
|
10
|
-
name: string;
|
11
|
-
type: string;
|
12
|
-
reserveData: string;
|
13
|
-
pool: string;
|
14
|
-
borrowBalanceParentId: string;
|
15
|
-
supplyBalanceParentId: string;
|
16
|
-
}[];
|
17
8
|
export declare const rewardsFunds: {
|
18
9
|
f975bc2d4cca10e3ace8887e20afd77b46c383b4465eac694c4688344955dea4: {
|
19
10
|
coinType: string;
|
@@ -1,7 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.incentiveStorageObjectId = exports.incentiveObjectId = exports.incentiveFunction = exports.rewardsFunds = exports.
|
4
|
-
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
3
|
+
exports.incentiveStorageObjectId = exports.incentiveObjectId = exports.incentiveFunction = exports.rewardsFunds = exports.rateFactor = exports.reserveParentId = exports.reservesKey = exports.reservesPrefix = exports.platform = exports.platformId = void 0;
|
5
4
|
exports.platformId = 'navi';
|
6
5
|
exports.platform = {
|
7
6
|
id: exports.platformId,
|
@@ -15,53 +14,6 @@ exports.reservesPrefix = exports.platformId;
|
|
15
14
|
exports.reservesKey = 'reserves';
|
16
15
|
exports.reserveParentId = '0xe6d4c6610b86ce7735ea754596d71d72d10c7980b5052fc3c8cdf8d09fea9b4b';
|
17
16
|
exports.rateFactor = 27;
|
18
|
-
exports.poolsInfos = [
|
19
|
-
{
|
20
|
-
id: 0,
|
21
|
-
name: 'sui',
|
22
|
-
type: portfolio_core_1.suiNativeAddress,
|
23
|
-
reserveData: '0xab644b5fd11aa11e930d1c7bc903ef609a9feaf9ffe1b23532ad8441854fbfaf',
|
24
|
-
pool: '0x96df0fce3c471489f4debaaa762cf960b3d97820bd1f3f025ff8190730e958c5',
|
25
|
-
borrowBalanceParentId: '0xe7ff0daa9d090727210abe6a8b6c0c5cd483f3692a10610386e4dc9c57871ba7',
|
26
|
-
supplyBalanceParentId: '0x589c83af4b035a3bc64c40d9011397b539b97ea47edf7be8f33d643606bf96f8',
|
27
|
-
},
|
28
|
-
{
|
29
|
-
id: 1,
|
30
|
-
name: 'usdc',
|
31
|
-
type: '0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN',
|
32
|
-
reserveData: '0xeb3903f7748ace73429bd52a70fff278aac1725d3b58afa781f25ce3450ac203',
|
33
|
-
pool: '0xa02a98f9c88db51c6f5efaaf2261c81f34dd56d86073387e0ef1805ca22e39c8',
|
34
|
-
borrowBalanceParentId: '0x8a3aaa817a811131c624658f6e77cba04ab5829293d2c49c1a9cce8ac9c8dec4',
|
35
|
-
supplyBalanceParentId: '0x8d0a4467806458052d577c8cd2be6031e972f2b8f5f77fce98aa12cd85330da9',
|
36
|
-
},
|
37
|
-
{
|
38
|
-
id: 2,
|
39
|
-
name: 'usdt',
|
40
|
-
type: '0xc060006111016b8a020ad5b33834984a437aaa7d3c74c18e09a95d48aceab08c::coin::COIN',
|
41
|
-
reserveData: '0xb8c5eab02a0202f638958cc79a69a2d30055565caad1684b3c8bbca3bddcb322',
|
42
|
-
pool: '',
|
43
|
-
borrowBalanceParentId: '0xc14d8292a7d69ae31164bafab7ca8a5bfda11f998540fe976a674ed0673e448f',
|
44
|
-
supplyBalanceParentId: '0x7e2a49ff9d2edd875f82b76a9b21e2a5a098e7130abfd510a203b6ea08ab9257',
|
45
|
-
},
|
46
|
-
{
|
47
|
-
id: 3,
|
48
|
-
name: 'weth',
|
49
|
-
type: '0xaf8cd5edc19c4512f4259f0bee101a40d41ebed738ade5874359610ef8eeced5::coin::COIN',
|
50
|
-
pool: '0x71b9f6e822c48ce827bceadce82201d6a7559f7b0350ed1daa1dc2ba3ac41b56',
|
51
|
-
reserveData: '0xafecf4b57899d377cc8c9de75854c68925d9f512d0c47150ca52a0d3a442b735',
|
52
|
-
borrowBalanceParentId: '0x7568d06a1b6ffc416a36c82791e3daf0e621cf19d4a2724fc6f74842661b6323',
|
53
|
-
supplyBalanceParentId: '0xa668905b1ad445a3159b4d29b1181c4a62d864861b463dd9106cc0d97ffe8f7f',
|
54
|
-
},
|
55
|
-
{
|
56
|
-
id: 4,
|
57
|
-
name: 'cetus',
|
58
|
-
type: '0x06864a6f921804860930db6ddbe2e16acdf8504495ea7481637a1c8b9a8fe54b::cetus::CETUS',
|
59
|
-
pool: '0x71b9f6e822c48ce827bceadce82201d6a7559f7b0350ed1daa1dc2ba3ac41b56',
|
60
|
-
reserveData: '0x66a807c06212537fe46aa6719a00e4fa1e85a932d0b53ce7c4b1041983645133',
|
61
|
-
borrowBalanceParentId: '0x4c3da45ffff6432b4592a39cdb3ce12f4a28034cbcb804bb071facc81fdd923d',
|
62
|
-
supplyBalanceParentId: '0x6adc72faf2a9a15a583c9fb04f457c6a5f0b456bc9b4832413a131dfd4faddae',
|
63
|
-
},
|
64
|
-
];
|
65
17
|
exports.rewardsFunds = {
|
66
18
|
f975bc2d4cca10e3ace8887e20afd77b46c383b4465eac694c4688344955dea4: {
|
67
19
|
coinType: '0x2::sui::SUI',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/navi/constants.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/navi/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,MAAM,CAAC;AACpB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,qCAAqC,kBAAU,OAAO;IAC7D,WAAW,EAAE,sBAAsB;IACnC,OAAO,EAAE,8BAA8B;IACvC,OAAO,EAAE,mCAAmC;CAC7C,CAAC;AAEW,QAAA,cAAc,GAAG,kBAAU,CAAC;AAC5B,QAAA,WAAW,GAAG,UAAU,CAAC;AAEzB,QAAA,eAAe,GAC1B,oEAAoE,CAAC;AAE1D,QAAA,UAAU,GAAG,EAAE,CAAC;AAEhB,QAAA,YAAY,GAAG;IAC1B,gEAAgE,EAAE;QAChE,QAAQ,EAAE,eAAe;QACzB,QAAQ,EAAE,CAAC;KACZ;IACD,gEAAgE,EAAE;QAChE,QAAQ,EACN,gFAAgF;QAClF,QAAQ,EAAE,CAAC;KACZ;IACD,gEAAgE,EAAE;QAChE,QAAQ,EACN,kFAAkF;QACpF,QAAQ,EAAE,CAAC;KACZ;IACD,kEAAkE,EAAE;QAClE,QAAQ,EACN,gFAAgF;QAClF,QAAQ,EAAE,CAAC;KACZ;CACF,CAAC;AAEW,QAAA,iBAAiB,GAC5B,0HAA0H,CAAC;AAChH,QAAA,iBAAiB,GAC5B,oEAAoE,CAAC;AAC1D,QAAA,wBAAwB,GACnC,oEAAoE,CAAC"}
|
@@ -61,6 +61,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
61
61
|
isClaimed: false,
|
62
62
|
label: 'SEND',
|
63
63
|
address: constants_1.sendMint,
|
64
|
+
imageUri: constants_1.platform.image,
|
64
65
|
},
|
65
66
|
{
|
66
67
|
amount: nftsAllocation.collectionsAllocation,
|
@@ -106,7 +107,7 @@ exports.airdropFetcher = {
|
|
106
107
|
// );
|
107
108
|
function getEarlyUserAllocation(owner) {
|
108
109
|
if (earlyUsers_json_1.default.includes(owner))
|
109
|
-
return
|
110
|
+
return 512;
|
110
111
|
return 0;
|
111
112
|
}
|
112
113
|
function getBluefinLeagueAllocation(owner) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/suilend/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,gEAAqC;AACrC,yDAK8B;AAC9B,2CASqB;AACrB,qEAAkE;AAQlE,iDAAmD;AAEnD,uCAAgD;AAChD,iDAAgD;AAChD,wEAA2C;AAC3C,gFAAmD;AACnD,qEAAgF;AAChF,uFAAoF;AAEpF,MAAM,mBAAmB,GAAwB,IAAI,GAAG,CAAC;IACvD;QACE,sFAAsF;QACtF,GAAG;KACJ;IACD;QACE,0FAA0F;QAC1F,EAAE;KACH;IACD;QACE,gFAAgF;QAChF,IAAI;KACL;IACD;QACE,gFAAgF;QAChF,IAAI;KACL;IACD;QACE,wGAAwG;QACxG,IAAI;KACL;CACF,CAAC,CAAC;AAEH,MAAM,WAAW,GACf,qGAAqG,CAAC;AAExG,MAAM,QAAQ,GAA2B,CACvC,KAAa,EACb,KAAY,EACZ,EAAE;IACF,MAAM,CAAC,gBAAgB,EAAE,cAAc,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QAC3D,mBAAmB,CAAC,KAAK,EAAE,KAAK,CAAC;QACjC,iBAAiB,CAAC,KAAK,CAAC;KACzB,CAAC,CAAC;IACH,OAAO,IAAA,8BAAa,EAAC;QACnB,OAAO,EAAE,0BAAc;QACvB,KAAK,EAAE;YACL;gBACE,MAAM,EAAE,gBAAgB;gBACxB,SAAS,EAAE,KAAK;gBAChB,KAAK,EAAE,MAAM;gBACb,OAAO,EAAE,oBAAQ;
|
1
|
+
{"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/suilend/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,gEAAqC;AACrC,yDAK8B;AAC9B,2CASqB;AACrB,qEAAkE;AAQlE,iDAAmD;AAEnD,uCAAgD;AAChD,iDAAgD;AAChD,wEAA2C;AAC3C,gFAAmD;AACnD,qEAAgF;AAChF,uFAAoF;AAEpF,MAAM,mBAAmB,GAAwB,I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f9f7e34cc30037713db42",
|
3390
3390
|
"0x46dd913496a0c2f1f150cf5dce8be318d11b61e54b391849a66b3a9630356f25",
|
3391
|
-
"0x81c08ebc16ff5e1780160e5b04ee4f34ebe1b9d2e8c757fd9925a79b88db0196",
|
3392
3391
|
"0xcfcf01a1230fb29d81798da3bbc6a662fbcfe15dadfc8b1a7b3a6f65590621eb",
|
3393
3392
|
"0x97db74c8d423b83491fd146fd928f166d9452381221e34ff78461211b9142653",
|
3394
3393
|
"0x3a0383b9176bef69f2d26dc49207fb5929c32fa68a2eab9dbbf235463ac7a8ee",
|
@@ -3896,5 +3895,7 @@
|
|
3896
3895
|
"0xb95aac83b6c195efb2ac43c21911198c4621df7688239240c71522513b90153c",
|
3897
3896
|
"0x0cb2ca1264e021004587e85ceeef67d845c436ab5474c09dfcc652a76c5fc7f5",
|
3898
3897
|
"0x1c8ecaf8d6b056fa01b3559974989bdb92e36ce988130db73344910e37fba11c",
|
3899
|
-
"0xca0a5addb6fae94b9d90d33b7bca73cfc85f88e8b161640a514a413d2a428282"
|
3898
|
+
"0xca0a5addb6fae94b9d90d33b7bca73cfc85f88e8b161640a514a413d2a428282",
|
3899
|
+
"0xbfb62de65c4f6bdf58feb6a1585dcaf3bddcd5efdc96e00f46f6fd141e57bba0",
|
3900
|
+
"0x502c6426df20358f4bb240d66ba58bb6cee1f55ea53756d97b689e8889c3d06e"
|
3900
3901
|
]
|
@@ -54,30 +54,30 @@ function sushiV3PairToUniV2(pair) {
|
|
54
54
|
}
|
55
55
|
function getV3PairsAddresses(url, length = 300) {
|
56
56
|
return __awaiter(this, void 0, void 0, function* () {
|
57
|
-
const query = (0, graphql_request_1.gql) `
|
58
|
-
{
|
59
|
-
pools(
|
60
|
-
orderBy: totalValueLockedUSD
|
61
|
-
first: ${length}
|
62
|
-
orderDirection: desc
|
63
|
-
where: { volumeUSD_not: "0", liquidity_not: "0" }
|
64
|
-
) {
|
65
|
-
id
|
66
|
-
token0Price
|
67
|
-
token1Price
|
68
|
-
liquidity
|
69
|
-
token0 {
|
70
|
-
id
|
71
|
-
totalSupply
|
72
|
-
decimals
|
73
|
-
}
|
74
|
-
token1 {
|
75
|
-
id
|
76
|
-
totalSupply
|
77
|
-
decimals
|
78
|
-
}
|
79
|
-
}
|
80
|
-
}
|
57
|
+
const query = (0, graphql_request_1.gql) `
|
58
|
+
{
|
59
|
+
pools(
|
60
|
+
orderBy: totalValueLockedUSD
|
61
|
+
first: ${length}
|
62
|
+
orderDirection: desc
|
63
|
+
where: { volumeUSD_not: "0", liquidity_not: "0" }
|
64
|
+
) {
|
65
|
+
id
|
66
|
+
token0Price
|
67
|
+
token1Price
|
68
|
+
liquidity
|
69
|
+
token0 {
|
70
|
+
id
|
71
|
+
totalSupply
|
72
|
+
decimals
|
73
|
+
}
|
74
|
+
token1 {
|
75
|
+
id
|
76
|
+
totalSupply
|
77
|
+
decimals
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
81
|
`;
|
82
82
|
const res = yield (0, graphql_request_1.default)(url, query);
|
83
83
|
const pools = res.pools;
|
@@ -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;
|
@@ -42,20 +42,20 @@ const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/token
|
|
42
42
|
const clients_1 = require("../../utils/clients");
|
43
43
|
const getMultipleAccountsInfoSafe_1 = require("../../utils/solana/getMultipleAccountsInfoSafe");
|
44
44
|
const helpers_1 = require("./helpers");
|
45
|
-
const query = (0, graphql_request_1.gql) `
|
46
|
-
query GetAirdropFinalFrontend($authority: String!) {
|
47
|
-
getAirdropFinalFrontend(authority: $authority) {
|
48
|
-
authority
|
49
|
-
community_allocation
|
50
|
-
eligibility
|
51
|
-
main_allocation
|
52
|
-
og_allocation
|
53
|
-
s1_allocation
|
54
|
-
s2_allocation
|
55
|
-
total_allocation
|
56
|
-
__typename
|
57
|
-
}
|
58
|
-
}
|
45
|
+
const query = (0, graphql_request_1.gql) `
|
46
|
+
query GetAirdropFinalFrontend($authority: String!) {
|
47
|
+
getAirdropFinalFrontend(authority: $authority) {
|
48
|
+
authority
|
49
|
+
community_allocation
|
50
|
+
eligibility
|
51
|
+
main_allocation
|
52
|
+
og_allocation
|
53
|
+
s1_allocation
|
54
|
+
s2_allocation
|
55
|
+
total_allocation
|
56
|
+
__typename
|
57
|
+
}
|
58
|
+
}
|
59
59
|
`;
|
60
60
|
const networkId = portfolio_core_1.NetworkId.solana;
|
61
61
|
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
@@ -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
|
@@ -1,10 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
function getQueryBalanceByOwner(owner) {
|
4
|
-
return JSON.parse(`{
|
5
|
-
"balance": {
|
6
|
-
"address": "${owner}"
|
7
|
-
}
|
4
|
+
return JSON.parse(`{
|
5
|
+
"balance": {
|
6
|
+
"address": "${owner}"
|
7
|
+
}
|
8
8
|
}`);
|
9
9
|
}
|
10
10
|
exports.default = getQueryBalanceByOwner;
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ordersFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/deepbook/ordersFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAEvD,2CAAoE;AAEpE,iDAAmD;AACnD,uCAA4C;AAE5C,gFAA6E;AAC7E,uFAAoF;AAEpF,MAAM,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Aa,EAAE,KAAK,EAAE;QACxC,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,GAAG;KACzB,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
File without changes
|