Hic et Nunc Wrapper

circle-info

Hic et Nunc (HEN) is an NFT marketplace on Tezos

Queries

Import Plugins

#import { Query, Connection } into Tezos from "w3://ens/tezos.web3api.eth"

Response Types

Network

enum Network {
  custom
  mainnet
  ghostnet
}

Custom Connection

type CustomConnection {
  connection: Tezos_Connection!
  contractAddress: String!
}

Get Balance Response

Get Token Metadata Response

Get Token Count Response

Get Swaps Response

Query Functions

Get Balance Of

Read the number of NFTs of a specific token_id owned by an address

Get Token Metadata

Read the IPFS metadata hash for one or multiple NFTs.

Get Token Count Data

Read the number of NFTs minted. This information is required when minting the next NFT since token_ids are sequential.

Get Swaps Data

Read active sell offers.

Wrapper Example

The Harbinger wrapper can be found in the ./tezos/hicetnunc/wrapper folder.

To get it running, first remove these lines of code from the package.json file:

Now, link the wrapper to Tezos-plugin-js and tezos-test-env:

Install the node packages and build plugin-js

Running Tests

The e2e tests can be found in the src/tests/e2e folder. Run the e2e tests as follows:

Project Structure

Queries

Can be found in the ./src/query folder containing the index.ts file which is the AssemblyScript mutation logic and schema.graphql file which contains the graphql schemas for the functions in the query's index file.

Tests

To test the functions in query/index.ts, e2e tests are written in the __tests__/e2e folder.

Last updated