@0xsequence/sessions
Advanced tools
Comparing version 0.0.0-20241007154931 to 0.0.0-20241107182529
@@ -1,2 +0,2 @@ | ||
export * from "./declarations/src/index"; | ||
export * from "./declarations/src/index.js"; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMHhzZXF1ZW5jZS1zZXNzaW9ucy5janMuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4vZGVjbGFyYXRpb25zL3NyYy9pbmRleC5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBIn0= |
@@ -19,3 +19,3 @@ import { commons } from '@0xsequence/core'; | ||
}; | ||
export declare abstract class ConfigTracker { | ||
export interface ConfigTracker { | ||
loadPresignedConfiguration: (args: { | ||
@@ -22,0 +22,0 @@ wallet: string; |
@@ -0,1 +1,2 @@ | ||
export * as arweave from "./arweave.js"; | ||
export * as debug from "./debug.js"; | ||
@@ -2,0 +3,0 @@ export * as local from "./local.js"; |
@@ -1,2 +0,1 @@ | ||
import { commons } from '@0xsequence/core'; | ||
@@ -3,0 +2,0 @@ import { migrator } from '@0xsequence/migration'; |
@@ -1,2 +0,1 @@ | ||
import { commons, v1, v2 } from '@0xsequence/core'; | ||
@@ -57,3 +56,3 @@ import { ethers } from 'ethers'; | ||
loadConfig: (imageHash: string) => Promise<v1.config.WalletConfig | v2.config.WalletConfig | PlainV2Config | undefined>; | ||
saveConfig: (imageHash: string, config: v2.config.WalletConfig | v1.config.WalletConfig | PlainV2Config) => Promise<void>; | ||
saveConfig: (imageHash: string, config: v1.config.WalletConfig | v2.config.WalletConfig | PlainV2Config) => Promise<void>; | ||
loadV2Node: (nodeHash: string) => Promise<v2.config.Topology | PlainNode | PlainNested | undefined>; | ||
@@ -60,0 +59,0 @@ saveV2Node: (nodeHash: string, node: v2.config.Topology | PlainNode | PlainNested) => Promise<void>; |
@@ -1,2 +0,1 @@ | ||
import { commons, v1, v2 } from '@0xsequence/core'; | ||
@@ -13,3 +12,3 @@ import { ethers } from 'ethers'; | ||
loadConfig: (imageHash: string) => Promise<v1.config.WalletConfig | v2.config.WalletConfig | PlainV2Config | undefined>; | ||
saveConfig: (imageHash: string, config: v2.config.WalletConfig | v1.config.WalletConfig | PlainV2Config) => Promise<void>; | ||
saveConfig: (imageHash: string, config: v1.config.WalletConfig | v2.config.WalletConfig | PlainV2Config) => Promise<void>; | ||
loadV2Node: (nodeHash: string) => Promise<v2.config.Topology | PlainNode | PlainNested | undefined>; | ||
@@ -16,0 +15,0 @@ saveV2Node: (nodeHash: string, node: v2.config.Topology | PlainNode | PlainNested) => Promise<void>; |
{ | ||
"name": "@0xsequence/sessions", | ||
"version": "0.0.0-20241007154931", | ||
"version": "0.0.0-20241107182529", | ||
"description": "tools for migrating sequence wallets to new versions", | ||
@@ -11,16 +11,19 @@ "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/sessions", | ||
"license": "Apache-2.0", | ||
"peerDependencies": { | ||
"ethers": ">=6" | ||
}, | ||
"dependencies": { | ||
"ethers": "^6.13.0", | ||
"idb": "^7.1.1", | ||
"@0xsequence/core": "0.0.0-20241007154931", | ||
"@0xsequence/migration": "0.0.0-20241007154931", | ||
"@0xsequence/replacer": "0.0.0-20241007154931", | ||
"@0xsequence/utils": "0.0.0-20241007154931" | ||
"@0xsequence/core": "0.0.0-20241107182529", | ||
"@0xsequence/migration": "0.0.0-20241107182529", | ||
"@0xsequence/replacer": "0.0.0-20241107182529", | ||
"@0xsequence/utils": "0.0.0-20241107182529" | ||
}, | ||
"devDependencies": { | ||
"@istanbuljs/nyc-config-typescript": "^1.0.2", | ||
"ethers": "6.13.4", | ||
"fake-indexeddb": "^4.0.1", | ||
"nyc": "^15.1.0", | ||
"@0xsequence/signhub": "0.0.0-20241007154931", | ||
"@0xsequence/tests": "0.0.0-20241007154931" | ||
"@0xsequence/signhub": "0.0.0-20241107182529", | ||
"@0xsequence/tests": "0.0.0-20241107182529" | ||
}, | ||
@@ -27,0 +30,0 @@ "files": [ |
@@ -21,3 +21,3 @@ import { commons } from '@0xsequence/core' | ||
export abstract class ConfigTracker { | ||
export interface ConfigTracker { | ||
loadPresignedConfiguration: (args: { | ||
@@ -24,0 +24,0 @@ wallet: string |
@@ -0,1 +1,2 @@ | ||
export * as arweave from './arweave' | ||
export * as debug from './debug' | ||
@@ -2,0 +3,0 @@ export * as local from './local' |
/* eslint-disable */ | ||
// sessions v0.0.1 d81ea64cbe41c1ab8b0107bce2f118817b34ebc0 | ||
// sessions v0.0.1 4940f44019460e32d0d262c35967ec1fe0786f30 | ||
// -- | ||
// Code generated by webrpc-gen@v0.18.6 with typescript generator. DO NOT EDIT. | ||
// Code generated by webrpc-gen@v0.20.3 with typescript generator. DO NOT EDIT. | ||
// | ||
// webrpc-gen -schema=sessions.ridl -target=typescript -client -out=./sessions.gen.ts | ||
// webrpc-gen -schema=sessions.ridl -target=typescript -client -out=./clients/sessions.gen.ts | ||
@@ -15,3 +15,3 @@ // WebRPC description and code-gen version | ||
// Schema hash generated from your RIDL schema | ||
export const WebRPCSchemaHash = 'd81ea64cbe41c1ab8b0107bce2f118817b34ebc0' | ||
export const WebRPCSchemaHash = '4940f44019460e32d0d262c35967ec1fe0786f30' | ||
@@ -35,2 +35,21 @@ // | ||
commit: string | ||
arweave: ArweaveStatus | ||
} | ||
export interface ArweaveStatus { | ||
nodeURL: string | ||
namespace: string | ||
sender: string | ||
signer: string | ||
flushInterval: string | ||
bundleDelay: string | ||
bundleLimit: number | ||
confirmations: number | ||
lockTTL: string | ||
healthy: boolean | ||
lastFlush?: string | ||
lastFlushSeconds?: number | ||
} | ||
export interface Info { | ||
wallets: { [key: string]: number } | ||
@@ -42,13 +61,52 @@ configs: { [key: string]: number } | ||
digests: number | ||
recorder: RecorderStatus | ||
recorder: RecorderInfo | ||
arweave: ArweaveInfo | ||
} | ||
export interface RecorderStatus { | ||
export interface RecorderInfo { | ||
requests: number | ||
buffer: number | ||
lastFlush?: string | ||
secondsSinceLastFlush?: number | ||
lastFlushSeconds?: number | ||
endpoints: { [key: string]: number } | ||
} | ||
export interface ArweaveInfo { | ||
nodeURL: string | ||
namespace: string | ||
sender: ArweaveSenderInfo | ||
signer: string | ||
flushInterval: string | ||
bundleDelay: string | ||
bundleLimit: number | ||
confirmations: number | ||
lockTTL: string | ||
healthy: boolean | ||
lastFlush?: string | ||
lastFlushSeconds?: number | ||
bundles: number | ||
pending: ArweavePendingInfo | ||
} | ||
export interface ArweaveSenderInfo { | ||
address: string | ||
balance: string | ||
} | ||
export interface ArweavePendingInfo { | ||
wallets: number | ||
configs: number | ||
migrations: number | ||
signatures: number | ||
bundles: Array<ArweaveBundleInfo> | ||
} | ||
export interface ArweaveBundleInfo { | ||
transaction: string | ||
block: number | ||
items: number | ||
sentAt: string | ||
confirmations: number | ||
} | ||
export interface Context { | ||
@@ -69,4 +127,12 @@ version: number | ||
signature: string | ||
validOnChain?: string | ||
validOnBlock?: string | ||
validOnBlockHash?: string | ||
} | ||
export interface SignerSignature { | ||
signer?: string | ||
signature: string | ||
} | ||
export interface ConfigUpdate { | ||
@@ -108,2 +174,7 @@ toImageHash: string | ||
): Promise<SaveSignerSignaturesReturn> | ||
saveSignerSignatures2( | ||
args: SaveSignerSignatures2Args, | ||
headers?: object, | ||
signal?: AbortSignal | ||
): Promise<SaveSignerSignatures2Return> | ||
saveMigration(args: SaveMigrationArgs, headers?: object, signal?: AbortSignal): Promise<SaveMigrationReturn> | ||
@@ -125,2 +196,4 @@ } | ||
signer: string | ||
cursor?: number | ||
limit?: number | ||
} | ||
@@ -130,2 +203,3 @@ | ||
wallets: { [key: string]: Signature } | ||
cursor: number | ||
} | ||
@@ -189,2 +263,11 @@ export interface DeployHashArgs { | ||
export interface SaveSignerSignaturesReturn {} | ||
export interface SaveSignerSignatures2Args { | ||
wallet: string | ||
digest: string | ||
chainID: string | ||
signatures: Array<SignerSignature> | ||
toConfig?: any | ||
} | ||
export interface SaveSignerSignatures2Return {} | ||
export interface SaveMigrationArgs { | ||
@@ -213,3 +296,3 @@ wallet: string | ||
constructor(hostname: string, fetch: Fetch) { | ||
this.hostname = hostname | ||
this.hostname = hostname.replace(/\/*$/, '') | ||
this.fetch = (input: RequestInfo, init?: RequestInit) => fetch(input, init) | ||
@@ -256,3 +339,4 @@ } | ||
return { | ||
wallets: <{ [key: string]: Signature }>_data.wallets | ||
wallets: <{ [key: string]: Signature }>_data.wallets, | ||
cursor: <number>_data.cursor | ||
} | ||
@@ -369,2 +453,19 @@ }) | ||
saveSignerSignatures2 = ( | ||
args: SaveSignerSignatures2Args, | ||
headers?: object, | ||
signal?: AbortSignal | ||
): Promise<SaveSignerSignatures2Return> => { | ||
return this.fetch(this.url('SaveSignerSignatures2'), createHTTPRequest(args, headers, signal)).then( | ||
res => { | ||
return buildResponse(res).then(_data => { | ||
return {} | ||
}) | ||
}, | ||
error => { | ||
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` }) | ||
} | ||
) | ||
} | ||
saveMigration = (args: SaveMigrationArgs, headers?: object, signal?: AbortSignal): Promise<SaveMigrationReturn> => { | ||
@@ -371,0 +472,0 @@ return this.fetch(this.url('SaveMigration'), createHTTPRequest(args, headers, signal)).then( |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
413838
35
10985
6
12
+ Added@0xsequence/abi@0.0.0-20241107182529(transitive)
+ Added@0xsequence/core@0.0.0-20241107182529(transitive)
+ Added@0xsequence/indexer@0.0.0-20241107182529(transitive)
+ Added@0xsequence/migration@0.0.0-20241107182529(transitive)
+ Added@0xsequence/network@0.0.0-20241107182529(transitive)
+ Added@0xsequence/relayer@0.0.0-20241107182529(transitive)
+ Added@0xsequence/replacer@0.0.0-20241107182529(transitive)
+ Added@0xsequence/signhub@0.0.0-20241107182529(transitive)
+ Added@0xsequence/utils@0.0.0-20241107182529(transitive)
+ Added@0xsequence/wallet@0.0.0-20241107182529(transitive)
- Removedethers@^6.13.0
- Removed@0xsequence/abi@0.0.0-20241007154931(transitive)
- Removed@0xsequence/core@0.0.0-20241007154931(transitive)
- Removed@0xsequence/indexer@0.0.0-20241007154931(transitive)
- Removed@0xsequence/migration@0.0.0-20241007154931(transitive)
- Removed@0xsequence/network@0.0.0-20241007154931(transitive)
- Removed@0xsequence/relayer@0.0.0-20241007154931(transitive)
- Removed@0xsequence/replacer@0.0.0-20241007154931(transitive)
- Removed@0xsequence/signhub@0.0.0-20241007154931(transitive)
- Removed@0xsequence/utils@0.0.0-20241007154931(transitive)
- Removed@0xsequence/wallet@0.0.0-20241007154931(transitive)