@ocap/state 1.29.6 → 1.29.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/states/evidence.d.mts +2 -2
- package/esm/states/stake.d.mts +2 -2
- package/esm/states/token-factory.d.mts +2 -2
- package/esm/states/token.d.mts +3 -3
- package/lib/states/account.d.cts +2 -2
- package/lib/states/asset.d.cts +2 -2
- package/lib/states/rollup.d.cts +2 -2
- package/lib/states/stake.d.cts +2 -2
- package/lib/states/token-factory.d.cts +2 -2
- package/lib/states/token.d.cts +3 -3
- package/package.json +9 -9
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { StateContextInput } from "../contexts/state.mjs";
|
|
2
2
|
import { IEvidenceState } from "@ocap/types";
|
|
3
|
-
import * as
|
|
3
|
+
import * as joi1 from "joi";
|
|
4
4
|
|
|
5
5
|
//#region src/states/evidence.d.ts
|
|
6
6
|
declare namespace evidence_d_exports {
|
|
7
7
|
export { create, schema, validate };
|
|
8
8
|
}
|
|
9
|
-
declare const schema:
|
|
9
|
+
declare const schema: joi1.ObjectSchema<any>;
|
|
10
10
|
declare const create: (attrs: Partial<IEvidenceState>, context: StateContextInput) => IEvidenceState;
|
|
11
11
|
declare const validate: (state: IEvidenceState) => IEvidenceState;
|
|
12
12
|
//#endregion
|
package/esm/states/stake.d.mts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { StateContextInput } from "../contexts/state.mjs";
|
|
2
2
|
import { IStakeState } from "@ocap/types";
|
|
3
|
-
import * as
|
|
3
|
+
import * as joi4 from "joi";
|
|
4
4
|
|
|
5
5
|
//#region src/states/stake.d.ts
|
|
6
6
|
declare namespace stake_d_exports {
|
|
7
7
|
export { create, schema, update, validate };
|
|
8
8
|
}
|
|
9
|
-
declare const schema:
|
|
9
|
+
declare const schema: joi4.ObjectSchema<any>;
|
|
10
10
|
declare const create: (attrs: Partial<IStakeState>, context: StateContextInput) => IStakeState;
|
|
11
11
|
declare const update: (state: IStakeState, attrs: Partial<IStakeState>, context: StateContextInput) => IStakeState;
|
|
12
12
|
declare const validate: (state: IStakeState) => IStakeState;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { StateContextInput } from "../contexts/state.mjs";
|
|
2
2
|
import { ITokenFactoryState } from "@ocap/types";
|
|
3
|
-
import * as
|
|
3
|
+
import * as joi5 from "joi";
|
|
4
4
|
|
|
5
5
|
//#region src/states/token-factory.d.ts
|
|
6
6
|
declare namespace token_factory_d_exports {
|
|
7
7
|
export { create, curveSchema, update, validate };
|
|
8
8
|
}
|
|
9
|
-
declare const curveSchema:
|
|
9
|
+
declare const curveSchema: joi5.AlternativesSchema<any>;
|
|
10
10
|
declare const create: (attrs: Partial<ITokenFactoryState>, context: StateContextInput) => ITokenFactoryState;
|
|
11
11
|
declare const update: (state: ITokenFactoryState, attrs: Partial<ITokenFactoryState>, context: StateContextInput) => ITokenFactoryState;
|
|
12
12
|
declare const validate: (state: ITokenFactoryState) => ITokenFactoryState;
|
package/esm/states/token.d.mts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { StateContextInput } from "../contexts/state.mjs";
|
|
2
2
|
import { ITokenState } from "@ocap/types";
|
|
3
|
-
import * as
|
|
3
|
+
import * as joi6 from "joi";
|
|
4
4
|
|
|
5
5
|
//#region src/states/token.d.ts
|
|
6
6
|
declare namespace token_d_exports {
|
|
7
7
|
export { create, metadataSchema, stateSchema, update, validate };
|
|
8
8
|
}
|
|
9
|
-
declare const metadataSchema:
|
|
10
|
-
declare const stateSchema:
|
|
9
|
+
declare const metadataSchema: joi6.ObjectSchema<any>;
|
|
10
|
+
declare const stateSchema: joi6.ObjectSchema<any>;
|
|
11
11
|
declare const create: (attrs: Partial<ITokenState>, context: StateContextInput) => ITokenState;
|
|
12
12
|
declare const update: (state: ITokenState, attrs: Partial<ITokenState>) => ITokenState;
|
|
13
13
|
declare const validate: (state: ITokenState) => ITokenState;
|
package/lib/states/account.d.cts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { StateContextInput } from "../contexts/state.cjs";
|
|
2
2
|
import { IAccountState } from "@ocap/types";
|
|
3
|
-
import * as
|
|
3
|
+
import * as joi1 from "joi";
|
|
4
4
|
|
|
5
5
|
//#region src/states/account.d.ts
|
|
6
6
|
declare namespace account_d_exports {
|
|
7
7
|
export { create, ensureChecksumAddress, isMigrated, schema, update, updateOrCreate, validate };
|
|
8
8
|
}
|
|
9
|
-
declare const schema:
|
|
9
|
+
declare const schema: joi1.ObjectSchema<any>;
|
|
10
10
|
declare const create: (attrs: Partial<IAccountState>, context: StateContextInput) => IAccountState;
|
|
11
11
|
declare const update: (state: IAccountState, attrs: Partial<IAccountState>, context: StateContextInput) => IAccountState;
|
|
12
12
|
declare const updateOrCreate: (state: IAccountState | null, attrs: Partial<IAccountState>, context: StateContextInput) => IAccountState;
|
package/lib/states/asset.d.cts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { StateContextInput } from "../contexts/state.cjs";
|
|
2
2
|
import { IAssetState } from "@ocap/types";
|
|
3
|
-
import * as
|
|
3
|
+
import * as joi6 from "joi";
|
|
4
4
|
import { schemas } from "@arcblock/validator";
|
|
5
5
|
|
|
6
6
|
//#region src/states/asset.d.ts
|
|
7
7
|
declare namespace asset_d_exports {
|
|
8
8
|
export { create, schema, schemas, update, validate };
|
|
9
9
|
}
|
|
10
|
-
declare const schema:
|
|
10
|
+
declare const schema: joi6.ObjectSchema<any>;
|
|
11
11
|
declare const create: (attrs: Partial<IAssetState>, context: StateContextInput) => IAssetState;
|
|
12
12
|
declare const update: (state: IAssetState, attrs: Partial<IAssetState>, context: StateContextInput) => IAssetState;
|
|
13
13
|
declare const validate: (state: IAssetState) => IAssetState;
|
package/lib/states/rollup.d.cts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { StateContextInput } from "../contexts/state.cjs";
|
|
2
2
|
import { IRollupState } from "@ocap/types";
|
|
3
|
-
import * as
|
|
3
|
+
import * as joi0 from "joi";
|
|
4
4
|
|
|
5
5
|
//#region src/states/rollup.d.ts
|
|
6
6
|
declare namespace rollup_d_exports {
|
|
7
7
|
export { close, create, migrateContract, migrateVault, pause, resume, schema, update, validate };
|
|
8
8
|
}
|
|
9
|
-
declare const schema:
|
|
9
|
+
declare const schema: joi0.ObjectSchema<any>;
|
|
10
10
|
declare const create: (attrs: Partial<IRollupState>, context: StateContextInput) => IRollupState;
|
|
11
11
|
declare const update: (state: IRollupState, updates: Partial<IRollupState>, context: StateContextInput) => IRollupState;
|
|
12
12
|
declare const pause: (state: IRollupState, context: StateContextInput) => IRollupState;
|
package/lib/states/stake.d.cts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { StateContextInput } from "../contexts/state.cjs";
|
|
2
2
|
import { IStakeState } from "@ocap/types";
|
|
3
|
-
import * as
|
|
3
|
+
import * as joi2 from "joi";
|
|
4
4
|
|
|
5
5
|
//#region src/states/stake.d.ts
|
|
6
6
|
declare namespace stake_d_exports {
|
|
7
7
|
export { create, schema, update, validate };
|
|
8
8
|
}
|
|
9
|
-
declare const schema:
|
|
9
|
+
declare const schema: joi2.ObjectSchema<any>;
|
|
10
10
|
declare const create: (attrs: Partial<IStakeState>, context: StateContextInput) => IStakeState;
|
|
11
11
|
declare const update: (state: IStakeState, attrs: Partial<IStakeState>, context: StateContextInput) => IStakeState;
|
|
12
12
|
declare const validate: (state: IStakeState) => IStakeState;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { StateContextInput } from "../contexts/state.cjs";
|
|
2
2
|
import { ITokenFactoryState } from "@ocap/types";
|
|
3
|
-
import * as
|
|
3
|
+
import * as joi3 from "joi";
|
|
4
4
|
|
|
5
5
|
//#region src/states/token-factory.d.ts
|
|
6
6
|
declare namespace token_factory_d_exports {
|
|
7
7
|
export { create, curveSchema, update, validate };
|
|
8
8
|
}
|
|
9
|
-
declare const curveSchema:
|
|
9
|
+
declare const curveSchema: joi3.AlternativesSchema<any>;
|
|
10
10
|
declare const create: (attrs: Partial<ITokenFactoryState>, context: StateContextInput) => ITokenFactoryState;
|
|
11
11
|
declare const update: (state: ITokenFactoryState, attrs: Partial<ITokenFactoryState>, context: StateContextInput) => ITokenFactoryState;
|
|
12
12
|
declare const validate: (state: ITokenFactoryState) => ITokenFactoryState;
|
package/lib/states/token.d.cts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { StateContextInput } from "../contexts/state.cjs";
|
|
2
2
|
import { ITokenState } from "@ocap/types";
|
|
3
|
-
import * as
|
|
3
|
+
import * as joi4 from "joi";
|
|
4
4
|
|
|
5
5
|
//#region src/states/token.d.ts
|
|
6
6
|
declare namespace token_d_exports {
|
|
7
7
|
export { create, metadataSchema, stateSchema, update, validate };
|
|
8
8
|
}
|
|
9
|
-
declare const metadataSchema:
|
|
10
|
-
declare const stateSchema:
|
|
9
|
+
declare const metadataSchema: joi4.ObjectSchema<any>;
|
|
10
|
+
declare const stateSchema: joi4.ObjectSchema<any>;
|
|
11
11
|
declare const create: (attrs: Partial<ITokenState>, context: StateContextInput) => ITokenState;
|
|
12
12
|
declare const update: (state: ITokenState, attrs: Partial<ITokenState>) => ITokenState;
|
|
13
13
|
declare const validate: (state: ITokenState) => ITokenState;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.29.
|
|
6
|
+
"version": "1.29.7",
|
|
7
7
|
"description": "State management utilities for OCAP blockchain",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"main": "./lib/index.cjs",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"clean": "rm -rf lib esm"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@arcblock/did": "1.29.
|
|
44
|
-
"@arcblock/validator": "1.29.
|
|
45
|
-
"@ocap/contract": "1.29.
|
|
46
|
-
"@ocap/mcrypto": "1.29.
|
|
47
|
-
"@ocap/message": "1.29.
|
|
48
|
-
"@ocap/types": "1.29.
|
|
49
|
-
"@ocap/util": "1.29.
|
|
50
|
-
"@ocap/wallet": "1.29.
|
|
43
|
+
"@arcblock/did": "1.29.7",
|
|
44
|
+
"@arcblock/validator": "1.29.7",
|
|
45
|
+
"@ocap/contract": "1.29.7",
|
|
46
|
+
"@ocap/mcrypto": "1.29.7",
|
|
47
|
+
"@ocap/message": "1.29.7",
|
|
48
|
+
"@ocap/types": "1.29.7",
|
|
49
|
+
"@ocap/util": "1.29.7",
|
|
50
|
+
"@ocap/wallet": "1.29.7",
|
|
51
51
|
"bloom-filters": "^1.3.9",
|
|
52
52
|
"lodash": "^4.17.23"
|
|
53
53
|
},
|