From ff0bc8e47f6a09c83fb0bfea50ff28f15f3cd196 Mon Sep 17 00:00:00 2001 From: Domino Valdano <2644901+reductionista@users.noreply.github.com> Date: Fri, 22 Dec 2023 20:22:29 -0800 Subject: [PATCH] Update generated-wrapper-dependency-versions-do-not-edit.txt Also: remove extra unused files --- byte_types_gen.go | 300 --- ...rapper-dependency-versions-do-not-edit.txt | 1 + int_types_gen.go | 2205 ----------------- 3 files changed, 1 insertion(+), 2505 deletions(-) delete mode 100644 byte_types_gen.go delete mode 100644 int_types_gen.go diff --git a/byte_types_gen.go b/byte_types_gen.go deleted file mode 100644 index fb9fd9bdb5c..00000000000 --- a/byte_types_gen.go +++ /dev/null @@ -1,300 +0,0 @@ -package types - -import "reflect" - -type bytes1 [1]byte - -func init() { - typeMap["bytes1"] = &ABIEncodingType{ - Native: reflect.TypeOf([1]byte{}), - Checked: reflect.TypeOf(bytes1{}), - } -} - -type bytes2 [2]byte - -func init() { - typeMap["bytes2"] = &ABIEncodingType{ - Native: reflect.TypeOf([2]byte{}), - Checked: reflect.TypeOf(bytes2{}), - } -} - -type bytes3 [3]byte - -func init() { - typeMap["bytes3"] = &ABIEncodingType{ - Native: reflect.TypeOf([3]byte{}), - Checked: reflect.TypeOf(bytes3{}), - } -} - -type bytes4 [4]byte - -func init() { - typeMap["bytes4"] = &ABIEncodingType{ - Native: reflect.TypeOf([4]byte{}), - Checked: reflect.TypeOf(bytes4{}), - } -} - -type bytes5 [5]byte - -func init() { - typeMap["bytes5"] = &ABIEncodingType{ - Native: reflect.TypeOf([5]byte{}), - Checked: reflect.TypeOf(bytes5{}), - } -} - -type bytes6 [6]byte - -func init() { - typeMap["bytes6"] = &ABIEncodingType{ - Native: reflect.TypeOf([6]byte{}), - Checked: reflect.TypeOf(bytes6{}), - } -} - -type bytes7 [7]byte - -func init() { - typeMap["bytes7"] = &ABIEncodingType{ - Native: reflect.TypeOf([7]byte{}), - Checked: reflect.TypeOf(bytes7{}), - } -} - -type bytes8 [8]byte - -func init() { - typeMap["bytes8"] = &ABIEncodingType{ - Native: reflect.TypeOf([8]byte{}), - Checked: reflect.TypeOf(bytes8{}), - } -} - -type bytes9 [9]byte - -func init() { - typeMap["bytes9"] = &ABIEncodingType{ - Native: reflect.TypeOf([9]byte{}), - Checked: reflect.TypeOf(bytes9{}), - } -} - -type bytes10 [10]byte - -func init() { - typeMap["bytes10"] = &ABIEncodingType{ - Native: reflect.TypeOf([10]byte{}), - Checked: reflect.TypeOf(bytes10{}), - } -} - -type bytes11 [11]byte - -func init() { - typeMap["bytes11"] = &ABIEncodingType{ - Native: reflect.TypeOf([11]byte{}), - Checked: reflect.TypeOf(bytes11{}), - } -} - -type bytes12 [12]byte - -func init() { - typeMap["bytes12"] = &ABIEncodingType{ - Native: reflect.TypeOf([12]byte{}), - Checked: reflect.TypeOf(bytes12{}), - } -} - -type bytes13 [13]byte - -func init() { - typeMap["bytes13"] = &ABIEncodingType{ - Native: reflect.TypeOf([13]byte{}), - Checked: reflect.TypeOf(bytes13{}), - } -} - -type bytes14 [14]byte - -func init() { - typeMap["bytes14"] = &ABIEncodingType{ - Native: reflect.TypeOf([14]byte{}), - Checked: reflect.TypeOf(bytes14{}), - } -} - -type bytes15 [15]byte - -func init() { - typeMap["bytes15"] = &ABIEncodingType{ - Native: reflect.TypeOf([15]byte{}), - Checked: reflect.TypeOf(bytes15{}), - } -} - -type bytes16 [16]byte - -func init() { - typeMap["bytes16"] = &ABIEncodingType{ - Native: reflect.TypeOf([16]byte{}), - Checked: reflect.TypeOf(bytes16{}), - } -} - -type bytes17 [17]byte - -func init() { - typeMap["bytes17"] = &ABIEncodingType{ - Native: reflect.TypeOf([17]byte{}), - Checked: reflect.TypeOf(bytes17{}), - } -} - -type bytes18 [18]byte - -func init() { - typeMap["bytes18"] = &ABIEncodingType{ - Native: reflect.TypeOf([18]byte{}), - Checked: reflect.TypeOf(bytes18{}), - } -} - -type bytes19 [19]byte - -func init() { - typeMap["bytes19"] = &ABIEncodingType{ - Native: reflect.TypeOf([19]byte{}), - Checked: reflect.TypeOf(bytes19{}), - } -} - -type bytes20 [20]byte - -func init() { - typeMap["bytes20"] = &ABIEncodingType{ - Native: reflect.TypeOf([20]byte{}), - Checked: reflect.TypeOf(bytes20{}), - } -} - -type bytes21 [21]byte - -func init() { - typeMap["bytes21"] = &ABIEncodingType{ - Native: reflect.TypeOf([21]byte{}), - Checked: reflect.TypeOf(bytes21{}), - } -} - -type bytes22 [22]byte - -func init() { - typeMap["bytes22"] = &ABIEncodingType{ - Native: reflect.TypeOf([22]byte{}), - Checked: reflect.TypeOf(bytes22{}), - } -} - -type bytes23 [23]byte - -func init() { - typeMap["bytes23"] = &ABIEncodingType{ - Native: reflect.TypeOf([23]byte{}), - Checked: reflect.TypeOf(bytes23{}), - } -} - -type bytes24 [24]byte - -func init() { - typeMap["bytes24"] = &ABIEncodingType{ - Native: reflect.TypeOf([24]byte{}), - Checked: reflect.TypeOf(bytes24{}), - } -} - -type bytes25 [25]byte - -func init() { - typeMap["bytes25"] = &ABIEncodingType{ - Native: reflect.TypeOf([25]byte{}), - Checked: reflect.TypeOf(bytes25{}), - } -} - -type bytes26 [26]byte - -func init() { - typeMap["bytes26"] = &ABIEncodingType{ - Native: reflect.TypeOf([26]byte{}), - Checked: reflect.TypeOf(bytes26{}), - } -} - -type bytes27 [27]byte - -func init() { - typeMap["bytes27"] = &ABIEncodingType{ - Native: reflect.TypeOf([27]byte{}), - Checked: reflect.TypeOf(bytes27{}), - } -} - -type bytes28 [28]byte - -func init() { - typeMap["bytes28"] = &ABIEncodingType{ - Native: reflect.TypeOf([28]byte{}), - Checked: reflect.TypeOf(bytes28{}), - } -} - -type bytes29 [29]byte - -func init() { - typeMap["bytes29"] = &ABIEncodingType{ - Native: reflect.TypeOf([29]byte{}), - Checked: reflect.TypeOf(bytes29{}), - } -} - -type bytes30 [30]byte - -func init() { - typeMap["bytes30"] = &ABIEncodingType{ - Native: reflect.TypeOf([30]byte{}), - Checked: reflect.TypeOf(bytes30{}), - } -} - -type bytes31 [31]byte - -func init() { - typeMap["bytes31"] = &ABIEncodingType{ - Native: reflect.TypeOf([31]byte{}), - Checked: reflect.TypeOf(bytes31{}), - } -} - -type bytes32 [32]byte - -func init() { - typeMap["bytes32"] = &ABIEncodingType{ - Native: reflect.TypeOf([32]byte{}), - Checked: reflect.TypeOf(bytes32{}), - } -} - -type bytes0 [0]byte - -func init() { - typeMap["bytes0"] = &ABIEncodingType{ - Native: reflect.TypeOf([0]byte{}), - Checked: reflect.TypeOf(bytes0{}), - } -} diff --git a/core/gethwrappers/generation/generated-wrapper-dependency-versions-do-not-edit.txt b/core/gethwrappers/generation/generated-wrapper-dependency-versions-do-not-edit.txt index 8a61f086148..0b722020154 100644 --- a/core/gethwrappers/generation/generated-wrapper-dependency-versions-do-not-edit.txt +++ b/core/gethwrappers/generation/generated-wrapper-dependency-versions-do-not-edit.txt @@ -11,6 +11,7 @@ batch_blockhash_store: ../../contracts/solc/v0.8.6/BatchBlockhashStore/BatchBloc batch_vrf_coordinator_v2: ../../contracts/solc/v0.8.6/BatchVRFCoordinatorV2/BatchVRFCoordinatorV2.abi ../../contracts/solc/v0.8.6/BatchVRFCoordinatorV2/BatchVRFCoordinatorV2.bin d0a54963260d8c1f1bbd984b758285e6027cfb5a7e42701bcb562ab123219332 batch_vrf_coordinator_v2plus: ../../contracts/solc/v0.8.6/BatchVRFCoordinatorV2Plus/BatchVRFCoordinatorV2Plus.abi ../../contracts/solc/v0.8.6/BatchVRFCoordinatorV2Plus/BatchVRFCoordinatorV2Plus.bin 7bb76ae241cf1b37b41920830b836cb99f1ad33efd7435ca2398ff6cd2fe5d48 blockhash_store: ../../contracts/solc/v0.8.6/BlockhashStore/BlockhashStore.abi ../../contracts/solc/v0.8.6/BlockhashStore/BlockhashStore.bin 12b0662f1636a341c8863bdec7a20f2ddd97c3a4fd1a7ae353fe316609face4e +chain_reader_example: ../../contracts/solc/v0.8.19/ChainReaderTestContract/LatestValueHolder.abi ../../contracts/solc/v0.8.19/ChainReaderTestContract/LatestValueHolder.bin 0df0a592be25f8635aa07038d92f03043421fd0dc8855f4750c1c9673d2c613b chain_specific_util_helper: ../../contracts/solc/v0.8.6/ChainSpecificUtilHelper/ChainSpecificUtilHelper.abi ../../contracts/solc/v0.8.6/ChainSpecificUtilHelper/ChainSpecificUtilHelper.bin 5f10664e31abc768f4a37901cae7a3bef90146180f97303e5a1bde5a08d84595 consumer_wrapper: ../../contracts/solc/v0.7/Consumer/Consumer.abi ../../contracts/solc/v0.7/Consumer/Consumer.bin 894d1cbd920dccbd36d92918c1037c6ded34f66f417ccb18ec3f33c64ef83ec5 cron_upkeep_factory_wrapper: ../../contracts/solc/v0.8.6/CronUpkeepFactory/CronUpkeepFactory.abi - dacb0f8cdf54ae9d2781c5e720fc314b32ed5e58eddccff512c75d6067292cd7 diff --git a/int_types_gen.go b/int_types_gen.go deleted file mode 100644 index c469f6ef3fd..00000000000 --- a/int_types_gen.go +++ /dev/null @@ -1,2205 +0,0 @@ -package types - -import ( - "math/big" - "reflect" - - "github.com/fxamacker/cbor/v2" - - "github.com/smartcontractkit/chainlink-common/pkg/types" -) - -type SizedBigInt interface { - Verify() error - private() -} - -var sizedBigIntType = reflect.TypeOf((*SizedBigInt)(nil)).Elem() - -func SizedBigIntType() reflect.Type { - return sizedBigIntType -} - -type int24 big.Int - -func (i *int24) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *int24) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *int24) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 24 { - return types.ErrInvalidType - } - - return nil -} - -func (i *int24) private() {} - -func init() { - typeMap["int24"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*int24)(nil)), - } -} - -type uint24 big.Int - -func (i *uint24) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *uint24) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *uint24) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 24 { - return types.ErrInvalidType - } - - return nil -} - -func (i *uint24) private() {} - -func init() { - typeMap["uint24"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*uint24)(nil)), - } -} - -type int40 big.Int - -func (i *int40) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *int40) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *int40) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 40 { - return types.ErrInvalidType - } - - return nil -} - -func (i *int40) private() {} - -func init() { - typeMap["int40"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*int40)(nil)), - } -} - -type uint40 big.Int - -func (i *uint40) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *uint40) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *uint40) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 40 { - return types.ErrInvalidType - } - - return nil -} - -func (i *uint40) private() {} - -func init() { - typeMap["uint40"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*uint40)(nil)), - } -} - -type int48 big.Int - -func (i *int48) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *int48) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *int48) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 48 { - return types.ErrInvalidType - } - - return nil -} - -func (i *int48) private() {} - -func init() { - typeMap["int48"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*int48)(nil)), - } -} - -type uint48 big.Int - -func (i *uint48) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *uint48) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *uint48) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 48 { - return types.ErrInvalidType - } - - return nil -} - -func (i *uint48) private() {} - -func init() { - typeMap["uint48"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*uint48)(nil)), - } -} - -type int56 big.Int - -func (i *int56) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *int56) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *int56) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 56 { - return types.ErrInvalidType - } - - return nil -} - -func (i *int56) private() {} - -func init() { - typeMap["int56"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*int56)(nil)), - } -} - -type uint56 big.Int - -func (i *uint56) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *uint56) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *uint56) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 56 { - return types.ErrInvalidType - } - - return nil -} - -func (i *uint56) private() {} - -func init() { - typeMap["uint56"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*uint56)(nil)), - } -} - -type int72 big.Int - -func (i *int72) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *int72) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *int72) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 72 { - return types.ErrInvalidType - } - - return nil -} - -func (i *int72) private() {} - -func init() { - typeMap["int72"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*int72)(nil)), - } -} - -type uint72 big.Int - -func (i *uint72) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *uint72) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *uint72) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 72 { - return types.ErrInvalidType - } - - return nil -} - -func (i *uint72) private() {} - -func init() { - typeMap["uint72"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*uint72)(nil)), - } -} - -type int80 big.Int - -func (i *int80) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *int80) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *int80) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 80 { - return types.ErrInvalidType - } - - return nil -} - -func (i *int80) private() {} - -func init() { - typeMap["int80"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*int80)(nil)), - } -} - -type uint80 big.Int - -func (i *uint80) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *uint80) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *uint80) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 80 { - return types.ErrInvalidType - } - - return nil -} - -func (i *uint80) private() {} - -func init() { - typeMap["uint80"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*uint80)(nil)), - } -} - -type int88 big.Int - -func (i *int88) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *int88) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *int88) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 88 { - return types.ErrInvalidType - } - - return nil -} - -func (i *int88) private() {} - -func init() { - typeMap["int88"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*int88)(nil)), - } -} - -type uint88 big.Int - -func (i *uint88) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *uint88) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *uint88) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 88 { - return types.ErrInvalidType - } - - return nil -} - -func (i *uint88) private() {} - -func init() { - typeMap["uint88"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*uint88)(nil)), - } -} - -type int96 big.Int - -func (i *int96) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *int96) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *int96) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 96 { - return types.ErrInvalidType - } - - return nil -} - -func (i *int96) private() {} - -func init() { - typeMap["int96"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*int96)(nil)), - } -} - -type uint96 big.Int - -func (i *uint96) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *uint96) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *uint96) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 96 { - return types.ErrInvalidType - } - - return nil -} - -func (i *uint96) private() {} - -func init() { - typeMap["uint96"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*uint96)(nil)), - } -} - -type int104 big.Int - -func (i *int104) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *int104) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *int104) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 104 { - return types.ErrInvalidType - } - - return nil -} - -func (i *int104) private() {} - -func init() { - typeMap["int104"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*int104)(nil)), - } -} - -type uint104 big.Int - -func (i *uint104) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *uint104) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *uint104) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 104 { - return types.ErrInvalidType - } - - return nil -} - -func (i *uint104) private() {} - -func init() { - typeMap["uint104"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*uint104)(nil)), - } -} - -type int112 big.Int - -func (i *int112) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *int112) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *int112) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 112 { - return types.ErrInvalidType - } - - return nil -} - -func (i *int112) private() {} - -func init() { - typeMap["int112"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*int112)(nil)), - } -} - -type uint112 big.Int - -func (i *uint112) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *uint112) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *uint112) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 112 { - return types.ErrInvalidType - } - - return nil -} - -func (i *uint112) private() {} - -func init() { - typeMap["uint112"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*uint112)(nil)), - } -} - -type int120 big.Int - -func (i *int120) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *int120) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *int120) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 120 { - return types.ErrInvalidType - } - - return nil -} - -func (i *int120) private() {} - -func init() { - typeMap["int120"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*int120)(nil)), - } -} - -type uint120 big.Int - -func (i *uint120) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *uint120) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *uint120) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 120 { - return types.ErrInvalidType - } - - return nil -} - -func (i *uint120) private() {} - -func init() { - typeMap["uint120"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*uint120)(nil)), - } -} - -type int128 big.Int - -func (i *int128) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *int128) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *int128) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 128 { - return types.ErrInvalidType - } - - return nil -} - -func (i *int128) private() {} - -func init() { - typeMap["int128"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*int128)(nil)), - } -} - -type uint128 big.Int - -func (i *uint128) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *uint128) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *uint128) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 128 { - return types.ErrInvalidType - } - - return nil -} - -func (i *uint128) private() {} - -func init() { - typeMap["uint128"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*uint128)(nil)), - } -} - -type int136 big.Int - -func (i *int136) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *int136) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *int136) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 136 { - return types.ErrInvalidType - } - - return nil -} - -func (i *int136) private() {} - -func init() { - typeMap["int136"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*int136)(nil)), - } -} - -type uint136 big.Int - -func (i *uint136) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *uint136) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *uint136) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 136 { - return types.ErrInvalidType - } - - return nil -} - -func (i *uint136) private() {} - -func init() { - typeMap["uint136"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*uint136)(nil)), - } -} - -type int144 big.Int - -func (i *int144) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *int144) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *int144) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 144 { - return types.ErrInvalidType - } - - return nil -} - -func (i *int144) private() {} - -func init() { - typeMap["int144"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*int144)(nil)), - } -} - -type uint144 big.Int - -func (i *uint144) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *uint144) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *uint144) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 144 { - return types.ErrInvalidType - } - - return nil -} - -func (i *uint144) private() {} - -func init() { - typeMap["uint144"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*uint144)(nil)), - } -} - -type int152 big.Int - -func (i *int152) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *int152) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *int152) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 152 { - return types.ErrInvalidType - } - - return nil -} - -func (i *int152) private() {} - -func init() { - typeMap["int152"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*int152)(nil)), - } -} - -type uint152 big.Int - -func (i *uint152) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *uint152) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *uint152) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 152 { - return types.ErrInvalidType - } - - return nil -} - -func (i *uint152) private() {} - -func init() { - typeMap["uint152"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*uint152)(nil)), - } -} - -type int160 big.Int - -func (i *int160) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *int160) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *int160) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 160 { - return types.ErrInvalidType - } - - return nil -} - -func (i *int160) private() {} - -func init() { - typeMap["int160"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*int160)(nil)), - } -} - -type uint160 big.Int - -func (i *uint160) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *uint160) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *uint160) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 160 { - return types.ErrInvalidType - } - - return nil -} - -func (i *uint160) private() {} - -func init() { - typeMap["uint160"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*uint160)(nil)), - } -} - -type int168 big.Int - -func (i *int168) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *int168) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *int168) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 168 { - return types.ErrInvalidType - } - - return nil -} - -func (i *int168) private() {} - -func init() { - typeMap["int168"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*int168)(nil)), - } -} - -type uint168 big.Int - -func (i *uint168) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *uint168) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *uint168) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 168 { - return types.ErrInvalidType - } - - return nil -} - -func (i *uint168) private() {} - -func init() { - typeMap["uint168"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*uint168)(nil)), - } -} - -type int176 big.Int - -func (i *int176) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *int176) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *int176) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 176 { - return types.ErrInvalidType - } - - return nil -} - -func (i *int176) private() {} - -func init() { - typeMap["int176"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*int176)(nil)), - } -} - -type uint176 big.Int - -func (i *uint176) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *uint176) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *uint176) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 176 { - return types.ErrInvalidType - } - - return nil -} - -func (i *uint176) private() {} - -func init() { - typeMap["uint176"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*uint176)(nil)), - } -} - -type int184 big.Int - -func (i *int184) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *int184) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *int184) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 184 { - return types.ErrInvalidType - } - - return nil -} - -func (i *int184) private() {} - -func init() { - typeMap["int184"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*int184)(nil)), - } -} - -type uint184 big.Int - -func (i *uint184) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *uint184) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *uint184) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 184 { - return types.ErrInvalidType - } - - return nil -} - -func (i *uint184) private() {} - -func init() { - typeMap["uint184"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*uint184)(nil)), - } -} - -type int192 big.Int - -func (i *int192) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *int192) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *int192) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 192 { - return types.ErrInvalidType - } - - return nil -} - -func (i *int192) private() {} - -func init() { - typeMap["int192"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*int192)(nil)), - } -} - -type uint192 big.Int - -func (i *uint192) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *uint192) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *uint192) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 192 { - return types.ErrInvalidType - } - - return nil -} - -func (i *uint192) private() {} - -func init() { - typeMap["uint192"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*uint192)(nil)), - } -} - -type int200 big.Int - -func (i *int200) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *int200) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *int200) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 200 { - return types.ErrInvalidType - } - - return nil -} - -func (i *int200) private() {} - -func init() { - typeMap["int200"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*int200)(nil)), - } -} - -type uint200 big.Int - -func (i *uint200) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *uint200) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *uint200) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 200 { - return types.ErrInvalidType - } - - return nil -} - -func (i *uint200) private() {} - -func init() { - typeMap["uint200"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*uint200)(nil)), - } -} - -type int208 big.Int - -func (i *int208) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *int208) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *int208) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 208 { - return types.ErrInvalidType - } - - return nil -} - -func (i *int208) private() {} - -func init() { - typeMap["int208"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*int208)(nil)), - } -} - -type uint208 big.Int - -func (i *uint208) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *uint208) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *uint208) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 208 { - return types.ErrInvalidType - } - - return nil -} - -func (i *uint208) private() {} - -func init() { - typeMap["uint208"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*uint208)(nil)), - } -} - -type int216 big.Int - -func (i *int216) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *int216) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *int216) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 216 { - return types.ErrInvalidType - } - - return nil -} - -func (i *int216) private() {} - -func init() { - typeMap["int216"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*int216)(nil)), - } -} - -type uint216 big.Int - -func (i *uint216) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *uint216) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *uint216) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 216 { - return types.ErrInvalidType - } - - return nil -} - -func (i *uint216) private() {} - -func init() { - typeMap["uint216"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*uint216)(nil)), - } -} - -type int224 big.Int - -func (i *int224) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *int224) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *int224) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 224 { - return types.ErrInvalidType - } - - return nil -} - -func (i *int224) private() {} - -func init() { - typeMap["int224"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*int224)(nil)), - } -} - -type uint224 big.Int - -func (i *uint224) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *uint224) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *uint224) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 224 { - return types.ErrInvalidType - } - - return nil -} - -func (i *uint224) private() {} - -func init() { - typeMap["uint224"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*uint224)(nil)), - } -} - -type int232 big.Int - -func (i *int232) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *int232) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *int232) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 232 { - return types.ErrInvalidType - } - - return nil -} - -func (i *int232) private() {} - -func init() { - typeMap["int232"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*int232)(nil)), - } -} - -type uint232 big.Int - -func (i *uint232) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *uint232) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *uint232) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 232 { - return types.ErrInvalidType - } - - return nil -} - -func (i *uint232) private() {} - -func init() { - typeMap["uint232"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*uint232)(nil)), - } -} - -type int240 big.Int - -func (i *int240) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *int240) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *int240) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 240 { - return types.ErrInvalidType - } - - return nil -} - -func (i *int240) private() {} - -func init() { - typeMap["int240"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*int240)(nil)), - } -} - -type uint240 big.Int - -func (i *uint240) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *uint240) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *uint240) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 240 { - return types.ErrInvalidType - } - - return nil -} - -func (i *uint240) private() {} - -func init() { - typeMap["uint240"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*uint240)(nil)), - } -} - -type int248 big.Int - -func (i *int248) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *int248) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *int248) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 248 { - return types.ErrInvalidType - } - - return nil -} - -func (i *int248) private() {} - -func init() { - typeMap["int248"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*int248)(nil)), - } -} - -type uint248 big.Int - -func (i *uint248) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *uint248) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *uint248) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 248 { - return types.ErrInvalidType - } - - return nil -} - -func (i *uint248) private() {} - -func init() { - typeMap["uint248"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*uint248)(nil)), - } -} - -type int256 big.Int - -func (i *int256) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *int256) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *int256) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 256 { - return types.ErrInvalidType - } - - return nil -} - -func (i *int256) private() {} - -func init() { - typeMap["int256"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*int256)(nil)), - } -} - -type uint256 big.Int - -func (i *uint256) UnmarshalCBOR(input []byte) error { - bi := (*big.Int)(i) - if err := cbor.Unmarshal(input, bi); err != nil { - return err - } - - return i.Verify() -} - -func (i *uint256) UnmarshalText(input []byte) error { - bi := (*big.Int)(i) - if _, ok := bi.SetString(string(input), 10); !ok { - return types.ErrInvalidType - } - - return i.Verify() -} - -func (i *uint256) Verify() error { - bi := (*big.Int)(i) - - if bi.BitLen() > 256 { - return types.ErrInvalidType - } - - return nil -} - -func (i *uint256) private() {} - -func init() { - typeMap["uint256"] = &ABIEncodingType{ - Native: reflect.TypeOf((*big.Int)(nil)), - Checked: reflect.TypeOf((*uint256)(nil)), - } -}