Skip to content

Commit

Permalink
Add Nostra's markets
Browse files Browse the repository at this point in the history
  • Loading branch information
iamvukasin committed Oct 24, 2023
1 parent 8711550 commit 68e17b7
Show file tree
Hide file tree
Showing 8 changed files with 1,198 additions and 18 deletions.
140 changes: 122 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"node-fetch": "^2.6.1",
"pg-promise": "^10.11.1",
"simple-statistics": "^7.7.5",
"starknet": "^4.22.0",
"superagent": "^6.1.0",
"validator": "^13.9.0",
"web3": "^1.4.0"
Expand Down
34 changes: 34 additions & 0 deletions src/adaptors/nostra-mainnet/abis/AssetToken.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
const assetToken = [
{
name: 'underlyingAsset',
type: 'function',
inputs: [],
outputs: [
{
name: '_underlyingAsset',
type: 'felt',
},
],
stateMutability: 'view',
customType: 'address',
},
{
name: 'totalSupply',
type: 'function',
inputs: [],
outputs: [
{
name: 'totalSupply',
type: 'Uint256',
},
],
stateMutability: 'view',
},
];

const assetTokenAbi = {};
assetToken.forEach((i) => (assetTokenAbi[i.name] = i));

module.exports = {
assetTokenAbi,
};
Loading

0 comments on commit 68e17b7

Please sign in to comment.