Skip to content

Commit

Permalink
feat: add more wallet types
Browse files Browse the repository at this point in the history
  • Loading branch information
sampullman committed Oct 22, 2022
1 parent 31cd337 commit 8b5ac74
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/wallet/fcl-request-status.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export enum FclRequestStatus {
Pending = 'PENDING',
Approved = 'APPROVED',
Declined = 'DECLINED',
Redirect = 'REDIRECT',
}
10 changes: 10 additions & 0 deletions lib/wallet/fcl-service-method.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export enum FclServiceMethod {
ViewIframe = 'VIEW/IFRAME',
IframeRpc = 'IFRAME/RPC',
PopRpc = 'POP/RPC',
TabRpc = 'TAB/RPC',
ExtRpc = 'EXT/RPC',
HttpPost = 'HTTP/POST',
HttpGet = 'HTTP/GET',
Data = 'DATA',
}
11 changes: 11 additions & 0 deletions lib/wallet/fcl-service-type.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export enum FclServiceType {
LocalView = 'local-view',
Authn = 'authn',
AuthnRefresh = 'authn-refresh',
Authz = 'authz',
PreAuthz = 'pre-authz',
UserSignature = 'user-signature',
OpenId = 'open-id',
AccountProof = 'account-proof',
BackChannelRpc = 'back-channel-rpc',
}
5 changes: 5 additions & 0 deletions lib/wallet/i-composite-signature.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export interface ICompositeSignature {
addr: string
keyId: number
signature: string
}
4 changes: 4 additions & 0 deletions lib/wallet/i-fcl-identity.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export interface IFclIdentity {
address: string
keyId: number
}
5 changes: 5 additions & 0 deletions lib/wallet/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
export * from './i-fcl-identity'
export * from './i-fcl-transaction'
export * from './i-composite-signature'
export * from './fcl-request-status'
export * from './fcl-service-method'
export * from './fcl-service-type'

0 comments on commit 8b5ac74

Please sign in to comment.