npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

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 to IDataGuineaPig
  • tokenBalance was added to IWalletInfo
  • privacy and location was added to IPachaData