-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement thor claims with verifiable data
- Loading branch information
1 parent
43a89c6
commit e6dac5d
Showing
6 changed files
with
97 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package types | ||
|
||
type Coin struct { | ||
Asset string `json:"asset"` | ||
Amount string `json:"amount"` | ||
} | ||
|
||
type Tx struct { | ||
ID string `json:"id"` | ||
Chain string `json:"chain"` | ||
FromAddress string `json:"from_address"` | ||
ToAddress string `json:"to_address"` | ||
Coins []Coin `json:"coins"` | ||
Gas interface{} `json:"gas"` | ||
Memo string `json:"memo"` | ||
} | ||
|
||
type ObservedTx struct { | ||
Tx Tx `json:"tx"` | ||
} | ||
|
||
type KeysignMetric struct { | ||
TxID string `json:"tx_id"` | ||
NodeTSSTimes interface{} `json:"node_tss_times"` | ||
} | ||
|
||
type ThorChainTxData struct { | ||
ObservedTx ObservedTx `json:"observed_tx"` | ||
ConsensusHeight int `json:"consensus_height"` | ||
FinalisedHeight int `json:"finalised_height"` | ||
KeysignMetric KeysignMetric `json:"keysign_metric"` | ||
} | ||
|
||
type ThorTxData struct { | ||
Hash string `json:"hash"` | ||
TxData string `json:"tx_data"` | ||
} |