mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 06:12:55 +00:00
6acb34bab7
This commit does a few things: 1) Extend create/import account endpoint to get wallet config, some of which has been moved to the backend 2) Set up a loop for retrieving balances every 10 minutes, caching the balances 3) Return information about which checks are not passing when trying to join a token gated community 4) Add tests to the token gated communities 5) Fixes an issue with addresses not matching when checking for permissions The move to the wallet as a background task is not yet complete, I need to publish a signal, and most likely I will disable it before merging for now, as it's currently not used by desktop/mobile, but the PR was getting to big
14 lines
467 B
SQL
14 lines
467 B
SQL
CREATE TABLE IF NOT EXISTS token_balances (
|
|
user_address VARCHAR NOT NULL,
|
|
token_name VARCHAR NOT NULL,
|
|
token_symbol VARCHAR NOT NULL,
|
|
token_address VARCHAR NOT NULL,
|
|
token_color VARCHAR NOT NULL DEFAULT "",
|
|
token_decimals INT NOT NULL,
|
|
token_description VARCHAR NOT NULL DEFAULT "",
|
|
token_url VARCHAR NOT NULL DEFAULT "",
|
|
balance VARCHAR NOT NULL,
|
|
chain_id INT NOT NULL,
|
|
PRIMARY KEY (user_address, chain_id, token_symbol) ON CONFLICT REPLACE
|
|
)
|