1.0.0-39 • Published 4 years ago

@candoizo/aavegotchi-node-lib v1.0.0-39

Weekly downloads
-
License
TBD
Repository
github
Last release
4 years ago

aavegotchi-node-lib 👻📦

A Node.js package for type-safe definitions from the official Aavegotchi GraphQL endpoints.

Clone this repo and test the demo with: cd demo/ && yarn && yarn test

Peek some example Javascript code in demo/index.ts.

Usage

note: replace instances of @aavegotchi/sdk with @candoizo/aavegotchi-node-lib if not on aavegotchi namespace.

To install in a Node.js project: yarn add @aavegotchi/sdk

Typescript

import { defaultSdk } from "candoizo/aavegotchi-node-lib"
const { lastTimePurchased, aavegotchiLeaderboard } = defaultSdk();

async function main() {
  let res = await lastTimePurchased({
    itemID: 145
  });
  console.log(res);
}

main();

Javascript

const aavegotchiNodeLib = require("@candoizo/aavegotchi-node-lib");
const { lastTimePurchased, aavegotchiLeaderboard } = aavegotchiNodeLib.defaultSdk();

const main = async () => {
  let res = await lastTimePurchased({
    itemID: 145
  });
  console.log(res);
}

main()

External

https://thegraph.com/explorer/subgraph/aavegotchi/aavegotchi-core-matic?version=current

1.0.0-39

4 years ago

1.0.0-20

4 years ago

1.0.0-21

4 years ago

1.0.0-22

4 years ago

1.0.0-23

4 years ago

1.0.0-24

4 years ago

1.0.0-27

4 years ago

1.0.0-28

4 years ago

1.0.0-29

4 years ago

1.0.0-30

4 years ago

1.0.0-31

4 years ago

1.0.0-32

4 years ago

1.0.0-33

4 years ago

1.0.0-34

4 years ago

1.0.0-35

4 years ago

1.0.0-36

4 years ago

1.0.0-37

4 years ago

1.0.0-38

4 years ago

1.0.0-19

4 years ago

1.0.0-9

4 years ago

1.0.0-8

4 years ago

1.0.0-10

4 years ago

1.0.0-11

4 years ago

1.0.0-12

4 years ago

1.0.0-13

4 years ago

1.0.0-14

4 years ago

1.0.0-15

4 years ago

1.0.0-16

4 years ago

1.0.0-17

4 years ago

1.0.0-18

4 years ago

1.0.0-7

4 years ago

1.0.0-6

4 years ago

1.0.0-5

4 years ago

1.0.0-4

4 years ago

1.0.0-2

4 years ago

1.0.0-1

4 years ago

1.0.0

4 years ago