outblock / fcl-swift Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hi,
I just started learning Flow blockchain and building an iOS dApp refer to this article https://dev.to/theagilemonkeys/how-to-buid-a-native-ios-dapp-that-uses-the-flow-blockchain-as-the-backend-n9k
I run FCLDemo(0.0.3) and try to trigger SendTransaction but it always returns the error(decode failed). I debug and found out the error return from AccountsResolver when it tried to call executePost request pre_authz(https://flow-wallet-testnet.blocto.app/api/flow/pre-authz) service API and got the response Invalid domain
- HTTP status code: 400
It's happened on both testnet and mainnet (blockto wallet)
The fcl.config
is same as what the FCLDemo setup
In the initial authn
request to the Wallet, it would be helpful if the fcl version
and language
were sent to the Wallet, so that the Wallet can return a response appropriate for that version. It is also helpful for logging purposes. In fcl-js
, this body is sent in the initial authn request. fcl-swift
should send something similar:
{
"fclVersion": "0.0.78-alpha.10",
"service": {
"type": "authn"
},
"config": {
"discoveryAuthnInclude": [],
"services": {},
"app": {
"title": "My awesome app",
"icon": "http://my.awesome.app/logo.png"
}
},
"timestamp": 1643678060750,
"appDomainTag": "MyAwesomeApp",
"extensions": []
}
The fclVersion
value could be augmented with the package name, such as @outblock/[email protected]
The package url
in Package.swift is referring to the wrong repo, which makes adding the package to a Swift app confusing. The README also refers to zed-io
.
See this for format: https://khorbushko.github.io/article/2021/06/05/user-agent.html
Hello Flow SDK maintainer! We need your help updating this repository ASAP. Please check the last change in this post about breaking changes coming along with the release of Secure Cadence and read the documentation about this specific change.
fcl-swift
should include timestamp
and optionally appDomainTag
so that the Wallet provider can return an account-proof
services as outlined in this spec
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.