Skip to content

Commit 208b7fd

Browse files
GTC6244Ansonhkg
authored andcommitted
Add hardcoded keysets
1 parent 188d245 commit 208b7fd

File tree

7 files changed

+20759
-2
lines changed

7 files changed

+20759
-2
lines changed

packages/networks/src/networks/vNaga/shared/managers/LitChainClient/apis/highLevelApis/mintPKP/mintPKP.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export const mintPKP = async (
4545
const tx = await mintNextAndAddAuthMethods(
4646
{
4747
keyType: 2,
48+
keySetId: 'naga-keyset1',
4849
permittedAuthMethodTypes: [validatedRequest.authMethodType],
4950
permittedAuthMethodIds: [validatedRequest.authMethodId],
5051
permittedAuthMethodPubkeys: [validatedRequest.pubkey],

packages/networks/src/networks/vNaga/shared/managers/LitChainClient/apis/rawContractApis/pkp/write/mintNext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export async function mintNext(
2222
const hash = await callWithAdjustedOverrides(
2323
pkpNftContract,
2424
'mintNext',
25-
[2],
25+
[2,'naga-keyset1'],
2626
{
2727
value: mintCost,
2828
}

packages/networks/src/networks/vNaga/shared/managers/LitChainClient/apis/rawContractApis/pkp/write/mintNextAndAddAuthMethods.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export async function mintNextAndAddAuthMethods(
6969
'mintNextAndAddAuthMethods',
7070
[
7171
validatedRequest.keyType,
72+
validatedRequest.keySetId,
7273
validatedRequest.permittedAuthMethodTypes,
7374
validatedRequest.permittedAuthMethodIds,
7475
validatedRequest.permittedAuthMethodPubkeys,

packages/networks/src/networks/vNaga/shared/managers/LitChainClient/schemas/MintRequestSchema.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010

1111
export const MintRequestSchema = z.object({
1212
keyType: toBigInt,
13+
keySetId: z.literal('naga-keyset1'),
1314
permittedAuthMethodTypes: toBigIntArray,
1415
permittedAuthMethodIds: toHexStringArray,
1516
permittedAuthMethodPubkeys: toHexStringArray,

packages/wasm/rust/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,7 @@ lto = true
6161
wasm-opt=['-Os']
6262

6363
[package.metadata.wasm-pack.profile.profiling]
64-
wasm-opt = ['-g', '-O']
64+
wasm-opt = ['-g', '-O']
65+
66+
[package.metadata.wasm-pack.profile.release]
67+
wasm-opt = false

packages/wasm/rust/LICENSE

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright 2022 WorkGraph, Inc.
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)