Skip to content

Commit

Permalink
Merge pull request #1403 from consolelabs/feat/neko-holder-fetcher
Browse files Browse the repository at this point in the history
feat: neko holder fetcher
  • Loading branch information
anhnh12 authored Jul 7, 2024
2 parents 56d069e + 978892e commit a963d55
Show file tree
Hide file tree
Showing 31 changed files with 6,020 additions and 66 deletions.
839 changes: 839 additions & 0 deletions abi/neko.json

Large diffs are not rendered by default.

561 changes: 561 additions & 0 deletions abi/neko_staking.json

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions migrations/schemas/20240702155729-modify_user_nft_balance.sql
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;
4 changes: 4 additions & 0 deletions pkg/consts/neko.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package consts

var NekoContractAddress = "0x7aCeE5D0acC520faB33b3Ea25D4FEEF1FfebDE73"
var NekoStakingContractAddress = "0xD28Cf82b9B8ee25E3C82923aDF6aA6CC2f220932"
2,031 changes: 2,031 additions & 0 deletions pkg/contract/neko/neko.go

Large diffs are not rendered by default.

1,380 changes: 1,380 additions & 0 deletions pkg/contract/nekostaking/nekostaking.go

Large diffs are not rendered by default.

Loading

0 comments on commit a963d55

Please sign in to comment.