Skip to content

Commit fe5a928

Browse files
authored
Merge pull request #549 from Arculus-Holdings-L-L-C/arculus
Arculus Wallet Integration
2 parents 1a2bca9 + 288bc66 commit fe5a928

37 files changed

+810
-0
lines changed
Lines changed: 9 additions & 0 deletions
Loading

wallets/arculus-mobile/.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

wallets/arculus-mobile/.eslintignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules/
2+
dist/
3+
main/
4+
module/
5+
types/
6+
coverage/
7+
/index.ts

wallets/arculus-mobile/.eslintrc.json

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
{
2+
"plugins": [
3+
"@typescript-eslint",
4+
"simple-import-sort",
5+
"unused-imports"
6+
],
7+
"extends": [
8+
"eslint:recommended",
9+
"plugin:@typescript-eslint/recommended",
10+
// configures both eslint-plugin-prettier and eslint-config-prettier
11+
"plugin:prettier/recommended"
12+
],
13+
"parser": "@typescript-eslint/parser",
14+
"parserOptions": {
15+
"ecmaVersion": 2020,
16+
"sourceType": "module",
17+
"project": "tsconfig.json"
18+
},
19+
"env": {
20+
"es6": true,
21+
"browser": true,
22+
"node": true,
23+
"jest": true
24+
},
25+
"rules": {
26+
"simple-import-sort/imports": 2,
27+
"simple-import-sort/exports": 2,
28+
"prettier/prettier": 2,
29+
"unused-imports/no-unused-imports": 2,
30+
"no-console": 1,
31+
"no-debugger": 2,
32+
"no-alert": 2,
33+
"no-await-in-loop": 0,
34+
"no-prototype-builtins": 0,
35+
"no-return-assign": [
36+
"error",
37+
"except-parens"
38+
],
39+
"no-restricted-syntax": [
40+
2,
41+
"ForInStatement",
42+
"LabeledStatement",
43+
"WithStatement"
44+
],
45+
"no-unused-vars": 0,
46+
"@typescript-eslint/no-unused-vars": [
47+
"warn",
48+
{
49+
"argsIgnorePattern": "React|res|next|^_"
50+
}
51+
],
52+
"prefer-const": [
53+
"error",
54+
{
55+
"destructuring": "all"
56+
}
57+
],
58+
"no-unused-expressions": [
59+
2,
60+
{
61+
"allowTaggedTemplates": true
62+
}
63+
],
64+
"comma-dangle": 0,
65+
"jsx-quotes": [
66+
2,
67+
"prefer-double"
68+
],
69+
"linebreak-style": [
70+
"error",
71+
"unix"
72+
],
73+
"quotes": [
74+
2,
75+
"single",
76+
{
77+
"avoidEscape": true,
78+
"allowTemplateLiterals": true
79+
}
80+
]
81+
}
82+
}

wallets/arculus-mobile/.gitignore

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
6+
# Runtime data
7+
pids
8+
*.pid
9+
*.seed
10+
11+
# dist
12+
main
13+
module
14+
15+
# Directory for instrumented libs generated by jscoverage/JSCover
16+
lib-cov
17+
18+
# Coverage directory used by tools like istanbul
19+
coverage
20+
21+
# nyc test coverage
22+
.nyc_output
23+
24+
# Compiled binary addons (http://nodejs.org/api/addons.html)
25+
build/Release
26+
27+
# Dependency directories
28+
node_modules
29+
jspm_packages
30+
31+
# Optional npm cache directory
32+
.npm
33+
34+
# Optional REPL history
35+
.node_repl_history
36+
37+
# Editors
38+
.idea
39+
40+
# Lib
41+
lib
42+
43+
# npm package lock
44+
package-lock.json
45+
yarn.lock
46+
47+
# others
48+
.DS_Store

wallets/arculus-mobile/.npmignore

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
*.log
2+
npm-debug.log*
3+
4+
# Coverage directory used by tools like istanbul
5+
coverage
6+
.nyc_output
7+
8+
# Dependency directories
9+
node_modules
10+
11+
# npm package lock
12+
package-lock.json
13+
yarn.lock
14+
15+
# project files
16+
__fixtures__
17+
__tests__
18+
.babelrc
19+
.babelrc.js
20+
.editorconfig
21+
.eslintignore
22+
.eslintrc
23+
.eslintrc.js
24+
.gitignore
25+
.travis.yml
26+
.vscode
27+
CHANGELOG.md
28+
examples
29+
jest.config.js
30+
package.json
31+
src
32+
test

