-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix schema generation for generic types (#505)
* Remove duplicates in generated code * Fix custom types generation for generic types * regenerate schema for modules * install grcov with stable rust * chore: Update rust-toolchain to nightly-2024-04-26
- Loading branch information
Showing
31 changed files
with
717 additions
and
47 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 +1 @@ | ||
nightly-2024-02-09 | ||
nightly-2024-04-26 |
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 |
---|---|---|
@@ -1 +1 @@ | ||
nightly-2024-02-09 | ||
nightly-2024-04-26 |
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
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
228 changes: 228 additions & 0 deletions
228
modules/resources/casper_contract_schemas/mock_cep78_operator_schema.json
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,228 @@ | ||
{ | ||
"casper_contract_schema_version": 1, | ||
"toolchain": "rustc 1.78.0-nightly (98aa3624b 2024-02-08)", | ||
"authors": [ | ||
"Jakub Płaskonka <kuba@odra.dev>", | ||
"Krzysztof Pobiarżyn <krzysztof@odra.dev>", | ||
"Maciej Zieliński <maciej@odra.dev>" | ||
], | ||
"repository": "https://github.com/odradev/odra", | ||
"homepage": null, | ||
"contract_name": "MockCep78Operator", | ||
"contract_version": "1.1.0", | ||
"types": [], | ||
"errors": [], | ||
"entry_points": [ | ||
{ | ||
"name": "set_address", | ||
"description": "", | ||
"is_mutable": true, | ||
"arguments": [ | ||
{ | ||
"name": "nft_contract", | ||
"description": null, | ||
"ty": "Key", | ||
"optional": false | ||
} | ||
], | ||
"return_ty": "Unit", | ||
"is_contract_context": true, | ||
"access": "public" | ||
}, | ||
{ | ||
"name": "mint", | ||
"description": "", | ||
"is_mutable": true, | ||
"arguments": [ | ||
{ | ||
"name": "token_metadata", | ||
"description": null, | ||
"ty": "String", | ||
"optional": false | ||
}, | ||
{ | ||
"name": "is_reverse_lookup_enabled", | ||
"description": null, | ||
"ty": "Bool", | ||
"optional": false | ||
} | ||
], | ||
"return_ty": "Unit", | ||
"is_contract_context": true, | ||
"access": "public" | ||
}, | ||
{ | ||
"name": "mint_with_hash", | ||
"description": "", | ||
"is_mutable": true, | ||
"arguments": [ | ||
{ | ||
"name": "token_metadata", | ||
"description": null, | ||
"ty": "String", | ||
"optional": false | ||
}, | ||
{ | ||
"name": "token_hash", | ||
"description": null, | ||
"ty": "String", | ||
"optional": false | ||
} | ||
], | ||
"return_ty": "Unit", | ||
"is_contract_context": true, | ||
"access": "public" | ||
}, | ||
{ | ||
"name": "burn", | ||
"description": "", | ||
"is_mutable": true, | ||
"arguments": [ | ||
{ | ||
"name": "token_id", | ||
"description": null, | ||
"ty": "U64", | ||
"optional": false | ||
} | ||
], | ||
"return_ty": "Unit", | ||
"is_contract_context": true, | ||
"access": "public" | ||
}, | ||
{ | ||
"name": "mint_for", | ||
"description": "", | ||
"is_mutable": true, | ||
"arguments": [ | ||
{ | ||
"name": "token_owner", | ||
"description": null, | ||
"ty": "Key", | ||
"optional": false | ||
}, | ||
{ | ||
"name": "token_metadata", | ||
"description": null, | ||
"ty": "String", | ||
"optional": false | ||
} | ||
], | ||
"return_ty": "Unit", | ||
"is_contract_context": true, | ||
"access": "public" | ||
}, | ||
{ | ||
"name": "transfer", | ||
"description": "", | ||
"is_mutable": true, | ||
"arguments": [ | ||
{ | ||
"name": "token_id", | ||
"description": null, | ||
"ty": "U64", | ||
"optional": false | ||
}, | ||
{ | ||
"name": "target", | ||
"description": null, | ||
"ty": "Key", | ||
"optional": false | ||
} | ||
], | ||
"return_ty": "Unit", | ||
"is_contract_context": true, | ||
"access": "public" | ||
}, | ||
{ | ||
"name": "transfer_from", | ||
"description": "", | ||
"is_mutable": true, | ||
"arguments": [ | ||
{ | ||
"name": "token_id", | ||
"description": null, | ||
"ty": "U64", | ||
"optional": false | ||
}, | ||
{ | ||
"name": "source", | ||
"description": null, | ||
"ty": "Key", | ||
"optional": false | ||
}, | ||
{ | ||
"name": "target", | ||
"description": null, | ||
"ty": "Key", | ||
"optional": false | ||
} | ||
], | ||
"return_ty": "Unit", | ||
"is_contract_context": true, | ||
"access": "public" | ||
}, | ||
{ | ||
"name": "approve", | ||
"description": "", | ||
"is_mutable": true, | ||
"arguments": [ | ||
{ | ||
"name": "spender", | ||
"description": null, | ||
"ty": "Key", | ||
"optional": false | ||
}, | ||
{ | ||
"name": "token_id", | ||
"description": null, | ||
"ty": "U64", | ||
"optional": false | ||
} | ||
], | ||
"return_ty": "Unit", | ||
"is_contract_context": true, | ||
"access": "public" | ||
}, | ||
{ | ||
"name": "revoke", | ||
"description": "", | ||
"is_mutable": true, | ||
"arguments": [ | ||
{ | ||
"name": "token_id", | ||
"description": null, | ||
"ty": "U64", | ||
"optional": false | ||
} | ||
], | ||
"return_ty": "Unit", | ||
"is_contract_context": true, | ||
"access": "public" | ||
} | ||
], | ||
"events": [], | ||
"call": { | ||
"wasm_file_name": "MockCep78Operator.wasm", | ||
"description": null, | ||
"arguments": [ | ||
{ | ||
"name": "odra_cfg_package_hash_key_name", | ||
"description": "The arg name for the package hash key name.", | ||
"ty": "String", | ||
"optional": false | ||
}, | ||
{ | ||
"name": "odra_cfg_allow_key_override", | ||
"description": "The arg name for the allow key override.", | ||
"ty": "Bool", | ||
"optional": false | ||
}, | ||
{ | ||
"name": "odra_cfg_is_upgradable", | ||
"description": "The arg name for the contract upgradeability setting.", | ||
"ty": "Bool", | ||
"optional": false | ||
} | ||
] | ||
} | ||
} |
Oops, something went wrong.