Documentation
¶
Index ¶
- Variables
- type CollectionMVP
- type CollectionTheGraphMVP
- type CollectionsTheGraphMVPResposne
- type FranchiseMVP
- type FranchiseTheGraphMVP
- type FranchisesTheGraphMVPResponse
- type GetCollectionsResponseMVP
- type GetFranchiseResponseMVP
- type GetFranchisesResponseMVP
- type GetIpAssetResponseMVP
- type GetIpAssetsResponseMVP
- type GetLicenseResponseMVP
- type GetLicensesResponseMVP
- type GetTransactionResponseMVP
- type GetTransactionsResponseMVP
- type IpAssetMVP
- type IpAssetTheGraphMVP
- type IpAssetType
- type IpAssetsTheGraphMVPResposne
- type LicenseMVP
- type LicenseTheGraphMVP
- type LicensesTheGraphMVPResponse
- type ResourceType
- type TransactionMVP
- type TransactionTheGraphMVP
- type TransactionsTheGraphMVPResposne
Constants ¶
This section is empty.
Variables ¶
View Source
var IpAssetTypes = struct { Story IpAssetType Character IpAssetType Art IpAssetType Group IpAssetType Location IpAssetType }{ Story: "Story", Character: "Character", Art: "Art", Group: "Group", Location: "Location", }
View Source
var ResourceTypes = struct { Franchise ResourceType IpAsset ResourceType License ResourceType Relationship ResourceType Collection ResourceType }{ Franchise: "Franchise", IpAsset: "IPAsset", License: "License", Relationship: "Relationship", Collection: "Collection", }
Functions ¶
This section is empty.
Types ¶
type CollectionMVP ¶
type CollectionTheGraphMVP ¶
type CollectionTheGraphMVP struct { /* id: Bytes! # address franchiseId: BigInt! # uint256 ipAssetId: BigInt! # uint256 totalCollected: BigInt! # uint256 */ ID string `json:"id"` FranchiseId string `json:"franchiseId"` IpAssetId string `json:"ipAssetId"` TotalCollected string `json:"totalCollected"` }
func (*CollectionTheGraphMVP) ToCollection ¶
func (f *CollectionTheGraphMVP) ToCollection() (*CollectionMVP, error)
type CollectionsTheGraphMVPResposne ¶
type CollectionsTheGraphMVPResposne struct {
Collections []*CollectionTheGraphMVP `json:"collections"`
}
type FranchiseMVP ¶
type FranchiseTheGraphMVP ¶
type FranchiseTheGraphMVP struct { ID string `json:"id"` FranchiseId string `json:"franchiseId"` Owner string `json:"owner"` IpAssetRegistry string `json:"ipAssetRegistry"` Name string `json:"name"` TokenURI string `json:"tokenURI"` TxHash string `json:"transactionHash"` }
func (*FranchiseTheGraphMVP) ToFranchise ¶
func (f *FranchiseTheGraphMVP) ToFranchise() *FranchiseMVP
type FranchisesTheGraphMVPResponse ¶
type FranchisesTheGraphMVPResponse struct {
Franchises []*FranchiseTheGraphMVP `json:"franchises"`
}
type GetCollectionsResponseMVP ¶
type GetCollectionsResponseMVP struct {
Data []*CollectionMVP `json:"data"`
}
type GetFranchiseResponseMVP ¶
type GetFranchiseResponseMVP struct {
Data *FranchiseMVP `json:"data"`
}
type GetFranchisesResponseMVP ¶
type GetFranchisesResponseMVP struct {
Data []*FranchiseMVP `json:"data"`
}
type GetIpAssetResponseMVP ¶
type GetIpAssetResponseMVP struct {
Data *IpAssetMVP `json:"data"`
}
type GetIpAssetsResponseMVP ¶
type GetIpAssetsResponseMVP struct {
Data []*IpAssetMVP `json:"data"`
}
type GetLicenseResponseMVP ¶
type GetLicenseResponseMVP struct {
Data *LicenseMVP `json:"data"`
}
type GetLicensesResponseMVP ¶
type GetLicensesResponseMVP struct {
Data []*LicenseMVP `json:"data"`
}
type GetTransactionResponseMVP ¶
type GetTransactionResponseMVP struct {
Data *TransactionMVP `json:"data"`
}
type GetTransactionsResponseMVP ¶
type GetTransactionsResponseMVP struct {
Data []*TransactionMVP `json:"data"`
}
type IpAssetMVP ¶
type IpAssetMVP struct { ID string `json:"ipAssetId,omitempty"` FranchiseId string `json:"franchiseId,omitempty"` Name string `json:"ipAssetName,omitempty"` Type IpAssetType `json:"ipAssetType,omitempty"` OwnerAddress string `json:"ownerAddress,omitempty"` TokenUri string `json:"tokenUri,omitempty"` Metadata string `json:"metadata,omitempty"` TxHash string `json:"txHash,omitempty"` }
type IpAssetTheGraphMVP ¶
type IpAssetTheGraphMVP struct { /* id: Bytes! franchiseId: BigInt! # uint256 owner: Bytes! # address ipAssetRegistry: Bytes! # address name: String! description: String! ipAssetId: BigInt! # uint256 ipAssetType: IpAssetType! mediaUrl: String! blockNumber: BigInt! blockTimestamp: BigInt! transactionHash: Bytes! */ ID string `json:"id"` FranchiseId string `json:"franchiseId"` IpAssetId string `json:"ipAssetId"` IpAssetType string `json:"ipAssetType"` Owner string `json:"owner"` Name string `json:"name"` MediaUrl string `json:"mediaUrl"` TxHash string `json:"transactionHash"` }
func (*IpAssetTheGraphMVP) ToIpAsset ¶
func (f *IpAssetTheGraphMVP) ToIpAsset() *IpAssetMVP
type IpAssetType ¶
type IpAssetType string
type IpAssetsTheGraphMVPResposne ¶
type IpAssetsTheGraphMVPResposne struct {
IpAssets []*IpAssetTheGraphMVP `json:"ipassets"`
}
type LicenseMVP ¶
type LicenseMVP struct { ID string `json:"licenseId,omitempty"` IpAssetId string `json:"ipAssetId,omitempty"` FranchiseId string `json:"franchiseId,omitempty"` ParentLicenseId string `json:"parentLicenseId,omitempty"` OwnerAddress string `json:"ownerAddress,omitempty"` Uri string `json:"uri,omitempty"` TxHash string `json:"txHash,omitempty"` }
type LicenseTheGraphMVP ¶
type LicenseTheGraphMVP struct { /* id: Bytes! licenseId: BigInt! # uint256 franchiseId: BigInt! # uint256 ipAssetId: BigInt! # uint256 parentLicenseId: BigInt! # uint256 licenseOwner: Bytes! # address uri: String! # string revoker: Bytes! # address blockNumber: BigInt! blockTimestamp: BigInt! transactionHash: Bytes! */ ID string `json:"id"` LicenseId string `json:"licenseId"` FranchiseId string `json:"franchiseId"` IpAssetId string `json:"ipAssetId"` OwnerAddress string `json:"licenseOwner"` ParentLicenseId string `json:"parentLicenseId"` Uri string `json:"uri"` TxHash string `json:"transactionHash"` }
func (*LicenseTheGraphMVP) ToLicense ¶
func (l *LicenseTheGraphMVP) ToLicense() *LicenseMVP
type LicensesTheGraphMVPResponse ¶
type LicensesTheGraphMVPResponse struct {
Licenses []*LicenseTheGraphMVP `json:"licenses"`
}
type ResourceType ¶
type ResourceType string
type TransactionMVP ¶
type TransactionMVP struct { ID string `json:"txId,omitempty"` TxHash string `json:"txHash,omitempty"` CreatedAt string `json:"createdAt,omitempty"` CreatorAddress string `json:"creatorAddress,omitempty"` ResourceType ResourceType `json:"type,omitempty"` ResourceId string `json:"resourceId,omitempty"` FranchiseId string `json:"franchiseId,omitempty"` }
type TransactionTheGraphMVP ¶
type TransactionTheGraphMVP struct { /* id: Bytes! owner: Bytes! # address franchiseId: BigInt! # uint256 resourceType: ResourceType! resourceId: BigInt! # uint256 blockNumber: BigInt! blockTimestamp: BigInt! transactionHash: Bytes! */ ID string `json:"id"` Owner string `json:"owner"` FranchiseId string `json:"franchiseId"` ResourceId string `json:"resourceId"` ResourceType string `json:"resourceType"` TxHash string `json:"transactionHash"` BlockTimestamp string `json:"blockTimestamp"` }
func (*TransactionTheGraphMVP) ToTransaction ¶
func (f *TransactionTheGraphMVP) ToTransaction() (*TransactionMVP, error)
type TransactionsTheGraphMVPResposne ¶
type TransactionsTheGraphMVPResposne struct {
Transactions []*TransactionTheGraphMVP `json:"transactions"`
}
Click to show internal directories.
Click to hide internal directories.