-
Notifications
You must be signed in to change notification settings - Fork 1
Vesting Escrow Wallet wrapper #176
Conversation
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
src/contract_wrappers/modules/wallet/vesting_escrow_wallet_wrapper.ts
Outdated
Show resolved
Hide resolved
src/contract_wrappers/modules/wallet/vesting_escrow_wallet_wrapper.ts
Outdated
Show resolved
Hide resolved
src/contract_wrappers/modules/wallet/vesting_escrow_wallet_wrapper.ts
Outdated
Show resolved
Hide resolved
interface AddTemplateParams extends TxParams { | ||
name: string; | ||
numberOfTokens: number; | ||
duration: 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.
Should be BigNumber and the comments should specify how this duration is measured (seconds, minutes, hours, etc)
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.
I dont understand which param should be bignumber.
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.
duration
src/contract_wrappers/modules/wallet/vesting_escrow_wallet_wrapper.ts
Outdated
Show resolved
Hide resolved
src/contract_wrappers/modules/wallet/vesting_escrow_wallet_wrapper.ts
Outdated
Show resolved
Hide resolved
src/contract_wrappers/modules/wallet/vesting_escrow_wallet_wrapper.ts
Outdated
Show resolved
Hide resolved
src/contract_wrappers/modules/wallet/vesting_escrow_wallet_wrapper.ts
Outdated
Show resolved
Hide resolved
change numberOfTokens param type from number to bignumber
src/contract_wrappers/modules/wallet/vesting_escrow_wallet_wrapper.ts
Outdated
Show resolved
Hide resolved
src/contract_wrappers/modules/wallet/vesting_escrow_wallet_wrapper.ts
Outdated
Show resolved
Hide resolved
src/contract_wrappers/modules/wallet/vesting_escrow_wallet_wrapper.ts
Outdated
Show resolved
Hide resolved
src/contract_wrappers/modules/wallet/vesting_escrow_wallet_wrapper.ts
Outdated
Show resolved
Hide resolved
src/contract_wrappers/modules/wallet/vesting_escrow_wallet_wrapper.ts
Outdated
Show resolved
Hide resolved
src/contract_wrappers/modules/wallet/vesting_escrow_wallet_wrapper.ts
Outdated
Show resolved
Hide resolved
src/contract_wrappers/modules/wallet/vesting_escrow_wallet_wrapper.ts
Outdated
Show resolved
Hide resolved
src/contract_wrappers/modules/wallet/vesting_escrow_wallet_wrapper.ts
Outdated
Show resolved
Hide resolved
src/contract_wrappers/modules/wallet/vesting_escrow_wallet_wrapper.ts
Outdated
Show resolved
Hide resolved
src/contract_wrappers/modules/wallet/vesting_escrow_wallet_wrapper.ts
Outdated
Show resolved
Hide resolved
src/types.ts
Outdated
@@ -61,7 +61,9 @@ import { | |||
VolumeRestrictionTMEventArgs, | |||
VestingEscrowWalletContract, | |||
VestingEscrowWalletEvents, | |||
VestingEscrowWalletUnpauseEventArgs, |
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.
Why aren't you exporting the event args?
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.
It was a typo mistake, I added "Unpause" but in types we should only import the generic EventArgs for each wrapper.
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.
What I meant was, why isn't VestingEscrowWalletEventArgs
being exported?
Add VEW EventArgs on types.ts and adapt the wrapper to the new ABI structure
ERC20DetailedContract.ABI(), | ||
PolyTokenContract.ABI(), | ||
PolyTokenFaucetContract.ABI(), | ||
ISecurityTokenContract.ABI(), |
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.
You should add the Vesting Escrow Wallet ABI to this array
interface AddTemplateParams extends TxParams { | ||
name: string; | ||
numberOfTokens: number; | ||
duration: 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.
duration
name: string; | ||
numberOfTokens: number; | ||
duration: number; | ||
frequency: 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.
frequency
* @param frequency Frequency of the created vesting schedule | ||
* @param startTime Start time of the created vesting schedule | ||
*/ | ||
interface AddScheduleParams extends TxParams { |
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.
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 { |
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.
durations
and frequencies
should be BigNumber[]
🎉 This PR is included in version 2.0.0-beta.31 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 2.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
No description provided.