-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add encoding/decoding for termdeposit module #1379
base: master
Are you sure you want to change the base?
Conversation
scripts/bnsd/genesis_app_state.json
Outdated
}, | ||
"account": { | ||
"valid_name": "^[a-z0-9\\-_.]{3,64}$", | ||
"valid_domain": "^[a-z0-9\\-_]+${3,16}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing $
at end of regex.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great catch. The regex should be ^[a-z0-9\\-_]{3,16}$
.
packages/iov-bns/src/types.ts
Outdated
// Transactions: Term Deposit | ||
|
||
export interface TermDepositBonus { | ||
readonly lockingPeriod: number; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lockingPeriod
should be lockinPeriod
(without the "g"). We want depositors to "lock-in" their tokens.
scripts/bnsd/genesis_app_state.json
Outdated
@@ -194,7 +194,7 @@ | |||
}, | |||
"account": { | |||
"valid_name": "^[a-z0-9\\-_.]{3,64}$", | |||
"valid_domain": "^[a-z0-9\\-_]+${3,16}", | |||
"valid_domain": "^[a-z0-9\\-_]+${3,16}$", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
valid_domain
should be ^[a-z0-9\\-_]{3,16}$
(no "+" and only a single "$" at the end of the string).
b708da7
to
c7cba96
Compare
d15cb8d
to
435cc91
Compare
"Types" part of the iov-one/ponferrada#997