Skip to content

Commit bf066de

Browse files
committed
Mengembalikan keadaan ke versi 81907b4 - Aman
1 parent 1aaaad3 commit bf066de

18 files changed

Lines changed: 110 additions & 531 deletions

‎.env.example‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,3 @@ MIDTRANS_ENVIRONMENT=sandbox
5454

5555
# MIDTRANS PAYMENT
5656
MIDTRANS_ACTIVE=false
57-
58-
# Stellar Blockchain Audit Log
59-
STELLAR_NETWORK=public
60-
STELLAR_HORIZON_URL=
61-
STELLAR_SECRET_KEY=
62-
STELLAR_CONTRACT_ADDRESS=

‎docker-compose.yml‎

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -71,23 +71,6 @@ services:
7171
MIDTRANS_SERVER_KEY: ${MIDTRANS_SERVER_KEY}
7272
MIDTRANS_CLIENT_KEY: ${MIDTRANS_CLIENT_KEY}
7373
MIDTRANS_ENVIRONMENT: ${MIDTRANS_ENVIRONMENT}
74-
MIDTRANS_ACTIVE: ${MIDTRANS_ACTIVE}
75-
76-
# Registration Fees
77-
HACKATHON_FEE: ${HACKATHON_FEE}
78-
CP_FEE: ${CP_FEE}
79-
CTF_FEE: ${CTF_FEE}
80-
81-
# Stellar Blockchain Audit Log
82-
STELLAR_NETWORK: ${STELLAR_NETWORK}
83-
STELLAR_HORIZON_URL: ${STELLAR_HORIZON_URL}
84-
STELLAR_RPC_URL: ${STELLAR_RPC_URL}
85-
STELLAR_SECRET_KEY: ${STELLAR_SECRET_KEY}
86-
STELLAR_CONTRACT_ADDRESS: ${STELLAR_CONTRACT_ADDRESS}
87-
88-
# JWT Keys
89-
JWT_PRIVATE_KEY_PATH: ${JWT_PRIVATE_KEY_PATH}
90-
JWT_PUBLIC_KEY_PATH: ${JWT_PUBLIC_KEY_PATH}
9174

9275
command: /bin/sh -c "go mod download && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /src/gcw main.go && /src/gcw"
9376
ports:

