Skip to content

Commit

Permalink
wildcard to any and add nep24 (#1041)
Browse files Browse the repository at this point in the history
* wildcard to any and add nep24

* Update src/Neo.SmartContract.Framework/Interfaces/INEP24.cs

---------

Co-authored-by: Shargon <[email protected]>
  • Loading branch information
Jim8y and shargon committed May 20, 2024
1 parent a2de77d commit 1cdd0f5
Show file tree
Hide file tree
Showing 30 changed files with 116 additions and 208 deletions.
2 changes: 1 addition & 1 deletion examples/Example.SmartContract.Event/Event.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace Event;
[ContractDescription("A sample contract that demonstrates how to use Events")]
[ContractVersion("0.0.1")]
[ContractSourceCode("https://github.com/neo-project/neo-devpack-dotnet/tree/master/examples/")]
[ContractPermission(Permission.WildCard, Method.WildCard)]
[ContractPermission(Permission.Any, Method.Any)]
public class SampleEvent : SmartContract
{
[DisplayName("new_event_name")]
Expand Down
2 changes: 1 addition & 1 deletion examples/Example.SmartContract.Exception/Exception.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace Exception
[ContractDescription("A sample contract to demonstrate how to handle exception")]
[ContractVersion("0.0.1")]
[ContractSourceCode("https://github.com/neo-project/neo-devpack-dotnet/tree/master/examples/")]
[ContractPermission(Permission.WildCard, Method.WildCard)]
[ContractPermission(Permission.Any, Method.Any)]
public class SampleException : SmartContract
{
[ByteArray("0a0b0c0d0E0F")]
Expand Down
2 changes: 1 addition & 1 deletion examples/Example.SmartContract.HelloWorld/HelloWorld.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace HelloWorld;
[ContractEmail("[email protected]")]
[ContractVersion("0.0.1")]
[ContractSourceCode("https://github.com/neo-project/neo-devpack-dotnet/tree/master/examples/")]
[ContractPermission(Permission.WildCard, Method.WildCard)]
[ContractPermission(Permission.Any, Method.Any)]
public class HelloWorldorld : SmartContract
{
/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion examples/Example.SmartContract.Inscription/Inscription.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace Inscription
[ContractDescription("A sample inscription contract.")]
[ContractVersion("0.0.1")]
[ContractSourceCode("https://github.com/neo-project/neo-devpack-dotnet/tree/master/examples/")]
[ContractPermission(Permission.WildCard, Method.WildCard)]
[ContractPermission(Permission.Any, Method.Any)]
public class SampleInscription : SmartContract
{
/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion examples/Example.SmartContract.NEP17/SampleNep17Token.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace NEP17
[ContractVersion("0.0.1")]
[ContractDescription("A sample NEP-17 token")]
[ContractSourceCode("https://github.com/neo-project/neo-devpack-dotnet/tree/master/examples/")]
[ContractPermission(Permission.WildCard, Method.WildCard)]
[ContractPermission(Permission.Any, Method.Any)]
[SupportedStandards(NepStandard.Nep17)]
public class SampleNep17Token : Nep17Token
{
Expand Down
2 changes: 1 addition & 1 deletion examples/Example.SmartContract.NFT/Loot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace NFT
[ContractAuthor("core-dev", "[email protected]")]
[ContractDescription("This is a text Example.SmartContract.NFT")]
[SupportedStandards(NepStandard.Nep11)]
[ContractPermission(Permission.WildCard, Method.OnNEP11Payment)]
[ContractPermission(Permission.Any, Method.OnNEP11Payment)]
[ContractSourceCode("https://github.com/neo-project/neo-devpack-dotnet/tree/master/examples/")]
public partial class Loot : Nep11Token<TokenState>
{
Expand Down
2 changes: 1 addition & 1 deletion examples/Example.SmartContract.Oracle/Oracle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace Oracle
[ContractDescription("A sample contract to demonstrate how to use Example.SmartContract.Oracle Service")]
[ContractVersion("0.0.1")]
[ContractSourceCode("https://github.com/neo-project/neo-devpack-dotnet/tree/master/examples/")]
[ContractPermission(Permission.WildCard, Method.WildCard)]
[ContractPermission(Permission.Any, Method.Any)]
public class SampleOracle : SmartContract, IOracle
{
[Safe]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

using Neo.SmartContract.Framework;
using Neo.SmartContract.Framework.Attributes;
using Neo.SmartContract.Framework.Interfaces;
using Neo.SmartContract.Framework.Native;
using Neo.SmartContract.Framework.Services;
using System.ComponentModel;
Expand All @@ -24,9 +25,9 @@ namespace NonDivisibleNEP11
[ContractVersion("0.0.1")]
[ContractDescription("A sample of NEP-11 Royalty Feature")]
[ContractSourceCode("https://github.com/neo-project/neo-devpack-dotnet/tree/master/examples/")]
[ContractPermission(Permission.WildCard, Method.WildCard)]
[ContractPermission(Permission.Any, Method.Any)]
[SupportedStandards(NepStandard.Nep11)]
public class SampleRoyaltyNEP11Token : Nep11Token<Nep11TokenState>
public class SampleRoyaltyNEP11Token : Nep11Token<Nep11TokenState>, INep24
{
#region Owner

Expand Down
2 changes: 1 addition & 1 deletion examples/Example.SmartContract.Storage/ExampleStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace ExampleStorage
[ContractDescription("A sample contract to demonstrate how to use storage")]
[ContractVersion("0.0.1")]
[ContractSourceCode("https://github.com/neo-project/neo-devpack-dotnet/tree/master/examples/")]
[ContractPermission(Permission.WildCard, Method.WildCard)]
[ContractPermission(Permission.Any, Method.Any)]
public class SampleStorage : SmartContract
{
#region Byte
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace Transfer;
[ContractDescription("A sample contract to demonstrate how to transfer NEO and GAS")]
[ContractVersion("1.0.0.0")]
[ContractSourceCode("https://github.com/neo-project/neo-devpack-dotnet/tree/master/examples/")]
[ContractPermission(Permission.WildCard, Method.WildCard)]
[ContractPermission(Permission.Any, Method.Any)]
public class TransferContract : SmartContract
{
private static readonly UInt160 Owner = "NUuJw4C4XJFzxAvSZnFTfsNoWZytmQKXQP";
Expand Down
2 changes: 1 addition & 1 deletion examples/Example.SmartContract.ZKP/ExampleZKP.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace ZKP
[ContractVersion("0.0.1")]
[ContractDescription("A sample contract to demonstrate how to use Example.SmartContract.ZKPil")]
[ContractSourceCode("https://github.com/neo-project/neo-devpack-dotnet/tree/master/examples/")]
[ContractPermission(Permission.WildCard, Method.WildCard)]
[ContractPermission(Permission.Any, Method.Any)]
public class ExampleZKP : SmartContract
{
public static readonly byte[] alphaPoint =
Expand Down
169 changes: 0 additions & 169 deletions examples/examples.sln

This file was deleted.

Loading

0 comments on commit 1cdd0f5

Please sign in to comment.