Blockchain-Contract-Solidity-ABI

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

0.005
    - remove organization name from root
0.004
    [Bug Fixes]
    - fix POD
0.003
    [Bug Fixes]
    - set version to encoder/decoder modules to avoid upload conflict after structure change
0.002
    [Bug Fixes]
    - set cpanfile Test::Fatal correct version
    [Improvements]
    - added clean for encode/decode functions
    - project main structure moved to ABI instead of sub-modules

0.001 2022-10-23
    - initial release

META.json  view on Meta::CPAN

            "Carp" : "1.50",
            "Digest::Keccak" : "0.05",
            "Math::BigInt" : "1.999837",
            "Module::Load" : "0.36",
            "indirect" : "0.39",
            "perl" : "5.026000"
         }
      },
      "test" : {
         "requires" : {
            "Test::Fatal" : "0.016",
            "Test::More" : "0.98"
         }
      }
   },
   "release_status" : "stable",
   "resources" : {
      "repository" : {
         "type" : "git",
         "url" : "https://github.com/refeco/perl-ABI.git",
         "web" : "https://github.com/refeco/perl-ABI"

META.yml  view on Meta::CPAN

---
abstract: 'Contract ABI utilities'
author:
  - 'Reginaldo Costa <refeco@cpan.org>'
build_requires:
  ExtUtils::MakeMaker: '0'
  Test::Fatal: '0.016'
  Test::More: '0.98'
configure_requires:
  ExtUtils::MakeMaker: '0'
dynamic_config: 1
generated_by: 'ExtUtils::MakeMaker version 7.64, CPAN::Meta::Converter version 2.150010'
license: mit
meta-spec:
  url: http://module-build.sourceforge.net/META-spec-v1.4.html
  version: '1.4'
name: Blockchain-Contract-Solidity-ABI

Makefile.PL  view on Meta::CPAN

                url  => 'https://github.com/refeco/perl-ABI.git',
                web  => 'https://github.com/refeco/perl-ABI',
            },
        },
    },
    CONFIGURE_REQUIRES => {
        'ExtUtils::MakeMaker' => '0',
    },
    TEST_REQUIRES => {
        'Test::More'  => '0.98',
        'Test::Fatal' => '0.016',
    },
    PREREQ_PM => {
        'Digest::Keccak' => '0.05',
        'Math::BigInt'   => '1.999837',
        'Carp'           => '1.50',
        'Module::Load'   => '0.36',
        'indirect'       => '0.39',
    },
    dist => {
        COMPRESS => 'gzip -9f',

cpanfile  view on Meta::CPAN

requires 'Digest::Keccak', '=> '0.05';
requires 'Math::BigInt',   '=> 1.999837';
requires 'Carp', '=> 1.50';
requires 'indirect', '=> 0.39';
requires 'Module::Load', '=> 0.36';

on 'test' => sub {
    requires 'Test::More', '=> 0.98';
    requires 'Test::Fatal', '=> 0.016';
}

t/data-validation.t  view on Meta::CPAN

#!/usr/bin/env perl

use strict;
use warnings;

use Test::More;
use Test::Fatal;

use Blockchain::Contract::Solidity::ABI::Encoder;

my $encoder = Blockchain::Contract::Solidity::ABI::Encoder->new();

subtest "Array" => sub {
    like(
        exception { $encoder->append('uint[1]' => [1, 2, 3, 4])->encode },
        qr/Invalid array size, signature \d+, data: \d+/,
        "die correctly for invalid array size"



( run in 2.242 seconds using v1.01-cache-2.11-cpan-54e63673c56 )