Git Product home page Git Product logo

Comments (15)

superboyiii avatar superboyiii commented on July 19, 2024 2

I don't understand it clearly... Do you mean supporting for invoking verify?

from neo.

roman-khimov avatar roman-khimov commented on July 19, 2024

I think it's perfectly supported already, maybe except for the neo-cli.

from neo.

lock9 avatar lock9 commented on July 19, 2024

I didn't understand it either. What is the relationship between them?

from neo.

cschuchardt88 avatar cschuchardt88 commented on July 19, 2024

You can pass parameters to a deployed contract's verify method. We current have support for this. But not in neo-cli.

from neo.

shargon avatar shargon commented on July 19, 2024

You can pass parameters to a deployed contract's verify method. We current have support for this. But not in neo-cli.

verify does not take parameters.

It could

ContractMethodDescriptor md = cs.Manifest.Abi.GetMethod("verify", -1);

from neo.

cschuchardt88 avatar cschuchardt88 commented on July 19, 2024

verify does not take parameters.

@Jim8y
It does already take parameters. NEP-6 states that. just need support in neo-cli.

from neo.

Jim8y avatar Jim8y commented on July 19, 2024

You can pass parameters to a deployed contract's verify method. We current have support for this. But not in neo-cli.

verify does not take parameters.

It could

ContractMethodDescriptor md = cs.Manifest.Abi.GetMethod("verify", -1);

Alright then. -1

from neo.

lingyido avatar lingyido commented on July 19, 2024

There are too many functions like NotValidBefore and Conflict as well as complicated Witness-xxx related things that NEO provided. Not all of them should be supported by every tool.
Even if we support them, I don't think the wallets and dAPPs as well as explorers would support them. Let the proficients utilize them by writing their own codes.

from neo.

cschuchardt88 avatar cschuchardt88 commented on July 19, 2024

We don't have an official SDK, so we need to support them. Also we need tests to make sure they don't break.

from neo.

lingyido avatar lingyido commented on July 19, 2024

We don't have an official SDK

Yes. We have for each popular language. I bet you know https://github.com/neo-project/neo-devpack-dotnet which is for C#.

from neo.

cschuchardt88 avatar cschuchardt88 commented on July 19, 2024

That's for building contracts ONLY. This has no control over node. What we are talking about is functionality for creating an transaction on-chain.

from neo.

lingyido avatar lingyido commented on July 19, 2024

In your context, NEO's nuget itself is the SDK. You purely need nothing but the NEO repo itself to create a transaction on-chain. If you are using C#, just import NEO and write like this.

Transaction tx = new()
{
    Version = 0,
    Nonce = 0,
    Script = sb.ToArray(),
    SystemFee = xxxxx,
    NetworkFee = yyyyyyy,
    ValidUntilBlock = zzzzzzzz,
    Signers = new[]
    {
        new Signer() { Account = UInt160.Parse("XXXXXXXXX"), Scopes = WitnessScope.XXXXXXXXX },
    },
    Attributes = Array.Empty<TransactionAttribute>(),
};
tx.Witnesses = new[]
{
    new Witness()
    {
        InvocationScript = new byte[] { xxxxxxxxx ).ToArray(),  // maybe it's a signature signed anywhere
        VerificationScript = YOUACCOUND.SCRIPT // if you need a contract's verify, leave VerificationScript empty here
    },
};

This issue will make all things bigger and hard to maintain. Because there are too many trivial functions here and there.

If you insist, please keep the original API stable. And after the CLI and RPC support them, please push N3-DAPI to support them, too. Otherwise, it will introduce no benefit to normal users.

from neo.

lingyido avatar lingyido commented on July 19, 2024

That's for building contracts ONLY. This has no control over node. What we are talking about is functionality for creating an transaction on-chain.

FYI, I know that neoburger build their own transactions that maintains the votes. How did them come this without a SDK? https://github.com/neoburger/TEE

from neo.

lingyido avatar lingyido commented on July 19, 2024

Every possible tx could be built and serialized locally and send to the RpcServer by this method.

[RpcMethod]
protected virtual JToken SendRawTransaction(JArray _params)
{
Transaction tx = Result.Ok_Or(() => Convert.FromBase64String(_params[0].AsString()).AsSerializable<Transaction>(), RpcError.InvalidParams.WithData($"Invalid Transaction Format: {_params[0]}"));
RelayResult reason = system.Blockchain.Ask<RelayResult>(tx).Result;
return GetRelayResult(reason.Result, tx.Hash);
}

from neo.

cschuchardt88 avatar cschuchardt88 commented on July 19, 2024

That's for building contracts ONLY. This has no control over node. What we are talking about is functionality for creating an transaction on-chain.

FYI, I know that neoburger build their own transactions that maintains the votes. How did them come this without a SDK? https://github.com/neoburger/TEE

RCPClient

from neo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.