diff --git a/contracts/Cargo.lock b/contracts/Cargo.lock index a021b7c..3e9eaac 100644 --- a/contracts/Cargo.lock +++ b/contracts/Cargo.lock @@ -1438,14 +1438,14 @@ dependencies = [ [[package]] name = "webauthn-factory" -version = "0.3.0" +version = "0.3.1" dependencies = [ "soroban-sdk", ] [[package]] name = "webauthn-secp256r1" -version = "0.3.0" +version = "0.3.1" dependencies = [ "serde", "serde-json-core", diff --git a/contracts/Makefile b/contracts/Makefile index 3236a60..013c6e9 100644 --- a/contracts/Makefile +++ b/contracts/Makefile @@ -3,8 +3,8 @@ export SOROBAN_RPC_URL=https://soroban-testnet.stellar.org export SOROBAN_NETWORK_PASSPHRASE=Test SDF Network ; September 2015 export SOROBAN_ACCOUNT=default -export WEBAUTHN_FACTORY=CB2L37OEFNW4ZUPGISREQJBEBEQRNHGBMPD2G6UUDXEXEQJXS5JBSBO2 -export WEBAUTHN_WASM=bd9894429318e74c773fa613caed390e130b44d93796b63ecec022ed3419fd3c +export WEBAUTHN_FACTORY=CCPLERXCJZB7LX2VOSOCBNRN754FRLHI6Y2AVOQBA5L7C2ZJX5RFVVET +export WEBAUTHN_WASM=f5a06865c6ac90cd11c2f416fdad568da8350e0a7119fdb315595da5e8f9f230 build: rm -rf out/ diff --git a/contracts/contract-webauthn-factory/Cargo.toml b/contracts/contract-webauthn-factory/Cargo.toml index 196d105..2f0c9bd 100644 --- a/contracts/contract-webauthn-factory/Cargo.toml +++ b/contracts/contract-webauthn-factory/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "webauthn-factory" -version = "0.3.0" +version = "0.3.1" authors = ["Stellar Development Foundation "] license = "Apache-2.0" edition = "2021" diff --git a/contracts/contract-webauthn-secp256r1/Cargo.toml b/contracts/contract-webauthn-secp256r1/Cargo.toml index 8d9c0c3..4e7b048 100644 --- a/contracts/contract-webauthn-secp256r1/Cargo.toml +++ b/contracts/contract-webauthn-secp256r1/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "webauthn-secp256r1" -version = "0.3.0" +version = "0.3.1" authors = ["Stellar Development Foundation "] license = "Apache-2.0" edition = "2021" diff --git a/package.json b/package.json index d85448a..122db8b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "passkey-kit", - "version": "0.4.0", + "version": "0.4.1", "description": "A helper library for creating and using passkey accounts on the Stellar blockchain.", "author": "Tyler van der Hoeven", "license": "MIT", diff --git a/packages/passkey-factory-sdk/package.json b/packages/passkey-factory-sdk/package.json index b61ee50..76a405d 100644 --- a/packages/passkey-factory-sdk/package.json +++ b/packages/passkey-factory-sdk/package.json @@ -1,5 +1,5 @@ { - "version": "0.2.0", + "version": "0.2.1", "name": "passkey-factory-sdk", "type": "module", "main": "src/index.ts", diff --git a/packages/passkey-factory-sdk/src/index.ts b/packages/passkey-factory-sdk/src/index.ts index 91ebfb0..b817744 100644 --- a/packages/passkey-factory-sdk/src/index.ts +++ b/packages/passkey-factory-sdk/src/index.ts @@ -15,7 +15,7 @@ if (typeof window !== 'undefined') { export const networks = { testnet: { networkPassphrase: "Test SDF Network ; September 2015", - contractId: "CCNG4UOYRSULIMD2AVF5LWAQRM3XY4L3HQSARBLQ5A7HQBRLDVFUTZ7X", + contractId: "CCPLERXCJZB7LX2VOSOCBNRN754FRLHI6Y2AVOQBA5L7C2ZJX5RFVVET", } } as const diff --git a/packages/passkey-kit-sdk/package.json b/packages/passkey-kit-sdk/package.json index 188d3c7..3448169 100644 --- a/packages/passkey-kit-sdk/package.json +++ b/packages/passkey-kit-sdk/package.json @@ -1,5 +1,5 @@ { - "version": "0.2.0", + "version": "0.2.1", "name": "passkey-kit-sdk", "type": "module", "main": "src/index.ts", diff --git a/packages/passkey-kit-sdk/src/index.ts b/packages/passkey-kit-sdk/src/index.ts index c64c16a..ce5d9ca 100644 --- a/packages/passkey-kit-sdk/src/index.ts +++ b/packages/passkey-kit-sdk/src/index.ts @@ -15,19 +15,18 @@ if (typeof window !== 'undefined') { export const networks = { testnet: { networkPassphrase: "Test SDF Network ; September 2015", - contractId: "CCNG4UOYRSULIMD2AVF5LWAQRM3XY4L3HQSARBLQ5A7HQBRLDVFUTZ7X", + contractId: "CCPLERXCJZB7LX2VOSOCBNRN754FRLHI6Y2AVOQBA5L7C2ZJX5RFVVET", } } as const export const Errors = { 1: { message: "NotFound" }, 2: { message: "NotPermitted" }, - 3: { message: "AlreadyInitialized" }, - 4: { message: "ClientDataJsonChallengeIncorrect" }, - 5: { message: "Secp256r1PublicKeyParse" }, - 6: { message: "Secp256r1SignatureParse" }, - 7: { message: "Secp256r1VerifyFailed" }, - 8: { message: "JsonParseError" } + 3: { message: "ClientDataJsonChallengeIncorrect" }, + 4: { message: "Secp256r1PublicKeyParse" }, + 5: { message: "Secp256r1SignatureParse" }, + 6: { message: "Secp256r1VerifyFailed" }, + 7: { message: "JsonParseError" } } export interface Signature { @@ -79,9 +78,9 @@ export interface Client { }) => Promise>> /** - * Construct and simulate a upgrade transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object. + * Construct and simulate a update transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object. */ - upgrade: ({ hash }: { hash: Buffer }, options?: { + update: ({ hash }: { hash: Buffer }, options?: { /** * The fee to pay for the transaction. Default: BASE_FEE */ @@ -101,10 +100,10 @@ export interface Client { export class Client extends ContractClient { constructor(public readonly options: ContractClientOptions) { super( - new ContractSpec(["AAAABAAAAAAAAAAAAAAABUVycm9yAAAAAAAACAAAAAAAAAAITm90Rm91bmQAAAABAAAAAAAAAAxOb3RQZXJtaXR0ZWQAAAACAAAAAAAAABJBbHJlYWR5SW5pdGlhbGl6ZWQAAAAAAAMAAAAAAAAAIENsaWVudERhdGFKc29uQ2hhbGxlbmdlSW5jb3JyZWN0AAAABAAAAAAAAAAXU2VjcDI1NnIxUHVibGljS2V5UGFyc2UAAAAABQAAAAAAAAAXU2VjcDI1NnIxU2lnbm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AAAAAwAAAAAAAAARc2lnbmF0dXJlX3BheWxvYWQAAAAAAAPuAAAAIAAAAAAAAAAJc2lnbmF0dXJlAAAAAAAH0AAAAAlTaWduYXR1cmUAAAAAAAAAAAAADWF1dGhfY29udGV4dHMAAAAAAAPqAAAH0AAAAAdDb250ZXh0AAAAAAEAAAPpAAAD7QAAAAAAAAAD"]), options @@ -113,6 +112,6 @@ export class Client extends ContractClient { public readonly fromJSON = { add: this.txFromJSON>, remove: this.txFromJSON>, - upgrade: this.txFromJSON> + update: this.txFromJSON> } } \ No newline at end of file