You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered:
jevonearth
changed the title
Bundle script and entrypoints for ContractAbstration instanciation
Bundle script and entrypoints for ContractAbstration instantiation
Sep 9, 2021
michaelkernaghan
changed the title
Bundle script and entrypoints for ContractAbstration instantiation
Bundle script and entrypoints for ContractAbstraction instantiation
Oct 4, 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
, theat
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, theat
method of the Contract or Wallet API will fetch contract values from it otherwise, the values will be fetched from the RPC as usual.The text was updated successfully, but these errors were encountered: