type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
MethodDeclaration
/** * Enable 'trace' event. */ enableTraceEvent(types?: ConsumerTraceEventType[]): Promise<void>;
aLexdcl/mediasoup
lib/Consumer.d.ts
TypeScript
FunctionDeclaration
export function buildUserPool(scope: cdk.Construct, userPoolProps?: cognito.UserPoolProps): cognito.UserPool { let cognitoUserPoolProps: cognito.UserPoolProps; if (userPoolProps) { cognitoUserPoolProps = overrideProps(DefaultUserPoolProps, userPoolProps); } else { cognitoUserPoolProps = DefaultUserPoolP...
askulkarni2/aws-solutions-constructs
source/patterns/@aws-solutions-constructs/core/lib/cognito-helper.ts
TypeScript
FunctionDeclaration
export function buildUserPoolClient(scope: cdk.Construct, userPool: cognito.UserPool, cognitoUserPoolClientProps?: cognito.UserPoolClientProps): cognito.UserPoolClient { let userPoolClientProps: cognito.UserPoolClientProps; if (cognitoUserPoolClientProps) { userPoolClientP...
askulkarni2/aws-solutions-constructs
source/patterns/@aws-solutions-constructs/core/lib/cognito-helper.ts
TypeScript
FunctionDeclaration
export function buildIdentityPool(scope: cdk.Construct, userpool: cognito.UserPool, userpoolclient: cognito.UserPoolClient, identityPoolProps?: cognito.CfnIdentityPoolProps): cognito.CfnIdentityPool { let cognitoIdentityPoolProps: cognito.CfnIdentityPoolProps = DefaultIdentityPoolP...
askulkarni2/aws-solutions-constructs
source/patterns/@aws-solutions-constructs/core/lib/cognito-helper.ts
TypeScript
FunctionDeclaration
export function setupCognitoForElasticSearch(scope: cdk.Construct, domainName: string, options: CognitoOptions): iam.Role { // Create the domain for Cognito UserPool const userpooldomain = new cognito.CfnUserPoolDomain(scope, 'UserPoolDomain', { domain: domainName, userPoolId: options.userpool.use...
askulkarni2/aws-solutions-constructs
source/patterns/@aws-solutions-constructs/core/lib/cognito-helper.ts
TypeScript
InterfaceDeclaration
export interface CognitoOptions { readonly identitypool: cognito.CfnIdentityPool, readonly userpool: cognito.UserPool, readonly userpoolclient: cognito.UserPoolClient }
askulkarni2/aws-solutions-constructs
source/patterns/@aws-solutions-constructs/core/lib/cognito-helper.ts
TypeScript
FunctionDeclaration
export default function getWalletSyncingStatus(walletState) { const { syncing, synced } = walletState; if (syncing) { return SyncingStatus.SYNCING; } else if (synced) { return SyncingStatus.SYNCED; } return SyncingStatus.NOT_SYNCED; }
STATION-I/stai-blockchain
stai-blockchain-gui/packages/wallets/src/utils/getWalletSyncingStatus.ts
TypeScript
ClassDeclaration
export class EventDispatcher { /** * Map of listeners by event name */ protected listeners: ListenersMap = {}; /** * Alias to addListener */ on(eventName: string, listener: Listener) { return this.addListener(eventName, listener); } /** * Add an event listener...
lovejs/lovejs-components
src/event_dispatcher/EventDispatcher.ts
TypeScript
TypeAliasDeclaration
export type ListenersMap = { [eventName: string]: Listener[]; };
lovejs/lovejs-components
src/event_dispatcher/EventDispatcher.ts
TypeScript
MethodDeclaration
/** * Alias to addListener */ on(eventName: string, listener: Listener) { return this.addListener(eventName, listener); }
lovejs/lovejs-components
src/event_dispatcher/EventDispatcher.ts
TypeScript
MethodDeclaration
/** * Add an event listener for given event name * @param eventName * @param listener */ addListener(eventName: string, listener: Listener): this { if (!(listener instanceof Listener)) { throw new EmitterError("Listener must be instance of Listener"); } if (!this...
lovejs/lovejs-components
src/event_dispatcher/EventDispatcher.ts
TypeScript
MethodDeclaration
/** * Get listeners for this event name * * @param eventName */ getListeners(eventName: string) { return this.listeners[eventName]; }
lovejs/lovejs-components
src/event_dispatcher/EventDispatcher.ts
TypeScript
MethodDeclaration
/** * Clear all listeners or listeners for given event name * * @param eventName */ clearListeners(eventName?: string) { if (eventName) { delete this.listeners[eventName]; } else { this.listeners = {}; } }
lovejs/lovejs-components
src/event_dispatcher/EventDispatcher.ts
TypeScript
MethodDeclaration
/** * Emit an event by name and data * @param eventName The name of the event * @param data Data or an event instance * @param options { stopOnReject : to stop listeners chains if an event throw an error } */ async emit(eventName: string, data?: any, options: { stopOnReject: boolean } = { stopO...
lovejs/lovejs-components
src/event_dispatcher/EventDispatcher.ts
TypeScript
ClassDeclaration
// #docregion export class InMemoryDataService { createDb() { let heroes = [ {id: 11, name: 'Mr. Nice'}, {id: 12, name: 'Narco'}, {id: 13, name: 'Bombasto'}, {id: 14, name: 'Celeritas'}, {id: 15, name: 'Magneta'}, {id: 16, name: 'RubberMan'}, {id: 17, name: 'Dynama'}, ...
AftabAnsari10662/angular.io
public/docs/_examples/toh-6/ts/app/in-memory-data.service.ts
TypeScript
MethodDeclaration
createDb() { let heroes = [ {id: 11, name: 'Mr. Nice'}, {id: 12, name: 'Narco'}, {id: 13, name: 'Bombasto'}, {id: 14, name: 'Celeritas'}, {id: 15, name: 'Magneta'}, {id: 16, name: 'RubberMan'}, {id: 17, name: 'Dynama'}, {id: 18, name: 'Dr IQ'}, {id: 19, name: '...
AftabAnsari10662/angular.io
public/docs/_examples/toh-6/ts/app/in-memory-data.service.ts
TypeScript
ArrowFunction
() => { let onGoingProcessProvider: OnGoingProcessProvider; let loadingCtrl: LoadingController; let logger: Logger; let loggerSpy; let setSpy; beforeEach(() => { const testBed = TestUtils.configureProviderTestingModule(); onGoingProcessProvider = testBed.get(OnGoingProcessProvider); logger = t...
123Line/Bitbank
src/providers/on-going-process/on-going-process.spec.ts
TypeScript
ArrowFunction
() => { const testBed = TestUtils.configureProviderTestingModule(); onGoingProcessProvider = testBed.get(OnGoingProcessProvider); logger = testBed.get(Logger); loadingCtrl = testBed.get(LoadingController); loggerSpy = spyOn(logger, 'warn'); }
123Line/Bitbank
src/providers/on-going-process/on-going-process.spec.ts
TypeScript
ArrowFunction
() => { it('should set loading content with the translation of the process code', () => { onGoingProcessProvider.set('signingTx'); onGoingProcessProvider.set('broadcastingTx'); expect(loadingCtrl.create).toHaveBeenCalledTimes(1); onGoingProcessProvider.clear(); }); it('should set l...
123Line/Bitbank
src/providers/on-going-process/on-going-process.spec.ts
TypeScript
ArrowFunction
() => { onGoingProcessProvider.set('signingTx'); onGoingProcessProvider.set('broadcastingTx'); expect(loadingCtrl.create).toHaveBeenCalledTimes(1); onGoingProcessProvider.clear(); }
123Line/Bitbank
src/providers/on-going-process/on-going-process.spec.ts
TypeScript
ArrowFunction
() => { onGoingProcessProvider.set('rareProcessCode'); expect(loadingCtrl.create).toHaveBeenCalledTimes(1); onGoingProcessProvider.clear(); }
123Line/Bitbank
src/providers/on-going-process/on-going-process.spec.ts
TypeScript
ArrowFunction
() => { it('should show a warning log if no ongoing process active', () => { onGoingProcessProvider.clear(); expect(loggerSpy).toHaveBeenCalled(); }); }
123Line/Bitbank
src/providers/on-going-process/on-going-process.spec.ts
TypeScript
ArrowFunction
() => { onGoingProcessProvider.clear(); expect(loggerSpy).toHaveBeenCalled(); }
123Line/Bitbank
src/providers/on-going-process/on-going-process.spec.ts
TypeScript
ArrowFunction
() => { it('should resume correctly paused processes', () => { onGoingProcessProvider.set('signingTx'); onGoingProcessProvider.pause(); setSpy = spyOn(onGoingProcessProvider, 'set'); onGoingProcessProvider.resume(); expect(setSpy).toHaveBeenCalledWith('signingTx'); expect(loadin...
123Line/Bitbank
src/providers/on-going-process/on-going-process.spec.ts
TypeScript
ArrowFunction
() => { onGoingProcessProvider.set('signingTx'); onGoingProcessProvider.pause(); setSpy = spyOn(onGoingProcessProvider, 'set'); onGoingProcessProvider.resume(); expect(setSpy).toHaveBeenCalledWith('signingTx'); expect(loadingCtrl.create).toHaveBeenCalledTimes(1); }
123Line/Bitbank
src/providers/on-going-process/on-going-process.spec.ts
TypeScript
ArrowFunction
({ theme }) => theme.colors.primary
Shanaka11/Resume
src/components/styled/Navigator.styled.ts
TypeScript
ArrowFunction
({ active }) => active && `opacity: 1;`
Shanaka11/Resume
src/components/styled/Navigator.styled.ts
TypeScript
ArrowFunction
({ top }) => top
Shanaka11/Resume
src/components/styled/Navigator.styled.ts
TypeScript
ArrowFunction
({ left }) => left
Shanaka11/Resume
src/components/styled/Navigator.styled.ts
TypeScript
ClassDeclaration
export class ShareButton extends React.Component<{ classes: string }> { state = { active: false } render() { const classes = classnames( sharedStyles.button, this.props.classes, this.state.active ? sharedStyles.active : "" ); return ( <d...
GoogleCloudPlatform/showcase-experiments
pi-day/scripts/components/share-button.tsx
TypeScript
MethodDeclaration
render() { const classes = classnames( sharedStyles.button, this.props.classes, this.state.active ? sharedStyles.active : "" ); return ( <div className={ classes } onClick={ () => this.setState( { active: true } ) }
GoogleCloudPlatform/showcase-experiments
pi-day/scripts/components/share-button.tsx
TypeScript
ArrowFunction
async (repo: string, path: string) => { const currentContents = (await axios.get( `https://api.github.com/repos/${repo}/contents/${path}`, { headers: { "User-Agent": "AnandChowdhary/services", Authorization: `token ${process.env.FINDING_ANAND_ACCESS_TOKEN}` } } )) as AxiosRe...
AnandChowdhary/services
helpers/github.ts
TypeScript
ArrowFunction
async ( repo: string, path: string, message: string, content: string, force = false ) => { const currentContents = (await axios.get( `https://api.github.com/repos/${repo}/contents/${path}`, { headers: { "User-Agent": "AnandChowdhary/services", Authorization: `token ${process.e...
AnandChowdhary/services
helpers/github.ts
TypeScript
InterfaceDeclaration
export interface File { name: string; path: string; sha: string; size: number; url: string; html_url: string; git_url: string; download_url: string; content: string; type: "file"; _links: { git: string; self: string; url: string; }; }
AnandChowdhary/services
helpers/github.ts
TypeScript
InterfaceDeclaration
export interface User { login: string; id: number; avatar_url: string; html_url: string; contributions: number; type: "User" | "Bot"; }
AnandChowdhary/services
helpers/github.ts
TypeScript
ArrowFunction
({ channel, type, alias }: IPendingChannelCardProps) => { const abandonChannel = useStoreActions((store) => store.channel.abandonChannel); const getChannels = useStoreActions((store) => store.channel.getChannels); if (!channel.channel) { return (<Text>Error</Text>); } const abandon = async () => { ...
fiatjaf/blixt-wallet
src/components/PendingChannelCard.tsx
TypeScript
ArrowFunction
(store) => store.channel.abandonChannel
fiatjaf/blixt-wallet
src/components/PendingChannelCard.tsx
TypeScript
ArrowFunction
(store) => store.channel.getChannels
fiatjaf/blixt-wallet
src/components/PendingChannelCard.tsx
TypeScript
ArrowFunction
async () => { const result = await abandonChannel({ fundingTx: channel.channel!.channelPoint!.split(":")[0], outputIndex: Number.parseInt(channel.channel!.channelPoint!.split(":")[1], 10), }); await getChannels(undefined); }
fiatjaf/blixt-wallet
src/components/PendingChannelCard.tsx
TypeScript
ArrowFunction
() => abandon()
fiatjaf/blixt-wallet
src/components/PendingChannelCard.tsx
TypeScript
InterfaceDeclaration
export interface IPendingChannelCardProps { type: "OPEN" | "CLOSING" | "FORCE_CLOSING" | "WAITING_CLOSE"; channel: lnrpc.PendingChannelsResponse.IPendingOpenChannel | lnrpc.PendingChannelsResponse.IClosedChannel | lnrpc.PendingChannelsResponse.IForceClosedChannel | lnrpc.Pending...
fiatjaf/blixt-wallet
src/components/PendingChannelCard.tsx
TypeScript
ArrowFunction
() => { describe('rendering', () => { test('it renders against shallow snapshot', () => { const wrapper = shallow( <AuthSsh contextId="[context-123]" eventId="[event-123]" sshSignature="[ssh-signature]" sshMethod="[ssh-method]" /> ); expec...
AlexanderWert/kibana
x-pack/plugins/security_solution/public/timelines/components/timeline/body/renderers/system/auth_ssh.test.tsx
TypeScript
ArrowFunction
() => { test('it renders against shallow snapshot', () => { const wrapper = shallow( <AuthSsh contextId="[context-123]" eventId="[event-123]" sshSignature="[ssh-signature]" sshMethod="[ssh-method]" /> ); expect(wrapper).toMatchSnapshot(); ...
AlexanderWert/kibana
x-pack/plugins/security_solution/public/timelines/components/timeline/body/renderers/system/auth_ssh.test.tsx
TypeScript
ArrowFunction
() => { const wrapper = shallow( <AuthSsh contextId="[context-123]" eventId="[event-123]" sshSignature="[ssh-signature]" sshMethod="[ssh-method]" /> ); expect(wrapper).toMatchSnapshot(); }
AlexanderWert/kibana
x-pack/plugins/security_solution/public/timelines/components/timeline/body/renderers/system/auth_ssh.test.tsx
TypeScript
ArrowFunction
() => { const wrapper = shallow( <AuthSsh contextId="[context-123]" eventId="[event-123]" sshSignature={null} sshMethod={null} /> ); expect(wrapper.children().length).toEqual(0); }
AlexanderWert/kibana
x-pack/plugins/security_solution/public/timelines/components/timeline/body/renderers/system/auth_ssh.test.tsx
TypeScript
ArrowFunction
() => { const wrapper = shallow( <AuthSsh contextId="[context-123]" eventId="[event-123]" sshSignature={undefined} sshMethod={undefined} /> ); expect(wrapper.children().length).toEqual(0); }
AlexanderWert/kibana
x-pack/plugins/security_solution/public/timelines/components/timeline/body/renderers/system/auth_ssh.test.tsx
TypeScript
ArrowFunction
() => { const wrapper = shallow( <AuthSsh contextId="[context-123]" eventId="[event-123]" sshSignature={null} sshMethod={undefined} /> ); expect(wrapper.children().length).toEqual(0); }
AlexanderWert/kibana
x-pack/plugins/security_solution/public/timelines/components/timeline/body/renderers/system/auth_ssh.test.tsx
TypeScript
ArrowFunction
() => { const wrapper = shallow( <AuthSsh contextId="[context-123]" eventId="[event-123]" sshSignature={undefined} sshMethod={null} /> ); expect(wrapper.children().length).toEqual(0); }
AlexanderWert/kibana
x-pack/plugins/security_solution/public/timelines/components/timeline/body/renderers/system/auth_ssh.test.tsx
TypeScript
ArrowFunction
() => { const wrapper = shallow( <AuthSsh contextId="[context-123]" eventId="[event-123]" sshSignature="[sshSignature-1]" sshMethod={null} /> ); expect(wrapper.find('DraggableBadge').prop('value')).toEqual('[sshSignature-1]'); }
AlexanderWert/kibana
x-pack/plugins/security_solution/public/timelines/components/timeline/body/renderers/system/auth_ssh.test.tsx
TypeScript
ArrowFunction
() => { const wrapper = shallow( <AuthSsh contextId="[context-123]" eventId="[event-123]" sshSignature={null} sshMethod="[sshMethod-1]" /> ); expect(wrapper.find('DraggableBadge').prop('value')).toEqual('[sshMethod-1]'); }
AlexanderWert/kibana
x-pack/plugins/security_solution/public/timelines/components/timeline/body/renderers/system/auth_ssh.test.tsx
TypeScript
ArrowFunction
(predeterminado: región del sistema)
mason221/404coin_2020new
src/qt/locale/bitcoin_es.ts
TypeScript
ArrowFunction
(predeterminado: 31666 o testnet: 41648)
mason221/404coin_2020new
src/qt/locale/bitcoin_es.ts
TypeScript
FunctionDeclaration
export function AutoCompleteModal<T extends IDEnabled>({ visible, hideModal, doneText = 'Done', filteredData, getLabel, onItemPress, multiple, value, onChangeText, onSearch, ...searchBarProps }: AutoCompleteModalProps<T>): JSX.Element { const searchInputRef = useRef<Text...
BrandonMA/fractal
packages/fractal-ui/src/components/interactive/textInputs/AutoComplete/BaseAutoComplete/AutoCompleteModal.tsx
TypeScript
ArrowFunction
() => { if (searchInputRef.current && visible) { searchInputRef.current.focus(); } }
BrandonMA/fractal
packages/fractal-ui/src/components/interactive/textInputs/AutoComplete/BaseAutoComplete/AutoCompleteModal.tsx
TypeScript
ArrowFunction
(input: Array<PhotoDimensions>, options?: Options): LayoutMetadata => { }
charliemcgrady/timeline-media-archive
app/webapp/src/types/justified-layout.d.ts
TypeScript
InterfaceDeclaration
export interface Options { /** * The width that boxes will be contained within irrelevant of padding. * @default 1060 */ containerWidth?: number; /** * Provide a single integer to apply padding to all sides or provide an object to apply individual values to each side. * @default 10 */ contain...
charliemcgrady/timeline-media-archive
app/webapp/src/types/justified-layout.d.ts
TypeScript
InterfaceDeclaration
export interface Box { aspectRatio: number; top: number; width: number; height: number; left: number; }
charliemcgrady/timeline-media-archive
app/webapp/src/types/justified-layout.d.ts
TypeScript
InterfaceDeclaration
export interface LayoutMetadata { containerHeight: number; widowCount: number; boxes: Array<Box>; }
charliemcgrady/timeline-media-archive
app/webapp/src/types/justified-layout.d.ts
TypeScript
TypeAliasDeclaration
export type PhotoDimensions = { width: number; height: number; };
charliemcgrady/timeline-media-archive
app/webapp/src/types/justified-layout.d.ts
TypeScript
TypeAliasDeclaration
export type Items = Array<PhotoDimensions>;
charliemcgrady/timeline-media-archive
app/webapp/src/types/justified-layout.d.ts
TypeScript
ClassDeclaration
@NgModule({ declarations: [ AppComponent, OnlyNumberDirective, ValidPathDirective, ContextMenuComponent, AutocompleteDirective, WelcomeModalComponent, SettingsModalComponent, ChangelogModalComponent, EnvironmentLogsComponent, HeadersListComponent, BannerComponent ], im...
SaswatB/mockoon
src/app/app.module.ts
TypeScript
ArrowFunction
entity => set(entity, 'eventId', model.id)
drbenschmidt/dirtleague-discgolf
modules/server/src/data-access/repository-services/event.ts
TypeScript
ClassDeclaration
class EventRepository extends Repository<EventModel, DbEvent> { get entityTable(): Table<DbEvent> { return this.context.events; } factory(row: DbEvent): EventModel { return new EventModel(row); } async get(id: number, includes?: string[]): Promise<EventModel> { const model = await super.get(id)...
drbenschmidt/dirtleague-discgolf
modules/server/src/data-access/repository-services/event.ts
TypeScript
MethodDeclaration
factory(row: DbEvent): EventModel { return new EventModel(row); }
drbenschmidt/dirtleague-discgolf
modules/server/src/data-access/repository-services/event.ts
TypeScript
MethodDeclaration
async get(id: number, includes?: string[]): Promise<EventModel> { const model = await super.get(id); const [myIncludes, nextIncludes] = getIncludes('event', includes); if (myIncludes.includes('rounds')) { const rounds = await this.servicesInstance.rounds.getAllForEvent( id, nextInclu...
drbenschmidt/dirtleague-discgolf
modules/server/src/data-access/repository-services/event.ts
TypeScript
MethodDeclaration
async insert(model: EventModel): Promise<void> { const id = await this.entityTable.insert(model.toJson() as DbEvent); set(model, 'id', id); if (model.rounds) { await this.syncCollection( model.rounds.toArray(), [], entity => set(entity, 'eventId', model.id), this.ser...
drbenschmidt/dirtleague-discgolf
modules/server/src/data-access/repository-services/event.ts
TypeScript
MethodDeclaration
async update(model: EventModel): Promise<void> { await this.entityTable.update(model.toJson() as DbEvent); if (model.rounds) { const dbRounds = await this.context.rounds.getAllForEvent(model.id); await this.syncCollection( model.rounds.toArray(), dbRounds, entity => set(en...
drbenschmidt/dirtleague-discgolf
modules/server/src/data-access/repository-services/event.ts
TypeScript
ClassDeclaration
@injectable() export class Herfestos { private commands; private actions; constructor( @inject(ShellCommanderToken) private readonly dependence: ShellCommander ) { this.commands = commands; this.actions = actions; } public async ignite(args: any) { try { const cliOptions = await findHerfestosConfi...
luminuszz/herfestos
src/cli.ts
TypeScript
MethodDeclaration
public async ignite(args: any) { try { const cliOptions = await findHerfestosConfigFile(); const currentCommandName: keyof typeof actions = args[2]; if (this.commands[currentCommandName]) { const commandInstance: AbstractCommand = container.resolve( this.commands[currentCommandName] as any );...
luminuszz/herfestos
src/cli.ts
TypeScript
MethodDeclaration
private interceptArgs(args: typeof process.argv) { this.dependence.shellCommander.parse(args); }
luminuszz/herfestos
src/cli.ts
TypeScript
FunctionDeclaration
function convertFlagsToAddressType(): ScriptType2Of3 { if (isChainCode(chain)) { return utxolib.bitgo.scriptTypeForChain(chain); } if (_.isBoolean(segwit) && segwit) { return 'p2shP2wsh'; } else if (_.isBoolean(bech32) && bech32) { return 'p2wsh'; } else { ...
BalloonBox-Inc/BitGoJS
modules/core/src/v2/coins/abstractUtxoCoin.ts
TypeScript
ArrowFunction
({ address, amount }: Output): string => `${address}:${Number(amount)}`
BalloonBox-Inc/BitGoJS
modules/core/src/v2/coins/abstractUtxoCoin.ts
TypeScript
ArrowFunction
(output) => { const group = groupedOutputs[keyFunc(output)]; if (group) { group.pop(); } }
BalloonBox-Inc/BitGoJS
modules/core/src/v2/coins/abstractUtxoCoin.ts
TypeScript
ArrowFunction
async (wallet: Wallet): Promise<VerificationOptions['keychains']> => { return promiseProps({ user: this.keychains().get({ id: wallet.keyIds()[KeyIndices.USER], reqId }), backup: this.keychains().get({ id: wallet.keyIds()[KeyIndices.BACKUP], reqId }), bitgo: this.keychains().get({ id: wall...
BalloonBox-Inc/BitGoJS
modules/core/src/v2/coins/abstractUtxoCoin.ts
TypeScript
ArrowFunction
(k) => k.pub
BalloonBox-Inc/BitGoJS
modules/core/src/v2/coins/abstractUtxoCoin.ts
TypeScript
ArrowFunction
(output) => { return { ...output, address: this.canonicalAddress(output.address) }; }
BalloonBox-Inc/BitGoJS
modules/core/src/v2/coins/abstractUtxoCoin.ts
TypeScript
ArrowFunction
(currentOutput) => { return parseOutput({ currentOutput, coin: this, txPrebuild, verification, keychainArray, wallet, txParams, customChange, reqId, }); }
BalloonBox-Inc/BitGoJS
modules/core/src/v2/coins/abstractUtxoCoin.ts
TypeScript
ArrowFunction
(output) => output.needsCustomChangeKeySignatureVerification
BalloonBox-Inc/BitGoJS
modules/core/src/v2/coins/abstractUtxoCoin.ts
TypeScript
ArrowFunction
(key, pub) => this.verifyKeySignature({ userKeychain: keychains.user, keychainToVerify: key, keySignature: pub })
BalloonBox-Inc/BitGoJS
modules/core/src/v2/coins/abstractUtxoCoin.ts
TypeScript
ArrowFunction
async (currentInput) => { const transactionId = (Buffer.from(currentInput.hash).reverse() as Buffer).toString('hex'); const txHex = txPrebuild.txInfo?.txHexes?.[transactionId]; if (txHex) { const localTx = this.createTransactionFromHex(txHex); if (localTx.getId() !== transac...
BalloonBox-Inc/BitGoJS
modules/core/src/v2/coins/abstractUtxoCoin.ts
TypeScript
ArrowFunction
({ pub }) => bip32.fromBase58(pub)
BalloonBox-Inc/BitGoJS
modules/core/src/v2/coins/abstractUtxoCoin.ts
TypeScript
ArrowFunction
(hdNode) => hdNode.derivePath(sanitizeLegacyPath(path)).publicKey
BalloonBox-Inc/BitGoJS
modules/core/src/v2/coins/abstractUtxoCoin.ts
TypeScript
ArrowFunction
(pub) => bip32.fromBase58(pub)
BalloonBox-Inc/BitGoJS
modules/core/src/v2/coins/abstractUtxoCoin.ts
TypeScript
ArrowFunction
(currentOutput) => { const currentAddress = utxolib.address.fromOutputScript(currentOutput.script, this.network); const currentAmount = currentOutput.value; if (changeAddresses.includes(currentAddress)) { // this is change changeAmount += currentAmount; explanation.changeOutp...
BalloonBox-Inc/BitGoJS
modules/core/src/v2/coins/abstractUtxoCoin.ts
TypeScript
ArrowFunction
(u) => toOutput(u, this.network)
BalloonBox-Inc/BitGoJS
modules/core/src/v2/coins/abstractUtxoCoin.ts
TypeScript
ArrowFunction
(xpub) => bip32.fromBase58(xpub)
BalloonBox-Inc/BitGoJS
modules/core/src/v2/coins/abstractUtxoCoin.ts
TypeScript
ArrowFunction
(input, idx): number => { if (unspents.length !== transaction.ins.length) { return 0; } if (!prevOutputs) { throw new Error(`invalid state`); } if (!walletKeys) { // no pub keys or incorrect number of pub keys return 0; } try { return...
BalloonBox-Inc/BitGoJS
modules/core/src/v2/coins/abstractUtxoCoin.ts
TypeScript
ArrowFunction
(v) => v
BalloonBox-Inc/BitGoJS
modules/core/src/v2/coins/abstractUtxoCoin.ts
TypeScript
InterfaceDeclaration
export interface VerifyAddressOptions extends BaseVerifyAddressOptions { chain: number; index: number; }
BalloonBox-Inc/BitGoJS
modules/core/src/v2/coins/abstractUtxoCoin.ts
TypeScript
InterfaceDeclaration
export interface Output { address: string; amount: string | number; external?: boolean; needsCustomChangeKeySignatureVerification?: boolean; }
BalloonBox-Inc/BitGoJS
modules/core/src/v2/coins/abstractUtxoCoin.ts
TypeScript
InterfaceDeclaration
export interface TransactionExplanation extends BaseTransactionExplanation<string, number> { locktime: number; outputs: Output[]; changeOutputs: Output[]; /** * Number of input signatures per input. */ inputSignatures: number[]; /** * Highest input signature count for the transaction */ sig...
BalloonBox-Inc/BitGoJS
modules/core/src/v2/coins/abstractUtxoCoin.ts
TypeScript
InterfaceDeclaration
export interface TransactionInfo { /** Maps txid to txhex. Required for offline signing. */ txHexes?: Record<string, string>; changeAddresses?: string[]; unspents: Unspent[]; }
BalloonBox-Inc/BitGoJS
modules/core/src/v2/coins/abstractUtxoCoin.ts
TypeScript
InterfaceDeclaration
export interface ExplainTransactionOptions { txHex: string; txInfo?: TransactionInfo; feeInfo?: string; pubs?: Triple<string>; }
BalloonBox-Inc/BitGoJS
modules/core/src/v2/coins/abstractUtxoCoin.ts
TypeScript
InterfaceDeclaration
export interface TransactionPrebuild extends BaseTransactionPrebuild { txInfo?: TransactionInfo; blockHeight?: number; }
BalloonBox-Inc/BitGoJS
modules/core/src/v2/coins/abstractUtxoCoin.ts
TypeScript
InterfaceDeclaration
export interface TransactionParams extends BaseTransactionParams { walletPassphrase?: string; changeAddress?: string; }
BalloonBox-Inc/BitGoJS
modules/core/src/v2/coins/abstractUtxoCoin.ts
TypeScript
InterfaceDeclaration
export interface ParseTransactionOptions extends BaseParseTransactionOptions { txParams: TransactionParams; txPrebuild: TransactionPrebuild; wallet: Wallet; verification?: VerificationOptions; reqId?: RequestTracer; }
BalloonBox-Inc/BitGoJS
modules/core/src/v2/coins/abstractUtxoCoin.ts
TypeScript
InterfaceDeclaration
export interface ParsedTransaction extends BaseParsedTransaction { keychains: { user?: Keychain; backup?: Keychain; bitgo?: Keychain; }; keySignatures: { backupPub?: string; bitgoPub?: string; }; outputs: Output[]; missingOutputs: Output[]; explicitExternalOutputs: Output[]; implici...
BalloonBox-Inc/BitGoJS
modules/core/src/v2/coins/abstractUtxoCoin.ts
TypeScript
InterfaceDeclaration
export interface GenerateAddressOptions { addressType?: ScriptType2Of3; keychains: { pub: string; aspKeyId?: string; }[]; threshold?: number; chain?: number; index?: number; segwit?: boolean; bech32?: boolean; }
BalloonBox-Inc/BitGoJS
modules/core/src/v2/coins/abstractUtxoCoin.ts
TypeScript
InterfaceDeclaration
export interface AddressDetails { address: string; chain: number; index: number; coin: string; coinSpecific: AddressCoinSpecific; addressType?: string; }
BalloonBox-Inc/BitGoJS
modules/core/src/v2/coins/abstractUtxoCoin.ts
TypeScript
InterfaceDeclaration
export interface SignTransactionOptions extends BaseSignTransactionOptions { /** Transaction prebuild from bitgo server */ txPrebuild: { txHex: string; txInfo: TransactionInfo; }; /** xprv of user key or backup key */ prv: string; /** xpubs triple for wallet (user, backup, bitgo) */ pubs: Triple<...
BalloonBox-Inc/BitGoJS
modules/core/src/v2/coins/abstractUtxoCoin.ts
TypeScript