Skip to content

Commit 71ba193

Browse files
Merge pull request #81 from iulianpascalau/crypto-payments-renaming
Crypto payments renaming & frontend solution link update
2 parents f2fb043 + 782d768 commit 71ba193

File tree

10 files changed

+56
-16
lines changed

10 files changed

+56
-16
lines changed

frontend/src/Dashboard.tsx

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useEffect, useState } from 'react';
22
import { getAccessKey, clearAuth, getUserInfo, parseJwt, type User as AuthUser } from './auth';
33
import { useNavigate } from 'react-router-dom';
4-
import { LogOut, Key, Users, Copy, Trash2, Shield, Loader, Plus, User, Pencil, RotateCcw, ChevronLeft, ChevronRight, ArrowUpDown, ArrowUp, ArrowDown, Check, X as XIcon, UserCog, BookOpen, ExternalLink, Zap, AlertTriangle, CreditCard, Wallet } from 'lucide-react';
4+
import { LogOut, Key, Users, Copy, Trash2, Shield, Loader, Plus, User, Pencil, RotateCcw, ChevronLeft, ChevronRight, ChevronUp, ArrowUpDown, ArrowUp, ArrowDown, Check, X as XIcon, UserCog, BookOpen, ExternalLink, Zap, AlertTriangle, CreditCard, Wallet } from 'lucide-react';
55
import axios from 'axios';
66

77

@@ -1180,8 +1180,28 @@ export const Dashboard = () => {
11801180
<ExternalLink size={18} />
11811181
</a>
11821182
<div className="text-center w-full border-t border-white/5 pt-6">
1183-
<p style={{ fontSize: '0.8rem' }} className="text-slate-500">
1184-
Build {appInfo.version} | <a href="https://github.com/iulianpascalau/mx-epoch-proxy-go" className="hover:text-slate-400 underline decoration-slate-600 underline-offset-2" target="_blank" rel="noopener noreferrer">Solution</a>
1183+
<p style={{ fontSize: '0.8rem' }} className="text-slate-500 flex items-center justify-center gap-1">
1184+
Build {appInfo.version} |
1185+
<div className="relative group inline-block ml-1">
1186+
<button className="hover:text-slate-300 underline decoration-slate-600 underline-offset-2 flex items-center gap-1 transition-colors">
1187+
Source Code <ChevronUp size={12} />
1188+
</button>
1189+
<div className="absolute bottom-full left-1/2 -translate-x-1/2 mb-2 w-56 bg-slate-900/95 border border-slate-700/50 backdrop-blur-xl rounded-lg shadow-2xl opacity-0 invisible group-hover:visible group-hover:opacity-100 transition-all duration-200 transform origin-bottom z-50 flex flex-col">
1190+
<div className="px-4 py-2 border-b border-white/5 text-[10px] uppercase font-bold text-slate-500 tracking-wider">
1191+
Repositories
1192+
</div>
1193+
<a href="https://github.com/iulianpascalau/mx-epoch-proxy-go" target="_blank" rel="noopener noreferrer" className="px-4 py-3 hover:bg-indigo-500/10 hover:text-indigo-300 text-slate-300 text-xs text-left transition-colors flex items-center gap-2">
1194+
<span className="w-1.5 h-1.5 rounded-full bg-indigo-500"></span> Epoch Proxy (Go)
1195+
</a>
1196+
<a href="https://github.com/iulianpascalau/mx-crypto-payments" target="_blank" rel="noopener noreferrer" className="px-4 py-3 hover:bg-emerald-500/10 hover:text-emerald-300 text-slate-300 text-xs text-left transition-colors flex items-center gap-2">
1197+
<span className="w-1.5 h-1.5 rounded-full bg-emerald-500"></span> Crypto Payments (Go)
1198+
</a>
1199+
<a href="https://github.com/iulianpascalau/mx-credits-contract-rs" target="_blank" rel="noopener noreferrer" className="px-4 py-3 hover:bg-amber-500/10 hover:text-amber-300 text-slate-300 text-xs text-left transition-colors flex items-center gap-2 rounded-b-lg">
1200+
<span className="w-1.5 h-1.5 rounded-full bg-amber-500"></span> Credits Contract (Rust)
1201+
</a>
1202+
<div className="absolute -bottom-1 left-1/2 -translate-x-1/2 w-2 h-2 bg-slate-900 border-r border-b border-slate-700/50 transform rotate-45"></div>
1203+
</div>
1204+
</div>
11851205
</p>
11861206
</div>
11871207

frontend/src/Login.tsx

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useState, useEffect } from 'react';
22
import { setAuth } from './auth';
33
import { useNavigate, Link, useLocation } from 'react-router-dom';
4-
import { Lock, User } from 'lucide-react';
4+
import { Lock, User, ChevronUp } from 'lucide-react';
55

