DELEGATE.CASH
14 |An immutable primitive to safely claim airdrops for vaulted NFTs, see details here
15 | 16 |├── src
├── routes
│ ├── +layout.js
│ ├── +page.svelte
│ ├── delegate
│ │ └── +page.svelte
│ ├── revoke
│ │ └── +page.svelte
│ └── +layout.svelte
├── assets
│ ├── icons
│ │ ├── check.svg
│ │ ├── copy.svg
│ │ ├── moon-solid.svg
│ │ ├── arrow-left.svg
│ │ ├── sun-solid.svg
│ │ ├── link.svg
│ │ ├── etherscan.svg
│ │ └── github.svg
│ └── illustrations
│ │ ├── puzzled.svg
│ │ ├── king.svg
│ │ └── decapitation.svg
├── components
│ ├── DelegationRegistry.svelte
│ ├── ChainWarning.svelte
│ ├── delegationRegistry
│ │ ├── NavBar.svelte
│ │ ├── Card.svelte
│ │ ├── Delegate.svelte
│ │ ├── Main.svelte
│ │ ├── RevokeItemPaginator.svelte
│ │ └── Revoke.svelte
│ ├── HammerLoader.svelte
│ ├── Footer.svelte
│ ├── Header.svelte
│ ├── Select.svelte
│ ├── InputFloatingLabel.svelte
│ ├── Table.svelte
│ ├── ThemeToggle.svelte
│ └── AccountModal.svelte
├── store.ts
├── app.d.ts
├── app.html
├── constants.ts
├── abis
│ └── abis.ts
└── utils.ts
├── static
├── favicon.ico
├── favicon.png
├── metamask.png
├── favicon-16x16.png
├── favicon-32x32.png
├── apple-touch-icon.png
├── mstile-150x150.png
├── android-chrome-192x192.png
├── android-chrome-512x512.png
├── fonts
│ └── NotoSans
│ │ ├── NotoSans-Bold.ttf
│ │ ├── NotoSans-Medium.ttf
│ │ ├── NotoSans-Regular.ttf
│ │ ├── NotoSans-SemiBold.ttf
│ │ └── OFL.txt
├── browserconfig.xml
├── site.webmanifest
├── global.css
├── safari-pinned-tab.svg
└── walletconnect.svg
├── .gitmodules
├── .gitignore
├── .eslintignore
├── .prettierignore
├── deploy-contracts.sh
├── playwright.config.ts
├── vite.config.ts
├── tests
└── test.ts
├── .prettierrc.json
├── LICENSE
├── svelte.config.js
├── flake.nix
├── tsconfig.json
├── .eslintrc.cjs
├── shell.nix
├── package.json
├── README.md
└── flake.lock
/src/routes/+layout.js:
--------------------------------------------------------------------------------
1 | // src/routes/+layout.js
2 | export const prerender = true;
3 |
--------------------------------------------------------------------------------
/static/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/0xfoobar/delegate-frontend-legacy/HEAD/static/favicon.ico
--------------------------------------------------------------------------------
/static/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/0xfoobar/delegate-frontend-legacy/HEAD/static/favicon.png
--------------------------------------------------------------------------------
/static/metamask.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/0xfoobar/delegate-frontend-legacy/HEAD/static/metamask.png
--------------------------------------------------------------------------------
/static/favicon-16x16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/0xfoobar/delegate-frontend-legacy/HEAD/static/favicon-16x16.png
--------------------------------------------------------------------------------
/static/favicon-32x32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/0xfoobar/delegate-frontend-legacy/HEAD/static/favicon-32x32.png
--------------------------------------------------------------------------------
/static/apple-touch-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/0xfoobar/delegate-frontend-legacy/HEAD/static/apple-touch-icon.png
--------------------------------------------------------------------------------
/static/mstile-150x150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/0xfoobar/delegate-frontend-legacy/HEAD/static/mstile-150x150.png
--------------------------------------------------------------------------------
/.gitmodules:
--------------------------------------------------------------------------------
1 | [submodule "token-delegation"]
2 | path = token-delegation
3 | url = https://github.com/0xfoobar/token-delegation
4 |
--------------------------------------------------------------------------------
/static/android-chrome-192x192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/0xfoobar/delegate-frontend-legacy/HEAD/static/android-chrome-192x192.png
--------------------------------------------------------------------------------
/static/android-chrome-512x512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/0xfoobar/delegate-frontend-legacy/HEAD/static/android-chrome-512x512.png
--------------------------------------------------------------------------------
/src/routes/+page.svelte:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/static/fonts/NotoSans/NotoSans-Bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/0xfoobar/delegate-frontend-legacy/HEAD/static/fonts/NotoSans/NotoSans-Bold.ttf
--------------------------------------------------------------------------------
/static/fonts/NotoSans/NotoSans-Medium.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/0xfoobar/delegate-frontend-legacy/HEAD/static/fonts/NotoSans/NotoSans-Medium.ttf
--------------------------------------------------------------------------------
/static/fonts/NotoSans/NotoSans-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/0xfoobar/delegate-frontend-legacy/HEAD/static/fonts/NotoSans/NotoSans-Regular.ttf
--------------------------------------------------------------------------------
/static/fonts/NotoSans/NotoSans-SemiBold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/0xfoobar/delegate-frontend-legacy/HEAD/static/fonts/NotoSans/NotoSans-SemiBold.ttf
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 | /build
4 | /.svelte-kit
5 | /package
6 | .env
7 | .env.*
8 | !.env.example
9 | .envrc
10 | /.direnv
11 | /.netlify
12 | .npmrc
13 |
--------------------------------------------------------------------------------
/src/assets/icons/check.svg:
--------------------------------------------------------------------------------
1 |
7 |
--------------------------------------------------------------------------------
/.eslintignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 | /build
4 | /.svelte-kit
5 | /package
6 | .env
7 | .env.*
8 | !.env.example
9 | token-delegation/
10 | /.netlify
11 |
12 | # Ignore files for PNPM, NPM and YARN
13 | pnpm-lock.yaml
14 | package-lock.json
15 | yarn.lock
16 |
--------------------------------------------------------------------------------
/.prettierignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 | /build
4 | /.svelte-kit
5 | /package
6 | .env
7 | .env.*
8 | !.env.example
9 | token-delegation/
10 | /.netlify
11 | .npmrc
12 |
13 | # Ignore files for PNPM, NPM and YARN
14 | pnpm-lock.yaml
15 | package-lock.json
16 | yarn.lock
17 |
--------------------------------------------------------------------------------
/deploy-contracts.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | export ANVIL_DEFAULT_PK=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
3 | cd token-delegation
4 | forge create --rpc-url http://127.0.0.1:8545 --private-key ${ANVIL_DEFAULT_PK} src/DelegationRegistry.sol:DelegationRegistry
5 | cd ..
6 |
--------------------------------------------------------------------------------
/playwright.config.ts:
--------------------------------------------------------------------------------
1 | import type { PlaywrightTestConfig } from '@playwright/test';
2 |
3 | const config: PlaywrightTestConfig = {
4 | webServer: {
5 | command: 'npm run build && npm run preview',
6 | port: 4173
7 | },
8 | testDir: './tests'
9 | };
10 |
11 | export default config;
12 |
--------------------------------------------------------------------------------
/static/browserconfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
| {column} | 13 | {/each} 14 |
|---|
| {cell.value} | 21 | {/each} 22 |
An immutable primitive to safely claim airdrops for vaulted NFTs, see details here
15 | 16 |