Commit from m3o/m3o action

This commit is contained in:
m3o-actions
2021-12-08 14:43:43 +00:00
parent ba04dfd77e
commit eca42fbc54
22 changed files with 990 additions and 927 deletions

View File

@@ -24,6 +24,14 @@ func (t *NftService) Assets(request *AssetsRequest) (*AssetsResponse, error) {
}
// Get a list of collections
func (t *NftService) Collections(request *CollectionsRequest) (*CollectionsResponse, error) {
rsp := &CollectionsResponse{}
return rsp, t.client.Call("nft", "Collections", request, rsp)
}
// Create your own NFT (coming soon)
func (t *NftService) Create(request *CreateRequest) (*CreateResponse, error) {
@@ -90,6 +98,15 @@ type Collection struct {
Slug string `json:"slug"`
}
type CollectionsRequest struct {
Limit int32 `json:"limit"`
Offset int32 `json:"offset"`
}
type CollectionsResponse struct {
Collections []Collection `json:"collections"`
}
type Contract struct {
// ethereum address
Address string `json:"address"`