1.0.4 • Published 2 years ago

@streambird/solana-wallet-adapter v1.0.4

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

This is the adapter library to use for integration with the Streambird Solana wallet adapter.

Getting Started

The steps required to create this library is below:

npm install
npm run build

# or

yarn install
yarn build

Main Class

The class methods and properties can be seen below which utilizes the Solana wallet adapter wallet base classes.

class StreambirdWalletAdapter extends BaseMessageSignerWalletAdapter {
  name: WalletName;
  url: string;
  icon: string;

  constructor({ params }?: StreambirdWalletAdapterConfig);

  get publicKey(): PublicKey | null;
  get connecting(): boolean;
  get connected(): boolean;
  get readyState(): WalletReadyState;

  connect(): Promise<void>;
  disconnect(): Promise<void>;
  signTransaction(transaction: Transaction): Promise<Transaction>;
  signAllTransactions(transactions: Transaction[]): Promise<Transaction[]>;
  signMessage(message: Uint8Array): Promise<Uint8Array>;
}
1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago