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

improve ChainAddress type #9662

Merged
merged 4 commits into from
Jul 8, 2024
Merged

improve ChainAddress type #9662

merged 4 commits into from
Jul 8, 2024

Conversation

turadg
Copy link
Member

@turadg turadg commented Jul 7, 2024

closes: #9162

Description

#9162 is already mostly done. This revisits the property names with some improvements. Also cleans up nearby types and docs.

#9162 (comment) has some good ideas for future directions but this PR wraps up the requirements for release.

Security Considerations

Scaling Considerations

Documentation Considerations

Testing Considerations

Upgrade Considerations

unreleased

@turadg turadg requested review from dtribble and 0xpatrickdev July 7, 2024 17:42
Copy link

cloudflare-workers-and-pages bot commented Jul 7, 2024

Deploying agoric-sdk with  Cloudflare Pages  Cloudflare Pages

Latest commit: 33f92b5
Status: ✅  Deploy successful!
Preview URL: https://1930c541.agoric-sdk.pages.dev
Branch Preview URL: https://9162-chainaddress.agoric-sdk.pages.dev

View logs

@turadg turadg force-pushed the 9162-ChainAddress branch 2 times, most recently from 156ce76 to d79552f Compare July 7, 2024 18:37
Copy link
Member

@0xpatrickdev 0xpatrickdev left a comment

Choose a reason for hiding this comment

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

LGTM. The CI failure is surprising as it seems unrelated

@@ -22,7 +22,7 @@ import type { AmountArg, ChainAddress, DenomAmount } from './types.js';

/** An address for a validator on some blockchain, e.g., cosmos, eth, etc. */
export type CosmosValidatorAddress = ChainAddress & {
// TODO document why this is the format
// infix for Validator Operator https://docs.cosmos.network/main/learn/beginner/accounts#addresses
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

@dtribble dtribble left a comment

Choose a reason for hiding this comment

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

LGTM. I also like the change to encoding rather than addressEncoding

@turadg turadg added the automerge:rebase Automatically rebase updates, then merge label Jul 8, 2024
@turadg turadg force-pushed the 9162-ChainAddress branch from d79552f to 5ac9542 Compare July 8, 2024 14:54
@turadg turadg force-pushed the 9162-ChainAddress branch from 5ac9542 to 33f92b5 Compare July 8, 2024 20:03
@mergify mergify bot merged commit d60c4df into master Jul 8, 2024
78 checks passed
@mergify mergify bot deleted the 9162-ChainAddress branch July 8, 2024 20:34
0xpatrickdev added a commit that referenced this pull request Jul 10, 2024
- fixes changed parameter from #9662
- improves test to print delegate offer result error on failure
0xpatrickdev added a commit that referenced this pull request Jul 10, 2024
- fixes changed parameter from #9662
- improves test to print delegate offer result error on failure
0xpatrickdev added a commit that referenced this pull request Jul 10, 2024
- fixes changed parameter from #9662
- improves test to print delegate offer result error on failure
0xpatrickdev added a commit that referenced this pull request Jul 11, 2024
- fixes changed parameter from #9662
- improves test to print delegate offer result error on failure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge:rebase Automatically rebase updates, then merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

types for chain addresses
3 participants