wallets/arculus-mobile/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
scripts-prepend-node-path=true
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"trailingComma": "es5",
3+
"tabWidth": 2,
4+
"semi": true,
5+
"singleQuote": true,
6+
"useTabs": false
7+
}

wallets/arculus-mobile/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Change Log
2+
3+
All notable changes to this project will be documented in this file.
4+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5+
6+
# 0.1.0 (2025-03-18)
7+
8+
**Note:** First release!

wallets/arculus-mobile/LICENSE

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
The Clear BSD License
2+
3+
Copyright (c) 2024 Cosmos Kit Contributors
4+
Copyright (c) 2024 Interweb, Inc. <[email protected]>
5+
All rights reserved.
6+
7+
Redistribution and use in source and binary forms, with or without
8+
modification, are permitted (subject to the limitations in the disclaimer
9+
below) provided that the following conditions are met:
10+
11+
* Redistributions of source code must retain the above copyright notice,
12+
this list of conditions and the following disclaimer.
13+
14+
* Redistributions in binary form must reproduce the above copyright
15+
notice, this list of conditions and the following disclaimer in the
16+
documentation and/or other materials provided with the distribution.
17+
18+
* Neither the name of the copyright holder nor the names of its
19+
contributors may be used to endorse or promote products derived from this
20+
software without specific prior written permission.
21+
22+
NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY
23+
THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
24+
CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
25+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
26+
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
27+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
28+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
29+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
30+
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
31+
IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33+
POSSIBILITY OF SUCH DAMAGE.

