-
Notifications
You must be signed in to change notification settings - Fork 26
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 #41 from gnosis/fix/tx-crash
Fix/tx crash
- Loading branch information
Showing
29 changed files
with
3,524 additions
and
3,882 deletions.
There are no files selected for viewing
Empty file.
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,136 @@ | ||
export const TOKEN_LOCK_ABI = [ | ||
{ | ||
type: "function", | ||
name: "balanceOf", | ||
constant: true, | ||
stateMutability: "view", | ||
payable: false, | ||
inputs: [ | ||
{ | ||
type: "address", | ||
}, | ||
], | ||
outputs: [ | ||
{ | ||
type: "uint256", | ||
}, | ||
], | ||
}, | ||
{ | ||
type: "function", | ||
name: "decimals", | ||
constant: true, | ||
stateMutability: "view", | ||
payable: false, | ||
inputs: [], | ||
outputs: [ | ||
{ | ||
type: "uint256", | ||
}, | ||
], | ||
}, | ||
{ | ||
type: "function", | ||
name: "deposit", | ||
constant: false, | ||
payable: false, | ||
inputs: [ | ||
{ | ||
type: "uint256", | ||
name: "amount", | ||
}, | ||
], | ||
outputs: [], | ||
}, | ||
{ | ||
type: "function", | ||
name: "depositDeadline", | ||
constant: true, | ||
stateMutability: "view", | ||
payable: false, | ||
inputs: [], | ||
outputs: [ | ||
{ | ||
type: "uint256", | ||
}, | ||
], | ||
}, | ||
{ | ||
type: "function", | ||
name: "lockDuration", | ||
constant: true, | ||
stateMutability: "view", | ||
payable: false, | ||
inputs: [], | ||
outputs: [ | ||
{ | ||
type: "uint256", | ||
}, | ||
], | ||
}, | ||
{ | ||
type: "function", | ||
name: "token", | ||
constant: true, | ||
stateMutability: "view", | ||
payable: false, | ||
inputs: [], | ||
outputs: [ | ||
{ | ||
type: "address", | ||
}, | ||
], | ||
}, | ||
{ | ||
type: "function", | ||
name: "name", | ||
constant: true, | ||
stateMutability: "view", | ||
payable: false, | ||
inputs: [], | ||
outputs: [ | ||
{ | ||
type: "string", | ||
}, | ||
], | ||
}, | ||
{ | ||
type: "function", | ||
name: "symbol", | ||
constant: true, | ||
stateMutability: "view", | ||
payable: false, | ||
inputs: [], | ||
outputs: [ | ||
{ | ||
type: "string", | ||
}, | ||
], | ||
}, | ||
{ | ||
type: "function", | ||
name: "totalSupply", | ||
constant: true, | ||
stateMutability: "view", | ||
payable: false, | ||
inputs: [], | ||
outputs: [ | ||
{ | ||
type: "uint256", | ||
}, | ||
], | ||
}, | ||
{ | ||
type: "function", | ||
name: "withdraw", | ||
constant: false, | ||
payable: false, | ||
inputs: [ | ||
{ | ||
type: "uint256", | ||
name: "amount", | ||
}, | ||
], | ||
outputs: [], | ||
}, | ||
] |
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,29 @@ | ||
import "../styles/globals.css" | ||
import { ProvideConfig } from "../components" | ||
import { headers } from "next/headers" | ||
import ContextProvider from "../context" | ||
import { Metadata } from "next" | ||
|
||
export const metadata: Metadata = { | ||
title: "Gnosis Lock", | ||
description: "Gnosis Lock", | ||
} | ||
|
||
export default async function RootLayout({ | ||
children, | ||
}: Readonly<{ | ||
children: React.ReactNode | ||
}>) { | ||
const headersObj = await headers(); | ||
const cookies = headersObj.get('cookie') | ||
|
||
return ( | ||
<html lang="en"> | ||
<body> | ||
<ContextProvider cookies={cookies}> | ||
<ProvideConfig>{children}</ProvideConfig> | ||
</ContextProvider> | ||
</body> | ||
</html> | ||
) | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
"use client" | ||
import clsx from "clsx" | ||
import { useState } from "react" | ||
import Deposit from "./Deposit" | ||
|
Oops, something went wrong.