passkey-kit 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cheatsheet CHANGED
@@ -7,9 +7,9 @@ pnpm publish --no-git-checks
7
7
  # Mercury commands
8
8
  # https://test.mercurydata.app/
9
9
 
10
- export MERCURY_JWT=???
11
- mercury-cli --jwt $MERCURY_JWT --local false --mainnet false deploy
12
- mercury-cli --jwt $MERCURY_JWT --local false --mainnet false catchup --contracts "CDOWBLFYFIWXVUW46QILLAIYIWWCZ63CIRQBG3DK5PDBUVVJ4QVJX2IX" # don't forget to subscribe to the contract first
10
+ export JWT=???
11
+ mercury-cli --jwt $JWT --local false --mainnet false deploy
12
+ mercury-cli --jwt $JWT --local false --mainnet false catchup --contracts "CDOWBLFYFIWXVUW46QILLAIYIWWCZ63CIRQBG3DK5PDBUVVJ4QVJX2IX" # don't forget to subscribe to the contract first
13
13
  curl -X GET https://api.mercurydata.app/catchups/4
14
14
  curl -X POST https://api.mercurydata.app/zephyr/execute -H "Authorization: Bearer $MERCURY_JWT" -H 'Content-Type: application/json' -d '{"mode":{"Function": {"fname": "get_signers_by_address", "arguments": "{\"address\": \"CCXIUFR243N7QWKXY44LZO3DVUXHAVBEEJWFGNGNVVB44VJXIYWVGNTR\"}"}}}'
15
15
  curl -X POST https://api.mercurydata.app/zephyr/execute -H "Authorization: Bearer $MERCURY_JWT" -H 'Content-Type: application/json' -d '{"mode":{"Function": {"fname": "get_address_by_signer", "arguments": "{\"id\": [78,127,30,69,248,174,95,168,47,59,161,168,51,120,117,135,112,133,232,92]}"}}}'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "passkey-kit",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "A helper library for creating and using passkey accounts on the Stellar blockchain.",
5
5
  "author": "Tyler van der Hoeven",
6
6
  "license": "MIT",
@@ -13,9 +13,9 @@
13
13
  "@stellar/stellar-sdk": "12.1.0",
14
14
  "base64url": "^3.0.1",
15
15
  "buffer": "^6.0.3",
16
+ "passkey-kit-sdk": "0.2.1",
16
17
  "passkey-factory-sdk": "0.2.1",
17
- "sac-sdk": "0.1.0",
18
- "passkey-kit-sdk": "0.2.1"
18
+ "sac-sdk": "0.1.0"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@simplewebauthn/types": "^10.0.0",
package/src/server.ts CHANGED
@@ -49,6 +49,7 @@ export class PasskeyServer extends PasskeyBase {
49
49
  Authorization: `Bearer ${this.mercuryJwt}`
50
50
  },
51
51
  body: JSON.stringify({
52
+ project_name: 'smart-wallets-data',
52
53
  mode: {
53
54
  Function: {
54
55
  fname: "get_signers_by_address",
@@ -93,6 +94,7 @@ export class PasskeyServer extends PasskeyBase {
93
94
  Authorization: `Bearer ${this.mercuryJwt}`
94
95
  },
95
96
  body: JSON.stringify({
97
+ project_name: 'smart-wallets-data',
96
98
  mode: {
97
99
  Function: {
98
100
  fname: "get_address_by_signer",