Skip to content

Commit c8134a7

Browse files
authored
Merge pull request #197 from confio/release-0.15.2-2
Release 0.15.2 follow-up
2 parents 003a099 + a3449c6 commit c8134a7

File tree

42 files changed

+165
-165
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+165
-165
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ jobs:
588588
- run:
589589
name: Build development contracts
590590
command: |
591-
docker run --volumes-from with_code cosmwasm/workspace-optimizer:0.12.6
591+
docker run --volumes-from with_code cosmwasm/workspace-optimizer:0.12.10
592592
docker cp with_code:/code/artifacts ./artifacts
593593
- run:
594594
name: Show data

contracts/tg4-engagement/src/helpers.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use crate::msg::ExecuteMsg;
1111
/// for working with tg4-engagement contracts.
1212
///
1313
/// It extends Tg4Contract to add the extra calls from tg4-engagement.
14-
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
14+
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
1515
pub struct Tg4GroupContract(pub Tg4Contract);
1616

1717
impl Deref for Tg4GroupContract {

contracts/tg4-engagement/src/msg.rs

+11-11
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use tg4::Member;
66
use tg_bindings::{Evidence, PrivilegeChangeMsg};
77
use tg_utils::Duration;
88

9-
#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)]
9+
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, JsonSchema, Debug)]
1010
#[serde(rename_all = "snake_case")]
1111
pub struct InstantiateMsg {
1212
/// The admin is the only account that can update the group state.
@@ -22,7 +22,7 @@ pub struct InstantiateMsg {
2222
pub denom: String,
2323
}
2424

25-
#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)]
25+
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, JsonSchema, Debug)]
2626
#[serde(rename_all = "snake_case")]
2727
pub enum ExecuteMsg {
2828
/// Change the admin
@@ -72,7 +72,7 @@ pub enum ExecuteMsg {
7272
Slash { addr: String, portion: Decimal },
7373
}
7474

75-
#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)]
75+
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, JsonSchema, Debug)]
7676
#[serde(rename_all = "snake_case")]
7777
pub enum QueryMsg {
7878
/// Return AdminResponse
@@ -122,7 +122,7 @@ pub enum QueryMsg {
122122
WithdrawAdjustmentData { addr: String },
123123
}
124124

125-
#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)]
125+
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, JsonSchema, Debug)]
126126
#[serde(rename_all = "snake_case")]
127127
pub enum SudoMsg {
128128
/// This will be delivered every block if the contract is currently registered for Begin Block
@@ -145,40 +145,40 @@ pub enum SudoMsg {
145145
UpdateMember(Member),
146146
}
147147

148-
#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)]
148+
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, JsonSchema, Debug)]
149149
pub struct PreauthResponse {
150150
pub preauths: u64,
151151
}
152152

153-
#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)]
153+
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, JsonSchema, Debug)]
154154
pub struct RewardsResponse {
155155
pub rewards: Coin,
156156
}
157157

158-
#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)]
158+
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, JsonSchema, Debug)]
159159
pub struct DelegatedResponse {
160160
pub delegated: Addr,
161161
}
162162

163-
#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)]
163+
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, JsonSchema, Debug)]
164164
pub struct HalflifeResponse {
165165
// `None` means the halflife functionality is disabled for this instance.
166166
pub halflife_info: Option<HalflifeInfo>,
167167
}
168168

169-
#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)]
169+
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, JsonSchema, Debug)]
170170
pub struct HalflifeInfo {
171171
pub last_halflife: Timestamp,
172172
pub halflife: Duration,
173173
pub next_halflife: Timestamp,
174174
}
175175

176-
#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)]
176+
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, JsonSchema, Debug)]
177177
pub struct SlasherResponse {
178178
pub is_slasher: bool,
179179
}
180180

181-
#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)]
181+
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, JsonSchema, Debug)]
182182
pub struct ListSlashersResponse {
183183
pub slashers: Vec<String>,
184184
}

contracts/tg4-engagement/src/state.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use cw_storage_plus::{Item, Map};
77
use tg_utils::Duration;
88
pub use tg_utils::{PREAUTH_SLASHING, SLASHERS};
99

