-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1403 from consolelabs/feat/neko-holder-fetcher
feat: neko holder fetcher
- Loading branch information
Showing
31 changed files
with
6,020 additions
and
66 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
16 changes: 16 additions & 0 deletions
16
migrations/schemas/20240702155729-modify_user_nft_balance.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,16 @@ | ||
|
||
-- +migrate Up | ||
ALTER TABLE user_nft_balances ADD COLUMN IF NOT EXISTS profile_id text not null default ''; | ||
ALTER TABLE user_nft_balances ADD COLUMN IF NOT EXISTS updated_at timestamptz not null default (now() at time zone 'utc'); | ||
ALTER TABLE user_nft_balances ADD COLUMN IF NOT EXISTS metadata jsonb not null default '{}'; | ||
ALTER TABLE user_nft_balances DROP COLUMN IF EXISTS token_id; | ||
|
||
ALTER TABLE user_nft_balances ADD CONSTRAINT user_nft_balances_collection_id_address UNIQUE (nft_collection_id, user_address); | ||
|
||
-- +migrate Down | ||
ALTER TABLE user_nft_balances ADD COLUMN IF NOT EXISTS token_id TEXT not null default ''; | ||
ALTER TABLE user_nft_balances DROP COLUMN IF EXISTS updated_at; | ||
ALTER TABLE user_nft_balances DROP COLUMN IF EXISTS profile_id; | ||
ALTER TABLE user_nft_balances DROP COLUMN IF EXISTS metadata; | ||
|
||
ALTER TABLE user_nft_balances DROP CONSTRAINT IF EXISTS user_nft_balances_collection_id_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package consts | ||
|
||
var NekoContractAddress = "0x7aCeE5D0acC520faB33b3Ea25D4FEEF1FfebDE73" | ||
var NekoStakingContractAddress = "0xD28Cf82b9B8ee25E3C82923aDF6aA6CC2f220932" |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.