-
Notifications
You must be signed in to change notification settings - Fork 188
/
wasm.ts
65 lines (55 loc) · 1.63 KB
/
wasm.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import { Pagination } from './../../../types/pagination'
import {
CosmwasmWasmV1Query,
CosmwasmWasmV1Types,
} from '@injectivelabs/core-proto-ts'
export interface AbsoluteTxPosition {
blockHeight: number
txIndex: number
}
export interface GoogleProtoBufAny {
typeUrl: string
value: Uint8Array | string
}
export interface ContractAccountBalance {
account: string
balance: string
}
export interface ContractAccountsBalanceWithPagination {
contractAccountsBalance: ContractAccountBalance[]
pagination?: Pagination
}
export interface ContractInfo {
codeId: number
creator: string
admin: string
label: string
created?: AbsoluteTxPosition
ibcPortId: string
extension?: GoogleProtoBufAny
}
export interface AbsoluteTxPosition {
blockHeight: number
txIndex: number
}
export interface ContractCodeHistoryEntry {
operation: CosmwasmWasmV1Types.ContractCodeHistoryOperationType
codeId: number
updated?: AbsoluteTxPosition
msg: Uint8Array | string
}
export interface CodeInfoResponse {
codeId: number
creator: string
dataHash: Uint8Array | string
}
export type GrpcCodeInfoResponse = CosmwasmWasmV1Query.CodeInfoResponse
export type grpcContractInfo = CosmwasmWasmV1Types.ContractInfo
export type GrpcContractInfo = CosmwasmWasmV1Types.ContractInfo
export type GrpcContractCodeHistoryEntry =
CosmwasmWasmV1Types.ContractCodeHistoryEntry
export type GrpcAbsoluteTxPosition = CosmwasmWasmV1Types.AbsoluteTxPosition
export type ContractCodeHistoryOperationType =
CosmwasmWasmV1Types.ContractCodeHistoryOperationType
export const ContractCodeHistoryOperationTypeMap =
CosmwasmWasmV1Types.ContractCodeHistoryOperationType