How to use the @taquito/michelson-encoder.ParameterSchema function in @taquito/michelson-encoder

To help you get started, we’ve selected a few @taquito/michelson-encoder examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ecadlabs / taquito / packages / taquito / src / contract / contract.ts View on Github external
const method = function(...args: any[]) {
          const smartContractMethodSchema = new ParameterSchema(
            entrypoints[smartContractMethodName]
          );

          validateArgs(args, smartContractMethodSchema, smartContractMethodName);

          return new ContractMethod(
            provider,
            address,
            smartContractMethodSchema,
            smartContractMethodName,
            args
          );
        };
        this.methods[smartContractMethodName] = method;

@taquito/michelson-encoder

converts michelson data and types into convenient JS/TS objects

Apache-2.0
Latest version published 1 month ago

Package Health Score

66 / 100
Full package analysis