aboutsummaryrefslogtreecommitdiffstats
path: root/packages/order-utils/test/abi_samples.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/order-utils/test/abi_samples.ts')
-rw-r--r--packages/order-utils/test/abi_samples.ts87
1 files changed, 87 insertions, 0 deletions
diff --git a/packages/order-utils/test/abi_samples.ts b/packages/order-utils/test/abi_samples.ts
index fb5cfbeb7..cbbc5f8f3 100644
--- a/packages/order-utils/test/abi_samples.ts
+++ b/packages/order-utils/test/abi_samples.ts
@@ -34,6 +34,93 @@ export const stringAbi = {
type: 'function',
} as MethodAbi;
+export const multiDimensionalArraysStaticTypeAbi = {
+ constant: false,
+ inputs: [
+ {
+ name: 'a',
+ type: 'uint8[][][]',
+ },
+ {
+ name: 'b',
+ type: 'uint8[][][2]',
+ },
+ {
+ name: 'c',
+ type: 'uint8[][2][]',
+ },
+ {
+ name: 'd',
+ type: 'uint8[2][][]',
+ },
+ {
+ name: 'e',
+ type: 'uint8[][2][2]',
+ },
+ {
+ name: 'f',
+ type: 'uint8[2][2][]',
+ },
+ {
+ name: 'g',
+ type: 'uint8[2][][2]',
+ },
+ {
+ name: 'h',
+ type: 'uint8[2][2][2]',
+ },
+ ],
+ name: 'simpleFunction',
+ outputs: [],
+ payable: false,
+ stateMutability: 'nonpayable',
+ type: 'function',
+} as MethodAbi;
+
+export const multiDimensionalArraysDynamicTypeAbi = {
+ constant: false,
+ inputs: [
+ {
+ name: 'a',
+ type: 'string[][][2]',
+ },
+ {
+ name: 'a',
+ type: 'string[][1][]',
+ },
+ {
+ name: 'a',
+ type: 'string[1][1][2]',
+ },
+ {
+ name: 'a',
+ type: 'string[][][]',
+ },
+ {
+ name: 'a',
+ type: 'uint[][][]',
+ },
+ {
+ name: 'b',
+ type: 'uint8[][2][]',
+ },
+ {
+ name: 'c',
+ type: 'uint8[1][2][]',
+ },
+
+ {
+ name: 'c',
+ type: 'uint8[1][2][2]',
+ },
+ ],
+ name: 'simpleFunction',
+ outputs: [],
+ payable: false,
+ stateMutability: 'nonpayable',
+ type: 'function',
+} as MethodAbi;
+
export const dynamicTupleAbi = {
constant: false,
inputs: [