-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add support for v1beta4 in deploy tool * Fix createLease version * Update akashjs in deploy tool * Update indexer * Prepare api for v0.28.1 upgrade * Show resource offer on MsgBidCreate * Remove old comment
- Loading branch information
Showing
27 changed files
with
275 additions
and
65 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,2 @@ | ||
export { MsgCreateBid, MsgCloseBid } from "@akashnetwork/akashjs/build/protobuf/akash/market/v1beta4/bid"; | ||
export { MsgCreateLease, MsgWithdrawLease, MsgCloseLease } from "@akashnetwork/akashjs/build/protobuf/akash/market/v1beta4/lease"; |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
25 changes: 25 additions & 0 deletions
25
deploy-web/src/components/shared/TxMessages/akash/v1beta4/MsgCloseBid.tsx
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,25 @@ | ||
import { AddressLink } from "@src/components/shared/AddressLink"; | ||
import { TransactionMessage } from "@src/types"; | ||
import { UrlService } from "@src/utils/urlUtils"; | ||
import Link from "next/link"; | ||
import { LabelValue } from "../../../LabelValue"; | ||
|
||
type TxMessageProps = { | ||
message: TransactionMessage; | ||
}; | ||
|
||
export const MsgCloseBid: React.FunctionComponent<TxMessageProps> = ({ message }) => { | ||
return ( | ||
<> | ||
<LabelValue label="Provider" value={<Link href={UrlService.address(message?.data?.bidId?.provider)}>{message?.data?.bidId?.provider}</Link>} /> | ||
{/* TODO: Add link to provider page */} | ||
<LabelValue label="Owner" value={<AddressLink address={message?.data?.bidId?.owner} />} /> | ||
<LabelValue | ||
label="dseq" | ||
value={<Link href={UrlService.publicDeploymentDetails(message?.data?.bidId?.owner, message?.data?.bidId?.dseq)}>{message?.data?.bidId?.dseq}</Link>} | ||
/> | ||
<LabelValue label="gseq" value={message?.data?.bidId?.gseq} /> | ||
<LabelValue label="oseq" value={message?.data?.bidId?.oseq} /> | ||
</> | ||
); | ||
}; |
27 changes: 27 additions & 0 deletions
27
deploy-web/src/components/shared/TxMessages/akash/v1beta4/MsgCloseLease.tsx
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,27 @@ | ||
import { AddressLink } from "@src/components/shared/AddressLink"; | ||
import { TransactionMessage } from "@src/types"; | ||
import { UrlService } from "@src/utils/urlUtils"; | ||
import Link from "next/link"; | ||
import { LabelValue } from "../../../LabelValue"; | ||
|
||
type TxMessageProps = { | ||
message: TransactionMessage; | ||
}; | ||
|
||
export const MsgCloseLease: React.FunctionComponent<TxMessageProps> = ({ message }) => { | ||
return ( | ||
<> | ||
<LabelValue label="Owner" value={<AddressLink address={message?.data?.leaseId?.owner} />} /> | ||
<LabelValue | ||
label="dseq" | ||
value={ | ||
<Link href={UrlService.publicDeploymentDetails(message?.data?.leaseId?.owner, message?.data?.leaseId?.dseq)}>{message?.data?.leaseId?.dseq}</Link> | ||
} | ||
/> | ||
<LabelValue label="gseq" value={message?.data?.leaseId?.gseq} /> | ||
<LabelValue label="oseq" value={message?.data?.leaseId?.oseq} /> | ||
<LabelValue label="Provider" value={<Link href={UrlService.address(message?.data?.leaseId?.provider)}>{message?.data?.leaseId?.provider}</Link>} /> | ||
{/* TODO: Add link to provider page */} | ||
</> | ||
); | ||
}; |
32 changes: 32 additions & 0 deletions
32
deploy-web/src/components/shared/TxMessages/akash/v1beta4/MsgCreateBid.tsx
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,32 @@ | ||
import { AddressLink } from "@src/components/shared/AddressLink"; | ||
import { AKTAmount } from "@src/components/shared/AKTAmount"; | ||
import { TransactionMessage } from "@src/types"; | ||
import { coinsToAmount } from "@src/utils/mathHelpers"; | ||
import { UrlService } from "@src/utils/urlUtils"; | ||
import Link from "next/link"; | ||
import { LabelValue } from "../../../LabelValue"; | ||
import { DynamicReactJson } from "@src/components/shared/DynamicJsonView"; | ||
|
||
type TxMessageProps = { | ||
message: TransactionMessage; | ||
}; | ||
|
||
export const MsgCreateBid: React.FunctionComponent<TxMessageProps> = ({ message }) => { | ||
console.log(message); | ||
return ( | ||
<> | ||
<LabelValue label="Provider" value={<Link href={UrlService.address(message?.data?.provider)}>{message?.data?.provider}</Link>} /> | ||
{/* TODO: Add link to provider page */} | ||
<LabelValue label="Owner" value={<AddressLink address={message?.data?.order?.owner} />} /> | ||
<LabelValue | ||
label="dseq" | ||
value={<Link href={UrlService.publicDeploymentDetails(message?.data?.order?.owner, message?.data?.order?.dseq)}>{message?.data?.order?.dseq}</Link>} | ||
/> | ||
<LabelValue label="gseq" value={message?.data?.order?.gseq} /> | ||
<LabelValue label="oseq" value={message?.data?.order?.oseq} /> | ||
<LabelValue label="Price" value={<AKTAmount uakt={coinsToAmount(message?.data?.price, "uakt")} showAKTLabel showUSD />} /> | ||
<LabelValue label="Deposit" value={<AKTAmount uakt={coinsToAmount(message?.data?.deposit, "uakt")} showAKTLabel showUSD />} /> | ||
<LabelValue label="Resources Offer" value={<DynamicReactJson src={JSON.parse(JSON.stringify(message?.data?.resourcesOffer))} />} /> | ||
</> | ||
); | ||
}; |
25 changes: 25 additions & 0 deletions
25
deploy-web/src/components/shared/TxMessages/akash/v1beta4/MsgCreateLease.tsx
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,25 @@ | ||
import { AddressLink } from "@src/components/shared/AddressLink"; | ||
import { TransactionMessage } from "@src/types"; | ||
import { UrlService } from "@src/utils/urlUtils"; | ||
import Link from "next/link"; | ||
import { LabelValue } from "../../../LabelValue"; | ||
|
||
type TxMessageProps = { | ||
message: TransactionMessage; | ||
}; | ||
|
||
export const MsgCreateLease: React.FunctionComponent<TxMessageProps> = ({ message }) => { | ||
return ( | ||
<> | ||
<LabelValue label="Provider" value={<Link href={UrlService.address(message?.data?.bidId?.provider)}>{message?.data?.bidId?.provider}</Link>} /> | ||
{/* TODO: Add link to provider page */} | ||
<LabelValue label="Owner" value={<AddressLink address={message?.data?.bidId?.owner} />} /> | ||
<LabelValue | ||
label="dseq" | ||
value={<Link href={UrlService.publicDeploymentDetails(message?.data?.bidId?.owner, message?.data?.bidId?.dseq)}>{message?.data?.bidId?.dseq}</Link>} | ||
/> | ||
<LabelValue label="gseq" value={message?.data?.bidId?.gseq} /> | ||
<LabelValue label="oseq" value={message?.data?.bidId?.oseq} /> | ||
</> | ||
); | ||
}; |
24 changes: 24 additions & 0 deletions
24
deploy-web/src/components/shared/TxMessages/akash/v1beta4/MsgWithdrawLease.tsx
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,24 @@ | ||
import { AddressLink } from "@src/components/shared/AddressLink"; | ||
import { TransactionMessage } from "@src/types"; | ||
import { UrlService } from "@src/utils/urlUtils"; | ||
import Link from "next/link"; | ||
import { LabelValue } from "../../../LabelValue"; | ||
|
||
type TxMessageProps = { | ||
message: TransactionMessage; | ||
}; | ||
|
||
export const MsgWithdrawLease: React.FunctionComponent<TxMessageProps> = ({ message }) => { | ||
return ( | ||
<> | ||
<LabelValue label="Owner" value={<AddressLink address={message?.data?.bidId?.owner} />} /> | ||
<LabelValue label="Provider" value={<Link href={UrlService.address(message?.data?.bidId?.provider)}>{message?.data?.bidId?.provider}</Link>} /> | ||
<LabelValue | ||
label="dseq" | ||
value={<Link href={UrlService.publicDeploymentDetails(message?.data?.bidId?.owner, message?.data?.bidId?.dseq)}>{message?.data?.bidId?.dseq}</Link>} | ||
/> | ||
<LabelValue label="gseq" value={message?.data?.bidId?.gseq} /> | ||
<LabelValue label="oseq" value={message?.data?.bidId?.oseq} /> | ||
</> | ||
); | ||
}; |
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
Oops, something went wrong.