-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes: #9211 ## Description Uses ChainHub for lookup of denoms and brands (from the other). Adds some coercion utilities to get the desired shape within the exos and contract, using a ChainHub. ### Security Considerations Contracts control their ChainHub and can specify any mapping of brand to denom. ### Scaling Considerations If contracts import the whole Known Chains module, that will increase bundle size. I think this will be unlikely in production. We'll have on-chain lookup by then. ### Documentation Considerations not yet ### Testing Considerations existing coverage ### Upgrade Considerations None of this is deployed yet
- Loading branch information
Showing
31 changed files
with
358 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import type { RetryOptions } from '../tools/sleep.js'; | ||
|
||
/** | ||
* Wait 90 seconds to ensure staking rewards are available. | ||
* | ||
* While we expect staking rewards to be available after a | ||
* single block (~5-12 seconds for most chains), this provides additional | ||
* padding after observed failures in CI | ||
* (https://github.com/Agoric/agoric-sdk/issues/9934). | ||
* | ||
* A more robust approach might consider Distribution params and the | ||
* {@link FAUCET_POUR} constant to determine how many blocks it should take for | ||
* rewards to be available. | ||
*/ | ||
export const STAKING_REWARDS_TIMEOUT: RetryOptions = { | ||
retryIntervalMs: 5000, | ||
maxRetries: 18, | ||
}; | ||
|
||
/** | ||
* Wait 2 minutes to ensure: | ||
* - IBC Transfer from LocalAccount -> ICA Account Completes | ||
* - Delegation from ICA Account (initiated from SwingSet) Completes | ||
* - Delegations are visible via LCD (API Endpoint) | ||
* | ||
* Most of the time this finishes in <7 seconds, but other times it | ||
* appears to take much longer. | ||
*/ | ||
export const AUTO_STAKE_IT_DELEGATIONS_TIMEOUT: RetryOptions = { | ||
retryIntervalMs: 5000, | ||
maxRetries: 24, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.