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/stos #119

Merged
merged 25 commits into from
Dec 5, 2019
Merged

Feat/stos #119

merged 25 commits into from
Dec 5, 2019

Conversation

monitz87
Copy link
Contributor

No description provided.

This is in line with changes to the smart contracts which will allow Tiered STOs to raise funds in
any denomination

BREAKING CHANGE: entity `UsdTieredSto` rernamed to `TieredSto`, enum `StoType.UsdTiered` changed to
`StoType.Tiered`
Also add internal support for future methods and resolver arrays
Launch functions and procedure params were named differently from the entity properties

BREAKING CHANGE: rename STO entity properties for consistency
Also fixed some wrong procedure types
src/entities/factories/TieredStoFactory.ts Outdated Show resolved Hide resolved
message: `Cannot invest on behalf of ${beneficiary} because this STO doesn't allow beneficial investments`,
});
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could add whitelist validation here in the future.

this.startDate = startDate;
this.endDate = endDate;
this.raisedFundsWallet = raisedFundsWallet;
this.unsoldTokensWallet = unsoldTokensWallet;
this.raisedAmount = raisedAmount;
this.soldTokensAmount = soldTokensAmount;
this.investorAmount = investorAmount;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we change this to investorCount everywhere?

Removed `investments` in favor of a `getInvestments` function. Changed `investorAmount` to
`investorCount`

BREAKING CHANGE: Removed `investments` in favor of a `getInvestments` function. Changed
`investorAmount` to `investorCount`
Copy link
Collaborator

@VictorVicente VictorVicente left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Good job. The only pending task is to change CappedSTO to SimpleSTO everywhere it is public.

All relevant types and enums were changed as well

BREAKING CHANGE: rename CappedSto to SimpleSto
@VictorVicente VictorVicente merged commit 86c56ed into beta Dec 5, 2019
@VictorVicente VictorVicente deleted the feat/stos branch December 5, 2019 14:36
@polymath-devops
Copy link

🎉 This PR is included in version 2.0.1-beta.66 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants