Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the metadata for all current extensions #19

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions src/Extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,29 @@ import { Permissions } from './Permissions.js';
* ordering for enumeration.
*/

export type ExtensionSource = { url: string } | { ipfs: string; domain?: string; path?: string };
export type ExtensionSource = {
url: string | null;
} | {
ipfs: string;
domain?: string;
path?: string;
};

export type Links = {
github: string;
website: string;
};

export type SupportedMarkets = Record<string, string | null>;
// Special keyword to represent all supported markets.
export const AllMarkets = 'all';

export type SupportedMarkets = Record<string, string | null> | typeof AllMarkets;

export interface Extension {
id: string;
name: string;
description: string;
sub_description?: string;
developer: string;
links: Links;
permissions: Permissions;
Expand Down
79 changes: 61 additions & 18 deletions src/Extensions.ts
Original file line number Diff line number Diff line change
@@ -1,45 +1,71 @@
import { Extension } from './Extension.js';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can remove this file as the intention is to keep the true list within webb3


export const extensions: Extension[] = [
{
id: 'bulker',
name: 'Advanced Transactions',
description: 'Combine multiple protocol actions into a single transaction to save on gas costs, through the Compound III proxy contract.',
sub_description: 'This extension enables new functionality in the main protocol dashboard, and does not have its own custom interface.',
developer: 'Compound Labs',
links: {
github: 'https://github.com/compound-finance/comet',
website: 'https://twitter.com/compoundfinance'
},
permissions: {
storage: '*',
trx: [
{
contract: '*',
abi: 'approve(address,uint256)',
params: ['$operator', '*']
}
]
},
source: {
url: null,
},
supportedMarkets: {
'1_USDC_0xc3d688B66703497DAA19211EEdff47f25384cdc3': '0x74a81F84268744a40FEBc48f8b812a1f188D80C3'
}
},
{
id: 'comet_migrator',
name: 'Compound V3 Position Migrator',
description: 'Migrate USDC balances and supported collateral assets from Compound V2 to the Compound V3 USDC market on the Ethereum network.',
description: 'Migrate stablecoin borrow balances and supported collateral assets from Compound V2 or Aave V2 to the Compound V3 USDC market on the Ethereum network.',
developer: 'Compound Labs',
links: {
github: 'https://github.com/compound-finance/comet-migrator',
website: 'https://compound.finance/'
website: 'https://twitter.com/compoundfinance'
},
permissions: {
storage: '*',
trx: [
{
contract: '$operator',
abi: 'migrate((address,uint256)[],uint256)',
params: '*'
abi: 'migrate(((address,uint256)[],(address,uint256)[],(bytes,uint256)[]),((address,uint256)[],(address,uint256)[],(bytes,uint256)[]),uint256)',
params: '*',
},
{
contract: '*',
abi: 'approve(address,uint256)',
params: ['$operator', '*']
}
]
params: ['$operator', '*'],
},
],
},
source: {
ipfs: 'QmeDbWFcgZkDvuMFoQQezyAd69LwvPv5mgwVBDw7bfTrsB',
ipfs: 'QmbLCnpr74GPexVV1f1Ws5R6JtitztteHgSLbXnB8n7Xkv',
domain: 'comet-v2-migrator.infura-ipfs.io',
path: '/embedded.html'
path: '/embedded.html',
},
supportedMarkets: {
'1_USDC_0xc3d688B66703497DAA19211EEdff47f25384cdc3': '0x1dD398C2c7fAee61eBB522c434e9f83cf3A9196b',
'5_USDC_0x3EE77595A8459e93C2888b13aDB354017B198188': '0x6d1f37f5c2c6cf70871a93e439bf921c195c427f'
}
'1_USDC_0xc3d688B66703497DAA19211EEdff47f25384cdc3': '0x3b6f1FE07CDAB8A43f39C3b99Ba8FF26e28DB8b4',
},
},
{
id: 'comp_vote',
name: 'Comp.Vote',
description: 'Voting by signature lets you place votes across Compound Governance proposals, without having to send your transactions on-chain, saving fees.',
developer: 'Community-led by arr00 and anish',
description: 'Participate in Compound Governance via signature to save on gas fees, without having to send your transaction on-chain. ',
developer: 'arr00 and anish',
links: {
github: 'https://github.com/Comp-Vote/comp.vote',
website: 'https://comp.vote/'
Expand All @@ -50,10 +76,27 @@ export const extensions: Extension[] = [
modals: true
},
source: {
url: "https://comp-vote-xi.vercel.app/?embedded"
url: "https://comp.vote/?embedded"
},
supportedMarkets: 'all',
},
{
id: 'defisaver',
name: 'DeFi Saver',
description: 'Easily rebalance your Compound position in a single transaction and set up automated liquidation protection.',
developer: 'DeFi Saver',
links: {
github: 'https://github.com/defisaver/defisaver-v3-contracts',
website: 'https://defisaver.com/',
},
permissions: {
sudo: true,
},
source: {
url: 'https://app.defisaver.com/',
},
supportedMarkets: {
'1_USDC_0xc3d688B66703497DAA19211EEdff47f25384cdc3': null
}
}
'1_USDC_0xc3d688B66703497DAA19211EEdff47f25384cdc3': null,
},
},
];