66
export const Login = () => {
77
const [username, setUsername] = useState('');
@@ -121,8 +121,28 @@ export const Login = () => {
121121
</form>
122122

123123
<div className="mt-6 text-center">
124-
<p style={{ fontSize: '0.8rem' }} className="text-slate-500">
125-
Build {version} | <a href="https://github.com/iulianpascalau/mx-epoch-proxy-go" className="hover:text-slate-400 underline decoration-slate-600 underline-offset-2" target="_blank" rel="noopener noreferrer">Solution</a>
124+
<p style={{ fontSize: '0.8rem' }} className="text-slate-500 flex items-center justify-center gap-1">
125+
Build {version} |
126+
<div className="relative group inline-block ml-1">
127+
<button className="hover:text-slate-300 underline decoration-slate-600 underline-offset-2 flex items-center gap-1 transition-colors">
128+
Source Code <ChevronUp size={12} />
129+
</button>
130+
<div className="absolute bottom-full left-1/2 -translate-x-1/2 mb-2 w-56 bg-slate-900/95 border border-slate-700/50 backdrop-blur-xl rounded-lg shadow-2xl opacity-0 invisible group-hover:visible group-hover:opacity-100 transition-all duration-200 transform origin-bottom z-50 flex flex-col">
131+
<div className="px-4 py-2 border-b border-white/5 text-[10px] uppercase font-bold text-slate-500 tracking-wider">
132+
Repositories
133+
</div>
134+
<a href="https://github.com/iulianpascalau/mx-epoch-proxy-go" target="_blank" rel="noopener noreferrer" className="px-4 py-3 hover:bg-indigo-500/10 hover:text-indigo-300 text-slate-300 text-xs text-left transition-colors flex items-center gap-2">
135+
<span className="w-1.5 h-1.5 rounded-full bg-indigo-500"></span> Epoch Proxy (Go)
136+
</a>
137+
<a href="https://github.com/iulianpascalau/mx-crypto-payments" target="_blank" rel="noopener noreferrer" className="px-4 py-3 hover:bg-emerald-500/10 hover:text-emerald-300 text-slate-300 text-xs text-left transition-colors flex items-center gap-2">
138+
<span className="w-1.5 h-1.5 rounded-full bg-emerald-500"></span> Crypto Payments (Go)
139+
</a>
140+
<a href="https://github.com/iulianpascalau/mx-credits-contract-rs" target="_blank" rel="noopener noreferrer" className="px-4 py-3 hover:bg-amber-500/10 hover:text-amber-300 text-slate-300 text-xs text-left transition-colors flex items-center gap-2 rounded-b-lg">
141+
<span className="w-1.5 h-1.5 rounded-full bg-amber-500"></span> Credits Contract (Rust)
142+
</a>
143+
<div className="absolute -bottom-1 left-1/2 -translate-x-1/2 w-2 h-2 bg-slate-900 border-r border-b border-slate-700/50 transform rotate-45"></div>
144+
</div>
145+
</div>
126146
</p>
127147
</div>
128148
</div>

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ toolchain go1.24.11
77
require (
88
github.com/dchest/captcha v1.1.0
99
github.com/golang-jwt/jwt/v5 v5.3.0
10-
github.com/iulianpascalau/mx-crypto-payments v1.0.5
10+
github.com/iulianpascalau/mx-crypto-payments-go v1.0.7
1111
github.com/joho/godotenv v1.5.1
1212
github.com/mattn/go-sqlite3 v1.14.33
1313
github.com/multiversx/mx-chain-core-go v1.4.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,8 @@ github.com/ipfs/go-test v0.0.4 h1:DKT66T6GBB6PsDFLoO56QZPrOmzJkqU1FZH5C9ySkew=
268268
github.com/ipfs/go-test v0.0.4/go.mod h1:qhIM1EluEfElKKM6fnWxGn822/z9knUGM1+I/OAQNKI=
269269
github.com/ipld/go-ipld-prime v0.21.0 h1:n4JmcpOlPDIxBcY037SVfpd1G+Sj1nKZah0m6QH9C2E=
270270
github.com/ipld/go-ipld-prime v0.21.0/go.mod h1:3RLqy//ERg/y5oShXXdx5YIp50cFGOanyMctpPjsvxQ=
271-
github.com/iulianpascalau/mx-crypto-payments v1.0.5 h1:VuIssbSGLPvz9LDdtWVyF8qUMtl4ea7kgByra0epZAg=
272-
github.com/iulianpascalau/mx-crypto-payments v1.0.5/go.mod h1:4/NVijzrXB9NswwfiG8QSV4KkolilWOCjcxIhpVFSUw=
271+
github.com/iulianpascalau/mx-crypto-payments-go v1.0.7 h1:sEdAH9ycsBnqKdnV1/uq4+sI5THUsjpbuAbimHKNq4g=
272+
github.com/iulianpascalau/mx-crypto-payments-go v1.0.7/go.mod h1:W7bSzZiEQaG3iAAMMBP/5y5PWpIlXeY7d724Xa5SvGs=
273273
github.com/jackpal/go-nat-pmp v1.0.2 h1:KzKSgb7qkJvOUTqYl9/Hg/me3pWgBmERKrTGD7BdWus=
274274
github.com/jackpal/go-nat-pmp v1.0.2/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+4orBN1SBKc=
275275
github.com/jbenet/go-cienv v0.1.0/go.mod h1:TqNnHUmJgXau0nCzC7kXWeotg3J9W34CUv5Djy1+FlA=

integrationTests/e2e_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"testing"
99
"time"
1010

11-
cryptoPaymentsFramework "github.com/iulianpascalau/mx-crypto-payments/integrationTests/framework"
11+
cryptoPaymentsFramework "github.com/iulianpascalau/mx-crypto-payments-go/integrationTests/framework"
1212
"github.com/iulianpascalau/mx-epoch-proxy-go/integrationTests/framework"
1313
"github.com/multiversx/mx-chain-core-go/data/transaction"
1414
logger "github.com/multiversx/mx-chain-logger-go"

integrationTests/framework/chainSimulatorWrapper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"testing"
1111
"time"
1212

13-
cryptoPaymentsFramework "github.com/iulianpascalau/mx-crypto-payments/integrationTests/framework"
13+
cryptoPaymentsFramework "github.com/iulianpascalau/mx-crypto-payments-go/integrationTests/framework"
1414
"github.com/multiversx/mx-chain-core-go/core"
1515
"github.com/multiversx/mx-chain-core-go/core/pubkeyConverter"
1616
apiCore "github.com/multiversx/mx-chain-core-go/data/api"

integrationTests/framework/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"runtime"
66
"testing"
77

8-
cryptoPaymentsFramework "github.com/iulianpascalau/mx-crypto-payments/integrationTests/framework"
8+
cryptoPaymentsFramework "github.com/iulianpascalau/mx-crypto-payments-go/integrationTests/framework"
99
"github.com/stretchr/testify/require"
1010
)
1111

integrationTests/framework/interface.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package framework
33
import (
44
"context"
55

6-
"github.com/iulianpascalau/mx-crypto-payments/factory"
7-
"github.com/iulianpascalau/mx-crypto-payments/process"
6+
"github.com/iulianpascalau/mx-crypto-payments-go/factory"
7+
"github.com/iulianpascalau/mx-crypto-payments-go/process"
88
proxyApi "github.com/iulianpascalau/mx-epoch-proxy-go/services/proxy/api"
99
proxyFactory "github.com/iulianpascalau/mx-epoch-proxy-go/services/proxy/factory"
1010
"github.com/multiversx/mx-chain-core-go/data/api"

integrationTests/manual_flows_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"testing"
88
"time"
99

10-
cryptoPaymentsFramework "github.com/iulianpascalau/mx-crypto-payments/integrationTests/framework"
10+
cryptoPaymentsFramework "github.com/iulianpascalau/mx-crypto-payments-go/integrationTests/framework"
1111
"github.com/iulianpascalau/mx-epoch-proxy-go/integrationTests/framework"
1212
logger "github.com/multiversx/mx-chain-logger-go"
1313
"github.com/stretchr/testify/assert"

services/proxy/SPECS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ The **Crypto Payments Service** allows users to top up their account
126126
credits using MultiversX native EGLD token. This functionality is decoupled into a
127127
standalone microservice for security reasons.
128128

129-
- **Project Repository**: [Crypto Payments Service Source](https://github.com/iulianpascalau/mx-crypto-payments)
129+
- **Project Repository**: [Crypto Payments Service Source](https://github.com/iulianpascalau/mx-crypto-payments-go)
130130
- **Credits Smart Contract**: [Smart Contract Source](https://github.com/iulianpascalau/mx-credits-contract-rs)
131131

132132
### Funcationality

0 commit comments

Comments
 (0)