@0xcert/scaffold
Advanced tools
Comparing version 0.0.0-alpha0 to 0.0.0-alpha1
@@ -1,2 +0,2 @@ | ||
import { Query, Mutation, ContextBase } from "./context"; | ||
import { Query, Mutation } from "./context"; | ||
export declare enum AssetLedgerAbility { | ||
@@ -21,4 +21,2 @@ MANAGE_ABILITIES = 0, | ||
export interface AssetLedgerBase { | ||
readonly platform: string; | ||
readonly context: ContextBase; | ||
readonly id: string; | ||
@@ -25,0 +23,0 @@ getAbilities(accountId: string): Promise<Query<AssetLedgerAbility[]>>; |
@@ -0,12 +1,12 @@ | ||
import { Mutation } from "./context"; | ||
import { ValueLedgerBase } from "./value-ledger"; | ||
import { AssetLedgerBase } from "./asset-ledger"; | ||
import { OrderExchangeBase } from "./order-exchange"; | ||
export interface ConnectorBase { | ||
readonly platform: string; | ||
attach(): Promise<this>; | ||
detach(): Promise<this>; | ||
sign(data: string): Promise<string>; | ||
sign(val: string): Promise<string>; | ||
getMutation(txId: string): Promise<Mutation>; | ||
getOrderExchange(id: string): Promise<OrderExchangeBase>; | ||
getAssetLedger(ledgerId: any): Promise<AssetLedgerBase>; | ||
getValueLedger(ledgerId: any): Promise<ValueLedgerBase>; | ||
createQueue(schema: any): Promise<Mutation>; | ||
} | ||
export interface Query<T> { | ||
result: T; | ||
} | ||
export interface Mutation { | ||
hash: string; | ||
} |
export interface ContextBase { | ||
readonly platform: string; | ||
myId: string; | ||
@@ -12,3 +11,4 @@ attach(): Promise<this>; | ||
export interface Mutation { | ||
hash: string; | ||
id: string; | ||
confirmations: number; | ||
} |
import { Order } from "./order"; | ||
import { Mutation, ContextBase } from "./context"; | ||
import { Mutation } from "./context"; | ||
export interface OrderExchangeBase { | ||
readonly platform: string; | ||
readonly context: ContextBase; | ||
readonly id: string; | ||
claim(order: Order): Promise<string>; | ||
@@ -7,0 +6,0 @@ perform(order: Order, claim: string): Promise<Mutation>; |
@@ -1,5 +0,3 @@ | ||
import { Query, ContextBase } from "./context"; | ||
import { Query } from "./context"; | ||
export interface ValueLedgerBase { | ||
readonly platform: string; | ||
readonly context: ContextBase; | ||
readonly id: string; | ||
@@ -6,0 +4,0 @@ getInfo(): Promise<Query<ValueLedgerGetInfoResult>>; |
export * from './assets/metadata'; | ||
export * from './core/connector'; | ||
export * from './core/asset-ledger'; | ||
@@ -3,0 +4,0 @@ export * from './core/context'; |
{ | ||
"files": { | ||
"packages/0xcert-scaffold/nodemon.json": "82b893373db9861f1df4b55d8ea68a5d37b118de", | ||
"packages/0xcert-scaffold/package.json": "1334073cd49e45cc639a02c38d9f52b8337efca7", | ||
"packages/0xcert-scaffold/src/assets/metadata.ts": "1bd04e0ee8b5ab49edbd1c2ba23398b321ed0800", | ||
"packages/0xcert-scaffold/src/core/asset-ledger.ts": "adae2a984344770c8ad132b02db5f0b7ad38f119", | ||
"packages/0xcert-scaffold/src/core/context.ts": "06f8832dc3ce1404259fe9a76756e9913825e842", | ||
"packages/0xcert-scaffold/src/core/errors.ts": "b5ba6d82c76f277bb3094e2e8edcebe34d3afcfe", | ||
"packages/0xcert-scaffold/src/core/order-exchange.ts": "fafc547a80b11699c3482d8566387608d7732bf8", | ||
"packages/0xcert-scaffold/src/core/order.ts": "f0de6eb366c8334c04974b5e7331de06ebc8dd7b", | ||
"packages/0xcert-scaffold/src/core/value-ledger.ts": "1318b25411f8e67e75c34d1f4a5ca0dce8d7b46f", | ||
"packages/0xcert-scaffold/src/index.ts": "616ef4434df42c71d471ed358d1e04c7c94feb56", | ||
"packages/0xcert-scaffold/src/tests/.keep": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391", | ||
"packages/0xcert-scaffold/tsconfig.json": "99f0fa2e7cf44aa40828236230bc6f15d8648bc6", | ||
"common/config/rush/npm-shrinkwrap.json": "1e2c74dfa4d1d62f13b04e6be9c20d6ee6682ca0" | ||
}, | ||
"files": {}, | ||
"arguments": "npx hayspec test " | ||
} |
{ | ||
"name": "@0xcert/scaffold", | ||
"version": "0.0.0-alpha0", | ||
"version": "0.0.0-alpha1", | ||
"description": "0xcert protocol scaffold.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -37,4 +37,2 @@ import { Query, Mutation, ContextBase } from "./context"; | ||
export interface AssetLedgerBase { | ||
readonly platform: string; | ||
readonly context: ContextBase; | ||
readonly id: string; | ||
@@ -41,0 +39,0 @@ getAbilities(accountId: string): Promise<Query<AssetLedgerAbility[]>>; |
@@ -5,3 +5,2 @@ /** | ||
export interface ContextBase { | ||
readonly platform: string; | ||
myId: string; | ||
@@ -24,3 +23,4 @@ attach(): Promise<this>; | ||
export interface Mutation { | ||
hash: string; | ||
id: string; | ||
confirmations: number; | ||
} |
import { Order } from "./order"; | ||
import { Mutation, ContextBase } from "./context"; | ||
import { Mutation } from "./context"; | ||
@@ -8,4 +8,3 @@ /** | ||
export interface OrderExchangeBase { | ||
readonly platform: string; | ||
readonly context: ContextBase; | ||
readonly id: string; | ||
claim(order: Order): Promise<string>; | ||
@@ -12,0 +11,0 @@ perform(order: Order, claim: string): Promise<Mutation>; |
@@ -7,4 +7,2 @@ import { Query, ContextBase } from "./context"; | ||
export interface ValueLedgerBase { | ||
readonly platform: string; | ||
readonly context: ContextBase; | ||
readonly id: string; | ||
@@ -11,0 +9,0 @@ getInfo(): Promise<Query<ValueLedgerGetInfoResult>>; |
export * from './assets/metadata'; | ||
export * from './core/connector'; | ||
export * from './core/asset-ledger'; | ||
@@ -3,0 +4,0 @@ export * from './core/context'; |
Sorry, the diff of this file is not supported yet
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
56
735
28270