add sqlite to cache token metadata

This commit is contained in:
2026-05-14 20:49:54 +08:00
parent 92156f572d
commit cae5d4023f
15 changed files with 296 additions and 8 deletions
@@ -0,0 +1,10 @@
CREATE TABLE `token_metadata` (
`name` text,
`symbol` text NOT NULL,
`decimals` integer,
`logo` text,
`contractAddress` text NOT NULL,
`chainId` text NOT NULL
);
--> statement-breakpoint
CREATE UNIQUE INDEX `contract_unique` ON `token_metadata` (`chainId`,`contractAddress`);