get cake balance from bsc wallet

This commit is contained in:
João Geonizeli
2021-09-15 23:45:50 -03:00
parent d01502d765
commit fb957803cc
24 changed files with 453 additions and 79 deletions

View File

@@ -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

View 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