Open aaroncox opened 1 year ago
Noticed on: https://explorer.telos.net/proposal/ibcaccounts
The msig page needs an ABI cache put in place, so it doesn't need to load the same ABI over and over again on the client.
Load it the first time, then use the cached version for each subsequent request by the client.
This line specifically:
https://github.com/telosnetwork/open-block-explorer/blob/4f53e087d9253e191f5daca46c288262015cee47/src/api/eosio_core.ts#L54
As an example, a cache can be setup by defining two maps in the script (outside of the scope of the function):
https://github.com/greymass/anchor-link/blob/a96c19ec007ac3571febefd90fdc5838983e5779/src/link.ts#L135-L136
and wrapping the get_abi call in a function that looks in the cache:
get_abi
https://github.com/greymass/anchor-link/blob/a96c19ec007ac3571febefd90fdc5838983e5779/src/link.ts#L149-L166
Noticed on: https://explorer.telos.net/proposal/ibcaccounts
The msig page needs an ABI cache put in place, so it doesn't need to load the same ABI over and over again on the client.
Load it the first time, then use the cached version for each subsequent request by the client.