Skip to content

Commit

Permalink
fix(ant): add sdk bump and ant boot updates to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
atticusofsparta committed Jan 28, 2025
1 parent 20fd825 commit e641e8f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 25 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 @@
},
"dependencies": {
"@ant-design/icons": "5.4.0",
"@ar.io/sdk": "^3.3.1-alpha.1",
"@ar.io/sdk": "^3.3.1-alpha.2",
"@permaweb/aoconnect": "^0.0.59",
"@radix-ui/react-radio-group": "^1.2.1",
"@radix-ui/react-select": "^2.1.4",
Expand Down
19 changes: 0 additions & 19 deletions src/state/actions/dispatchArIOInteraction.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import {
ANT,
ANTRegistry,
ANT_REGISTRY_ID,
AOProcess,
AoARIOWrite,
AoClient,
Expand Down Expand Up @@ -80,23 +78,6 @@ export default async function dispatchArIOInteraction({
ao: ao,
scheduler: scheduler,
});

const antRegistry = ANTRegistry.init({
signer,
processId: ANT_REGISTRY_ID,
});
await antRegistry
.register({
processId: antProcessId,
})
.catch((error) => {
eventEmitter.emit(
'error',
new Error(
`Failed to register ANT process: ${error}. You may need to manually register the process`,
),
);
});
}

const buyRecordResult = await arioContract.buyRecord({
Expand Down
12 changes: 11 additions & 1 deletion src/state/actions/dispatchArNSUpdate.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import {
ANT,
ANTRegistry,
ANT_REGISTRY_ID,
AOProcess,
AoANTHandler,
AoANTState,
Expand Down Expand Up @@ -144,7 +146,15 @@ export function dispatchArNSUpdate({
});

emitter
.fetchProcessesOwnedByWallet({ address: walletAddress.toString() })
.fetchProcessesOwnedByWallet({
address: walletAddress.toString(),
antRegistry: ANTRegistry.init({
process: new AOProcess({
processId: ANT_REGISTRY_ID,
ao,
}),
}),
})
.catch((e) =>
errorHandler('Error getting assets owned by wallet: ' + e.message),
);
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@
plimit-lit "^3.0.1"
warp-contracts "1.4.45"

"@ar.io/sdk@^3.3.1-alpha.1":
version "3.3.1-alpha.1"
resolved "https://registry.yarnpkg.com/@ar.io/sdk/-/sdk-3.3.1-alpha.1.tgz#92ab6a513cc0d9c58c349c1e59a3ae4f5378b737"
integrity sha512-l9Ig5C8KiwCO1rzWnMJmGgYaVozaMiX5qIB7Y6rXW8rTMut7GCzlLSjzhmkeJ9bu2/PUY6jeF0mWyJ//uN6W+A==
"@ar.io/sdk@^3.3.1-alpha.2":
version "3.3.1-alpha.2"
resolved "https://registry.yarnpkg.com/@ar.io/sdk/-/sdk-3.3.1-alpha.2.tgz#1e28e0c8b26280c7692fd4f4c705801d91467606"
integrity sha512-WEF6gFNuQq9iKYExrAQrAy32r7zsPQbMAt6wjU7znlMZn1Fq8kYAuwE5QYxzgpzDhIlgEfMOoqjxetHZMkbB4Q==
dependencies:
"@dha-team/arbundles" "^1.0.1"
"@permaweb/aoconnect" "^0.0.57"
Expand Down

0 comments on commit e641e8f

Please sign in to comment.