Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

juno works nicely #68

Merged
merged 1 commit into from
Apr 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/html/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- (DO NOT EDIT!) (HTML) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-html.mjs Fri, 31 Mar 2023 12:13:09 GMT -->
<!-- (DO NOT EDIT!) (HTML) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-html.mjs Tue, 04 Apr 2023 03:14:26 GMT -->
<!DOCTYPE html>
<html lang="en">
<head>
Expand Down Expand Up @@ -62,7 +62,7 @@
</style>
</head>
<body>
(HTML) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-html.mjs Fri, 31 Mar 2023 12:13:09 GMT
(HTML) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-html.mjs Tue, 04 Apr 2023 03:14:26 GMT

<!-- ==================== ALL EXPORTED VANILLA LIBRARIES ==================== -->
<script src="dist/packages/access-control-conditions-vanilla/access-control-conditions.js"></script>
Expand Down
29 changes: 29 additions & 0 deletions apps/html/manual_tests_cosmos.html
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,29 @@
});
};

var JunoSpecificWalletAddressSigning = async () => {
var authSig = await LitJsSdk.checkAndSignAuthMessage({
chain: 'juno',
});
var unifiedAccessControlConditions = [
{
conditionType: 'cosmos',
path: ':userAddress',
chain: 'juno',
returnValueTest: {
key: '',
comparator: '=',
value: 'juno1vn6zl0924yj86jrp330wcwjclzdharljkajxqt',
},
},
];
await testProvisoningAndSigning({
unifiedAccessControlConditions,
testName: 'JunoSpecificWalletAddressSigning',
authSig: { juno: authSig },
});
};

var CosmosBalancePlusKyveFundersEncryptDecrypt = async () => {
var cosmosAuthSig = await LitJsSdk.checkAndSignAuthMessage({
chain: 'cosmos',
Expand Down Expand Up @@ -387,6 +410,12 @@ <h1>Manual tests</h1>
<br />
<br />

<button onclick="JunoSpecificWalletAddressSigning()">
JunoSpecificWalletAddressSigning
</button>
<br />
<br />

<button onclick="logout()">Logout</button>
<br />
<br />
Expand Down
2 changes: 1 addition & 1 deletion apps/react/src/app/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1352,7 +1352,7 @@ pre {
`,
}}
/>
(REACT) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-react.mjs Fri, 31 Mar 2023 12:13:10 GMT
(REACT) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-react.mjs Tue, 04 Apr 2023 03:14:26 GMT
<div id="root"></div>
<pre><code id="result"></code></pre>
</>
Expand Down
9 changes: 9 additions & 0 deletions packages/constants/src/lib/constants/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,15 @@ export const LIT_COSMOS_CHAINS: LITChain<LITCosmosChain> = {
blockExplorerUrls: ['https://explorer.cheqd.io'],
vmType: 'CVM',
},
juno: {
name: 'Juno',
symbol: 'JUNO',
decimals: 6,
chainId: 'juno-1',
rpcUrls: ['https://rest.cosmos.directory/juno'],
blockExplorerUrls: ['https://www.mintscan.io/juno'],
vmType: 'CVM',
},
};

/**
Expand Down