Skip to content

Commit

Permalink
leave only used abi functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ayrat555 committed Aug 28, 2020
1 parent d0b38da commit ce0f8f4
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 389 deletions.
171 changes: 0 additions & 171 deletions priv/perf/apps/load_test/lib/child_chain/abi/abi_event_selector.ex
Original file line number Diff line number Diff line change
Expand Up @@ -19,45 +19,6 @@ defmodule LoadTest.ChildChain.Abi.AbiEventSelector do
Function names describe the type of the event Event Fetcher will retrieve.
"""

@spec exit_started() :: ABI.FunctionSelector.t()
def exit_started() do
%ABI.FunctionSelector{
function: "ExitStarted",
input_names: ["owner", "exitId"],
inputs_indexed: [true, false],
method_id: <<221, 111, 117, 92>>,
returns: [],
type: :event,
types: [:address, {:uint, 160}]
}
end

@spec in_flight_exit_started() :: ABI.FunctionSelector.t()
def in_flight_exit_started() do
%ABI.FunctionSelector{
function: "InFlightExitStarted",
input_names: ["initiator", "txHash"],
inputs_indexed: [true, true],
method_id: <<213, 241, 254, 157>>,
returns: [],
type: :event,
types: [:address, {:bytes, 32}]
}
end

@spec in_flight_exit_challenged() :: ABI.FunctionSelector.t()
def in_flight_exit_challenged() do
%ABI.FunctionSelector{
function: "InFlightExitChallenged",
input_names: ["challenger", "txHash", "challengeTxPosition"],
inputs_indexed: [true, true, false],
method_id: <<104, 116, 1, 150>>,
returns: [],
type: :event,
types: [:address, {:bytes, 32}, {:uint, 256}]
}
end

@spec deposit_created() :: ABI.FunctionSelector.t()
def deposit_created() do
%ABI.FunctionSelector{
Expand All @@ -70,136 +31,4 @@ defmodule LoadTest.ChildChain.Abi.AbiEventSelector do
types: [:address, {:uint, 256}, :address, {:uint, 256}]
}
end

@spec in_flight_exit_input_piggybacked() :: ABI.FunctionSelector.t()
def in_flight_exit_input_piggybacked() do
%ABI.FunctionSelector{
function: "InFlightExitInputPiggybacked",
input_names: ["exitTarget", "txHash", "inputIndex"],
inputs_indexed: [true, true, false],
method_id: <<169, 60, 14, 155>>,
returns: [],
type: :event,
types: [:address, {:bytes, 32}, {:uint, 16}]
}
end

@spec in_flight_exit_output_piggybacked() :: ABI.FunctionSelector.t()
def in_flight_exit_output_piggybacked() do
%ABI.FunctionSelector{
function: "InFlightExitOutputPiggybacked",
input_names: ["exitTarget", "txHash", "outputIndex"],
inputs_indexed: [true, true, false],
method_id: <<110, 205, 142, 121>>,
returns: [],
type: :event,
types: [:address, {:bytes, 32}, {:uint, 16}]
}
end

@spec block_submitted() :: ABI.FunctionSelector.t()
def block_submitted() do
%ABI.FunctionSelector{
function: "BlockSubmitted",
input_names: ["blockNumber"],
inputs_indexed: [false],
method_id: <<90, 151, 143, 71>>,
returns: [],
type: :event,
types: [uint: 256]
}
end

@spec exit_finalized() :: ABI.FunctionSelector.t()
def exit_finalized() do
%ABI.FunctionSelector{
function: "ExitFinalized",
input_names: ["exitId"],
inputs_indexed: [true],
method_id: <<10, 219, 41, 176>>,
returns: [],
type: :event,
types: [uint: 160]
}
end

@spec in_flight_exit_challenge_responded() :: ABI.FunctionSelector.t()
def in_flight_exit_challenge_responded() do
# <<99, 124, 196, 167>> == "c|ħ"
%ABI.FunctionSelector{
function: "InFlightExitChallengeResponded",
input_names: ["challenger", "txHash", "challengeTxPosition"],
inputs_indexed: [true, true, false],
# method_id: "c|ħ",
method_id: <<99, 124, 196, 167>>,
returns: [],
type: :event,
types: [:address, {:bytes, 32}, {:uint, 256}]
}
end

@spec exit_challenged() :: ABI.FunctionSelector.t()
def exit_challenged() do
%ABI.FunctionSelector{
function: "ExitChallenged",
input_names: ["utxoPos"],
inputs_indexed: [true],
method_id: <<93, 251, 165, 38>>,
returns: [],
type: :event,
types: [uint: 256]
}
end

@spec in_flight_exit_input_blocked() :: ABI.FunctionSelector.t()
def in_flight_exit_input_blocked() do
%ABI.FunctionSelector{
function: "InFlightExitInputBlocked",
input_names: ["challenger", "txHash", "inputIndex"],
inputs_indexed: [true, true, false],
method_id: <<71, 148, 4, 88>>,
returns: [],
type: :event,
types: [:address, {:bytes, 32}, {:uint, 16}]
}
end

@spec in_flight_exit_output_blocked() :: ABI.FunctionSelector.t()
def in_flight_exit_output_blocked() do
%ABI.FunctionSelector{
function: "InFlightExitOutputBlocked",
input_names: ["challenger", "txHash", "outputIndex"],
inputs_indexed: [true, true, false],
method_id: <<203, 232, 218, 210>>,
returns: [],
type: :event,
types: [:address, {:bytes, 32}, {:uint, 16}]
}
end

@spec in_flight_exit_input_withdrawn() :: ABI.FunctionSelector.t()
def in_flight_exit_input_withdrawn() do
%ABI.FunctionSelector{
function: "InFlightExitInputWithdrawn",
input_names: ["exitId", "inputIndex"],
inputs_indexed: [true, false],
method_id: <<68, 70, 236, 17>>,
returns: [],
type: :event,
types: [uint: 160, uint: 16]
}
end

@spec in_flight_exit_output_withdrawn() :: ABI.FunctionSelector.t()
def in_flight_exit_output_withdrawn() do
%ABI.FunctionSelector{
function: "InFlightExitOutputWithdrawn",
input_names: ["exitId", "outputIndex"],
inputs_indexed: [true, false],
method_id: <<162, 65, 198, 222>>,
returns: [],
type: :event,
types: [uint: 160, uint: 16]
}
end
end
Loading

0 comments on commit ce0f8f4

Please sign in to comment.