Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: camel to snake case #NTRN-322 #26

Merged
merged 6 commits into from
Jan 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ Cargo.lock
**/*.rs.bk

.idea

.DS_Store
28 changes: 14 additions & 14 deletions artifacts/checksums.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
c5a2673b74cda51bd2628804856117291ed555867daf66f543e084dccc694576 cw4_voting.wasm
376d1b53afddeda6e57a0907dbd790e71822c7dfbecd185354652eddafa56896 cwd_core.wasm
16eb377716df5f8981d1da000b5fd106e46a1fa1edec543d5e657356528eadbf cwd_pre_propose_multiple.wasm
c33b583b61ec1890fcd00cc7b5ece08de2c30d93e39038680e480f4fa3de58ce cwd_pre_propose_single.wasm
c003fce6e22e0fcb8698ce333f154ea89c1d9a61b5a9cc7a0b5294459b39cfe7 cwd_proposal_multiple.wasm
01bf6a347ec95b6c501ade61d6128d0fbd0b2d34639ae97d893cefe1cec71f36 cwd_proposal_single.wasm
4e070f5dfdc12b726cc2117637ae5e6fc82417b1c62cf4fc6f7950fbd6f9e0e5 cwd_subdao_core.wasm
872125cc4d129f8f5d55e9a3501bbbc61007c2b9a84cfd7a475c9d434eda4b14 cwd_subdao_pre_propose_single.wasm
39abb0622d44f5780824473bfc79f2374ce72184df3dd7bd60da46059b8a6e25 cwd_subdao_proposal_single.wasm
fc05f1035b4488f4bd22c11a3ac2e1221c822d7f1d305f1b8edc8f2046e664d6 cwd_subdao_timelock_single.wasm
de33de7ae51e0d0f64534dac4562f339cad66966f8b4d5762060b850f5f2f114 neutron_distribution.wasm
1982982b78b417fd87108c731f91a2226704b00fe722d0ad6985c45e5e444c89 neutron_reserve.wasm
a8455cb43cd5a2ebd52f4e282dc98384ae20f545598c25a435dfdbb359788408 neutron_treasury.wasm
dc5542363aba30fb46f32d2cf0e883cc8122736bc149a11ce3d3cfeb4ef9830c neutron_vault.wasm
7516c30b8868f52596306c1f54a6daf83da53f8e585cd1fe6210990cb2747051 neutron_voting_registry.wasm
462cebbe6344aa27b168d6e5bb351df49352036c8df5aba97c69a356a9de7592 cwd_core.wasm
c7ddd8a95dc3d1912249f12e7b036d9daeaac07af1e2c77ebe92a97aaab125b8 cwd_pre_propose_multiple.wasm
35be8f8ebecfd8893eded5d63148fd1f68733a525f8f7a42f8b70c11bbaf60fb cwd_pre_propose_single.wasm
77c2d5ef5199a936905920e53c8435b9bf89e919c4552a679813902ecc3b1d77 cwd_proposal_multiple.wasm
64d3e3dc1db548307654dd585f1bad1d3dc00d2758d2b71d988a71333bcea3c6 cwd_proposal_single.wasm
aa1e3bb2bb6632fe1b3b6a831a421eca23e63f103526d0e1671c5d79320aa498 cwd_subdao_core.wasm
e98782b00d3a36f85dfe899025848beae3b330deefb818204d6251e431417f1a cwd_subdao_pre_propose_single.wasm
9b04277c230e3c30e6424b7c05970168c8af7f33292775951ccf4f7f0d4e6ba3 cwd_subdao_proposal_single.wasm
f624bc0552f6453c1cbf4233a69a135e88e6101873a3d466d89572cd391f91df cwd_subdao_timelock_single.wasm
9bbd1d908adc2e3d50ae3f3d74073a4d39c437c6b389fed2163eff3bf238ee28 neutron_distribution.wasm
64d84d688717d74d641a672e19ab8d26a01fae2c10e5f9d27644471723e824ef neutron_reserve.wasm
f4be156137da8588bf7215fa62a8bddb5d9cc31415c524716ebc1b53bd0448a8 neutron_treasury.wasm
43fedf32c8af193417b3be37d69a88eeb6c9b2c1ec45cdc0cf24ce91a0b5b60e neutron_vault.wasm
dcba10f524ca82a7dd777d56ed1a058d825b313cf650a77141745c70214fd92b neutron_voting_registry.wasm
28 changes: 14 additions & 14 deletions artifacts/checksums_intermediate.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
d125e4bffb0973e8ea8ba4f0cd765aa77d190ddd08b8395d900c717462580c0d target/wasm32-unknown-unknown/release/cwd_core.wasm
2c9cafdd3fcb12b1cfaa2022437c99d64cd2a136d98905833d6c46bf7a3e343a target/wasm32-unknown-unknown/release/cwd_pre_propose_single.wasm
1b66ee6db36f84efebb6a93c384721d369da348ed485aee7bc486dface362280 target/wasm32-unknown-unknown/release/cwd_proposal_single.wasm
73aaf0fa117ca17398d16ad525c3afc8528706a77b9a0993a8543024760cc2ba target/wasm32-unknown-unknown/release/neutron_vault.wasm
ddd6b29b9c1cf9ae6c90ab731dd7b3ea4a2c360b656835e93cd0dd3c080e406a target/wasm32-unknown-unknown/release/neutron_voting_registry.wasm
a0e3d77f1ee7df1758125de9c18fbab1c310bfed3c5389e1533e0588df4c450f target/wasm32-unknown-unknown/release/cwd_pre_propose_multiple.wasm
5aeed529c1b848aa12192a14242c7ca7d7486f3f08cdfd3336db7886781f73ed target/wasm32-unknown-unknown/release/cwd_proposal_multiple.wasm
21bfa6eb92d9b98c4fe73567471b09cb849614d0ff8a739e6bfe3d28c24e0094 target/wasm32-unknown-unknown/release/neutron_distribution.wasm
143a562b387797caff1e6c51ab80a4ce678419e00b2986b362b7aff378b762e5 target/wasm32-unknown-unknown/release/neutron_reserve.wasm
0681f119e4a523b30a1fa8cfcef8d5bd08c4e67363b8abb3d35a2033b8570948 target/wasm32-unknown-unknown/release/cwd_subdao_core.wasm
b313b788811cc79b6882fd5fbb1548408f29e881ff28d6af5925f364ded181b6 target/wasm32-unknown-unknown/release/cwd_subdao_pre_propose_single.wasm
ddef5cffd286b7eff422ccfbac5caeb9f922599fb6d516b63d6580fb9c7cee7f target/wasm32-unknown-unknown/release/cwd_subdao_proposal_single.wasm
ceb4c0d4c974bcbeb7eef9ef8793495a911717742ba13ab67962ea25cf3625c9 target/wasm32-unknown-unknown/release/cwd_subdao_timelock_single.wasm
8b01736943d4c0d5086f8ad60f6f856a606964a9cc89808e028df64b3f337386 target/wasm32-unknown-unknown/release/neutron_treasury.wasm
71ac27b0d480967ff0f109c8b2404a24e2c7c4851b045ca12cb34022465c942a target/wasm32-unknown-unknown/release/cwd_core.wasm
5683c77f46619bea0dfc466792110a0008c447f9fec08e6e929892f70f11a53c target/wasm32-unknown-unknown/release/cwd_pre_propose_multiple.wasm
9045a14917b5fe2aae20e8778bdb315ddee88dcd3f38e6d86fd2e1e820e585d0 target/wasm32-unknown-unknown/release/cwd_pre_propose_single.wasm
78764327dccf528394eb79786bb75d8737687dfff33ea8e0497a71276a7ee926 target/wasm32-unknown-unknown/release/cwd_proposal_multiple.wasm
fc79389148ad4653d8a9da2926c683d297b0c7ddce8bf2a865c70e0897cdb176 target/wasm32-unknown-unknown/release/cwd_proposal_single.wasm
bfb7d8372927209f11e9beb54b963e6f958bd956db02452cf8c7f67b0d73611c target/wasm32-unknown-unknown/release/cwd_subdao_core.wasm
1ae934f9b3e188a4d7096f4f9231edfad84a482a33a66e90b5d0ce124065c062 target/wasm32-unknown-unknown/release/cwd_subdao_pre_propose_single.wasm
9932f7b177b495d8bc0aa47795049fb0816bd0f9a1aceeb29459c3671c1f3dea target/wasm32-unknown-unknown/release/cwd_subdao_proposal_single.wasm
5cbcb7b22e17ebcac14afd08d22a0085d1719be92232617db80948401c396025 target/wasm32-unknown-unknown/release/cwd_subdao_timelock_single.wasm
91be9e3bbb44c0abfafc1602887348ac67c41511c6f2cbbca26e945e7125b159 target/wasm32-unknown-unknown/release/neutron_distribution.wasm
63f1b33e90f8a9b170142fc290419057f8e1a9102c60287c75fb4cb4ad339f81 target/wasm32-unknown-unknown/release/neutron_reserve.wasm
2243d1d288ebc8c8110a95ea69226ba9012ffd79cad637147c6e9aa5a27c7942 target/wasm32-unknown-unknown/release/neutron_treasury.wasm
ade2226054502a38f2ecd37a039e5775a6350632238d502364142c2a32716c30 target/wasm32-unknown-unknown/release/neutron_vault.wasm
b0ec185bb41233b43f1e38459b2397c4d15af2d814d2630f597d943dd1c86c01 target/wasm32-unknown-unknown/release/neutron_voting_registry.wasm
Binary file modified artifacts/cwd_proposal_multiple.wasm
Binary file not shown.
Binary file modified artifacts/cwd_proposal_single.wasm
Binary file not shown.
Binary file modified artifacts/cwd_subdao_proposal_single.wasm
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -1397,10 +1397,10 @@
"description": "Anyone may create a proposal free of charge.",
"type": "object",
"required": [
"AnyoneMayPropose"
"anyone_may_propose"
],
"properties": {
"AnyoneMayPropose": {
"anyone_may_propose": {
"type": "object"
}
},
Expand All @@ -1410,10 +1410,10 @@
"description": "The module specified in INFO has exclusive rights to proposal creation.",
"type": "object",
"required": [
"ModuleMayPropose"
"module_may_propose"
],
"properties": {
"ModuleMayPropose": {
"module_may_propose": {
"type": "object",
"required": [
"info"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,10 @@
"description": "Anyone may create a proposal free of charge.",
"type": "object",
"required": [
"AnyoneMayPropose"
"anyone_may_propose"
],
"properties": {
"AnyoneMayPropose": {
"anyone_may_propose": {
"type": "object"
}
},
Expand All @@ -232,10 +232,10 @@
"description": "The module specified in INFO has exclusive rights to proposal creation.",
"type": "object",
"required": [
"ModuleMayPropose"
"module_may_propose"
],
"properties": {
"ModuleMayPropose": {
"module_may_propose": {
"type": "object",
"required": [
"info"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@
"description": "Anyone may create a proposal free of charge.",
"type": "object",
"required": [
"AnyoneMayPropose"
"anyone_may_propose"
],
"properties": {
"AnyoneMayPropose": {
"anyone_may_propose": {
"type": "object"
}
},
Expand All @@ -150,10 +150,10 @@
"description": "The module specified in INFO has exclusive rights to proposal creation.",
"type": "object",
"required": [
"ModuleMayPropose"
"module_may_propose"
],
"properties": {
"ModuleMayPropose": {
"module_may_propose": {
"type": "object",
"required": [
"info"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1335,10 +1335,10 @@
"description": "Anyone may create a proposal free of charge.",
"type": "object",
"required": [
"AnyoneMayPropose"
"anyone_may_propose"
],
"properties": {
"AnyoneMayPropose": {
"anyone_may_propose": {
"type": "object"
}
},
Expand All @@ -1348,10 +1348,10 @@
"description": "The module specified in INFO has exclusive rights to proposal creation.",
"type": "object",
"required": [
"ModuleMayPropose"
"module_may_propose"
],
"properties": {
"ModuleMayPropose": {
"module_may_propose": {
"type": "object",
"required": [
"info"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,10 @@
"description": "Anyone may create a proposal free of charge.",
"type": "object",
"required": [
"AnyoneMayPropose"
"anyone_may_propose"
],
"properties": {
"AnyoneMayPropose": {
"anyone_may_propose": {
"type": "object"
}
},
Expand All @@ -226,10 +226,10 @@
"description": "The module specified in INFO has exclusive rights to proposal creation.",
"type": "object",
"required": [
"ModuleMayPropose"
"module_may_propose"
],
"properties": {
"ModuleMayPropose": {
"module_may_propose": {
"type": "object",
"required": [
"info"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1335,10 +1335,10 @@
"description": "Anyone may create a proposal free of charge.",
"type": "object",
"required": [
"AnyoneMayPropose"
"anyone_may_propose"
],
"properties": {
"AnyoneMayPropose": {
"anyone_may_propose": {
"type": "object"
}
},
Expand All @@ -1348,10 +1348,10 @@
"description": "The module specified in INFO has exclusive rights to proposal creation.",
"type": "object",
"required": [
"ModuleMayPropose"
"module_may_propose"
],
"properties": {
"ModuleMayPropose": {
"module_may_propose": {
"type": "object",
"required": [
"info"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,10 @@
"description": "Anyone may create a proposal free of charge.",
"type": "object",
"required": [
"AnyoneMayPropose"
"anyone_may_propose"
],
"properties": {
"AnyoneMayPropose": {
"anyone_may_propose": {
"type": "object"
}
},
Expand All @@ -226,10 +226,10 @@
"description": "The module specified in INFO has exclusive rights to proposal creation.",
"type": "object",
"required": [
"ModuleMayPropose"
"module_may_propose"
],
"properties": {
"ModuleMayPropose": {
"module_may_propose": {
"type": "object",
"required": [
"info"
Expand Down
1 change: 1 addition & 0 deletions packages/cwd-voting/src/pre_propose.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use serde::{Deserialize, Serialize};
use crate::reply::pre_propose_module_instantiation_id;

#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
#[serde(rename_all = "snake_case")]
pub enum PreProposeInfo {
/// Anyone may create a proposal free of charge.
AnyoneMayPropose {},
Expand Down