-
Notifications
You must be signed in to change notification settings - Fork 24
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
Conversation
onelapahead
commented
Jan 17, 2022
- 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
a3db013
to
d8f9583
Compare
d8f9583
to
d98856d
Compare
Signed-off-by: hfuss <[email protected]>
Signed-off-by: hfuss <[email protected]>
Signed-off-by: hfuss <[email protected]>
Signed-off-by: hfuss <[email protected]>
c558dec
to
fc626c0
Compare
|
||
#### ERC1155 | ||
|
||
By default, the chart comes with the [FireFly Tokens ERC1155 connector](https://github.com/hyperledger/firefly-tokens-erc1155) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
charts/firefly/README.md
Outdated
Once its deployed, be sure to provide the contract address to the chart: | ||
|
||
```yaml | ||
config: |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
.
Signed-off-by: hfuss <[email protected]>
Signed-off-by: hfuss <[email protected]>
Signed-off-by: hfuss <[email protected]>
Signed-off-by: hfuss <[email protected]>