wallets/arculus-mobile/README.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# @cosmos-kit/arculus-mobile
2+
3+
<p align="center" width="100%">
4+
<img height="90" src="https://user-images.githubusercontent.com/545047/190171432-5526db8f-9952-45ce-a745-bea4302f912b.svg" />
5+
</p>
6+
7+
<p align="center" width="100%">
8+
<a href="https://github.com/hyperweb-io/cosmos-kit/actions/workflows/run-tests.yml">
9+
<img height="20" src="https://github.com/hyperweb-io/cosmos-kit/actions/workflows/run-tests.yml/badge.svg" />
10+
</a>
11+
<a href="https://github.com/hyperweb-io/cosmos-kit/blob/main/wallets/arculus-mobile/LICENSE"><img height="20" src="https://img.shields.io/badge/license-BSD%203--Clause%20Clear-blue.svg"></a>
12+
<a href="https://www.npmjs.com/package/@cosmos-kit/arculus-mobile"><img height="20" src="https://img.shields.io/github/package-json/v/hyperweb-io/cosmos-kit?filename=wallets%2Farculus-mobile%2Fpackage.json"></a>
13+
</p>
14+
15+
Cosmos Kit is a universal wallet adapter for developers to build apps that quickly and easily interact with Cosmos blockchains and wallets.
16+
17+
@cosmos-kit/arculus-mobile is the Arculus integration for CosmosKit.
18+
19+
## Interchain JavaScript Stack
20+
21+
A unified toolkit for building applications and smart contracts in the Interchain ecosystem ⚛️
22+
23+
| Category | Tools | Description |
24+
|----------------------|------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------|
25+
| **Chain Information** | [**Chain Registry**](https://github.com/hyperweb-io/chain-registry), [**Utils**](https://www.npmjs.com/package/@chain-registry/utils), [**Client**](https://www.npmjs.com/package/@chain-registry/client) | Everything from token symbols, logos, and IBC denominations for all assets you want to support in your application. |
26+
| **Wallet Connectors**| [**Interchain Kit**](https://github.com/hyperweb-io/interchain-kit)<sup>beta</sup>, [**Cosmos Kit**](https://github.com/hyperweb-io/cosmos-kit) | Experience the convenience of connecting with a variety of web3 wallets through a single, streamlined interface. |
27+
| **Signing Clients** | [**InterchainJS**](https://github.com/hyperweb-io/interchainjs)<sup>beta</sup>, [**CosmJS**](https://github.com/cosmos/cosmjs) | A single, universal signing interface for any network |
28+
| **SDK Clients** | [**Telescope**](https://github.com/hyperweb-io/telescope) | Your Frontend Companion for Building with TypeScript with Cosmos SDK Modules. |
29+
| **Starter Kits** | [**Create Interchain App**](https://github.com/hyperweb-io/create-interchain-app)<sup>beta</sup>, [**Create Cosmos App**](https://github.com/hyperweb-io/create-cosmos-app) | Set up a modern Interchain app by running one command. |
30+
| **UI Kits** | [**Interchain UI**](https://github.com/hyperweb-io/interchain-ui) | The Interchain Design System, empowering developers with a flexible, easy-to-use UI kit. |
31+
| **Testing Frameworks** | [**Starship**](https://github.com/hyperweb-io/starship) | Unified Testing and Development for the Interchain. |
32+
| **TypeScript Smart Contracts** | [**Create Hyperweb App**](https://github.com/hyperweb-io/create-hyperweb-app) | Build and deploy full-stack blockchain applications with TypeScript |
33+
| **CosmWasm Contracts** | [**CosmWasm TS Codegen**](https://github.com/CosmWasm/ts-codegen) | Convert your CosmWasm smart contracts into dev-friendly TypeScript classes. |
34+
35+
## Credits
36+
37+
🛠 Built by Hyperweb (formerly Cosmology) — if you like our tools, please checkout and contribute to [our github ⚛️](https://github.com/hyperweb-io)
38+
39+
## Disclaimer
40+
41+
AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED “AS IS”, AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND.
42+
43+
No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value.

wallets/arculus-mobile/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// not for module, but for local development..
2+
export * from './src';

wallets/arculus-mobile/package.json

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"name": "@cosmos-kit/arculus-mobile",
3+
"version": "0.1.0",
4+
"description": "arculus cosmos-kit wallet connector",
5+
"author": "[email protected]",
6+
"contributors": [
7+
{
8+
"name": "Arculus Developers"
9+
}
10+
],
11+
"homepage": "https://github.com/hyperweb-io/cosmos-kit#readme",
12+
"license": "SEE LICENSE IN LICENSE",
13+
"main": "cjs/index.js",
14+
"module": "esm/index.js",
15+
"types": "cjs/index.d.ts",
16+
"directories": {
17+
"lib": "src",
18+
"test": "__tests__"
19+
},
20+
"files": [
21+
"cjs",
22+
"esm",
23+
"!CHANGELOG.md",
24+
"!LICENSE"
25+
],
26+
"scripts": {
27+
"build:cjs": "yarn tsc -p tsconfig.json --outDir cjs --module commonjs || true",
28+
"build:esm": "yarn tsc -p tsconfig.json --outDir esm --module es2022 || true",
29+
"clean:cjs": "rimraf cjs",
30+
"clean:esm": "rimraf esm",
31+
"clean": "npm run clean:cjs && npm run clean:esm",
32+
"build": "npm run clean && npm run build:cjs && npm run build:esm",
33+
"prepare": "npm run build",
34+
"lint": "eslint --ext .tsx,.ts .",
35+
"format": "eslint --ext .tsx,.ts --fix .",
36+
"test": "jest",
37+
"test:watch": "jest --watch",
38+
"test:debug": "node --inspect node_modules/.bin/jest --runInBand"
39+
},
40+
"publishConfig": {
41+
"access": "public"
42+
},
43+
"repository": "https://github.com/hyperweb-io/cosmos-kit",
44+
"keywords": [
45+
"cosmos",
46+
"cosmos-kit",
47+
"arculus",
48+
"wallet"
49+
],
50+
"bugs": {
51+
"url": "https://github.com/hyperweb-io/cosmos-kit/issues"
52+
},
53+
"jest": {
54+
"testPathIgnorePatterns": [
55+
"dist/"
56+
]
57+
},
58+
"dependencies": {
59+
"@cosmos-kit/core": "^2.15.5",
60+
"@cosmos-kit/walletconnect": "^2.12.5"
61+
}
62+
}

wallets/arculus-mobile/src/arculus.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { preferredEndpoints } from './config';
2+
import { ArculusMobileInfo, ArculusMobileWallet } from './wallet-connect';
3+
4+
const arculusMobile = new ArculusMobileWallet(ArculusMobileInfo, preferredEndpoints);
5+
6+
export const wallets = [arculusMobile];

wallets/arculus-mobile/src/config.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { EndpointOptions } from '@cosmos-kit/core';
2+
3+
export const preferredEndpoints: EndpointOptions['endpoints'] = {
4+
osmosis: {
5+
rpc: ['https://rpc-osmosis.keplr.app/'],
6+
rest: ['https://lcd-osmosis.keplr.app/'],
7+
},
8+
cosmoshub: {
9+
rpc: ['https://rpc-cosmoshub.keplr.app'],
10+
rest: ['https://lcd-cosmoshub.keplr.app'],
11+
},
12+
provenance: {
13+
rpc: ['https://rpc.provenance.io/'],
14+
rest: ['https://api.provenance.io'],
15+
},
16+
};

0 commit comments

Comments
 (0)