Git Product home page Git Product logo

novasamatech / nova-ios-app Goto Github PK

View Code? Open in Web Editor NEW
21.0 2.0 4.0 87.66 MB

⚠️ Nova Wallet iOS moved to new repository. We have transitioned from open sourcing Nova Wallet code based on the Treasury grant completion to the full open source mode.

Home Page: https://github.com/novasamatech/nova-wallet-ios

License: Apache License 2.0

Ruby 0.02% Shell 0.01% Swift 99.98%
blockchain-application blockhain cryptocurrency dapps defi nft polkadot self-custody staking substrate

nova-ios-app's People

Contributors

antonkhvorov avatar cre-ed avatar ef1rspb avatar erussel avatar fearless-stas avatar lynx56 avatar stas-litvinov avatar stepanlav avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nova-ios-app's Issues

Polkadot and Kusama nominator controller accounts are being deprecated

Polkadot and Kusama nominator controller accounts are being deprecated

This is an issue to notify the maintainers of this repo that nominator controller accounts are being deprecated on Polkadot and Kusama, in favour of proxy accounts. In an upcoming runtime upgrade (version and date is yet to be determined), 2 call signatures of the staking pallet will change. These are breaking changes for UIs, so UIs will need to update their codebases when the changes come into effect.

Call Changes

The staking.bond and staking.setController call signatures have now changed in the Substrate codebase PR here, and will take effect in a future runtime upgrade.

  • set_controller(controller) will become set_controller(). This call will simply set the controller account to the caller's stash account, if it is not already.
  • bond(controller, value, payee) will become bond(value, payee). This call will now set the caller as the controller account (same as the stash).

UIs can prepare now by adding a controller deprecation message, and allow stakers to change their controller accounts back to their stash using the existing staking.setController(controller) call. The Polkadot staking dashboard recently deployed this functionality and may be useful as reference code.

Next Steps

  • A follow-up message will be made when we know when these changes will be on Westend, giving UIs time to test any needed changes.
  • Follow-up messages will be made here when we know the runtime version and date of the change on Polkadot and Kusama.

Other Resources

Participation in Acala's liquid crowdloan is visible as locked DOT

The Nova wallet shows a locked DOT balance for participation in Acala's liquid crowdloan, even though the Acala protocol (Acala's Liquid Crowdloan vault) owns those DOT tokens, not my wallet.

Not sure if the same issue exists for other liquid crowdloans.

I hope you find this issue worth fixing.

Support additional fields in QRCode comment

Feature request

We are implementing "Pay with Polkadot" Point-of-Sale feature here:
https://github.com/metaspan/metapay

The solution is opensource and can be self-hosted by any vendor / merchant.

Use cases

  1. Point-of-sale / Kiosk: generate QRcode with all relevant data - user scans with wallet and approves payment
    substrate://<address>:<genesisHash>:amount=1&reference=ref123
    The POS module can watch the address for any payment with reference, and mark the payment as complete.

  2. Webshop: Send a link to user to request payment
    https://pay.metaspan.io/paymentRequest/<address>:<genesisHash>?amount=1&reference=ref123 (to be implemented shortly ;)
    The browser will display a QRcode for wallet to scan
    Also, if available, will connect to polkadot.js (in the browser)
    An optional callback will notify the webshop that payment is done / error.

Broadly, it will embrace similar work already done at Solana Pay
https://github.com/solana-labs/solana-pay/blob/master/SPEC.md

Nova Wallet should support additional fields via URL encoding in the comment

Current support - a QR code with:
substrate:<walletid>:<genesisHash>[:<comment>] - is supported

We need support for:
substrate:[//]<walletid>:<genesisHash>:[?]<url-encoded-fields>

Options for detecting additional fields

const parts = decodedQRString.split(':')
const protocol    = parts[0]
const address     = parts[1]
const genesisHash = parts[2]
const comment     = parts[3]

// Option 1
if (address.startsWith('//')) {}

// Option 2
if (comment && comment.startsWith('?')) {}

Example handler:

const parts = decodedQRString.split(':')
const protocol = parts[0]
if (protocol === 'substrate') {
  const address = parts[1]
  const comment = parts[3]
  if (address.startsWith('//') || ( comment && comment.startsWith('?') ) ) {
    // we have URL-encoded `comment` field
    /*
      [?]amount=<amount>
      &reference=<reference>
      &label=<label>
      &message=<message>
      &memo=<memo>
    */
  } else {
    // simple QR format
  }
} else {
  console.error('Invalid protocol')
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.