Skip to content

Commit

Permalink
Merge remote-tracking branch 'ubi/development' into feat/display-uncl…
Browse files Browse the repository at this point in the history
…aimed-permits

# Conflicts:
#	.gitignore
#	static/scripts/audit-report/audit.ts
  • Loading branch information
gentlementlegen committed Mar 5, 2024
2 parents 92e7dc8 + 4181d26 commit 737b76b
Show file tree
Hide file tree
Showing 34 changed files with 70 additions and 1,386 deletions.
3 changes: 2 additions & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@
"language": "en",
"words": [
"binkey",
"Knip",
"binsec",
"chainlist",
"cirip",
"dataurl",
"devpool",
"xrandomwallet",
"ethersproject",
"fract",
"gnosisscan",
Expand All @@ -37,7 +39,6 @@
"xmark",
"supabase",
"SUPABASE"

],
"dictionaries": ["typescript", "node", "software-terms", "html"],
"import": ["@cspell/dict-typescript/cspell-ext.json", "@cspell/dict-node/cspell-ext.json", "@cspell/dict-software-terms"],
Expand Down
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
MY_SECRET="MY_SECRET"
SUPABASE_URL=
SUPABASE_ANON_KEY=
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* @rndquu
*.ts @pavlovcik
/static @pavlovcik
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ node_modules
.pnp.cjs
.pnp.loader.mjs
.env
static/dist
static/out
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# `@ubiquity/audit.ubq.fi`

#### Install Dependencies

- yarn

#### Build

- yarn build

### Start UI
Expand All @@ -18,3 +20,4 @@ Test Uses:
"REPO": "https://github.com/repo/repo",
"PAT": "YOUR_PAT"
}
```
2 changes: 1 addition & 1 deletion build/esbuild-build.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import esbuild from "esbuild";
import * as dotenv from "dotenv";

const typescriptEntries = ["static/scripts/rewards/index.ts", "static/scripts/audit-report/audit.ts"];
const typescriptEntries = ["static/scripts/audit-report/audit.ts"];
const cssEntries = ["static/styles/rewards/rewards.css", "static/styles/audit-report/audit.css"];
export const entries = [...typescriptEntries, ...cssEntries];

Expand Down
2 changes: 1 addition & 1 deletion knip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const config: KnipConfig = {
ignoreDependencies: [],
};

export default config;
export default config;
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
58 changes: 58 additions & 0 deletions static/scripts/audit-report/types/audit.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,61 @@ interface GoDBTableSchema {
export interface GoDBSchema {
[table: string]: GoDBTableSchema;
}

export type ERC20Permit = {
type: "erc20-permit";
permit: {
permitted: {
token: string;
amount: string;
};
nonce: string;
deadline: string;
};
transferDetails: {
to: string;
requestedAmount: string;
};
owner: string;
signature: string;
networkId: number;
};

export type ERC721Permit = {
type: "erc721-permit";
permit: {
permitted: {
token: string;
amount: string;
};
nonce: string;
deadline: string;
};
transferDetails: {
to: string;
requestedAmount: string;
};
owner: string;
signature: string;
networkId: number;
nftMetadata: {
GITHUB_ORGANIZATION_NAME: string;
GITHUB_REPOSITORY_NAME: string;
GITHUB_ISSUE_ID: string;
GITHUB_USERNAME: string;
GITHUB_CONTRIBUTION_TYPE: string;
};
request: {
beneficiary: string;
deadline: string;
keys: string[];
nonce: string;
values: string[];
};
};

export type RewardPermit = ERC20Permit | ERC721Permit;

export function permitCheck(permit: RewardPermit): permit is Erc20Permit {
return permit.type === "erc20-permit";
}
67 changes: 0 additions & 67 deletions static/scripts/rewards/cirip/ens-lookup.ts

This file was deleted.

12 changes: 0 additions & 12 deletions static/scripts/rewards/cirip/fetch-ens.ts

This file was deleted.

12 changes: 0 additions & 12 deletions static/scripts/rewards/cirip/query-graph.ts

This file was deleted.

20 changes: 0 additions & 20 deletions static/scripts/rewards/cirip/query-reverse-ens.ts

This file was deleted.

56 changes: 0 additions & 56 deletions static/scripts/rewards/constants.ts

This file was deleted.

80 changes: 0 additions & 80 deletions static/scripts/rewards/helpers.ts

This file was deleted.

Loading

0 comments on commit 737b76b

Please sign in to comment.