@dashevo/token-history-contract 2.0.0-dev.1

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/.eslintrc ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "extends": "airbnb-base",
3
+ "rules": {
4
+ "no-plusplus": 0,
5
+ "eol-last": [
6
+ "error",
7
+ "always"
8
+ ],
9
+ "class-methods-use-this": "off",
10
+ "curly": [
11
+ "error",
12
+ "all"
13
+ ]
14
+ },
15
+ "globals": {
16
+ "BigInt": true
17
+ }
18
+ }
package/.mocharc.yml ADDED
@@ -0,0 +1,2 @@
1
+ require: test/bootstrap.js
2
+ recursive: true
package/Cargo.toml ADDED
@@ -0,0 +1,13 @@
1
+ [package]
2
+ name = "token-history-contract"
3
+ description = "Token history data contract schema and tools"
4
+ version = "2.0.0-dev.1"
5
+ edition = "2021"
6
+ rust-version.workspace = true
7
+ license = "MIT"
8
+
9
+ [dependencies]
10
+ thiserror = "1.0.64"
11
+ platform-version = { path = "../rs-platform-version" }
12
+ serde_json = { version = "1.0" }
13
+ platform-value = { path = "../rs-platform-value" }
package/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Dash Core Group, Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,26 @@
1
+ # Wallet Utils Contract
2
+
3
+ [![Build Status](https://github.com/dashpay/platform/actions/workflows/release.yml/badge.svg)](https://github.com/dashpay/platform/actions/workflows/release.yml)
4
+ [![NPM version](https://img.shields.io/npm/v/@dashevo/wallet-contract.svg?style=flat-square)](https://npmjs.org/package/@dashevo/wallet-contract)
5
+
6
+ JSON Contracts for Dash Wallet apps
7
+
8
+ ## Table of Contents
9
+
10
+ - [Install](#install)
11
+ - [Contributing](#contributing)
12
+ - [License](#license)
13
+
14
+ ## Install
15
+
16
+ ```sh
17
+ npm install @dashevo/wallet-contract
18
+ ```
19
+
20
+ ## Contributing
21
+
22
+ Feel free to dive in! [Open an issue](https://github.com/dashpay/platform/issues/new/choose) or submit PRs.
23
+
24
+ ## License
25
+
26
+ [MIT](LICENSE) © Dash Core Group, Inc.
@@ -0,0 +1,4 @@
1
+ module.exports = {
2
+ ownerId: '11111111111111111111111111111111',
3
+ contractId: '43gujrzZgXqcKBiScLa4T8XTDnRhenR9BLx8GWVHjPxF',
4
+ };
package/package.json ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "@dashevo/token-history-contract",
3
+ "version": "2.0.0-dev.1",
4
+ "description": "The token history contract",
5
+ "scripts": {
6
+ "lint": "eslint .",
7
+ "test": "yarn run test:unit",
8
+ "test:unit": "mocha 'test/unit/**/*.spec.js'"
9
+ },
10
+ "contributors": [
11
+ {
12
+ "name": "Samuel Westrich",
13
+ "email": "sam@dash.org",
14
+ "url": "https://github.com/quantumexplorer"
15
+ }
16
+ ],
17
+ "license": "MIT",
18
+ "devDependencies": {
19
+ "@dashevo/wasm-dpp": "2.0.0-dev.1",
20
+ "chai": "^4.3.10",
21
+ "dirty-chai": "^2.0.1",
22
+ "eslint": "^8.53.0",
23
+ "eslint-config-airbnb-base": "^15.0.0",
24
+ "eslint-plugin-import": "^2.29.0",
25
+ "mocha": "^11.1.0",
26
+ "sinon": "^17.0.1",
27
+ "sinon-chai": "^3.7.0"
28
+ }
29
+ }