Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Framework Add] implement payable #990

Merged
merged 16 commits into from
Jun 5, 2024
Merged
25 changes: 12 additions & 13 deletions src/Neo.SmartContract.Framework/NEPStandard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ public enum NepStandard
Nep17_Z,
// This is the nick name of NEP-17-Z.
Nep17Payable,
// This NEP defines a global standard to get royalty payment information for Non-Fungible Tokens (NFTs)
// in order to enable support for royalty payments across all NFT marketplaces in the NEO Smart Economy.
// This NEP requires NEP-11.
// Defined at https://github.com/neo-project/proposals/blob/master/nep-24.mediawiki
Nep24
}

public static class NepStandardExtensions
Expand All @@ -39,19 +44,13 @@ public static string ToStandard(this NepStandard standard)
{
return standard switch
{
case NepStandard.Nep11:
return "NEP-11";
case NepStandard.Nep17:
return "NEP-17";
case NepStandard.Nep11Payable:
case NepStandard.Nep11_Y:
return "NEP-11-Y";
case NepStandard.Nep17Payable:
case NepStandard.Nep17_Z:
return "NEP-17-Z";
default:
return standard.ToString();
}
NepStandard.Nep11 => "NEP-11",
NepStandard.Nep17 => "NEP-17",
NepStandard.Nep11Payable or NepStandard.Nep11_Y => "NEP-11-Y",
shargon marked this conversation as resolved.
Show resolved Hide resolved
NepStandard.Nep17Payable or NepStandard.Nep17_Z => "NEP-17-Z",
NepStandard.Nep24 => "NEP-24",
_ => standard.ToString()
};
}
}
}
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.