‎dto/registration-dto.go‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ type RegistraionTeamResponse struct {
3434
QRString string `json:"qr_string,omitempty"`
3535
OrderID string `json:"order_id,omitempty"`
3636
PaymentStatus string `json:"payment_status,omitempty"`
37-
KomitmenFee string `json:"komitmen_fee"`
3837
RegistraionTeamRequest
3938
CreatedAt time.Time `json:"created_at"`
4039
UpdatedAt time.Time `json:"updated_at"`

‎entity/audit_log.go‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ type AuditLog struct {
1313
Method string `gorm:"varchar(10); not null" json:"method"` // POST, PUT, DELETE, PATCH (GET not logged)
1414
Endpoint string `gorm:"varchar(255); not null; index" json:"endpoint"`
1515
Description string `gorm:"type:text" json:"description"` // Human-readable description of the action
16-
DescriptionHash string `gorm:"type:varchar(64)" json:"description_hash"` // SHA256 of the description
17-
BlockchainHash string `gorm:"type:varchar(64)" json:"blockchain_hash"` // SHA256 of current block (links to previous)
18-
TxHash string `gorm:"type:varchar(66)" json:"tx_hash"` // Stellar transaction hash
19-
AuthorAddress string `gorm:"type:varchar(56)" json:"author_address"` // Stellar public key of the signer
20-
RequestBody json.RawMessage `gorm:"type:jsonb" json:"request_body"`
16+
RequestBody json.RawMessage `gorm:"type:jsonb" json:"request_body"`
2117
ResponseCode int `gorm:"default:0" json:"response_code"`
2218
ResponseBody json.RawMessage `gorm:"type:jsonb" json:"response_body"`
2319
IPAddress string `gorm:"varchar(45)" json:"ip_address"`

‎entity/team.go‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@ type Team struct {
88
Supervisor string `gorm:"type:varchar(255)"`
99
SupervisorNIDN string `gorm:"type:varchar(255)"`
1010
JoinCode string `gorm:"type:varchar(255); not null"`
11-
KomitmenFee string `gorm:"type:varchar(255)" json:"komitmen_fee"`
12-
Event string `gorm:"type:varchar(255); not null" json:"event"`
11+
KomitmenFee string `gorm:"type:varchar(255)"`
1312

14-
PaymentStatus string `gorm:"type:varchar(50); default:'pending'" json:"payment_status"`
15-
OrderID string `gorm:"type:varchar(255);uniqueIndex" json:"order_id"`
16-
QRString string `gorm:"type:text" json:"qr_string"`
13+
Event string `gorm:"type:varchar(255); not null"`
14+
15+
PaymentStatus string `gorm:"type:varchar(50); default:'pending'"`
16+
OrderID string `gorm:"type:varchar(255);uniqueIndex"`
17+
QRString string `gorm:"type:text"`
1718

1819
ID_LeadTeam uint64 `gorm:"not null"`
1920

‎go.mod‎

Lines changed: 27 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
module gcw
22

3-
go 1.24.0
3+
go 1.23.0
4+
5+
toolchain go1.23.2
46

57
require (
6-
github.com/aws/aws-sdk-go-v2 v1.36.5
7-
github.com/aws/aws-sdk-go-v2/config v1.29.17
8-
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.17.83
9-
github.com/aws/aws-sdk-go-v2/service/s3 v1.83.0
8+
github.com/aws/aws-sdk-go-v2 v1.36.3
9+
github.com/aws/aws-sdk-go-v2/config v1.29.9
10+
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.17.66
11+
github.com/aws/aws-sdk-go-v2/service/s3 v1.78.2
1012
github.com/gin-contrib/cors v1.7.5
1113
github.com/gin-gonic/gin v1.10.0
1214
github.com/golang-jwt/jwt v3.2.2+incompatible
@@ -15,7 +17,7 @@ require (
1517
github.com/swaggo/files v1.0.1
1618
github.com/swaggo/gin-swagger v1.6.0
1719
github.com/swaggo/swag v1.16.4
18-
golang.org/x/crypto v0.45.0
20+
golang.org/x/crypto v0.36.0
1921
gorm.io/driver/postgres v1.5.11
2022
gorm.io/gorm v1.25.12
2123
)
@@ -25,10 +27,7 @@ require (
2527
cloud.google.com/go/auth/oauth2adapt v0.2.7 // indirect
2628
cloud.google.com/go/compute/metadata v0.6.0 // indirect
2729
github.com/KyleBanks/depth v1.2.1 // indirect
28-
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
2930
github.com/felixge/httpsnoop v1.0.4 // indirect
30-
github.com/go-chi/chi v4.1.2+incompatible // indirect
31-
github.com/go-errors/errors v1.5.1 // indirect
3231
github.com/go-logr/logr v1.4.2 // indirect
3332
github.com/go-logr/stdr v1.2.2 // indirect
3433
github.com/go-openapi/jsonpointer v0.21.1 // indirect
@@ -38,50 +37,39 @@ require (
3837
github.com/google/s2a-go v0.1.9 // indirect
3938
github.com/googleapis/enterprise-certificate-proxy v0.3.5 // indirect
4039
github.com/googleapis/gax-go/v2 v2.14.1 // indirect
41-
github.com/gorilla/schema v1.4.1 // indirect
4240
github.com/josharian/intern v1.0.0 // indirect
43-
github.com/klauspost/compress v1.17.6 // indirect
4441
github.com/mailru/easyjson v0.9.0 // indirect
45-
github.com/manucorporat/sse v0.0.0-20160126180136-ee05b128a739 // indirect
4642
github.com/midtrans/midtrans-go v1.3.8 // indirect
4743
github.com/pkg/errors v0.9.1 // indirect
48-
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
4944
github.com/sahilm/fuzzy v0.1.1 // indirect
50-
github.com/segmentio/go-loggly v0.5.1-0.20171222203950-eb91657e62b2 // indirect
51-
github.com/sirupsen/logrus v1.9.3 // indirect
52-
github.com/stellar/go v0.0.0-20251210100531-aab2ea4aca88 // indirect
53-
github.com/stellar/go-xdr v0.0.0-20231122183749-b53fb00bcac2 // indirect
54-
github.com/stretchr/objx v0.5.2 // indirect
55-
github.com/stretchr/testify v1.10.0 // indirect
5645
github.com/ulule/limiter/v3 v3.11.2 // indirect
5746
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
5847
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.59.0 // indirect
5948
go.opentelemetry.io/otel v1.34.0 // indirect
6049
go.opentelemetry.io/otel/metric v1.34.0 // indirect
6150
go.opentelemetry.io/otel/trace v1.34.0 // indirect
62-
golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect
6351
golang.org/x/oauth2 v0.28.0 // indirect
64-
golang.org/x/tools v0.38.0 // indirect
52+
golang.org/x/tools v0.31.0 // indirect
6553
google.golang.org/genproto/googleapis/rpc v0.0.0-20250303144028-a0af3efb3deb // indirect
6654
google.golang.org/grpc v1.71.0 // indirect
6755
)
6856

6957
require (
70-
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.11 // indirect
71-
github.com/aws/aws-sdk-go-v2/credentials v1.17.70 // indirect
72-
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.32 // indirect
73-
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36 // indirect
74-
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36 // indirect
58+
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.10 // indirect
59+
github.com/aws/aws-sdk-go-v2/credentials v1.17.62 // indirect
60+
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.30 // indirect
61+
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.34 // indirect
62+
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.34 // indirect
7563
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.3 // indirect
76-
github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.36 // indirect
77-
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.4 // indirect
78-
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.7.4 // indirect
79-
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.17 // indirect
80-
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.17 // indirect
81-
github.com/aws/aws-sdk-go-v2/service/sso v1.25.5 // indirect
82-
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.30.3 // indirect
83-
github.com/aws/aws-sdk-go-v2/service/sts v1.34.0 // indirect
84-
github.com/aws/smithy-go v1.22.4 // indirect
64+
github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.34 // indirect
65+
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.3 // indirect
66+
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.7.0 // indirect
67+
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.15 // indirect
68+
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.15 // indirect
69+
github.com/aws/aws-sdk-go-v2/service/sso v1.25.1 // indirect
70+
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.29.1 // indirect
71+
github.com/aws/aws-sdk-go-v2/service/sts v1.33.17 // indirect
72+
github.com/aws/smithy-go v1.22.2 // indirect
8573
github.com/bytedance/sonic v1.13.2 // indirect
8674
github.com/bytedance/sonic/loader v0.2.4 // indirect
8775
github.com/cloudwego/base64x v0.1.5 // indirect
@@ -107,10 +95,10 @@ require (
10795
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
10896
github.com/ugorji/go/codec v1.2.12 // indirect
10997
golang.org/x/arch v0.15.0 // indirect
110-
golang.org/x/net v0.47.0 // indirect
111-
golang.org/x/sync v0.18.0 // indirect
112-
golang.org/x/sys v0.38.0 // indirect
113-
golang.org/x/text v0.31.0 // indirect
98+
golang.org/x/net v0.38.0 // indirect
99+
golang.org/x/sync v0.12.0 // indirect
100+
golang.org/x/sys v0.31.0 // indirect
101+
golang.org/x/text v0.23.0 // indirect
114102
google.golang.org/api v0.226.0
115103
google.golang.org/protobuf v1.36.6 // indirect
116104
gopkg.in/yaml.v3 v3.0.1 // indirect

0 commit comments

Comments
 (0)