shanemaglangit / agp-npm Goto Github PK
View Code? Open in Web Editor NEWGene parsing package for Axie Infinity.
Home Page: https://npmjs.com/package/agp-npm
License: GNU General Public License v3.0
Gene parsing package for Axie Infinity.
Home Page: https://npmjs.com/package/agp-npm
License: GNU General Public License v3.0
Hello, at the moment I am analyzing the Ronin blockchain and cannot figure out how the axie body parts and genes can be decoded.
The code I ran:
import Web3 from 'web3'
const web3 = new Web3('https://api.roninchain.com/rpc')
const axieContract = new web3.eth.Contract(ABI, axieContractAddress)
axieContract.methods.axie(4950464).call().then(console.log)
RPC Response:
Result {
'0': '4428344',
'1': '4505689',
'2': '1629870871',
'3': [
'14474011154664526034939695189344445127921630876185289334580322480553868674050',
'1766957471863971104923304451713139065230110618240613685279804305648419844',
x: '14474011154664526034939695189344445127921630876185289334580322480553868674050',
y: '1766957471863971104923304451713139065230110618240613685279804305648419844'
],
'4': '2',
'5': '0',
sireId: '4428344',
matronId: '4505689',
birthDate: '1629870871',
genes: [
'14474011154664526034939695189344445127921630876185289334580322480553868674050',
'1766957471863971104923304451713139065230110618240613685279804305648419844',
x: '14474011154664526034939695189344445127921630876185289334580322480553868674050',
y: '1766957471863971104923304451713139065230110618240613685279804305648419844'
],
breedCount: '2',
level: '0'
}
Can your library help me get genes for the genes.x
and genes.y
I have?
Do you have any idea how to convert this to the SHA hash your library needs?
Following how to use instructions and getting ReferenceError: HexType is not defined
Under the "Usage" section in README.md
I believe it should be
const { AxieGene } = require("agp-npm/dist/axie-gene");
as opposed to
const { AxieGene } = require("agp-npm/dist/src/axie-gene");
Can you add a method for obtaining Axie statistics to the library?
Interested in the fields hp, speed, morale, skill.
It seems that it is possible to summarize the information obtained from genes.
Documentation: https://axie.zone/stats
Thank you for your work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.