diff --git a/package.json b/package.json index 33a1f10..3250a8d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@wharfkit/hyperion", "description": "API Client to access Hyperion API endpoints", - "version": "1.0.2", + "version": "1.0.3", "homepage": "https://github.com/wharfkit/hyperion", "main": "lib/hyperion.js", "module": "lib/hyperion.m.js", diff --git a/src/endpoints.ts b/src/endpoints.ts index 31fe57a..70701e9 100644 --- a/src/endpoints.ts +++ b/src/endpoints.ts @@ -1,6 +1,6 @@ import {APIClient} from '@wharfkit/antelope' -import {HyperionV1APIClient} from './endpoints/v1' -import {HyperionV2APIClient} from './endpoints/v2' +import {HyperionV1APIClient} from './endpoints/v1/v1' +import {HyperionV2APIClient} from './endpoints/v2/v2' export class HyperionAPIClient { public v1: HyperionV1APIClient diff --git a/src/endpoints/v1.ts b/src/endpoints/v1/v1.ts similarity index 79% rename from src/endpoints/v1.ts rename to src/endpoints/v1/v1.ts index 36e3d30..5d5626b 100644 --- a/src/endpoints/v1.ts +++ b/src/endpoints/v1/v1.ts @@ -15,19 +15,19 @@ export class HyperionV1APIClient { class HyperionV1HistoryAPIClient { constructor(private client: APIClient) {} - async get_actions(): Promise { + async get_actions() { throw new Error('Method not implemented.') } - async get_controlled_accounts(): Promise { + async get_controlled_accounts() { throw new Error('Method not implemented.') } - async get_key_accounts(): Promise { + async get_key_accounts() { throw new Error('Method not implemented.') } - async get_transaction(): Promise { + async get_transaction() { throw new Error('Method not implemented.') } } @@ -35,7 +35,7 @@ class HyperionV1HistoryAPIClient { class HyperionV1ChainAPIClient { constructor(private client: APIClient) {} - async get_block(): Promise { + async get_block() { throw new Error('Method not implemented.') } } @@ -43,7 +43,7 @@ class HyperionV1ChainAPIClient { class HyperionV1TraceApiClient { constructor(private client: APIClient) {} - async get_block(): Promise { + async get_block() { throw new Error('Method not implemented.') } } diff --git a/src/endpoints/v2/types.ts b/src/endpoints/v2/types.ts new file mode 100644 index 0000000..18bc932 --- /dev/null +++ b/src/endpoints/v2/types.ts @@ -0,0 +1,319 @@ +import { + ABI, + API, + BlockTimestamp, + Checksum256, + Float64, + Int64, + Name, + PermissionLevel, + Struct, + TimePoint, + UInt32, + UInt64, + UInt8, +} from '@wharfkit/antelope' +@Struct.type('get_abi_snapshot_response') +export class GetABISnapshotResponse extends Struct { + @Struct.field(UInt32) declare block_num: UInt32 + @Struct.field(ABI) declare abi: ABI + @Struct.field(Float64) declare query_time_ms: Float64 +} + +@Struct.type('get_voters_response_voter') +export class GetVotersResponseVoter extends Struct { + @Struct.field(Name) declare account: Name + @Struct.field(Float64) declare weight: Float64 + @Struct.field(UInt32) declare last_vote: UInt32 +} + +@Struct.type('get_voters_response') +export class GetVotersResponse extends Struct { + @Struct.field(GetVotersResponseVoter, {array: true}) + declare voters: GetVotersResponseVoter[] +} + +@Struct.type('get_links_response_link') +export class GetLinksResponseLink extends Struct { + @Struct.field(UInt32) declare block_num: UInt32 + @Struct.field(BlockTimestamp) declare timestamp: BlockTimestamp + @Struct.field(Name) declare account: Name + @Struct.field('string') declare permission: string + @Struct.field('string') declare code: string + @Struct.field('string') declare action: string + @Struct.field('bool', {optional: true}) declare irreversible?: boolean +} + +@Struct.type('total_count') +export class TotalCount extends Struct { + @Struct.field(UInt32) declare value: UInt32 + @Struct.field('string') declare relation: string +} + +@Struct.type('get_links_response') +export class GetLinksResponse extends Struct { + @Struct.field(Float64) declare query_time_ms: Float64 + @Struct.field('bool') declare cached: boolean + @Struct.field('bool', {optional: true}) declare hot_only?: boolean + @Struct.field(UInt32, {optional: true}) declare lib?: UInt32 + @Struct.field(TotalCount) declare total: TotalCount + @Struct.field(GetLinksResponseLink, {array: true}) declare links: GetLinksResponseLink[] +} + +@Struct.type('approval') +export class Approval extends Struct { + @Struct.field(Name) declare actor: Name + @Struct.field(Name) declare permission: Name + @Struct.field(TimePoint) declare time: TimePoint +} + +@Struct.type('proposal') +export class Proposal extends Struct { + @Struct.field(Approval, {array: true}) declare provided_approvals: Approval[] + @Struct.field(Approval, {array: true}) declare requested_approvals: Approval[] + @Struct.field(UInt32) declare block_num: UInt32 + @Struct.field(Name) declare proposer: Name + @Struct.field(Name) declare proposal_name: Name + @Struct.field(UInt64) declare primary_key: UInt64 + @Struct.field('bool') declare executed: boolean +} + +@Struct.type('get_proposals_response') +export class GetProposalsResponse extends Struct { + @Struct.field(Float64, {optional: true}) declare query_time?: Float64 + @Struct.field('bool') declare cached: boolean + @Struct.field(TotalCount) declare total: TotalCount + @Struct.field(Proposal, {array: true}) declare proposals: Proposal[] + @Struct.field(Float64) declare query_time_ms: Float64 +} + +@Struct.type('act') +export class ActionAct extends Struct { + @Struct.field(Name) declare account: Name + @Struct.field(Name) declare name: Name + @Struct.field(PermissionLevel, {array: true}) declare authorization: PermissionLevel[] + @Struct.field('any') declare data: any +} + +@Struct.type('account_sequence') +export class AccountSequence extends Struct { + @Struct.field(Name) declare account: Name + @Struct.field(UInt64) declare sequence: UInt64 +} + +@Struct.type('action_receipt') +export class ActionReceipt extends Struct { + @Struct.field(Name) declare receiver: Name + @Struct.field(UInt64) declare global_sequence: UInt64 + @Struct.field(UInt64) declare recv_sequence: UInt64 + @Struct.field(AccountSequence, {array: true}) declare auth_sequence: AccountSequence[] +} + +@Struct.type('action_ram_delta') +export class ActionRamDelta extends Struct { + @Struct.field(Name) declare account: Name + @Struct.field(Int64) declare delta: Int64 +} + +@Struct.type('action') +export class Action extends Struct { + @Struct.field(BlockTimestamp) declare timestamp: BlockTimestamp + @Struct.field(UInt32) declare block_num: UInt32 + @Struct.field(Checksum256, {optional: true}) declare block_id: Checksum256 + @Struct.field(Checksum256) declare trx_id: Checksum256 + @Struct.field(ActionAct) declare act: ActionAct + @Struct.field(ActionReceipt, {array: true, optional: true}) + declare receipts: ActionReceipt[] + @Struct.field(ActionRamDelta, {array: true, optional: true}) + declare account_ram_deltas: ActionRamDelta[] + @Struct.field(UInt64) declare global_sequence: UInt64 + @Struct.field(Name) declare producer: Name + @Struct.field(UInt64) declare action_ordinal: UInt64 + @Struct.field(UInt64) declare creator_action_ordinal: UInt64 + @Struct.field(UInt64, {optional: true}) declare cpu_usage_us: UInt64 + @Struct.field(UInt64, {optional: true}) declare net_usage_words: UInt64 + @Struct.field(UInt64, {optional: true}) declare parent: UInt64 + @Struct.field('string', {array: true, optional: true}) declare signatures: string[] +} + +@Struct.type('get_actions_response') +export class GetActionsResponse extends Struct { + @Struct.field(Float64) declare query_time_ms: Float64 + @Struct.field('bool') declare cached: boolean + @Struct.field(UInt32, {optional: true}) declare lib?: UInt32 + @Struct.field(TotalCount) declare total: TotalCount + @Struct.field(Action, {array: true}) declare actions: Action[] +} + +@Struct.type('account_info') +export class AccountInfo extends Struct { + @Struct.field(Name) declare name: Name + @Struct.field(Checksum256) declare trx_id: Checksum256 + @Struct.field(TimePoint) declare timestamp: TimePoint +} + +@Struct.type('get_created_accounts_response') +export class GetCreatedAccountsResponse extends Struct { + @Struct.field(Float64) declare query_time_ms: Float64 + @Struct.field(AccountInfo, {array: true}) declare accounts: AccountInfo[] +} + +@Struct.type('get_creator_response') +export class GetCreatorResponse extends Struct { + @Struct.field(Float64) declare query_time_ms: Float64 + @Struct.field(Name) declare account: Name + @Struct.field(Name) declare creator: Name // In the case of eosio account this can be string "__self__" + @Struct.field(BlockTimestamp) declare timestamp: BlockTimestamp + @Struct.field(UInt32) declare block_num: UInt32 + @Struct.field(Checksum256) declare trx_id: Checksum256 // In the case of eosio account this can be empty +} + +@Struct.type('delta') +export class Delta extends Struct { + @Struct.field(BlockTimestamp) declare timestamp: BlockTimestamp + @Struct.field(UInt8) declare present: UInt8 + @Struct.field(Name) declare code: Name + @Struct.field(Name) declare scope: Name + @Struct.field(Name) declare table: Name + @Struct.field(Name) declare primary_key: Name + @Struct.field(Name) declare payer: Name + @Struct.field(UInt64) declare block_num: UInt64 + @Struct.field(Checksum256) declare block_id: Checksum256 + @Struct.field('any') declare data: any +} + +@Struct.type('get_deltas_response') +export class GetDeltasResponse extends Struct { + @Struct.field(Float64) declare query_time_ms: Float64 + @Struct.field(TotalCount) declare total: TotalCount + @Struct.field(Delta, {array: true}) declare deltas: Delta[] +} + +@Struct.type('get_table_state_response') +export class GetTableStateResponse extends Struct { + @Struct.field(Float64) declare query_time_ms: Float64 + @Struct.field(Name) declare code: Name + @Struct.field(Name) declare table: Name + @Struct.field(UInt64) declare block_num: UInt64 + @Struct.field('string') declare after_key: string + @Struct.field('string') declare next_key: string + @Struct.field('any', {array: true}) declare results: any[] +} + +@Struct.type('get_key_accounts_response') +export class GetKeyAccountsResponse extends Struct { + @Struct.field(Name, {array: true}) declare account_names: Name[] +} + +@Struct.type('token_info') +export class TokenInfo extends Struct { + @Struct.field('string') declare symbol: string + @Struct.field(Float64) declare amount: Float64 + @Struct.field('string') declare contract: 'string' + @Struct.field(UInt32, {optional: true}) declare precision?: UInt32 + @Struct.field('string', {optional: true}) declare error?: string +} +@Struct.type('get_tokens_response') +export class GetTokensResponse extends Struct { + @Struct.field(Name) declare account: Name + @Struct.field(Float64) declare query_time_ms: Float64 + @Struct.field(TokenInfo, {array: true}) declare tokens: TokenInfo[] +} + +@Struct.type('get_transaction_response') +export class GetTransactionResponse extends Struct { + @Struct.field(Float64) declare query_time_ms: Float64 + @Struct.field('bool') declare executed: boolean + @Struct.field(Checksum256) declare trx_id: Checksum256 + @Struct.field(UInt32) declare lib: UInt32 + @Struct.field('bool') declare cached_lib: boolean + @Struct.field(Action, {array: true}) declare actions: Action[] +} +@Struct.type('get_account_response_link') +export class GetAccountResponseLink extends Struct { + @Struct.field(BlockTimestamp) declare timestamp: BlockTimestamp + @Struct.field(Name) declare permission: Name + @Struct.field(Name) declare code: Name + @Struct.field(Name) declare action: Name +} + +@Struct.type('get_account_response') +export class GetAccountResponse extends Struct { + @Struct.field(Float64) declare query_time_ms: Float64 + @Struct.field(API.v1.AccountObject) declare account: API.v1.AccountObject + @Struct.field(GetAccountResponseLink, {array: true}) declare links: GetAccountResponseLink[] + @Struct.field(TokenInfo, {array: true}) declare tokens: TokenInfo[] + @Struct.field(UInt64) declare total_actions: UInt64 + @Struct.field(Action, {array: true}) declare actions: Action[] +} + +// For the `health` field +@Struct.type('health_entry') +export class HealthEntry extends Struct { + @Struct.field('string') declare service: string + @Struct.field('string') declare status: string + @Struct.field('any', {optional: true}) declare service_data?: + | NodeosRPCServiceData + | ElasticsearchServiceData + @Struct.field(UInt64) declare time: UInt64 +} + +@Struct.type('nodeos_rpc_service_data') +export class NodeosRPCServiceData extends Struct { + @Struct.field(UInt64) declare head_block_num: UInt64 + @Struct.field('string') declare head_block_time: string + @Struct.field(UInt64) declare time_offset: UInt64 + @Struct.field(UInt64) declare last_irreversible_block: UInt64 + @Struct.field('string') declare chain_id: string +} + +@Struct.type('elasticsearch_service_data') +export class ElasticsearchServiceData extends Struct { + @Struct.field('string') declare active_shards: string + @Struct.field(UInt64) declare head_offset: UInt64 + @Struct.field(UInt64) declare first_indexed_block: UInt64 + @Struct.field(UInt64) declare last_indexed_block: UInt64 + @Struct.field(UInt64) declare total_indexed_blocks: UInt64 + @Struct.field(UInt64) declare missing_blocks: UInt64 + @Struct.field('string') declare missing_pct: string +} + +// For the `features` field +@Struct.type('streaming_features') +export class StreamingFeatures extends Struct { + @Struct.field('bool') declare enable: boolean + @Struct.field('bool') declare traces: boolean + @Struct.field('bool') declare deltas: boolean +} + +@Struct.type('tables_features') +export class TablesFeatures extends Struct { + @Struct.field('bool') declare proposals: boolean + @Struct.field('bool') declare accounts: boolean + @Struct.field('bool') declare voters: boolean +} + +// For the `features` in the main type +@Struct.type('features') +export class Features extends Struct { + @Struct.field(StreamingFeatures) declare streaming: StreamingFeatures + @Struct.field(TablesFeatures) declare tables: TablesFeatures + @Struct.field('bool') declare index_deltas: boolean + @Struct.field('bool') declare index_transfer_memo: boolean + @Struct.field('bool') declare index_all_deltas: boolean + @Struct.field('bool') declare deferred_trx: boolean + @Struct.field('bool') declare failed_trx: boolean + @Struct.field('bool') declare resource_limits: boolean + @Struct.field('bool') declare resource_usage: boolean +} + +// The main type +@Struct.type('get_health_response') +export class GetHealthResponse extends Struct { + @Struct.field('string') declare version: string + @Struct.field('string') declare version_hash: string + @Struct.field('string') declare host: string + @Struct.field(HealthEntry, {array: true}) declare health: HealthEntry[] + @Struct.field(Features) declare features: Features + @Struct.field(Float64) declare query_time_ms: Float64 +} diff --git a/src/endpoints/v2.ts b/src/endpoints/v2/v2.ts similarity index 74% rename from src/endpoints/v2.ts rename to src/endpoints/v2/v2.ts index 631a573..2933df2 100644 --- a/src/endpoints/v2.ts +++ b/src/endpoints/v2/v2.ts @@ -17,11 +17,11 @@ export class HyperionV2APIClient { this.history = new HyperionV2HistoryAPIClient(client) } - get_health(): Promise { + get_health() { return this.client.call({ path: `/v2/health`, method: 'GET', - responseType: Types.V2.GetHealthResponse, + responseType: Types.v2.GetHealthResponse, }) } } @@ -34,7 +34,7 @@ class HyperionV2StateAPIClient { proxy?: boolean, skip?: number, limit?: number - ): Promise { + ) { let queryParams = '' const queryParts: string[] = [] @@ -48,33 +48,46 @@ class HyperionV2StateAPIClient { return this.client.call({ path: `/v2/state/get_voters${queryParams}`, method: 'GET', - responseType: Types.V2.GetVotersResponse, + responseType: Types.v2.GetVotersResponse, }) } - async get_links(account?: NameType): Promise { - const queryParams = account ? `?account=${account}` : '' + async get_links( + account?: NameType, + code?: NameType, + action?: NameType, + permission?: NameType + ) { + let queryParams = '' + const queryParts: string[] = [] + + if (account !== undefined) queryParts.push(`account=${account}`) + if (code !== undefined) queryParts.push(`code=${code}`) + if (action !== undefined) queryParts.push(`action=${action}`) + if (permission !== undefined) queryParts.push(`permission=${permission}`) + + queryParams = queryParts.length ? '?' + queryParts.join('&') : '' return this.client.call({ path: `/v2/state/get_links${queryParams}`, method: 'GET', - responseType: Types.V2.GetLinksResponse, + responseType: Types.v2.GetLinksResponse, }) } - async get_key_accounts(public_key: PublicKeyType): Promise { + async get_key_accounts(public_key: PublicKeyType) { return this.client.call({ path: `/v2/state/get_key_accounts?public_key=${public_key}`, method: 'GET', - responseType: Types.V2.GetKeyAccountsResponse, + responseType: Types.v2.GetKeyAccountsResponse, }) } - async get_tokens(account: NameType): Promise { + async get_tokens(account: NameType) { return this.client.call({ path: `/v2/state/get_tokens?account=${account}`, method: 'GET', - responseType: Types.V2.GetTokensResponse, + responseType: Types.v2.GetTokensResponse, }) } @@ -87,7 +100,7 @@ class HyperionV2StateAPIClient { track?: number | boolean skip?: number limit?: number - }): Promise { + }) { const queryParts: string[] = [] for (const [key, value] of Object.entries(options || {})) { @@ -99,15 +112,15 @@ class HyperionV2StateAPIClient { return this.client.call({ path: `/v2/state/get_proposals${queryParams}`, method: 'GET', - responseType: Types.V2.GetProposalsResponse, + responseType: Types.v2.GetProposalsResponse, }) } - async get_account(account: NameType): Promise { + async get_account(account: NameType) { return this.client.call({ path: `/v2/state/get_account?account=${account}`, method: 'GET', - responseType: Types.V2.GetAccountResponse, + responseType: Types.v2.GetAccountResponse, }) } } @@ -119,7 +132,7 @@ export class HyperionV2HistoryAPIClient { contract: string, block?: number, fetch = false - ): Promise { + ) { if (!block) { const info = await this.client.v1.chain.get_info() @@ -131,7 +144,7 @@ export class HyperionV2HistoryAPIClient { contract )}&block=${block}&fetch=${fetch}`, method: 'GET', - responseType: Types.V2.GetABISnapshotResponse, + responseType: Types.v2.GetABISnapshotResponse, }) } @@ -150,7 +163,7 @@ export class HyperionV2HistoryAPIClient { act_name?: string act_account?: NameType } - ): Promise { + ) { const queryParts: string[] = [`account=${account}`] for (const [key, value] of Object.entries(options || {})) { @@ -162,7 +175,7 @@ export class HyperionV2HistoryAPIClient { return this.client.call({ path: `/v2/history/get_actions${queryParams}`, method: 'GET', - responseType: Types.V2.GetActionsResponse, + responseType: Types.v2.GetActionsResponse, }) } @@ -172,7 +185,7 @@ export class HyperionV2HistoryAPIClient { skip?: number limit?: number } - ): Promise { + ) { const queryParts: string[] = [`account=${account}`] for (const [key, value] of Object.entries(options || {})) { @@ -184,15 +197,15 @@ export class HyperionV2HistoryAPIClient { return this.client.call({ path: `/v2/history/get_created_accounts${queryParams}`, method: 'GET', - responseType: Types.V2.GetCreatedAccountsResponse, + responseType: Types.v2.GetCreatedAccountsResponse, }) } - async get_creator(account: NameType): Promise { + async get_creator(account: NameType) { return this.client.call({ path: `/v2/history/get_creator?account=${account}`, method: 'GET', - responseType: Types.V2.GetCreatorResponse, + responseType: Types.v2.GetCreatorResponse, }) } @@ -201,11 +214,11 @@ export class HyperionV2HistoryAPIClient { scope: NameType, table: NameType, payer: NameType - ): Promise { + ) { return this.client.call({ path: `/v2/history/get_deltas?code=${code}&scope=${scope}&table=${table}&payer=${payer}`, method: 'GET', - responseType: Types.V2.GetDeltasResponse, + responseType: Types.v2.GetDeltasResponse, }) } @@ -214,27 +227,27 @@ export class HyperionV2HistoryAPIClient { table: NameType, block_num: Int64Type, after_key = '' - ): Promise { + ) { return this.client.call({ path: `/v2/history/get_table_state?code=${code}&table=${table}&block_num=${block_num}&after_key=${after_key}`, method: 'GET', - responseType: Types.V2.GetTableStateResponse, + responseType: Types.v2.GetTableStateResponse, }) } - async get_transaction(id: Checksum256Type): Promise { + async get_transaction(id: Checksum256Type) { return this.client.call({ path: `/v2/history/get_transaction?id=${id}`, method: 'GET', - responseType: Types.V2.GetTransactionResponse, + responseType: Types.v2.GetTransactionResponse, }) } - async get_transfers(): Promise { + async get_transfers() { throw new Error('Method not implemented.') } - async get_transacted_accounts(): Promise { + async get_transacted_accounts() { throw new Error('Method not implemented.') } } diff --git a/src/types.ts b/src/types.ts index 2916e90..f5a5fb8 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,320 +1 @@ -import { - ABI, - API, - BlockTimestamp, - Checksum256, - Float64, - Int64, - Name, - PermissionLevel, - Struct, - TimePoint, - UInt32, - UInt64, - UInt8, -} from '@wharfkit/antelope' - -export namespace V1 {} - -export namespace V2 { - @Struct.type('get_abi_snapshot_response') - export class GetABISnapshotResponse extends Struct { - @Struct.field(UInt32) declare block_num: UInt32 - @Struct.field(ABI) declare abi: ABI - @Struct.field(Float64) declare query_time_ms: Float64 - } - - @Struct.type('get_voters_response_voter') - export class GetVotersResponseVoter extends Struct { - @Struct.field(Name) declare account: Name - @Struct.field(Float64) declare weight: Float64 - @Struct.field(UInt32) declare last_vote: UInt32 - } - - @Struct.type('get_voters_response') - export class GetVotersResponse extends Struct { - @Struct.field(GetVotersResponseVoter, {array: true}) - declare voters: GetVotersResponseVoter[] - } - - @Struct.type('get_links_response_link') - export class GetLinksResponseLink extends Struct { - @Struct.field(UInt32) declare block_num: UInt32 - @Struct.field(BlockTimestamp) declare timestamp: BlockTimestamp - @Struct.field(Name) declare account: Name - @Struct.field('string') declare permission: string - @Struct.field('string') declare code: string - @Struct.field('string') declare action: string - @Struct.field('bool', {optional: true}) declare irreversible?: boolean - } - - @Struct.type('total_count') - export class TotalCount extends Struct { - @Struct.field(UInt32) declare value: UInt32 - @Struct.field('string') declare relation: string - } - - @Struct.type('get_links_response') - export class GetLinksResponse extends Struct { - @Struct.field(Float64) declare query_time_ms: Float64 - @Struct.field('bool') declare cached: boolean - @Struct.field('bool', {optional: true}) declare hot_only?: boolean - @Struct.field(UInt32, {optional: true}) declare lib?: UInt32 - @Struct.field(TotalCount) declare total: TotalCount - @Struct.field(GetLinksResponseLink, {array: true}) declare links: GetLinksResponseLink[] - } - - @Struct.type('approval') - export class Approval extends Struct { - @Struct.field(Name) declare actor: Name - @Struct.field(Name) declare permission: Name - @Struct.field(TimePoint) declare time: TimePoint - } - - @Struct.type('proposal') - export class Proposal extends Struct { - @Struct.field(Approval, {array: true}) declare provided_approvals: Approval[] - @Struct.field(Approval, {array: true}) declare requested_approvals: Approval[] - @Struct.field(UInt32) declare block_num: UInt32 - @Struct.field(Name) declare proposer: Name - @Struct.field(Name) declare proposal_name: Name - @Struct.field(UInt64) declare primary_key: UInt64 - @Struct.field('bool') declare executed: boolean - } - - @Struct.type('get_proposals_response') - export class GetProposalsResponse extends Struct { - @Struct.field(Float64, {optional: true}) declare query_time?: Float64 - @Struct.field('bool') declare cached: boolean - @Struct.field(TotalCount) declare total: TotalCount - @Struct.field(Proposal, {array: true}) declare proposals: Proposal[] - @Struct.field(Float64) declare query_time_ms: Float64 - } - - @Struct.type('act') - export class ActionAct extends Struct { - @Struct.field(Name) declare account: Name - @Struct.field(Name) declare name: Name - @Struct.field(PermissionLevel, {array: true}) declare authorization: PermissionLevel[] - @Struct.field('any') declare data: any - } - - @Struct.type('account_sequence') - export class AccountSequence extends Struct { - @Struct.field(Name) declare account: Name - @Struct.field(UInt64) declare sequence: UInt64 - } - - @Struct.type('action_receipt') - export class ActionReceipt extends Struct { - @Struct.field(Name) declare receiver: Name - @Struct.field(UInt64) declare global_sequence: UInt64 - @Struct.field(UInt64) declare recv_sequence: UInt64 - @Struct.field(AccountSequence, {array: true}) declare auth_sequence: AccountSequence[] - } - - @Struct.type('action_ram_delta') - export class ActionRamDelta extends Struct { - @Struct.field(Name) declare account: Name - @Struct.field(Int64) declare delta: Int64 - } - - @Struct.type('action') - export class Action extends Struct { - @Struct.field(BlockTimestamp) declare timestamp: BlockTimestamp - @Struct.field(UInt32) declare block_num: UInt32 - @Struct.field(Checksum256, {optional: true}) declare block_id: Checksum256 - @Struct.field(Checksum256) declare trx_id: Checksum256 - @Struct.field(ActionAct) declare act: ActionAct - @Struct.field(ActionReceipt, {array: true, optional: true}) - declare receipts: ActionReceipt[] - @Struct.field(ActionRamDelta, {array: true, optional: true}) - declare account_ram_deltas: ActionRamDelta[] - @Struct.field(UInt64) declare global_sequence: UInt64 - @Struct.field(Name) declare producer: Name - @Struct.field(UInt64) declare action_ordinal: UInt64 - @Struct.field(UInt64) declare creator_action_ordinal: UInt64 - } - - @Struct.type('get_actions_response') - export class GetActionsResponse extends Struct { - @Struct.field(Float64) declare query_time_ms: Float64 - @Struct.field('bool') declare cached: boolean - @Struct.field(UInt32, {optional: true}) declare lib?: UInt32 - @Struct.field(TotalCount) declare total: TotalCount - @Struct.field(Action, {array: true}) declare actions: Action[] - } - - @Struct.type('account_info') - export class AccountInfo extends Struct { - @Struct.field(Name) declare name: Name - @Struct.field(Checksum256) declare trx_id: Checksum256 - @Struct.field(TimePoint) declare timestamp: TimePoint - } - - @Struct.type('get_created_accounts_response') - export class GetCreatedAccountsResponse extends Struct { - @Struct.field(Float64) declare query_time_ms: Float64 - @Struct.field(AccountInfo, {array: true}) declare accounts: AccountInfo[] - } - - @Struct.type('get_creator_response') - export class GetCreatorResponse extends Struct { - @Struct.field(Float64) declare query_time_ms: Float64 - @Struct.field(Name) declare account: Name - @Struct.field(Name) declare creator: Name - @Struct.field(BlockTimestamp) declare timestamp: BlockTimestamp - @Struct.field(UInt32) declare block_num: UInt32 - @Struct.field(Checksum256) declare trx_id: Checksum256 - } - - @Struct.type('delta') - export class Delta extends Struct { - @Struct.field(BlockTimestamp) declare timestamp: BlockTimestamp - @Struct.field(UInt8) declare present: UInt8 - @Struct.field(Name) declare code: Name - @Struct.field(Name) declare scope: Name - @Struct.field(Name) declare table: Name - @Struct.field(Name) declare primary_key: Name - @Struct.field(Name) declare payer: Name - @Struct.field(UInt64) declare block_num: UInt64 - @Struct.field(Checksum256) declare block_id: Checksum256 - @Struct.field('any') declare data: any - } - - @Struct.type('get_deltas_response') - export class GetDeltasResponse extends Struct { - @Struct.field(Float64) declare query_time_ms: Float64 - @Struct.field(TotalCount) declare total: TotalCount - @Struct.field(Delta, {array: true}) declare deltas: Delta[] - } - - @Struct.type('get_table_state_response') - export class GetTableStateResponse extends Struct { - @Struct.field(Float64) declare query_time_ms: Float64 - @Struct.field(Name) declare code: Name - @Struct.field(Name) declare table: Name - @Struct.field(UInt64) declare block_num: UInt64 - @Struct.field('string') declare after_key: string - @Struct.field('string') declare next_key: string - @Struct.field('any', {array: true}) declare results: any[] - } - - @Struct.type('get_key_accounts_response') - export class GetKeyAccountsResponse extends Struct { - @Struct.field(Name, {array: true}) declare account_names: Name[] - } - - @Struct.type('token_info') - export class TokenInfo extends Struct { - @Struct.field('string') declare symbol: string - @Struct.field(Float64) declare amount: Float64 - @Struct.field('string') declare contract: 'string' - @Struct.field(UInt32, {optional: true}) declare precision?: UInt32 - @Struct.field('string', {optional: true}) declare error?: string - } - @Struct.type('get_tokens_response') - export class GetTokensResponse extends Struct { - @Struct.field(Name) declare account: Name - @Struct.field(Float64) declare query_time_ms: Float64 - @Struct.field(TokenInfo, {array: true}) declare tokens: TokenInfo[] - } - - @Struct.type('get_transaction_response') - export class GetTransactionResponse extends Struct { - @Struct.field(Float64) declare query_time_ms: Float64 - @Struct.field('bool') declare executed: boolean - @Struct.field(Checksum256) declare trx_id: Checksum256 - @Struct.field(UInt32) declare lib: UInt32 - @Struct.field('bool') declare cached_lib: boolean - @Struct.field(Action, {array: true}) declare actions: Action[] - } - @Struct.type('get_account_response_link') - export class GetAccountResponseLink extends Struct { - @Struct.field(BlockTimestamp) declare timestamp: BlockTimestamp - @Struct.field(Name) declare permission: Name - @Struct.field(Name) declare code: Name - @Struct.field(Name) declare action: Name - } - - @Struct.type('get_account_response') - export class GetAccountResponse extends Struct { - @Struct.field(Float64) declare query_time_ms: Float64 - @Struct.field(API.v1.AccountObject) declare account: API.v1.AccountObject - @Struct.field(GetAccountResponseLink, {array: true}) declare links: GetAccountResponseLink[] - @Struct.field(TokenInfo, {array: true}) declare tokens: TokenInfo[] - @Struct.field(UInt64) declare total_actions: UInt64 - @Struct.field(Action, {array: true}) declare actions: Action[] - } - - // For the `health` field - @Struct.type('health_entry') - export class HealthEntry extends Struct { - @Struct.field('string') declare service: string - @Struct.field('string') declare status: string - @Struct.field('any', {optional: true}) declare service_data?: - | NodeosRPCServiceData - | ElasticsearchServiceData - @Struct.field(UInt64) declare time: UInt64 - } - - @Struct.type('nodeos_rpc_service_data') - export class NodeosRPCServiceData extends Struct { - @Struct.field(UInt64) declare head_block_num: UInt64 - @Struct.field('string') declare head_block_time: string - @Struct.field(UInt64) declare time_offset: UInt64 - @Struct.field(UInt64) declare last_irreversible_block: UInt64 - @Struct.field('string') declare chain_id: string - } - - @Struct.type('elasticsearch_service_data') - export class ElasticsearchServiceData extends Struct { - @Struct.field('string') declare active_shards: string - @Struct.field(UInt64) declare head_offset: UInt64 - @Struct.field(UInt64) declare first_indexed_block: UInt64 - @Struct.field(UInt64) declare last_indexed_block: UInt64 - @Struct.field(UInt64) declare total_indexed_blocks: UInt64 - @Struct.field(UInt64) declare missing_blocks: UInt64 - @Struct.field('string') declare missing_pct: string - } - - // For the `features` field - @Struct.type('streaming_features') - export class StreamingFeatures extends Struct { - @Struct.field('bool') declare enable: boolean - @Struct.field('bool') declare traces: boolean - @Struct.field('bool') declare deltas: boolean - } - - @Struct.type('tables_features') - export class TablesFeatures extends Struct { - @Struct.field('bool') declare proposals: boolean - @Struct.field('bool') declare accounts: boolean - @Struct.field('bool') declare voters: boolean - } - - // For the `features` in the main type - @Struct.type('features') - export class Features extends Struct { - @Struct.field(StreamingFeatures) declare streaming: StreamingFeatures - @Struct.field(TablesFeatures) declare tables: TablesFeatures - @Struct.field('bool') declare index_deltas: boolean - @Struct.field('bool') declare index_transfer_memo: boolean - @Struct.field('bool') declare index_all_deltas: boolean - @Struct.field('bool') declare deferred_trx: boolean - @Struct.field('bool') declare failed_trx: boolean - @Struct.field('bool') declare resource_limits: boolean - @Struct.field('bool') declare resource_usage: boolean - } - - // The main type - @Struct.type('get_health_response') - export class GetHealthResponse extends Struct { - @Struct.field('string') declare version: string - @Struct.field('string') declare version_hash: string - @Struct.field('string') declare host: string - @Struct.field(HealthEntry, {array: true}) declare health: HealthEntry[] - @Struct.field(Features) declare features: Features - @Struct.field(Float64) declare query_time_ms: Float64 - } -} +export * as v2 from './endpoints/v2/types' diff --git a/test/api.ts b/test/api.ts index 6569ed8..6cb9653 100644 --- a/test/api.ts +++ b/test/api.ts @@ -1,14 +1,6 @@ import {assert} from 'chai' -import { - APIClient, - Checksum256, - FetchProvider, - Float64, - Name, - Serializer, - UInt64, -} from '@wharfkit/antelope' +import {APIClient, Checksum256, FetchProvider, Float64, Name, UInt64} from '@wharfkit/antelope' import {mockFetch} from '@wharfkit/mock-data' import {HyperionAPIClient, Types} from '$lib' @@ -27,7 +19,7 @@ suite('Hyperion API', function () { test('get_health', async function () { const response = await hyperion.v2.get_health() - assert.instanceOf(response, Types.V2.GetHealthResponse) + assert.instanceOf(response, Types.v2.GetHealthResponse) assert.equal(response.host, 'wax.blokcrafters.io') assert.equal(response.version, '3.3.9-4') assert.equal(response.version_hash, '498bc8ec75429476add847921738ae239ae2921a') @@ -37,7 +29,7 @@ suite('Hyperion API', function () { test('get_voters', async function () { const response = await hyperion.v2.state.get_voters('teamgreymass', true, 100, 200) - assert.instanceOf(response, Types.V2.GetVotersResponse) + assert.instanceOf(response, Types.v2.GetVotersResponse) assert.equal(response.voters.length, 100) assert.instanceOf(response.voters[0].account, Name) assert.equal(String(response.voters[0].account), 'j3.rq.wam') @@ -48,7 +40,7 @@ suite('Hyperion API', function () { test('get_links', async function () { const response = await hyperion.v2.state.get_links('teamgreymass') - assert.instanceOf(response, Types.V2.GetLinksResponse) + assert.instanceOf(response, Types.v2.GetLinksResponse) assert.isArray(response.links) assert.equal(response.links.length, 10) assert.instanceOf(response.links[0].account, Name) @@ -60,7 +52,7 @@ suite('Hyperion API', function () { limit: 10, }) - assert.instanceOf(response, Types.V2.GetProposalsResponse) + assert.instanceOf(response, Types.v2.GetProposalsResponse) assert.isArray(response.proposals) assert.equal(response.proposals.length, 10) assert.instanceOf(response.proposals[0].proposer, Name) @@ -71,7 +63,7 @@ suite('Hyperion API', function () { 'EOS8KmhygTrrvtW7zJd6HXWrNqA5WX9NzScZ37JyXRiwpiJN2g2rR' ) - assert.instanceOf(response, Types.V2.GetKeyAccountsResponse) + assert.instanceOf(response, Types.v2.GetKeyAccountsResponse) assert.equal(response.account_names.length, 1) assert.instanceOf(response.account_names[0], Name) assert.equal(String(response.account_names[0]), 'teamgreymass') @@ -80,7 +72,7 @@ suite('Hyperion API', function () { test('get_tokens', async function () { const response = await hyperion.v2.state.get_tokens('teamgreymass') - assert.instanceOf(response, Types.V2.GetTokensResponse) + assert.instanceOf(response, Types.v2.GetTokensResponse) assert.instanceOf(response.account, Name) assert.equal(response.tokens.length, 2) assert.instanceOf(response.tokens[0].amount, Float64) @@ -89,7 +81,7 @@ suite('Hyperion API', function () { test('get_account', async function () { const response = await hyperion.v2.state.get_account('teamgreymass') - assert.instanceOf(response, Types.V2.GetAccountResponse) + assert.instanceOf(response, Types.v2.GetAccountResponse) assert.instanceOf(response.account.account_name, Name) assert.equal(response.tokens.length, 2) assert.instanceOf(response.tokens[0].amount, Float64) @@ -105,7 +97,7 @@ suite('Hyperion API', function () { true ) - assert.instanceOf(response, Types.V2.GetABISnapshotResponse) + assert.instanceOf(response, Types.v2.GetABISnapshotResponse) assert.equal(response.abi.version, 'eosio::abi/1.1') }) @@ -116,7 +108,7 @@ suite('Hyperion API', function () { limit: 5, }) - assert.instanceOf(response, Types.V2.GetActionsResponse) + assert.instanceOf(response, Types.v2.GetActionsResponse) assert.isArray(response.actions) assert.equal(response.actions.length, 5) assert.instanceOf(response.actions[0].act.name, Name) @@ -133,7 +125,7 @@ suite('Hyperion API', function () { 'a51a3cc53b2ff5d5b25ad44b1e3ef5f796ce3ca60101ea05b3be64e68b684ccb' ) - assert.instanceOf(response, Types.V2.GetTransactionResponse) + assert.instanceOf(response, Types.v2.GetTransactionResponse) assert.instanceOf(response.trx_id, Checksum256) assert.equal(response.actions.length, 5) assert.instanceOf(response.actions[0].act.name, Name) @@ -147,7 +139,7 @@ suite('Hyperion API', function () { 'teamgreymass' ) - assert.instanceOf(response, Types.V2.GetDeltasResponse) + assert.instanceOf(response, Types.v2.GetDeltasResponse) assert.equal(response.deltas.length, 10) assert.instanceOf(response.deltas[0].code, Name) }) @@ -159,7 +151,7 @@ suite('Hyperion API', function () { 267000000 ) - assert.instanceOf(response, Types.V2.GetTableStateResponse) + assert.instanceOf(response, Types.v2.GetTableStateResponse) assert.instanceOf(response.code, Name) assert.equal(response.results.length, 1) }) @@ -167,7 +159,7 @@ suite('Hyperion API', function () { test('get_created_accounts', async function () { const response = await hyperion.v2.history.get_created_accounts('teamgreymass') - assert.instanceOf(response, Types.V2.GetCreatedAccountsResponse) + assert.instanceOf(response, Types.v2.GetCreatedAccountsResponse) assert.isArray(response.accounts) assert.equal(response.accounts.length, 4) assert.instanceOf(response.accounts[0].name, Name) @@ -178,7 +170,7 @@ suite('Hyperion API', function () { limit: 1, }) - assert.instanceOf(response, Types.V2.GetCreatedAccountsResponse) + assert.instanceOf(response, Types.v2.GetCreatedAccountsResponse) assert.isArray(response.accounts) assert.equal(response.accounts.length, 1) assert.instanceOf(response.accounts[0].name, Name) @@ -189,7 +181,7 @@ suite('Hyperion API', function () { skip: 1, }) - assert.instanceOf(response2, Types.V2.GetCreatedAccountsResponse) + assert.instanceOf(response2, Types.v2.GetCreatedAccountsResponse) assert.isArray(response2.accounts) assert.equal(response2.accounts.length, 1) assert.instanceOf(response2.accounts[0].name, Name) @@ -199,10 +191,19 @@ suite('Hyperion API', function () { test('get_creator', async function () { const response = await hyperion.v2.history.get_creator('teamgreymass') - assert.instanceOf(response, Types.V2.GetCreatorResponse) + assert.instanceOf(response, Types.v2.GetCreatorResponse) assert.instanceOf(response.creator, Name) assert.equal(String(response.creator), 'gqyqi.waa') }) + + // test('get_creator eosio', async function () { + // const response = await hyperion.v2.history.get_creator('eosio') + // + // assert.instanceOf(response, Types.v2.GetCreatorResponse) + // assert.instanceOf(response.creator, Name) + // assert.equal(String(response.creator), '__self__') + // assert.equal(String(response.trx_id), '') + // }) }) }) }) diff --git a/test/data/9a482202a8200a1195142218f306079b32dc4764.json b/test/data/9a482202a8200a1195142218f306079b32dc4764.json new file mode 100644 index 0000000..537c936 --- /dev/null +++ b/test/data/9a482202a8200a1195142218f306079b32dc4764.json @@ -0,0 +1,19 @@ +{ + "request": { + "path": "https://wax.blokcrafters.io/v2/history/get_creator?account=eosio", + "params": { + "method": "GET" + } + }, + "status": 200, + "json": { + "query_time_ms": 0.262, + "cached": true, + "account": "eosio", + "creator": "__self__", + "timestamp": "2019-06-05T12:00:00.000", + "block_num": 1, + "trx_id": "" + }, + "text": "{\"query_time_ms\":0.262,\"cached\":true,\"account\":\"eosio\",\"creator\":\"__self__\",\"timestamp\":\"2019-06-05T12:00:00.000\",\"block_num\":1,\"trx_id\":\"\"}" +} \ No newline at end of file diff --git a/test/tsconfig.json b/test/tsconfig.json index e196c68..6216a8d 100644 --- a/test/tsconfig.json +++ b/test/tsconfig.json @@ -6,7 +6,10 @@ "module": "commonjs", "target": "es6", "types": ["mocha", "node"], - "baseUrl": ".." + "baseUrl": "..", + "paths": { + "$lib": ["."] + }, }, "include": ["*.ts", "**/*.ts"] } diff --git a/yarn.lock b/yarn.lock index d3ed8c7..47539d1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -213,10 +213,10 @@ resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.8.1.tgz#8c4bb756cc2aa7eaf13cfa5e69c83afb3260c20c" integrity sha512-PWiOzLIUAjN/w5K17PoF4n6sKBw0gqLHPhywmYHP4t1VFQQVYeb1yWsJwnMVEMl3tUHME7X/SJPZLmtG7XBDxQ== -"@eslint/eslintrc@^2.1.2": - version "2.1.2" - resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-2.1.2.tgz#c6936b4b328c64496692f76944e755738be62396" - integrity sha512-+wvgpDsrB1YqAMdEUCcnTlpfVBH7Vqn6A/NT3D8WVXFIaKMlErPIZT3oCIAVCOtarRpMtelZLqJeU3t7WY6X6g== +"@eslint/eslintrc@^2.1.4": + version "2.1.4" + resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-2.1.4.tgz#388a269f0f25c1b6adc317b5a2c55714894c70ad" + integrity sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ== dependencies: ajv "^6.12.4" debug "^4.3.2" @@ -228,18 +228,18 @@ minimatch "^3.1.2" strip-json-comments "^3.1.1" -"@eslint/js@8.49.0": - version "8.49.0" - resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.49.0.tgz#86f79756004a97fa4df866835093f1df3d03c333" - integrity sha512-1S8uAY/MTJqVx0SC4epBq+N2yhuwtNwLbJYNZyhL2pO1ZVKn5HFXav5T41Ryzy9K9V7ZId2JB2oy/W4aCd9/2w== +"@eslint/js@8.57.0": + version "8.57.0" + resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.57.0.tgz#a5417ae8427873f1dd08b70b3574b453e67b5f7f" + integrity sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g== -"@humanwhocodes/config-array@^0.11.11": - version "0.11.11" - resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.11.11.tgz#88a04c570dbbc7dd943e4712429c3df09bc32844" - integrity sha512-N2brEuAadi0CcdeMXUkhbZB84eskAc8MEX1By6qEchoVywSgXPIjou4rYsl0V3Hj0ZnuGycGCjdNgockbzeWNA== +"@humanwhocodes/config-array@^0.11.14": + version "0.11.14" + resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.11.14.tgz#d78e481a039f7566ecc9660b4ea7fe6b1fec442b" + integrity sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg== dependencies: - "@humanwhocodes/object-schema" "^1.2.1" - debug "^4.1.1" + "@humanwhocodes/object-schema" "^2.0.2" + debug "^4.3.1" minimatch "^3.0.5" "@humanwhocodes/module-importer@^1.0.1": @@ -247,10 +247,10 @@ resolved "https://registry.yarnpkg.com/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz#af5b2691a22b44be847b0ca81641c5fb6ad0172c" integrity sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA== -"@humanwhocodes/object-schema@^1.2.1": - version "1.2.1" - resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz#b520529ec21d8e5945a1851dfd1c32e94e39ff45" - integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA== +"@humanwhocodes/object-schema@^2.0.2": + version "2.0.2" + resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-2.0.2.tgz#d9fae00a2d5cb40f92cfe64b47ad749fbc38f917" + integrity sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw== "@istanbuljs/load-nyc-config@^1.0.0": version "1.1.0" @@ -357,11 +357,11 @@ magic-string "^0.27.0" "@rollup/plugin-json@^6.0.0": - version "6.0.0" - resolved "https://registry.yarnpkg.com/@rollup/plugin-json/-/plugin-json-6.0.0.tgz#199fea6670fd4dfb1f4932250569b14719db234a" - integrity sha512-i/4C5Jrdr1XUarRhVu27EEwjt4GObltD7c+MkCIpO2QIbojw8MUs+CCTqOphQi3Qtg1FLmYt+l+6YeoIf51J7w== + version "6.1.0" + resolved "https://registry.yarnpkg.com/@rollup/plugin-json/-/plugin-json-6.1.0.tgz#fbe784e29682e9bb6dee28ea75a1a83702e7b805" + integrity sha512-EGI2te5ENk1coGeADSIwZ7G2Q8CJS2sF120T7jLw4xFw9n7wIOXHo+kIYRAoVpJAN+kmqZSoO3Fp4JtoNF4ReA== dependencies: - "@rollup/pluginutils" "^5.0.1" + "@rollup/pluginutils" "^5.1.0" "@rollup/plugin-node-resolve@^15.0.1": version "15.2.1" @@ -393,11 +393,11 @@ terser "^5.17.4" "@rollup/plugin-typescript@^11.0.0": - version "11.1.3" - resolved "https://registry.yarnpkg.com/@rollup/plugin-typescript/-/plugin-typescript-11.1.3.tgz#8172858a1e5f4c181aebc61f8920002fd5e04b91" - integrity sha512-8o6cNgN44kQBcpsUJTbTXMTtb87oR1O0zgP3Dxm71hrNgparap3VujgofEilTYJo+ivf2ke6uy3/E5QEaiRlDA== + version "11.1.6" + resolved "https://registry.yarnpkg.com/@rollup/plugin-typescript/-/plugin-typescript-11.1.6.tgz#724237d5ec12609ec01429f619d2a3e7d4d1b22b" + integrity sha512-R92yOmIACgYdJ7dJ97p4K69I8gg6IEHt8M7dUBxN3W6nrO8uUxX5ixl0yU/N3aZTi8WhPuICvOHXQvF6FaykAA== dependencies: - "@rollup/pluginutils" "^5.0.1" + "@rollup/pluginutils" "^5.1.0" resolve "^1.22.1" "@rollup/plugin-virtual@^3.0.1": @@ -414,6 +414,15 @@ estree-walker "^2.0.2" picomatch "^2.3.1" +"@rollup/pluginutils@^5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-5.1.0.tgz#7e53eddc8c7f483a4ad0b94afb1f7f5fd3c771e0" + integrity sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g== + dependencies: + "@types/estree" "^1.0.0" + estree-walker "^2.0.2" + picomatch "^2.3.1" + "@tsconfig/node10@^1.0.7": version "1.0.9" resolved "https://registry.yarnpkg.com/@tsconfig/node10/-/node10-1.0.9.tgz#df4907fc07a886922637b15e02d4cebc4c0021b2" @@ -567,6 +576,11 @@ "@typescript-eslint/types" "5.62.0" eslint-visitor-keys "^3.3.0" +"@ungap/structured-clone@^1.2.0": + version "1.2.0" + resolved "https://registry.yarnpkg.com/@ungap/structured-clone/-/structured-clone-1.2.0.tgz#756641adb587851b5ccb3e095daf27ae581c8406" + integrity sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ== + "@wharfkit/abicache@^1.2.0": version "1.2.0" resolved "https://registry.yarnpkg.com/@wharfkit/abicache/-/abicache-1.2.0.tgz#f67f7bbd854adc443c3e363d5fbe3d27ac4f8383" @@ -577,6 +591,28 @@ pako "^2.0.4" tslib "^2.1.0" +"@wharfkit/abicache@^1.2.1": + version "1.2.2" + resolved "https://registry.yarnpkg.com/@wharfkit/abicache/-/abicache-1.2.2.tgz#c3d83485e3e3782ac94ced460915bad1ceee0be9" + integrity sha512-yOsYz2qQpQy7Nb8XZj62pZqp8YnmWDqFlrenYksBb9jl+1aWIpFhWd+14VEez4tUAezRH4UWW+w1SX5vhmUY9A== + dependencies: + "@wharfkit/antelope" "^1.0.2" + "@wharfkit/signing-request" "^3.1.0" + pako "^2.0.4" + tslib "^2.1.0" + +"@wharfkit/account@^1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@wharfkit/account/-/account-1.0.0.tgz#961af9a6b36208894b01c644031c7db873139451" + integrity sha512-I+5iT0DnE0oYQm9v/E+VIgyN+zd1jy8bbaJGxV2rAmHBPn48NKO9PV0EGWgZ8pfNvx/Tf5fG1kZpIbmTQ8Q+8A== + dependencies: + "@wharfkit/antelope" "^1.0.0" + "@wharfkit/common" "^1.2.0" + "@wharfkit/contract" "^1.0.0" + "@wharfkit/resources" "^1.1.0" + "@wharfkit/token" "^1.0.1" + tslib "^2.1.0" + "@wharfkit/antelope@^1.0.0": version "1.0.0" resolved "https://registry.yarnpkg.com/@wharfkit/antelope/-/antelope-1.0.0.tgz#c3057b70575991be5de3aea19e0c474614783c80" @@ -589,6 +625,18 @@ pako "^2.1.0" tslib "^2.0.3" +"@wharfkit/antelope@^1.0.2", "@wharfkit/antelope@^1.0.4", "@wharfkit/antelope@^1.0.5": + version "1.0.7" + resolved "https://registry.yarnpkg.com/@wharfkit/antelope/-/antelope-1.0.7.tgz#5ca010db963e061b2e8c47c14e55f86817718c2e" + integrity sha512-C4DRC4U+qC2XQKUgwznKX6i8xdKo+ZqxkZURrPTtY3v53IvKwj+3amTQQSpuECechS5x6ItcT+/fOFBNlQ2Juw== + dependencies: + bn.js "^4.11.9" + brorand "^1.1.0" + elliptic "^6.5.4" + hash.js "^1.0.0" + pako "^2.1.0" + tslib "^2.0.3" + "@wharfkit/common@^1.2.0": version "1.2.0" resolved "https://registry.yarnpkg.com/@wharfkit/common/-/common-1.2.0.tgz#147f783f2ba5cc6fa7dd75863ba98dd05880a9aa" @@ -596,24 +644,44 @@ dependencies: tslib "^2.1.0" +"@wharfkit/contract@^1.0.0": + version "1.1.5" + resolved "https://registry.yarnpkg.com/@wharfkit/contract/-/contract-1.1.5.tgz#2ca10090330cbb458049890076089237b644eb0e" + integrity sha512-I4w2QFvD/zb4uj5z0U4uQJLRCiZEbrT+AJ9/5goGm6SU42fsRud/k55qSBzW8Ij00OAv2h1+e8rR7xzUruXC9g== + dependencies: + "@wharfkit/abicache" "^1.2.0" + "@wharfkit/antelope" "^1.0.4" + "@wharfkit/signing-request" "^3.1.0" + tslib "^2.1.0" + "@wharfkit/mock-data@^1.2.1": - version "1.2.1" - resolved "https://registry.yarnpkg.com/@wharfkit/mock-data/-/mock-data-1.2.1.tgz#f9e74887edf0927d1580589fc64310e398fccf42" - integrity sha512-foQDXyzK80woORqmV2OUBqy9Yy2trkyPmdURRaix2X3Hr9H9cEQBet63ipkTaEIUdeR+uPyx0kaoy0dlFECTqw== + version "1.3.0" + resolved "https://registry.yarnpkg.com/@wharfkit/mock-data/-/mock-data-1.3.0.tgz#7a9caa7c7fb2ad839bc12593de1b7a546b673ae6" + integrity sha512-LkhAkrUOvG6o+lPWb2Q6JCrs9++F2XowGK42PODh35Xu9an5H+THMGjpUhTC1sPiYkfjhkmBbAzMpZbHjkXj4w== dependencies: - "@wharfkit/antelope" "^1.0.0" - "@wharfkit/session" "^1.1.0-rcfinal" + "@wharfkit/antelope" "^1.0.5" + "@wharfkit/session" "^1.2.7" "@wharfkit/wallet-plugin-privatekey" "^1.1.0" node-fetch "^2.6.1" tslib "^2.1.0" -"@wharfkit/session@^1.1.0-rcfinal": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@wharfkit/session/-/session-1.1.0.tgz#daec68be9b70dd446ac85a5c4c1d4059f3db73d8" - integrity sha512-IZA3Y0B2BSPUcD8czGCiB+E8lTPMDMs2E//cJEHCUewEX4fXQd0adVfMPqCXwtjVjos5jI3YjGAsCcg/iT2lDQ== +"@wharfkit/resources@^1.1.0": + version "1.2.1" + resolved "https://registry.yarnpkg.com/@wharfkit/resources/-/resources-1.2.1.tgz#02cbc3b2a986d622154bb71820b0af60bf0de59d" + integrity sha512-K5GCvps3wHnGk7z5wtQqtrrpt5gz18YUTYkuPXa6fPY/zim4QLFED5uNe9eULJ2dwNAJPZ9quGD8TxKtaCazrA== dependencies: - "@wharfkit/abicache" "^1.2.0" "@wharfkit/antelope" "^1.0.0" + bn.js "^4.11.9" + tslib "^2.1.0" + +"@wharfkit/session@^1.2.7": + version "1.2.8" + resolved "https://registry.yarnpkg.com/@wharfkit/session/-/session-1.2.8.tgz#84de7a2343df4a45600af6e1e3fe294785da295f" + integrity sha512-F1oC+4rqCDbt84eKI0Vd2ahhR05Zi2FefqD14PLOo8sj1s5oR5uq7Zc9orSmprkkTqnYFAh9QOck+CWe+xR+8A== + dependencies: + "@wharfkit/abicache" "^1.2.1" + "@wharfkit/account" "^1.0.0" + "@wharfkit/antelope" "^1.0.2" "@wharfkit/common" "^1.2.0" "@wharfkit/signing-request" "^3.1.0" pako "^2.0.4" @@ -627,6 +695,16 @@ "@wharfkit/antelope" "^1.0.0" tslib "^2.0.3" +"@wharfkit/token@^1.0.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@wharfkit/token/-/token-1.1.1.tgz#1625af312b4ad529d7503d2745feb90e26d91609" + integrity sha512-7xujY0tJrEaMcr4zCZ/JBSA+vdH96HUnYsTsEeTb6mpkuhxKpGlqnGqMwnHAW8n/MxW5g1WI/0abIADtX2aWow== + dependencies: + "@wharfkit/antelope" "^1.0.0" + "@wharfkit/contract" "^1.0.0" + bn.js "^4.11.9" + tslib "^2.1.0" + "@wharfkit/wallet-plugin-privatekey@^1.1.0": version "1.1.0" resolved "https://registry.yarnpkg.com/@wharfkit/wallet-plugin-privatekey/-/wallet-plugin-privatekey-1.1.0.tgz#5985bff61895c54d2afbef359cd42da4f3871c7d" @@ -756,9 +834,9 @@ assertion-error@^1.1.0: integrity sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw== async@^3.2.4: - version "3.2.4" - resolved "https://registry.yarnpkg.com/async/-/async-3.2.4.tgz#2d22e00f8cddeb5fde5dd33522b56d1cf569a81c" - integrity sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ== + version "3.2.5" + resolved "https://registry.yarnpkg.com/async/-/async-3.2.5.tgz#ebd52a8fdaf7a2289a24df399f8d8485c8a46b66" + integrity sha512-baNZyqaaLhyLVKm/DlvdW051MSgO6b8eVfIezl9E5PqWxFgzLm/wQntEW4zOytVburDEr0JlALEpdOFwvErLsg== balanced-match@^1.0.0: version "1.0.2" @@ -858,17 +936,17 @@ caniuse-lite@^1.0.30001517: integrity sha512-48jLyUkiWFfhm/afF7cQPqPjaUmSraEhK4j+FCTJpgnGGEZHqyLe3hmWH7lIooZdSzXL0ReMvHz0vKDoTBsrwg== chai@^4.3.4: - version "4.3.8" - resolved "https://registry.yarnpkg.com/chai/-/chai-4.3.8.tgz#40c59718ad6928da6629c70496fe990b2bb5b17c" - integrity sha512-vX4YvVVtxlfSZ2VecZgFUTU5qPCYsobVI2O9FmwEXBhDigYGQA6jRXCycIs1yJnnWbZ6/+a2zNIF5DfVCcJBFQ== + version "4.4.1" + resolved "https://registry.yarnpkg.com/chai/-/chai-4.4.1.tgz#3603fa6eba35425b0f2ac91a009fe924106e50d1" + integrity sha512-13sOfMv2+DWduEU+/xbun3LScLoqN17nBeTLUsmDfKdoiC1fr0n9PU4guu4AhRcOVFk/sW8LyZWHuhWtQZiF+g== dependencies: assertion-error "^1.1.0" - check-error "^1.0.2" - deep-eql "^4.1.2" - get-func-name "^2.0.0" - loupe "^2.3.1" + check-error "^1.0.3" + deep-eql "^4.1.3" + get-func-name "^2.0.2" + loupe "^2.3.6" pathval "^1.1.1" - type-detect "^4.0.5" + type-detect "^4.0.8" chalk@^2.4.2: version "2.4.2" @@ -887,10 +965,12 @@ chalk@^4.0.0, chalk@^4.1.0: ansi-styles "^4.1.0" supports-color "^7.1.0" -check-error@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/check-error/-/check-error-1.0.2.tgz#574d312edd88bb5dd8912e9286dd6c0aed4aac82" - integrity sha512-BrgHpW9NURQgzoNyjfq0Wu6VFO6D7IZEmJNdtgNqpzGG8RuNFHt2jQxWlAs4HMe119chBnv+34syEZtc6IhLtA== +check-error@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/check-error/-/check-error-1.0.3.tgz#a6502e4312a7ee969f646e83bb3ddd56281bd694" + integrity sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg== + dependencies: + get-func-name "^2.0.2" chokidar@3.5.3: version "3.5.3" @@ -988,7 +1068,7 @@ cross-spawn@^7.0.0, cross-spawn@^7.0.2, cross-spawn@^7.0.3: shebang-command "^2.0.0" which "^2.0.1" -debug@4.3.4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.2, debug@^4.3.4: +debug@4.3.4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.4: version "4.3.4" resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== @@ -1005,7 +1085,7 @@ decamelize@^4.0.0: resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-4.0.0.tgz#aa472d7bf660eb15f3494efd531cab7f2a709837" integrity sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ== -deep-eql@^4.1.2: +deep-eql@^4.1.3: version "4.1.3" resolved "https://registry.yarnpkg.com/deep-eql/-/deep-eql-4.1.3.tgz#7c7775513092f7df98d8df9996dd085eb668cc6d" integrity sha512-WaEtAOpRA1MQ0eohqZjpGD8zdI0Ovsm8mmFhaDN8dvDZzyoUMcYDnf5Y6iu7HTXxf8JDS23qWa4a+hKCDyOPzw== @@ -1143,17 +1223,18 @@ eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1, eslint-visitor-keys@^3.4 integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag== eslint@^8.26.0: - version "8.49.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.49.0.tgz#09d80a89bdb4edee2efcf6964623af1054bf6d42" - integrity sha512-jw03ENfm6VJI0jA9U+8H5zfl5b+FvuU3YYvZRdZHOlU2ggJkxrlkJH4HcDrZpj6YwD8kuYqvQM8LyesoazrSOQ== + version "8.57.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.57.0.tgz#c786a6fd0e0b68941aaf624596fb987089195668" + integrity sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ== dependencies: "@eslint-community/eslint-utils" "^4.2.0" "@eslint-community/regexpp" "^4.6.1" - "@eslint/eslintrc" "^2.1.2" - "@eslint/js" "8.49.0" - "@humanwhocodes/config-array" "^0.11.11" + "@eslint/eslintrc" "^2.1.4" + "@eslint/js" "8.57.0" + "@humanwhocodes/config-array" "^0.11.14" "@humanwhocodes/module-importer" "^1.0.1" "@nodelib/fs.walk" "^1.2.8" + "@ungap/structured-clone" "^1.2.0" ajv "^6.12.4" chalk "^4.0.0" cross-spawn "^7.0.2" @@ -1390,10 +1471,10 @@ get-caller-file@^2.0.1, get-caller-file@^2.0.5: resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== -get-func-name@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/get-func-name/-/get-func-name-2.0.0.tgz#ead774abee72e20409433a066366023dd6887a41" - integrity sha512-Hm0ixYtaSZ/V7C8FJrtZIuBBI+iSgL+1Aq82zSu8VQNB4S3Gk8e7Qs3VwBDJAhmRZcFqkl3tQu36g/Foh5I5ig== +get-func-name@^2.0.1, get-func-name@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/get-func-name/-/get-func-name-2.0.2.tgz#0d7cf20cd13fda808669ffa88f4ffc7a3943fc41" + integrity sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ== get-package-type@^0.1.0: version "0.1.0" @@ -1427,17 +1508,16 @@ glob-parent@^6.0.2: dependencies: is-glob "^4.0.3" -glob@7.2.0: - version "7.2.0" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.0.tgz#d15535af7732e02e948f4c41628bd910293f6023" - integrity sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q== +glob@8.1.0, glob@^8.0.3: + version "8.1.0" + resolved "https://registry.yarnpkg.com/glob/-/glob-8.1.0.tgz#d388f656593ef708ee3e34640fdfb99a9fd1c33e" + integrity sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ== dependencies: fs.realpath "^1.0.0" inflight "^1.0.4" inherits "2" - minimatch "^3.0.4" + minimatch "^5.0.1" once "^1.3.0" - path-is-absolute "^1.0.0" glob@^7.0.3, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6: version "7.2.3" @@ -1451,17 +1531,6 @@ glob@^7.0.3, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6: once "^1.3.0" path-is-absolute "^1.0.0" -glob@^8.0.3: - version "8.1.0" - resolved "https://registry.yarnpkg.com/glob/-/glob-8.1.0.tgz#d388f656593ef708ee3e34640fdfb99a9fd1c33e" - integrity sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^5.0.1" - once "^1.3.0" - globals@^11.1.0: version "11.12.0" resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" @@ -1849,12 +1918,12 @@ log-symbols@4.1.0: chalk "^4.1.0" is-unicode-supported "^0.1.0" -loupe@^2.3.1: - version "2.3.6" - resolved "https://registry.yarnpkg.com/loupe/-/loupe-2.3.6.tgz#76e4af498103c532d1ecc9be102036a21f787b53" - integrity sha512-RaPMZKiMy8/JruncMU5Bt6na1eftNoo++R4Y+N2FrxkDVTrGvcyzFTsaGif4QTeKESheMGegbhw6iUAq+5A8zA== +loupe@^2.3.6: + version "2.3.7" + resolved "https://registry.yarnpkg.com/loupe/-/loupe-2.3.7.tgz#6e69b7d4db7d3ab436328013d37d1c8c3540c697" + integrity sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA== dependencies: - get-func-name "^2.0.0" + get-func-name "^2.0.1" lru-cache@^5.1.1: version "5.1.1" @@ -1970,9 +2039,9 @@ minimist@^1.2.6: integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== mocha@^10.1.0: - version "10.2.0" - resolved "https://registry.yarnpkg.com/mocha/-/mocha-10.2.0.tgz#1fd4a7c32ba5ac372e03a17eef435bd00e5c68b8" - integrity sha512-IDY7fl/BecMwFHzoqF2sg/SHHANeBoMMXFlS9r0OXKDssYE1M5O43wUY/9BVPeIvfH2zmEbBfseqN9gBQZzXkg== + version "10.3.0" + resolved "https://registry.yarnpkg.com/mocha/-/mocha-10.3.0.tgz#0e185c49e6dccf582035c05fa91084a4ff6e3fe9" + integrity sha512-uF2XJs+7xSLsrmIvn37i/wnc91nw7XjOQB8ccyx5aEgdnohr7n+rEiZP23WkCYHjilR6+EboEnbq/ZQDz4LSbg== dependencies: ansi-colors "4.1.1" browser-stdout "1.3.1" @@ -1981,13 +2050,12 @@ mocha@^10.1.0: diff "5.0.0" escape-string-regexp "4.0.0" find-up "5.0.0" - glob "7.2.0" + glob "8.1.0" he "1.2.0" js-yaml "4.1.0" log-symbols "4.1.0" minimatch "5.0.1" ms "2.1.3" - nanoid "3.3.3" serialize-javascript "6.0.0" strip-json-comments "3.1.1" supports-color "8.1.1" @@ -2006,11 +2074,6 @@ ms@2.1.3: resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== -nanoid@3.3.3: - version "3.3.3" - resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.3.tgz#fd8e8b7aa761fe807dba2d1b98fb7241bb724a25" - integrity sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w== - natural-compare-lite@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz#17b09581988979fddafe0201e931ba933c96cbb4" @@ -2334,9 +2397,9 @@ rollup-plugin-dts@^5.2.0: "@babel/code-frame" "^7.22.5" rollup@^3.17.2: - version "3.29.2" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-3.29.2.tgz#cbc76cd5b03b9f9e93be991d23a1dff9c6d5b740" - integrity sha512-CJouHoZ27v6siztc21eEQGo0kIcE5D1gVPA571ez0mMYb25LGYGKnVNXpEj5MGlepmDWGXNjDB5q7uNiPHC11A== + version "3.29.4" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-3.29.4.tgz#4d70c0f9834146df8705bfb69a9a19c9e1109981" + integrity sha512-oWzmBZwvYrU0iJHtDmhsm662rC15FRXmcjCk1xD771dFDx5jJ02ufAQQTn0etB2emNk4J9EZg/yWKpsn9BWGRw== optionalDependencies: fsevents "~2.3.2" @@ -2568,9 +2631,9 @@ trim-repeated@^1.0.0: escape-string-regexp "^1.0.2" ts-node@^10.0.0: - version "10.9.1" - resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.9.1.tgz#e73de9102958af9e1f0b168a6ff320e25adcff4b" - integrity sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw== + version "10.9.2" + resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.9.2.tgz#70f021c9e185bccdca820e26dc413805c101c71f" + integrity sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ== dependencies: "@cspotcode/source-map-support" "^0.8.0" "@tsconfig/node10" "^1.0.7" @@ -2619,7 +2682,7 @@ type-check@^0.4.0, type-check@~0.4.0: dependencies: prelude-ls "^1.2.1" -type-detect@^4.0.0, type-detect@^4.0.5: +type-detect@^4.0.0, type-detect@^4.0.8: version "4.0.8" resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c" integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==