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

Bundle script and entrypoints for ContractAbstraction instantiation #1049

Closed
roxaneletourneau opened this issue Sep 9, 2021 · 0 comments
Closed
Assignees
Labels
enhancement New feature or request performance
Milestone

Comments

@roxaneletourneau
Copy link
Collaborator

roxaneletourneau commented Sep 9, 2021

Is your feature request related to a problem and use case? Please describe.
A clear and concise description of what the problem/use case is.

When creating an instance of ContractAbstraction, the at method of the Contract and Wallet API, does calls to the RPC to fetch the script and the entrypoints of the contract. However, the script and entrypoints are statics values for a contract and Taquito should provide a way for the developer user of Taquito to specify them and thus avoid making calls to the RPC to fetch their values.

Relates to: #917

Describe the solution you'd like
A clear and concise description of what you'd want to happen.

Implement a new class ContractsLibrary which can be populated by users with contract addresses and their corresponding script and entrypoints.
The user will inject the contractLibrary instance to the TezosToolkit as an extension using its addExtension method.
If a contractLibrary is set, the at method of the Contract or Wallet API will fetch contract values from it otherwise, the values will be fetched from the RPC as usual.

@roxaneletourneau roxaneletourneau added enhancement New feature or request performance labels Sep 9, 2021
@jevonearth jevonearth changed the title Bundle script and entrypoints for ContractAbstration instanciation Bundle script and entrypoints for ContractAbstration instantiation Sep 9, 2021
@roxaneletourneau roxaneletourneau added this to the v10.2 milestone Sep 9, 2021
@roxaneletourneau roxaneletourneau self-assigned this Sep 15, 2021
@michaelkernaghan michaelkernaghan changed the title Bundle script and entrypoints for ContractAbstration instantiation Bundle script and entrypoints for ContractAbstraction instantiation Oct 4, 2021
@ac10n ac10n moved this to Done in Taquito Dev Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request performance
Projects
Status: Done
Development

No branches or pull requests

1 participant