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

Fixing ERC20 token transfer and adding apis for Ethereum #15

Open
wants to merge 24 commits 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
37 changes: 0 additions & 37 deletions .air.toml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: virtuacoin-wallet

on:
push:
branches: [ "main" ]

jobs:

main:
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v2

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: shachindra/virtuacoin-wallet:latest
14 changes: 0 additions & 14 deletions .github/workflows/lint.yml

This file was deleted.

51 changes: 0 additions & 51 deletions .github/workflows/test.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .gitpod.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .gitpod/Dockerfile

This file was deleted.

13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM golang:alpine as builder
WORKDIR /app
COPY go.mod .
COPY go.sum .
RUN apk add build-base
RUN go mod download
COPY . .
RUN apk add --no-cache git && go build -o wallet . && apk del git

FROM alpine
WORKDIR /app
COPY --from=builder /app/wallet .
CMD [ "./wallet" ]
50 changes: 24 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,29 @@
# Superiad
# virtuacoin_wallet

A custodial wallet, covering all primary functions.
This custodial wallet provides these features
Self custodial wallet, covering all primary functions.
Wallet provides these features

- ERC721
- approve
- approveAll
- transfer
- checkbalance
- isowner
- Native Asset for the Configured Network
- [ ] transfer
- [ ] checkbalance
- [ ] fetchwallet
- [ ] signMessage
- [ ] verifySignature
- ERC20
- transfer
- checkbalance
- Native
- transfer
- checkbalance
- fetchwallet
- signMessage
- verifySignature

This system also supports locking the wallet using which the user can lock his funds.
- [ ] transfer
- [ ] checkbalance
- ERC721
- [ ] approve
- [ ] approveAll
- [ ] transfer
- [ ] checkbalance
- [ ] burn
- VirtuaCoinNFT
- [ ] delegateAssetCreation
- [ ] grantRole
- [ ] burn

## Postgres for development
## Redis for development
```bash
docker run --name="superiad" --rm -d -p 5432:5432 \
-e POSTGRES_PASSWORD=superiad \
-e POSTGRES_USER=superiad \
-e POSTGRES_DB=superiad \
postgres -c log_statement=all
```
podman run --name="virtuacoin-wallet-redis" --rm -d -p 6379:6379 redis -c log_statement=all
```
4 changes: 1 addition & 3 deletions api/api.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package api

import (
"github.com/TheLazarusNetwork/superiad/api/middleware/auth/tokenmiddleware"
v1 "github.com/TheLazarusNetwork/superiad/api/v1"
v1 "github.com/VirtuaTechnologies/VirtuaCoin_Wallet/api/v1"

"github.com/gin-gonic/gin"
)
Expand All @@ -11,7 +10,6 @@ import (
func ApplyRoutes(r *gin.Engine) {
api := r.Group("/api")
{
api.Use(tokenmiddleware.ApiAuth)
v1.ApplyRoutes(api)
}
}
45 changes: 0 additions & 45 deletions api/middleware/auth/tokenmiddleware/token.go

This file was deleted.

42 changes: 0 additions & 42 deletions api/middleware/auth/tokenmiddleware/token_test.go

This file was deleted.

5 changes: 0 additions & 5 deletions api/middleware/auth/tokenmiddleware/types.go

This file was deleted.

Loading