forked from strangelove-ventures/interchaintest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add types to interact with different chains (#5)
- Loading branch information
Showing
9 changed files
with
266 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package avalanche | ||
|
||
import ( | ||
"context" | ||
|
||
"github.com/strangelove-ventures/interchaintest/v7/ibc" | ||
) | ||
|
||
type CChainClient struct { | ||
} | ||
|
||
func NewCChainClient(rpcHost string, pk string) (ibc.AvalancheSubnetClient, error) { | ||
return new(CChainClient), nil | ||
} | ||
|
||
func (cchain *CChainClient) SendFunds(ctx context.Context, keyName string, amount ibc.WalletAmount) error { | ||
panic("not implemented") | ||
} | ||
|
||
func (cchain *CChainClient) Height(ctx context.Context) (uint64, error) { | ||
panic("not implemented") | ||
} | ||
|
||
func (cchain *CChainClient) GetBalance(ctx context.Context, address string, denom string) (int64, error) { | ||
panic("not implemented") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package avalanche | ||
|
||
import ( | ||
"context" | ||
|
||
"github.com/strangelove-ventures/interchaintest/v7/ibc" | ||
) | ||
|
||
type PChainClient struct { | ||
} | ||
|
||
func NewPChainClient(rpcHost string, pk string) (ibc.AvalancheSubnetClient, error) { | ||
return new(PChainClient), nil | ||
} | ||
|
||
func (pchain *PChainClient) SendFunds(ctx context.Context, keyName string, amount ibc.WalletAmount) error { | ||
panic("not implemented") | ||
} | ||
|
||
func (pchain *PChainClient) Height(ctx context.Context) (uint64, error) { | ||
//platformvm.NewClient(fmt.Sprintf("http://127.0.0.1:%s", n.RPCPort())).GetHeight(ctx) | ||
panic("not implemented") | ||
} | ||
|
||
func (pchain *PChainClient) GetBalance(ctx context.Context, address string, denom string) (int64, error) { | ||
panic("not implemented") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package avalanche | ||
|
||
import ( | ||
"context" | ||
|
||
"github.com/strangelove-ventures/interchaintest/v7/ibc" | ||
) | ||
|
||
type XChainClient struct { | ||
} | ||
|
||
func NewXChainClient(rpcHost string, pk string) (ibc.AvalancheSubnetClient, error) { | ||
return new(XChainClient), nil | ||
} | ||
|
||
func (xchain *XChainClient) SendFunds(ctx context.Context, keyName string, amount ibc.WalletAmount) error { | ||
panic("not implemented") | ||
} | ||
|
||
func (xchain *XChainClient) Height(ctx context.Context) (uint64, error) { | ||
panic("not implemented") | ||
} | ||
|
||
func (xchain *XChainClient) GetBalance(ctx context.Context, address string, denom string) (int64, error) { | ||
panic("not implemented") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.