https://github.com/lykhonis/relayer-frontend
https://github.com/lykhonis/relayer-frontend
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/lykhonis/relayer-frontend
- Owner: lykhonis
- License: gpl-3.0
- Created: 2022-07-07T00:48:57.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-25T13:06:07.000Z (almost 4 years ago)
- Last Synced: 2025-02-09T12:29:34.366Z (over 1 year ago)
- Language: TypeScript
- Homepage: relayer-frontend.vercel.app
- Size: 2.35 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Relayer Service
## Development
```shell
NEXT_PUBLIC_NETWORK_RPC_ENDPOINT=https://rpc.l16.lukso.network
RELAYER_ACCOUNT=0x...
NEXT_PUBLIC_CONTRACT_STAKED_TOKEN=0x...
NEXT_PUBLIC_CONTRACT_REWARD_TOKEN=0x...
NEXT_PUBLIC_CONTRACT_RELAY_CONTRACTOR=0x...
DATABASE_URL=...
DATABASE_KEY=...
```
#### Database
```shell
supabase start
```
Reset:
```shell
supabase db reset
```
Generate types:
```shell
yarn db:generate-types
```
#### Execute Transaction
```shell
curl --header 'Content-Type: application/json' --request POST --data '{"keyManagerAddress":"0x49D10D5AC996eC31fBe8160e7feec81cb34145aA","transaction":{"abi":"0x7f23690c5ef83ad9559033e6e941db7d7c495acdce616347d28e90c7ce47cbfcfcad3bc5000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000596f357c6aa5a21984a83b7eef4cb0720ac1fcf5a45e9d84c653d97b71bbe89b7a728c386a697066733a2f2f516d624b43744b4d7573376741524470617744687a32506a4e36616f64346b69794e436851726d3451437858454b00000000000000","signature":"0x43c958b1729586749169599d7e776f18afc6223c7da21107161477d291d497973b4fc50a724b1b2ab98f3f8cf1d5cdbbbdf3512e4fbfbdc39732229a15beb14a1b","nonce":1}}' 'http://localhost:3000/api/execute'
```
#### Check Transaction Status
```shell
curl --request GET 'http://localhost:3000/api/task/149c1b23-e85b-4f51-a314-34c2bec71770'
```
#### Fetch Transactions
```shell
curl --request GET 'http://localhost:3000/api/transactions?keyManager=0xBB645D97B0c7D101ca0d73131e521fe89B463BFD'
curl --request GET 'http://localhost:3000/api/transactions?profile=0x506Fb98634903CaaC59E2e02b955E13CaC0E3cBF'
```