-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from GoLedgerDev/develop
Dynamic Asset Type funcionality
- Loading branch information
Showing
23 changed files
with
2,941 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
package assets | ||
|
||
import "time" | ||
|
||
// assetTypeList is the list which should contain all defined asset types | ||
var assetTypeList = []AssetType{} | ||
|
||
// listUpdateTime is the last time the assetTypeList was updated | ||
var listUpdateTime time.Time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package assets | ||
|
||
// DynamicAssetType is the configuration for the Dynamic AssetTypes | ||
type DynamicAssetType struct { | ||
// Enabled defines whether the Dynamic AssetTypes feature is active | ||
Enabled bool `json:"enabled"` | ||
|
||
// AssetAdmins is an array that specifies which organizations can operate the Dynamic AssetTyper feature. | ||
// Accepts either basic strings for exact matches | ||
// eg. []string{'org1MSP', 'org2MSP'} | ||
// or regular expressions | ||
// eg. []string{`$org\dMSP`} and cc-tools will | ||
// check for a match with regular expression `org\dMSP` | ||
AssetAdmins []string `json:"assetAdmins"` | ||
} |
Oops, something went wrong.