Skip to content

Commit

Permalink
Merge pull request #215 from hypercerts-org/feat/evaluation_schemas
Browse files Browse the repository at this point in the history
feat(eas): basic evaluation on all chains
  • Loading branch information
bitbeckers authored Sep 29, 2024
2 parents ef604fd + 876f735 commit 490e571
Showing 1 changed file with 56 additions and 8 deletions.
64 changes: 56 additions & 8 deletions seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,62 @@ const main = async () => {
);

console.log("🕊️ Seeding supported schemas...");
await supabase.from("supported_schemas").insert({
chain_id: 11155111,
uid: "0x2f4f575d5df78ac52e8b124c4c900ec4c540f1d44f5b8825fac0af5308c91449",
schema:
"uint256 chain_id,address contract_address,uint256 token_id,uint8 evaluate_basic,uint8 evaluate_work,uint8 evaluate_contributors,uint8 evaluate_properties,string comments,string[] tags",
resolver: ZERO_ADDRESS,
revocable: true,
});
await supabase.from("supported_schemas").upsert(
[
{
chain_id: 11155111,
uid: "0x2f4f575d5df78ac52e8b124c4c900ec4c540f1d44f5b8825fac0af5308c91449",
schema:
"uint256 chain_id,address contract_address,uint256 token_id,uint8 evaluate_basic,uint8 evaluate_work,uint8 evaluate_contributors,uint8 evaluate_properties,string comments,string[] tags",
resolver: ZERO_ADDRESS,
revocable: true,
},
{
chain_id: 84532,
uid: "0x2f4f575d5df78ac52e8b124c4c900ec4c540f1d44f5b8825fac0af5308c91449",
schema:
"uint256 chain_id,address contract_address,uint256 token_id,uint8 evaluate_basic,uint8 evaluate_work,uint8 evaluate_contributors,uint8 evaluate_properties,string comments,string[] tags",
resolver: ZERO_ADDRESS,
revocable: true,
},
{
chain_id: 10,
uid: "0x2f4f575d5df78ac52e8b124c4c900ec4c540f1d44f5b8825fac0af5308c91449",
schema:
"uint256 chain_id,address contract_address,uint256 token_id,uint8 evaluate_basic,uint8 evaluate_work,uint8 evaluate_contributors,uint8 evaluate_properties,string comments,string[] tags",
resolver: ZERO_ADDRESS,
revocable: true,
},
{
chain_id: 8453,
uid: "0x2f4f575d5df78ac52e8b124c4c900ec4c540f1d44f5b8825fac0af5308c91449",
schema:
"uint256 chain_id,address contract_address,uint256 token_id,uint8 evaluate_basic,uint8 evaluate_work,uint8 evaluate_contributors,uint8 evaluate_properties,string comments,string[] tags",
resolver: ZERO_ADDRESS,
revocable: true,
},
{
chain_id: 42220,
uid: "0x2f4f575d5df78ac52e8b124c4c900ec4c540f1d44f5b8825fac0af5308c91449",
schema:
"uint256 chain_id,address contract_address,uint256 token_id,uint8 evaluate_basic,uint8 evaluate_work,uint8 evaluate_contributors,uint8 evaluate_properties,string comments,string[] tags",
resolver: ZERO_ADDRESS,
revocable: true,
},
{
chain_id: 42161,
uid: "0x2f4f575d5df78ac52e8b124c4c900ec4c540f1d44f5b8825fac0af5308c91449",
schema:
"uint256 chain_id,address contract_address,uint256 token_id,uint8 evaluate_basic,uint8 evaluate_work,uint8 evaluate_contributors,uint8 evaluate_properties,string comments,string[] tags",
resolver: ZERO_ADDRESS,
revocable: true,
},
],
{
onConflict: "uid, chain_id",
ignoreDuplicates: true,
},
);

const { data: supportedSchemas } = await supabase
.from("supported_schemas")
Expand Down

0 comments on commit 490e571

Please sign in to comment.