Skip to content

Repository files navigation

Buttonwood Subgraph

Tranche

Example query

{
bonds(first:1) {
idownerscollateral {
idsymbolnamedecimalstotalSupply
}
maturityDateisMaturetotalDebttotalCollateraltranches {
idindextoken {
iddecimalstotalSupply
}
ratio
}
}
}

Output

{
"data": {
"bonds": [
{
"collateral": {
"decimals": "9",
"id": "0x3e0437898a5667a4769b1ca5a34aab1ae7e81377",
"name": "Ampleforth",
"symbol": "AMPL",
"totalSupply": "55914539459679239"
},
"id": "0x1a153458428f7b7b3d47ba08d2038395af790087",
"isMature": false,
"maturityDate": "1726990425",
"owners": [
"0xf7aba9b064a12330a00eafaa930e2fe8e76e65f0"
],
"totalCollateral": "20000000000",
"totalDebt": "20000000000",
"tranches": [
{
"id": "0x1d5804b532b3b4fdca8ee9f9f33cf56dc5bfb3d9",
"index": "1",
"ratio": "300",
"token": {
"decimals": "9",
"id": "0x1d5804b532b3b4fdca8ee9f9f33cf56dc5bfb3d9",
"totalSupply": "6000000000"
}
},
{
"id": "0x3602034c89075f057afdff5e57b161d2ca6829fa",
"index": "2",
"ratio": "500",
"token": {
"decimals": "9",
"id": "0x3602034c89075f057afdff5e57b161d2ca6829fa",
"totalSupply": "10000000000"
}
},
{
"id": "0x737efcf9e46350f2c525049c52499dd1534d513b",
"index": "0",
"ratio": "200",
"token": {
"decimals": "9",
"id": "0x737efcf9e46350f2c525049c52499dd1534d513b",
"totalSupply": "4000000000"
}
}
]
},
}}

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

8 watching

Forks

Releases

Packages

Used by

Contributors

Languages