@sonarwatch/portfolio-plugins 0.11.230 → 0.11.231
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +1670 -1666
- package/README.md +3 -3
- package/package.json +2 -2
- package/src/index.js +4 -4
- package/src/index.js.map +1 -1
- package/src/plugins/balancer/helpers/pools.js +21 -21
- package/src/plugins/{metadao → futarchy}/constants.d.ts +3 -3
- package/src/plugins/futarchy/constants.js +19 -0
- package/src/plugins/futarchy/constants.js.map +1 -0
- package/src/plugins/futarchy/daosJob.js +283 -0
- package/src/plugins/futarchy/daosJob.js.map +1 -0
- package/src/plugins/{metadao → futarchy}/index.js +2 -3
- package/src/plugins/futarchy/index.js.map +1 -0
- package/src/plugins/futarchy/structs.d.ts +96 -0
- package/src/plugins/futarchy/structs.js +94 -0
- package/src/plugins/futarchy/structs.js.map +1 -0
- package/src/plugins/sushiswap/helpers.js +24 -24
- package/src/plugins/uniswap-v2/helpers.js +22 -22
- package/src/utils/aptos/getAccountResources.d.ts +1 -1
- package/src/utils/aptos/getCoinStoreResources.d.ts +1 -1
- package/src/utils/aptos/getView.d.ts +1 -1
- package/src/utils/clients/getClientCosmos.d.ts +84 -57
- package/src/utils/clients/getClientIbc.d.ts +144 -103
- package/src/utils/clients/getClientSei.d.ts +97 -97
- package/src/utils/misc/getLpUnderlyingTokenSource.d.ts +2 -0
- package/src/utils/misc/getLpUnderlyingTokenSource.js +3 -1
- package/src/utils/misc/getLpUnderlyingTokenSource.js.map +1 -1
- package/src/utils/sei/constants.js +8 -8
- package/src/utils/sei/getAllBalances.d.ts +2 -2
- package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
- package/src/plugins/metadao/constants.js +0 -16
- package/src/plugins/metadao/constants.js.map +0 -1
- package/src/plugins/metadao/index.js.map +0 -1
- package/src/plugins/metadao/poolsJob.js +0 -98
- package/src/plugins/metadao/poolsJob.js.map +0 -1
- package/src/plugins/metadao/structs.d.ts +0 -44
- package/src/plugins/metadao/structs.js +0 -45
- package/src/plugins/metadao/structs.js.map +0 -1
- package/src/plugins/metadao/vaultsJob.d.ts +0 -3
- package/src/plugins/metadao/vaultsJob.js +0 -113
- package/src/plugins/metadao/vaultsJob.js.map +0 -1
- /package/src/plugins/{metadao/poolsJob.d.ts → futarchy/daosJob.d.ts} +0 -0
- /package/src/plugins/{metadao → futarchy}/index.d.ts +0 -0
@@ -2,145 +2,145 @@ export default function getClientSei(): Promise<{
|
|
2
2
|
cosmos: {
|
3
3
|
auth: {
|
4
4
|
v1beta1: {
|
5
|
-
accounts(request?: import("@sei-js/proto/types/codegen/cosmos/auth/v1beta1/query").QueryAccountsRequest | undefined): Promise<import("@sei-js/proto/types/codegen/cosmos/auth/v1beta1/query").QueryAccountsResponse>;
|
6
|
-
account(request: import("@sei-js/proto/types/codegen/cosmos/auth/v1beta1/query").QueryAccountRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/auth/v1beta1/query").QueryAccountResponse>;
|
7
|
-
params(request?: import("@sei-js/proto/types/codegen/cosmos/auth/v1beta1/query").QueryParamsRequest | undefined): Promise<import("@sei-js/proto/types/codegen/cosmos/auth/v1beta1/query").QueryParamsResponse>;
|
8
|
-
moduleAccounts(request?: import("@sei-js/proto/types/codegen/cosmos/auth/v1beta1/query").QueryModuleAccountsRequest | undefined): Promise<import("@sei-js/proto/types/codegen/cosmos/auth/v1beta1/query").QueryModuleAccountsResponse>;
|
9
|
-
bech32Prefix(request?: import("@sei-js/proto/types/codegen/cosmos/auth/v1beta1/query").Bech32PrefixRequest | undefined): Promise<import("@sei-js/proto/types/codegen/cosmos/auth/v1beta1/query").Bech32PrefixResponse>;
|
10
|
-
addressBytesToString(request: import("@sei-js/proto/types/codegen/cosmos/auth/v1beta1/query").AddressBytesToStringRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/auth/v1beta1/query").AddressBytesToStringResponse>;
|
11
|
-
addressStringToBytes(request: import("@sei-js/proto/types/codegen/cosmos/auth/v1beta1/query").AddressStringToBytesRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/auth/v1beta1/query").AddressStringToBytesResponse>;
|
5
|
+
accounts(request?: import("@sei-js/proto/dist/types/codegen/cosmos/auth/v1beta1/query").QueryAccountsRequest | undefined): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/auth/v1beta1/query").QueryAccountsResponse>;
|
6
|
+
account(request: import("@sei-js/proto/dist/types/codegen/cosmos/auth/v1beta1/query").QueryAccountRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/auth/v1beta1/query").QueryAccountResponse>;
|
7
|
+
params(request?: import("@sei-js/proto/dist/types/codegen/cosmos/auth/v1beta1/query").QueryParamsRequest | undefined): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/auth/v1beta1/query").QueryParamsResponse>;
|
8
|
+
moduleAccounts(request?: import("@sei-js/proto/dist/types/codegen/cosmos/auth/v1beta1/query").QueryModuleAccountsRequest | undefined): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/auth/v1beta1/query").QueryModuleAccountsResponse>;
|
9
|
+
bech32Prefix(request?: import("@sei-js/proto/dist/types/codegen/cosmos/auth/v1beta1/query").Bech32PrefixRequest | undefined): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/auth/v1beta1/query").Bech32PrefixResponse>;
|
10
|
+
addressBytesToString(request: import("@sei-js/proto/dist/types/codegen/cosmos/auth/v1beta1/query").AddressBytesToStringRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/auth/v1beta1/query").AddressBytesToStringResponse>;
|
11
|
+
addressStringToBytes(request: import("@sei-js/proto/dist/types/codegen/cosmos/auth/v1beta1/query").AddressStringToBytesRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/auth/v1beta1/query").AddressStringToBytesResponse>;
|
12
12
|
};
|
13
13
|
};
|
14
14
|
authz: {
|
15
15
|
v1beta1: {
|
16
|
-
grants(request: import("@sei-js/proto/types/codegen/cosmos/authz/v1beta1/query").QueryGrantsRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/authz/v1beta1/query").QueryGrantsResponse>;
|
17
|
-
granterGrants(request: import("@sei-js/proto/types/codegen/cosmos/authz/v1beta1/query").QueryGranterGrantsRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/authz/v1beta1/query").QueryGranterGrantsResponse>;
|
18
|
-
granteeGrants(request: import("@sei-js/proto/types/codegen/cosmos/authz/v1beta1/query").QueryGranteeGrantsRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/authz/v1beta1/query").QueryGranteeGrantsResponse>;
|
16
|
+
grants(request: import("@sei-js/proto/dist/types/codegen/cosmos/authz/v1beta1/query").QueryGrantsRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/authz/v1beta1/query").QueryGrantsResponse>;
|
17
|
+
granterGrants(request: import("@sei-js/proto/dist/types/codegen/cosmos/authz/v1beta1/query").QueryGranterGrantsRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/authz/v1beta1/query").QueryGranterGrantsResponse>;
|
18
|
+
granteeGrants(request: import("@sei-js/proto/dist/types/codegen/cosmos/authz/v1beta1/query").QueryGranteeGrantsRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/authz/v1beta1/query").QueryGranteeGrantsResponse>;
|
19
19
|
};
|
20
20
|
};
|
21
21
|
bank: {
|
22
22
|
v1beta1: {
|
23
|
-
balance(request: import("@sei-js/proto/types/codegen/cosmos/bank/v1beta1/query").QueryBalanceRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/bank/v1beta1/query").QueryBalanceResponse>;
|
24
|
-
allBalances(request: import("@sei-js/proto/types/codegen/cosmos/bank/v1beta1/query").QueryAllBalancesRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/bank/v1beta1/query").QueryAllBalancesResponse>;
|
25
|
-
spendableBalances(request: import("@sei-js/proto/types/codegen/cosmos/bank/v1beta1/query").QuerySpendableBalancesRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/bank/v1beta1/query").QuerySpendableBalancesResponse>;
|
26
|
-
totalSupply(request?: import("@sei-js/proto/types/codegen/cosmos/bank/v1beta1/query").QueryTotalSupplyRequest | undefined): Promise<import("@sei-js/proto/types/codegen/cosmos/bank/v1beta1/query").QueryTotalSupplyResponse>;
|
27
|
-
supplyOf(request: import("@sei-js/proto/types/codegen/cosmos/bank/v1beta1/query").QuerySupplyOfRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/bank/v1beta1/query").QuerySupplyOfResponse>;
|
28
|
-
params(request?: import("@sei-js/proto/types/codegen/cosmos/bank/v1beta1/query").QueryParamsRequest | undefined): Promise<import("@sei-js/proto/types/codegen/cosmos/bank/v1beta1/query").QueryParamsResponse>;
|
29
|
-
denomMetadata(request: import("@sei-js/proto/types/codegen/cosmos/bank/v1beta1/query").QueryDenomMetadataRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/bank/v1beta1/query").QueryDenomMetadataResponse>;
|
30
|
-
denomsMetadata(request?: import("@sei-js/proto/types/codegen/cosmos/bank/v1beta1/query").QueryDenomsMetadataRequest | undefined): Promise<import("@sei-js/proto/types/codegen/cosmos/bank/v1beta1/query").QueryDenomsMetadataResponse>;
|
31
|
-
denomOwners(request: import("@sei-js/proto/types/codegen/cosmos/bank/v1beta1/query").QueryDenomOwnersRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/bank/v1beta1/query").QueryDenomOwnersResponse>;
|
23
|
+
balance(request: import("@sei-js/proto/dist/types/codegen/cosmos/bank/v1beta1/query").QueryBalanceRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/bank/v1beta1/query").QueryBalanceResponse>;
|
24
|
+
allBalances(request: import("@sei-js/proto/dist/types/codegen/cosmos/bank/v1beta1/query").QueryAllBalancesRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/bank/v1beta1/query").QueryAllBalancesResponse>;
|
25
|
+
spendableBalances(request: import("@sei-js/proto/dist/types/codegen/cosmos/bank/v1beta1/query").QuerySpendableBalancesRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/bank/v1beta1/query").QuerySpendableBalancesResponse>;
|
26
|
+
totalSupply(request?: import("@sei-js/proto/dist/types/codegen/cosmos/bank/v1beta1/query").QueryTotalSupplyRequest | undefined): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/bank/v1beta1/query").QueryTotalSupplyResponse>;
|
27
|
+
supplyOf(request: import("@sei-js/proto/dist/types/codegen/cosmos/bank/v1beta1/query").QuerySupplyOfRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/bank/v1beta1/query").QuerySupplyOfResponse>;
|
28
|
+
params(request?: import("@sei-js/proto/dist/types/codegen/cosmos/bank/v1beta1/query").QueryParamsRequest | undefined): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/bank/v1beta1/query").QueryParamsResponse>;
|
29
|
+
denomMetadata(request: import("@sei-js/proto/dist/types/codegen/cosmos/bank/v1beta1/query").QueryDenomMetadataRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/bank/v1beta1/query").QueryDenomMetadataResponse>;
|
30
|
+
denomsMetadata(request?: import("@sei-js/proto/dist/types/codegen/cosmos/bank/v1beta1/query").QueryDenomsMetadataRequest | undefined): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/bank/v1beta1/query").QueryDenomsMetadataResponse>;
|
31
|
+
denomOwners(request: import("@sei-js/proto/dist/types/codegen/cosmos/bank/v1beta1/query").QueryDenomOwnersRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/bank/v1beta1/query").QueryDenomOwnersResponse>;
|
32
32
|
};
|
33
33
|
};
|
34
34
|
distribution: {
|
35
35
|
v1beta1: {
|
36
|
-
params(request?: import("@sei-js/proto/types/codegen/cosmos/distribution/v1beta1/query").QueryParamsRequest | undefined): Promise<import("@sei-js/proto/types/codegen/cosmos/distribution/v1beta1/query").QueryParamsResponse>;
|
37
|
-
validatorOutstandingRewards(request: import("@sei-js/proto/types/codegen/cosmos/distribution/v1beta1/query").QueryValidatorOutstandingRewardsRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/distribution/v1beta1/query").QueryValidatorOutstandingRewardsResponse>;
|
38
|
-
validatorCommission(request: import("@sei-js/proto/types/codegen/cosmos/distribution/v1beta1/query").QueryValidatorCommissionRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/distribution/v1beta1/query").QueryValidatorCommissionResponse>;
|
39
|
-
validatorSlashes(request: import("@sei-js/proto/types/codegen/cosmos/distribution/v1beta1/query").QueryValidatorSlashesRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/distribution/v1beta1/query").QueryValidatorSlashesResponse>;
|
40
|
-
delegationRewards(request: import("@sei-js/proto/types/codegen/cosmos/distribution/v1beta1/query").QueryDelegationRewardsRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/distribution/v1beta1/query").QueryDelegationRewardsResponse>;
|
41
|
-
delegationTotalRewards(request: import("@sei-js/proto/types/codegen/cosmos/distribution/v1beta1/query").QueryDelegationTotalRewardsRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/distribution/v1beta1/query").QueryDelegationTotalRewardsResponse>;
|
42
|
-
delegatorValidators(request: import("@sei-js/proto/types/codegen/cosmos/distribution/v1beta1/query").QueryDelegatorValidatorsRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/distribution/v1beta1/query").QueryDelegatorValidatorsResponse>;
|
43
|
-
delegatorWithdrawAddress(request: import("@sei-js/proto/types/codegen/cosmos/distribution/v1beta1/query").QueryDelegatorWithdrawAddressRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/distribution/v1beta1/query").QueryDelegatorWithdrawAddressResponse>;
|
44
|
-
communityPool(request?: import("@sei-js/proto/types/codegen/cosmos/distribution/v1beta1/query").QueryCommunityPoolRequest | undefined): Promise<import("@sei-js/proto/types/codegen/cosmos/distribution/v1beta1/query").QueryCommunityPoolResponse>;
|
36
|
+
params(request?: import("@sei-js/proto/dist/types/codegen/cosmos/distribution/v1beta1/query").QueryParamsRequest | undefined): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/distribution/v1beta1/query").QueryParamsResponse>;
|
37
|
+
validatorOutstandingRewards(request: import("@sei-js/proto/dist/types/codegen/cosmos/distribution/v1beta1/query").QueryValidatorOutstandingRewardsRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/distribution/v1beta1/query").QueryValidatorOutstandingRewardsResponse>;
|
38
|
+
validatorCommission(request: import("@sei-js/proto/dist/types/codegen/cosmos/distribution/v1beta1/query").QueryValidatorCommissionRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/distribution/v1beta1/query").QueryValidatorCommissionResponse>;
|
39
|
+
validatorSlashes(request: import("@sei-js/proto/dist/types/codegen/cosmos/distribution/v1beta1/query").QueryValidatorSlashesRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/distribution/v1beta1/query").QueryValidatorSlashesResponse>;
|
40
|
+
delegationRewards(request: import("@sei-js/proto/dist/types/codegen/cosmos/distribution/v1beta1/query").QueryDelegationRewardsRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/distribution/v1beta1/query").QueryDelegationRewardsResponse>;
|
41
|
+
delegationTotalRewards(request: import("@sei-js/proto/dist/types/codegen/cosmos/distribution/v1beta1/query").QueryDelegationTotalRewardsRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/distribution/v1beta1/query").QueryDelegationTotalRewardsResponse>;
|
42
|
+
delegatorValidators(request: import("@sei-js/proto/dist/types/codegen/cosmos/distribution/v1beta1/query").QueryDelegatorValidatorsRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/distribution/v1beta1/query").QueryDelegatorValidatorsResponse>;
|
43
|
+
delegatorWithdrawAddress(request: import("@sei-js/proto/dist/types/codegen/cosmos/distribution/v1beta1/query").QueryDelegatorWithdrawAddressRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/distribution/v1beta1/query").QueryDelegatorWithdrawAddressResponse>;
|
44
|
+
communityPool(request?: import("@sei-js/proto/dist/types/codegen/cosmos/distribution/v1beta1/query").QueryCommunityPoolRequest | undefined): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/distribution/v1beta1/query").QueryCommunityPoolResponse>;
|
45
45
|
};
|
46
46
|
};
|
47
47
|
gov: {
|
48
48
|
v1beta1: {
|
49
|
-
proposal(request: import("@sei-js/proto/types/codegen/cosmos/gov/v1beta1/query").QueryProposalRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/gov/v1beta1/query").QueryProposalResponse>;
|
50
|
-
proposals(request: import("@sei-js/proto/types/codegen/cosmos/gov/v1beta1/query").QueryProposalsRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/gov/v1beta1/query").QueryProposalsResponse>;
|
51
|
-
vote(request: import("@sei-js/proto/types/codegen/cosmos/gov/v1beta1/query").QueryVoteRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/gov/v1beta1/query").QueryVoteResponse>;
|
52
|
-
votes(request: import("@sei-js/proto/types/codegen/cosmos/gov/v1beta1/query").QueryVotesRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/gov/v1beta1/query").QueryVotesResponse>;
|
53
|
-
params(request: import("@sei-js/proto/types/codegen/cosmos/gov/v1beta1/query").QueryParamsRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/gov/v1beta1/query").QueryParamsResponse>;
|
54
|
-
deposit(request: import("@sei-js/proto/types/codegen/cosmos/gov/v1beta1/query").QueryDepositRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/gov/v1beta1/query").QueryDepositResponse>;
|
55
|
-
deposits(request: import("@sei-js/proto/types/codegen/cosmos/gov/v1beta1/query").QueryDepositsRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/gov/v1beta1/query").QueryDepositsResponse>;
|
56
|
-
tallyResult(request: import("@sei-js/proto/types/codegen/cosmos/gov/v1beta1/query").QueryTallyResultRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/gov/v1beta1/query").QueryTallyResultResponse>;
|
49
|
+
proposal(request: import("@sei-js/proto/dist/types/codegen/cosmos/gov/v1beta1/query").QueryProposalRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/gov/v1beta1/query").QueryProposalResponse>;
|
50
|
+
proposals(request: import("@sei-js/proto/dist/types/codegen/cosmos/gov/v1beta1/query").QueryProposalsRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/gov/v1beta1/query").QueryProposalsResponse>;
|
51
|
+
vote(request: import("@sei-js/proto/dist/types/codegen/cosmos/gov/v1beta1/query").QueryVoteRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/gov/v1beta1/query").QueryVoteResponse>;
|
52
|
+
votes(request: import("@sei-js/proto/dist/types/codegen/cosmos/gov/v1beta1/query").QueryVotesRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/gov/v1beta1/query").QueryVotesResponse>;
|
53
|
+
params(request: import("@sei-js/proto/dist/types/codegen/cosmos/gov/v1beta1/query").QueryParamsRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/gov/v1beta1/query").QueryParamsResponse>;
|
54
|
+
deposit(request: import("@sei-js/proto/dist/types/codegen/cosmos/gov/v1beta1/query").QueryDepositRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/gov/v1beta1/query").QueryDepositResponse>;
|
55
|
+
deposits(request: import("@sei-js/proto/dist/types/codegen/cosmos/gov/v1beta1/query").QueryDepositsRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/gov/v1beta1/query").QueryDepositsResponse>;
|
56
|
+
tallyResult(request: import("@sei-js/proto/dist/types/codegen/cosmos/gov/v1beta1/query").QueryTallyResultRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/gov/v1beta1/query").QueryTallyResultResponse>;
|
57
57
|
};
|
58
58
|
};
|
59
59
|
staking: {
|
60
60
|
v1beta1: {
|
61
|
-
validators(request: import("@sei-js/proto/types/codegen/cosmos/staking/v1beta1/query").QueryValidatorsRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/staking/v1beta1/query").QueryValidatorsResponse>;
|
62
|
-
validator(request: import("@sei-js/proto/types/codegen/cosmos/staking/v1beta1/query").QueryValidatorRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/staking/v1beta1/query").QueryValidatorResponse>;
|
63
|
-
validatorDelegations(request: import("@sei-js/proto/types/codegen/cosmos/staking/v1beta1/query").QueryValidatorDelegationsRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/staking/v1beta1/query").QueryValidatorDelegationsResponse>;
|
64
|
-
validatorUnbondingDelegations(request: import("@sei-js/proto/types/codegen/cosmos/staking/v1beta1/query").QueryValidatorUnbondingDelegationsRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/staking/v1beta1/query").QueryValidatorUnbondingDelegationsResponse>;
|
65
|
-
delegation(request: import("@sei-js/proto/types/codegen/cosmos/staking/v1beta1/query").QueryDelegationRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/staking/v1beta1/query").QueryDelegationResponse>;
|
66
|
-
unbondingDelegation(request: import("@sei-js/proto/types/codegen/cosmos/staking/v1beta1/query").QueryUnbondingDelegationRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/staking/v1beta1/query").QueryUnbondingDelegationResponse>;
|
67
|
-
delegatorDelegations(request: import("@sei-js/proto/types/codegen/cosmos/staking/v1beta1/query").QueryDelegatorDelegationsRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/staking/v1beta1/query").QueryDelegatorDelegationsResponse>;
|
68
|
-
delegatorUnbondingDelegations(request: import("@sei-js/proto/types/codegen/cosmos/staking/v1beta1/query").QueryDelegatorUnbondingDelegationsRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/staking/v1beta1/query").QueryDelegatorUnbondingDelegationsResponse>;
|
69
|
-
redelegations(request: import("@sei-js/proto/types/codegen/cosmos/staking/v1beta1/query").QueryRedelegationsRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/staking/v1beta1/query").QueryRedelegationsResponse>;
|
70
|
-
delegatorValidators(request: import("@sei-js/proto/types/codegen/cosmos/staking/v1beta1/query").QueryDelegatorValidatorsRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/staking/v1beta1/query").QueryDelegatorValidatorsResponse>;
|
71
|
-
delegatorValidator(request: import("@sei-js/proto/types/codegen/cosmos/staking/v1beta1/query").QueryDelegatorValidatorRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/staking/v1beta1/query").QueryDelegatorValidatorResponse>;
|
72
|
-
historicalInfo(request: import("@sei-js/proto/types/codegen/cosmos/staking/v1beta1/query").QueryHistoricalInfoRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/staking/v1beta1/query").QueryHistoricalInfoResponse>;
|
73
|
-
pool(request?: import("@sei-js/proto/types/codegen/cosmos/staking/v1beta1/query").QueryPoolRequest | undefined): Promise<import("@sei-js/proto/types/codegen/cosmos/staking/v1beta1/query").QueryPoolResponse>;
|
74
|
-
params(request?: import("@sei-js/proto/types/codegen/cosmos/staking/v1beta1/query").QueryParamsRequest | undefined): Promise<import("@sei-js/proto/types/codegen/cosmos/staking/v1beta1/query").QueryParamsResponse>;
|
61
|
+
validators(request: import("@sei-js/proto/dist/types/codegen/cosmos/staking/v1beta1/query").QueryValidatorsRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/staking/v1beta1/query").QueryValidatorsResponse>;
|
62
|
+
validator(request: import("@sei-js/proto/dist/types/codegen/cosmos/staking/v1beta1/query").QueryValidatorRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/staking/v1beta1/query").QueryValidatorResponse>;
|
63
|
+
validatorDelegations(request: import("@sei-js/proto/dist/types/codegen/cosmos/staking/v1beta1/query").QueryValidatorDelegationsRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/staking/v1beta1/query").QueryValidatorDelegationsResponse>;
|
64
|
+
validatorUnbondingDelegations(request: import("@sei-js/proto/dist/types/codegen/cosmos/staking/v1beta1/query").QueryValidatorUnbondingDelegationsRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/staking/v1beta1/query").QueryValidatorUnbondingDelegationsResponse>;
|
65
|
+
delegation(request: import("@sei-js/proto/dist/types/codegen/cosmos/staking/v1beta1/query").QueryDelegationRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/staking/v1beta1/query").QueryDelegationResponse>;
|
66
|
+
unbondingDelegation(request: import("@sei-js/proto/dist/types/codegen/cosmos/staking/v1beta1/query").QueryUnbondingDelegationRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/staking/v1beta1/query").QueryUnbondingDelegationResponse>;
|
67
|
+
delegatorDelegations(request: import("@sei-js/proto/dist/types/codegen/cosmos/staking/v1beta1/query").QueryDelegatorDelegationsRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/staking/v1beta1/query").QueryDelegatorDelegationsResponse>;
|
68
|
+
delegatorUnbondingDelegations(request: import("@sei-js/proto/dist/types/codegen/cosmos/staking/v1beta1/query").QueryDelegatorUnbondingDelegationsRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/staking/v1beta1/query").QueryDelegatorUnbondingDelegationsResponse>;
|
69
|
+
redelegations(request: import("@sei-js/proto/dist/types/codegen/cosmos/staking/v1beta1/query").QueryRedelegationsRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/staking/v1beta1/query").QueryRedelegationsResponse>;
|
70
|
+
delegatorValidators(request: import("@sei-js/proto/dist/types/codegen/cosmos/staking/v1beta1/query").QueryDelegatorValidatorsRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/staking/v1beta1/query").QueryDelegatorValidatorsResponse>;
|
71
|
+
delegatorValidator(request: import("@sei-js/proto/dist/types/codegen/cosmos/staking/v1beta1/query").QueryDelegatorValidatorRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/staking/v1beta1/query").QueryDelegatorValidatorResponse>;
|
72
|
+
historicalInfo(request: import("@sei-js/proto/dist/types/codegen/cosmos/staking/v1beta1/query").QueryHistoricalInfoRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/staking/v1beta1/query").QueryHistoricalInfoResponse>;
|
73
|
+
pool(request?: import("@sei-js/proto/dist/types/codegen/cosmos/staking/v1beta1/query").QueryPoolRequest | undefined): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/staking/v1beta1/query").QueryPoolResponse>;
|
74
|
+
params(request?: import("@sei-js/proto/dist/types/codegen/cosmos/staking/v1beta1/query").QueryParamsRequest | undefined): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/staking/v1beta1/query").QueryParamsResponse>;
|
75
75
|
};
|
76
76
|
};
|
77
77
|
tx: {
|
78
78
|
v1beta1: {
|
79
|
-
simulate(request: import("@sei-js/proto/types/codegen/cosmos/tx/v1beta1/service").SimulateRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/tx/v1beta1/service").SimulateResponse>;
|
80
|
-
getTx(request: import("@sei-js/proto/types/codegen/cosmos/tx/v1beta1/service").GetTxRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/tx/v1beta1/service").GetTxResponse>;
|
81
|
-
broadcastTx(request: import("@sei-js/proto/types/codegen/cosmos/tx/v1beta1/service").BroadcastTxRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/tx/v1beta1/service").BroadcastTxResponse>;
|
82
|
-
getTxsEvent(request: import("@sei-js/proto/types/codegen/cosmos/tx/v1beta1/service").GetTxsEventRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/tx/v1beta1/service").GetTxsEventResponse>;
|
83
|
-
getBlockWithTxs(request: import("@sei-js/proto/types/codegen/cosmos/tx/v1beta1/service").GetBlockWithTxsRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/tx/v1beta1/service").GetBlockWithTxsResponse>;
|
79
|
+
simulate(request: import("@sei-js/proto/dist/types/codegen/cosmos/tx/v1beta1/service").SimulateRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/tx/v1beta1/service").SimulateResponse>;
|
80
|
+
getTx(request: import("@sei-js/proto/dist/types/codegen/cosmos/tx/v1beta1/service").GetTxRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/tx/v1beta1/service").GetTxResponse>;
|
81
|
+
broadcastTx(request: import("@sei-js/proto/dist/types/codegen/cosmos/tx/v1beta1/service").BroadcastTxRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/tx/v1beta1/service").BroadcastTxResponse>;
|
82
|
+
getTxsEvent(request: import("@sei-js/proto/dist/types/codegen/cosmos/tx/v1beta1/service").GetTxsEventRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/tx/v1beta1/service").GetTxsEventResponse>;
|
83
|
+
getBlockWithTxs(request: import("@sei-js/proto/dist/types/codegen/cosmos/tx/v1beta1/service").GetBlockWithTxsRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/tx/v1beta1/service").GetBlockWithTxsResponse>;
|
84
84
|
};
|
85
85
|
};
|
86
86
|
upgrade: {
|
87
87
|
v1beta1: {
|
88
|
-
currentPlan(request?: import("@sei-js/proto/types/codegen/cosmos/upgrade/v1beta1/query").QueryCurrentPlanRequest | undefined): Promise<import("@sei-js/proto/types/codegen/cosmos/upgrade/v1beta1/query").QueryCurrentPlanResponse>;
|
89
|
-
appliedPlan(request: import("@sei-js/proto/types/codegen/cosmos/upgrade/v1beta1/query").QueryAppliedPlanRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/upgrade/v1beta1/query").QueryAppliedPlanResponse>;
|
90
|
-
upgradedConsensusState(request: import("@sei-js/proto/types/codegen/cosmos/upgrade/v1beta1/query").QueryUpgradedConsensusStateRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/upgrade/v1beta1/query").QueryUpgradedConsensusStateResponse>;
|
91
|
-
moduleVersions(request: import("@sei-js/proto/types/codegen/cosmos/upgrade/v1beta1/query").QueryModuleVersionsRequest): Promise<import("@sei-js/proto/types/codegen/cosmos/upgrade/v1beta1/query").QueryModuleVersionsResponse>;
|
92
|
-
authority(request?: import("@sei-js/proto/types/codegen/cosmos/upgrade/v1beta1/query").QueryAuthorityRequest | undefined): Promise<import("@sei-js/proto/types/codegen/cosmos/upgrade/v1beta1/query").QueryAuthorityResponse>;
|
88
|
+
currentPlan(request?: import("@sei-js/proto/dist/types/codegen/cosmos/upgrade/v1beta1/query").QueryCurrentPlanRequest | undefined): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/upgrade/v1beta1/query").QueryCurrentPlanResponse>;
|
89
|
+
appliedPlan(request: import("@sei-js/proto/dist/types/codegen/cosmos/upgrade/v1beta1/query").QueryAppliedPlanRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/upgrade/v1beta1/query").QueryAppliedPlanResponse>;
|
90
|
+
upgradedConsensusState(request: import("@sei-js/proto/dist/types/codegen/cosmos/upgrade/v1beta1/query").QueryUpgradedConsensusStateRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/upgrade/v1beta1/query").QueryUpgradedConsensusStateResponse>;
|
91
|
+
moduleVersions(request: import("@sei-js/proto/dist/types/codegen/cosmos/upgrade/v1beta1/query").QueryModuleVersionsRequest): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/upgrade/v1beta1/query").QueryModuleVersionsResponse>;
|
92
|
+
authority(request?: import("@sei-js/proto/dist/types/codegen/cosmos/upgrade/v1beta1/query").QueryAuthorityRequest | undefined): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/upgrade/v1beta1/query").QueryAuthorityResponse>;
|
93
93
|
};
|
94
94
|
};
|
95
95
|
};
|
96
96
|
seiprotocol: {
|
97
97
|
seichain: {
|
98
98
|
dex: {
|
99
|
-
params(request?: import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryParamsRequest | undefined): Promise<import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryParamsResponse>;
|
100
|
-
longBook(request: import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryGetLongBookRequest): Promise<import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryGetLongBookResponse>;
|
101
|
-
longBookAll(request: import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryAllLongBookRequest): Promise<import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryAllLongBookResponse>;
|
102
|
-
shortBook(request: import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryGetShortBookRequest): Promise<import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryGetShortBookResponse>;
|
103
|
-
shortBookAll(request: import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryAllShortBookRequest): Promise<import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryAllShortBookResponse>;
|
104
|
-
getPrice(request: import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryGetPriceRequest): Promise<import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryGetPriceResponse>;
|
105
|
-
getLatestPrice(request: import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryGetLatestPriceRequest): Promise<import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryGetLatestPriceResponse>;
|
106
|
-
getPrices(request: import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryGetPricesRequest): Promise<import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryGetPricesResponse>;
|
107
|
-
getTwaps(request: import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryGetTwapsRequest): Promise<import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryGetTwapsResponse>;
|
108
|
-
assetMetadata(request: import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryAssetMetadataRequest): Promise<import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryAssetMetadataResponse>;
|
109
|
-
assetList(request?: import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryAssetListRequest | undefined): Promise<import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryAssetListResponse>;
|
110
|
-
getRegisteredPairs(request: import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryRegisteredPairsRequest): Promise<import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryRegisteredPairsResponse>;
|
111
|
-
getRegisteredContract(request: import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryRegisteredContractRequest): Promise<import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryRegisteredContractResponse>;
|
112
|
-
getOrders(request: import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryGetOrdersRequest): Promise<import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryGetOrdersResponse>;
|
113
|
-
getOrder(request: import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryGetOrderByIDRequest): Promise<import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryGetOrderByIDResponse>;
|
114
|
-
getHistoricalPrices(request: import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryGetHistoricalPricesRequest): Promise<import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryGetHistoricalPricesResponse>;
|
115
|
-
getMarketSummary(request: import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryGetMarketSummaryRequest): Promise<import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryGetMarketSummaryResponse>;
|
116
|
-
getOrderSimulation(request: import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryOrderSimulationRequest): Promise<import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryOrderSimulationResponse>;
|
117
|
-
getMatchResult(request: import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryGetMatchResultRequest): Promise<import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryGetMatchResultResponse>;
|
118
|
-
getOrderCount(request: import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryGetOrderCountRequest): Promise<import("@sei-js/proto/types/codegen/seiprotocol/seichain/dex/query").QueryGetOrderCountResponse>;
|
99
|
+
params(request?: import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryParamsRequest | undefined): Promise<import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryParamsResponse>;
|
100
|
+
longBook(request: import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryGetLongBookRequest): Promise<import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryGetLongBookResponse>;
|
101
|
+
longBookAll(request: import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryAllLongBookRequest): Promise<import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryAllLongBookResponse>;
|
102
|
+
shortBook(request: import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryGetShortBookRequest): Promise<import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryGetShortBookResponse>;
|
103
|
+
shortBookAll(request: import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryAllShortBookRequest): Promise<import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryAllShortBookResponse>;
|
104
|
+
getPrice(request: import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryGetPriceRequest): Promise<import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryGetPriceResponse>;
|
105
|
+
getLatestPrice(request: import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryGetLatestPriceRequest): Promise<import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryGetLatestPriceResponse>;
|
106
|
+
getPrices(request: import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryGetPricesRequest): Promise<import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryGetPricesResponse>;
|
107
|
+
getTwaps(request: import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryGetTwapsRequest): Promise<import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryGetTwapsResponse>;
|
108
|
+
assetMetadata(request: import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryAssetMetadataRequest): Promise<import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryAssetMetadataResponse>;
|
109
|
+
assetList(request?: import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryAssetListRequest | undefined): Promise<import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryAssetListResponse>;
|
110
|
+
getRegisteredPairs(request: import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryRegisteredPairsRequest): Promise<import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryRegisteredPairsResponse>;
|
111
|
+
getRegisteredContract(request: import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryRegisteredContractRequest): Promise<import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryRegisteredContractResponse>;
|
112
|
+
getOrders(request: import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryGetOrdersRequest): Promise<import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryGetOrdersResponse>;
|
113
|
+
getOrder(request: import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryGetOrderByIDRequest): Promise<import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryGetOrderByIDResponse>;
|
114
|
+
getHistoricalPrices(request: import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryGetHistoricalPricesRequest): Promise<import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryGetHistoricalPricesResponse>;
|
115
|
+
getMarketSummary(request: import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryGetMarketSummaryRequest): Promise<import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryGetMarketSummaryResponse>;
|
116
|
+
getOrderSimulation(request: import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryOrderSimulationRequest): Promise<import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryOrderSimulationResponse>;
|
117
|
+
getMatchResult(request: import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryGetMatchResultRequest): Promise<import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryGetMatchResultResponse>;
|
118
|
+
getOrderCount(request: import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryGetOrderCountRequest): Promise<import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/dex/query").QueryGetOrderCountResponse>;
|
119
119
|
};
|
120
120
|
epoch: {
|
121
|
-
epoch(request?: import("@sei-js/proto/types/codegen/seiprotocol/seichain/epoch/query").QueryEpochRequest | undefined): Promise<import("@sei-js/proto/types/codegen/seiprotocol/seichain/epoch/query").QueryEpochResponse>;
|
122
|
-
params(request?: import("@sei-js/proto/types/codegen/seiprotocol/seichain/epoch/query").QueryParamsRequest | undefined): Promise<import("@sei-js/proto/types/codegen/seiprotocol/seichain/epoch/query").QueryParamsResponse>;
|
121
|
+
epoch(request?: import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/epoch/query").QueryEpochRequest | undefined): Promise<import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/epoch/query").QueryEpochResponse>;
|
122
|
+
params(request?: import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/epoch/query").QueryParamsRequest | undefined): Promise<import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/epoch/query").QueryParamsResponse>;
|
123
123
|
};
|
124
124
|
mint: {
|
125
|
-
params(request?: import("@sei-js/proto/types/codegen/seiprotocol/seichain/mint/v1beta1/query").QueryParamsRequest | undefined): Promise<import("@sei-js/proto/types/codegen/seiprotocol/seichain/mint/v1beta1/query").QueryParamsResponse>;
|
126
|
-
minter(request?: import("@sei-js/proto/types/codegen/seiprotocol/seichain/mint/v1beta1/query").QueryMinterRequest | undefined): Promise<import("@sei-js/proto/types/codegen/seiprotocol/seichain/mint/v1beta1/query").QueryMinterResponse>;
|
125
|
+
params(request?: import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/mint/v1beta1/query").QueryParamsRequest | undefined): Promise<import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/mint/v1beta1/query").QueryParamsResponse>;
|
126
|
+
minter(request?: import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/mint/v1beta1/query").QueryMinterRequest | undefined): Promise<import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/mint/v1beta1/query").QueryMinterResponse>;
|
127
127
|
};
|
128
128
|
oracle: {
|
129
|
-
exchangeRate(request: import("@sei-js/proto/types/codegen/seiprotocol/seichain/oracle/query").QueryExchangeRateRequest): Promise<import("@sei-js/proto/types/codegen/seiprotocol/seichain/oracle/query").QueryExchangeRateResponse>;
|
130
|
-
exchangeRates(request?: import("@sei-js/proto/types/codegen/seiprotocol/seichain/oracle/query").QueryExchangeRatesRequest | undefined): Promise<import("@sei-js/proto/types/codegen/seiprotocol/seichain/oracle/query").QueryExchangeRatesResponse>;
|
131
|
-
actives(request?: import("@sei-js/proto/types/codegen/seiprotocol/seichain/oracle/query").QueryActivesRequest | undefined): Promise<import("@sei-js/proto/types/codegen/seiprotocol/seichain/oracle/query").QueryActivesResponse>;
|
132
|
-
voteTargets(request?: import("@sei-js/proto/types/codegen/seiprotocol/seichain/oracle/query").QueryVoteTargetsRequest | undefined): Promise<import("@sei-js/proto/types/codegen/seiprotocol/seichain/oracle/query").QueryVoteTargetsResponse>;
|
133
|
-
priceSnapshotHistory(request?: import("@sei-js/proto/types/codegen/seiprotocol/seichain/oracle/query").QueryPriceSnapshotHistoryRequest | undefined): Promise<import("@sei-js/proto/types/codegen/seiprotocol/seichain/oracle/query").QueryPriceSnapshotHistoryResponse>;
|
134
|
-
twaps(request: import("@sei-js/proto/types/codegen/seiprotocol/seichain/oracle/query").QueryTwapsRequest): Promise<import("@sei-js/proto/types/codegen/seiprotocol/seichain/oracle/query").QueryTwapsResponse>;
|
135
|
-
feederDelegation(request: import("@sei-js/proto/types/codegen/seiprotocol/seichain/oracle/query").QueryFeederDelegationRequest): Promise<import("@sei-js/proto/types/codegen/seiprotocol/seichain/oracle/query").QueryFeederDelegationResponse>;
|
136
|
-
votePenaltyCounter(request: import("@sei-js/proto/types/codegen/seiprotocol/seichain/oracle/query").QueryVotePenaltyCounterRequest): Promise<import("@sei-js/proto/types/codegen/seiprotocol/seichain/oracle/query").QueryVotePenaltyCounterResponse>;
|
137
|
-
slashWindow(request?: import("@sei-js/proto/types/codegen/seiprotocol/seichain/oracle/query").QuerySlashWindowRequest | undefined): Promise<import("@sei-js/proto/types/codegen/seiprotocol/seichain/oracle/query").QuerySlashWindowResponse>;
|
138
|
-
params(request?: import("@sei-js/proto/types/codegen/seiprotocol/seichain/oracle/query").QueryParamsRequest | undefined): Promise<import("@sei-js/proto/types/codegen/seiprotocol/seichain/oracle/query").QueryParamsResponse>;
|
129
|
+
exchangeRate(request: import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/oracle/query").QueryExchangeRateRequest): Promise<import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/oracle/query").QueryExchangeRateResponse>;
|
130
|
+
exchangeRates(request?: import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/oracle/query").QueryExchangeRatesRequest | undefined): Promise<import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/oracle/query").QueryExchangeRatesResponse>;
|
131
|
+
actives(request?: import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/oracle/query").QueryActivesRequest | undefined): Promise<import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/oracle/query").QueryActivesResponse>;
|
132
|
+
voteTargets(request?: import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/oracle/query").QueryVoteTargetsRequest | undefined): Promise<import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/oracle/query").QueryVoteTargetsResponse>;
|
133
|
+
priceSnapshotHistory(request?: import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/oracle/query").QueryPriceSnapshotHistoryRequest | undefined): Promise<import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/oracle/query").QueryPriceSnapshotHistoryResponse>;
|
134
|
+
twaps(request: import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/oracle/query").QueryTwapsRequest): Promise<import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/oracle/query").QueryTwapsResponse>;
|
135
|
+
feederDelegation(request: import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/oracle/query").QueryFeederDelegationRequest): Promise<import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/oracle/query").QueryFeederDelegationResponse>;
|
136
|
+
votePenaltyCounter(request: import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/oracle/query").QueryVotePenaltyCounterRequest): Promise<import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/oracle/query").QueryVotePenaltyCounterResponse>;
|
137
|
+
slashWindow(request?: import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/oracle/query").QuerySlashWindowRequest | undefined): Promise<import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/oracle/query").QuerySlashWindowResponse>;
|
138
|
+
params(request?: import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/oracle/query").QueryParamsRequest | undefined): Promise<import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/oracle/query").QueryParamsResponse>;
|
139
139
|
};
|
140
140
|
tokenfactory: {
|
141
|
-
params(request?: import("@sei-js/proto/types/codegen/seiprotocol/seichain/tokenfactory/query").QueryParamsRequest | undefined): Promise<import("@sei-js/proto/types/codegen/seiprotocol/seichain/tokenfactory/query").QueryParamsResponse>;
|
142
|
-
denomAuthorityMetadata(request: import("@sei-js/proto/types/codegen/seiprotocol/seichain/tokenfactory/query").QueryDenomAuthorityMetadataRequest): Promise<import("@sei-js/proto/types/codegen/seiprotocol/seichain/tokenfactory/query").QueryDenomAuthorityMetadataResponse>;
|
143
|
-
denomsFromCreator(request: import("@sei-js/proto/types/codegen/seiprotocol/seichain/tokenfactory/query").QueryDenomsFromCreatorRequest): Promise<import("@sei-js/proto/types/codegen/seiprotocol/seichain/tokenfactory/query").QueryDenomsFromCreatorResponse>;
|
141
|
+
params(request?: import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/tokenfactory/query").QueryParamsRequest | undefined): Promise<import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/tokenfactory/query").QueryParamsResponse>;
|
142
|
+
denomAuthorityMetadata(request: import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/tokenfactory/query").QueryDenomAuthorityMetadataRequest): Promise<import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/tokenfactory/query").QueryDenomAuthorityMetadataResponse>;
|
143
|
+
denomsFromCreator(request: import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/tokenfactory/query").QueryDenomsFromCreatorRequest): Promise<import("@sei-js/proto/dist/types/codegen/seiprotocol/seichain/tokenfactory/query").QueryDenomsFromCreatorResponse>;
|
144
144
|
};
|
145
145
|
};
|
146
146
|
};
|
@@ -14,5 +14,7 @@ export type GetLpUnderlyingTokenSourceParams = {
|
|
14
14
|
platformId?: string;
|
15
15
|
acceptedPairs?: string[];
|
16
16
|
minReserveValue?: number;
|
17
|
+
liquidityName?: string;
|
18
|
+
elementName?: string;
|
17
19
|
};
|
18
20
|
export declare function getLpUnderlyingTokenSource(params: GetLpUnderlyingTokenSourceParams): TokenPriceSource[];
|
@@ -45,7 +45,7 @@ exports.defaultAcceptedPairs = new Map([
|
|
45
45
|
]);
|
46
46
|
function getLpUnderlyingTokenSource(params) {
|
47
47
|
let { platformId, acceptedPairs, minReserveValue } = params;
|
48
|
-
const { networkId, poolUnderlyings, sourceId } = params;
|
48
|
+
const { networkId, poolUnderlyings, sourceId, liquidityName, elementName } = params;
|
49
49
|
if (!platformId)
|
50
50
|
platformId = constants_1.walletTokensPlatform.id;
|
51
51
|
if (!acceptedPairs)
|
@@ -105,6 +105,8 @@ function getLpUnderlyingTokenSource(params) {
|
|
105
105
|
price,
|
106
106
|
weight: (0, getSourceWeight_1.default)(knownReserveValue),
|
107
107
|
timestamp: Date.now(),
|
108
|
+
liquidityName,
|
109
|
+
elementName,
|
108
110
|
};
|
109
111
|
sources.push(source);
|
110
112
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getLpUnderlyingTokenSource.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/misc/getLpUnderlyingTokenSource.ts"],"names":[],"mappings":";;;;;;AAAA,+DAYoC;AACpC,8DAAsE;AACtE,wEAAgD;AAEnC,QAAA,oBAAoB,GAAG,IAAI,GAAG,CAA0B;IACnE;QACE,0BAAS,CAAC,GAAG;QACb;YACE,iCAAgB;YAChB,sEAAsE,EAAE,OAAO;YAC/E,qHAAqH,EAAE,SAAS;SACjI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,mCAAkB,EAAC,CAAC,EAAE,0BAAS,CAAC,GAAG,CAAC,CAAC;KACnD;IACD;QACE,0BAAS,CAAC,MAAM;QAChB;YACE,oCAAmB;YACnB,2CAA0B;YAC1B,8CAA8C,EAAE,OAAO;YACvD,8CAA8C,EAAE,OAAO;SACxD,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,mCAAkB,EAAC,CAAC,EAAE,0BAAS,CAAC,MAAM,CAAC,CAAC;KACtD;IACD;QACE,0BAAS,CAAC,KAAK;QACf;YACE,mCAAkB;YAClB,6EAA6E,EAAE,SAAS;YACxF,mFAAmF,EAAE,oBAAoB;SAC1G,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,mCAAkB,EAAC,CAAC,EAAE,0BAAS,CAAC,KAAK,CAAC,CAAC;KACrD;IACD;QACE,0BAAS,CAAC,GAAG;QACb;YACE,iCAAgB;YAChB,eAAe;YACf,gFAAgF,EAAE,SAAS;YAC3F,gFAAgF,EAAE,SAAS;SAC5F,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,mCAAkB,EAAC,CAAC,EAAE,0BAAS,CAAC,GAAG,CAAC,CAAC;KACnD;CACF,CAAC,CAAC;
|
1
|
+
{"version":3,"file":"getLpUnderlyingTokenSource.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/misc/getLpUnderlyingTokenSource.ts"],"names":[],"mappings":";;;;;;AAAA,+DAYoC;AACpC,8DAAsE;AACtE,wEAAgD;AAEnC,QAAA,oBAAoB,GAAG,IAAI,GAAG,CAA0B;IACnE;QACE,0BAAS,CAAC,GAAG;QACb;YACE,iCAAgB;YAChB,sEAAsE,EAAE,OAAO;YAC/E,qHAAqH,EAAE,SAAS;SACjI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,mCAAkB,EAAC,CAAC,EAAE,0BAAS,CAAC,GAAG,CAAC,CAAC;KACnD;IACD;QACE,0BAAS,CAAC,MAAM;QAChB;YACE,oCAAmB;YACnB,2CAA0B;YAC1B,8CAA8C,EAAE,OAAO;YACvD,8CAA8C,EAAE,OAAO;SACxD,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,mCAAkB,EAAC,CAAC,EAAE,0BAAS,CAAC,MAAM,CAAC,CAAC;KACtD;IACD;QACE,0BAAS,CAAC,KAAK;QACf;YACE,mCAAkB;YAClB,6EAA6E,EAAE,SAAS;YACxF,mFAAmF,EAAE,oBAAoB;SAC1G,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,mCAAkB,EAAC,CAAC,EAAE,0BAAS,CAAC,KAAK,CAAC,CAAC;KACrD;IACD;QACE,0BAAS,CAAC,GAAG;QACb;YACE,iCAAgB;YAChB,eAAe;YACf,gFAAgF,EAAE,SAAS;YAC3F,gFAAgF,EAAE,SAAS;SAC5F,CAAC,GAAG,CAAC,CAAC,CAAC,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AC,CAAC,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC,GAAG,iBAAiB,CAAC;YACzD,CAAC,CAAC,aAAa,CAAC;QAElB,MAAM,MAAM,GAAqB;YAC/B,EAAE,EAAE,QAAQ;YACZ,SAAS;YACT,UAAU,EAAE,gCAAoB,CAAC,EAAE;YACnC,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC;YACtB,QAAQ,EAAE,CAAC,CAAC,QAAQ;YACpB,KAAK;YACL,MAAM,EAAE,IAAA,yBAAe,EAAC,iBAAiB,CAAC;YAC1C,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;YACrB,aAAa;YACb,WAAW;SACZ,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACvB,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC;AAjFD,gEAiFC"}
|
@@ -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,3 +1,3 @@
|
|
1
|
-
import { QueryAllBalancesRequest, QueryAllBalancesResponse } from '@sei-js/proto/types/codegen/cosmos/bank/v1beta1/query';
|
1
|
+
import { QueryAllBalancesRequest, QueryAllBalancesResponse } from '@sei-js/proto/dist/types/codegen/cosmos/bank/v1beta1/query';
|
2
2
|
export type AllBalances = (request: QueryAllBalancesRequest) => Promise<QueryAllBalancesResponse>;
|
3
|
-
export declare function getAllBalances(allBalances: AllBalances, owner: string): Promise<import("@sei-js/proto/types/codegen/cosmos/base/v1beta1/coin").Coin[]>;
|
3
|
+
export declare function getAllBalances(allBalances: AllBalances, owner: string): Promise<import("@sei-js/proto/dist/types/codegen/cosmos/base/v1beta1/coin").Coin[]>;
|
@@ -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,16 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ammPid = exports.vaultPid = exports.platform = exports.platformId = void 0;
|
4
|
-
const web3_js_1 = require("@solana/web3.js");
|
5
|
-
exports.platformId = 'metadao';
|
6
|
-
exports.platform = {
|
7
|
-
id: exports.platformId,
|
8
|
-
name: 'Metadao',
|
9
|
-
image: 'https://sonar.watch/img/platforms/metadao.webp',
|
10
|
-
// defiLlamaId: 'foo-finance', // from https://defillama.com/docs/api
|
11
|
-
website: 'https://futarchy.metadao.fi/',
|
12
|
-
twitter: 'https://x.com/MetaDAOProject',
|
13
|
-
};
|
14
|
-
exports.vaultPid = new web3_js_1.PublicKey('VAU1T7S5UuEHmMvXtXMVmpEoQtZ2ya7eRb7gcN47wDp');
|
15
|
-
exports.ammPid = new web3_js_1.PublicKey('AMM5G2nxuKUwCLRYTW7qqEwuoqCtNSjtbipwEmm2g8bH');
|
16
|
-
//# sourceMappingURL=constants.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/metadao/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,gDAAgD;IACvD,qEAAqE;IACrE,OAAO,EAAE,8BAA8B;IACvC,OAAO,EAAE,8BAA8B;CACxC,CAAC;AAEW,QAAA,QAAQ,GAAG,IAAI,mBAAS,CACnC,6CAA6C,CAC9C,CAAC;AACW,QAAA,MAAM,GAAG,IAAI,mBAAS,CACjC,8CAA8C,CAC/C,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/metadao/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,4DAAoC;AACpC,0DAAkC;AAErB,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,mBAAS,EAAE,kBAAQ,CAAC,CAAC;AACpC,QAAA,QAAQ,GAAc,EAAE,CAAC"}
|
@@ -1,98 +0,0 @@
|
|
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 clients_1 = require("../../utils/clients");
|
14
|
-
const solana_1 = require("../../utils/solana");
|
15
|
-
const filters_1 = require("../../utils/solana/filters");
|
16
|
-
const constants_1 = require("./constants");
|
17
|
-
const structs_1 = require("./structs");
|
18
|
-
const getLpTokenSourceRaw_1 = require("../../utils/misc/getLpTokenSourceRaw");
|
19
|
-
const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
20
|
-
var _a, _b;
|
21
|
-
const client = (0, clients_1.getClientSolana)();
|
22
|
-
const pools = yield (0, solana_1.getParsedProgramAccounts)(client, structs_1.ammStruct, constants_1.ammPid, (0, filters_1.dataSizeFilter)(224));
|
23
|
-
const mints = new Set();
|
24
|
-
const lpMints = [];
|
25
|
-
pools.forEach((pool) => {
|
26
|
-
if (pool.baseAmount.isZero() || pool.quoteAmount.isZero())
|
27
|
-
return;
|
28
|
-
mints.add(pool.quoteMint.toString());
|
29
|
-
mints.add(pool.baseMint.toString());
|
30
|
-
lpMints.push(pool.lpMint);
|
31
|
-
});
|
32
|
-
const [tokenPriceById, lpMintsAccounts] = yield Promise.all([
|
33
|
-
cache.getTokenPricesAsMap(Array.from(mints), portfolio_core_1.NetworkId.solana),
|
34
|
-
(0, solana_1.getParsedMultipleAccountsInfo)(client, solana_1.mintAccountStruct, lpMints),
|
35
|
-
]);
|
36
|
-
const lpMintAccountById = new Map();
|
37
|
-
lpMintsAccounts.forEach((acc) => {
|
38
|
-
if (acc)
|
39
|
-
lpMintAccountById.set(acc.pubkey.toString(), acc);
|
40
|
-
});
|
41
|
-
const lpTokenSource = [];
|
42
|
-
for (const pool of pools) {
|
43
|
-
const [lpMint, baseMint, quoteMint] = [
|
44
|
-
pool.lpMint.toString(),
|
45
|
-
pool.baseMint.toString(),
|
46
|
-
pool.quoteMint.toString(),
|
47
|
-
];
|
48
|
-
const [basePrice, quotePrice, lpMintAccount] = [
|
49
|
-
tokenPriceById.get(pool.baseMint.toString()),
|
50
|
-
tokenPriceById.get(pool.quoteMint.toString()),
|
51
|
-
lpMintAccountById.get(lpMint),
|
52
|
-
];
|
53
|
-
if (!basePrice || !quotePrice || !lpMintAccount)
|
54
|
-
continue;
|
55
|
-
let lpTypeName;
|
56
|
-
if ((_a = basePrice.liquidityName) === null || _a === void 0 ? void 0 : _a.startsWith('p')) {
|
57
|
-
lpTypeName = `passLP ${basePrice.liquidityName.slice(1)}`;
|
58
|
-
}
|
59
|
-
else if ((_b = basePrice.liquidityName) === null || _b === void 0 ? void 0 : _b.startsWith('f')) {
|
60
|
-
lpTypeName = `failLP ${basePrice.liquidityName.slice(1)}`;
|
61
|
-
}
|
62
|
-
lpTokenSource.push(...(0, getLpTokenSourceRaw_1.getLpTokenSourceRaw)({
|
63
|
-
lpDetails: {
|
64
|
-
address: lpMint,
|
65
|
-
decimals: lpMintAccount.decimals,
|
66
|
-
supplyRaw: lpMintAccount.supply,
|
67
|
-
},
|
68
|
-
networkId: portfolio_core_1.NetworkId.solana,
|
69
|
-
platformId: constants_1.platformId,
|
70
|
-
poolUnderlyingsRaw: [
|
71
|
-
{
|
72
|
-
address: baseMint,
|
73
|
-
decimals: pool.baseMintDecimals,
|
74
|
-
reserveAmountRaw: pool.baseAmount,
|
75
|
-
weight: 0.5,
|
76
|
-
tokenPrice: basePrice,
|
77
|
-
},
|
78
|
-
{
|
79
|
-
address: quoteMint,
|
80
|
-
decimals: pool.quoteMintDecimals,
|
81
|
-
reserveAmountRaw: pool.quoteAmount,
|
82
|
-
weight: 0.5,
|
83
|
-
tokenPrice: quotePrice,
|
84
|
-
},
|
85
|
-
],
|
86
|
-
sourceId: pool.pubkey.toString(),
|
87
|
-
liquidityName: lpTypeName,
|
88
|
-
}));
|
89
|
-
}
|
90
|
-
yield cache.setTokenPriceSources(lpTokenSource);
|
91
|
-
});
|
92
|
-
const job = {
|
93
|
-
id: `${constants_1.platformId}-pools`,
|
94
|
-
executor,
|
95
|
-
label: 'normal',
|
96
|
-
};
|
97
|
-
exports.default = job;
|
98
|
-
//# sourceMappingURL=poolsJob.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"poolsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/metadao/poolsJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAyE;AAIzE,iDAAsD;AACtD,+CAK4B;AAC5B,wDAA4D;AAC5D,2CAAiD;AACjD,uCAAsC;AACtC,8EAA2E;AAE3E,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;;IACnD,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,KAAK,GAAG,MAAM,IAAA,iCAAwB,EAC1C,MAAM,EACN,mBAAS,EACT,kBAAM,EACN,IAAA,wBAAc,EAAC,GAAG,CAAC,CACpB,CAAC;IAEF,MAAM,KAAK,GAAgB,IAAI,GAAG,EAAE,CAAC;IACrC,MAAM,OAAO,GAAgB,EAAE,CAAC;IAChC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QACrB,IAAI,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,IAAI,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE;YAAE,OAAO;QAElE,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC,CAAC;QACrC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC;QACpC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC5B,CAAC,CAAC,CAAC;IAEH,MAAM,CAA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