-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathNeutronCwdPreProposeSingleOverrule.ts
136 lines (135 loc) · 2.63 KB
/
NeutronCwdPreProposeSingleOverrule.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
/**
* This file was automatically generated by @cosmwasm/ts-codegen@0.35.7.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run the @cosmwasm/ts-codegen generate command to regenerate this file.
*/
export type Uint128 = string
export type DepositToken =
| {
token: {
denom: UncheckedDenom
[k: string]: unknown
}
}
| {
voting_module_token: {
[k: string]: unknown
}
}
export type UncheckedDenom =
| {
native: string
}
| {
cw20: string
}
export type DepositRefundPolicy = 'always' | 'only_passed' | 'never'
export interface InstantiateMsg {
deposit_info?: UncheckedDepositInfo | null
open_proposal_submission: boolean
[k: string]: unknown
}
export interface UncheckedDepositInfo {
amount: Uint128
denom: DepositToken
refund_policy: DepositRefundPolicy
[k: string]: unknown
}
export type ExecuteMsg =
| {
propose: {
msg: ProposeMessage
[k: string]: unknown
}
}
| {
update_config: {
deposit_info?: UncheckedDepositInfo | null
open_proposal_submission: boolean
[k: string]: unknown
}
}
| {
withdraw: {
denom?: UncheckedDenom | null
[k: string]: unknown
}
}
| {
proposal_created_hook: {
proposal_id: number
proposer: string
[k: string]: unknown
}
}
| {
proposal_completed_hook: {
new_status: Status
proposal_id: number
[k: string]: unknown
}
}
export type ProposeMessage = {
propose_overrule: {
proposal_id: number
timelock_contract: string
[k: string]: unknown
}
}
export type Status =
| 'open'
| 'rejected'
| 'passed'
| 'executed'
| 'closed'
| 'execution_failed'
export type QueryMsg =
| {
proposal_module: {}
}
| {
dao: {}
}
| {
config: {}
}
| {
deposit_info: {
proposal_id: number
}
}
| {
query_extension: {
msg: QueryExt
}
}
export type QueryExt = {
overrule_proposal_id: {
subdao_proposal_id: number
timelock_address: string
}
}
export type CheckedDenom =
| {
native: string
}
| {
cw20: Addr
}
export type Addr = string
export interface Config {
deposit_info?: CheckedDepositInfo | null
open_proposal_submission: boolean
}
export interface CheckedDepositInfo {
amount: Uint128
denom: CheckedDenom
refund_policy: DepositRefundPolicy
[k: string]: unknown
}
export interface DepositInfoResponse {
deposit_info?: CheckedDepositInfo | null
proposer: Addr
[k: string]: unknown
}
export type Binary = string