Skip to content

Commit

Permalink
Merge pull request #209 from pollum-io/feat/user-nfts
Browse files Browse the repository at this point in the history
feat/user-nfts
  • Loading branch information
lucasgabrielgsp authored Dec 8, 2023
2 parents 7608515 + aea694f commit d3fc4b5
Show file tree
Hide file tree
Showing 5 changed files with 933 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sysweb3-keyring/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4411,4 +4411,4 @@ yallist@^3.0.0, yallist@^3.1.1:
yallist@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72"
integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==
integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==
83 changes: 83 additions & 0 deletions packages/sysweb3-utils/src/abi/nft_balance_checker_abi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
[
{
"inputs": [
{
"internalType": "address[]",
"name": "users",
"type": "address[]"
},
{
"internalType": "address[]",
"name": "tokens",
"type": "address[]"
},
{
"internalType": "uint256[]",
"name": "ids",
"type": "uint256[]"
}
],
"name": "balances",
"outputs": [
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
}
],
"name": "isContract",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "users",
"type": "address[]"
},
{
"internalType": "address[]",
"name": "tokens",
"type": "address[]"
},
{
"internalType": "uint256[]",
"name": "ids",
"type": "uint256[]"
}
],
"name": "owners",
"outputs": [
{
"internalType": "address[]",
"name": "",
"type": "address[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"stateMutability": "payable",
"type": "receive"
}
]
2 changes: 2 additions & 0 deletions packages/sysweb3-utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ export * from './address';
export * from './constants';
export * from './getContract';
export * as sys from './syscoints';
export * from './nfts'

Loading

0 comments on commit d3fc4b5

Please sign in to comment.