@@ -4,7 +4,7 @@ import * as _ from "lodash";
4
4
import * as moment from "moment" ;
5
5
import * as React from "react" ;
6
6
7
- import { ChangeShardStateDoc , ParcelDoc , PaymentDoc , SetRegularKeyDoc } from "codechain-es-temporary/lib/types" ;
7
+ import { AssetTransactionGroupDoc , ParcelDoc , PaymentDoc , SetRegularKeyDoc } from "codechain-es-temporary/lib/types" ;
8
8
import { Type } from "codechain-es-temporary/lib/utils" ;
9
9
import { Link } from "react-router-dom" ;
10
10
import { Col , Row } from "reactstrap" ;
@@ -95,10 +95,10 @@ class ParcelList extends React.Component<Props, State> {
95
95
< Row >
96
96
< Col md = "3" > Signer</ Col >
97
97
< Col md = "9" >
98
- { address && address === parcel . sender ? (
99
- parcel . sender
98
+ { address && address === parcel . signer ? (
99
+ parcel . signer
100
100
) : (
101
- < Link to = { `/addr-platform/${ parcel . sender } ` } > { parcel . sender } </ Link >
101
+ < Link to = { `/addr-platform/${ parcel . signer } ` } > { parcel . signer } </ Link >
102
102
) }
103
103
</ Col >
104
104
</ Row >
@@ -147,10 +147,10 @@ class ParcelList extends React.Component<Props, State> {
147
147
< Row >
148
148
< Col md = "5" >
149
149
< div className = "sender-receiver-container" >
150
- { address && address === parcel . sender ? (
151
- parcel . sender
150
+ { address && address === parcel . signer ? (
151
+ parcel . signer
152
152
) : (
153
- < Link to = { `/addr-platform/${ parcel . sender } ` } > { parcel . sender } </ Link >
153
+ < Link to = { `/addr-platform/${ parcel . signer } ` } > { parcel . signer } </ Link >
154
154
) }
155
155
</ div >
156
156
</ Col >
@@ -177,22 +177,22 @@ class ParcelList extends React.Component<Props, State> {
177
177
</ Col >
178
178
</ Row >
179
179
] ;
180
- } else if ( Type . isChangeShardStateDoc ( parcel . action ) ) {
180
+ } else if ( Type . isAssetTransactionGroupDoc ( parcel . action ) ) {
181
181
return (
182
182
< Row >
183
183
< Col md = "3" > # of Txs</ Col >
184
184
< Col md = "9" >
185
- { ( parcel . action as ChangeShardStateDoc ) . transactions . length . toLocaleString ( ) }
185
+ { ( parcel . action as AssetTransactionGroupDoc ) . transactions . length . toLocaleString ( ) }
186
186
< div className = "small-text" >
187
187
< FontAwesomeIcon icon = { faSquare } className = "asset-transfer-transaction-text-color" /> { " " }
188
188
Transfer:{ " " }
189
- { _ . filter ( ( parcel . action as ChangeShardStateDoc ) . transactions , tx =>
189
+ { _ . filter ( ( parcel . action as AssetTransactionGroupDoc ) . transactions , tx =>
190
190
Type . isAssetTransferTransactionDoc ( tx )
191
191
) . length . toLocaleString ( ) }
192
192
</ div >
193
193
< div className = "small-text" >
194
194
< FontAwesomeIcon icon = { faSquare } className = "asset-mint-transaction-text-color" /> Mint:{ " " }
195
- { _ . filter ( ( parcel . action as ChangeShardStateDoc ) . transactions , tx =>
195
+ { _ . filter ( ( parcel . action as AssetTransactionGroupDoc ) . transactions , tx =>
196
196
Type . isAssetMintTransactionDoc ( tx )
197
197
) . length . toLocaleString ( ) }
198
198
</ div >
0 commit comments