open-index/open-npm huggingface dataset:
npm package: @palomachain/log-finder-ruleset
Description: Paloma standard ruleset for well known log patterns
Latest version: 3.0.0

# @palomachain/log-finder-ruleset

Terra standard ruleset for well known log patterns

## Example codes

```typescript
import {
  createActionRuleSet,
  createAmountRuleSet
  createLogMatcherForActions,
  createLogMatcherForAmounts,
  getTxCanonicalMsgs,
  getTxAmounts
} from "@terra-money/log-finder-ruleset"

// https://lcd.terra.dev/txs/:txhash
const tx = {
  "height": ...,
  "txhash": ...,
  "raw_log": ...,
  "logs": ...,
  "gas_wanted": ...,
  "gas_used": ...,
  "tx": ...,
  "timestamp": ...,
}
const address = "terra1..."
const network = "mainnet"

// getTxCanonicalMsgs
const actionRuleset = createActionRuleSet(network)
const actionLogMatcher = createLogMatcherForActions(actionRuleset)
const actionMatchedMsg = getTxCanonicalMsgs(JSON.stringify(tx), actionLogMatcher)

console.log(actionMatchedMsg)


// getTxAmountInfo
const amountRuleset = createAmountRuleSet(network)
const amountLogMatcher = createLogMatcherForAmounts(amountRuleset)
const amountMatchedMsg = getTxAmounts(JSON.stringify(tx), amountLogMatcher, address)

console.log(amountMatchedMsg)

```
npm package: @palomachain/msg-reader
Description: Convert common paloma.js msg to a sentence
Latest version: 3.0.1

# @terra-money/msg-reader

Convert common terra.js msg to a sentence

## Installation

```
npm i @terra-money/msg-reader
```

## Example codes

```typescript
import { Coins, Coin, MsgSend } from "@palomachain/paloma.js"
import { readMsg } from "@terra-money/msg-reader"

const coins = new Coins([new Coin("uluna", 1000000), new Coin("ukrw", 1000000)])

const address = "terra1x46rqay4d3cssq8gxxvqz8xt6nwlz4td20k38v"
const recipient = "terra17lmam6zguazs5q5u6z5mmx76uj63gldnse2pdp"

const msg = new MsgSend(address, recipient, [coin])

console.log(readMsg(msg))
// Send 1 Luna to terra17lmam6zguazs5q5u6z5mmx76uj63gldnse2pdp
```