Skip to content

Commit 69f98e7

Browse files
feat: add wallet contract
1 parent 7c040e8 commit 69f98e7

File tree

18 files changed

+1046
-335
lines changed

18 files changed

+1046
-335
lines changed

Cargo.lock

Lines changed: 346 additions & 335 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ members = [
2828
"packages/simple-signer",
2929
"packages/rs-json-schema-compatibility-validator",
3030
"packages/check-features",
31+
"packages/wallet-contract"
3132
]
3233
[workspace.package]
3334

config/local_seed.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"seeds": [
3+
"127.0.0.1"
4+
]
5+
}

local_seed

Whitespace-only changes.

packages/wallet-contract/.eslintrc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
require: test/bootstrap.js
2+
recursive: true
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[package]
2+
name = "wallet-contract"
3+
description = "Wallet data contract schema and tools"
4+
version = "1.4.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" }

packages/wallet-contract/LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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.

packages/wallet-contract/README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Wallet 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/dpns-contract.svg?style=flat-square)](https://npmjs.org/package/@dashevo/dpns-contract)
5+
6+
JSON Contracts for Dash Wallet apps
7+
8+
## Table of Contents
9+
10+
- [Install](#install)
11+
- [Usage](#usage)
12+
- [Contributing](#contributing)
13+
- [License](#license)
14+
15+
## Install
16+
17+
```sh
18+
npm install @dashevo/wallet-contract
19+
```
20+
21+
## Usage
22+
23+
```sh
24+
# TODO ...
25+
```
26+
27+
## Contributing
28+
29+
Feel free to dive in! [Open an issue](https://github.com/dashpay/platform/issues/new/choose) or submit PRs.
30+
31+
## License
32+
33+
[MIT](LICENSE) © Dash Core Group, Inc.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
ownerId: '11111111111111111111111111111111',
3+
contractId: 'GWRSAVFMjXx8HpQFaNJMqBV7MBgMK4br5UESsB4S31Ec'
4+
};

0 commit comments

Comments
 (0)