@cityofzion/dora-ts
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -0,0 +0,0 @@ { |
export * from './neo'; | ||
export * from './neo_legacy'; |
@@ -0,0 +0,0 @@ "use strict"; |
export * from './rest'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import type { AddressStatsResponse, AssetResponse, AssetsResponse, BalanceResponse, BlockResponse, BlocksResponse, ContractResponse, ContractsResponse, ContractTransfersResponse, GetAddressAbstractsResponse, GetAllNodesResponse, GetClaimableResponse, GetUnclaimedResponse, HeightResponse, InvocationStatsResponse, LogResponse, StorageResponse, TransactionAbstractsResponse, TransactionResponse, TransactionsResponse, TransferHistoryResponse } from '../../interfaces/api/neo_legacy'; |
@@ -0,0 +0,0 @@ "use strict"; |
export * from './rest'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import type { AddressTransactionsResponse, AddressTXFullResponse, AssetResponse, BalanceResponse, BlockResponse, BlocksResponse, ContractResponse, ContractsResponse, GetAddressAbstractsResponse, GetAllNodesResponse, HeightResponse, InvocationStatsResponse, LogResponse, TransactionResponse, TransactionsResponse, TransferHistoryResponse, VoterResponse } from '../../interfaces/api/neo'; |
@@ -0,0 +0,0 @@ "use strict"; |
import type { AxiosInstance } from 'axios'; | ||
export declare const DORA_URL = "https://dora.coz.io"; | ||
export declare const AXIOS_DORA: (version: string) => AxiosInstance; |
@@ -0,0 +0,0 @@ "use strict"; |
export * as api from './api'; | ||
export * from './interfaces'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export interface AddressAbstractEntry { |
"use strict"; | ||
exports.__esModule = true; | ||
//# sourceMappingURL=index.js.map |
export * as NeoLegacy from './neo_legacy'; | ||
export * as Neo from './neo'; |
@@ -0,0 +0,0 @@ "use strict"; |
export * from './interface'; | ||
export * from './responses'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { TypedResponse, Witness } from '../common'; |
"use strict"; | ||
exports.__esModule = true; | ||
//# sourceMappingURL=interface.js.map |
@@ -0,0 +0,0 @@ import { ApplicationLog, Asset, ClaimableEvent, ContractMetaData, ContractState, ContractStorage, ContractTransfer, InputOutput, TimedBalance, Transaction } from './interface'; |
"use strict"; | ||
exports.__esModule = true; | ||
//# sourceMappingURL=responses.js.map |
export * from './responses'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -142,10 +142,22 @@ import { TypedResponse, Witness } from '../common'; | ||
export interface TransactionEnhanced { | ||
block: number; | ||
hash: string; | ||
invocations: InvocationDetails[]; | ||
netfee: string; | ||
notifications: Notification[]; | ||
sender: string; | ||
sysfee: string; | ||
netfee: string; | ||
block: number; | ||
time: string; | ||
transfers: Transfer[]; | ||
vmstate: string; | ||
invocations: InvocationDetails[]; | ||
} | ||
export interface Transfer { | ||
from: string; | ||
to: string; | ||
time: string; | ||
scripthash: string; | ||
amount: string; | ||
block: number; | ||
txid: string; | ||
transferindex: string; | ||
} |
"use strict"; | ||
exports.__esModule = true; | ||
//# sourceMappingURL=interface.js.map |
@@ -0,0 +0,0 @@ import { AddressAbstractEntry, Asset, ContractInvocationStats, Balance, Block, NodeMetaData, TransferAbstract, TypedResponse, Witness } from '../common'; |
"use strict"; | ||
exports.__esModule = true; | ||
//# sourceMappingURL=responses.js.map |
export * from './api'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
export {}; |
@@ -300,3 +300,3 @@ "use strict"; | ||
switch (_a.label) { | ||
case 0: return [4, neo_1.NeoRest.addressTXFull('NNtgxn9X4oRG1y7UfxDyjef8aFy6eRpApa', 1)]; | ||
case 0: return [4, neo_1.NeoRest.addressTXFull('Nf1iww8HZ2V6ZEntvDueDxqVNRUyMtMuRw', 1)]; | ||
case 1: | ||
@@ -303,0 +303,0 @@ res = _a.sent(); |
"use strict"; | ||
//# sourceMappingURL=http.js.map |
"use strict"; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@cityofzion/dora-ts", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "", | ||
@@ -19,3 +19,5 @@ "main": "dist/index", | ||
"test": "mocha 'src/**/*.test.ts'", | ||
"fmt": "prettier --write ./src/**/*.ts" | ||
"fmt": "prettier --write ./src/**/*.ts", | ||
"buildDocs": "typedoc --out docs/", | ||
"publishDocs": "aws sy sync ./docs s3://neoscan/prod/documentation --acl public-read " | ||
}, | ||
@@ -30,2 +32,3 @@ "devDependencies": { | ||
"ts-node": "^10.1.0", | ||
"typedoc": "^0.22.7", | ||
"typescript": "^4.3.5" | ||
@@ -32,0 +35,0 @@ }, |
@@ -0,0 +0,0 @@ <p align="center"> |
import type { | ||
AddressTransactionsResponse, AddressTXFullResponse, | ||
AddressTransactionsResponse, | ||
AddressTXFullResponse, | ||
AssetResponse, | ||
@@ -79,5 +80,3 @@ BalanceResponse, | ||
static async committee( | ||
network = 'mainnet' | ||
): Promise<BalanceResponse> { | ||
static async committee(network = 'mainnet'): Promise<BalanceResponse> { | ||
const method = 'committee' | ||
@@ -84,0 +83,0 @@ return await this.get(network, method) |
@@ -165,10 +165,23 @@ import { TypedResponse, Witness } from '../common' | ||
export interface TransactionEnhanced { | ||
block: number | ||
hash: string | ||
invocations: InvocationDetails[] | ||
netfee: string | ||
notifications: Notification[] | ||
sender: string | ||
sysfee: string | ||
netfee: string | ||
block: number | ||
time: string | ||
transfers: Transfer[] | ||
vmstate: string | ||
invocations: InvocationDetails[] | ||
} | ||
export interface Transfer { | ||
from: string | ||
to: string | ||
time: string | ||
scripthash: string | ||
amount: string | ||
block: number | ||
txid: string | ||
transferindex: string | ||
} |
@@ -175,3 +175,3 @@ import { assert } from 'chai' | ||
const res = await NeoRest.addressTXFull( | ||
'NNtgxn9X4oRG1y7UfxDyjef8aFy6eRpApa', | ||
'Nf1iww8HZ2V6ZEntvDueDxqVNRUyMtMuRw', | ||
1 | ||
@@ -178,0 +178,0 @@ ) |
@@ -15,3 +15,9 @@ { | ||
"forceConsistentCasingInFileNames": true | ||
} | ||
}, | ||
"include": [ | ||
"src" | ||
], | ||
"exclude": [ | ||
"node_modules" | ||
] | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
142250
3087
9