Skip to content

Commit

Permalink
Feature/new keystore (#323)
Browse files Browse the repository at this point in the history
* Support new keystore

* Fix keystore

* Fix tests

* Format

* Slight fix

* Slight fix

* Remove ethers

* Update README

* Fix getUnspentOutputsForRecipients
  • Loading branch information
hundredark authored Jan 19, 2024
1 parent 818d7cc commit 7968f26
Show file tree
Hide file tree
Showing 66 changed files with 236 additions and 3,341 deletions.
18 changes: 7 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,10 @@ yarn add @mixin.dev/mixin-node-sdk
const { MixinApi } = require('@mixin.dev/mixin-node-sdk');

const keystore = {
user_id: '',
private_key: '',
app_id: '',
session_id: '',
pin: '',
pin_token: '',
client_secret: '',
server_public_key: '',
session_private_key: '',
};
const client = MixinApi({ keystore });

Expand All @@ -54,12 +52,10 @@ async function getMe() {
const { MixinApi } = require('@mixin.dev/mixin-node-sdk');

const keystore = {
user_id: '',
private_key: '',
app_id: '',
session_id: '',
pin: '',
pin_token: '',
client_secret: '',
server_public_key: '',
session_private_key: '',
};
const config = {
keystore,
Expand Down Expand Up @@ -102,7 +98,7 @@ export default defineConfig({
## License

```
Copyright 2022 Mixin.
Copyright 2024 Mixin.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
18 changes: 7 additions & 11 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,10 @@ yarn add @mixin.dev/mixin-node-sdk
const { MixinApi } = require('@mixin.dev/mixin-node-sdk');

const keystore = {
user_id: '',
private_key: '',
app_id: '',
session_id: '',
pin: '',
pin_token: '',
client_secret: '',
server_public_key: '',
session_private_key: '',
};
const client = MixinApi({ keystore });

Expand All @@ -52,12 +50,10 @@ async function getMe() {
const { MixinApi } = require('@mixin.dev/mixin-node-sdk');

const keystore = {
user_id: '',
private_key: '',
app_id: '',
session_id: '',
pin: '',
pin_token: '',
client_secret: '',
server_public_key: '',
session_private_key: '',
};
const config = {
keystore,
Expand Down Expand Up @@ -85,4 +81,4 @@ client.blaze.loop({
## 版本所有

Copyright 2022 Mixin.
Copyright 2024 Mixin.
8 changes: 0 additions & 8 deletions example/bridge.ts

This file was deleted.

42 changes: 0 additions & 42 deletions example/deposit.js

This file was deleted.

93 changes: 0 additions & 93 deletions example/mvm.js

This file was deleted.

51 changes: 0 additions & 51 deletions example/mvm_api.js

This file was deleted.

Loading

0 comments on commit 7968f26

Please sign in to comment.