File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change 11// Code generated by tygo. DO NOT EDIT.
22/* eslint-disable */
3+ import type { Address , Hash } from './common'
34
45//////////
56// source: search.go
67
8+ export interface PostSearchRequest {
9+ input : string ;
10+ networks ?: ( number | string ) [ ] ;
11+ types ?: string [ ] ;
12+ }
713export interface SearchValidator {
814 index : number /* uint64 */ ;
915 public_key : string ;
@@ -26,11 +32,27 @@ export interface SearchValidatorsByGraffiti {
2632 hex : string ;
2733 count : number /* uint64 */ ;
2834}
35+ export interface SearchAddress {
36+ address : Address ;
37+ }
38+ export interface SearchTransaction {
39+ transaction_hash : Hash ;
40+ }
41+ export interface SearchBlock {
42+ block_number : number /* uint64 */ ;
43+ }
44+ export interface SearchEpoch {
45+ epoch : number /* uint64 */ ;
46+ }
47+ export interface SearchToken {
48+ address : Address ;
49+ token : 'erc20' | 'erc721' | 'erc1155' ;
50+ }
2951export interface SearchResult {
3052 type : string ;
3153 chain_id : number /* uint64 */ ;
3254 value : any ;
3355}
3456export interface InternalPostSearchResponse {
35- data : ( { type : 'validator' ; chain_id : number ; value : SearchValidator } | { type : 'validator_list' ; chain_id : number ; value : SearchValidatorList } | { type : 'validators_by_deposit_address' ; chain_id : number ; value : SearchValidatorsByDepositAddress } | { type : 'validators_by_withdrawal_credential' ; chain_id : number ; value : SearchValidatorsByWithdrawalCredential } | { type : 'validators_by_graffiti' ; chain_id : number ; value : SearchValidatorsByGraffiti } ) [ ] ;
57+ data : ( { type : 'validator' ; chain_id : number ; value : SearchValidator } | { type : 'validator_list' ; chain_id : number ; value : SearchValidatorList } | { type : 'validators_by_deposit_address' ; chain_id : number ; value : SearchValidatorsByDepositAddress } | { type : 'validators_by_withdrawal_credential' ; chain_id : number ; value : SearchValidatorsByWithdrawalCredential } | { type : 'validators_by_graffiti' ; chain_id : number ; value : SearchValidatorsByGraffiti } | { type : 'address' ; chain_id : number ; value : SearchAddress } | { type : 'transaction' ; chain_id : number ; value : SearchTransaction } | { type : 'block' ; chain_id : number ; value : SearchBlock } | { type : 'epoch' ; chain_id : number ; value : SearchEpoch } | { type : 'token' ; chain_id : number ; value : SearchToken } ) [ ] ;
3658}
You can’t perform that action at this time.
0 commit comments