Skip to content

Commit

Permalink
Merge pull request #11 from ava-labs/multisig
Browse files Browse the repository at this point in the history
add multisig type
  • Loading branch information
felipemadero authored May 22, 2024
2 parents c5b14af + 8474677 commit b86a667
Showing 1 changed file with 82 additions and 0 deletions.
82 changes: 82 additions & 0 deletions multisig/multisig.go
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
}

0 comments on commit b86a667

Please sign in to comment.