public class ABIProviderImpl extends java.lang.Object implements IABIProvider
| Constructor and Description |
|---|
ABIProviderImpl(@NotNull IRPCProvider rpcProvider,
@NotNull ISerializationProvider serializationProvider)
Initialize a new ABI Provider, passing the necessary RPC provider to fetch ABI's
if they are not found in the cache.
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull java.lang.String |
getAbi(@NotNull java.lang.String chainId,
@NotNull EOSIOName account)
Return an ABI given the chain id and account name desired.
|
@NotNull java.util.Map<java.lang.String,java.lang.String> |
getAbis(@NotNull java.lang.String chainId,
@NotNull java.util.List<EOSIOName> accounts)
Return a map of ABIs given the chain id and account names desired.
|
public ABIProviderImpl(@NotNull
@NotNull IRPCProvider rpcProvider,
@NotNull
@NotNull ISerializationProvider serializationProvider)
rpcProvider - RPC provider implementation to use to fetch ABIs if they are not
in the cache.serializationProvider - Serialization provider implementation to use to deserialize
the ABIs for return and storage in the cache.@NotNull
public @NotNull java.util.Map<java.lang.String,java.lang.String> getAbis(@NotNull
@NotNull java.lang.String chainId,
@NotNull
@NotNull java.util.List<EOSIOName> accounts)
throws GetAbiError
getAbis in interface IABIProviderchainId - the chain idaccounts - the accounts - duplicate names will be removedGetAbiError - If there is an error retrieving or deserializing any of the ABIs@NotNull
public @NotNull java.lang.String getAbi(@NotNull
@NotNull java.lang.String chainId,
@NotNull
@NotNull EOSIOName account)
throws GetAbiError
getAbi in interface IABIProviderchainId - the chain idaccount - the accountGetAbiError - If there is an error retrieving or deserializing the ABI.