1.0.0-39 • Published 3 years ago

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

Weekly downloads
-
License
TBD
Repository
github
Last release
3 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

3 years ago

1.0.0-20

3 years ago

1.0.0-21

3 years ago

1.0.0-22

3 years ago

1.0.0-23

3 years ago

1.0.0-24

3 years ago

1.0.0-27

3 years ago

1.0.0-28

3 years ago

1.0.0-29

3 years ago

1.0.0-30

3 years ago

1.0.0-31

3 years ago

1.0.0-32

3 years ago

1.0.0-33

3 years ago

1.0.0-34

3 years ago

1.0.0-35

3 years ago

1.0.0-36

3 years ago

1.0.0-37

3 years ago

1.0.0-38

3 years ago

1.0.0-19

3 years ago

1.0.0-9

3 years ago

1.0.0-8

3 years ago

1.0.0-10

3 years ago

1.0.0-11

3 years ago

1.0.0-12

3 years ago

1.0.0-13

3 years ago

1.0.0-14

3 years ago

1.0.0-15

3 years ago

1.0.0-16

3 years ago

1.0.0-17

3 years ago

1.0.0-18

3 years ago

1.0.0-7

3 years ago

1.0.0-6

3 years ago

1.0.0-5

3 years ago

1.0.0-4

3 years ago

1.0.0-2

3 years ago

1.0.0-1

3 years ago

1.0.0

3 years ago