palladians / pallad

Progressive Mina Protocol Wallet
https://pallad.co/
Apache License 2.0
27 stars 12 forks source link

Remove Deprecated Fields from GraphQL Provider Queries #116

Open teddyjfpender opened 11 months ago

teddyjfpender commented 11 months ago

Some of the GraphQL provider queries have deprecated fields. We must remove them and use the proper fields.

For example in AccountInfoProvider's query:

export const getAccountBalance = `
  query accountBalance($publicKey: PublicKey!) {
    account(publicKey: $publicKey) {
      balance {
        total
      },
      nonce
      inferredNonce
      delegate
      publicKey
    }
  }
`

The delegate field is deprecated & should be replaced with delegateAccount.

daredevil3435 commented 2 months ago

so we basically have to replace delegate with delegateAccount? correct me if wrong