-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from ava-labs/multisig
add multisig type
- Loading branch information
Showing
1 changed file
with
82 additions
and
0 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,82 @@ | ||
// Copyright (C) 2022, Ava Labs, Inc. All rights reserved. | ||
// See the file LICENSE for licensing terms. | ||
package multisig | ||
|
||
import ( | ||
"github.com/ava-labs/avalanche-tooling-sdk-go/network" | ||
"github.com/ava-labs/avalanchego/ids" | ||
"github.com/ava-labs/avalanchego/vms/platformvm/txs" | ||
"github.com/ava-labs/avalanchego/wallet/subnet/primary" | ||
) | ||
|
||
type PChainTxKind int | ||
|
||
const ( | ||
Invalid = iota | ||
CreateBlockchain | ||
TransferSubnetOwnership | ||
) | ||
|
||
type PChainMultisig struct { | ||
_ *txs.Tx | ||
} | ||
|
||
func New(_ *txs.Tx) *PChainMultisig { | ||
return nil | ||
} | ||
|
||
func (*PChainMultisig) ToBytes() ([]byte, error) { | ||
return nil, nil | ||
} | ||
|
||
func (*PChainMultisig) FromBytes(_ []byte) error { | ||
return nil | ||
} | ||
|
||
func (*PChainMultisig) ToFile(_ string) error { | ||
return nil | ||
} | ||
|
||
func (*PChainMultisig) FromFile(_ string) error { | ||
return nil | ||
} | ||
|
||
func (*PChainMultisig) Sign(_ *primary.Wallet) error { | ||
return nil | ||
} | ||
|
||
func (*PChainMultisig) Commit() error { | ||
return nil | ||
} | ||
|
||
func (*PChainMultisig) IsReadyToCommit() error { | ||
return nil | ||
} | ||
|
||
func (*PChainMultisig) GetRemainingSigners() ([]ids.ID, error) { | ||
return nil, nil | ||
} | ||
|
||
func (*PChainMultisig) GetAuthSigners() ([]ids.ID, error) { | ||
return nil, nil | ||
} | ||
|
||
func (*PChainMultisig) GetFeeSigners() ([]ids.ID, error) { | ||
return nil, nil | ||
} | ||
|
||
func (*PChainMultisig) GetKind() PChainTxKind { | ||
return Invalid | ||
} | ||
|
||
func (*PChainMultisig) GetNetwork() (network.Network, error) { | ||
return nil, nil | ||
} | ||
|
||
func (*PChainMultisig) GetSubnetID() (ids.ID, error) { | ||
return ids.Empty, nil | ||
} | ||
|
||
func (*PChainMultisig) GetSubnetOwners() ([]ids.ID, int, error) { | ||
return nil, 0, nil | ||
} |