Skip to content
Merged
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
40 changes: 21 additions & 19 deletions account/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,16 +251,17 @@ func (s *Server) GetUserFlags(ctx context.Context, req *accountpb.GetUserFlagsRe
return &accountpb.GetUserFlagsResponse{
Result: accountpb.GetUserFlagsResponse_OK,
UserFlags: &accountpb.UserFlags{
IsStaff: isStaff,
IsRegisteredAccount: isRegistered,
RequiresIapForRegistration: requireIapOnAccountCreation,
SupportedOnRampProviders: supportedOnRampProvidersForUser,
PreferredOnRampProvider: preferredOnRampProviderForUser,
MinBuildNumber: uint32(minBuildNumber),
BillExchangeDataTimeout: durationpb.New(defaultBillExchangeDataTimeout),
NewCurrencyPurchaseAmount: DefaultNewCurrencyPurchaseAmount,
NewCurrencyFeeAmount: DefaultNewCurrencyFeeAmount,
UsdcWithdrawalFeeAmount: DefaulUsdcWithdrawalFeeAmount,
IsStaff: isStaff,
IsRegisteredAccount: isRegistered,
RequiresIapForRegistration: requireIapOnAccountCreation,
SupportedOnRampProviders: supportedOnRampProvidersForUser,
PreferredOnRampProvider: preferredOnRampProviderForUser,
MinBuildNumber: uint32(minBuildNumber),
BillExchangeDataTimeout: durationpb.New(defaultBillExchangeDataTimeout),
NewCurrencyPurchaseAmount: DefaultNewCurrencyPurchaseAmount,
NewCurrencyFeeAmount: DefaultNewCurrencyFeeAmount,
UsdcWithdrawalFeeAmount: DefaulUsdcWithdrawalFeeAmount,
PreferredOnRampUsdcLiquidityPool: accountpb.UserFlags_COINBASE_STABLE_SWAPPER,
},
}, nil
}
Expand All @@ -284,15 +285,16 @@ func (s *Server) GetUnauthenticatedUserFlags(ctx context.Context, req *accountpb
return &accountpb.GetUnauthenticatedUserFlagsResponse{
Result: accountpb.GetUnauthenticatedUserFlagsResponse_OK,
UserFlags: &accountpb.UserFlags{
IsStaff: false,
IsRegisteredAccount: false,
RequiresIapForRegistration: requireIapOnAccountCreation,
SupportedOnRampProviders: supportedOnRampProvidersForUser,
PreferredOnRampProvider: preferredOnRampProviderForUser,
MinBuildNumber: uint32(minBuildNumber),
NewCurrencyPurchaseAmount: DefaultNewCurrencyPurchaseAmount,
NewCurrencyFeeAmount: DefaultNewCurrencyFeeAmount,
UsdcWithdrawalFeeAmount: DefaulUsdcWithdrawalFeeAmount,
IsStaff: false,
IsRegisteredAccount: false,
RequiresIapForRegistration: requireIapOnAccountCreation,
SupportedOnRampProviders: supportedOnRampProvidersForUser,
PreferredOnRampProvider: preferredOnRampProviderForUser,
MinBuildNumber: uint32(minBuildNumber),
NewCurrencyPurchaseAmount: DefaultNewCurrencyPurchaseAmount,
NewCurrencyFeeAmount: DefaultNewCurrencyFeeAmount,
UsdcWithdrawalFeeAmount: DefaulUsdcWithdrawalFeeAmount,
PreferredOnRampUsdcLiquidityPool: accountpb.UserFlags_COINBASE_STABLE_SWAPPER,
},
}, nil
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.26.0
require (
firebase.google.com/go/v4 v4.18.0
github.com/ReneKroon/ttlcache v1.7.0
github.com/code-payments/flipcash2-protobuf-api v1.4.0
github.com/code-payments/flipcash2-protobuf-api v1.4.1-0.20260429155359-7b31c1a41cf0
github.com/code-payments/ocp-protobuf-api v1.10.0
github.com/code-payments/ocp-server v1.11.1-0.20260428231936-0d49436103e3
github.com/devsisters/go-applereceipt v0.0.0-20240805020915-fa22a0160fc2
Expand Down
6 changes: 2 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,10 @@ github.com/cockroachdb/cockroach-go/v2 v2.2.0 h1:/5znzg5n373N/3ESjHF5SMLxiW4RKB0
github.com/cockroachdb/cockroach-go/v2 v2.2.0/go.mod h1:u3MiKYGupPPjkn3ozknpMUpxPaNLTFWAya419/zv6eI=
github.com/code-payments/code-vm-indexer v1.2.0 h1:rSHpBMiT9BKgmKcXg/VIoi/h0t7jNxGx07Qz59m+6Q0=
github.com/code-payments/code-vm-indexer v1.2.0/go.mod h1:vn91YN2qNqb+gGJeZe2+l+TNxVmEEiRHXXnIn2Y40h8=
github.com/code-payments/flipcash2-protobuf-api v1.4.0 h1:/4LnhPHlEfmPtakKaqHT7fSs76chURXmoGtwv3pswmM=
github.com/code-payments/flipcash2-protobuf-api v1.4.0/go.mod h1:s/1pOsb4FTRD+LcvRKGjfmm6ygRS/m1ep34EIW0fuDs=
github.com/code-payments/flipcash2-protobuf-api v1.4.1-0.20260429155359-7b31c1a41cf0 h1:bGP8kCBfG1wHJ/DVmn025AInix2qthNjxQllmqWNjJA=
github.com/code-payments/flipcash2-protobuf-api v1.4.1-0.20260429155359-7b31c1a41cf0/go.mod h1:s/1pOsb4FTRD+LcvRKGjfmm6ygRS/m1ep34EIW0fuDs=
github.com/code-payments/ocp-protobuf-api v1.10.0 h1:8GEDLh3NShOYz6J7a9VOCqu+xJSd7xR42pewaPfkiE4=
github.com/code-payments/ocp-protobuf-api v1.10.0/go.mod h1:tw6BooY5a8l6CtSZnKOruyKII0W04n89pcM4BizrgG8=
github.com/code-payments/ocp-server v1.11.0 h1:t3RVFv3T0W7+R/AxHBbWFhVWicA3zT4S0YE0J4C4JgE=
github.com/code-payments/ocp-server v1.11.0/go.mod h1:988X7GYc48DZihgfsv/1rKyFhp+SM00b2uR74NbuMYA=
github.com/code-payments/ocp-server v1.11.1-0.20260428231936-0d49436103e3 h1:c7f2HxXM7w6yBawsvDnr+DOWEbxEEembhHk/fleKVzY=
github.com/code-payments/ocp-server v1.11.1-0.20260428231936-0d49436103e3/go.mod h1:988X7GYc48DZihgfsv/1rKyFhp+SM00b2uR74NbuMYA=
github.com/containerd/continuity v0.4.3 h1:6HVkalIp+2u1ZLH1J/pYX2oBVXlJZvh1X1A7bEZ9Su8=
Expand Down
Loading