fabric-samples/token-erc-721/chaincode-go/chaincode/erc721.go
Matias Salimbene 5b480ce597
refactor folder structure to match other token samples (#652)
* go port to token-erc-721

Signed-off-by: Matias Salimbene <matias.saimbene@gmail.com>
Signed-off-by: Matias Salimbene <matias.salimbene@gmail.com>

* refactor folder structure

Signed-off-by: Matias Salimbene <matias.salimbene@gmail.com>

* refactor folder structure

Signed-off-by: Matias Salimbene <matias.salimbene@gmail.com>

* refactor chaincode go folder structure

Signed-off-by: Matias Salimbene <matias.salimbene@gmail.com>

* refactor folder struncture

Signed-off-by: Matias Salimbene <matias.salimbene@gmail.com>

Co-authored-by: Matias Salimbene <matias.saimbene@gmail.com>
2022-02-21 13:10:18 +00:00

25 lines
509 B
Go

/*
* SPDX-License-Identifier: Apache-2.0
*/
package chaincode
// Define structs to be used by chaincode
type Nft struct {
TokenId string `json:"tokenId"`
Owner string `json:"owner"`
TokenURI string `json:"tokenURI"`
Approved string `json:"approved"`
}
type Approval struct {
Owner string `json:"owner"`
Operator string `json:"operator"`
Approved bool `json:"approved"`
}
type Transfer struct {
From string `json:"from"`
To string `json:"to"`
TokenId string `json:"tokenId"`
}