Skip to content

Commit

Permalink
challenger as channel admin (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 authored Sep 25, 2024
1 parent 103c787 commit ec8a605
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 42 deletions.
2 changes: 1 addition & 1 deletion client/docs/statik/statik.go

Large diffs are not rendered by default.

24 changes: 8 additions & 16 deletions client/docs/swagger-ui/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37476,10 +37476,8 @@ paths:
description: bridge_config is the configuration of the bridge.
type: object
properties:
challengers:
type: array
items:
type: string
challenger:
type: string
description: The address of the challenger.
proposer:
type: string
Expand Down Expand Up @@ -67352,10 +67350,8 @@ definitions:
description: bridge_config is the configuration of the bridge.
type: object
properties:
challengers:
type: array
items:
type: string
challenger:
type: string
description: The address of the challenger.
proposer:
type: string
Expand Down Expand Up @@ -67483,10 +67479,8 @@ definitions:
description: bridge_config is the configuration of the bridge.
type: object
properties:
challengers:
type: array
items:
type: string
challenger:
type: string
description: The address of the challenger.
proposer:
type: string
Expand Down Expand Up @@ -68259,10 +68253,8 @@ definitions:
opinit.ophost.v1.BridgeConfig:
type: object
properties:
challengers:
type: array
items:
type: string
challenger:
type: string
description: The address of the challenger.
proposer:
type: string
Expand Down
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ require (
github.com/hashicorp/go-metrics v0.5.3
github.com/hashicorp/golang-lru/v2 v2.0.7
github.com/holiman/uint256 v1.3.1
github.com/initia-labs/OPinit v0.5.0
github.com/initia-labs/initia v0.5.0
github.com/initia-labs/OPinit v0.5.1
github.com/initia-labs/initia v0.5.1
github.com/initia-labs/kvindexer v0.1.8
github.com/initia-labs/kvindexer/submodules/block v0.1.0
github.com/initia-labs/kvindexer/submodules/evm-tx v0.1.2
Expand Down Expand Up @@ -175,7 +175,7 @@ require (
github.com/iancoleman/strcase v0.3.0 // indirect
github.com/improbable-eng/grpc-web v0.15.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/initia-labs/OPinit/api v0.5.0 // indirect
github.com/initia-labs/OPinit/api v0.5.1 // indirect
github.com/initia-labs/kvindexer/submodules/tx v0.1.0 // indirect
github.com/jackpal/go-nat-pmp v1.0.2 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
Expand Down Expand Up @@ -284,7 +284,7 @@ replace (

// initia custom
replace (
github.com/cometbft/cometbft => github.com/initia-labs/cometbft v0.0.0-20240925074544-6cf7d75a37c3
github.com/cometbft/cometbft => github.com/initia-labs/cometbft v0.0.0-20240925132752-ff8ff0126261
github.com/cosmos/ibc-go/v8 => github.com/initia-labs/ibc-go/v8 v8.0.0-20240802003717-19c0b4ad450d
github.com/ethereum/go-ethereum => github.com/initia-labs/evm v0.0.0-20240826053041-8320cc435dfd

Expand Down
16 changes: 8 additions & 8 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1431,20 +1431,20 @@ github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANyt
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo=
github.com/initia-labs/OPinit v0.5.0 h1:MC5oaI3MOGyTLOraQgcPgwj/U4ioG0UFvTG9Jlh8Smg=
github.com/initia-labs/OPinit v0.5.0/go.mod h1:qtZVes+/IIzlnRPPLLnlCkrEmXhJ9+dfTAPrfqVnPcg=
github.com/initia-labs/OPinit/api v0.5.0 h1:xfkXVzeeUysYdxarenNUNT1r2+ExuhWo2IQP/R/9CL4=
github.com/initia-labs/OPinit/api v0.5.0/go.mod h1:gHK6DEWb3/DqQD5LjKirUx9jilAh2UioXanoQdgqVfU=
github.com/initia-labs/cometbft v0.0.0-20240925074544-6cf7d75a37c3 h1:6dviE0V9+eW8NAYkkB2PCk+E7aSOmOLQ9rkqqD6kZLU=
github.com/initia-labs/cometbft v0.0.0-20240925074544-6cf7d75a37c3/go.mod h1:8EL9okJwgD07CUSCMtCZU261rvlIEoqEOwzdYl/+5EA=
github.com/initia-labs/OPinit v0.5.1 h1:TzpjkuSjbbaYF6hc/8E94E/m3zkGE3oOXRdrdARXA3Y=
github.com/initia-labs/OPinit v0.5.1/go.mod h1:lx1amLMszculwPu8ln+btJno38UV28fd2nP7XC88ZeE=
github.com/initia-labs/OPinit/api v0.5.1 h1:zwyJf7HtKJCKvLJ1R9PjVfJO1L+d/jKoeFyT7WTLHFI=
github.com/initia-labs/OPinit/api v0.5.1/go.mod h1:gHK6DEWb3/DqQD5LjKirUx9jilAh2UioXanoQdgqVfU=
github.com/initia-labs/cometbft v0.0.0-20240925132752-ff8ff0126261 h1:V62KOhe6Em3wAvJsDVP+3is98I3mk/29OKNVs4IxeFQ=
github.com/initia-labs/cometbft v0.0.0-20240925132752-ff8ff0126261/go.mod h1:KsQ7Wm/dw9N0l7Ypn3QKGwgUX5XinTlcHGIF0DSjsw4=
github.com/initia-labs/cometbft-client v0.0.0-20240924071428-ef115cefa07e h1:k+pg63SFozCAK4LZFSiZtof6z69Tlu0O/Zftj1aAwes=
github.com/initia-labs/cometbft-client v0.0.0-20240924071428-ef115cefa07e/go.mod h1:aVposiPW9FOUeAeJ7JjJRdE3g+L6i8YDxFn6Cv6+Az4=
github.com/initia-labs/evm v0.0.0-20240826053041-8320cc435dfd h1:WJGpV8iEm9Z/HcYITduwfHcBcembX32DeIepT843kQU=
github.com/initia-labs/evm v0.0.0-20240826053041-8320cc435dfd/go.mod h1:Mq0biU2jbdmKSZoqOj29017ygFrMnB5/Rifwp980W4o=
github.com/initia-labs/ibc-go/v8 v8.0.0-20240802003717-19c0b4ad450d h1:TLq8lB1PtQ0pjGf+bN8YgGVeLMuytZ26SBGMOs1seKY=
github.com/initia-labs/ibc-go/v8 v8.0.0-20240802003717-19c0b4ad450d/go.mod h1:zh6x1osR0hNvEcFrC/lhGD08sMfQmr9wHVvZ/mRWMCs=
github.com/initia-labs/initia v0.5.0 h1:M/djqoqurQzcYQx6nasBeLgcrIHNgsgY+OYXGzjfgYo=
github.com/initia-labs/initia v0.5.0/go.mod h1:uULWFMIbt+PQHrd+sVQvCq4HGS+J5u6N1Pej0WmDiXw=
github.com/initia-labs/initia v0.5.1 h1:QY926Uy7MQhFGQlp6n0gzNy1aIobrCZdiCCViOlRAMI=
github.com/initia-labs/initia v0.5.1/go.mod h1:GASs+khG6RbWIkeQV116wppMEnVi7NcfANjowj66Rjo=
github.com/initia-labs/kvindexer v0.1.8 h1:PZ7FPYZO2zFXBdnvVlwMFVv6O59fpgCObELxVYB0hBo=
github.com/initia-labs/kvindexer v0.1.8/go.mod h1:OV85HaQ9KVrg+zGPUlxT9RF9nAaM3Yq4/3MoHqGqhWk=
github.com/initia-labs/kvindexer/submodules/block v0.1.0 h1:y+EXnksd/I2F96mzIoQA64nZUZON2P+99YrSzeLCLoY=
Expand Down
10 changes: 5 additions & 5 deletions integration-tests/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ require (
github.com/cosmos/cosmos-sdk v0.50.10
github.com/cosmos/ibc-go/v8 v8.5.0
github.com/ethereum/go-ethereum v1.14.9
github.com/initia-labs/initia v0.5.0
github.com/initia-labs/minievm v0.5.0
github.com/initia-labs/initia v0.5.1
github.com/initia-labs/minievm v0.5.1
github.com/stretchr/testify v1.9.0
)

Expand Down Expand Up @@ -144,8 +144,8 @@ require (
github.com/iancoleman/strcase v0.3.0 // indirect
github.com/improbable-eng/grpc-web v0.15.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/initia-labs/OPinit v0.5.0 // indirect
github.com/initia-labs/OPinit/api v0.5.0 // indirect
github.com/initia-labs/OPinit v0.5.1 // indirect
github.com/initia-labs/OPinit/api v0.5.1 // indirect
github.com/initia-labs/kvindexer v0.1.8 // indirect
github.com/initia-labs/kvindexer/submodules/block v0.1.0 // indirect
github.com/initia-labs/kvindexer/submodules/evm-tx v0.1.2 // indirect
Expand Down Expand Up @@ -268,7 +268,7 @@ replace (

// initia custom
replace (
github.com/cometbft/cometbft => github.com/initia-labs/cometbft v0.0.0-20240925074544-6cf7d75a37c3
github.com/cometbft/cometbft => github.com/initia-labs/cometbft v0.0.0-20240925132752-ff8ff0126261
github.com/cosmos/ibc-go/v8 => github.com/initia-labs/ibc-go/v8 v8.0.0-20240802003717-19c0b4ad450d
github.com/ethereum/go-ethereum => github.com/initia-labs/evm v0.0.0-20240826053041-8320cc435dfd

Expand Down
16 changes: 8 additions & 8 deletions integration-tests/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1391,18 +1391,18 @@ github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANyt
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo=
github.com/initia-labs/OPinit v0.5.0 h1:MC5oaI3MOGyTLOraQgcPgwj/U4ioG0UFvTG9Jlh8Smg=
github.com/initia-labs/OPinit v0.5.0/go.mod h1:qtZVes+/IIzlnRPPLLnlCkrEmXhJ9+dfTAPrfqVnPcg=
github.com/initia-labs/OPinit/api v0.5.0 h1:xfkXVzeeUysYdxarenNUNT1r2+ExuhWo2IQP/R/9CL4=
github.com/initia-labs/OPinit/api v0.5.0/go.mod h1:gHK6DEWb3/DqQD5LjKirUx9jilAh2UioXanoQdgqVfU=
github.com/initia-labs/cometbft v0.0.0-20240925074544-6cf7d75a37c3 h1:6dviE0V9+eW8NAYkkB2PCk+E7aSOmOLQ9rkqqD6kZLU=
github.com/initia-labs/cometbft v0.0.0-20240925074544-6cf7d75a37c3/go.mod h1:8EL9okJwgD07CUSCMtCZU261rvlIEoqEOwzdYl/+5EA=
github.com/initia-labs/OPinit v0.5.1 h1:TzpjkuSjbbaYF6hc/8E94E/m3zkGE3oOXRdrdARXA3Y=
github.com/initia-labs/OPinit v0.5.1/go.mod h1:lx1amLMszculwPu8ln+btJno38UV28fd2nP7XC88ZeE=
github.com/initia-labs/OPinit/api v0.5.1 h1:zwyJf7HtKJCKvLJ1R9PjVfJO1L+d/jKoeFyT7WTLHFI=
github.com/initia-labs/OPinit/api v0.5.1/go.mod h1:gHK6DEWb3/DqQD5LjKirUx9jilAh2UioXanoQdgqVfU=
github.com/initia-labs/cometbft v0.0.0-20240925132752-ff8ff0126261 h1:V62KOhe6Em3wAvJsDVP+3is98I3mk/29OKNVs4IxeFQ=
github.com/initia-labs/cometbft v0.0.0-20240925132752-ff8ff0126261/go.mod h1:KsQ7Wm/dw9N0l7Ypn3QKGwgUX5XinTlcHGIF0DSjsw4=
github.com/initia-labs/evm v0.0.0-20240826053041-8320cc435dfd h1:WJGpV8iEm9Z/HcYITduwfHcBcembX32DeIepT843kQU=
github.com/initia-labs/evm v0.0.0-20240826053041-8320cc435dfd/go.mod h1:Mq0biU2jbdmKSZoqOj29017ygFrMnB5/Rifwp980W4o=
github.com/initia-labs/ibc-go/v8 v8.0.0-20240802003717-19c0b4ad450d h1:TLq8lB1PtQ0pjGf+bN8YgGVeLMuytZ26SBGMOs1seKY=
github.com/initia-labs/ibc-go/v8 v8.0.0-20240802003717-19c0b4ad450d/go.mod h1:zh6x1osR0hNvEcFrC/lhGD08sMfQmr9wHVvZ/mRWMCs=
github.com/initia-labs/initia v0.5.0 h1:M/djqoqurQzcYQx6nasBeLgcrIHNgsgY+OYXGzjfgYo=
github.com/initia-labs/initia v0.5.0/go.mod h1:uULWFMIbt+PQHrd+sVQvCq4HGS+J5u6N1Pej0WmDiXw=
github.com/initia-labs/initia v0.5.1 h1:QY926Uy7MQhFGQlp6n0gzNy1aIobrCZdiCCViOlRAMI=
github.com/initia-labs/initia v0.5.1/go.mod h1:GASs+khG6RbWIkeQV116wppMEnVi7NcfANjowj66Rjo=
github.com/initia-labs/kvindexer v0.1.8 h1:PZ7FPYZO2zFXBdnvVlwMFVv6O59fpgCObELxVYB0hBo=
github.com/initia-labs/kvindexer v0.1.8/go.mod h1:OV85HaQ9KVrg+zGPUlxT9RF9nAaM3Yq4/3MoHqGqhWk=
github.com/initia-labs/kvindexer/submodules/block v0.1.0 h1:y+EXnksd/I2F96mzIoQA64nZUZON2P+99YrSzeLCLoY=
Expand Down

0 comments on commit ec8a605

Please sign in to comment.