mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
* 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>
25 lines
509 B
Go
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"`
|
|
}
|