feat(MintToken): Add param `artworkCropRect` in the UI minting chain
Added new parameter `artworkCropRect` from initial UI mint signal to the store.
This commit is contained in:
parent
7bcf42a7ed
commit
6602ab15e2
|
@ -47,7 +47,8 @@ SettingsPageLayout {
|
|||
bool selfDestruct,
|
||||
int chainId,
|
||||
string accountName,
|
||||
string accountAddress)
|
||||
string accountAddress,
|
||||
var artworkCropRect)
|
||||
|
||||
signal signMintTransactionOpened(int chainId, string accountAddress)
|
||||
|
||||
|
@ -227,7 +228,8 @@ SettingsPageLayout {
|
|||
selfDestruct,
|
||||
chainId,
|
||||
accountName,
|
||||
d.accountAddress)
|
||||
d.accountAddress,
|
||||
artworkCropRect)
|
||||
|
||||
stackManager.clear(d.initialViewState, StackView.Immediate)
|
||||
}
|
||||
|
|
|
@ -299,7 +299,8 @@ StatusSectionLayout {
|
|||
selfDestruct,
|
||||
chainId,
|
||||
artworkSource,
|
||||
accountName)
|
||||
accountName,
|
||||
artworkCropRect)
|
||||
}
|
||||
onSignSelfDestructTransactionOpened: communityTokensStore.computeSelfDestructFee(chainId)
|
||||
onRemoteSelfDestructCollectibles: {
|
||||
|
|
|
@ -19,11 +19,13 @@ QtObject {
|
|||
|
||||
// Minting tokens:
|
||||
function deployCollectible(communityId, accountAddress, name, symbol, description, supply,
|
||||
infiniteSupply, transferable, selfDestruct, chainId, artworkSource, accountName)
|
||||
infiniteSupply, transferable, selfDestruct, chainId, artworkSource, accountName, artworkCropRect)
|
||||
{
|
||||
// TODO: Backend needs to create new role `accountName` and update this call accordingly
|
||||
// TODO: Backend needs to modify the call to expect an image JSON file with cropped artwork information:
|
||||
const jsonArtworkFile = Utils.getImageAndCropInfoJson(artworkSource, artworkCropRect)
|
||||
communityTokensModuleInst.deployCollectible(communityId, accountAddress, name, symbol, description, supply,
|
||||
infiniteSupply, transferable, selfDestruct, chainId, artworkSource)
|
||||
infiniteSupply, transferable, selfDestruct, chainId, artworkSource/*instead: jsonArtworkFile*/)
|
||||
}
|
||||
|
||||
readonly property Connections connections: Connections {
|
||||
|
|
Loading…
Reference in New Issue