UNPKG

@rep3/rep3-sdk

Version:

`rep3-sdk` is the ts package for projects to integrate rep3-protocol and services in their projects. This documentation will provide various ways and code snippets for the same. To know more about the protocol head over to our [docs](https://docs.rep3.gg/

86 lines (80 loc) 1.28 kB
// export const daoWithTxHash = ` // query($txHash:String) { // daos(where:{txHash:$txHash}){ // id // txHash // } // `; export const daoWithTxHash = ` query($txHash: String) { daos(where:{txHash:$txHash}){ id txHash name symbol totalSupply } } `; export const membershipNFTsForClaimerOfDao = ` query($claimer: String,$contractAddress:String ) { membershipNFTs(where:{claimer:$claimer,contractAddress:$contractAddress}){ id metadataUri level category claimer contractAddress{ id txHash name symbol } tokenID } } `; export const membershipNFTsForClaimer = ` query($claimer: String) { membershipNFTs(where:{claimer:$claimer}){ id metadataUri level category claimer contractAddress{ id txHash name symbol } tokenID } } `; export const membershipNFTsWithHash = ` query($txHash: String) { membershipNFTs(where:{txHash:$txHash}){ id metadataUri level category claimer txHash contractAddress{ id txHash name symbol } tokenID } } `; export const getApproversOfDao = ` query($contractAddress: String) { daos(where:{id: $contractAddress}){ id approver } }`;