Skip to content

Commit

Permalink
Add API key to secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrel-b committed Apr 10, 2024
1 parent d25522c commit 13e5688
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 599 deletions.
535 changes: 0 additions & 535 deletions db/gen/coredb/manifest.json

Large diffs are not rendered by default.

44 changes: 0 additions & 44 deletions db/gen/coredb/query.sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions db/queries/core/query.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2057,6 +2057,3 @@ update highlight_mint_claims set last_updated = now(), status = $1, internal_tok
-- name: AddAppMintAnnouncementNotificationToUser :exec
insert into notifications (id, deleted, owner_id, last_updated, created_at, action, data, event_ids, seen, amount)
values (@notification_id, false, @user_id, now(), now(), 'Announcement', '{"announcement_details": {"title": "Thank you for downloading the Gallery mobile app", "platform": "Web", "image_url": "https://highlight-creator-assets.highlight.xyz/main/base-dir/5b5d06ee-679c-4ead-90bf-aa784e9aabcc/previews/3.png?d=152x152&attempt=2", "description": "Tap to claim your unique mint of Radiance by MCHX", "internal_id": "apr-2024-mchx-collab"}}', '{2egglIVtSLLWmsPv3szwgkQmCd7}', false, 1);

-- name: HighlightCreatorQC :many
select * from contracts where not deleted and chain = $1 limit 1000;
5 changes: 3 additions & 2 deletions secrets/dev/backend-env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ PRIVY_APP_VERIFICATION_PUBLIC_KEY: ENC[AES256_GCM,data:jSJzPxDJ/n6FaMojUpemWMiQp
HIGHLIGHT_APP_ID: ENC[AES256_GCM,data:ZUhS02ARAWXKJDuvSpUyMxevxctmRKGw,iv:s98KgDIaSSeLusI2lsylK6Q7eq53xJylAuXwW82xIL8=,tag:Rodqm2bADkvbZHRD2E5goA==,type:str]
HIGHLIGHT_APP_SECRET: ENC[AES256_GCM,data:nS1Qgy27iga6rd/etU3jUsTIUh5CazV37+ppu38yMzU8S9zP1CFNeVcJ3Y0=,iv:FeqB4pt5VwKG7aOYuB2EFAc8Yyuv6UE6y5w2yLFbmYA=,tag:3gfCZS+bWBLNI+DrZnWn5Q==,type:str]
MINT_PROCESSING_QUEUE: ENC[AES256_GCM,data:PoGygWdFDMW9O0y851A4tYi71/M9rsRf2uOF25CiqHMJtn45UgAJUezZjapR8d1R2r6hZc/C7ra+Sq+sh/3BsDiP,iv:adVEuH4dMW/OAx5UXwTINi7RZcEE3dZUP46Mhzz0Dpc=,tag:n0GCcBBaA/Z5b1RHy3t+5Q==,type:str]
SIMPLEHASH_API_KEY: ENC[AES256_GCM,data:IB2RUf7WQELj5uYHTaWqdPFlYzo1v/hOcCjM/Nhqv5Ii,iv:DUDFVVSbnIs+nkHLYjs7yGRZrmLuZF3MRxLatahQNQ4=,tag:nrkabAz63yivv8e/VOU9cw==,type:str]
sops:
kms: []
gcp_kms:
Expand All @@ -97,8 +98,8 @@ sops:
azure_kv: []
hc_vault: []
age: []
lastmodified: "2024-04-04T20:16:55Z"
mac: ENC[AES256_GCM,data:R7gzrXbFWtivhPviy1JXuE3In2UqAeseQEx73AY1gp5RWc1p0f9j7qL6PkM7lh4Tq3x0/LdKnFd5yRqmRtKWblwKp//gl0Pa7rGyX8czyPJgH5kC8CAykRDFeoASJA8C3+yz/jvsEcXExT68m4ZNDP0/Y+Ruqmuc/9cosyUR0as=,iv:us5JexxnieUntD0VgdQpCRgYJwGl2/JoZKE+YyInSJU=,tag:awEWaW4xn6pFL5ssTPJXOg==,type:str]
lastmodified: "2024-04-10T22:54:26Z"
mac: ENC[AES256_GCM,data:nwM2OwfuLUUTWNLp04goXWtNSWdIKJcIsmkOZoASIrMHT/8P/rDN+iKKwnsICQ6u1ezdnlqDhKE3YH1EINzR+qrvlQuXiL2m3iqJmyCFYf9IPD8wTzlli2ymP5C9EFDIC3AyGyvA087oxzAJuw1ixBxmtuemsx8qTLU0hUx815s=,iv:TTyZPGJHPygM8guxbgnEsKy27xZznu+2Fs5COjP/FMY=,tag:VakhF/X2hmsOpDQGQYsUAA==,type:str]
pgp: []
unencrypted_suffix: _unencrypted
version: 3.7.3
5 changes: 3 additions & 2 deletions secrets/dev/backend-sandbox-env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ PRIVY_APP_VERIFICATION_PUBLIC_KEY: ENC[AES256_GCM,data:PKS5+N5Ul2TBTVa5RVFI6G6jh
HIGHLIGHT_APP_ID: ENC[AES256_GCM,data:LUkGigiD4Tt0rCe1K9zNygJ8gRmRfRYd,iv:PcnjyXRa9nPAniZlcgtcK9gknAkYdlO/WcepnCPgz04=,tag:u32oHy9KfLfSCiW/4QsVNQ==,type:str]
HIGHLIGHT_APP_SECRET: ENC[AES256_GCM,data:kfZh434sLAnxNltuA9aSqB6BVmA/iZThpguZs0LvZ46Gu3m13V+88gQicks=,iv:O+EVZnOSdxRWCLWRJ3V0rnx/zWozPtaHSh1wyO1UVYo=,tag:vrbN8n6YHzhAxlf+CBOE8A==,type:str]
MINT_PROCESSING_QUEUE: ENC[AES256_GCM,data:fCWjGRXl+xJ+osNUxG6NXDwyrbQAsQi3g5Bl7isPs6VFM7kSvuiDybm9GchVpSQqNNUfPcln7P/hLMxMR2rp0n1s,iv:AZO/PbLzSCOQN/f3TKwHLf84ETdc3U6DZwpN1ocxMsM=,tag:0RQGQQu+5YthT2wWTXusuA==,type:str]
SIMPLEHASH_API_KEY: ENC[AES256_GCM,data:P54T58+VZ4gL7t11gHVJmJmLsIDq3YcH5TzA6fUkqT7n,iv:BAC3++k8JF2uiq9dcEVdh5rnUEK6kJksmvPbztycVBU=,tag:1cKhkZyPGEQy3q4/+GWNpg==,type:str]
sops:
kms: []
gcp_kms:
Expand All @@ -95,8 +96,8 @@ sops:
azure_kv: []
hc_vault: []
age: []
lastmodified: "2024-03-28T00:16:10Z"
mac: ENC[AES256_GCM,data:aeU2Dkd5gWRJ3fVgEhfMdOwUwmSLJXlvFk7cyBqJPzAfiJ2J8ho73d3qavJjM5tXZvVwlsvEmfWjPE4IOy7hMO6pZ0MVqVq6zD3PIbFjaqnc/I+kaJf30Z4HYjqyMcmRw28DqkHvKziTzrrermBdg3knaUwMzX5vg4C6h5zkdbo=,iv:P5w6BnMul84GQOTilHpuQOlmzUh+B+RLyAm+4btbme8=,tag:kdNCzvIaQb06o5IGymZzew==,type:str]
lastmodified: "2024-04-10T22:56:04Z"
mac: ENC[AES256_GCM,data:u2RGmpD4ZdN+9J2X/JPb6FoIqnkiO8DBiDpot1ATMZNSUlDG9r8nqN/hI5azjt+kBtn/NWWbsyYAWXf81uW5uhgBzsO5vmLNxi5DVbW3ueys2CCPJ39roAy04zAasvu+XQIM+mrYRPc60gPu+PFSd5eWHKpNV+3U1+vQsLo43DU=,iv:ZmNIhj/03iz1CGjS5BY2C8x1lXKMX4c3kX+y+DhRTiU=,tag:VK7753a7ZtVqPVDKENKnOg==,type:str]
pgp: []
unencrypted_suffix: _unencrypted
version: 3.7.3
5 changes: 3 additions & 2 deletions secrets/dev/local/app-dev-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ PRIVY_APP_VERIFICATION_PUBLIC_KEY: ENC[AES256_GCM,data:Qj9y9WDxGqbb2y77bidznNJ2j
HIGHLIGHT_APP_ID: ENC[AES256_GCM,data:ThvGU2eKf+RyBGZMSnI7QIoOScVwaWxS,iv:SskP5Mga0Xz0YHBWwtLbvKjP97JVZmGt/vhV1lQgYTo=,tag:WxUEm8NxhNpAe1l65Kca0A==,type:str]
HIGHLIGHT_APP_SECRET: ENC[AES256_GCM,data:MGt9kI/vsW35MfhhUxDWL7P8hl2cdLFkrlHoLbDujGNtBN1jyzQdiKNYvH0=,iv:Z3kXaNR7Sv3x4mln+uPDEa79TRrPWiTBrr4PAD93EnQ=,tag:PJukXHXaNAB3+3TnCRIRUQ==,type:str]
MINT_PROCESSING_QUEUE: ENC[AES256_GCM,data:OduekZoXNS2Yk666BTRqOyxVniDENC/0PEksF5Ose/jpWGZJ5QSYy5G5EukavNbENlNhdDdk4+mVqP8QShzl36su,iv:kdU5nGSTzrE+Ce91TYvuLIg0IJ/1/VVequ0lvedck2g=,tag:4Lgw8O36HOCNJYCHKOQASw==,type:str]
SIMPLEHASH_API_KEY: ENC[AES256_GCM,data:/HtCKleC/Y4GoKpBZDlFmyVafSYRx8a9Mlqgcj8JMOPy,iv:aJZl00smpn2kVJY8GCDahKlu4nkedKherLgB/SMgHbQ=,tag:xvMsSsBxUN8aa/okh9qYMQ==,type:str]
sops:
kms: []
gcp_kms:
Expand All @@ -71,8 +72,8 @@ sops:
azure_kv: []
hc_vault: []
age: []
lastmodified: "2024-03-18T21:17:36Z"
mac: ENC[AES256_GCM,data:rkfd3P4oBzV4v72Cb2r3uAiGoi8F0g4jKkgLgSglL3t6bnPdDebNqa8sjxGrVVVl5coXgJP7Dt+yQQEjL/7HB+qvFNakDbY+pxkroA6P66dycRg5Rh4vdUTaCxcnyX264ap+PIyA/WNSfmZ0kO8+h130RyEPZk9xV1ERkp8BlbQ=,iv:+Lo9E/OTBJzeGsuCWIYANnMQvKkJj75TWq7ubOYUpoM=,tag:b5PTX0mCsbsNCN/hmFsthQ==,type:str]
lastmodified: "2024-04-10T22:55:03Z"
mac: ENC[AES256_GCM,data:BaFlWcxxL7NhkqTE2Ghc9OCpF+hMDEFTsNX9qbT3E7h4yWDwzYShrURg9TYefPeOfOfo3TfRcqtuG20yR8JGuqvLRZM5ADQIbVn2svDnniW9VJAPTn1HOG0oXtgrxFkNjNykgIVr3RabKpgmOqXHSIOPQ3Awg8KXrVQB8OKWaGo=,iv:BcoPjuVVcoUnJiwOYBLLRAMRxNhvJ1+sUZtd43Fp/kQ=,tag:pw/idTljMg3eUBnVlMCTFQ==,type:str]
pgp: []
unencrypted_suffix: _unencrypted
version: 3.7.3
5 changes: 3 additions & 2 deletions secrets/dev/local/app-dev-tokenprocessing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ PUSH_NOTIFICATIONS_SECRET: ENC[AES256_GCM,data:uKNXIJ++dQF6Ey+4AQyz8LNTHOf6fA64K
HIGHLIGHT_APP_ID: ENC[AES256_GCM,data:NpkI/9UvLhGBz7l/3pVCDHshck7kg5KN,iv:UNxFJcSuQEIb7SFAvUWV13Zv/DXNahtIYZhLymtomEk=,tag:1dfb+rrcIigv0GZYGD6g7Q==,type:str]
HIGHLIGHT_APP_SECRET: ENC[AES256_GCM,data:uOCz++Sj+6wD67cW/BZPf8coG/CWTT+QW2jORDbOs8xs+4jAM8FFCK2MIQw=,iv:vbFe8J5bO8wUP8Y3r1MSel0SyOwfn/LZfjVyFn5k4Wg=,tag:OORIUODRkw49/ka7WXGLEQ==,type:str]
MINT_PROCESSING_QUEUE: ENC[AES256_GCM,data:gPsHLLM/alEF6zSeVXUUuM9rMlAl/EdY0tcYZkJ01VXc1n+OCuT+NVbaTl27eP8EfmeVR99zeLsxykJRI6gFSxF8,iv:GHWXerEJSnQ6cUdJ0Nr/wqhRZ6/AopEb8zHGVScZGBQ=,tag:i0WZnWBcuwfn/aq5Gup6bw==,type:str]
SIMPLEHASH_API_KEY: ENC[AES256_GCM,data:0yE/H1BMHKVHOTQ7/DGHqfI7j6WLIRsvdRpthpcfP81K,iv:smWX8Iq3CzI6cxyDth7Q6Fqd0UZ3C5cEBX86/3VV4Zo=,tag:ZjbQ2EFzgt3YUN8hK7nFRA==,type:str]
sops:
kms: []
gcp_kms:
Expand All @@ -42,8 +43,8 @@ sops:
azure_kv: []
hc_vault: []
age: []
lastmodified: "2024-04-04T20:29:34Z"
mac: ENC[AES256_GCM,data:tNG+40wCTpsU9leT8SVZgJb7UIeNoCixODMx1If2pcklhyRX/s8NetPOBGT74WMRGre3TxM1o7KsE89mOyxi0NEF1WmrZWhOOhjs+W6yIhdQNBRdxiYKSFq6JgEaRzo4IS8U0HyVhPJ4DXrRzYcc3c1n+/wMQ7h/eQuxVfKOalY=,iv:r89nsAO5THPfaXYFsJecfd6iQs+4bdD1W1R+ad2Hhng=,tag:O+ARrxh6vc+HipnNvTra/w==,type:str]
lastmodified: "2024-04-10T22:55:15Z"
mac: ENC[AES256_GCM,data:gQeX0IGNsdKDTQxe2y/orai4EBU2TTd3KIB0W9g1GnO7kWiFljDBccfEVF0DYv3qN0xZnT/8oswu3KsNurH+nndi8heG1Sw/EnU1Ao8aS9MLXSS2UutiknrUPRr4H4lCnRhcpwb4EzDHQZGnKef2KDEBehzxXUbcTyeGgt3xLK4=,iv:G366S7XUOa8Gvaqsc8l6CEw8yhb5Yp7JQiznxhGnhMk=,tag:FgTKiny5fW2MjAkwVF5D4w==,type:str]
pgp: []
unencrypted_suffix: _unencrypted
version: 3.7.3
5 changes: 3 additions & 2 deletions secrets/dev/tokenprocessing-env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ PUSH_NOTIFICATIONS_SECRET: ENC[AES256_GCM,data:SAt2EnIe/TYrlBov2RuiKHw8a0d1hGuby
HIGHLIGHT_APP_ID: ENC[AES256_GCM,data:rg/LLzgcoThGvc77e/O/ND02yw6t0gNf,iv:2iWSJ97IBnsomKGQQnogDXfXKqWaDB3tz4wJ1GfngOY=,tag:3dZtOGs158JJiIRcqZg2AQ==,type:str]
HIGHLIGHT_APP_SECRET: ENC[AES256_GCM,data:5Hr9JCnw63cAY2+FumuQs8Og6U6Ds0TZwv3dCTIrDir63WwVe5ZCsfn+46k=,iv:E2lsalt03ueeMI5bYrEwMkHfrwCiGPgEtgMg7Kf6ZNQ=,tag:5b5TrLCF8xCLBqX/VcyS3g==,type:str]
MINT_PROCESSING_QUEUE: ENC[AES256_GCM,data:uBwToSnl2F7fJ1xe8ZW2u1RBRNFoA2OxBx+DGY3z4KLtZbyOEx+NKTppNL+J52IxC7AmkIBUDpCtIV6KjhCrM3N9,iv:3ydpAv45Pv13fhkcKewU/onkazvqnYsdJrdsPQQPHI8=,tag:cI4fhzOBoY7jOJXF9rmBEw==,type:str]
SIMPLEHASH_API_KEY: ENC[AES256_GCM,data:V3mUtMvnZ7e7AUdzR+3DMZXgVSW6zJqpZAS+zMcOtLLQ,iv:fcaHZqbwI0m21G1T+xu2pqxzjnQqCZc1OuohZtpccpE=,tag:RiXz4RZO/ECBWoI3OZU/tw==,type:str]
sops:
kms: []
gcp_kms:
Expand All @@ -59,8 +60,8 @@ sops:
azure_kv: []
hc_vault: []
age: []
lastmodified: "2024-04-04T20:29:10Z"
mac: ENC[AES256_GCM,data:sLgHyWKWHz8FR1HFPGONgHZ8Bd2PMThiEg4t/M5tLOSs6ccrQgDJyde+WYEXTMq63hwSj7ZtP+2eEP/rVH/QS2BalN8y3a6bq9yLDIu91tuc9IkkUcq34lGtYK+lVGvy7bcXg7E9yguP2mq7vKFSxaZOmGnBrkB/GvMI+lKmqUM=,iv:eDb+uhodNvNh9v/juCfnx1lw0pkYUOBrv5iVSJIFNQ8=,tag:Y4eVI1jZ5FH2n7wo9+cRug==,type:str]
lastmodified: "2024-04-10T22:54:52Z"
mac: ENC[AES256_GCM,data:sR/umYk+iXJm3yFTHTThGIRjJT2G8SPPQ6zO8mC7KnC/r3QxPznl/rRm+TaLMTKQGJh5ZYAC5+Q2YdqjdTekX3AumHFm9m9amiJKwgclBm1rS/r+boeu4twgJraUY1swvfdoG57oREMK9dRLPV34PfzwYU0plGJfplhawLNgdlY=,iv:N8rNi3OjjBlUiISRU2r2c0N5syRDZiDme0MAN+wSv0I=,tag:G5YMrtUMSu1Z7tkodYzJJQ==,type:str]
pgp: []
unencrypted_suffix: _unencrypted
version: 3.7.3
5 changes: 3 additions & 2 deletions secrets/local/local/app-local-tokenprocessing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ RESERVOIR_API_KEY: ENC[AES256_GCM,data:O9GMojA+pWGCaTAbz5uPdWZKgQYTey4hEHQLAuvCN
RPC_URL: ENC[AES256_GCM,data:okz4btF69/wAuRUcOmeWK+KlT/iEAVBbaA7u7CNWrzwacOznCzRk5CmYPvGkFHlHA88WRhWJo5zWuGXmnlaQm22jKv+A,iv:sDuFgCdpcBkN1MprvbAwGX/SOdqJOzz48mEVVKwtYq0=,tag:7cQc67Q5NDtMHSKw44sR8A==,type:str]
HIGHLIGHT_APP_ID: ENC[AES256_GCM,data:O/KQvwvr25+Hvmnb9vIwNoeKboumaA8w,iv:JYd7rXNjeZGrEMugeeSNx/iQDTgWEpyvXBrfWf5hTyY=,tag:Yc7zCzCujazaTOMVjsoI/A==,type:str]
HIGHLIGHT_APP_SECRET: ENC[AES256_GCM,data:W+12hQfTTbMn9XKiUxci2stPBJbih3R4pxujNzTMtOjgYZLX5M67XR9qQkk=,iv:qHxf7cEBTUKemxjQj+CfEmXIdN4Zg8lUqfS9KSkPR+c=,tag:txci0OT+0vr4epxrlQL3iQ==,type:str]
SIMPLEHASH_API_KEY: ENC[AES256_GCM,data:V+czV/sYvFhZauvZnbFjTp7j/n6JD3p5X5V2ZlzSORxW,iv:bN21L6+mjFh0oC24jaflh4JK+Kwt9PJWPJYyRyscghQ=,tag:yhFipHrSMOjs0PHFFzt+AQ==,type:str]
sops:
kms: []
gcp_kms:
Expand All @@ -40,8 +41,8 @@ sops:
azure_kv: []
hc_vault: []
age: []
lastmodified: "2024-03-18T19:54:46Z"
mac: ENC[AES256_GCM,data:jVaBuJpLfQGuX35Aepxd3Fpob3jZuj/x4AF+BjzYvqiIciAkKfuxe9zwtSWCXiwKUu8BA2iP/3wBvPzKatADk8B/FLewfEb1nsJ/CLkT2diZsA3U3sQUSauWdCNalp5sgihij9uDD42hchzzB2IH005vWRvMBehlBZ+Z0Hj9hf0=,iv:cDRkVCpKt0kG5q4TxbwW8q+F//z6xD9i2VypsUsjIwA=,tag:gatPG+kEXVHHs/XxO5uRyQ==,type:str]
lastmodified: "2024-04-10T22:54:17Z"
mac: ENC[AES256_GCM,data:t4m47LSKphQr46D8Ki0fo2NOfu9f5VLl8tN0CDX3Pkzh8Z0RkfSQ2pLfd06Tb30HJQstMw4Mb37tgAd3antj16idF/H9jI8omvQ5iEwJRRCP13Tr8DAaeMEXnIC1iu0/RjNwYIatxNNQoaypwRWEXBuv5MY7a0an7ppF2THV3n4=,iv:Esm3toJATd2Gr2Rkdwku/GZ4b954/46TKdLvfZanCEc=,tag:wYpWYgI4rSafzAcFzqruGA==,type:str]
pgp: []
unencrypted_suffix: _unencrypted
version: 3.7.3
1 change: 0 additions & 1 deletion service/multichain/multichain.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ type ChainAgnosticContractDescriptors struct {
Description string `json:"description"`
ProfileImageURL string `json:"profile_image_url"`
OwnerAddress persist.Address `json:"owner_address"`
CreatorAddress persist.Address `json:"creator_address"`
}

// ChainAgnosticIdentifiers identify tokens despite their chain
Expand Down
7 changes: 3 additions & 4 deletions service/multichain/simplehash/simplehash.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,10 +349,9 @@ func translateToChainAgnosticToken(t simplehashNFT, ownerAddress persist.Address
func translateToChainAgnosticContract(address string, contract simplehashContract, collection simplehashCollection) mc.ChainAgnosticContract {
c := mc.ChainAgnosticContract{
Descriptors: mc.ChainAgnosticContractDescriptors{
Symbol: contract.Symbol,
Name: contract.Name,
OwnerAddress: persist.Address(contract.OwnedBy),
CreatorAddress: persist.Address(contract.DeployedBy),
Symbol: contract.Symbol,
Name: contract.Name,
OwnerAddress: persist.Address(util.FirstNonEmptyString(contract.OwnedBy, contract.DeployedBy)),
},
Address: persist.Address(address),
IsSpam: util.ToPointer(isSpamCollection(collection)),
Expand Down

0 comments on commit 13e5688

Please sign in to comment.