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

feat: add bridge_amino and test #61

Merged
merged 4 commits into from
Dec 1, 2022
Merged

feat: add bridge_amino and test #61

merged 4 commits into from
Dec 1, 2022

Conversation

mhagel
Copy link
Contributor

@mhagel mhagel commented Nov 29, 2022

Closes: #60

  • Adds AminoConverter for MsgBridge

});

await runAminoTest(msgClient, TEST_MSG_BRIDGE);
});
});
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have tested this against redwood locally, including all negative tests I could think of, but we will need to implement #59 to run it in CI.

https://redwood.regen.aneka.io/txs/C70A43E236BAAB1B2DD2D352A03CBB72D8DF307EB7F03D61905315B26324C738

@@ -25,7 +25,7 @@ import {
} from '../generated/regen/ecocredit/marketplace/v1/tx';
import { GeneratedType } from '@cosmjs/proto-signing';

const ecocreditRegistry: Array<[string, GeneratedType]> = [
const ecocreditRegistry: ReadonlyArray<[string, GeneratedType]> = [
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ReadonlyArray is more in line with the established convention for type registries.

@mhagel mhagel marked this pull request as ready for review November 29, 2022 23:44
@mhagel mhagel requested review from blushi and a team and removed request for blushi November 29, 2022 23:47
Comment on lines 40 to 42
regenTypeRegistry.forEach(([key, value]) => {
customRegistry.push([`/${key}`, value]);
});
Copy link
Member

Choose a reason for hiding this comment

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

not related to this PR, but why do we need this?
messageTypeRegistry.forEach above is already registering all the types

Copy link
Contributor Author

Choose a reason for hiding this comment

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

deleted

@@ -37,9 +36,6 @@ export async function setupTxExtension(
messageTypeRegistry.forEach((value, key) => {
customRegistry.push([`/${key}`, value]);
});
regenRegistry.forEach(([key, value]) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

deleting this. As @blushi pointed out, the messageTypeRegistry already registers all the custom regen msgs.

@mhagel mhagel requested review from blushi and a team November 30, 2022 23:58
Copy link
Contributor

@flagrede flagrede left a comment

Choose a reason for hiding this comment

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

Looks good!

@mhagel mhagel merged commit cb0d339 into main Dec 1, 2022
@mhagel mhagel deleted the feat-50-bridge-amino branch December 1, 2022 17:07
@mhagel mhagel mentioned this pull request Dec 15, 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.

MsgBridge AminoConverter
3 participants