Skip to content
This repository has been archived by the owner on Jul 6, 2022. It is now read-only.

Vesting Escrow Wallet wrapper #176

Merged
merged 20 commits into from
Aug 21, 2019
Merged

Vesting Escrow Wallet wrapper #176

merged 20 commits into from
Aug 21, 2019

Conversation

shuffledex
Copy link
Contributor

No description provided.

basic VEW structure to interact with abi-wrapper
add calls and transactions methods to cover Vesting Escrow Wallet at
100%
add documentation for every method and interface we have
improve startTtime parameter type to handle zero value
add asserts and conversions in return types
add VEW example and fix some issues discovered in the process
examples/vestingEscrowWallet.ts Outdated Show resolved Hide resolved
interface AddTemplateParams extends TxParams {
name: string;
numberOfTokens: number;
duration: number;
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be BigNumber and the comments should specify how this duration is measured (seconds, minutes, hours, etc)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I dont understand which param should be bignumber.

Copy link
Contributor

Choose a reason for hiding this comment

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

duration

src/types.ts Outdated
@@ -61,7 +61,9 @@ import {
VolumeRestrictionTMEventArgs,
VestingEscrowWalletContract,
VestingEscrowWalletEvents,
VestingEscrowWalletUnpauseEventArgs,
Copy link
Contributor

Choose a reason for hiding this comment

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

Why aren't you exporting the event args?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was a typo mistake, I added "Unpause" but in types we should only import the generic EventArgs for each wrapper.

Copy link
Contributor

Choose a reason for hiding this comment

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

What I meant was, why isn't VestingEscrowWalletEventArgs being exported?

@shuffledex shuffledex changed the title [WIP] Vesting Escrow Wallet wrapper Vesting Escrow Wallet wrapper Aug 21, 2019
Add VEW EventArgs on types.ts and adapt the wrapper to the new ABI
structure
ERC20DetailedContract.ABI(),
PolyTokenContract.ABI(),
PolyTokenFaucetContract.ABI(),
ISecurityTokenContract.ABI(),
Copy link
Contributor

Choose a reason for hiding this comment

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

You should add the Vesting Escrow Wallet ABI to this array

interface AddTemplateParams extends TxParams {
name: string;
numberOfTokens: number;
duration: number;
Copy link
Contributor

Choose a reason for hiding this comment

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

duration

name: string;
numberOfTokens: number;
duration: number;
frequency: number;
Copy link
Contributor

Choose a reason for hiding this comment

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

frequency

* @param frequency Frequency of the created vesting schedule
* @param startTime Start time of the created vesting schedule
*/
interface AddScheduleParams extends TxParams {
Copy link
Contributor

Choose a reason for hiding this comment

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

duration and frequency should be BigNumber

* @param frequencies Array of the vesting frequency
* @param startTimes Array of the vesting start time
*/
interface AddScheduleMultiParams extends TxParams {
Copy link
Contributor

Choose a reason for hiding this comment

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

durations and frequencies should be BigNumber[]

@monitz87 monitz87 merged commit 1d3cf50 into develop Aug 21, 2019
@monitz87 monitz87 deleted the VEW branch August 21, 2019 19:22
@shivamagl95
Copy link
Contributor

🎉 This PR is included in version 2.0.0-beta.31 🎉

The release is available on:

Your semantic-release bot 📦🚀

@shivamagl95
Copy link
Contributor

🎉 This PR is included in version 2.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

None yet

3 participants