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

Add encoding/decoding for termdeposit module #1379

Open
wants to merge 27 commits into
base: master
Choose a base branch
from

Conversation

albertandrejev
Copy link
Contributor

"Types" part of the iov-one/ponferrada#997

@albertandrejev albertandrejev added the wip work in progress label Feb 4, 2020
@albertandrejev albertandrejev self-assigned this Feb 4, 2020
scripts/bnsd/start.sh Outdated Show resolved Hide resolved
scripts/bnsd/start.sh Outdated Show resolved Hide resolved
@davepuchyr davepuchyr self-requested a review February 4, 2020 18:44
},
"account": {
"valid_name": "^[a-z0-9\\-_.]{3,64}$",
"valid_domain": "^[a-z0-9\\-_]+${3,16}",
Copy link
Contributor

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.

Copy link
Contributor

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}$.

// Transactions: Term Deposit

export interface TermDepositBonus {
readonly lockingPeriod: number;
Copy link
Contributor

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.

@@ -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}$",
Copy link
Contributor

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).

@albertandrejev albertandrejev force-pushed the 998-ponferrada-termdeposit-encoding branch from b708da7 to c7cba96 Compare February 6, 2020 18:27
@albertandrejev albertandrejev marked this pull request as ready for review February 7, 2020 09:39
@albertandrejev albertandrejev removed the wip work in progress label Feb 7, 2020
@albertandrejev albertandrejev force-pushed the 998-ponferrada-termdeposit-encoding branch from d15cb8d to 435cc91 Compare February 12, 2020 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants