Skip to content

Add Support for Custom Chains to All Builders #23

@lexzaiello

Description

@lexzaiello

All builders that invoke .get_chain should support overriding Neutron to some custom chain. This will involve removing all calls to .get_contract, and replacing them with .get_contract_on, which takes the chain to get the contract code ID from as a parameter.

Related: #11 . Migrating all queries, like get_contract to the TestContextQuery allows more gently deprecating .get_contract by allowing users to not specify the src_chain, defaulting to Neutron.

Recommendations

  • Deprecate .get_contract (move to TestContextQuery if possible)
  • Move .get_contract to a TestContextQuery
  • Make all builders that deal with a chain expose and respect .with_chain

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions