const terraErrors = [ null , 'internal' , 'tx parse error' , 'invalid sequence' , 'unauthorized' , 'insufficient funds' , 'unknown request' , 'invalid address' , 'invalid pubkey' , 'unknown address' , 'invalid coins' , 'out of gas' , 'memo too large' , 'insufficient fee' , 'maximum number of signatures exceeded' , 'no signatures supplied' , 'failed to marshal JSON bytes' , 'failed to unmarshal JSON bytes' , 'invalid request' , 'tx already in mempool' , 'mempool is full' , 'tx too large' , 'key not found' , 'invalid account password' , 'tx intended signer does not match the given signer' , 'invalid gas adjustment' , 'invalid height' , 'invalid version' , 'invalid chain-id' , 'invalid type' , 'tx timeout height' , 'unknown extension options' , 'incorrect account sequence' , 'failed packing protobuf message to Any' , 'failed unpacking protobuf message from Any' , 'internal logic error' , 'conflict' , 'feature not supported' , 'not found' , 'Internal IO error' , ] ; export const getTerraError = ( appendedErrorMsg , code ) : string => [ terraErrors [ code ] || '' , appendedErrorMsg ] . filter ( Boolean ) . join ( ': ' ) ;