diff --git a/android/src/main/java/io/emurgo/rnhaskellshelley/HaskellShelleyModule.java b/android/src/main/java/io/emurgo/rnhaskellshelley/HaskellShelleyModule.java index 655f0cf..2579e98 100644 --- a/android/src/main/java/io/emurgo/rnhaskellshelley/HaskellShelleyModule.java +++ b/android/src/main/java/io/emurgo/rnhaskellshelley/HaskellShelleyModule.java @@ -2318,9 +2318,9 @@ public final void csl_bridge_committeeColdResignFromJson(String json, Promise pr } @ReactMethod - public final void csl_bridge_committeeColdResignCommitteeColdKey(String self, Promise promise) { + public final void csl_bridge_committeeColdResignCommitteeColdCredential(String self, Promise promise) { Native.I - .csl_bridge_committeeColdResignCommitteeColdKey(new RPtr(self)) + .csl_bridge_committeeColdResignCommitteeColdCredential(new RPtr(self)) .map(RPtr::toJs) .pour(promise); } @@ -2334,17 +2334,17 @@ public final void csl_bridge_committeeColdResignAnchor(String self, Promise prom } @ReactMethod - public final void csl_bridge_committeeColdResignNew(String committeeColdKey, Promise promise) { + public final void csl_bridge_committeeColdResignNew(String committeeColdCredential, Promise promise) { Native.I - .csl_bridge_committeeColdResignNew(new RPtr(committeeColdKey)) + .csl_bridge_committeeColdResignNew(new RPtr(committeeColdCredential)) .map(RPtr::toJs) .pour(promise); } @ReactMethod - public final void csl_bridge_committeeColdResignNewWithAnchor(String committeeColdKey, String anchor, Promise promise) { + public final void csl_bridge_committeeColdResignNewWithAnchor(String committeeColdCredential, String anchor, Promise promise) { Native.I - .csl_bridge_committeeColdResignNewWithAnchor(new RPtr(committeeColdKey), new RPtr(anchor)) + .csl_bridge_committeeColdResignNewWithAnchor(new RPtr(committeeColdCredential), new RPtr(anchor)) .map(RPtr::toJs) .pour(promise); } @@ -2404,25 +2404,25 @@ public final void csl_bridge_committeeHotAuthFromJson(String json, Promise promi } @ReactMethod - public final void csl_bridge_committeeHotAuthCommitteeColdKey(String self, Promise promise) { + public final void csl_bridge_committeeHotAuthCommitteeColdCredential(String self, Promise promise) { Native.I - .csl_bridge_committeeHotAuthCommitteeColdKey(new RPtr(self)) + .csl_bridge_committeeHotAuthCommitteeColdCredential(new RPtr(self)) .map(RPtr::toJs) .pour(promise); } @ReactMethod - public final void csl_bridge_committeeHotAuthCommitteeHotKey(String self, Promise promise) { + public final void csl_bridge_committeeHotAuthCommitteeHotCredential(String self, Promise promise) { Native.I - .csl_bridge_committeeHotAuthCommitteeHotKey(new RPtr(self)) + .csl_bridge_committeeHotAuthCommitteeHotCredential(new RPtr(self)) .map(RPtr::toJs) .pour(promise); } @ReactMethod - public final void csl_bridge_committeeHotAuthNew(String committeeColdKey, String committeeHotKey, Promise promise) { + public final void csl_bridge_committeeHotAuthNew(String committeeColdCredential, String committeeHotCredential, Promise promise) { Native.I - .csl_bridge_committeeHotAuthNew(new RPtr(committeeColdKey), new RPtr(committeeHotKey)) + .csl_bridge_committeeHotAuthNew(new RPtr(committeeColdCredential), new RPtr(committeeHotCredential)) .map(RPtr::toJs) .pour(promise); } @@ -15528,25 +15528,25 @@ public final void csl_bridge_voterFromJson(String json, Promise promise) { } @ReactMethod - public final void csl_bridge_voterNewConstitutionalCommitteeHotKey(String cred, Promise promise) { + public final void csl_bridge_voterNewConstitutionalCommitteeHotCredential(String cred, Promise promise) { Native.I - .csl_bridge_voterNewConstitutionalCommitteeHotKey(new RPtr(cred)) + .csl_bridge_voterNewConstitutionalCommitteeHotCredential(new RPtr(cred)) .map(RPtr::toJs) .pour(promise); } @ReactMethod - public final void csl_bridge_voterNewDrep(String cred, Promise promise) { + public final void csl_bridge_voterNewDrepCredential(String cred, Promise promise) { Native.I - .csl_bridge_voterNewDrep(new RPtr(cred)) + .csl_bridge_voterNewDrepCredential(new RPtr(cred)) .map(RPtr::toJs) .pour(promise); } @ReactMethod - public final void csl_bridge_voterNewStakingPool(String keyHash, Promise promise) { + public final void csl_bridge_voterNewStakePoolKeyHash(String keyHash, Promise promise) { Native.I - .csl_bridge_voterNewStakingPool(new RPtr(keyHash)) + .csl_bridge_voterNewStakePoolKeyHash(new RPtr(keyHash)) .map(RPtr::toJs) .pour(promise); } @@ -15559,25 +15559,25 @@ public final void csl_bridge_voterKind(String self, Promise promise) { } @ReactMethod - public final void csl_bridge_voterToConstitutionalCommitteeHotKey(String self, Promise promise) { + public final void csl_bridge_voterToConstitutionalCommitteeHotCredential(String self, Promise promise) { Native.I - .csl_bridge_voterToConstitutionalCommitteeHotKey(new RPtr(self)) + .csl_bridge_voterToConstitutionalCommitteeHotCredential(new RPtr(self)) .map(RPtr::toJs) .pour(promise); } @ReactMethod - public final void csl_bridge_voterToDrepCred(String self, Promise promise) { + public final void csl_bridge_voterToDrepCredential(String self, Promise promise) { Native.I - .csl_bridge_voterToDrepCred(new RPtr(self)) + .csl_bridge_voterToDrepCredential(new RPtr(self)) .map(RPtr::toJs) .pour(promise); } @ReactMethod - public final void csl_bridge_voterToStakingPoolKeyHash(String self, Promise promise) { + public final void csl_bridge_voterToStakePoolKeyHash(String self, Promise promise) { Native.I - .csl_bridge_voterToStakingPoolKeyHash(new RPtr(self)) + .csl_bridge_voterToStakePoolKeyHash(new RPtr(self)) .map(RPtr::toJs) .pour(promise); } diff --git a/android/src/main/java/io/emurgo/rnhaskellshelley/Native.java b/android/src/main/java/io/emurgo/rnhaskellshelley/Native.java index 8c08fff..d3eb76a 100644 --- a/android/src/main/java/io/emurgo/rnhaskellshelley/Native.java +++ b/android/src/main/java/io/emurgo/rnhaskellshelley/Native.java @@ -331,10 +331,10 @@ private Native() { } public final native Result csl_bridge_committeeColdResignFromHex(String hexStr); public final native Result csl_bridge_committeeColdResignToJson(RPtr self); public final native Result csl_bridge_committeeColdResignFromJson(String json); - public final native Result csl_bridge_committeeColdResignCommitteeColdKey(RPtr self); + public final native Result csl_bridge_committeeColdResignCommitteeColdCredential(RPtr self); public final native Result csl_bridge_committeeColdResignAnchor(RPtr self); - public final native Result csl_bridge_committeeColdResignNew(RPtr committeeColdKey); - public final native Result csl_bridge_committeeColdResignNewWithAnchor(RPtr committeeColdKey, RPtr anchor); + public final native Result csl_bridge_committeeColdResignNew(RPtr committeeColdCredential); + public final native Result csl_bridge_committeeColdResignNewWithAnchor(RPtr committeeColdCredential, RPtr anchor); public final native Result csl_bridge_committeeColdResignHasScriptCredentials(RPtr self); public final native Result csl_bridge_committeeHotAuthToBytes(RPtr self); @@ -343,9 +343,9 @@ private Native() { } public final native Result csl_bridge_committeeHotAuthFromHex(String hexStr); public final native Result csl_bridge_committeeHotAuthToJson(RPtr self); public final native Result csl_bridge_committeeHotAuthFromJson(String json); - public final native Result csl_bridge_committeeHotAuthCommitteeColdKey(RPtr self); - public final native Result csl_bridge_committeeHotAuthCommitteeHotKey(RPtr self); - public final native Result csl_bridge_committeeHotAuthNew(RPtr committeeColdKey, RPtr committeeHotKey); + public final native Result csl_bridge_committeeHotAuthCommitteeColdCredential(RPtr self); + public final native Result csl_bridge_committeeHotAuthCommitteeHotCredential(RPtr self); + public final native Result csl_bridge_committeeHotAuthNew(RPtr committeeColdCredential, RPtr committeeHotCredential); public final native Result csl_bridge_committeeHotAuthHasScriptCredentials(RPtr self); public final native Result csl_bridge_constitutionToBytes(RPtr self); @@ -2189,13 +2189,13 @@ private Native() { } public final native Result csl_bridge_voterFromHex(String hexStr); public final native Result csl_bridge_voterToJson(RPtr self); public final native Result csl_bridge_voterFromJson(String json); - public final native Result csl_bridge_voterNewConstitutionalCommitteeHotKey(RPtr cred); - public final native Result csl_bridge_voterNewDrep(RPtr cred); - public final native Result csl_bridge_voterNewStakingPool(RPtr keyHash); + public final native Result csl_bridge_voterNewConstitutionalCommitteeHotCredential(RPtr cred); + public final native Result csl_bridge_voterNewDrepCredential(RPtr cred); + public final native Result csl_bridge_voterNewStakePoolKeyHash(RPtr keyHash); public final native Result csl_bridge_voterKind(RPtr self); - public final native Result csl_bridge_voterToConstitutionalCommitteeHotKey(RPtr self); - public final native Result csl_bridge_voterToDrepCred(RPtr self); - public final native Result csl_bridge_voterToStakingPoolKeyHash(RPtr self); + public final native Result csl_bridge_voterToConstitutionalCommitteeHotCredential(RPtr self); + public final native Result csl_bridge_voterToDrepCredential(RPtr self); + public final native Result csl_bridge_voterToStakePoolKeyHash(RPtr self); public final native Result csl_bridge_voterHasScriptCredentials(RPtr self); public final native Result csl_bridge_voterToKeyHash(RPtr self); diff --git a/index.d.ts b/index.d.ts index 7f336d4..1f41b92 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1713,7 +1713,7 @@ export class CommitteeColdResign extends Ptr { /** * @returns {Promise} */ - committee_cold_key: () => Promise; + committee_cold_credential: () => Promise; /** * @returns {Promise>} @@ -1721,17 +1721,17 @@ export class CommitteeColdResign extends Ptr { anchor: () => Promise>; /** - * @param {Credential} committee_cold_key + * @param {Credential} committee_cold_credential * @returns {Promise} */ - static new: (committee_cold_key: Credential) => Promise; + static new: (committee_cold_credential: Credential) => Promise; /** - * @param {Credential} committee_cold_key + * @param {Credential} committee_cold_credential * @param {Anchor} anchor * @returns {Promise} */ - static new_with_anchor: (committee_cold_key: Credential, anchor: Anchor) => Promise; + static new_with_anchor: (committee_cold_credential: Credential, anchor: Anchor) => Promise; /** * @returns {Promise} @@ -1778,19 +1778,19 @@ export class CommitteeHotAuth extends Ptr { /** * @returns {Promise} */ - committee_cold_key: () => Promise; + committee_cold_credential: () => Promise; /** * @returns {Promise} */ - committee_hot_key: () => Promise; + committee_hot_credential: () => Promise; /** - * @param {Credential} committee_cold_key - * @param {Credential} committee_hot_key + * @param {Credential} committee_cold_credential + * @param {Credential} committee_hot_credential * @returns {Promise} */ - static new: (committee_cold_key: Credential, committee_hot_key: Credential) => Promise; + static new: (committee_cold_credential: Credential, committee_hot_credential: Credential) => Promise; /** * @returns {Promise} @@ -11604,19 +11604,19 @@ export class Voter extends Ptr { * @param {Credential} cred * @returns {Promise} */ - static new_constitutional_committee_hot_key: (cred: Credential) => Promise; + static new_constitutional_committee_hot_credential: (cred: Credential) => Promise; /** * @param {Credential} cred * @returns {Promise} */ - static new_drep: (cred: Credential) => Promise; + static new_drep_credential: (cred: Credential) => Promise; /** * @param {Ed25519KeyHash} key_hash * @returns {Promise} */ - static new_staking_pool: (key_hash: Ed25519KeyHash) => Promise; + static new_stake_pool_key_hash: (key_hash: Ed25519KeyHash) => Promise; /** * @returns {Promise} @@ -11626,17 +11626,17 @@ export class Voter extends Ptr { /** * @returns {Promise>} */ - to_constitutional_committee_hot_key: () => Promise>; + to_constitutional_committee_hot_credential: () => Promise>; /** * @returns {Promise>} */ - to_drep_cred: () => Promise>; + to_drep_credential: () => Promise>; /** * @returns {Promise>} */ - to_staking_pool_key_hash: () => Promise>; + to_stake_pool_key_hash: () => Promise>; /** * @returns {Promise} diff --git a/index.js b/index.js index e55d664..b416ba9 100644 --- a/index.js +++ b/index.js @@ -1715,8 +1715,8 @@ export class CommitteeColdResign extends Ptr { return Ptr._wrap(ret, CommitteeColdResign); } - async committee_cold_key() { - const ret = await HaskellShelley.csl_bridge_committeeColdResignCommitteeColdKey(this.ptr); + async committee_cold_credential() { + const ret = await HaskellShelley.csl_bridge_committeeColdResignCommitteeColdCredential(this.ptr); return Ptr._wrap(ret, Credential); } @@ -1725,16 +1725,16 @@ export class CommitteeColdResign extends Ptr { return Ptr._wrap(ret, Anchor); } - static async new(committee_cold_key) { - const committee_cold_keyPtr = Ptr._assertClass(committee_cold_key, Credential); - const ret = await HaskellShelley.csl_bridge_committeeColdResignNew(committee_cold_keyPtr); + static async new(committee_cold_credential) { + const committee_cold_credentialPtr = Ptr._assertClass(committee_cold_credential, Credential); + const ret = await HaskellShelley.csl_bridge_committeeColdResignNew(committee_cold_credentialPtr); return Ptr._wrap(ret, CommitteeColdResign); } - static async new_with_anchor(committee_cold_key, anchor) { - const committee_cold_keyPtr = Ptr._assertClass(committee_cold_key, Credential); + static async new_with_anchor(committee_cold_credential, anchor) { + const committee_cold_credentialPtr = Ptr._assertClass(committee_cold_credential, Credential); const anchorPtr = Ptr._assertClass(anchor, Anchor); - const ret = await HaskellShelley.csl_bridge_committeeColdResignNewWithAnchor(committee_cold_keyPtr, anchorPtr); + const ret = await HaskellShelley.csl_bridge_committeeColdResignNewWithAnchor(committee_cold_credentialPtr, anchorPtr); return Ptr._wrap(ret, CommitteeColdResign); } @@ -1777,20 +1777,20 @@ export class CommitteeHotAuth extends Ptr { return Ptr._wrap(ret, CommitteeHotAuth); } - async committee_cold_key() { - const ret = await HaskellShelley.csl_bridge_committeeHotAuthCommitteeColdKey(this.ptr); + async committee_cold_credential() { + const ret = await HaskellShelley.csl_bridge_committeeHotAuthCommitteeColdCredential(this.ptr); return Ptr._wrap(ret, Credential); } - async committee_hot_key() { - const ret = await HaskellShelley.csl_bridge_committeeHotAuthCommitteeHotKey(this.ptr); + async committee_hot_credential() { + const ret = await HaskellShelley.csl_bridge_committeeHotAuthCommitteeHotCredential(this.ptr); return Ptr._wrap(ret, Credential); } - static async new(committee_cold_key, committee_hot_key) { - const committee_cold_keyPtr = Ptr._assertClass(committee_cold_key, Credential); - const committee_hot_keyPtr = Ptr._assertClass(committee_hot_key, Credential); - const ret = await HaskellShelley.csl_bridge_committeeHotAuthNew(committee_cold_keyPtr, committee_hot_keyPtr); + static async new(committee_cold_credential, committee_hot_credential) { + const committee_cold_credentialPtr = Ptr._assertClass(committee_cold_credential, Credential); + const committee_hot_credentialPtr = Ptr._assertClass(committee_hot_credential, Credential); + const ret = await HaskellShelley.csl_bridge_committeeHotAuthNew(committee_cold_credentialPtr, committee_hot_credentialPtr); return Ptr._wrap(ret, CommitteeHotAuth); } @@ -11301,21 +11301,21 @@ export class Voter extends Ptr { return Ptr._wrap(ret, Voter); } - static async new_constitutional_committee_hot_key(cred) { + static async new_constitutional_committee_hot_credential(cred) { const credPtr = Ptr._assertClass(cred, Credential); - const ret = await HaskellShelley.csl_bridge_voterNewConstitutionalCommitteeHotKey(credPtr); + const ret = await HaskellShelley.csl_bridge_voterNewConstitutionalCommitteeHotCredential(credPtr); return Ptr._wrap(ret, Voter); } - static async new_drep(cred) { + static async new_drep_credential(cred) { const credPtr = Ptr._assertClass(cred, Credential); - const ret = await HaskellShelley.csl_bridge_voterNewDrep(credPtr); + const ret = await HaskellShelley.csl_bridge_voterNewDrepCredential(credPtr); return Ptr._wrap(ret, Voter); } - static async new_staking_pool(key_hash) { + static async new_stake_pool_key_hash(key_hash) { const key_hashPtr = Ptr._assertClass(key_hash, Ed25519KeyHash); - const ret = await HaskellShelley.csl_bridge_voterNewStakingPool(key_hashPtr); + const ret = await HaskellShelley.csl_bridge_voterNewStakePoolKeyHash(key_hashPtr); return Ptr._wrap(ret, Voter); } @@ -11324,18 +11324,18 @@ export class Voter extends Ptr { return ret; } - async to_constitutional_committee_hot_key() { - const ret = await HaskellShelley.csl_bridge_voterToConstitutionalCommitteeHotKey(this.ptr); + async to_constitutional_committee_hot_credential() { + const ret = await HaskellShelley.csl_bridge_voterToConstitutionalCommitteeHotCredential(this.ptr); return Ptr._wrap(ret, Credential); } - async to_drep_cred() { - const ret = await HaskellShelley.csl_bridge_voterToDrepCred(this.ptr); + async to_drep_credential() { + const ret = await HaskellShelley.csl_bridge_voterToDrepCredential(this.ptr); return Ptr._wrap(ret, Credential); } - async to_staking_pool_key_hash() { - const ret = await HaskellShelley.csl_bridge_voterToStakingPoolKeyHash(this.ptr); + async to_stake_pool_key_hash() { + const ret = await HaskellShelley.csl_bridge_voterToStakePoolKeyHash(this.ptr); return Ptr._wrap(ret, Ed25519KeyHash); } diff --git a/ios/HaskellShelley.m b/ios/HaskellShelley.m index ad2bbb0..02fc616 100644 --- a/ios/HaskellShelley.m +++ b/ios/HaskellShelley.m @@ -3281,12 +3281,12 @@ + (void)csl_bridge_initialize }] exec:jsonVal andResolve:resolve orReject:reject]; } -RCT_EXPORT_METHOD(csl_bridge_committeeColdResignCommitteeColdKey:(nonnull NSString *)selfPtr withResolve:(RCTPromiseResolveBlock)resolve andReject:(RCTPromiseRejectBlock)reject) +RCT_EXPORT_METHOD(csl_bridge_committeeColdResignCommitteeColdCredential:(nonnull NSString *)selfPtr withResolve:(RCTPromiseResolveBlock)resolve andReject:(RCTPromiseRejectBlock)reject) { [[CSLCSafeOperation new:^NSString*(NSString* selfPtr, CharPtr* error) { RPtr result; RPtr self = [selfPtr rPtr]; - return csl_bridge_committee_cold_resign_committee_cold_key(self, &result, error) + return csl_bridge_committee_cold_resign_committee_cold_credential(self, &result, error) ? [NSString stringFromPtr:result] : nil; }] exec:selfPtr andResolve:resolve orReject:reject]; @@ -3303,27 +3303,27 @@ + (void)csl_bridge_initialize }] exec:selfPtr andResolve:resolve orReject:reject]; } -RCT_EXPORT_METHOD(csl_bridge_committeeColdResignNew:(nonnull NSString *)committeeColdKeyPtr withResolve:(RCTPromiseResolveBlock)resolve andReject:(RCTPromiseRejectBlock)reject) +RCT_EXPORT_METHOD(csl_bridge_committeeColdResignNew:(nonnull NSString *)committeeColdCredentialPtr withResolve:(RCTPromiseResolveBlock)resolve andReject:(RCTPromiseRejectBlock)reject) { - [[CSLCSafeOperation new:^NSString*(NSString* committeeColdKeyPtr, CharPtr* error) { + [[CSLCSafeOperation new:^NSString*(NSString* committeeColdCredentialPtr, CharPtr* error) { RPtr result; - RPtr committeeColdKey = [committeeColdKeyPtr rPtr]; - return csl_bridge_committee_cold_resign_new(committeeColdKey, &result, error) + RPtr committeeColdCredential = [committeeColdCredentialPtr rPtr]; + return csl_bridge_committee_cold_resign_new(committeeColdCredential, &result, error) ? [NSString stringFromPtr:result] : nil; - }] exec:committeeColdKeyPtr andResolve:resolve orReject:reject]; + }] exec:committeeColdCredentialPtr andResolve:resolve orReject:reject]; } -RCT_EXPORT_METHOD(csl_bridge_committeeColdResignNewWithAnchor:(nonnull NSString *)committeeColdKeyPtr withAnchor:(nonnull NSString *)anchorPtr withResolve:(RCTPromiseResolveBlock)resolve andReject:(RCTPromiseRejectBlock)reject) +RCT_EXPORT_METHOD(csl_bridge_committeeColdResignNewWithAnchor:(nonnull NSString *)committeeColdCredentialPtr withAnchor:(nonnull NSString *)anchorPtr withResolve:(RCTPromiseResolveBlock)resolve andReject:(RCTPromiseRejectBlock)reject) { [[CSLCSafeOperation new:^NSString*(NSArray* params, CharPtr* error) { RPtr result; - RPtr committeeColdKey = [[params objectAtIndex:0] rPtr]; + RPtr committeeColdCredential = [[params objectAtIndex:0] rPtr]; RPtr anchor = [[params objectAtIndex:1] rPtr]; - return csl_bridge_committee_cold_resign_new_with_anchor(committeeColdKey, anchor, &result, error) + return csl_bridge_committee_cold_resign_new_with_anchor(committeeColdCredential, anchor, &result, error) ? [NSString stringFromPtr:result] : nil; - }] exec:@[committeeColdKeyPtr, anchorPtr] andResolve:resolve orReject:reject]; + }] exec:@[committeeColdCredentialPtr, anchorPtr] andResolve:resolve orReject:reject]; } RCT_EXPORT_METHOD(csl_bridge_committeeColdResignHasScriptCredentials:(nonnull NSString *)selfPtr withResolve:(RCTPromiseResolveBlock)resolve andReject:(RCTPromiseRejectBlock)reject) @@ -3404,38 +3404,38 @@ + (void)csl_bridge_initialize }] exec:jsonVal andResolve:resolve orReject:reject]; } -RCT_EXPORT_METHOD(csl_bridge_committeeHotAuthCommitteeColdKey:(nonnull NSString *)selfPtr withResolve:(RCTPromiseResolveBlock)resolve andReject:(RCTPromiseRejectBlock)reject) +RCT_EXPORT_METHOD(csl_bridge_committeeHotAuthCommitteeColdCredential:(nonnull NSString *)selfPtr withResolve:(RCTPromiseResolveBlock)resolve andReject:(RCTPromiseRejectBlock)reject) { [[CSLCSafeOperation new:^NSString*(NSString* selfPtr, CharPtr* error) { RPtr result; RPtr self = [selfPtr rPtr]; - return csl_bridge_committee_hot_auth_committee_cold_key(self, &result, error) + return csl_bridge_committee_hot_auth_committee_cold_credential(self, &result, error) ? [NSString stringFromPtr:result] : nil; }] exec:selfPtr andResolve:resolve orReject:reject]; } -RCT_EXPORT_METHOD(csl_bridge_committeeHotAuthCommitteeHotKey:(nonnull NSString *)selfPtr withResolve:(RCTPromiseResolveBlock)resolve andReject:(RCTPromiseRejectBlock)reject) +RCT_EXPORT_METHOD(csl_bridge_committeeHotAuthCommitteeHotCredential:(nonnull NSString *)selfPtr withResolve:(RCTPromiseResolveBlock)resolve andReject:(RCTPromiseRejectBlock)reject) { [[CSLCSafeOperation new:^NSString*(NSString* selfPtr, CharPtr* error) { RPtr result; RPtr self = [selfPtr rPtr]; - return csl_bridge_committee_hot_auth_committee_hot_key(self, &result, error) + return csl_bridge_committee_hot_auth_committee_hot_credential(self, &result, error) ? [NSString stringFromPtr:result] : nil; }] exec:selfPtr andResolve:resolve orReject:reject]; } -RCT_EXPORT_METHOD(csl_bridge_committeeHotAuthNew:(nonnull NSString *)committeeColdKeyPtr withCommitteeHotKey:(nonnull NSString *)committeeHotKeyPtr withResolve:(RCTPromiseResolveBlock)resolve andReject:(RCTPromiseRejectBlock)reject) +RCT_EXPORT_METHOD(csl_bridge_committeeHotAuthNew:(nonnull NSString *)committeeColdCredentialPtr withCommitteeHotCredential:(nonnull NSString *)committeeHotCredentialPtr withResolve:(RCTPromiseResolveBlock)resolve andReject:(RCTPromiseRejectBlock)reject) { [[CSLCSafeOperation new:^NSString*(NSArray* params, CharPtr* error) { RPtr result; - RPtr committeeColdKey = [[params objectAtIndex:0] rPtr]; - RPtr committeeHotKey = [[params objectAtIndex:1] rPtr]; - return csl_bridge_committee_hot_auth_new(committeeColdKey, committeeHotKey, &result, error) + RPtr committeeColdCredential = [[params objectAtIndex:0] rPtr]; + RPtr committeeHotCredential = [[params objectAtIndex:1] rPtr]; + return csl_bridge_committee_hot_auth_new(committeeColdCredential, committeeHotCredential, &result, error) ? [NSString stringFromPtr:result] : nil; - }] exec:@[committeeColdKeyPtr, committeeHotKeyPtr] andResolve:resolve orReject:reject]; + }] exec:@[committeeColdCredentialPtr, committeeHotCredentialPtr] andResolve:resolve orReject:reject]; } RCT_EXPORT_METHOD(csl_bridge_committeeHotAuthHasScriptCredentials:(nonnull NSString *)selfPtr withResolve:(RCTPromiseResolveBlock)resolve andReject:(RCTPromiseRejectBlock)reject) @@ -22117,34 +22117,34 @@ + (void)csl_bridge_initialize }] exec:jsonVal andResolve:resolve orReject:reject]; } -RCT_EXPORT_METHOD(csl_bridge_voterNewConstitutionalCommitteeHotKey:(nonnull NSString *)credPtr withResolve:(RCTPromiseResolveBlock)resolve andReject:(RCTPromiseRejectBlock)reject) +RCT_EXPORT_METHOD(csl_bridge_voterNewConstitutionalCommitteeHotCredential:(nonnull NSString *)credPtr withResolve:(RCTPromiseResolveBlock)resolve andReject:(RCTPromiseRejectBlock)reject) { [[CSLCSafeOperation new:^NSString*(NSString* credPtr, CharPtr* error) { RPtr result; RPtr cred = [credPtr rPtr]; - return csl_bridge_voter_new_constitutional_committee_hot_key(cred, &result, error) + return csl_bridge_voter_new_constitutional_committee_hot_credential(cred, &result, error) ? [NSString stringFromPtr:result] : nil; }] exec:credPtr andResolve:resolve orReject:reject]; } -RCT_EXPORT_METHOD(csl_bridge_voterNewDrep:(nonnull NSString *)credPtr withResolve:(RCTPromiseResolveBlock)resolve andReject:(RCTPromiseRejectBlock)reject) +RCT_EXPORT_METHOD(csl_bridge_voterNewDrepCredential:(nonnull NSString *)credPtr withResolve:(RCTPromiseResolveBlock)resolve andReject:(RCTPromiseRejectBlock)reject) { [[CSLCSafeOperation new:^NSString*(NSString* credPtr, CharPtr* error) { RPtr result; RPtr cred = [credPtr rPtr]; - return csl_bridge_voter_new_drep(cred, &result, error) + return csl_bridge_voter_new_drep_credential(cred, &result, error) ? [NSString stringFromPtr:result] : nil; }] exec:credPtr andResolve:resolve orReject:reject]; } -RCT_EXPORT_METHOD(csl_bridge_voterNewStakingPool:(nonnull NSString *)keyHashPtr withResolve:(RCTPromiseResolveBlock)resolve andReject:(RCTPromiseRejectBlock)reject) +RCT_EXPORT_METHOD(csl_bridge_voterNewStakePoolKeyHash:(nonnull NSString *)keyHashPtr withResolve:(RCTPromiseResolveBlock)resolve andReject:(RCTPromiseRejectBlock)reject) { [[CSLCSafeOperation new:^NSString*(NSString* keyHashPtr, CharPtr* error) { RPtr result; RPtr keyHash = [keyHashPtr rPtr]; - return csl_bridge_voter_new_staking_pool(keyHash, &result, error) + return csl_bridge_voter_new_stake_pool_key_hash(keyHash, &result, error) ? [NSString stringFromPtr:result] : nil; }] exec:keyHashPtr andResolve:resolve orReject:reject]; @@ -22161,34 +22161,34 @@ + (void)csl_bridge_initialize }] exec:selfPtr andResolve:resolve orReject:reject]; } -RCT_EXPORT_METHOD(csl_bridge_voterToConstitutionalCommitteeHotKey:(nonnull NSString *)selfPtr withResolve:(RCTPromiseResolveBlock)resolve andReject:(RCTPromiseRejectBlock)reject) +RCT_EXPORT_METHOD(csl_bridge_voterToConstitutionalCommitteeHotCredential:(nonnull NSString *)selfPtr withResolve:(RCTPromiseResolveBlock)resolve andReject:(RCTPromiseRejectBlock)reject) { [[CSLCSafeOperation new:^NSString*(NSString* selfPtr, CharPtr* error) { RPtr result; RPtr self = [selfPtr rPtr]; - return csl_bridge_voter_to_constitutional_committee_hot_key(self, &result, error) + return csl_bridge_voter_to_constitutional_committee_hot_credential(self, &result, error) ? [NSString stringFromPtr:result] : nil; }] exec:selfPtr andResolve:resolve orReject:reject]; } -RCT_EXPORT_METHOD(csl_bridge_voterToDrepCred:(nonnull NSString *)selfPtr withResolve:(RCTPromiseResolveBlock)resolve andReject:(RCTPromiseRejectBlock)reject) +RCT_EXPORT_METHOD(csl_bridge_voterToDrepCredential:(nonnull NSString *)selfPtr withResolve:(RCTPromiseResolveBlock)resolve andReject:(RCTPromiseRejectBlock)reject) { [[CSLCSafeOperation new:^NSString*(NSString* selfPtr, CharPtr* error) { RPtr result; RPtr self = [selfPtr rPtr]; - return csl_bridge_voter_to_drep_cred(self, &result, error) + return csl_bridge_voter_to_drep_credential(self, &result, error) ? [NSString stringFromPtr:result] : nil; }] exec:selfPtr andResolve:resolve orReject:reject]; } -RCT_EXPORT_METHOD(csl_bridge_voterToStakingPoolKeyHash:(nonnull NSString *)selfPtr withResolve:(RCTPromiseResolveBlock)resolve andReject:(RCTPromiseRejectBlock)reject) +RCT_EXPORT_METHOD(csl_bridge_voterToStakePoolKeyHash:(nonnull NSString *)selfPtr withResolve:(RCTPromiseResolveBlock)resolve andReject:(RCTPromiseRejectBlock)reject) { [[CSLCSafeOperation new:^NSString*(NSString* selfPtr, CharPtr* error) { RPtr result; RPtr self = [selfPtr rPtr]; - return csl_bridge_voter_to_staking_pool_key_hash(self, &result, error) + return csl_bridge_voter_to_stake_pool_key_hash(self, &result, error) ? [NSString stringFromPtr:result] : nil; }] exec:selfPtr andResolve:resolve orReject:reject]; diff --git a/package.json b/package.json index 1ae780d..4a51443 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@emurgo/csl-mobile-bridge", "title": "CSL mobile bridge", - "version": "6.0.0-beta.1", + "version": "6.0.0", "description": "React-native bindings for Emurgo's cardano-serialization-lib (Cardano haskell Shelley)", "main": "index.js", "files": [ diff --git a/rust/Cargo.lock b/rust/Cargo.lock index a8b18e5..7d80cf3 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -87,9 +87,9 @@ checksum = "dfb24e866b15a1af2a1b663f10c6b6b8f397a84aadb828f12e5b289ec23a3a3c" [[package]] name = "cardano-serialization-lib" -version = "12.0.0-beta.8" +version = "12.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf805e656e3f68de089574cd990c6496bce2826b394982dd2dd5a1ae2a19e597" +checksum = "2d239ac90193de5e32e753c53a4a1a859bc9204d4905875b8fe26e3e343f69a3" dependencies = [ "bech32", "cbor_event", @@ -222,7 +222,7 @@ source = "git+https://github.com/emurgo/cryptoxide?tag=0.4.4#cbc69c01642b263541c [[package]] name = "csl-mobile-bridge" -version = "6.0.0-alpha.7" +version = "6.0.0" dependencies = [ "base64", "byteorder", diff --git a/rust/Cargo.toml b/rust/Cargo.toml index fd37598..e215f16 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "csl-mobile-bridge" -version = "6.0.0-alpha.7" +version = "6.0.0" authors = ["EMURGO"] edition = "2018" @@ -11,7 +11,7 @@ cbindgen = "=0.14.1" cryptoxide = { git = "https://github.com/emurgo/cryptoxide", tag="0.4.4"} [dependencies] -cardano-serialization-lib = "=12.0.0-beta.8" +cardano-serialization-lib = "=12.0.0" byteorder = "1.4.3" base64 = "0.20.0" # tag = "2.3.1" diff --git a/rust/src/android/bridge.rs b/rust/src/android/bridge.rs index 3d5ec88..bc105a0 100644 --- a/rust/src/android/bridge.rs +++ b/rust/src/android/bridge.rs @@ -260,6 +260,7 @@ use cardano_serialization_lib::min_ada_for_output; use cardano_serialization_lib::min_fee; use cardano_serialization_lib::min_ref_script_fee; use cardano_serialization_lib::min_script_fee; +use cardano_serialization_lib::u32; #[allow(non_snake_case)] @@ -4083,11 +4084,11 @@ pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_csl_1bridge_1com #[allow(non_snake_case)] #[no_mangle] -pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_csl_1bridge_1committeeColdResignCommitteeColdKey(env: JNIEnv, _: JObject, self_ptr: JRPtr) -> jobject { +pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_csl_1bridge_1committeeColdResignCommitteeColdCredential(env: JNIEnv, _: JObject, self_ptr: JRPtr) -> jobject { handle_exception_result(|| { let self_jrptr = self_ptr.rptr(&env)?; let self_rptr = self_jrptr.typed_ref::()?; - let result = self_rptr.committee_cold_key(); + let result = self_rptr.committee_cold_credential(); result.rptr().jptr(&env) }) .jresult(&env) @@ -4109,11 +4110,11 @@ pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_csl_1bridge_1com #[allow(non_snake_case)] #[no_mangle] -pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_csl_1bridge_1committeeColdResignNew(env: JNIEnv, _: JObject, committee_cold_key_ptr: JRPtr) -> jobject { +pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_csl_1bridge_1committeeColdResignNew(env: JNIEnv, _: JObject, committee_cold_credential_ptr: JRPtr) -> jobject { handle_exception_result(|| { - let committee_cold_key_jrptr = committee_cold_key_ptr.rptr(&env)?; - let committee_cold_key = committee_cold_key_jrptr.typed_ref::()?; - let result = CommitteeColdResign::new(committee_cold_key); + let committee_cold_credential_jrptr = committee_cold_credential_ptr.rptr(&env)?; + let committee_cold_credential = committee_cold_credential_jrptr.typed_ref::()?; + let result = CommitteeColdResign::new(committee_cold_credential); result.rptr().jptr(&env) }) .jresult(&env) @@ -4122,13 +4123,13 @@ pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_csl_1bridge_1com #[allow(non_snake_case)] #[no_mangle] -pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_csl_1bridge_1committeeColdResignNewWithAnchor(env: JNIEnv, _: JObject, committee_cold_key_ptr: JRPtr, anchor_ptr: JRPtr) -> jobject { +pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_csl_1bridge_1committeeColdResignNewWithAnchor(env: JNIEnv, _: JObject, committee_cold_credential_ptr: JRPtr, anchor_ptr: JRPtr) -> jobject { handle_exception_result(|| { - let committee_cold_key_jrptr = committee_cold_key_ptr.rptr(&env)?; - let committee_cold_key = committee_cold_key_jrptr.typed_ref::()?; + let committee_cold_credential_jrptr = committee_cold_credential_ptr.rptr(&env)?; + let committee_cold_credential = committee_cold_credential_jrptr.typed_ref::()?; let anchor_jrptr = anchor_ptr.rptr(&env)?; let anchor = anchor_jrptr.typed_ref::()?; - let result = CommitteeColdResign::new_with_anchor(committee_cold_key, anchor); + let result = CommitteeColdResign::new_with_anchor(committee_cold_credential, anchor); result.rptr().jptr(&env) }) .jresult(&env) @@ -4226,11 +4227,11 @@ pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_csl_1bridge_1com #[allow(non_snake_case)] #[no_mangle] -pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_csl_1bridge_1committeeHotAuthCommitteeColdKey(env: JNIEnv, _: JObject, self_ptr: JRPtr) -> jobject { +pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_csl_1bridge_1committeeHotAuthCommitteeColdCredential(env: JNIEnv, _: JObject, self_ptr: JRPtr) -> jobject { handle_exception_result(|| { let self_jrptr = self_ptr.rptr(&env)?; let self_rptr = self_jrptr.typed_ref::()?; - let result = self_rptr.committee_cold_key(); + let result = self_rptr.committee_cold_credential(); result.rptr().jptr(&env) }) .jresult(&env) @@ -4239,11 +4240,11 @@ pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_csl_1bridge_1com #[allow(non_snake_case)] #[no_mangle] -pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_csl_1bridge_1committeeHotAuthCommitteeHotKey(env: JNIEnv, _: JObject, self_ptr: JRPtr) -> jobject { +pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_csl_1bridge_1committeeHotAuthCommitteeHotCredential(env: JNIEnv, _: JObject, self_ptr: JRPtr) -> jobject { handle_exception_result(|| { let self_jrptr = self_ptr.rptr(&env)?; let self_rptr = self_jrptr.typed_ref::()?; - let result = self_rptr.committee_hot_key(); + let result = self_rptr.committee_hot_credential(); result.rptr().jptr(&env) }) .jresult(&env) @@ -4252,13 +4253,13 @@ pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_csl_1bridge_1com #[allow(non_snake_case)] #[no_mangle] -pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_csl_1bridge_1committeeHotAuthNew(env: JNIEnv, _: JObject, committee_cold_key_ptr: JRPtr, committee_hot_key_ptr: JRPtr) -> jobject { +pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_csl_1bridge_1committeeHotAuthNew(env: JNIEnv, _: JObject, committee_cold_credential_ptr: JRPtr, committee_hot_credential_ptr: JRPtr) -> jobject { handle_exception_result(|| { - let committee_cold_key_jrptr = committee_cold_key_ptr.rptr(&env)?; - let committee_cold_key = committee_cold_key_jrptr.typed_ref::()?; - let committee_hot_key_jrptr = committee_hot_key_ptr.rptr(&env)?; - let committee_hot_key = committee_hot_key_jrptr.typed_ref::()?; - let result = CommitteeHotAuth::new(committee_cold_key, committee_hot_key); + let committee_cold_credential_jrptr = committee_cold_credential_ptr.rptr(&env)?; + let committee_cold_credential = committee_cold_credential_jrptr.typed_ref::()?; + let committee_hot_credential_jrptr = committee_hot_credential_ptr.rptr(&env)?; + let committee_hot_credential = committee_hot_credential_jrptr.typed_ref::()?; + let result = CommitteeHotAuth::new(committee_cold_credential, committee_hot_credential); result.rptr().jptr(&env) }) .jresult(&env) @@ -26526,11 +26527,11 @@ pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_csl_1bridge_1vot #[allow(non_snake_case)] #[no_mangle] -pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_csl_1bridge_1voterNewConstitutionalCommitteeHotKey(env: JNIEnv, _: JObject, cred_ptr: JRPtr) -> jobject { +pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_csl_1bridge_1voterNewConstitutionalCommitteeHotCredential(env: JNIEnv, _: JObject, cred_ptr: JRPtr) -> jobject { handle_exception_result(|| { let cred_jrptr = cred_ptr.rptr(&env)?; let cred = cred_jrptr.typed_ref::()?; - let result = Voter::new_constitutional_committee_hot_key(cred); + let result = Voter::new_constitutional_committee_hot_credential(cred); result.rptr().jptr(&env) }) .jresult(&env) @@ -26539,11 +26540,11 @@ pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_csl_1bridge_1vot #[allow(non_snake_case)] #[no_mangle] -pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_csl_1bridge_1voterNewDrep(env: JNIEnv, _: JObject, cred_ptr: JRPtr) -> jobject { +pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_csl_1bridge_1voterNewDrepCredential(env: JNIEnv, _: JObject, cred_ptr: JRPtr) -> jobject { handle_exception_result(|| { let cred_jrptr = cred_ptr.rptr(&env)?; let cred = cred_jrptr.typed_ref::()?; - let result = Voter::new_drep(cred); + let result = Voter::new_drep_credential(cred); result.rptr().jptr(&env) }) .jresult(&env) @@ -26552,11 +26553,11 @@ pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_csl_1bridge_1vot #[allow(non_snake_case)] #[no_mangle] -pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_csl_1bridge_1voterNewStakingPool(env: JNIEnv, _: JObject, key_hash_ptr: JRPtr) -> jobject { +pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_csl_1bridge_1voterNewStakePoolKeyHash(env: JNIEnv, _: JObject, key_hash_ptr: JRPtr) -> jobject { handle_exception_result(|| { let key_hash_jrptr = key_hash_ptr.rptr(&env)?; let key_hash = key_hash_jrptr.typed_ref::()?; - let result = Voter::new_staking_pool(key_hash); + let result = Voter::new_stake_pool_key_hash(key_hash); result.rptr().jptr(&env) }) .jresult(&env) @@ -26578,11 +26579,11 @@ pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_csl_1bridge_1vot #[allow(non_snake_case)] #[no_mangle] -pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_csl_1bridge_1voterToConstitutionalCommitteeHotKey(env: JNIEnv, _: JObject, self_ptr: JRPtr) -> jobject { +pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_csl_1bridge_1voterToConstitutionalCommitteeHotCredential(env: JNIEnv, _: JObject, self_ptr: JRPtr) -> jobject { handle_exception_result(|| { let self_jrptr = self_ptr.rptr(&env)?; let self_rptr = self_jrptr.typed_ref::()?; - let result = self_rptr.to_constitutional_committee_hot_key(); + let result = self_rptr.to_constitutional_committee_hot_credential(); result.rptr().jptr(&env) }) .jresult(&env) @@ -26591,11 +26592,11 @@ pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_csl_1bridge_1vot #[allow(non_snake_case)] #[no_mangle] -pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_csl_1bridge_1voterToDrepCred(env: JNIEnv, _: JObject, self_ptr: JRPtr) -> jobject { +pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_csl_1bridge_1voterToDrepCredential(env: JNIEnv, _: JObject, self_ptr: JRPtr) -> jobject { handle_exception_result(|| { let self_jrptr = self_ptr.rptr(&env)?; let self_rptr = self_jrptr.typed_ref::()?; - let result = self_rptr.to_drep_cred(); + let result = self_rptr.to_drep_credential(); result.rptr().jptr(&env) }) .jresult(&env) @@ -26604,11 +26605,11 @@ pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_csl_1bridge_1vot #[allow(non_snake_case)] #[no_mangle] -pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_csl_1bridge_1voterToStakingPoolKeyHash(env: JNIEnv, _: JObject, self_ptr: JRPtr) -> jobject { +pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_csl_1bridge_1voterToStakePoolKeyHash(env: JNIEnv, _: JObject, self_ptr: JRPtr) -> jobject { handle_exception_result(|| { let self_jrptr = self_ptr.rptr(&env)?; let self_rptr = self_jrptr.typed_ref::()?; - let result = self_rptr.to_staking_pool_key_hash(); + let result = self_rptr.to_stake_pool_key_hash(); result.rptr().jptr(&env) }) .jresult(&env) diff --git a/rust/src/ios/bridge.rs b/rust/src/ios/bridge.rs index 6708f89..bc73619 100644 --- a/rust/src/ios/bridge.rs +++ b/rust/src/ios/bridge.rs @@ -3507,10 +3507,10 @@ pub unsafe extern "C" fn csl_bridge_committee_cold_resign_from_json(json_str: Ch #[no_mangle] -pub unsafe extern "C" fn csl_bridge_committee_cold_resign_committee_cold_key(self_rptr: RPtr, result: &mut RPtr, error: &mut CharPtr) -> bool { +pub unsafe extern "C" fn csl_bridge_committee_cold_resign_committee_cold_credential(self_rptr: RPtr, result: &mut RPtr, error: &mut CharPtr) -> bool { handle_exception_result(|| { let self_ref = self_rptr.typed_ref::()?; - let result = self_ref.committee_cold_key(); + let result = self_ref.committee_cold_credential(); Ok::(result.rptr()) }) .response(result, error) @@ -3529,10 +3529,10 @@ pub unsafe extern "C" fn csl_bridge_committee_cold_resign_anchor(self_rptr: RPtr #[no_mangle] -pub unsafe extern "C" fn csl_bridge_committee_cold_resign_new(committee_cold_key_rptr: RPtr, result: &mut RPtr, error: &mut CharPtr) -> bool { +pub unsafe extern "C" fn csl_bridge_committee_cold_resign_new(committee_cold_credential_rptr: RPtr, result: &mut RPtr, error: &mut CharPtr) -> bool { handle_exception_result(|| { - let committee_cold_key = committee_cold_key_rptr.typed_ref::()?; - let result = CommitteeColdResign::new(committee_cold_key); + let committee_cold_credential = committee_cold_credential_rptr.typed_ref::()?; + let result = CommitteeColdResign::new(committee_cold_credential); Ok::(result.rptr()) }) .response(result, error) @@ -3540,11 +3540,11 @@ pub unsafe extern "C" fn csl_bridge_committee_cold_resign_new(committee_cold_key #[no_mangle] -pub unsafe extern "C" fn csl_bridge_committee_cold_resign_new_with_anchor(committee_cold_key_rptr: RPtr, anchor_rptr: RPtr, result: &mut RPtr, error: &mut CharPtr) -> bool { +pub unsafe extern "C" fn csl_bridge_committee_cold_resign_new_with_anchor(committee_cold_credential_rptr: RPtr, anchor_rptr: RPtr, result: &mut RPtr, error: &mut CharPtr) -> bool { handle_exception_result(|| { - let committee_cold_key = committee_cold_key_rptr.typed_ref::()?; + let committee_cold_credential = committee_cold_credential_rptr.typed_ref::()?; let anchor = anchor_rptr.typed_ref::()?; - let result = CommitteeColdResign::new_with_anchor(committee_cold_key, anchor); + let result = CommitteeColdResign::new_with_anchor(committee_cold_credential, anchor); Ok::(result.rptr()) }) .response(result, error) @@ -3630,10 +3630,10 @@ pub unsafe extern "C" fn csl_bridge_committee_hot_auth_from_json(json_str: CharP #[no_mangle] -pub unsafe extern "C" fn csl_bridge_committee_hot_auth_committee_cold_key(self_rptr: RPtr, result: &mut RPtr, error: &mut CharPtr) -> bool { +pub unsafe extern "C" fn csl_bridge_committee_hot_auth_committee_cold_credential(self_rptr: RPtr, result: &mut RPtr, error: &mut CharPtr) -> bool { handle_exception_result(|| { let self_ref = self_rptr.typed_ref::()?; - let result = self_ref.committee_cold_key(); + let result = self_ref.committee_cold_credential(); Ok::(result.rptr()) }) .response(result, error) @@ -3641,10 +3641,10 @@ pub unsafe extern "C" fn csl_bridge_committee_hot_auth_committee_cold_key(self_r #[no_mangle] -pub unsafe extern "C" fn csl_bridge_committee_hot_auth_committee_hot_key(self_rptr: RPtr, result: &mut RPtr, error: &mut CharPtr) -> bool { +pub unsafe extern "C" fn csl_bridge_committee_hot_auth_committee_hot_credential(self_rptr: RPtr, result: &mut RPtr, error: &mut CharPtr) -> bool { handle_exception_result(|| { let self_ref = self_rptr.typed_ref::()?; - let result = self_ref.committee_hot_key(); + let result = self_ref.committee_hot_credential(); Ok::(result.rptr()) }) .response(result, error) @@ -3652,11 +3652,11 @@ pub unsafe extern "C" fn csl_bridge_committee_hot_auth_committee_hot_key(self_rp #[no_mangle] -pub unsafe extern "C" fn csl_bridge_committee_hot_auth_new(committee_cold_key_rptr: RPtr, committee_hot_key_rptr: RPtr, result: &mut RPtr, error: &mut CharPtr) -> bool { +pub unsafe extern "C" fn csl_bridge_committee_hot_auth_new(committee_cold_credential_rptr: RPtr, committee_hot_credential_rptr: RPtr, result: &mut RPtr, error: &mut CharPtr) -> bool { handle_exception_result(|| { - let committee_cold_key = committee_cold_key_rptr.typed_ref::()?; - let committee_hot_key = committee_hot_key_rptr.typed_ref::()?; - let result = CommitteeHotAuth::new(committee_cold_key, committee_hot_key); + let committee_cold_credential = committee_cold_credential_rptr.typed_ref::()?; + let committee_hot_credential = committee_hot_credential_rptr.typed_ref::()?; + let result = CommitteeHotAuth::new(committee_cold_credential, committee_hot_credential); Ok::(result.rptr()) }) .response(result, error) @@ -22667,10 +22667,10 @@ pub unsafe extern "C" fn csl_bridge_voter_from_json(json_str: CharPtr, result: & #[no_mangle] -pub unsafe extern "C" fn csl_bridge_voter_new_constitutional_committee_hot_key(cred_rptr: RPtr, result: &mut RPtr, error: &mut CharPtr) -> bool { +pub unsafe extern "C" fn csl_bridge_voter_new_constitutional_committee_hot_credential(cred_rptr: RPtr, result: &mut RPtr, error: &mut CharPtr) -> bool { handle_exception_result(|| { let cred = cred_rptr.typed_ref::()?; - let result = Voter::new_constitutional_committee_hot_key(cred); + let result = Voter::new_constitutional_committee_hot_credential(cred); Ok::(result.rptr()) }) .response(result, error) @@ -22678,10 +22678,10 @@ pub unsafe extern "C" fn csl_bridge_voter_new_constitutional_committee_hot_key(c #[no_mangle] -pub unsafe extern "C" fn csl_bridge_voter_new_drep(cred_rptr: RPtr, result: &mut RPtr, error: &mut CharPtr) -> bool { +pub unsafe extern "C" fn csl_bridge_voter_new_drep_credential(cred_rptr: RPtr, result: &mut RPtr, error: &mut CharPtr) -> bool { handle_exception_result(|| { let cred = cred_rptr.typed_ref::()?; - let result = Voter::new_drep(cred); + let result = Voter::new_drep_credential(cred); Ok::(result.rptr()) }) .response(result, error) @@ -22689,10 +22689,10 @@ pub unsafe extern "C" fn csl_bridge_voter_new_drep(cred_rptr: RPtr, result: &mut #[no_mangle] -pub unsafe extern "C" fn csl_bridge_voter_new_staking_pool(key_hash_rptr: RPtr, result: &mut RPtr, error: &mut CharPtr) -> bool { +pub unsafe extern "C" fn csl_bridge_voter_new_stake_pool_key_hash(key_hash_rptr: RPtr, result: &mut RPtr, error: &mut CharPtr) -> bool { handle_exception_result(|| { let key_hash = key_hash_rptr.typed_ref::()?; - let result = Voter::new_staking_pool(key_hash); + let result = Voter::new_stake_pool_key_hash(key_hash); Ok::(result.rptr()) }) .response(result, error) @@ -22711,10 +22711,10 @@ pub unsafe extern "C" fn csl_bridge_voter_kind(self_rptr: RPtr, result: &mut i32 #[no_mangle] -pub unsafe extern "C" fn csl_bridge_voter_to_constitutional_committee_hot_key(self_rptr: RPtr, result: &mut RPtr, error: &mut CharPtr) -> bool { +pub unsafe extern "C" fn csl_bridge_voter_to_constitutional_committee_hot_credential(self_rptr: RPtr, result: &mut RPtr, error: &mut CharPtr) -> bool { handle_exception_result(|| { let self_ref = self_rptr.typed_ref::()?; - let result = self_ref.to_constitutional_committee_hot_key(); + let result = self_ref.to_constitutional_committee_hot_credential(); Ok::, String>(result.map(|v| v.rptr())) }) .response_nullable(result, error) @@ -22722,10 +22722,10 @@ pub unsafe extern "C" fn csl_bridge_voter_to_constitutional_committee_hot_key(se #[no_mangle] -pub unsafe extern "C" fn csl_bridge_voter_to_drep_cred(self_rptr: RPtr, result: &mut RPtr, error: &mut CharPtr) -> bool { +pub unsafe extern "C" fn csl_bridge_voter_to_drep_credential(self_rptr: RPtr, result: &mut RPtr, error: &mut CharPtr) -> bool { handle_exception_result(|| { let self_ref = self_rptr.typed_ref::()?; - let result = self_ref.to_drep_cred(); + let result = self_ref.to_drep_credential(); Ok::, String>(result.map(|v| v.rptr())) }) .response_nullable(result, error) @@ -22733,10 +22733,10 @@ pub unsafe extern "C" fn csl_bridge_voter_to_drep_cred(self_rptr: RPtr, result: #[no_mangle] -pub unsafe extern "C" fn csl_bridge_voter_to_staking_pool_key_hash(self_rptr: RPtr, result: &mut RPtr, error: &mut CharPtr) -> bool { +pub unsafe extern "C" fn csl_bridge_voter_to_stake_pool_key_hash(self_rptr: RPtr, result: &mut RPtr, error: &mut CharPtr) -> bool { handle_exception_result(|| { let self_ref = self_rptr.typed_ref::()?; - let result = self_ref.to_staking_pool_key_hash(); + let result = self_ref.to_stake_pool_key_hash(); Ok::, String>(result.map(|v| v.rptr())) }) .response_nullable(result, error)