-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Multiple vestings for grants (#1162)
* migration started * changes on vesting module started * vesting items view * added chevron * minor fix * enactment modal updated * requested changes * requested changes * changed modal title * added button when there's only 1 contract * minor fix
- Loading branch information
Showing
27 changed files
with
560 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import handleAPI from 'decentraland-gatsby/dist/entities/Route/handle' | ||
import routes from 'decentraland-gatsby/dist/entities/Route/routes' | ||
import { Request } from 'express' | ||
|
||
import { VestingInfo } from '../../clients/VestingData' | ||
import { VestingService } from '../../services/VestingService' | ||
import { validateAddress } from '../utils/validations' | ||
|
||
export default routes((router) => { | ||
router.post('/vesting', handleAPI(getVestingInfo)) | ||
}) | ||
|
||
async function getVestingInfo(req: Request<any, any, { addresses: string[] }>): Promise<VestingInfo[]> { | ||
const addresses = req.body.addresses | ||
addresses.forEach(validateAddress) | ||
|
||
return await VestingService.getVestingInfo(addresses) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 5 additions & 2 deletions
7
src/components/Modal/UpdateProposalStatusModal/UpdateProposalStatusModal.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
.content.ProposalModal__GrantTransaction { | ||
.content .ProposalModal__GrantTransaction { | ||
margin: 24px auto !important; | ||
width: 480px !important; | ||
} | ||
|
||
.ProposalModal__GrantTransaction input { | ||
font-size: 18px !important; | ||
} |
Oops, something went wrong.