10-
#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)]
10+
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, JsonSchema, Debug)]
1111
pub struct Halflife {
1212
/// if set to None then there's no half life
1313
pub halflife: Option<Duration>,
@@ -37,7 +37,7 @@ pub const SHARES_SHIFT: u8 = 32;
3737

3838
pub const HALFLIFE: Item<Halflife> = Item::new("halflife");
3939

40-
#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)]
40+
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, JsonSchema, Debug)]
4141
pub struct Distribution {
4242
/// Tokens can be distributed by this denom.
4343
pub denom: String,
@@ -51,7 +51,7 @@ pub struct Distribution {
5151
pub withdrawable_total: Uint128,
5252
}
5353

54-
#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)]
54+
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, JsonSchema, Debug)]
5555
pub struct WithdrawAdjustment {
5656
/// How much points should be added/removed from calculated funds while withdrawal.
5757
pub shares_correction: Int128,

contracts/tg4-group/src/helpers.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use crate::msg::ExecuteMsg;
1111
/// for working with tg4-group contracts.
1212
///
1313
/// It extends Tg4Contract to add the extra calls from tg4-group.
14-
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
14+
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
1515
pub struct Tg4GroupContract(pub Tg4Contract);
1616

1717
impl Deref for Tg4GroupContract {

contracts/tg4-group/src/msg.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use serde::{Deserialize, Serialize};
33

44
use tg4::Member;
55

6-
#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)]
6+
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, JsonSchema, Debug)]
77
#[serde(rename_all = "snake_case")]
88
pub struct InstantiateMsg {
99
/// The admin is the only account that can update the group state.
@@ -12,7 +12,7 @@ pub struct InstantiateMsg {
1212
pub members: Vec<Member>,
1313
}
1414

15-
#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)]
15+
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, JsonSchema, Debug)]
1616
#[serde(rename_all = "snake_case")]
1717
pub enum ExecuteMsg {
1818
/// Change the admin
@@ -29,7 +29,7 @@ pub enum ExecuteMsg {
2929
RemoveHook { addr: String },
3030
}
3131

32-
#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)]
32+
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, JsonSchema, Debug)]
3333
#[serde(rename_all = "snake_case")]
3434
pub enum QueryMsg {
3535
/// Return AdminResponse

contracts/tg4-mixer/src/msg.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use tg4::{Member, MemberChangedHookMsg};
77
use crate::error::ContractError;
88
use crate::functions::{AlgebraicSigmoid, GeometricMean, PoEFunction, Sigmoid, SigmoidSqrt};
99

10-
#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)]
10+
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, JsonSchema, Debug)]
1111
pub struct InstantiateMsg {
1212
/// One of the groups we feed to the mixer function
1313
pub left_group: String,
@@ -23,7 +23,7 @@ pub struct InstantiateMsg {
2323
pub function_type: PoEFunctionType,
2424
}
2525

26-
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
26+
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
2727
#[serde(rename_all = "snake_case")]
2828
pub enum PoEFunctionType {
2929
/// GeometricMean returns the geometric mean of staked amount and engagement points
@@ -70,7 +70,7 @@ impl PoEFunctionType {
7070
}
7171
}
7272

73-
#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)]
73+
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, JsonSchema, Debug)]
7474
#[serde(rename_all = "snake_case")]
7575
pub enum ExecuteMsg {
7676
/// This handles a callback from one of the linked groups
@@ -87,7 +87,7 @@ pub enum ExecuteMsg {
8787
Slash { addr: String, portion: StdDecimal },
8888
}
8989

90-
#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)]
90+
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, JsonSchema, Debug)]
9191
#[serde(rename_all = "snake_case")]
9292
pub enum QueryMsg {
9393
/// Return TotalPointsResponse
@@ -127,18 +127,18 @@ pub enum QueryMsg {
127127
}
128128

129129
/// Return the two groups we are listening to
130-
#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)]
130+
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, JsonSchema, Debug)]
131131
pub struct GroupsResponse {
132132
pub left: String,
133133
pub right: String,
134134
}
135135

136-
#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)]
136+
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, JsonSchema, Debug)]
137137
pub struct PreauthResponse {
138138
pub preauths_hooks: u64,
139139
}
140140

141-
#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)]
141+
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, JsonSchema, Debug)]
142142
pub struct MixerFunctionResponse {
143143
pub points: u64,
144144
}

contracts/tg4-mixer/src/state.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use tg4::Tg4Contract;
66

77
pub const POE_FUNCTION_TYPE: Item<PoEFunctionType> = Item::new("poe-function-type");
88

