aboutsummaryrefslogtreecommitdiffstats
path: root/packages/utils/test/abi_samples.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/utils/test/abi_samples.ts')
-rw-r--r--packages/utils/test/abi_samples.ts73
1 files changed, 46 insertions, 27 deletions
diff --git a/packages/utils/test/abi_samples.ts b/packages/utils/test/abi_samples.ts
index aa38711cd..806ad1700 100644
--- a/packages/utils/test/abi_samples.ts
+++ b/packages/utils/test/abi_samples.ts
@@ -34,32 +34,32 @@ export const stringAbi = {
type: 'function',
} as MethodAbi;
-
export const GAbi = {
constant: false,
inputs: [
{
- components: [{
- name: 'a',
- type: 'uint256',
- },
- {
- name: 'b',
- type: 'string',
- },
- {
- name: 'e',
- type: 'bytes',
- },
- {
- name: 'f',
- type: 'address',
- }],
+ components: [
+ {
+ name: 'a',
+ type: 'uint256',
+ },
+ {
+ name: 'b',
+ type: 'string',
+ },
+ {
+ name: 'e',
+ type: 'bytes',
+ },
+ {
+ name: 'f',
+ type: 'address',
+ },
+ ],
name: 'f',
type: 'tuple',
-
- }
+ },
],
name: 'simpleFunction',
outputs: [],
@@ -137,6 +137,25 @@ export const optimizerAbi4 = {
type: 'function',
} as MethodAbi;
+export const optimizerAbi5 = {
+ constant: false,
+ inputs: [
+ {
+ name: 'array1',
+ type: 'uint8[]',
+ },
+ {
+ name: 'array2',
+ type: 'uint8[]',
+ },
+ ],
+ name: 'simpleFunction',
+ outputs: [],
+ payable: false,
+ stateMutability: 'nonpayable',
+ type: 'function',
+} as MethodAbi;
+
export const typesWithDefaultWidthsAbi = {
constant: false,
inputs: [
@@ -456,7 +475,7 @@ export const staticArrayAbi = {
{
name: 'someStaticArray',
type: 'uint8[3]',
- }
+ },
],
name: 'simpleFunction',
outputs: [],
@@ -471,7 +490,7 @@ export const staticArrayDynamicMembersAbi = {
{
name: 'someStaticArray',
type: 'string[3]',
- }
+ },
],
name: 'simpleFunction',
outputs: [],
@@ -486,7 +505,7 @@ export const dynamicArrayDynamicMembersAbi = {
{
name: 'someStaticArray',
type: 'string[]',
- }
+ },
],
name: 'simpleFunction',
outputs: [],
@@ -501,7 +520,7 @@ export const dynamicArrayStaticMembersAbi = {
{
name: 'someStaticArray',
type: 'uint8[]',
- }
+ },
],
name: 'simpleFunction',
outputs: [],
@@ -510,7 +529,7 @@ export const dynamicArrayStaticMembersAbi = {
type: 'function',
} as MethodAbi;
-export const crazyAbi1 = {
+export const largeFlatAbi = {
constant: false,
inputs: [
{
@@ -557,7 +576,7 @@ export const crazyAbi1 = {
type: 'function',
} as MethodAbi;
-export const crazyAbi = {
+export const largeNestedAbi = {
constant: false,
inputs: [
{
@@ -641,7 +660,7 @@ export const crazyAbi = {
type: 'address',
},
],
- }
+ },
],
name: 'simpleFunction',
outputs: [],
@@ -730,7 +749,7 @@ export const nestedTuples = {
type: 'address',
},
],
- }
+ },
],
name: 'simpleFunction',
outputs: [],