Skip to content

Commit

Permalink
chore: run build
Browse files Browse the repository at this point in the history
  • Loading branch information
yonadaaa committed May 19, 2023
1 parent 9050977 commit bb57396
Show file tree
Hide file tree
Showing 2 changed files with 127 additions and 88 deletions.
112 changes: 64 additions & 48 deletions examples/minimal/packages/contracts/types/ethers-contracts/IWorld.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,28 @@ export type StringStructStruct = { value: PromiseOrValue<string> };

export type StringStructStructOutput = [string] & { value: string };

export type MoreStructStruct = {
export type SelectionFragmentStruct = {
selectionType: PromiseOrValue<BigNumberish>;
fieldIndex: PromiseOrValue<BigNumberish>;
value: PromiseOrValue<BytesLike>;
};

export type MoreStructStructOutput = [number, number, string] & {
export type SelectionFragmentStructOutput = [number, number, string] & {
selectionType: number;
fieldIndex: number;
value: string;
};

export type RecordStruct = {
key: PromiseOrValue<BytesLike>[];
value: PromiseOrValue<BytesLike>[];
};

export type RecordStructOutput = [string[], string[]] & {
key: string[];
value: string[];
};

export interface IWorldInterface extends utils.Interface {
functions: {
"call(bytes16,bytes16,bytes)": FunctionFragment;
Expand All @@ -69,12 +79,12 @@ export interface IWorldInterface extends utils.Interface {
"installModule(address,bytes)": FunctionFragment;
"installRootModule(address,bytes)": FunctionFragment;
"isStore()": FunctionFragment;
"moreStruct(bytes32,uint8[],(uint8,uint8,bytes)[])": FunctionFragment;
"pickUp(uint32,uint32)": FunctionFragment;
"popFromField(bytes16,bytes16,bytes32[],uint8,uint256)": FunctionFragment;
"popFromField(bytes32,bytes32[],uint8,uint256)": FunctionFragment;
"pushToField(bytes32,bytes32[],uint8,bytes)": FunctionFragment;
"pushToField(bytes16,bytes16,bytes32[],uint8,bytes)": FunctionFragment;
"query(address,bytes32,uint8[],(uint8,uint8,bytes)[])": FunctionFragment;
"registerFunctionSelector(bytes16,bytes16,string,string)": FunctionFragment;
"registerHook(bytes16,bytes16,address)": FunctionFragment;
"registerNamespace(bytes16)": FunctionFragment;
Expand Down Expand Up @@ -121,12 +131,12 @@ export interface IWorldInterface extends utils.Interface {
| "installModule"
| "installRootModule"
| "isStore"
| "moreStruct"
| "pickUp"
| "popFromField(bytes16,bytes16,bytes32[],uint8,uint256)"
| "popFromField(bytes32,bytes32[],uint8,uint256)"
| "pushToField(bytes32,bytes32[],uint8,bytes)"
| "pushToField(bytes16,bytes16,bytes32[],uint8,bytes)"
| "query"
| "registerFunctionSelector"
| "registerHook"
| "registerNamespace"
Expand Down Expand Up @@ -263,14 +273,6 @@ export interface IWorldInterface extends utils.Interface {
values: [PromiseOrValue<string>, PromiseOrValue<BytesLike>]
): string;
encodeFunctionData(functionFragment: "isStore", values?: undefined): string;
encodeFunctionData(
functionFragment: "moreStruct",
values: [
PromiseOrValue<BytesLike>,
PromiseOrValue<BigNumberish>[],
MoreStructStruct[]
]
): string;
encodeFunctionData(
functionFragment: "pickUp",
values: [PromiseOrValue<BigNumberish>, PromiseOrValue<BigNumberish>]
Expand Down Expand Up @@ -313,6 +315,15 @@ export interface IWorldInterface extends utils.Interface {
PromiseOrValue<BytesLike>
]
): string;
encodeFunctionData(
functionFragment: "query",
values: [
PromiseOrValue<string>,
PromiseOrValue<BytesLike>,
PromiseOrValue<BigNumberish>[],
SelectionFragmentStruct[]
]
): string;
encodeFunctionData(
functionFragment: "registerFunctionSelector",
values: [
Expand Down Expand Up @@ -549,7 +560,6 @@ export interface IWorldInterface extends utils.Interface {
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "isStore", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "moreStruct", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "pickUp", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "popFromField(bytes16,bytes16,bytes32[],uint8,uint256)",
Expand All @@ -567,6 +577,7 @@ export interface IWorldInterface extends utils.Interface {
functionFragment: "pushToField(bytes16,bytes16,bytes32[],uint8,bytes)",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "query", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "registerFunctionSelector",
data: BytesLike
Expand Down Expand Up @@ -872,13 +883,6 @@ export interface IWorld extends BaseContract {

isStore(overrides?: CallOverrides): Promise<[void]>;

moreStruct(
tableId: PromiseOrValue<BytesLike>,
projectionFieldIndices: PromiseOrValue<BigNumberish>[],
arg2: MoreStructStruct[],
overrides?: Overrides & { from?: PromiseOrValue<string> }
): Promise<ContractTransaction>;

pickUp(
item: PromiseOrValue<BigNumberish>,
itemVariant: PromiseOrValue<BigNumberish>,
Expand Down Expand Up @@ -919,6 +923,14 @@ export interface IWorld extends BaseContract {
overrides?: Overrides & { from?: PromiseOrValue<string> }
): Promise<ContractTransaction>;

query(
store: PromiseOrValue<string>,
tableId: PromiseOrValue<BytesLike>,
projectionFieldIndices: PromiseOrValue<BigNumberish>[],
fragments: SelectionFragmentStruct[],
overrides?: CallOverrides
): Promise<[RecordStructOutput[]] & { records: RecordStructOutput[] }>;

registerFunctionSelector(
namespace: PromiseOrValue<BytesLike>,
name: PromiseOrValue<BytesLike>,
Expand Down Expand Up @@ -1201,13 +1213,6 @@ export interface IWorld extends BaseContract {

isStore(overrides?: CallOverrides): Promise<void>;

moreStruct(
tableId: PromiseOrValue<BytesLike>,
projectionFieldIndices: PromiseOrValue<BigNumberish>[],
arg2: MoreStructStruct[],
overrides?: Overrides & { from?: PromiseOrValue<string> }
): Promise<ContractTransaction>;

pickUp(
item: PromiseOrValue<BigNumberish>,
itemVariant: PromiseOrValue<BigNumberish>,
Expand Down Expand Up @@ -1248,6 +1253,14 @@ export interface IWorld extends BaseContract {
overrides?: Overrides & { from?: PromiseOrValue<string> }
): Promise<ContractTransaction>;

query(
store: PromiseOrValue<string>,
tableId: PromiseOrValue<BytesLike>,
projectionFieldIndices: PromiseOrValue<BigNumberish>[],
fragments: SelectionFragmentStruct[],
overrides?: CallOverrides
): Promise<RecordStructOutput[]>;

registerFunctionSelector(
namespace: PromiseOrValue<BytesLike>,
name: PromiseOrValue<BytesLike>,
Expand Down Expand Up @@ -1528,13 +1541,6 @@ export interface IWorld extends BaseContract {

isStore(overrides?: CallOverrides): Promise<void>;

moreStruct(
tableId: PromiseOrValue<BytesLike>,
projectionFieldIndices: PromiseOrValue<BigNumberish>[],
arg2: MoreStructStruct[],
overrides?: CallOverrides
): Promise<void>;

pickUp(
item: PromiseOrValue<BigNumberish>,
itemVariant: PromiseOrValue<BigNumberish>,
Expand Down Expand Up @@ -1575,6 +1581,14 @@ export interface IWorld extends BaseContract {
overrides?: CallOverrides
): Promise<void>;

query(
store: PromiseOrValue<string>,
tableId: PromiseOrValue<BytesLike>,
projectionFieldIndices: PromiseOrValue<BigNumberish>[],
fragments: SelectionFragmentStruct[],
overrides?: CallOverrides
): Promise<RecordStructOutput[]>;

registerFunctionSelector(
namespace: PromiseOrValue<BytesLike>,
name: PromiseOrValue<BytesLike>,
Expand Down Expand Up @@ -1902,13 +1916,6 @@ export interface IWorld extends BaseContract {

isStore(overrides?: CallOverrides): Promise<BigNumber>;

moreStruct(
tableId: PromiseOrValue<BytesLike>,
projectionFieldIndices: PromiseOrValue<BigNumberish>[],
arg2: MoreStructStruct[],
overrides?: Overrides & { from?: PromiseOrValue<string> }
): Promise<BigNumber>;

pickUp(
item: PromiseOrValue<BigNumberish>,
itemVariant: PromiseOrValue<BigNumberish>,
Expand Down Expand Up @@ -1949,6 +1956,14 @@ export interface IWorld extends BaseContract {
overrides?: Overrides & { from?: PromiseOrValue<string> }
): Promise<BigNumber>;

query(
store: PromiseOrValue<string>,
tableId: PromiseOrValue<BytesLike>,
projectionFieldIndices: PromiseOrValue<BigNumberish>[],
fragments: SelectionFragmentStruct[],
overrides?: CallOverrides
): Promise<BigNumber>;

registerFunctionSelector(
namespace: PromiseOrValue<BytesLike>,
name: PromiseOrValue<BytesLike>,
Expand Down Expand Up @@ -2232,13 +2247,6 @@ export interface IWorld extends BaseContract {

isStore(overrides?: CallOverrides): Promise<PopulatedTransaction>;

moreStruct(
tableId: PromiseOrValue<BytesLike>,
projectionFieldIndices: PromiseOrValue<BigNumberish>[],
arg2: MoreStructStruct[],
overrides?: Overrides & { from?: PromiseOrValue<string> }
): Promise<PopulatedTransaction>;

pickUp(
item: PromiseOrValue<BigNumberish>,
itemVariant: PromiseOrValue<BigNumberish>,
Expand Down Expand Up @@ -2279,6 +2287,14 @@ export interface IWorld extends BaseContract {
overrides?: Overrides & { from?: PromiseOrValue<string> }
): Promise<PopulatedTransaction>;

query(
store: PromiseOrValue<string>,
tableId: PromiseOrValue<BytesLike>,
projectionFieldIndices: PromiseOrValue<BigNumberish>[],
fragments: SelectionFragmentStruct[],
overrides?: CallOverrides
): Promise<PopulatedTransaction>;

registerFunctionSelector(
namespace: PromiseOrValue<BytesLike>,
name: PromiseOrValue<BytesLike>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -739,46 +739,6 @@ const _abi = [
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes32",
name: "tableId",
type: "bytes32",
},
{
internalType: "uint8[]",
name: "projectionFieldIndices",
type: "uint8[]",
},
{
components: [
{
internalType: "enum SelectionType",
name: "selectionType",
type: "uint8",
},
{
internalType: "uint8",
name: "fieldIndex",
type: "uint8",
},
{
internalType: "bytes",
name: "value",
type: "bytes",
},
],
internalType: "struct MoreStruct[]",
name: "",
type: "tuple[]",
},
],
name: "moreStruct",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
Expand Down Expand Up @@ -919,6 +879,69 @@ const _abi = [
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "contract IStore",
name: "store",
type: "address",
},
{
internalType: "bytes32",
name: "tableId",
type: "bytes32",
},
{
internalType: "uint8[]",
name: "projectionFieldIndices",
type: "uint8[]",
},
{
components: [
{
internalType: "enum SelectionType",
name: "selectionType",
type: "uint8",
},
{
internalType: "uint8",
name: "fieldIndex",
type: "uint8",
},
{
internalType: "bytes",
name: "value",
type: "bytes",
},
],
internalType: "struct SelectionFragment[]",
name: "fragments",
type: "tuple[]",
},
],
name: "query",
outputs: [
{
components: [
{
internalType: "bytes32[]",
name: "key",
type: "bytes32[]",
},
{
internalType: "bytes[]",
name: "value",
type: "bytes[]",
},
],
internalType: "struct Record[]",
name: "records",
type: "tuple[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
Expand Down

0 comments on commit bb57396

Please sign in to comment.