get cake balance from bsc wallet
This commit is contained in:
@@ -10,7 +10,10 @@ module Types
|
||||
field :email, String, null: false
|
||||
field :first_name, String, null: false
|
||||
field :last_name, String, null: false
|
||||
field :wallet_address, String, null: true
|
||||
field :fiat_balance, FiatBalanceType, null: false
|
||||
field :wallet, WalletType, null: false
|
||||
def wallet
|
||||
Wallet.new(object)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
9
app/graphql/types/wallet_type.rb
Normal file
9
app/graphql/types/wallet_type.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
# frozen_string_literal: true
|
||||
module Types
|
||||
class WalletType < Types::BaseObject
|
||||
graphql_name "Wallet"
|
||||
|
||||
field :address, String, null: true
|
||||
field :cake_balance, String, null: false
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user