diff --git a/BraveRewards/BraveRewards.framework/BraveRewards b/BraveRewards/BraveRewards.framework/BraveRewards index 383b654c062..36f6c5938b7 100755 Binary files a/BraveRewards/BraveRewards.framework/BraveRewards and b/BraveRewards/BraveRewards.framework/BraveRewards differ diff --git a/BraveRewards/BraveRewards.framework/Headers/BATBraveLedger.h b/BraveRewards/BraveRewards.framework/Headers/BATBraveLedger.h index 4ea08e314d7..4ed5aaf21b0 100644 --- a/BraveRewards/BraveRewards.framework/Headers/BATBraveLedger.h +++ b/BraveRewards/BraveRewards.framework/Headers/BATBraveLedger.h @@ -215,7 +215,8 @@ NS_SWIFT_NAME(BraveLedger) - (void)fetchPromotions:(nullable void (^)(NSArray *grants))completion; -- (void)claimPromotion:(NSString *)deviceCheckPublicKey +- (void)claimPromotion:(NSString *)promotionId + publicKey:(NSString *)deviceCheckPublicKey completion:(void (^)(BATResult result, NSString * _Nonnull nonce))completion; - (void)attestPromotion:(NSString *)promotionId diff --git a/BraveRewards/BraveRewards.framework/Headers/ledger.mojom.objc.h b/BraveRewards/BraveRewards.framework/Headers/ledger.mojom.objc.h index fc728e75efe..9f7ad067324 100644 --- a/BraveRewards/BraveRewards.framework/Headers/ledger.mojom.objc.h +++ b/BraveRewards/BraveRewards.framework/Headers/ledger.mojom.objc.h @@ -74,7 +74,7 @@ typedef NS_ENUM(NSInteger, BATResult) { BATResultAcTableEmpty = 14, BATResultNotEnoughFunds = 15, BATResultTipError = 16, - BATResultCorruptedWallet = 17, + BATResultCorruptedData = 17, BATResultGrantAlreadyClaimed = 18, BATResultContributionAmountTooLow = 19, BATResultVerifiedPublisher = 20, @@ -90,6 +90,7 @@ typedef NS_ENUM(NSInteger, BATResult) { BATResultRetryShort = 30, BATResultRetryLong = 31, BATResultContinue = 32, + BATResultInProgress = 33, } NS_SWIFT_NAME(Result); @@ -180,6 +181,7 @@ typedef NS_ENUM(NSInteger, BATPromotionStatus) { BATPromotionStatusAttested = 1, BATPromotionStatusFinished = 4, BATPromotionStatusOver = 5, + BATPromotionStatusCorrupted = 6, } NS_SWIFT_NAME(PromotionStatus); @@ -211,6 +213,7 @@ typedef NS_ENUM(NSInteger, BATCredsBatchStatus) { BATCredsBatchStatusClaimed = 2, BATCredsBatchStatusSigned = 3, BATCredsBatchStatusFinished = 4, + BATCredsBatchStatusCorrupted = 5, } NS_SWIFT_NAME(CredsBatchStatus); diff --git a/BraveRewardsUI/Extensions/BraveLedgerExtensions.swift b/BraveRewardsUI/Extensions/BraveLedgerExtensions.swift index 5547bed2f89..fb96db4479e 100644 --- a/BraveRewardsUI/Extensions/BraveLedgerExtensions.swift +++ b/BraveRewardsUI/Extensions/BraveLedgerExtensions.swift @@ -233,7 +233,7 @@ extension BraveLedger { completion(false) return } - self.claimPromotion(attestation.publicKeyHash) { result, nonce in + self.claimPromotion(promotion.id, publicKey: attestation.publicKeyHash) { result, nonce in if result != .ledgerOk { completion(false) return diff --git a/BraveRewardsUI/README.md b/BraveRewardsUI/README.md index d508903160c..0d311704dc9 100644 --- a/BraveRewardsUI/README.md +++ b/BraveRewardsUI/README.md @@ -6,5 +6,5 @@ The latest BraveRewards.framework was built on: ``` brave-browser/fa8c9a4f483e847b931496e4275db6c0aa38c0ae -brave-core/bfd2c3f3230cb3232915ea6b9cc2e510b04bfd75 +brave-core/75c765d0e7b5703d3d10429f94d0ee293794ff7b ```