Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tokens ERC1155 Connector Support #4

Merged
merged 7 commits into from
Jan 21, 2022

Conversation

onelapahead
Copy link
Contributor

  • From [helm] Tokens ERC1155 Deployment firefly#372
  • Does not have IT test for ERC1155 (yet) bc it requires a functional Ethconnect with the ERC1155 contract deployed, we'll save adding that for when we get Ethconnect deployed as well


#### ERC1155

By default, the chart comes with the [FireFly Tokens ERC1155 connector](https://github.com/hyperledger/firefly-tokens-erc1155)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious, why is the ERC1155 connector enabled by default in the chart?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mainly to match the ff CLI and the firefly E2E expectations but I have thought the same thing since I had to then disable it as part of the IT tests and the fact that it requires its own contract to be deployed.

Keeping it disabled by default for now is probably fine.

Once its deployed, be sure to provide the contract address to the chart:

```yaml
config:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I understand that the FF conf is built from the top-level config within the chart, but it does seem confusing to me that we have:

config:
  erc1155ContractAddress: 'blah'
erc1155:
  ....

My brain really wants:

erc1155:
  contractAddress: 'blah'

I'm thinking about the future when we have more connectors and ethconnect itself being deployed. Thoughts?

Copy link
Contributor Author

@onelapahead onelapahead Jan 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great point / question. The ERC1155 contract address really is never used in the config templating helper for the tokens plugin: https://github.com/hfuss/firefly-helm-charts/blob/tokens-erc1155/charts/firefly/templates/_helpers.tpl#L239-L247

its purely config for ERC1155 not FireFly to your point and this will conflate config as we add more connectors.

And furthermore, the only bit of config we allow users to provide for the DataExchange as a supporting example is the API key which we did via dataexchange.apiKey. If the DataExchange was external so that dataexchange.enabled is false, there's config.dataexchangeAPIKey to provide the value to FireFly: https://github.com/hyperledger/firefly-helm-charts/blob/main/charts/firefly/templates/dataexchange/secret.yaml#L29-L31

So considering that, I agree. Will change the contract address and topic values to live under erc1155.

charts/firefly/templates/_helpers.tpl Outdated Show resolved Hide resolved
Signed-off-by: hfuss <[email protected]>
@onelapahead onelapahead merged commit 261484b into hyperledger:main Jan 21, 2022
@calbritt calbritt mentioned this pull request Jan 22, 2022
calbritt pushed a commit to calbritt/firefly-helm-charts that referenced this pull request Jan 22, 2022
onelapahead added a commit to calbritt/firefly-helm-charts that referenced this pull request Jan 22, 2022
@onelapahead onelapahead mentioned this pull request Jan 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants