-
Notifications
You must be signed in to change notification settings - Fork 6
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 #90 from leo42/smartMultisig
Smart multisig
- Loading branch information
Showing
85 changed files
with
7,614 additions
and
1,466 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
.address-select-container{ | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
.address-select-container button{ | ||
margin-left: 10px; | ||
border-radius: 10px; /* Rounding the right corners */ | ||
background-color: var(--clrInputs); /* Setting background color according to project defaults */ | ||
color: var(--clrNavText); /* Setting text color according to project defaults */ | ||
} | ||
|
||
.address-select-container select{ | ||
margin-left: 10px; | ||
} | ||
|
||
.address-select-container input{ | ||
margin-left: 10px; | ||
} | ||
.addressSelect{ | ||
max-width: 80vw; | ||
|
||
} |
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,39 @@ | ||
import React from 'react'; | ||
import './AddressSelect.css'; | ||
interface AddressSelectProps { | ||
wallet: any; | ||
moduleRoot: any; | ||
selectedAddress: string; | ||
onAddressChange: (address: string) => void; | ||
showAll?: boolean; | ||
setName?: boolean; | ||
} | ||
|
||
const AddressSelect: React.FC<AddressSelectProps> = ({ wallet, moduleRoot, selectedAddress, onAddressChange, showAll = true , setName = false}) => { | ||
return ( | ||
<div className="address-select-container"> | ||
<div> | ||
<select | ||
className="addressSelect" | ||
value={selectedAddress} | ||
onChange={(event) => onAddressChange(event.target.value)} | ||
> | ||
{showAll && <option value="">All</option>} | ||
{wallet.getFundedAddress().map((item: string, index: number) => ( | ||
<option key={index} value={item}> | ||
{wallet.getAddressName(item)} | ||
</option> | ||
))} | ||
</select> | ||
{selectedAddress !== wallet.getDefaultAddress() && ( | ||
<button className="defaultButton" onClick={() => moduleRoot.setDefaultAddress(selectedAddress)}> | ||
Make Default | ||
</button> | ||
)} | ||
</div> | ||
{setName && !["",wallet.getAddress()].includes(selectedAddress) && <input type="text" placeholder="Name" onChange={(event) => moduleRoot.changeAddressName(selectedAddress, event.target.value)} />} | ||
</div> | ||
); | ||
}; | ||
|
||
export default AddressSelect; |
This file was deleted.
Oops, something went wrong.
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,4 +1,14 @@ | ||
.MultisigContainer{ | ||
margin-top: 100px; | ||
height: 0px; | ||
} | ||
|
||
.TokenVaultsContainerHeader{ | ||
display: flex; | ||
justify-content: space-between; | ||
width: 100vw; | ||
flex-direction: row; | ||
position: absolute; | ||
top: 115px; | ||
z-index: -10; | ||
} |
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
Oops, something went wrong.