Skip to content

Commit

Permalink
fix(): build target
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaut committed Dec 13, 2023
1 parent 323b312 commit 5f5cff6
Show file tree
Hide file tree
Showing 15 changed files with 311 additions and 117 deletions.
2 changes: 1 addition & 1 deletion packages/example/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
"noFallthroughCasesInSwitch": true
},
"include": ["src"]
}
}
1 change: 0 additions & 1 deletion packages/plugin/dist/commands.d.ts.map

This file was deleted.

1 change: 0 additions & 1 deletion packages/plugin/dist/commands.js.map

This file was deleted.

45 changes: 45 additions & 0 deletions packages/plugin/dist/extension.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import { Injected, InjectedAccounts } from '@polkadot/extension-inject/types';
import { Keyring } from '@polkadot/keyring';
import { SignerPayloadJSON, SignerResult } from '@polkadot/types/types';
import { InjectedAccountWitMnemonic } from './types';
export interface AuthRequest {
id: number;
origin: string;
resolve: (accountAddresses: string[]) => void;
reject: (reason: string) => void;
}
export interface TxRequest {
id: number;
payload: SignerPayloadJSON;
resolve: () => void;
reject: (reason: string) => void;
}
export type TxRequests = Record<number, TxRequest>;
export type AuthRequests = Record<number, AuthRequest>;
export type EnableRequest = number;
export declare class Extension {
authRequests: AuthRequests;
accounts: InjectedAccountWitMnemonic[];
txRequests: TxRequests;
keyring: Keyring | undefined;
allowedOrigins: Record<string, string[]>;
reset: () => void;
init: (accounts: InjectedAccountWitMnemonic[], allowedOrigin?: string) => Promise<void>;
getInjectedEnable: () => {
'polkadot-js': {
enable: (origin: string) => Promise<{
accounts: InjectedAccounts;
signer: {
signPayload: (payload: SignerPayloadJSON) => Promise<SignerResult>;
};
}> | Promise<Injected>;
version: string;
};
};
getAuthRequests: () => AuthRequests;
enableAuth: (id: number, accountAddresses: string[]) => void;
rejectAuth: (id: number, reason: string) => void;
getTxRequests: () => TxRequests;
approveTx: (id: number) => void;
rejectTx: (id: number, reason: string) => void;
}
1 change: 0 additions & 1 deletion packages/plugin/dist/extension.d.ts.map

This file was deleted.

Loading

0 comments on commit 5f5cff6

Please sign in to comment.