-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from aragon/f/delegation-wall
Delegation wall
- Loading branch information
Showing
46 changed files
with
1,533 additions
and
765 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import classNames from "classnames"; | ||
import React, { type ReactNode } from "react"; | ||
|
||
interface IMainSectionProps { | ||
children?: ReactNode; | ||
className?: string; | ||
} | ||
|
||
export const MainSection: React.FC<IMainSectionProps> = (props) => { | ||
const { children, className } = props; | ||
|
||
return <div className={classNames("mx-auto w-full max-w-screen-xl px-4 py-6", className)}>{children}</div>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { type ReactNode } from "react"; | ||
|
||
export function SectionView({ children }: { children: ReactNode }) { | ||
return <div className="mb-6 flex w-full flex-row content-center justify-between">{children}</div>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
110 changes: 92 additions & 18 deletions
110
plugins/delegateAnnouncer/artifacts/DelegateAnnouncer.sol.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,119 @@ | ||
export const DelegateAnnouncerAbi = [ | ||
{ | ||
anonymous: false, | ||
type: "function", | ||
name: "candidateAddresses", | ||
inputs: [ | ||
{ | ||
indexed: true, | ||
internalType: "address", | ||
name: "dao", | ||
type: "address", | ||
name: "", | ||
type: "uint256", | ||
internalType: "uint256", | ||
}, | ||
], | ||
outputs: [ | ||
{ | ||
indexed: true, | ||
name: "", | ||
type: "address", | ||
internalType: "address", | ||
name: "delegate", | ||
}, | ||
], | ||
stateMutability: "view", | ||
}, | ||
{ | ||
type: "function", | ||
name: "candidateCount", | ||
inputs: [], | ||
outputs: [ | ||
{ | ||
name: "", | ||
type: "uint256", | ||
internalType: "uint256", | ||
}, | ||
], | ||
stateMutability: "view", | ||
}, | ||
{ | ||
type: "function", | ||
name: "candidates", | ||
inputs: [ | ||
{ | ||
name: "", | ||
type: "address", | ||
internalType: "address", | ||
}, | ||
], | ||
outputs: [ | ||
{ | ||
indexed: false, | ||
internalType: "bytes", | ||
name: "message", | ||
type: "bytes", | ||
internalType: "bytes", | ||
}, | ||
{ | ||
name: "socialUrl", | ||
type: "bytes", | ||
internalType: "bytes", | ||
}, | ||
], | ||
name: "AnnounceDelegation", | ||
type: "event", | ||
stateMutability: "view", | ||
}, | ||
{ | ||
inputs: [ | ||
type: "function", | ||
name: "getCandidateAddresses", | ||
inputs: [], | ||
outputs: [ | ||
{ | ||
internalType: "address", | ||
name: "dao", | ||
type: "address", | ||
name: "", | ||
type: "address[]", | ||
internalType: "address[]", | ||
}, | ||
], | ||
stateMutability: "view", | ||
}, | ||
{ | ||
type: "function", | ||
name: "register", | ||
inputs: [ | ||
{ | ||
name: "_message", | ||
type: "bytes", | ||
internalType: "bytes", | ||
name: "message", | ||
}, | ||
{ | ||
name: "_socialUrl", | ||
type: "bytes", | ||
internalType: "bytes", | ||
}, | ||
], | ||
name: "announceDelegation", | ||
outputs: [], | ||
stateMutability: "nonpayable", | ||
type: "function", | ||
}, | ||
{ | ||
type: "event", | ||
name: "CandidateRegistered", | ||
inputs: [ | ||
{ | ||
name: "candidate", | ||
type: "address", | ||
indexed: true, | ||
internalType: "address", | ||
}, | ||
{ | ||
name: "message", | ||
type: "bytes", | ||
indexed: false, | ||
internalType: "bytes", | ||
}, | ||
{ | ||
name: "socialUrl", | ||
type: "bytes", | ||
indexed: false, | ||
internalType: "bytes", | ||
}, | ||
], | ||
anonymous: false, | ||
}, | ||
{ | ||
type: "error", | ||
name: "EmptyMessage", | ||
inputs: [], | ||
}, | ||
] as const; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.