Skip to content

Commit

Permalink
Merge pull request #10 from sonicdex/development
Browse files Browse the repository at this point in the history
Msq Metamsk snap suppor
  • Loading branch information
joegeorge-git committed May 15, 2024
2 parents fbf60a7 + a8a5887 commit 2a5411c
Show file tree
Hide file tree
Showing 16 changed files with 675 additions and 205 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Developers are not required to individually integrate all wallets, resulting in
- Plug
- AstroX ME
- Infinity Wallet
- NFID
- MetaMask ( MSQ - Safe ICP Wallet)

## Installation

Expand All @@ -38,6 +40,15 @@ const artemisWalletAdapter = new Artemis(connectObj);
```

or

```
```




## Using Batch Transaction

Import BatchTransact class
Expand Down
2 changes: 1 addition & 1 deletion dist/bundle.js

Large diffs are not rendered by default.

102 changes: 86 additions & 16 deletions dist/bundle.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,86 @@
* @license MIT
*/

/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/

/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */

/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */

/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */

/**
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*/

/**
* @license React
* react-dom.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* scheduler.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* [js-sha256]{@link https://github.com/emn178/js-sha256}
*
Expand All @@ -16,19 +94,11 @@
* @license MIT
*/

/** @preserve
* Counter block mode compatible with Dr Brian Gladman fileenc.c
* derived from CryptoJS.mode.CTR
* Jan Hruby jhruby.web@gmail.com
*/

/** @preserve
(c) 2012 by Cédric Mesnil. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/** @license React v16.13.1
* react-is.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,5 @@ declare module 'artemis-web3-adapter' {
export { Artemis }
export { BatchTransact };
export{ principalIdFromHex };
export { ArtemisAdapter};
}
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Artemis } from './src';
import { Artemis, ArtemisAdapter } from './src';
import { BatchTransact } from './src';

export { Artemis , BatchTransact };
export { Artemis , BatchTransact , ArtemisAdapter };
22 changes: 13 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "artemis-web3-adapter",
"version": "0.4.6",
"version": "1.0.1",
"description": "dfinity wallet adapter for connecting different wallets in IC",
"main": "index.js",
"scripts": {
Expand All @@ -9,16 +9,20 @@
"author": "code_lion",
"license": "ISC",
"dependencies": {
"@astrox/sdk-web": "^0.1.38",
"@astrox/sdk-webview": "^0.1.38",
"@dfinity/agent": "0.12.2",
"@dfinity/auth-client": "^0.12.2",
"@dfinity/candid": "0.12.2",
"@dfinity/identity": "0.12.2",
"@dfinity/principal": "0.12.2",
"@astrox/sdk-web": "^0.1.41",
"@astrox/sdk-webview": "^0.1.41",
"@dfinity/agent": "^1.2.0",
"@dfinity/auth-client": "^1.2.0",
"@dfinity/candid": "^1.2.0",
"@dfinity/identity": "^1.2.0",
"@dfinity/ledger-icp": "^2.2.3",
"@dfinity/principal": "^1.2.0",
"@fort-major/msq-client": "^0.3.4",
"@fort-major/msq-shared": "^0.3.3",
"buffer": "^6.0.3",
"buffer-crc32": "^0.2.13",
"crypto-js": "^4.1.1"
"crypto-js": "^4.1.1",
"ic-stoic-identity": "^2.0.0"
},
"devDependencies": {
"webpack": "^5.75.0",
Expand Down
Loading

0 comments on commit 2a5411c

Please sign in to comment.