@sonarwatch/portfolio-plugins 0.14.145 → 0.14.152
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 +2232 -2204
- package/README.md +3 -3
- package/package.json +1 -1
- package/src/plugins/allbridge/constants.d.ts +0 -6
- package/src/plugins/allbridge/constants.js +1 -9
- package/src/plugins/allbridge/constants.js.map +1 -1
- package/src/plugins/allbridge/helpers.d.ts +1 -1
- package/src/plugins/allbridge/helpers.js +1 -3
- package/src/plugins/allbridge/helpers.js.map +1 -1
- package/src/plugins/allbridge/positionsFetcher.js +2 -1
- package/src/plugins/allbridge/positionsFetcher.js.map +1 -1
- package/src/plugins/allbridge/structs.d.ts +13 -0
- package/src/plugins/allbridge/structs.js +14 -0
- package/src/plugins/allbridge/structs.js.map +1 -0
- package/src/plugins/allbridge/types.d.ts +0 -6
- package/src/plugins/balancer/helpers/pools.js +21 -21
- package/src/plugins/bonfida/constants.js +1 -1
- package/src/plugins/bonfida/constants.js.map +1 -1
- package/src/plugins/divvy/constants.d.ts +0 -2
- package/src/plugins/divvy/constants.js +1 -7
- package/src/plugins/divvy/constants.js.map +1 -1
- package/src/plugins/divvy/houseJob.js +6 -3
- package/src/plugins/divvy/houseJob.js.map +1 -1
- package/src/plugins/divvy/housePoolFetcher.js +9 -11
- package/src/plugins/divvy/housePoolFetcher.js.map +1 -1
- package/src/plugins/divvy/stakingFetcher.js +7 -12
- package/src/plugins/divvy/stakingFetcher.js.map +1 -1
- package/src/plugins/divvy/structs.d.ts +57 -0
- package/src/plugins/divvy/structs.js +57 -0
- package/src/plugins/divvy/structs.js.map +1 -0
- package/src/plugins/elemental/constants.d.ts +4 -2
- package/src/plugins/elemental/constants.js +3 -7
- package/src/plugins/elemental/constants.js.map +1 -1
- package/src/plugins/elemental/filters.d.ts +0 -1
- package/src/plugins/elemental/filters.js +1 -6
- package/src/plugins/elemental/filters.js.map +1 -1
- package/src/plugins/elemental/helpers.js +2 -2
- package/src/plugins/elemental/helpers.js.map +1 -1
- package/src/plugins/elemental/poolsJob.js +4 -4
- package/src/plugins/elemental/poolsJob.js.map +1 -1
- package/src/plugins/ensofi/constants.d.ts +4 -2
- package/src/plugins/ensofi/constants.js +3 -7
- package/src/plugins/ensofi/constants.js.map +1 -1
- package/src/plugins/ensofi/idl.d.ts +149 -6
- package/src/plugins/ensofi/idl.js +1074 -61
- package/src/plugins/ensofi/idl.js.map +1 -1
- package/src/plugins/ensofi/solanaLoansFetcher.js +23 -37
- package/src/plugins/ensofi/solanaLoansFetcher.js.map +1 -1
- package/src/plugins/ensofi/structs.d.ts +58 -0
- package/src/plugins/ensofi/structs.js +60 -0
- package/src/plugins/ensofi/structs.js.map +1 -0
- package/src/plugins/jupiter/governance/constants.js +3 -3
- package/src/plugins/jupiter/governance/constants.js.map +1 -1
- package/src/plugins/jupiter/launchpad/constants.d.ts +1 -0
- package/src/plugins/jupiter/launchpad/constants.js +8 -7
- package/src/plugins/jupiter/launchpad/constants.js.map +1 -1
- package/src/plugins/jupiter/pricingJob.js +2 -1
- package/src/plugins/jupiter/pricingJob.js.map +1 -1
- package/src/plugins/orca/getWhirlpoolPositions.js +7 -7
- package/src/plugins/orca/getWhirlpoolPositions.js.map +1 -1
- package/src/plugins/orca/types.d.ts +2 -0
- package/src/plugins/picasso/constants.d.ts +0 -2
- package/src/plugins/picasso/constants.js +1 -7
- package/src/plugins/picasso/constants.js.map +1 -1
- package/src/plugins/picasso/helpers.js +7 -4
- package/src/plugins/picasso/helpers.js.map +1 -1
- package/src/plugins/picasso/structs.d.ts +39 -0
- package/src/plugins/picasso/structs.js +37 -0
- package/src/plugins/picasso/structs.js.map +1 -0
- package/src/plugins/picasso/unstakingNftsJob.js +2 -1
- package/src/plugins/picasso/unstakingNftsJob.js.map +1 -1
- package/src/plugins/picasso/unstakingPositionsFetcher.js +4 -4
- package/src/plugins/picasso/unstakingPositionsFetcher.js.map +1 -1
- package/src/plugins/ratex/getPool.d.ts +1 -2
- package/src/plugins/ratex/getPool.js +4 -3
- package/src/plugins/ratex/getPool.js.map +1 -1
- package/src/plugins/ratex/helpers.d.ts +7 -4
- package/src/plugins/ratex/helpers.js +11 -31
- package/src/plugins/ratex/helpers.js.map +1 -1
- package/src/plugins/ratex/marketsJob.js +4 -9
- package/src/plugins/ratex/marketsJob.js.map +1 -1
- package/src/plugins/ratex/positionsFetcher.js +2 -2
- package/src/plugins/ratex/positionsFetcher.js.map +1 -1
- package/src/plugins/ratex/structs.d.ts +211 -0
- package/src/plugins/ratex/structs.js +203 -0
- package/src/plugins/ratex/structs.js.map +1 -0
- package/src/plugins/ratex/types.d.ts +5 -76
- package/src/plugins/raydium/ammV2ApiJob.js +24 -0
- package/src/plugins/raydium/ammV2ApiJob.js.map +1 -1
- package/src/plugins/raydium/constants.d.ts +1 -0
- package/src/plugins/raydium/constants.js +2 -1
- package/src/plugins/raydium/constants.js.map +1 -1
- package/src/plugins/raydium/getRaydiumCLMMPositions.js +9 -5
- package/src/plugins/raydium/getRaydiumCLMMPositions.js.map +1 -1
- package/src/plugins/raydium/types.d.ts +14 -4
- package/src/plugins/sanctum/s1AirdropFetcher.js +2 -2
- package/src/plugins/sanctum/s1AirdropFetcher.js.map +1 -1
- package/src/plugins/sharky/collectionsJob.js +8 -9
- package/src/plugins/sharky/collectionsJob.js.map +1 -1
- package/src/plugins/sharky/constants.d.ts +0 -2
- package/src/plugins/sharky/constants.js +1 -7
- package/src/plugins/sharky/constants.js.map +1 -1
- package/src/plugins/sharky/loansFetcher.js +25 -19
- package/src/plugins/sharky/loansFetcher.js.map +1 -1
- package/src/plugins/sharky/structs.d.ts +96 -0
- package/src/plugins/sharky/structs.js +103 -0
- package/src/plugins/sharky/structs.js.map +1 -0
- package/src/plugins/sharky/types.d.ts +0 -15
- package/src/plugins/sharky/types.js +0 -8
- package/src/plugins/sharky/types.js.map +1 -1
- package/src/plugins/stabble/constants.d.ts +0 -3
- package/src/plugins/stabble/constants.js +1 -13
- package/src/plugins/stabble/constants.js.map +1 -1
- package/src/plugins/stabble/poolsJob.js +14 -9
- package/src/plugins/stabble/poolsJob.js.map +1 -1
- package/src/plugins/stabble/structs.d.ts +43 -0
- package/src/plugins/stabble/structs.js +42 -0
- package/src/plugins/stabble/structs.js.map +1 -0
- package/src/plugins/sushiswap/helpers.js +24 -24
- package/src/plugins/uniswap-v2/helpers.js +22 -22
- package/src/plugins/zeta/constants.d.ts +0 -2
- package/src/plugins/zeta/constants.js +1 -7
- package/src/plugins/zeta/constants.js.map +1 -1
- package/src/plugins/zeta/stakingFetcher.js +6 -3
- package/src/plugins/zeta/stakingFetcher.js.map +1 -1
- package/src/plugins/zeta/structs.d.ts +24 -1
- package/src/plugins/zeta/structs.js +30 -1
- package/src/plugins/zeta/structs.js.map +1 -1
- package/src/plugins/zeta/types.d.ts +0 -26
- package/src/plugins/zeta/types.js +0 -7
- package/src/plugins/zeta/types.js.map +1 -1
- package/src/utils/sei/constants.js +8 -8
- package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
- package/src/utils/solana/beets/ParsedGpa.d.ts +1 -0
- package/src/utils/solana/beets/ParsedGpa.js +9 -0
- package/src/utils/solana/beets/ParsedGpa.js.map +1 -1
- package/src/plugins/divvy/types.d.ts +0 -28
- package/src/plugins/divvy/types.js +0 -3
- package/src/plugins/divvy/types.js.map +0 -1
- package/src/plugins/picasso/types.d.ts +0 -17
- package/src/plugins/picasso/types.js +0 -3
- package/src/plugins/picasso/types.js.map +0 -1
- package/src/plugins/ratex/idl.json +0 -8806
- package/src/plugins/sharky/filters.d.ts +0 -8
- package/src/plugins/sharky/filters.js +0 -43
- package/src/plugins/sharky/filters.js.map +0 -1
- package/src/plugins/stabble/filters.d.ts +0 -5
- package/src/plugins/stabble/filters.js +0 -20
- package/src/plugins/stabble/filters.js.map +0 -1
- package/src/plugins/stabble/types.d.ts +0 -40
- package/src/plugins/stabble/types.js +0 -3
- package/src/plugins/stabble/types.js.map +0 -1
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.claimStatusStruct = exports.crossMarginAccountStruct = exports.productLedgerStruct = exports.orderStateStruct = exports.positionStruct = exports.anchorDecimalStruct = exports.MarginAccountType = void 0;
|
3
|
+
exports.stakeAccountStruct = exports.claimStatusStruct = exports.crossMarginAccountStruct = exports.productLedgerStruct = exports.orderStateStruct = exports.positionStruct = exports.anchorDecimalStruct = exports.MarginAccountType = void 0;
|
4
4
|
const beet_1 = require("@metaplex-foundation/beet");
|
5
5
|
const beet_solana_1 = require("@metaplex-foundation/beet-solana");
|
6
6
|
const solana_1 = require("../../utils/solana");
|
@@ -55,4 +55,33 @@ exports.claimStatusStruct = new beet_1.BeetStruct([
|
|
55
55
|
['claimedAt', solana_1.u64],
|
56
56
|
['claimedAmount', solana_1.u64],
|
57
57
|
], (args) => args);
|
58
|
+
const stakeStateStruct = (0, beet_1.dataEnum)([
|
59
|
+
[
|
60
|
+
'Uninitialized',
|
61
|
+
new beet_1.FixableBeetArgsStruct([], 'StakeStateRecord["Uninitialized"]'),
|
62
|
+
],
|
63
|
+
[
|
64
|
+
'Vesting',
|
65
|
+
new beet_1.FixableBeetArgsStruct([
|
66
|
+
['stakeStartEpoch', beet_1.u32],
|
67
|
+
['lastClaimTs', solana_1.u64],
|
68
|
+
], 'StakeStateRecord["Vesting"]'),
|
69
|
+
],
|
70
|
+
[
|
71
|
+
'Locked',
|
72
|
+
new beet_1.FixableBeetArgsStruct([], 'StakeStateRecord["Locked"]'),
|
73
|
+
],
|
74
|
+
]);
|
75
|
+
exports.stakeAccountStruct = new beet_1.FixableBeetStruct([
|
76
|
+
['accountDiscriminator', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 8)],
|
77
|
+
['name', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 10)],
|
78
|
+
['vaultNonce', beet_1.u8],
|
79
|
+
['bitInUse', beet_1.u8],
|
80
|
+
['stakeState', stakeStateStruct],
|
81
|
+
['initialStakeAmount', solana_1.u64],
|
82
|
+
['amountStillStaked', solana_1.u64],
|
83
|
+
['amountClaimed', solana_1.u64],
|
84
|
+
['stakeDurationEpochs', beet_1.u32],
|
85
|
+
['authority', beet_solana_1.publicKey], // 49
|
86
|
+
], (args) => args);
|
58
87
|
//# sourceMappingURL=structs.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/structs.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/structs.ts"],"names":[],"mappings":";;;AAAA,oDAWmC;AACnC,kEAA6D;AAG7D,+CAAoD;AAEpD,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,6DAAM,CAAA;IACN,uEAAW,CAAA;AACb,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B;AAQY,QAAA,mBAAmB,GAAG,IAAI,iBAAU,CAC/C;IACE,CAAC,OAAO,EAAE,UAAG,CAAC;IACd,CAAC,IAAI,EAAE,UAAG,CAAC;IACX,CAAC,IAAI,EAAE,UAAG,CAAC;IACX,CAAC,KAAK,EAAE,UAAG,CAAC;CACb,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAqB,CAChC,CAAC;AAMW,QAAA,cAAc,GAAG,IAAI,iBAAU,CAC1C;IACE,CAAC,MAAM,EAAE,YAAG,CAAC;IACb,CAAC,cAAc,EAAE,YAAG,CAAC;CACtB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAgB,CAC3B,CAAC;AAOW,QAAA,gBAAgB,GAAG,IAAI,iBAAU,CAC5C;IACE,CAAC,eAAe,EAAE,YAAG,CAAC;IACtB,CAAC,eAAe,EAAE,YAAG,CAAC;IACtB,CAAC,eAAe,EAAE,YAAG,CAAC;CACvB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAA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reference types="node" />
|
2
1
|
export type GQLResponse = {
|
3
2
|
getAirdropFinalFrontend: GetAirdropFinalFrontend;
|
4
3
|
};
|
@@ -13,28 +12,3 @@ export type GetAirdropFinalFrontend = {
|
|
13
12
|
total_allocation: number;
|
14
13
|
__typename: string;
|
15
14
|
};
|
16
|
-
export declare enum StakeStateName {
|
17
|
-
Uninitialized = 0,
|
18
|
-
Vesting = 1,
|
19
|
-
Locked = 2
|
20
|
-
}
|
21
|
-
export type StakeState = {
|
22
|
-
vesting?: {
|
23
|
-
lastClaimTs: string;
|
24
|
-
stakeStartEpoch: number;
|
25
|
-
};
|
26
|
-
locked?: null;
|
27
|
-
uninitialized?: null;
|
28
|
-
};
|
29
|
-
export type StakeAccount = {
|
30
|
-
buffer: Buffer;
|
31
|
-
name: number[];
|
32
|
-
vaultNonce: number;
|
33
|
-
bitInUse: number;
|
34
|
-
stakeState: StakeState;
|
35
|
-
initialStakeAmount: string;
|
36
|
-
amountStillStaked: string;
|
37
|
-
amountClaimed: string;
|
38
|
-
stakeDurationEpochs: number;
|
39
|
-
authority: string;
|
40
|
-
};
|
@@ -1,10 +1,3 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.StakeStateName = void 0;
|
4
|
-
var StakeStateName;
|
5
|
-
(function (StakeStateName) {
|
6
|
-
StakeStateName[StakeStateName["Uninitialized"] = 0] = "Uninitialized";
|
7
|
-
StakeStateName[StakeStateName["Vesting"] = 1] = "Vesting";
|
8
|
-
StakeStateName[StakeStateName["Locked"] = 2] = "Locked";
|
9
|
-
})(StakeStateName || (exports.StakeStateName = StakeStateName = {}));
|
10
3
|
//# sourceMappingURL=types.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/types.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/types.ts"],"names":[],"mappings":""}
|
@@ -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;
|
@@ -11,6 +11,7 @@ export declare class ParsedGpa<T> {
|
|
11
11
|
static build<T>(connection: Connection, beets: GlobalBeetStruct<T>, programId: PublicKey): ParsedGpa<T>;
|
12
12
|
private constructor();
|
13
13
|
addInnerFilter(keys: string, val: T[keyof T] & NonNullable<unknown>): this;
|
14
|
+
addRawFilter(offset: number, bytes: string): this;
|
14
15
|
addFilter(key: keyof T & string, val: T[keyof T]): this;
|
15
16
|
addDataSizeFilter(size?: number): this;
|
16
17
|
run(): Promise<ParsedAccount<T>[]>;
|
@@ -25,6 +25,13 @@ class ParsedGpa {
|
|
25
25
|
this.gpaBuilder.addInnerFilter(keys, val);
|
26
26
|
return this;
|
27
27
|
}
|
28
|
+
addRawFilter(offset, bytes) {
|
29
|
+
if (this.gpaBuilder.config.filters == null) {
|
30
|
+
this.gpaBuilder.config.filters = [];
|
31
|
+
}
|
32
|
+
this.gpaBuilder.config.filters.push({ memcmp: { offset, bytes } });
|
33
|
+
return this;
|
34
|
+
}
|
28
35
|
addFilter(key, val) {
|
29
36
|
this.gpaBuilder.addFilter(key, val);
|
30
37
|
return this;
|
@@ -40,8 +47,10 @@ class ParsedGpa {
|
|
40
47
|
});
|
41
48
|
}
|
42
49
|
debug() {
|
50
|
+
/* eslint-disable no-console */
|
43
51
|
console.log(this.programId.toString());
|
44
52
|
console.log(this.gpaBuilder.config.filters);
|
53
|
+
/* eslint-enable no-console */
|
45
54
|
return this;
|
46
55
|
}
|
47
56
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ParsedGpa.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/utils/solana/beets/ParsedGpa.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kEAA8D;AAK9D,MAAa,SAAS;IAGpB,MAAM,CAAC,KAAK,CACV,UAAsB,EACtB,KAA0B,EAC1B,SAAoB;QAEpB,OAAO,IAAI,SAAS,CAAI,UAAU,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;IACxD,CAAC;IAED,YACqB,UAAsB,EAC/B,SAAoB,EACpB,KAA0B;QAFjB,eAAU,GAAV,UAAU,CAAY;QAC/B,cAAS,GAAT,SAAS,CAAW;QACpB,UAAK,GAAL,KAAK,CAAqB;QAEpC,IAAI,CAAC,UAAU,GAAG,wBAAU,CAAC,UAAU,CACrC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AI,IAAI,UAAU,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAC/D,CAAC;QACF,OAAO,IAAI,CAAC;IACd,CAAC;IAEK,GAAG;;YACP,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YAC5D,OAAO,QAAQ,CAAC,GAAG,CACjB,CAAC,OAAO,EAAE,EAAE,CACV,CAAC,gBACC,MAAM,EAAE,OAAO,CAAC,MAAM,EACtB,QAAQ,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,IAC/B,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAC9B,CAAA,CACzB,CAAC;QACJ,CAAC;KAAA;IAED,KAAK;QACH,+BAA+B;QAC/B,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC,CAAC;QACvC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAC5C,8BAA8B;QAC9B,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAlED,8BAkEC"}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
2
|
-
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
3
|
-
import { PublicKey } from '@solana/web3.js';
|
4
|
-
export type House = {
|
5
|
-
pubkey: PublicKey;
|
6
|
-
houseMint: string;
|
7
|
-
currency: string;
|
8
|
-
currencyDecimals: number;
|
9
|
-
houseTokenSupply: string;
|
10
|
-
liquidity: string;
|
11
|
-
};
|
12
|
-
export type Position = {
|
13
|
-
house: string;
|
14
|
-
user: string;
|
15
|
-
amount: string;
|
16
|
-
status: {
|
17
|
-
deposit?: {};
|
18
|
-
withdraw?: {};
|
19
|
-
};
|
20
|
-
};
|
21
|
-
export type Miner = {
|
22
|
-
isBoosted: boolean;
|
23
|
-
rewarder: string;
|
24
|
-
authority: string;
|
25
|
-
amount: string;
|
26
|
-
rewards: string;
|
27
|
-
revshares: number;
|
28
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/divvy/types.ts"],"names":[],"mappings":""}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
export type Vault = {
|
2
|
-
stakeTimestampSec: string;
|
3
|
-
service: {
|
4
|
-
guestChain: {
|
5
|
-
validator: string;
|
6
|
-
};
|
7
|
-
};
|
8
|
-
stakeAmount: string;
|
9
|
-
stakeMint: string;
|
10
|
-
lastReceivedRewardsHeight: string;
|
11
|
-
withdrawalRequest?: WithdrawalRequestParams;
|
12
|
-
};
|
13
|
-
export type WithdrawalRequestParams = {
|
14
|
-
timestampInSec: string;
|
15
|
-
owner: string;
|
16
|
-
tokenAccount: string;
|
17
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/picasso/types.ts"],"names":[],"mappings":""}
|