9-
#[derive(Serialize, Deserialize, Clone, PartialEq, Debug)]
9+
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, Debug)]
1010
pub struct Groups {
1111
pub left: Tg4Contract,
1212
pub right: Tg4Contract,

contracts/tg4-stake/src/claim.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use tg_utils::Expiration;
1515
const MAX_LIMIT: u32 = 100;
1616
const DEFAULT_LIMIT: u32 = 30;
1717

18-
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
18+
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
1919
pub struct Claim {
2020
/// Address owning the claim
2121
pub addr: Addr,

contracts/tg4-stake/src/msg.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const fn default_auto_return_limit() -> u64 {
1010
20
1111
}
1212

13-
#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)]
13+
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, JsonSchema, Debug)]
1414
pub struct InstantiateMsg {
1515
/// Denom of the token to stake
1616
pub denom: String,
@@ -33,7 +33,7 @@ pub struct InstantiateMsg {
3333
pub auto_return_limit: u64,
3434
}
3535

36-
#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)]
36+
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, JsonSchema, Debug)]
3737
#[serde(rename_all = "snake_case")]
3838
pub enum ExecuteMsg {
3939
/// Bond will bond all staking tokens sent with the message and update membership points.
@@ -66,7 +66,7 @@ pub enum ExecuteMsg {
6666
},
6767
}
6868

69-
#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)]
69+
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, JsonSchema, Debug)]
7070
#[serde(rename_all = "snake_case")]
7171
pub enum QueryMsg {
7272
/// Returns config
@@ -114,28 +114,28 @@ pub enum QueryMsg {
114114
ListSlashers {},
115115
}
116116

117-
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
117+
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
118118
pub struct StakedResponse {
119119
pub liquid: Coin,
120120
pub vesting: Coin,
121121
}
122122

123-
#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)]
123+
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, JsonSchema, Debug)]
124124
pub struct PreauthResponse {
125125
pub preauths_hooks: u64,
126126
}
127127

128-
#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)]
128+
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, JsonSchema, Debug)]
129129
pub struct UnbondingPeriodResponse {
130130
pub unbonding_period: Duration,
131131
}
132132

133-
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
133+
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
134134
pub struct ClaimsResponse {
135135
pub claims: Vec<Claim>,
136136
}
137137

138-
#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)]
138+
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, JsonSchema, Debug)]
139139
#[serde(rename_all = "snake_case")]
140140
pub struct MigrateMsg {
141141
pub tokens_per_point: Option<Uint128>,

contracts/tg4-stake/src/state.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub fn claims() -> Claims<'static> {
1111
Claims::new("claims", "claims__release")
1212
}
1313

14-
#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)]
14+
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, JsonSchema, Debug)]
1515
pub struct Config {
1616
/// denom of the token to stake
1717
pub denom: String,

contracts/tgrade-community-pool/src/msg.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use tg3::Vote;
66

77
use tg_voting_contract::state::VotingRules;
88

9-
#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)]
9+
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, JsonSchema, Debug)]
1010
#[serde(rename_all = "snake_case")]
1111
pub struct InstantiateMsg {
1212
pub rules: VotingRules,
@@ -15,7 +15,7 @@ pub struct InstantiateMsg {
1515
}
1616

1717
/// The type of proposal to vote on
18-
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
18+
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
1919
#[serde(rename_all = "snake_case")]
2020
pub enum Proposal {
2121
/// Proposal to send some tokens from community pool contract to given address
@@ -29,7 +29,7 @@ pub enum Proposal {
2929
Text {},
3030
}
3131

32-
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
32+
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
3333
#[serde(rename_all = "snake_case")]
3434
pub enum ExecuteMsg {
3535
Propose {
@@ -57,7 +57,7 @@ pub enum ExecuteMsg {
5757
}
5858

5959
// We can also add this as a tg3 extension
60-
#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)]
60+
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, JsonSchema, Debug)]
6161
#[serde(rename_all = "snake_case")]
6262
pub enum QueryMsg {
6363
/// Return VotingRules

contracts/tgrade-gov-reflect/src/msg.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ use serde::{Deserialize, Serialize};
44
use tg_bindings::{GovProposal, TgradeMsg};
55

66
/// Creator is owner and can reflect anything
7-
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
7+
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
88
pub struct InstantiateMsg {}
99

10-
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
10+
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
1111
#[serde(rename_all = "snake_case")]
1212
pub enum ExecuteMsg {
1313
Execute {
@@ -20,13 +20,13 @@ pub enum ExecuteMsg {
2020
},
2121
}
2222

23-
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
23+
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
2424
#[serde(rename_all = "snake_case")]
2525
pub enum QueryMsg {
2626
Owner {},
2727
}
2828

29-
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
29+
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
3030
pub struct OwnerResponse {
3131
pub owner: String,
3232
}

contracts/tgrade-gov-reflect/src/state.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use serde::{Deserialize, Serialize};
44
use cosmwasm_std::Addr;
55
use cw_storage_plus::Item;
66

7-
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
7+
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
88
pub struct Config {
99
pub owner: Addr,
1010
}

0 commit comments

Comments
 (0)