@iotexproject/kit 0.2.17 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +501 -96
- package/package.json +2 -16
package/dist/index.d.ts
CHANGED
|
@@ -3453,17 +3453,17 @@ declare class IoID {
|
|
|
3453
3453
|
_symbol: string;
|
|
3454
3454
|
_amount: string;
|
|
3455
3455
|
}, ctx?: ConfigContext): Promise<{
|
|
3456
|
+
error: string;
|
|
3457
|
+
address?: undefined;
|
|
3458
|
+
value?: undefined;
|
|
3459
|
+
data?: undefined;
|
|
3460
|
+
chainId?: undefined;
|
|
3461
|
+
} | {
|
|
3456
3462
|
address: `0x${string}`;
|
|
3457
3463
|
value: string;
|
|
3458
3464
|
data: any;
|
|
3459
3465
|
chainId: string;
|
|
3460
3466
|
error?: undefined;
|
|
3461
|
-
} | {
|
|
3462
|
-
error: unknown;
|
|
3463
|
-
address?: undefined;
|
|
3464
|
-
value?: undefined;
|
|
3465
|
-
data?: undefined;
|
|
3466
|
-
chainId?: undefined;
|
|
3467
3467
|
}>;
|
|
3468
3468
|
setGauge(args: {
|
|
3469
3469
|
address: `0x${string}`;
|
|
@@ -3474,7 +3474,7 @@ declare class IoID {
|
|
|
3474
3474
|
chainId: string;
|
|
3475
3475
|
error?: undefined;
|
|
3476
3476
|
} | {
|
|
3477
|
-
error:
|
|
3477
|
+
error: string;
|
|
3478
3478
|
address?: undefined;
|
|
3479
3479
|
data?: undefined;
|
|
3480
3480
|
chainId?: undefined;
|
|
@@ -3484,15 +3484,15 @@ declare class IoID {
|
|
|
3484
3484
|
nftId: number;
|
|
3485
3485
|
weight: number;
|
|
3486
3486
|
}, ctx?: ConfigContext): Promise<{
|
|
3487
|
+
error: string;
|
|
3488
|
+
address?: undefined;
|
|
3489
|
+
data?: undefined;
|
|
3490
|
+
chainId?: undefined;
|
|
3491
|
+
} | {
|
|
3487
3492
|
address: any;
|
|
3488
3493
|
data: any;
|
|
3489
3494
|
chainId: string;
|
|
3490
3495
|
error?: undefined;
|
|
3491
|
-
} | {
|
|
3492
|
-
error: unknown;
|
|
3493
|
-
address?: undefined;
|
|
3494
|
-
data?: undefined;
|
|
3495
|
-
chainId?: undefined;
|
|
3496
3496
|
}>;
|
|
3497
3497
|
incrementMinterAllowance(args: {
|
|
3498
3498
|
amount: string;
|
|
@@ -3503,7 +3503,7 @@ declare class IoID {
|
|
|
3503
3503
|
chainId: string;
|
|
3504
3504
|
error?: undefined;
|
|
3505
3505
|
} | {
|
|
3506
|
-
error:
|
|
3506
|
+
error: string;
|
|
3507
3507
|
address?: undefined;
|
|
3508
3508
|
data?: undefined;
|
|
3509
3509
|
chainId?: undefined;
|
|
@@ -3518,7 +3518,7 @@ declare class IoID {
|
|
|
3518
3518
|
chainId: string;
|
|
3519
3519
|
error?: undefined;
|
|
3520
3520
|
} | {
|
|
3521
|
-
error:
|
|
3521
|
+
error: string;
|
|
3522
3522
|
value?: undefined;
|
|
3523
3523
|
address?: undefined;
|
|
3524
3524
|
data?: undefined;
|
|
@@ -3534,7 +3534,7 @@ declare class IoID {
|
|
|
3534
3534
|
chainId: string;
|
|
3535
3535
|
error?: undefined;
|
|
3536
3536
|
} | {
|
|
3537
|
-
error:
|
|
3537
|
+
error: string;
|
|
3538
3538
|
address?: undefined;
|
|
3539
3539
|
data?: undefined;
|
|
3540
3540
|
chainId?: undefined;
|
|
@@ -3542,7 +3542,7 @@ declare class IoID {
|
|
|
3542
3542
|
registedDevices(args: {
|
|
3543
3543
|
address: `0x${string}`;
|
|
3544
3544
|
}, ctx?: ConfigContext): Promise<IoIDDevice[] | {
|
|
3545
|
-
error:
|
|
3545
|
+
error: string;
|
|
3546
3546
|
}>;
|
|
3547
3547
|
get_project_metadata(args: {
|
|
3548
3548
|
address: `0x${string}`;
|
|
@@ -3553,7 +3553,7 @@ declare class IoID {
|
|
|
3553
3553
|
data: Record<string, any>;
|
|
3554
3554
|
error?: undefined;
|
|
3555
3555
|
} | {
|
|
3556
|
-
error:
|
|
3556
|
+
error: string;
|
|
3557
3557
|
address?: undefined;
|
|
3558
3558
|
data?: undefined;
|
|
3559
3559
|
}>;
|
|
@@ -4788,7 +4788,7 @@ declare class MarshallDao {
|
|
|
4788
4788
|
chainId: string;
|
|
4789
4789
|
error?: undefined;
|
|
4790
4790
|
} | {
|
|
4791
|
-
error:
|
|
4791
|
+
error: string;
|
|
4792
4792
|
data?: undefined;
|
|
4793
4793
|
address?: undefined;
|
|
4794
4794
|
chainId?: undefined;
|
|
@@ -4806,7 +4806,7 @@ declare class MarshallDao {
|
|
|
4806
4806
|
chainId: string;
|
|
4807
4807
|
error?: undefined;
|
|
4808
4808
|
} | {
|
|
4809
|
-
error:
|
|
4809
|
+
error: string;
|
|
4810
4810
|
data?: undefined;
|
|
4811
4811
|
approve?: undefined;
|
|
4812
4812
|
approveAddress?: undefined;
|
|
@@ -5998,7 +5998,7 @@ declare class Mimo {
|
|
|
5998
5998
|
getLpListByAddress(args: {
|
|
5999
5999
|
address: string;
|
|
6000
6000
|
}): Promise<{
|
|
6001
|
-
address:
|
|
6001
|
+
address: `0x${string}`;
|
|
6002
6002
|
token0: {
|
|
6003
6003
|
id: `0x${string}`;
|
|
6004
6004
|
price: any;
|
|
@@ -7037,7 +7037,7 @@ declare class Staking {
|
|
|
7037
7037
|
one_day: any;
|
|
7038
7038
|
error?: undefined;
|
|
7039
7039
|
} | {
|
|
7040
|
-
error:
|
|
7040
|
+
error: string;
|
|
7041
7041
|
min_amount?: undefined;
|
|
7042
7042
|
max_duration?: undefined;
|
|
7043
7043
|
one_day?: undefined;
|
|
@@ -7050,7 +7050,7 @@ declare class Staking {
|
|
|
7050
7050
|
one_day: any;
|
|
7051
7051
|
error?: undefined;
|
|
7052
7052
|
} | {
|
|
7053
|
-
error:
|
|
7053
|
+
error: string;
|
|
7054
7054
|
min_amount?: undefined;
|
|
7055
7055
|
max_duration?: undefined;
|
|
7056
7056
|
one_day?: undefined;
|
|
@@ -7095,7 +7095,7 @@ declare class Staking {
|
|
|
7095
7095
|
data: any;
|
|
7096
7096
|
error?: undefined;
|
|
7097
7097
|
} | {
|
|
7098
|
-
error:
|
|
7098
|
+
error: string;
|
|
7099
7099
|
data?: undefined;
|
|
7100
7100
|
}>;
|
|
7101
7101
|
delegate_detail(args: {
|
|
@@ -7104,7 +7104,7 @@ declare class Staking {
|
|
|
7104
7104
|
data: any;
|
|
7105
7105
|
error?: undefined;
|
|
7106
7106
|
} | {
|
|
7107
|
-
error:
|
|
7107
|
+
error: string;
|
|
7108
7108
|
data?: undefined;
|
|
7109
7109
|
}>;
|
|
7110
7110
|
getDelegateByAddress(args: {
|
|
@@ -7306,7 +7306,7 @@ declare class BondingCurve {
|
|
|
7306
7306
|
value: string;
|
|
7307
7307
|
error?: undefined;
|
|
7308
7308
|
} | {
|
|
7309
|
-
error:
|
|
7309
|
+
error: string;
|
|
7310
7310
|
address?: undefined;
|
|
7311
7311
|
data?: undefined;
|
|
7312
7312
|
chainId?: undefined;
|
|
@@ -7370,7 +7370,7 @@ declare class BondingCurve {
|
|
|
7370
7370
|
quote: string;
|
|
7371
7371
|
error?: undefined;
|
|
7372
7372
|
} | {
|
|
7373
|
-
error:
|
|
7373
|
+
error: string;
|
|
7374
7374
|
data?: undefined;
|
|
7375
7375
|
quote?: undefined;
|
|
7376
7376
|
}>;
|
|
@@ -8657,11 +8657,11 @@ declare class Delegate {
|
|
|
8657
8657
|
unclaimedReward(args: {
|
|
8658
8658
|
account: `0x${string}` | `io${string}`;
|
|
8659
8659
|
}, ctx?: ConfigContext): Promise<{
|
|
8660
|
+
error: string;
|
|
8661
|
+
unclaimedBalance?: undefined;
|
|
8662
|
+
} | {
|
|
8660
8663
|
unclaimedBalance: any;
|
|
8661
8664
|
error?: undefined;
|
|
8662
|
-
} | {
|
|
8663
|
-
error: unknown;
|
|
8664
|
-
unclaimedBalance?: undefined;
|
|
8665
8665
|
}>;
|
|
8666
8666
|
}
|
|
8667
8667
|
declare const modules: {
|
|
@@ -8685,9 +8685,310 @@ declare class ClickHouseSDK {
|
|
|
8685
8685
|
constructor(dbUrl: string);
|
|
8686
8686
|
query(sql: string): Promise<any>;
|
|
8687
8687
|
}
|
|
8688
|
+
/**
|
|
8689
|
+
* Proto3-JSON shapes for iotex-analyser-api responses.
|
|
8690
|
+
* Field names follow proto3 -> camelCase mapping. uint64 fields are returned
|
|
8691
|
+
* as JSON strings by grpc-gateway, so use `string` for them and coerce at
|
|
8692
|
+
* the call site if a number is needed.
|
|
8693
|
+
*/
|
|
8694
|
+
export interface Pagination {
|
|
8695
|
+
skip?: number;
|
|
8696
|
+
first?: number;
|
|
8697
|
+
order?: "asc" | "desc";
|
|
8698
|
+
}
|
|
8699
|
+
export interface BlockInfo {
|
|
8700
|
+
blockHeight: string;
|
|
8701
|
+
blockHash: string;
|
|
8702
|
+
producerAddress: string;
|
|
8703
|
+
numActions: string;
|
|
8704
|
+
timestamp: string;
|
|
8705
|
+
gasConsumed?: string;
|
|
8706
|
+
producerName?: string;
|
|
8707
|
+
blockReward?: string;
|
|
8708
|
+
epochNum?: string;
|
|
8709
|
+
priorityBonus?: string;
|
|
8710
|
+
baseFee?: string;
|
|
8711
|
+
}
|
|
8712
|
+
export interface BlockMeta {
|
|
8713
|
+
blockHeight: string;
|
|
8714
|
+
epochHeight: string;
|
|
8715
|
+
epochNum: string;
|
|
8716
|
+
gasConsumed?: string;
|
|
8717
|
+
producerName?: string;
|
|
8718
|
+
producerAddress?: string;
|
|
8719
|
+
blockReward?: string;
|
|
8720
|
+
numActions?: string;
|
|
8721
|
+
timestamp?: string;
|
|
8722
|
+
}
|
|
8723
|
+
export interface EpochInfo {
|
|
8724
|
+
epochHeight: string;
|
|
8725
|
+
epochNum: string;
|
|
8726
|
+
}
|
|
8727
|
+
export interface ChainAggregates {
|
|
8728
|
+
contractCount: string;
|
|
8729
|
+
nodesCount: string;
|
|
8730
|
+
totalStakedIotx: string;
|
|
8731
|
+
totalNumActions: string;
|
|
8732
|
+
latestBlockHeight: string;
|
|
8733
|
+
latestBlockTps: number;
|
|
8734
|
+
epochNum: string;
|
|
8735
|
+
epochHeight: string;
|
|
8736
|
+
}
|
|
8737
|
+
export interface TotalBurned {
|
|
8738
|
+
totalBurned: string;
|
|
8739
|
+
totalBurnedRau: string;
|
|
8740
|
+
asOfBlockHeight: string;
|
|
8741
|
+
}
|
|
8742
|
+
export interface StakingRatioPoint {
|
|
8743
|
+
dateTime: string;
|
|
8744
|
+
ratio: string;
|
|
8745
|
+
allStaking?: string;
|
|
8746
|
+
}
|
|
8747
|
+
export interface HolderPoint {
|
|
8748
|
+
date: string;
|
|
8749
|
+
holders: string;
|
|
8750
|
+
}
|
|
8751
|
+
export interface TokenBalance {
|
|
8752
|
+
contractAddress: string;
|
|
8753
|
+
balance: string;
|
|
8754
|
+
}
|
|
8755
|
+
export interface TokenBalanceDetail extends TokenBalance {
|
|
8756
|
+
name?: string;
|
|
8757
|
+
symbol?: string;
|
|
8758
|
+
decimals?: number;
|
|
8759
|
+
priceToIotex?: string;
|
|
8760
|
+
}
|
|
8761
|
+
export interface DeployedContract {
|
|
8762
|
+
actionHash: string;
|
|
8763
|
+
contractAddress: string;
|
|
8764
|
+
timestamp: string;
|
|
8765
|
+
}
|
|
8766
|
+
export interface ActionInfo {
|
|
8767
|
+
actHash: string;
|
|
8768
|
+
blkHash?: string;
|
|
8769
|
+
timeStamp?: string;
|
|
8770
|
+
actType?: string;
|
|
8771
|
+
sender?: string;
|
|
8772
|
+
recipient?: string;
|
|
8773
|
+
amount?: string;
|
|
8774
|
+
gasPrice?: string;
|
|
8775
|
+
gasFee?: string;
|
|
8776
|
+
status?: string;
|
|
8777
|
+
blkHeight?: string;
|
|
8778
|
+
contract?: string;
|
|
8779
|
+
nonce?: string;
|
|
8780
|
+
gasLimit?: string;
|
|
8781
|
+
gasConsumed?: string;
|
|
8782
|
+
data?: string;
|
|
8783
|
+
}
|
|
8784
|
+
export interface EvmTransfer {
|
|
8785
|
+
actionHash: string;
|
|
8786
|
+
blockHash?: string;
|
|
8787
|
+
blockHeight: string;
|
|
8788
|
+
timestamp?: string;
|
|
8789
|
+
from: string;
|
|
8790
|
+
to: string;
|
|
8791
|
+
quantity: string;
|
|
8792
|
+
contractAddress?: string;
|
|
8793
|
+
}
|
|
8794
|
+
export interface AllActionsByAddressResult {
|
|
8795
|
+
actionHash: string;
|
|
8796
|
+
blockHeight: string;
|
|
8797
|
+
timestamp?: string;
|
|
8798
|
+
actionType?: string;
|
|
8799
|
+
sender: string;
|
|
8800
|
+
recipient: string;
|
|
8801
|
+
amount: string;
|
|
8802
|
+
gasFee?: string;
|
|
8803
|
+
status?: string;
|
|
8804
|
+
contractAddress?: string;
|
|
8805
|
+
nonce?: string;
|
|
8806
|
+
}
|
|
8807
|
+
export interface EvmTransferDetailResult {
|
|
8808
|
+
actionHash: string;
|
|
8809
|
+
blockHeight: string;
|
|
8810
|
+
timestamp?: string;
|
|
8811
|
+
from: string;
|
|
8812
|
+
to: string;
|
|
8813
|
+
quantity: string;
|
|
8814
|
+
contractAddress: string;
|
|
8815
|
+
}
|
|
8816
|
+
export interface DelegateRecord {
|
|
8817
|
+
blockHeight: string;
|
|
8818
|
+
candidateAddress?: string;
|
|
8819
|
+
candidateName?: string;
|
|
8820
|
+
operatorAddress?: string;
|
|
8821
|
+
rewardAddress?: string;
|
|
8822
|
+
selfStakingTokens?: string;
|
|
8823
|
+
totalWeightedVotes?: string;
|
|
8824
|
+
stakeAmount?: string;
|
|
8825
|
+
active?: boolean;
|
|
8826
|
+
[k: string]: unknown;
|
|
8827
|
+
}
|
|
8828
|
+
export interface BucketByActionHashInfo {
|
|
8829
|
+
actionHash: string;
|
|
8830
|
+
bucketId: string;
|
|
8831
|
+
actionType: string;
|
|
8832
|
+
sender: string;
|
|
8833
|
+
ownerAddress: string;
|
|
8834
|
+
stakedAmount: string;
|
|
8835
|
+
votingPower: string;
|
|
8836
|
+
amount: string;
|
|
8837
|
+
duration: string;
|
|
8838
|
+
autoStake: boolean;
|
|
8839
|
+
delegate: string;
|
|
8840
|
+
timestamp: string;
|
|
8841
|
+
}
|
|
8842
|
+
export interface ProducerBlock {
|
|
8843
|
+
blockHeight: string;
|
|
8844
|
+
blockHash: string;
|
|
8845
|
+
producerAddress: string;
|
|
8846
|
+
numActions: string;
|
|
8847
|
+
timestamp: string;
|
|
8848
|
+
gasConsumed?: string;
|
|
8849
|
+
producerName?: string;
|
|
8850
|
+
blockReward?: string;
|
|
8851
|
+
}
|
|
8852
|
+
export interface VoteByHeightResponse {
|
|
8853
|
+
height: string;
|
|
8854
|
+
stakeAmount: string[];
|
|
8855
|
+
voteWeight: string[];
|
|
8856
|
+
}
|
|
8857
|
+
declare const analyserApi: {
|
|
8858
|
+
Chain: {
|
|
8859
|
+
getLatestBlockHeight: () => Promise<{
|
|
8860
|
+
height: string;
|
|
8861
|
+
}>;
|
|
8862
|
+
getBlockByHeight: (height: number | string) => Promise<{
|
|
8863
|
+
exist?: boolean;
|
|
8864
|
+
block?: BlockInfo;
|
|
8865
|
+
}>;
|
|
8866
|
+
getBlocks: (page: number, limit: number, beforeHeight?: number) => Promise<{
|
|
8867
|
+
blocks?: BlockInfo[];
|
|
8868
|
+
}>;
|
|
8869
|
+
getEpochInfo: () => Promise<EpochInfo>;
|
|
8870
|
+
getBlockByTimestamp: (timestamp: string) => Promise<{
|
|
8871
|
+
exist?: boolean;
|
|
8872
|
+
blockHeight?: string;
|
|
8873
|
+
timestamp?: string;
|
|
8874
|
+
}>;
|
|
8875
|
+
getBlocksByHeights: (heights: Array<number | string>) => Promise<{
|
|
8876
|
+
blocks?: BlockInfo[];
|
|
8877
|
+
}>;
|
|
8878
|
+
getBlockMeta: (args: {
|
|
8879
|
+
blockHeight?: number | string;
|
|
8880
|
+
startBlock?: number | string;
|
|
8881
|
+
endBlock?: number | string;
|
|
8882
|
+
}) => Promise<{
|
|
8883
|
+
items?: BlockMeta[];
|
|
8884
|
+
}>;
|
|
8885
|
+
getChainAggregates: () => Promise<ChainAggregates>;
|
|
8886
|
+
getTotalBurned: () => Promise<TotalBurned>;
|
|
8887
|
+
getStakingRatioHistory: (startTime: string, endTime: string) => Promise<{
|
|
8888
|
+
data?: StakingRatioPoint[];
|
|
8889
|
+
}>;
|
|
8890
|
+
};
|
|
8891
|
+
Account: {
|
|
8892
|
+
getAddressTokenBalances: (address: string) => Promise<{
|
|
8893
|
+
balances?: TokenBalance[];
|
|
8894
|
+
}>;
|
|
8895
|
+
getAddressTokenBalancesDetail: (address: string) => Promise<{
|
|
8896
|
+
tokens?: TokenBalanceDetail[];
|
|
8897
|
+
}>;
|
|
8898
|
+
getContractsDeployedByAddress: (address: string, pagination: Pagination) => Promise<{
|
|
8899
|
+
count?: string;
|
|
8900
|
+
contracts?: DeployedContract[];
|
|
8901
|
+
}>;
|
|
8902
|
+
getContractByteCode: (address: string) => Promise<{
|
|
8903
|
+
exist?: boolean;
|
|
8904
|
+
byteCodeHex?: string;
|
|
8905
|
+
}>;
|
|
8906
|
+
getHoldersHistory: (startDate: string, endDate: string) => Promise<{
|
|
8907
|
+
data?: HolderPoint[];
|
|
8908
|
+
}>;
|
|
8909
|
+
};
|
|
8910
|
+
Action: {
|
|
8911
|
+
actionByAddress: (args: {
|
|
8912
|
+
address: string;
|
|
8913
|
+
pagination?: Pagination;
|
|
8914
|
+
sender?: string;
|
|
8915
|
+
recipient?: string;
|
|
8916
|
+
actionType?: string;
|
|
8917
|
+
startTime?: string;
|
|
8918
|
+
endTime?: string;
|
|
8919
|
+
}) => Promise<{
|
|
8920
|
+
exist?: boolean;
|
|
8921
|
+
actions?: ActionInfo[];
|
|
8922
|
+
count?: string;
|
|
8923
|
+
}>;
|
|
8924
|
+
actionByHash: (actHash: string, includeFields?: string[]) => Promise<{
|
|
8925
|
+
[k: string]: unknown;
|
|
8926
|
+
exist?: boolean;
|
|
8927
|
+
actionInfo?: ActionInfo;
|
|
8928
|
+
}>;
|
|
8929
|
+
evmTransfersByAddress: (address: string, pagination: Pagination) => Promise<{
|
|
8930
|
+
exist?: boolean;
|
|
8931
|
+
count?: string;
|
|
8932
|
+
evmTransfers?: EvmTransfer[];
|
|
8933
|
+
}>;
|
|
8934
|
+
};
|
|
8935
|
+
Actions: {
|
|
8936
|
+
getEvmTransferDetailListByAddress: (args: {
|
|
8937
|
+
address: string;
|
|
8938
|
+
height?: number | string;
|
|
8939
|
+
offset?: number;
|
|
8940
|
+
size?: number;
|
|
8941
|
+
sort?: string;
|
|
8942
|
+
}) => Promise<{
|
|
8943
|
+
count?: string;
|
|
8944
|
+
results?: EvmTransferDetailResult[];
|
|
8945
|
+
}>;
|
|
8946
|
+
getAllActionsByAddress: (args: {
|
|
8947
|
+
address: string;
|
|
8948
|
+
height?: number | string;
|
|
8949
|
+
offset?: number;
|
|
8950
|
+
size?: number;
|
|
8951
|
+
sort?: string;
|
|
8952
|
+
}) => Promise<{
|
|
8953
|
+
count?: string;
|
|
8954
|
+
results?: AllActionsByAddressResult[];
|
|
8955
|
+
}>;
|
|
8956
|
+
getMimoSwapVolume: (args: {
|
|
8957
|
+
userAddress: string;
|
|
8958
|
+
tokenContract: string;
|
|
8959
|
+
mimoRouter: string;
|
|
8960
|
+
}) => Promise<{
|
|
8961
|
+
amount?: string;
|
|
8962
|
+
}>;
|
|
8963
|
+
};
|
|
8964
|
+
Staking: {
|
|
8965
|
+
voteByHeight: (height: number | string, addresses: string[]) => Promise<VoteByHeightResponse>;
|
|
8966
|
+
getBucketByActionHash: (actionHash: string) => Promise<{
|
|
8967
|
+
exist?: boolean;
|
|
8968
|
+
bucket?: BucketByActionHashInfo;
|
|
8969
|
+
}>;
|
|
8970
|
+
};
|
|
8971
|
+
Voting: {
|
|
8972
|
+
getCurrentDelegates: () => Promise<{
|
|
8973
|
+
exist?: boolean;
|
|
8974
|
+
delegates?: Array<Record<string, unknown>>;
|
|
8975
|
+
}>;
|
|
8976
|
+
};
|
|
8977
|
+
Delegate: {
|
|
8978
|
+
getDelegatesByHeight: (height?: number | string) => Promise<{
|
|
8979
|
+
height?: string;
|
|
8980
|
+
delegates?: DelegateRecord[];
|
|
8981
|
+
}>;
|
|
8982
|
+
getBlocksByProducer: (producerAddress: string, pagination: Pagination) => Promise<{
|
|
8983
|
+
count?: string;
|
|
8984
|
+
blocks?: ProducerBlock[];
|
|
8985
|
+
}>;
|
|
8986
|
+
};
|
|
8987
|
+
};
|
|
8988
|
+
export type AnalyserApi = typeof analyserApi;
|
|
8688
8989
|
declare class BaseDBModule {
|
|
8689
8990
|
ch: ClickHouseSDK;
|
|
8690
|
-
|
|
8991
|
+
analyserApi: AnalyserApi;
|
|
8691
8992
|
scout: ReturnType<typeof postgres>;
|
|
8692
8993
|
iotexscan: ReturnType<typeof postgres>;
|
|
8693
8994
|
iopay: ReturnType<typeof postgres>;
|
|
@@ -8722,12 +9023,19 @@ declare class Account extends BaseDBModule {
|
|
|
8722
9023
|
number,
|
|
8723
9024
|
number
|
|
8724
9025
|
][];
|
|
8725
|
-
}
|
|
9026
|
+
}>;
|
|
8726
9027
|
private convertBalanceChartData;
|
|
8727
9028
|
getXrc20Tokens({ address }: {
|
|
8728
9029
|
address: string;
|
|
8729
9030
|
}): Promise<{
|
|
8730
|
-
tokens:
|
|
9031
|
+
tokens: {
|
|
9032
|
+
balance: number;
|
|
9033
|
+
address: string;
|
|
9034
|
+
name: string | null;
|
|
9035
|
+
symbol: string | null;
|
|
9036
|
+
decimals: number;
|
|
9037
|
+
price: number;
|
|
9038
|
+
}[];
|
|
8731
9039
|
}>;
|
|
8732
9040
|
}
|
|
8733
9041
|
declare class Analyzer extends BaseDBModule {
|
|
@@ -8736,8 +9044,8 @@ declare class Analyzer extends BaseDBModule {
|
|
|
8736
9044
|
start_date?: string;
|
|
8737
9045
|
end_date?: string;
|
|
8738
9046
|
}): Promise<import("postgres").RowList<import("postgres").Row[]>>;
|
|
8739
|
-
contractCount(): Promise<
|
|
8740
|
-
totalStakedIotx(): Promise<
|
|
9047
|
+
contractCount(): Promise<number>;
|
|
9048
|
+
totalStakedIotx(): Promise<string>;
|
|
8741
9049
|
activeWalletCount({ start_date, end_date, }?: {
|
|
8742
9050
|
start_date?: string;
|
|
8743
9051
|
end_date?: string;
|
|
@@ -8774,7 +9082,7 @@ declare class Analyzer extends BaseDBModule {
|
|
|
8774
9082
|
start_date?: string;
|
|
8775
9083
|
end_date?: string;
|
|
8776
9084
|
}): Promise<any>;
|
|
8777
|
-
nodesCount(): Promise<
|
|
9085
|
+
nodesCount(): Promise<number>;
|
|
8778
9086
|
dappsCount(): Promise<any>;
|
|
8779
9087
|
totalCrossChainTxCount(): Promise<number>;
|
|
8780
9088
|
nftContractCount(): Promise<any>;
|
|
@@ -8782,31 +9090,56 @@ declare class Analyzer extends BaseDBModule {
|
|
|
8782
9090
|
start_date?: string;
|
|
8783
9091
|
end_date?: string;
|
|
8784
9092
|
}): Promise<{
|
|
9093
|
+
staking: string | null;
|
|
9094
|
+
staking_ratio: string;
|
|
8785
9095
|
date_time: string;
|
|
8786
9096
|
}[]>;
|
|
8787
9097
|
dailyIoTexHolder({ start_date, end_date, }?: {
|
|
8788
9098
|
start_date?: string;
|
|
8789
9099
|
end_date?: string;
|
|
8790
|
-
}): Promise<
|
|
9100
|
+
}): Promise<{
|
|
9101
|
+
date: string;
|
|
9102
|
+
holders: number;
|
|
9103
|
+
}[]>;
|
|
8791
9104
|
avgStakingDurationHistory({ start_date, end_date, }?: {
|
|
8792
9105
|
start_date?: string;
|
|
8793
9106
|
end_date?: string;
|
|
8794
9107
|
}): Promise<import("postgres").RowList<import("postgres").Row[]>>;
|
|
8795
9108
|
burned_iotx(): Promise<string>;
|
|
8796
9109
|
chain_meta(): Promise<{
|
|
8797
|
-
height:
|
|
8798
|
-
numberActions:
|
|
8799
|
-
tps:
|
|
9110
|
+
height: number;
|
|
9111
|
+
numberActions: number;
|
|
9112
|
+
tps: number;
|
|
8800
9113
|
epoch: {
|
|
8801
|
-
num:
|
|
8802
|
-
height:
|
|
9114
|
+
num: number;
|
|
9115
|
+
height: number;
|
|
8803
9116
|
};
|
|
8804
9117
|
}>;
|
|
8805
9118
|
get_block_meta({ block_height, start_block, end_block, }?: {
|
|
8806
9119
|
block_height?: number | string;
|
|
8807
9120
|
start_block?: number | string;
|
|
8808
9121
|
end_block?: number | string;
|
|
8809
|
-
}): Promise<
|
|
9122
|
+
}): Promise<{
|
|
9123
|
+
block_height: string;
|
|
9124
|
+
epoch_height: string;
|
|
9125
|
+
epoch_num: string;
|
|
9126
|
+
gas_consumed: string;
|
|
9127
|
+
producer_name: string | null;
|
|
9128
|
+
producer_address: string | null;
|
|
9129
|
+
block_reward: string | null;
|
|
9130
|
+
num_actions: string;
|
|
9131
|
+
timestamp: string | null;
|
|
9132
|
+
} | {
|
|
9133
|
+
block_height: string;
|
|
9134
|
+
epoch_height: string;
|
|
9135
|
+
epoch_num: string;
|
|
9136
|
+
gas_consumed: string;
|
|
9137
|
+
producer_name: string | null;
|
|
9138
|
+
producer_address: string | null;
|
|
9139
|
+
block_reward: string | null;
|
|
9140
|
+
num_actions: string;
|
|
9141
|
+
timestamp: string | null;
|
|
9142
|
+
}[] | null>;
|
|
8810
9143
|
worker_metrics(): Promise<import("postgres").RowList<import("postgres").Row[]>>;
|
|
8811
9144
|
}
|
|
8812
9145
|
export interface ItemNFT {
|
|
@@ -8842,29 +9175,47 @@ declare class NFT extends BaseDBModule {
|
|
|
8842
9175
|
declare class Transaction extends BaseDBModule {
|
|
8843
9176
|
getTransactionsCountByAccount({ address }: {
|
|
8844
9177
|
address: string;
|
|
8845
|
-
}): Promise<
|
|
9178
|
+
}): Promise<number>;
|
|
8846
9179
|
getTransactionsByAccount({ address, pageSize, startCursor, endCursor }: {
|
|
8847
9180
|
address: string;
|
|
8848
9181
|
pageSize?: number;
|
|
8849
|
-
startCursor?: number;
|
|
8850
|
-
endCursor?: number;
|
|
9182
|
+
startCursor?: number | string;
|
|
9183
|
+
endCursor?: number | string;
|
|
8851
9184
|
}): Promise<{
|
|
8852
|
-
data:
|
|
8853
|
-
|
|
8854
|
-
|
|
9185
|
+
data: {
|
|
9186
|
+
id: number;
|
|
9187
|
+
action_hash: string;
|
|
9188
|
+
action_type: string;
|
|
9189
|
+
block_height: number;
|
|
9190
|
+
sender: string;
|
|
9191
|
+
from: string;
|
|
9192
|
+
recipient: string;
|
|
9193
|
+
to: string;
|
|
9194
|
+
gas_price: string;
|
|
9195
|
+
gas_limit: number;
|
|
9196
|
+
gas_consumed: number;
|
|
9197
|
+
nonce: number;
|
|
9198
|
+
amount: string;
|
|
9199
|
+
status: number;
|
|
9200
|
+
contract_address: string | null;
|
|
9201
|
+
timestamp: string;
|
|
9202
|
+
method_name: any;
|
|
9203
|
+
}[];
|
|
9204
|
+
startCursor: string | null;
|
|
9205
|
+
endCursor: string | null;
|
|
8855
9206
|
}>;
|
|
8856
9207
|
getAllTransactionsWithAssetsCountByAccount({ address }: {
|
|
8857
9208
|
address: string;
|
|
8858
|
-
}): Promise<
|
|
9209
|
+
}): Promise<number>;
|
|
8859
9210
|
getAllTransactionsWithAssetsByAccount({ address, pageSize, startCursor, endCursor }: {
|
|
8860
9211
|
address: string;
|
|
8861
9212
|
pageSize?: number;
|
|
8862
9213
|
startCursor?: string;
|
|
8863
9214
|
endCursor?: string;
|
|
8864
9215
|
}): Promise<{
|
|
8865
|
-
data:
|
|
8866
|
-
endCursor: string;
|
|
9216
|
+
data: any[];
|
|
8867
9217
|
startCursor: string;
|
|
9218
|
+
endCursor: string;
|
|
8868
9219
|
total: number;
|
|
8869
9220
|
}>;
|
|
8870
9221
|
}
|
|
@@ -8909,10 +9260,33 @@ export type DelegateVotes = {
|
|
|
8909
9260
|
declare class Staking$1 extends BaseDBModule {
|
|
8910
9261
|
delegatesByHeight({ height }?: {
|
|
8911
9262
|
height?: number;
|
|
8912
|
-
}): Promise<
|
|
9263
|
+
}): Promise<{
|
|
9264
|
+
block_height: number;
|
|
9265
|
+
candidate_address: string | null;
|
|
9266
|
+
candidate_name: string | null;
|
|
9267
|
+
operator_address: string | null;
|
|
9268
|
+
reward_address: string | null;
|
|
9269
|
+
self_staking_tokens: string;
|
|
9270
|
+
total_weighted_votes: string;
|
|
9271
|
+
stake_amount: string;
|
|
9272
|
+
active: boolean;
|
|
9273
|
+
}[]>;
|
|
8913
9274
|
bucketByHash({ hash }: {
|
|
8914
9275
|
hash: string;
|
|
8915
|
-
}): Promise<
|
|
9276
|
+
}): Promise<{
|
|
9277
|
+
action_hash: string;
|
|
9278
|
+
bucket_id: number;
|
|
9279
|
+
action_type: string;
|
|
9280
|
+
sender: string;
|
|
9281
|
+
owner_address: string;
|
|
9282
|
+
staked_amount: string;
|
|
9283
|
+
voting_power: string;
|
|
9284
|
+
amount: string;
|
|
9285
|
+
duration: string;
|
|
9286
|
+
auto_stake: boolean;
|
|
9287
|
+
delegate: string;
|
|
9288
|
+
timestamp: string;
|
|
9289
|
+
} | null>;
|
|
8916
9290
|
delegate_votes(args: {
|
|
8917
9291
|
delegateName: string;
|
|
8918
9292
|
page: number;
|
|
@@ -8926,7 +9300,16 @@ declare class Staking$1 extends BaseDBModule {
|
|
|
8926
9300
|
limit: number;
|
|
8927
9301
|
}): Promise<{
|
|
8928
9302
|
data: {
|
|
8929
|
-
blocks:
|
|
9303
|
+
blocks: {
|
|
9304
|
+
block_height: number;
|
|
9305
|
+
block_hash: string;
|
|
9306
|
+
producer_address: string;
|
|
9307
|
+
num_actions: number;
|
|
9308
|
+
timestamp: string;
|
|
9309
|
+
gas_consumed: number;
|
|
9310
|
+
producer_name: string | null;
|
|
9311
|
+
block_reward: string | null;
|
|
9312
|
+
}[];
|
|
8930
9313
|
total: number;
|
|
8931
9314
|
};
|
|
8932
9315
|
}>;
|
|
@@ -8992,7 +9375,7 @@ declare class Mimo$1 extends BaseDBModule {
|
|
|
8992
9375
|
}): Promise<never[] | import("postgres").RowList<import("postgres").Row[]> | undefined>;
|
|
8993
9376
|
token_tx_v3({ token }: {
|
|
8994
9377
|
token: string;
|
|
8995
|
-
}): Promise<any>;
|
|
9378
|
+
}): Promise<any[]>;
|
|
8996
9379
|
mimo_swap_volume(args: {
|
|
8997
9380
|
token: string;
|
|
8998
9381
|
user: string;
|
|
@@ -9365,10 +9748,14 @@ declare class Dao extends BaseDBModule {
|
|
|
9365
9748
|
title?: string;
|
|
9366
9749
|
}): Promise<ProposalV2>;
|
|
9367
9750
|
}
|
|
9751
|
+
export type SignedAuth = {
|
|
9752
|
+
message: string;
|
|
9753
|
+
signature: string;
|
|
9754
|
+
};
|
|
9368
9755
|
export type ProfileMeta = {
|
|
9369
9756
|
name: string;
|
|
9370
9757
|
temp_eth_address: string;
|
|
9371
|
-
};
|
|
9758
|
+
} & SignedAuth;
|
|
9372
9759
|
type Candidate$1 = {
|
|
9373
9760
|
name?: string;
|
|
9374
9761
|
logo?: string;
|
|
@@ -9386,7 +9773,7 @@ type Candidate$1 = {
|
|
|
9386
9773
|
email?: string;
|
|
9387
9774
|
reward_distribution_details?: string;
|
|
9388
9775
|
webhook?: string;
|
|
9389
|
-
};
|
|
9776
|
+
} & SignedAuth;
|
|
9390
9777
|
export type CandidateProfile = {
|
|
9391
9778
|
name: string;
|
|
9392
9779
|
blurb: string;
|
|
@@ -9469,6 +9856,8 @@ export type DelegateStatistics = {
|
|
|
9469
9856
|
total_amount: string;
|
|
9470
9857
|
};
|
|
9471
9858
|
declare class Delegate$1 extends BaseDBModule {
|
|
9859
|
+
private verifySigner;
|
|
9860
|
+
private assertDelegatePermission;
|
|
9472
9861
|
private getNsv3Db;
|
|
9473
9862
|
upsertCandidateProfile(args: ProfileMeta): Promise<{
|
|
9474
9863
|
status: string;
|
|
@@ -9546,26 +9935,25 @@ declare class Delegate$1 extends BaseDBModule {
|
|
|
9546
9935
|
status: string;
|
|
9547
9936
|
data: import("postgres").RowList<DelegateMember[]>;
|
|
9548
9937
|
}>;
|
|
9549
|
-
upsertMember({ member_address, candidate_meta_id, is_active,
|
|
9938
|
+
upsertMember({ member_address, candidate_meta_id, is_active, message, signature }: {
|
|
9550
9939
|
member_address: string;
|
|
9551
9940
|
candidate_meta_id: number;
|
|
9552
9941
|
is_active: boolean;
|
|
9553
|
-
|
|
9554
|
-
}): Promise<{
|
|
9942
|
+
} & SignedAuth): Promise<{
|
|
9555
9943
|
status: string;
|
|
9556
9944
|
data: null;
|
|
9557
9945
|
}>;
|
|
9558
|
-
updateCandidateOwner({ candidate_owner, id }: {
|
|
9946
|
+
updateCandidateOwner({ candidate_owner, id, message, signature }: {
|
|
9559
9947
|
candidate_owner: string;
|
|
9560
9948
|
id: number;
|
|
9561
|
-
}): Promise<{
|
|
9949
|
+
} & SignedAuth): Promise<{
|
|
9562
9950
|
status: string;
|
|
9563
9951
|
data: null;
|
|
9564
9952
|
}>;
|
|
9565
|
-
transferDelegateOwnership({ candidate_owner, id }: {
|
|
9953
|
+
transferDelegateOwnership({ candidate_owner, id, message, signature }: {
|
|
9566
9954
|
candidate_owner: string;
|
|
9567
9955
|
id: number;
|
|
9568
|
-
}): Promise<{
|
|
9956
|
+
} & SignedAuth): Promise<{
|
|
9569
9957
|
status: string;
|
|
9570
9958
|
data: null;
|
|
9571
9959
|
}>;
|
|
@@ -9575,17 +9963,17 @@ declare class Delegate$1 extends BaseDBModule {
|
|
|
9575
9963
|
status: string;
|
|
9576
9964
|
data: MyProfileListItem[];
|
|
9577
9965
|
}>;
|
|
9578
|
-
updateDelegateBanner({ banner_url, temp_eth_address }: {
|
|
9966
|
+
updateDelegateBanner({ banner_url, temp_eth_address, message, signature }: {
|
|
9579
9967
|
banner_url: string;
|
|
9580
9968
|
temp_eth_address: string;
|
|
9581
|
-
}): Promise<{
|
|
9969
|
+
} & SignedAuth): Promise<{
|
|
9582
9970
|
status: string;
|
|
9583
9971
|
data: null;
|
|
9584
9972
|
}>;
|
|
9585
|
-
updateDelegateLogo({ logo, temp_eth_address }: {
|
|
9973
|
+
updateDelegateLogo({ logo, temp_eth_address, message, signature }: {
|
|
9586
9974
|
logo: string;
|
|
9587
9975
|
temp_eth_address: string;
|
|
9588
|
-
}): Promise<{
|
|
9976
|
+
} & SignedAuth): Promise<{
|
|
9589
9977
|
status: string;
|
|
9590
9978
|
data: null;
|
|
9591
9979
|
}>;
|
|
@@ -9631,15 +10019,15 @@ declare class Delegate$1 extends BaseDBModule {
|
|
|
9631
10019
|
}>;
|
|
9632
10020
|
}
|
|
9633
10021
|
declare class Block extends BaseDBModule {
|
|
9634
|
-
getBlockByTimestamp(
|
|
10022
|
+
getBlockByTimestamp(dayjsArg: Dayjs): Promise<number | undefined>;
|
|
9635
10023
|
getBlocksInfoByBlocksHeight({ blocksHeight }: {
|
|
9636
10024
|
blocksHeight: string[];
|
|
9637
10025
|
}): Promise<{
|
|
9638
10026
|
status: string;
|
|
9639
|
-
data:
|
|
10027
|
+
data: {
|
|
9640
10028
|
block_height: string;
|
|
9641
10029
|
timestamp: Date;
|
|
9642
|
-
}[]
|
|
10030
|
+
}[];
|
|
9643
10031
|
}>;
|
|
9644
10032
|
getBlockHeight(): Promise<{
|
|
9645
10033
|
status: string;
|
|
@@ -9647,13 +10035,16 @@ declare class Block extends BaseDBModule {
|
|
|
9647
10035
|
block_height: string;
|
|
9648
10036
|
timestamp: string;
|
|
9649
10037
|
};
|
|
10038
|
+
} | {
|
|
10039
|
+
status: string;
|
|
10040
|
+
data: null;
|
|
9650
10041
|
}>;
|
|
9651
10042
|
getChainMeta(): Promise<{
|
|
9652
10043
|
status: string;
|
|
9653
10044
|
data: {
|
|
9654
10045
|
block_height: string;
|
|
9655
10046
|
epoch_num: string;
|
|
9656
|
-
};
|
|
10047
|
+
} | null;
|
|
9657
10048
|
}>;
|
|
9658
10049
|
}
|
|
9659
10050
|
export interface IoTexMarketData {
|
|
@@ -9937,6 +10328,7 @@ declare const modules$2: {
|
|
|
9937
10328
|
nftmarket: ReturnType<typeof import("postgres")>;
|
|
9938
10329
|
analyzerSlow: ReturnType<typeof import("postgres")>;
|
|
9939
10330
|
ch: ClickHouseSDK;
|
|
10331
|
+
analyserApi: AnalyserApi;
|
|
9940
10332
|
checkAuth(key: string): Promise<{
|
|
9941
10333
|
ok: boolean;
|
|
9942
10334
|
message: string;
|
|
@@ -9968,6 +10360,7 @@ declare const modules$2: {
|
|
|
9968
10360
|
nftmarket: ReturnType<typeof import("postgres")>;
|
|
9969
10361
|
analyzerSlow: ReturnType<typeof import("postgres")>;
|
|
9970
10362
|
ch: ClickHouseSDK;
|
|
10363
|
+
analyserApi: AnalyserApi;
|
|
9971
10364
|
checkAuth(key: string): Promise<{
|
|
9972
10365
|
ok: boolean;
|
|
9973
10366
|
message: string;
|
|
@@ -10130,6 +10523,7 @@ declare const modules$2: {
|
|
|
10130
10523
|
nftmarket: ReturnType<typeof import("postgres")>;
|
|
10131
10524
|
analyzerSlow: ReturnType<typeof import("postgres")>;
|
|
10132
10525
|
ch: ClickHouseSDK;
|
|
10526
|
+
analyserApi: AnalyserApi;
|
|
10133
10527
|
checkAuth(key: string): Promise<{
|
|
10134
10528
|
ok: boolean;
|
|
10135
10529
|
message: string;
|
|
@@ -10425,6 +10819,7 @@ declare const modules$2: {
|
|
|
10425
10819
|
nftmarket: ReturnType<typeof import("postgres")>;
|
|
10426
10820
|
analyzerSlow: ReturnType<typeof import("postgres")>;
|
|
10427
10821
|
ch: ClickHouseSDK;
|
|
10822
|
+
analyserApi: AnalyserApi;
|
|
10428
10823
|
checkAuth(key: string): Promise<{
|
|
10429
10824
|
ok: boolean;
|
|
10430
10825
|
message: string;
|
|
@@ -10458,6 +10853,7 @@ declare const modules$2: {
|
|
|
10458
10853
|
nftmarket: ReturnType<typeof import("postgres")>;
|
|
10459
10854
|
analyzerSlow: ReturnType<typeof import("postgres")>;
|
|
10460
10855
|
ch: ClickHouseSDK;
|
|
10856
|
+
analyserApi: AnalyserApi;
|
|
10461
10857
|
checkAuth(key: string): Promise<{
|
|
10462
10858
|
ok: boolean;
|
|
10463
10859
|
message: string;
|
|
@@ -10501,6 +10897,7 @@ declare const modules$2: {
|
|
|
10501
10897
|
nftmarket: ReturnType<typeof import("postgres")>;
|
|
10502
10898
|
analyzerSlow: ReturnType<typeof import("postgres")>;
|
|
10503
10899
|
ch: ClickHouseSDK;
|
|
10900
|
+
analyserApi: AnalyserApi;
|
|
10504
10901
|
checkAuth(key: string): Promise<{
|
|
10505
10902
|
ok: boolean;
|
|
10506
10903
|
message: string;
|
|
@@ -10515,8 +10912,8 @@ declare const modules$2: {
|
|
|
10515
10912
|
contractaddress: string;
|
|
10516
10913
|
}>, import("zod").ZodAny, string>;
|
|
10517
10914
|
dailyblkcount: KitModuleFunction<import("zod").ZodObject<{
|
|
10518
|
-
startdate: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
10519
|
-
enddate: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
10915
|
+
startdate: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
10916
|
+
enddate: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
10520
10917
|
sort: import("zod").ZodDefault<import("zod").ZodEnum<[
|
|
10521
10918
|
"asc",
|
|
10522
10919
|
"desc"
|
|
@@ -10531,8 +10928,8 @@ declare const modules$2: {
|
|
|
10531
10928
|
sort?: "asc" | "desc" | undefined;
|
|
10532
10929
|
}>, import("zod").ZodAny, any>;
|
|
10533
10930
|
dailyblockrewards: KitModuleFunction<import("zod").ZodObject<{
|
|
10534
|
-
startdate: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
10535
|
-
enddate: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
10931
|
+
startdate: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
10932
|
+
enddate: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
10536
10933
|
sort: import("zod").ZodDefault<import("zod").ZodEnum<[
|
|
10537
10934
|
"asc",
|
|
10538
10935
|
"desc"
|
|
@@ -10552,11 +10949,16 @@ declare const modules$2: {
|
|
|
10552
10949
|
ethusd: any;
|
|
10553
10950
|
ethusd_timestamp: number;
|
|
10554
10951
|
}>;
|
|
10952
|
+
iotxburned: KitModuleFunction<import("zod").AnyZodObject, import("zod").ZodAny, {
|
|
10953
|
+
totalBurned_IOTX: string;
|
|
10954
|
+
totalBurned_rau: string;
|
|
10955
|
+
asOfBlockHeight: number;
|
|
10956
|
+
}>;
|
|
10555
10957
|
chainsize: any;
|
|
10556
10958
|
nodecount: any;
|
|
10557
10959
|
dailytxnfee: KitModuleFunction<import("zod").ZodObject<{
|
|
10558
|
-
startdate: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
10559
|
-
enddate: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
10960
|
+
startdate: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
10961
|
+
enddate: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
10560
10962
|
sort: import("zod").ZodDefault<import("zod").ZodEnum<[
|
|
10561
10963
|
"asc",
|
|
10562
10964
|
"desc"
|
|
@@ -10571,8 +10973,8 @@ declare const modules$2: {
|
|
|
10571
10973
|
sort?: "asc" | "desc" | undefined;
|
|
10572
10974
|
}>, import("zod").ZodAny, any>;
|
|
10573
10975
|
dailynewaddress: KitModuleFunction<import("zod").ZodObject<{
|
|
10574
|
-
startdate: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
10575
|
-
enddate: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
10976
|
+
startdate: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
10977
|
+
enddate: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
10576
10978
|
sort: import("zod").ZodDefault<import("zod").ZodEnum<[
|
|
10577
10979
|
"asc",
|
|
10578
10980
|
"desc"
|
|
@@ -10593,8 +10995,8 @@ declare const modules$2: {
|
|
|
10593
10995
|
dailynetutilization: any;
|
|
10594
10996
|
dailyavghashrate: any;
|
|
10595
10997
|
dailytx: KitModuleFunction<import("zod").ZodObject<{
|
|
10596
|
-
startdate: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
10597
|
-
enddate: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
10998
|
+
startdate: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
10999
|
+
enddate: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
10598
11000
|
sort: import("zod").ZodDefault<import("zod").ZodEnum<[
|
|
10599
11001
|
"asc",
|
|
10600
11002
|
"desc"
|
|
@@ -10611,8 +11013,8 @@ declare const modules$2: {
|
|
|
10611
11013
|
dailyavgnetdifficulty: any;
|
|
10612
11014
|
ethdailymarketcap: any;
|
|
10613
11015
|
iotxdailyprice: KitModuleFunction<import("zod").ZodObject<{
|
|
10614
|
-
startdate: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
10615
|
-
enddate: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
11016
|
+
startdate: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
11017
|
+
enddate: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
10616
11018
|
sort: import("zod").ZodDefault<import("zod").ZodEnum<[
|
|
10617
11019
|
"asc",
|
|
10618
11020
|
"desc"
|
|
@@ -10633,6 +11035,7 @@ declare const modules$2: {
|
|
|
10633
11035
|
nftmarket: ReturnType<typeof import("postgres")>;
|
|
10634
11036
|
analyzerSlow: ReturnType<typeof import("postgres")>;
|
|
10635
11037
|
ch: ClickHouseSDK;
|
|
11038
|
+
analyserApi: AnalyserApi;
|
|
10636
11039
|
checkAuth(key: string): Promise<{
|
|
10637
11040
|
ok: boolean;
|
|
10638
11041
|
message: string;
|
|
@@ -10729,6 +11132,7 @@ declare const modules$2: {
|
|
|
10729
11132
|
nftmarket: ReturnType<typeof import("postgres")>;
|
|
10730
11133
|
analyzerSlow: ReturnType<typeof import("postgres")>;
|
|
10731
11134
|
ch: ClickHouseSDK;
|
|
11135
|
+
analyserApi: AnalyserApi;
|
|
10732
11136
|
checkAuth(key: string): Promise<{
|
|
10733
11137
|
ok: boolean;
|
|
10734
11138
|
message: string;
|
|
@@ -10743,8 +11147,8 @@ declare const modules$2: {
|
|
|
10743
11147
|
gasprice: string;
|
|
10744
11148
|
}>, import("zod").ZodAny, number>;
|
|
10745
11149
|
dailyavggaslimit: KitModuleFunction<import("zod").ZodObject<{
|
|
10746
|
-
startdate: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
10747
|
-
enddate: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
11150
|
+
startdate: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
11151
|
+
enddate: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
10748
11152
|
sort: import("zod").ZodDefault<import("zod").ZodEnum<[
|
|
10749
11153
|
"asc",
|
|
10750
11154
|
"desc"
|
|
@@ -10759,8 +11163,8 @@ declare const modules$2: {
|
|
|
10759
11163
|
sort?: "asc" | "desc" | undefined;
|
|
10760
11164
|
}>, import("zod").ZodAny, any>;
|
|
10761
11165
|
dailygasused: KitModuleFunction<import("zod").ZodObject<{
|
|
10762
|
-
startdate: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
10763
|
-
enddate: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
11166
|
+
startdate: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
11167
|
+
enddate: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
10764
11168
|
sort: import("zod").ZodDefault<import("zod").ZodEnum<[
|
|
10765
11169
|
"asc",
|
|
10766
11170
|
"desc"
|
|
@@ -10775,8 +11179,8 @@ declare const modules$2: {
|
|
|
10775
11179
|
sort?: "asc" | "desc" | undefined;
|
|
10776
11180
|
}>, import("zod").ZodAny, any>;
|
|
10777
11181
|
dailyavggasprice: KitModuleFunction<import("zod").ZodObject<{
|
|
10778
|
-
startdate: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
10779
|
-
enddate: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
11182
|
+
startdate: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
11183
|
+
enddate: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
10780
11184
|
sort: import("zod").ZodDefault<import("zod").ZodEnum<[
|
|
10781
11185
|
"asc",
|
|
10782
11186
|
"desc"
|
|
@@ -10826,6 +11230,7 @@ declare const modules$2: {
|
|
|
10826
11230
|
nftmarket: ReturnType<typeof import("postgres")>;
|
|
10827
11231
|
analyzerSlow: ReturnType<typeof import("postgres")>;
|
|
10828
11232
|
ch: ClickHouseSDK;
|
|
11233
|
+
analyserApi: AnalyserApi;
|
|
10829
11234
|
checkAuth(key: string): Promise<{
|
|
10830
11235
|
ok: boolean;
|
|
10831
11236
|
message: string;
|
|
@@ -10845,7 +11250,7 @@ declare class Ioid {
|
|
|
10845
11250
|
r: string;
|
|
10846
11251
|
s: string;
|
|
10847
11252
|
}, ctx?: ConfigContext): Promise<{
|
|
10848
|
-
error:
|
|
11253
|
+
error: string;
|
|
10849
11254
|
ok?: undefined;
|
|
10850
11255
|
hash?: undefined;
|
|
10851
11256
|
cid?: undefined;
|
|
@@ -10859,11 +11264,11 @@ declare class Ioid {
|
|
|
10859
11264
|
owner: string;
|
|
10860
11265
|
device: string;
|
|
10861
11266
|
}, ctx?: ConfigContext): Promise<{
|
|
11267
|
+
error: string;
|
|
11268
|
+
verifySignature?: undefined;
|
|
11269
|
+
} | {
|
|
10862
11270
|
verifySignature: string;
|
|
10863
11271
|
error?: undefined;
|
|
10864
|
-
} | {
|
|
10865
|
-
error: any;
|
|
10866
|
-
verifySignature?: undefined;
|
|
10867
11272
|
}>;
|
|
10868
11273
|
did_hex(args: {
|
|
10869
11274
|
did: `0x${string}`;
|
|
@@ -10872,7 +11277,7 @@ declare class Ioid {
|
|
|
10872
11277
|
hex: string;
|
|
10873
11278
|
error?: undefined;
|
|
10874
11279
|
} | {
|
|
10875
|
-
error:
|
|
11280
|
+
error: string;
|
|
10876
11281
|
hex?: undefined;
|
|
10877
11282
|
}>;
|
|
10878
11283
|
devices_registered(args: {
|
|
@@ -10881,7 +11286,7 @@ declare class Ioid {
|
|
|
10881
11286
|
devices: any[];
|
|
10882
11287
|
error?: undefined;
|
|
10883
11288
|
} | {
|
|
10884
|
-
error:
|
|
11289
|
+
error: string;
|
|
10885
11290
|
devices?: undefined;
|
|
10886
11291
|
}>;
|
|
10887
11292
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@iotexproject/kit",
|
|
3
3
|
"module": "index.ts",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.3.1",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"scripts": {
|
|
@@ -31,29 +31,21 @@
|
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@asteasolutions/zod-to-openapi": "7.1.1",
|
|
34
|
-
"@clickhouse/client": "1.11.2",
|
|
35
|
-
"@faker-js/faker": "9.3.0",
|
|
36
34
|
"@grpc/grpc-js": "1.11.1",
|
|
37
|
-
"@grpc/proto-loader": "0.7.13",
|
|
38
35
|
"@hyperdx/node-opentelemetry": "0.8.1",
|
|
39
36
|
"@iotexproject/iotex-address-ts": "1.0.4",
|
|
40
37
|
"@noble/curves": "1.6.0",
|
|
41
38
|
"@scalar/hono-api-reference": "0.9.9",
|
|
42
|
-
"@tokenbound/sdk": "0.5.5",
|
|
43
39
|
"@tryghost/content-api": "1.11.21",
|
|
44
40
|
"@types/bn.js": "5.1.6",
|
|
45
41
|
"@types/p-retry": "3.0.1",
|
|
46
42
|
"@types/utf8": "3.0.3",
|
|
47
|
-
"apollo-cache-inmemory": "1.6.6",
|
|
48
|
-
"apollo-client": "2.6.10",
|
|
49
|
-
"apollo-link-http": "1.5.17",
|
|
50
43
|
"axios": "1.7.2",
|
|
51
44
|
"bech32": "2.0.0",
|
|
52
45
|
"bentocache": "1.0.0-beta.9",
|
|
53
46
|
"bignumber.js": "9.1.2",
|
|
54
47
|
"bs58": "6.0.0",
|
|
55
48
|
"clickhouse": "2.6.0",
|
|
56
|
-
"clinic": "13.0.0",
|
|
57
49
|
"crypto-js": "4.2.0",
|
|
58
50
|
"dataloader": "2.2.2",
|
|
59
51
|
"dayjs": "1.11.12",
|
|
@@ -61,11 +53,9 @@
|
|
|
61
53
|
"drizzle-orm": "0.38.2",
|
|
62
54
|
"ethereumjs-util": "7.1.5",
|
|
63
55
|
"ethers": "6.13.2",
|
|
64
|
-
"firebase-admin": "12.6.0",
|
|
65
56
|
"graphql": "16.9.0",
|
|
66
57
|
"graphql-request": "7.1.0",
|
|
67
58
|
"graphql-tag": "2.12.6",
|
|
68
|
-
"hono-pino": "0.7.2",
|
|
69
59
|
"hono-rate-limiter": "0.4.0",
|
|
70
60
|
"ioredis": "5.4.1",
|
|
71
61
|
"jsbi": "4.3.0",
|
|
@@ -73,14 +63,12 @@
|
|
|
73
63
|
"kafkajs": "2.2.4",
|
|
74
64
|
"lodash": "4.17.21",
|
|
75
65
|
"lru-cache": "11.0.0",
|
|
76
|
-
"memwatch-next": "0.3.0",
|
|
77
66
|
"number-to-bn": "1.7.0",
|
|
78
67
|
"p-retry": "6.2.1",
|
|
79
68
|
"p-timeout": "6.1.3",
|
|
80
69
|
"pg": "8.13.1",
|
|
81
70
|
"pg-format": "1.0.4",
|
|
82
71
|
"postgres": "3.4.4",
|
|
83
|
-
"prom-client": "15.1.3",
|
|
84
72
|
"reflect-metadata": "0.2.2",
|
|
85
73
|
"siwe": "3.0.0",
|
|
86
74
|
"underscore": "1.13.7",
|
|
@@ -88,8 +76,7 @@
|
|
|
88
76
|
"utility-types": "3.11.0",
|
|
89
77
|
"viem": "2.21.60",
|
|
90
78
|
"web3": "4.16.0",
|
|
91
|
-
"zod": "3.23.8"
|
|
92
|
-
"zod-openapi": "2.19.0"
|
|
79
|
+
"zod": "3.23.8"
|
|
93
80
|
},
|
|
94
81
|
"devDependencies": {
|
|
95
82
|
"@dappworks/kit": "^0.4.198",
|
|
@@ -97,7 +84,6 @@
|
|
|
97
84
|
"@types/crypto-js": "^4.2.2",
|
|
98
85
|
"@types/google-protobuf": "^3.15.12",
|
|
99
86
|
"@types/jsonwebtoken": "^9.0.7",
|
|
100
|
-
"@types/memwatch-next": "^0.3.6",
|
|
101
87
|
"@types/pg": "^8.11.10",
|
|
102
88
|
"@types/pg-format": "^1.0.5",
|
|
103
89
|
"@types/tryghost__content-api": "^1.3.16",
|