-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add ability to fund an account with OGV read from env variable * fix deletion error, add extra fields to lockup table
- Loading branch information
1 parent
ce936b8
commit 0ba4908
Showing
6 changed files
with
63 additions
and
7 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
40 changes: 40 additions & 0 deletions
40
client/prisma/migrations/20220714120544_added_lockup_fields/migration.sql
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,40 @@ | ||
/* | ||
Warnings: | ||
- A unique constraint covering the columns `[last_seen_block]` on the table `listener` will be added. If there are existing duplicate values, this will fail. | ||
- A unique constraint covering the columns `[lockupId,user]` on the table `lockups` will be added. If there are existing duplicate values, this will fail. | ||
- A unique constraint covering the columns `[proposal_id]` on the table `proposals` will be added. If there are existing duplicate values, this will fail. | ||
- A unique constraint covering the columns `[address]` on the table `voters` will be added. If there are existing duplicate values, this will fail. | ||
- Added the required column `amount` to the `lockups` table without a default value. This is not possible if the table is not empty. | ||
- Added the required column `end` to the `lockups` table without a default value. This is not possible if the table is not empty. | ||
- Added the required column `points` to the `lockups` table without a default value. This is not possible if the table is not empty. | ||
*/ | ||
-- DropIndex | ||
DROP INDEX "listener_last_seen_block_key"; | ||
|
||
-- DropIndex | ||
DROP INDEX "lockups_lockupId_user_key"; | ||
|
||
-- DropIndex | ||
DROP INDEX "proposals_proposal_id_key"; | ||
|
||
-- DropIndex | ||
DROP INDEX "voters_address_key"; | ||
|
||
-- AlterTable | ||
ALTER TABLE "lockups" ADD COLUMN "amount" DECIMAL(78,0) NOT NULL, | ||
ADD COLUMN "end" TIMESTAMP(3) NOT NULL, | ||
ADD COLUMN "points" DECIMAL(78,0) NOT NULL; | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "listener_last_seen_block_key" ON "listener"("last_seen_block"); | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "lockups_lockupId_user_key" ON "lockups"("lockupId", "user"); | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "proposals_proposal_id_key" ON "proposals"("proposal_id"); | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "voters_address_key" ON "voters"("address"); |
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
PROVIDER_URL=[SET PROVIDER URL HERE] | ||
BLOCK_NUMBER=14171608 | ||
ACCOUNT_TO_FUND=[SET ACCOUNT TO FUND WITH OGV ON STARTUP] |
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