pachacuy-sc
v1.0.3
Published
Interface that implements Smart Contract functions for Pachacuy game
Downloads
30
Readme
CHANGELOGS 0.0.106
interface HistoricWinners {
owner: string;
ticketUuid: string;
misayWasiUuid: string;
pachaUuid: string;
winner: string;
netPrize: string;
feePrize: string;
}
function getHistoricWinners(_arrayMisayWasiUuid):Promise<HistoricWinners[]>
0.0.104 Corrects PurchaseChakra event
0.0.102
interface IPurchasePP {
uuid: string;
account: string;
pachaOwner: string; // <-- new field
pachaUuid: string;
pachaPassUuid: string;
price: string;
pcuyReceived: string;
pcuyTaxed: string;
balanceOwner: string;
balanceConsumer: string;
}
pac.on(
"PurchasePachaPass",
(
uuid,
account,
pachaOwner, // <-- new field
pachaUuid,
pachaPassUuid,
price,
pcuyReceived,
pcuyTaxed,
balanceOwner,
balanceConsumer
) => console.log
);
0.0.99 PurchaseAssetController Contract
- event GuineaPigPurchaseFinish - new field balanceConsumer - no devuelto en método
- event PurchaseLand - new field balance balanceConsumer - devuelto en método
- event PurchasePachaPass - new fields balanceOwner and balanceConsumer - devuelto en método
- event PurchaseFoodChakra - new fields balanceOwner and balanceConsumer - devuelto en método
- event PurchaseTicket - new fields balanceOwner and balanceConsumer - devuelto en método
Chakra
- event PurchaseChakra - new field balanceConsumer
MisayWasi
- event PurchaseMisayWasi - new field balanceConsumer
QhatuWasi
- event PurchaseQhatuWasi - new field balanceConsumer
0.0.97
PurchaseAssetController.on("PurchaseLand". …)
Chakra.on("PurchaseChakra", …)
PurchaseAssetController.on("PurchaseFoodChakra". …)
MisayWasi.on("PurchaseTicketFromMisayWasi", …)
MisayWasi.on("PurchaseMisayWasi", …)
QhatuWasi.on("PurchaseQhatuWasi", …)
PurchaseAssetController.on("PurchasePachaPass". …)
Wiracocha.on("MintWiracocha", ...)
Tatacuy.on("MintTatacuy", ...)
HatunWasi.on("MintHatunWasi", ...)
getComponentsInPacha
Smart Contract Order
return [
nftpContract,
pacContract,
tataCuyContract,
wiracochaContract,
chakraContract,
hatunWasiContract,
misayWasiContract,
qhatuWasiContract,
];
// Purhchase Asset Controller
export interface PurchaseLand {
_account: string;
uuid: number;
landPrice: number;
_location: number;
poolRewardsAddress: string;
}
export interface PurchaseFoodChakra {
chakraUuid: number;
amountOfFood: number;
availableFood: number;
chakraOwner: string;
pcuyReceived: number;
pcuyTaxed: number;
tax: number;
}
export interface PurchasePachaPass {
account: string;
pachaUuid: number;
pachaPassUuid: number;
price: number;
pcuyReceived: number;
pcuyTaxed: number;
}
// chakra
export interface PurchaseChakra {
owner: string;
chakraUuid: number;
pachaUuid: number;
chakraPrice: number;
creationDate: number;
}
// misay wasi
export interface PurchaseTicketFromMisayWasi {
account: string;
misayWasiUuid: number;
pachaUuid: number;
ticketPrice: number;
amountOfTickets: number;
}
export interface PurchaseMisayWasi {
account: string;
misayWasiUuid: number;
pachaUuid: number;
creationDate: number;
misayWasiPrice: number;
}
// qhatu wasi
export interface PurchaseQhatuWasi {
owner: string;
qhatuWasiUuid: number;
pachaUuid: number;
qhatuWasiPrice: number;
creationDate: number;
}
// wiracocha
export interface MintWiracocha {
owner: string;
wiracochaUuid: number;
pachaUuid: number;
creationDate: number;
}
// tatacuy
export interface MintTatacuy {
owner: string;
tatacuyUuid: number;
pachaUuid: number;
creationDate: number;
}
// hatun wasi
export interface MintHatunWasi {
owner: string;
hatunWasiUuid: number;
pachaUuid: number;
creationDate: number;
}
0.0.83 Pacha
- PachaInfo has another property listPachaPassOwners
- setPachaToPublic
- setPachaPrivacyAndDistribution
- getListOfPachaPasses
- getPachaPassWithUuid
- isPachaAlreadyTaken
Purchase asset controller
- purchasePachaPass
Nft Producer
- isGuineaPigAllowedInPacha
- mintPachaPassAsOwner
Misay Wasi
- getMisayWasiWithUuid,
- getMiswayWasiWithTicketUuid
- getListOfActiveMWRaffles
- getListOfMisayWasisReadyToRaffle,
0.0.69
- getPachacuyBalance
- nuevo parametro para 'startQhatuWasiCampaign': _prizePerView
0.0.52
- Se cambio de "finishTatacuyCampaign(uint256 _pachaUuid)" a "finishTatacuyCampaign(uint256 _tatacuyUuid)"
- "getTatacuyInfoForAccount" solo necesita _tatacuyUuid
- "signTatacuyTxAndVerify" no necesita "_pachaOwner" ni "_pachaUuid" pero sí "_tatacuyUuid"
- "startTatacuyCampaign" no lleva _pachaUuid
- "finishTatacuyCampaign" solo necesita _tatacuyUuid
- "getWiracochaInfoForAccount" solo necesita "_wiracochaUuid"
- "signWiracochaTxAndReceivePcuy" no necesita "_pachaOwner" pero sí "_wiracochaUuid"
- cambio nombre de métodos "getWiracochaInfoForAccount" => "getWiracochaWithUuid"
- cambio nombre de métodos "getTatacuyInfoForAccount" => "getTatacuyWithUuid"
- una pacha puede tener multiples tatacuy
- cambio nombre de métodos "getAHatunWasi" => "getHatunWasiWithUuid"
0.0.51
- new methods
- purchaseTicketFromMisayWasi
- purchaseMisayWasi
- purchaseQhatuWasi
- getGuineaPigWithUuid
- getListOfGuineaPigs
- isPachaAlreadyTaken
- getListOfPachas
- getPachaWithUuid
- startMisayWasiRaffle
- startRaffleContest
- getListOfMisayWasisReadyToRaffle
- getListOfActiveMWRaffles
- getMisayWasiWithUuid
- getMiswayWasiWithTicketUuid
- startQhatuWasiCampaign
- getListOfQhatuWasi
- getQhatuWasiWithUuid
- purchaseFoodFromChakra has additional field _guineaPigUuid
0.0.4
race
was added toIDataGuineaPig
tokenBalance
was added toIWalletInfo
privacy
andlocation
was added toIPachaData