Skip to content

Commit

Permalink
Static Contract Metadata Updates (duneanalytics#4887)
Browse files Browse the repository at this point in the history
* static

* comma

* adds

* statics

* adds

* adds

* adds

* adds

* gall

* eq

* commit

* adds

* adds

* add

* remove @ in seed step

* Revert "remove @ in seed step"

This reverts commit 421671e.

---------

Co-authored-by: jeff-dude <[email protected]>
Co-authored-by: jeff-dude <[email protected]>
  • Loading branch information
3 people authored Dec 12, 2023
1 parent 41d5eda commit ede7c91
Show file tree
Hide file tree
Showing 8 changed files with 181 additions and 3 deletions.
117 changes: 117 additions & 0 deletions models/_sector/contracts/contracts_contract_creator_address_list.sql
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,9 @@ WITH curated_list AS (
,(0xffa0cb9f057d077d85655be8823961c4fd4cb56a, 'Alienswap')
,(0x79e529874c1fdC0417732B4deBCD9963eF2C7031, 'Anotherblock')
,(0x365212Ecc6715A561C1ec128FCc3AEd9DBF3c404, 'Archly')
,(0xe9e586a61fd95bb8d20e17cd9d1e22222de8f983, 'Archly')
,(0x82d3c9246890e672ba4dfbf2038c791727bcb34a, 'Archly')

,(0xEcF083eD063f8cdeE580A43f60A3726ef59C66aa, 'InstaDapp') --Avocado
,(0x9652721d02b9db43f4311102820158aBb4ecc95B, 'Base') --Base: Deployer 1
,(0xfD5844867387Cecc3A0393b3e0BE32479Ea9e61a, 'SwapBased')
Expand All @@ -751,7 +754,57 @@ WITH curated_list AS (
,(0xccFa0530B9d52f970d1A2dAEa670ce58E4176389, 'BALD')
,(0xb5BB53E93D11876b6a49A45885b602eF0Ab286E6, 'MonkeyLeague')
,(0xC3F9774aF21a030Ab785CB45510BA9EdC9d0c8CD, 'Moonwell')
,(0x5F0A0e3B30d304fBa56e2EEe3A442b0Bb5C40275, 'Moonwell')
,(0x1626709C8456d5BdD4667D878CD8618ce53f5eb2, 'Newthrone')
,(0x4F0D938A81343A5Fb10d6BB20BF5996E2e557586, 'RAI Finance')
,(0xeee47e88a8176c0774673e0e78ed0afffd5f7fff, 'Tokepad')
,(0x3c6D5c150EE29B698c6C821B53886C41d239669c, 'Uniswap')
,(0x5ee2b0fd8d964cb50e787db4ff176d7bbb0fd180, 'Layer Zero')
,(0x144fe9807c92c64acc4bb8e3b8917723efc0d557, 'Clearpool')
,(0x3bEAAb5E79e2588D575cfBa48a74d59A9E94C4Fa, 'Clearpool')
,(0x3601ccd1f6843cd1073f2f769f70905656168ef0, 'Aloe II')
,(0xbbc2cd847bdf10468861dab854cd2b2e315e28c8, 'Aloe II')
,(0x2287fa6efdec6d8c3e0f4612ce551decf89a357a, 'Backed')
,(0x398df9f7d65c177c00749ffc83cb34ba5e07bf8b, 'Beethoven X')
,(0x9e3d8dcd4c4c67eaa752457a51efbf98cb5439c6, 'Chainlink')
,(0x4f350ba97d9e4bd9713763126a907960949c8101, 'Clipper')
,(0x33b88b0e675a5e2c886bd66a493a0f69c6db8f2b, 'Collab.Land')
,(0x5a041ec279a81f5421667f665767b30dd8e3e36d, 'Connext')
,(0x3d6a34d8ece4640adff2f38a5bd801e51b07e49c, 'DappGate')
,(0x4be6369ceab4719108e9fbfc9b304201f1fe58aa, 'Delegate.xyz')
,(0xd1ac051dc0e1366502ef3fe4d754fbec6986a177, 'Gelato')
,(0x562c4e878b5cd1f64007358695e8187cb4517c64, 'Gelato')
,(0x346389e519536a049588b8adcde807b69a175939, 'Gelato')
,(0xf7b73f96951e7ef3f9da69b4ec6431319ade7e9f, 'Guild.xyz')
,(0x0989cd2871b36d638140354731301a32d2409c3a, 'Highlight.xyz')
,(0xcafe2ef59688187ee312c8aca10ceb798338f7e3, 'Holonym')
,(0x5ee2b0fd8d964cb50e787db4ff176d7bbb0fd180, 'Layer Zero')
,(0x2a61d3ba5030ef471c74f612962c7367eca3a62d, 'Lido')
,(0x11f11121df7256c40339393b0fb045321022ce44, 'Lifi')
,(0x92b381515bd4851faf3d33a161f7967fd87b1227, 'Manifold')
,(0x687be8d213d49bc353d60298c51d8823632d8158, 'Mirror')
,(0xc3e9591edb56dcc951d50cd5002108e9d8968410, 'OpenOcean')
,(0x8f1e16be9b6f88acf2cd58da84a335463350b9fb, 'Paragraph')
,(0x22f3bdd1135e62ba7ee980ed53ded634e412869c, 'Paraswap')
,(0x247d4a505cdcb3c715465d4bb988aacfe6d6affc, 'Pods')
,(0xe0e7b7c5ae92fe94d2ae677d81214d6ad7a11c27, 'Pooltogether')
,(0x83681c14770b44361e21faf91d8325423365ea5c, 'Revert Finance')
,(0x3226c9eac0379f04ba2b1e1e1fcd52ac26309aea, 'Ricochet Exchange')
,(0x979b44cfc7a9b54bed8a3c4fd674b09c194219fd, 'Saddle Finance')
,(0xb73acb429ba868984c0236bdf940d4fe1e643f27, 'Synapse')
,(0xa5e6efda500fd0bced87b2cd8af1c81c0cc9d556, 'Synapse')
,(0x3b30a7d3e65c5a0fff727bad7eb6fa269b4a9222, 'Teahouse')
,(0x310a7ca95b4c2156621591dfbd77557d729bed0e, 'Thales')
,(0x2e5d207a4c0f7e7c52f6622dcc6eb44bc0fe1a13, 'Unidex')
,(0xd2cfd172a1d55971f31bc293fcd23863be3325ab, 'Unidex')
,(0xd32ff78579352ca78f416120a9f68b65c410871b, 'Uniswap')
,(0xd42c7914cf8dc24a1075e29c283c581bd1b0d3d3, 'Velodrome')
,(0x51cc12e6a4fccbcd6eb6f1c5905263edc5578c5f, 'Velodrome')
,(0x76d266dfd3754f090488ae12f6bd115cd7e77ebd, 'Vesper')
,(0x96d55bd9c8c4706fed243c1e15825ff7854920fa, 'Worldcoin')
,(0xf69fec6d858c77e969509843852178bd24cad2b6, 'Zora')
,(0x05950b4e68f103d5abef20364de219a247e59c23, 'Contango')


,(0xFe1A6056EE03235f30f7a48407A5673BBf25eD48, 'Aave')
,(0x2fbB0c60a41cB7Ea5323071624dCEAD3d213D0Fa, 'Aave')
Expand Down Expand Up @@ -829,6 +882,70 @@ WITH curated_list AS (
,(0xa82cbE54d2dAe403f7B3385aA2afA03E7AF0591A, 'XEN Crypto')
,(0x95Ba4cF87D6723ad9C0Db21737D862bE80e93911, 'Circle')

,(0x855e321ad155D45B64475EEe946D8fA492A7f3F3, 'StableBase')
,(0x3885226c26c467B342220132ec9d0b311b2DD43c, 'Base')
,(0x5c146cd18fa53914580573c9b9604588529406ca, 'Equalizer Exchange')
,(0x5aab1dae1ef9d93b7095d9de9c0ebb150d0c37f0, 'Overtime Markets')
,(0xec219699d2faeb3f416c116de60cdb4aaf2f8d7c, 'Maverick')
,(0x5b540d168e2468270a3b5c66dd1a6e4ece6be593, 'Aave')
,(0xdfa1a2df1ff153ab2afc327661e8414f2d04b3e3, 'Pancakeswap')
,(0xdd3705a1c50fc84b6d31394aa8f4d568b98a8ad5, 'Alienbase')
,(0x6647da1da67bcab3af15c0eb9f7983b3c574b08e, 'Vela Exchange')
,(0x33eb4dea4931e5d607531fb08bd393944aa01faa, 'Seamless Protocol')
,(0xe7affdb964178261df49b86bfdba78e9d768db6d, 'Loot2')
,(0x30109f25428cbe2aa7fd33646a097bfbecf17365, 'USDV')
,(0x02f086dbc384d69b3041bc738f0a8af5e49da181, 'Parallel')
,(0x3073fcad986fbe9f94cc6caa44f76c12e34516d4, 'Moonwell')
,(0xa7a5e47d3959bf134e3ecdeb1f62e054f0d58a18, 'Reserve Protocol')
,(0x38f2ad967328f246763d052cea13ebde47d54518, 'Elk Finance')
,(0x2a069e21395dc7f89f780f8cf5383a0ff598b672, 'Hats Protocol')
,(0x1885b7c7a3ae1f35ba71c0392c13153a95c4914f, 'Hats Finance')
,(0x0ae6af9c58d2830c2721ebd06f89a73bff19fb26, 'Jarvis Network')
,(0xA825fc60eB4B1269F1dF0f6E574b953d2b5f7EFc, 'Keep3r Network')
,(0x0ff213846d42528a4ca24f8079f85b8044acfa7b, 'DMail')
,(0x63B81972320b5B8d1C1fC90E29F145380b5B9bD4, 'OpenSea')
,(0x8281B589Ea0c0B126aF00df3FAe781140920500a, 'PancakeSwap')
,(0xfE351F5Ed699fd5eA80b906F89DfdAd2f885A46C, 'Basedmarkets')
,(0x7a906107E2E0c9Db9a991Eaa8Ac8D50764460E85, 'TagDotTech')
,(0x55638a37D2C29a1c602Dc0e3f81751a54dc504f0, 'Deus Finance')
,(0x16fAEd102610Ef4374540C000FF0316f0E058419, 'Eco')
,(0xC773006d1e940157b4b3aFabE3CCc165C6253049, 'Edgeware')
,(0x603d50BAd151Da8becf405E51a8c4Abc8bA1c95E, 'Raft')
,(0x88d9bc8a0c50fCF7cDd160b906D64c312bef79d6, 'Synthswap')
,(0x2202A7Fe406DDaB2F85af596D4F4818a903CB85e, 'Pyth')
,(0x89955a99552F11487FFdc054a6875DF9446B2902, 'Morphex')
,(0xb1dd2fdb023cb54b7cc2a0f5d9e8d47a9f7723ce, 'Morphex')
,(0xbbbbb8c4364ec2ce52c59d2ed3e56f307e529a94, 'Tetu')
,(0x3b91ca4d89b5156d456cbd0d6305f7f36b1517a4, 'Morphex')
,(0x1491f4b6dbaf2ed0a4cf94285608b132b27df5df, 'PixeBots')
,(0xe733472413376c855272418a6a30f86b218ab869, 'Nether Fi')
,(0xfe0e16e59015133bf8afde827a0f7a7b3183d6e8, 'BaseSwap')
,(0x857e7ee37252621345d3225db8f74f9ac0a57953, 'DackieSwap')
,(0x807f8739105042997d614bf2e654c648989ac137, 'Anotherblock')
,(0xc31249ba48763df46388ba5c4e7565d62ed4801c, 'Jarvis Network')
,(0x35a94b6319f0ba9ec930e02cb64ec6bb170bd3f1, 'Rocket Pool')
,(0xeee7fb850d28f5cabd5f1edf540646b5bea17ce5, 'Liquity')
,(0x6aaff8af0ae8017725312c388ba3745dfe91185b, 'Circle')

,(0x4fed5491693007f0cd49f4614ffc38ab6a04b619, 'Beefy Finance')
,(0x06263e1a856b36e073ba7a50d240123411501611, 'Giveth')
,(0x7f3b192ab3220940d66236792f3ebdb0e4e74138, 'Biconomy')
,(0xaaa6640f36ae35d61ce5e6f2a3c8975d07d1ab90, 'Equalizer Finance') --different from exchange
,(0x7396f133baa2543ea7917ba3254e61fea3028288, 'Fuse')
,(0xa2ec022d89b0a80012c2446b0e8e5ff12f88dfc1, 'Wagmi')
,(0x246e20bf778b3e16cb71eca535f40f8c4e6c4185, 'Aave')
,(0x0d7effefdb084dfeb1621348c8c70cc4e871eba4, 'Tellor')
,(0xc42705a210f082ff29e6beac80f56c41f0a54091, 'Aave')
,(0x31b8939c6e55a4ddaf0d6479320a0dfd9766ee9d, 'T Protocol')
,(0xd31f9113fdb5bd97d7ddf969f15956808db4a6fb, 'TrueUSD')
,(0x3a326de86fbc731fc3e0823da5a46a23be65c836, 'dHEDGE')
,(0xfdf6fa86058d1eacb441adb5acfc143672e59a58, 'MetalSwap')
,(0x27e80db1f5a975f4c43c5ec163114e796cdb603d, 'Rocket Pool')
,(0xfcc8c70a7ea0f588135b7b8892995ada7c0117b2, 'Galleon')

,(0xcB3Bb767104e0b3235520fafB182e005D7efD045, 'Wombat Exchange')


) as temp_table (creator_address, contract_project)
)

Expand Down
1 change: 1 addition & 0 deletions models/_sector/contracts/contracts_contract_overrides.sql
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ from
,(0xca11bde05977b3631167028862be2a173976ca11, 'Multicall3', 'Multicall3')
,(0xfc2d34a2a545dbe210ad0d8cc0e0e943aacff621, 'first.lol', 'first.lol') --Zora
,(0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7, 'Gnosis Safe', 'Safe Singleton Factory')
,(0x00005EA00Ac477B1030CE78506496e8C2dE24bf5, 'OpenSea', 'SeaDrop 1.0')
--Non-Contract Labels
,(0x80C67432656d59144cEFf962E8fAF8926599bCF8, 'Orbiter Finance', 'Bridge')
,(0xf332761c673b59B21fF6dfa8adA44d78c12dEF09, 'OKX', 'OKX DEX')
Expand Down
2 changes: 2 additions & 0 deletions models/_sector/contracts/contracts_project_name_mappings.sql
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,7 @@ from (
,('union_protocol', 'Union Finance')
,('rubic_crosschain', 'Rubic')
,('gyroscope', 'Gyroscope')
,('synthetix_futuresmarket', 'Synthetix')
,('synapsefees', 'Synapse')

) as temp_table (dune_name, mapped_name)
35 changes: 34 additions & 1 deletion models/tokens/base/tokens_base_erc20.sql
Original file line number Diff line number Diff line change
Expand Up @@ -798,5 +798,38 @@ FROM (VALUES
(0x23ee2343b892b1bb63503a4fabc840e0e2c6810f,'AXL',6),
(0x1a49655a4AFca3D004E058ef0ea0D45eC158ae80,'AERO',18),
(0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913,'USDC',6),
(0x940181a94A35A4569E4529A3CDfB74e38FD98631,'AERO',18)
(0x940181a94A35A4569E4529A3CDfB74e38FD98631,'AERO',18),
(0xeB585163DEbB1E637c6D617de3bEF99347cd75c8, 'cbXEN', 18),
(0xFF0C532FDB8Cd566Ae169C1CB157ff2Bdc83E105, 'Fren Pet', 18),
(0xf3F4aA6B2D396eE1656F5fd177F441bE822FFfBb, 'FRIEND', 8),
(0xd5046B976188EB40f6DE40fB527F89c05b323385, 'BaseX', 18),
(0xC1985d7a3429cDC85E59E2E4Fcc805b857e6Ee2E, 'hETH', 18),
(0xE3B53AF74a4BF62Ae5511055290838050bf764Df, 'STG', 18),
(0x6944C9F9997fB1ccf8191300F104cd11636623D9, 'GROK', 8),
(0x417Ac0e078398C154EdFadD9Ef675d30Be60Af93, 'crvUSD', 18),
(0x1dd2d631c92b1aCdFCDd51A0F7145A50130050C4, 'ALB', 18),
(0x54016a4848a38f257B6E96331F7404073Fd9c32C, 'SCALE', 18),
(0x4A0a76645941d8C7ba059940B3446228F0DB8972, 'CAROL', 18),
(0x071267674754F086DC6fDf5cb03288db4074F434, 'BDRIP', 18),
(0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452, 'wstETH', 18),
(0xCfA3Ef56d303AE4fAabA0592388F19d7C3399FB4, 'eUSD', 18),
(0x7905EA12CC81a215A5F1D0F46DF73a53E19E9264, 'TAG', 18),
(0x9483ab65847A447e36d21af1CaB8C87e9712ff93, 'wUSDR', 9),
(0x64b88c73A5DfA78D1713fE1b4c69a22d7E0faAa7, 'MAV', 18),
(0xbf1aeA8670D2528E08334083616dD9C5F3B087aE, 'MAI', 18),
(0xFF8adeC2221f9f4D8dfbAFa6B9a297d17603493D, 'WELL', 18),
(0x5607718c64334eb5174CB2226af891a6ED82c7C6, 'OG Points', 18),
(0x4c5d8A75F3762c1561D96f177694f67378705E98, 'PYTH', 6),
(0xFE8B128bA8C78aabC59d4c64cEE7fF28e9379921, 'BTRST', 18),
(0x28fe69Ff6864C1C218878BDCA01482D36B9D57b1, 'KNC', 18),
(0xFd4330b0312fdEEC6d4225075b82E00493FF2e3f, 'SDEX', 18),
(0x703D57164CA270b0B330A87FD159CfEF1490c0a5, 'SOFI', 18),
(0xDE5ed76E7c05eC5e4572CfC88d1ACEA165109E44, 'DEUS', 18),
(0x434769c82fB928150B87C4Ae6320Bf71F92dCCa5, 'ECO', 18),
(0x4E0dA40b9063dC48364C1C0fFB4AE9d091fc2270, 'EDG', 18),
(0xaFB2820316e7Bc5Ef78d295AB9b8Bb2257534576, 'R', 18)




) AS temp_table (contract_address, symbol, decimals)
7 changes: 6 additions & 1 deletion models/tokens/base/tokens_base_nft_curated.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ SELECT
contract_address, name, symbol
FROM
(VALUES
(0x1FC10ef15E041C5D3C54042e52EB0C54CB9b710c, 'Base is for Builders', 'BASEBUILDERS')
(0x1FC10ef15E041C5D3C54042e52EB0C54CB9b710c, 'Base is for Builders', 'BASEBUILDERS')
,(0x061A883E8c2FEFFB4F3eA42046ABD4bE88E1333f, 'Omnichain Adventures (Part 2)', 'OMNIA2')
,(0x5b51Cf49Cb48617084eF35e7c7d7A21914769ff1, 'Frenpet NFT', 'Frenpet')
,(0xF882c982a95F4D3e8187eFE12713835406d11840, 'Merkly ONFT', 'MERK')
,(0x36a358b3Ba1FB368E35b71ea40c7f4Ab89bFd8e1, 'l2telegraph.xyz', 'l2t')
,(0x29D24B2AC84E51F842fb8c1533CD972eb83c65Ce, 'L2Marathon', 'MarathonRunner')

) as temp_table (contract_address, name, symbol)
7 changes: 7 additions & 0 deletions models/tokens/optimism/tokens_optimism_erc20_curated.sql
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,13 @@ WITH raw_token_list AS (
,(0xc5d43a94e26fca47a9b21cf547ae4aa0268670e1, 'FPI', 18, 'underlying')
,(0xc871cCf95024eFa2CbcE69B5B775D2a1DcF49c1B, 'GROW', 18, 'underlying')
,(0x9046D36440290FfDE54FE0DD84Db8b1CfEE9107B, 'YFI', 18, 'underlying')
,(0xeB585163DEbB1E637c6D617de3bEF99347cd75c8, 'opXEN', 18, 'underlying')
,(0xdbc3a41578bBfA47837a9cD8196a5Bc7F44c8041, 'BULL', 18, 'underlying')
,(0x323665443CEf804A3b5206103304BD4872EA4253, 'USDV', 6, 'underlying')
,(0x61445Ca401051c86848ea6b1fAd79c5527116AA1, 'MO', 4, 'underlying')
,(0x20279b6d57Ba6D3eF852f34800e43e39d46d6487, 'MERK', 18, 'underlying')
,(0x9cfB13E6c11054ac9fcB92BA89644F30775436e4, 'axl-wstETH', 18, 'underlying')
,(0xc55E93C62874D8100dBd2DfE307EDc1036ad5434, 'mooBIFI', 18, 'receipt')

) AS temp_table (contract_address, symbol, decimals, token_type)
)
Expand Down
6 changes: 6 additions & 0 deletions models/tokens/optimism/tokens_optimism_nft_curated.sql
Original file line number Diff line number Diff line change
Expand Up @@ -302,5 +302,11 @@ FROM
,(0x11e76ab2e2c48e4a561ac96935399c8595619fa4, 'Optimism Superchain Builder NFT')
,(0x71c16e76756fdb527386291886fcd5495fd2b691, 'Xgirl')
,(0xAF18644083151cf57F914CCCc23c42A1892C218e, 'XEN Torrent')
,(0xD12999440402d30F69E282d45081999412013844, 'Omnichain Adventures')
,(0xA2962687e7b4A7610E84E857959FE559239FdFCF, 'Forget About Time (2023)')
,(0x7d213E53953a8dDe1dD08413699fEaC0292685E6, 'Dream Travel')
,(0x0fc96CBf26e631005CCa26903aE57e7cF8eccAf2, 'Mercy ROguE')
,(0xd9CAEe4e97035d0d6FC789e46E4ebfAB14b79340, 'Embrace the Chaos')
,(0x012cAEb558DfFc053a6A092835a1e7F5c8EeBA8b, 'Omni Ax Adventures')

) as temp_table (contract_address, name)
9 changes: 8 additions & 1 deletion models/tokens/zora/tokens_zora_nft_curated.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ SELECT
contract_address, name, symbol
FROM
(VALUES
(0x1F781d47cD59257D7AA1Bd7b2fbaB50D57AF8587, 'BLOCKS', 'BLOCKS')
(0x1F781d47cD59257D7AA1Bd7b2fbaB50D57AF8587, 'BLOCKS', 'BLOCKS')
,(0x1225c2d6e987aa95b76e0d03b505696a1b7a080f, 'Serene Lake Twilight', 'SLT')
,(0xbc2ca61440faf65a9868295efa5d5d87c55b9529, 'sqr(16)', 'SQR')
,(0x53cb0b849491590cab2cc44af8c20e68e21fc36d, 'Allure', 'ALL')
,(0x4073a52a3fc328d489534ab908347ec1fcb18f7f, 'GoldenFla', 'GFLA')
,(0x8974b96da5886ed636962f66a6456dc39118a140, 'Zoggles', '.ZOGGLE...')
,(0x199a21f0be1cdcdd882865e7d0f462e4778c5ee4, 'Galaxy Zorb', 'GZRB')
,(0x9eae90902a68584e93a83d7638d3a95ac67fc446, 'Fla', 'FLA')

) as temp_table (contract_address, name, symbol)

0 comments on commit ede7c91

Please sign in to comment.