Skip to content

Commit

Permalink
Update @nimiq/oasis-api dependency to latest dev state
Browse files Browse the repository at this point in the history
  • Loading branch information
sisou authored and jeffesquivels committed Jan 30, 2025
1 parent 5dea705 commit 6ceaf13
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@nimiq/iqons": "^1.5.2",
"@nimiq/keyguard-client": "https://gitpkg.vercel.app/nimiq/keyguard?scripts.postinstall=cd%20client%20%26%26%20.%2Fbuild-gitpkg.sh&cb20092889dd9fd815366531e7400b8cd60c51af",
"@nimiq/ledger-api": "^3.1.1",
"@nimiq/oasis-api": "^1.1.1",
"@nimiq/oasis-api": "github:nimiq/oasis-api-js#fbd74179a5b9590f8e6dfe9b08ca47122db2ce1e",
"@nimiq/rpc": "^0.4.1",
"@nimiq/style": "^0.8.2",
"@nimiq/utils": "^0.11.1",
Expand Down
8 changes: 5 additions & 3 deletions src/views/SetupSwapSuccess.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
Contract,
Erc20HtlcDetails,
} from '@nimiq/fastspot-api';
import { init as initOasisApi, exchangeAuthorizationToken } from '@nimiq/oasis-api';
import { exchangeAuthorizationToken } from '@nimiq/oasis-api';
import StatusScreen from '../components/StatusScreen.vue';
import GlobalClose from '../components/GlobalClose.vue';
import Network from '../components/Network.vue';
Expand Down Expand Up @@ -124,8 +124,10 @@ export default class SetupSwapSuccess extends BitcoinSyncBaseView {
console.log('S3 grant token:', s3GrantToken);
let oasisClearingAuthorizationToken: string | undefined;
if (this.request.kyc && this.request.kyc.oasisGrantToken && this.request.fund.type === SwapAsset.EUR) {
initOasisApi(Config.oasis.apiEndpoint);
oasisClearingAuthorizationToken = await exchangeAuthorizationToken(this.request.kyc.oasisGrantToken);
oasisClearingAuthorizationToken = await exchangeAuthorizationToken(
Config.oasis.apiEndpoint,
this.request.kyc.oasisGrantToken,
);
}
confirmedSwap = await confirmSwap({
Expand Down
5 changes: 2 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1867,10 +1867,9 @@
buffer "^6.0.3"
readable-stream "^4.4.2"

"@nimiq/oasis-api@^1.1.1":
"@nimiq/oasis-api@github:nimiq/oasis-api-js#fbd74179a5b9590f8e6dfe9b08ca47122db2ce1e":
version "1.1.1"
resolved "https://registry.yarnpkg.com/@nimiq/oasis-api/-/oasis-api-1.1.1.tgz#d1aa3d0f9afabf9116205809a0fc72d2e392bafa"
integrity sha512-jXNO7nvE0mzAyDCrucByv5AcyDWZjyqb9810YctysxqUtOxNG27hPkhomL+WW6nrnTVgvriJo3yaTFPTfLphKw==
resolved "https://codeload.github.com/nimiq/oasis-api-js/tar.gz/fbd74179a5b9590f8e6dfe9b08ca47122db2ce1e"

"@nimiq/rpc@^0.4.1":
version "0.4.1"
Expand Down

0 comments on commit 6ceaf13

Please sign in to comment.