PHP WebShell
Текущая директория: /opt/BitGoJS/scripts/sdk-coin-generator/template/boilerplates/simple
Просмотр файла: .mainnet.ts
import {
BaseCoin,
BitGoBase,
KeyPair,
ParsedTransaction,
ParseTransactionOptions,
SignedTransaction,
SignTransactionOptions,
VerifyAddressOptions,
VerifyTransactionOptions,
} from '@bitgo/sdk-core';
export class <%= constructor %> extends BaseCoin {
protected constructor(bitgo: BitGoBase) {
super(bitgo);
}
static createInstance(bitgo: BitGoBase): BaseCoin {
return new <%= constructor %>(bitgo);
}
/**
* Factor between the coin's base unit and its smallest subdivison
*/
public getBaseFactor(): number {
return <%= baseFactor %>;
}
public getChain(): string {
return '<%= symbol %>';
}
public getFamily(): string {
return '<%= symbol %>';
}
public getFullName(): string {
return '<%= coin %>';
}
verifyTransaction(params: VerifyTransactionOptions): Promise<boolean> {
throw new Error('Method not implemented.');
}
isWalletAddress(params: VerifyAddressOptions): boolean {
throw new Error('Method not implemented.');
}
parseTransaction(params: ParseTransactionOptions): Promise<ParsedTransaction> {
throw new Error('Method not implemented.');
}
generateKeyPair(seed?: Buffer): KeyPair {
throw new Error('Method not implemented.');
}
isValidPub(pub: string): boolean {
throw new Error('Method not implemented.');
}
isValidAddress(address: string): boolean {
throw new Error('Method not implemented.');
}
signTransaction(params: SignTransactionOptions): Promise<SignedTransaction> {
throw new Error('Method not implemented.');
}
}
Выполнить команду
Для локальной разработки. Не используйте в интернете!