fcl-js
fcl-js copied to clipboard
Implement new flow.json contract imports syntax
To ensure compatibility with the general ecosystem we need to implement this flip.
Note: This issue does NOT encompass the reading of the flow.json file, we are to assume the the data structure is passed in as configuration.
don't we have this already ? with: import xxx from 0xSOMEWHERE replacements ?
@bluesign we support one of the formats. The other look something like this:
{
...
"contracts": {
"onflow/NonFungibleToken": "./NonFungibleToken.cdc",
"onflow/FungibleToken": {
"testnet": "github.com/flow/FungibleToken/Fungible.cdc",
"mainnet": "0x2",
"emulator": "./FungibleToken.cdc",
"e2e-testnet": "0x3"
}
}
...
}
And this one we need to support as well.
ah I always though those 0xProfile etc can be something like onflow/FungibleToken
Duplicate of #1449