Skip to content

Commit 1bce985

Browse files
author
Tasos Bitsios
committed
contract/sdk/cli: add URL to label descriptor
1 parent 2cf786b commit 1bce985

File tree

16 files changed

+3352
-2989
lines changed

16 files changed

+3352
-2989
lines changed

projects/abel-cli/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ABEL_APP_ID=2888048711
1+
ABEL_APP_ID=2914159523
22
# Parallel simulates to execute when querying large amounts of data
33
CONCURRENCY=5
44
# Required for a write-enabled client

projects/abel-cli/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ABEL_APP_ID=2888048711
1+
ABEL_APP_ID=2914159523
22
CONCURRENCY=5
33
# MNEMONIC=apple apple apple ... Required for a write-enabled client
44
#ALGOD_PORT=4001

projects/abel-cli/.env.prod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# MNEMONIC=apple apple .. required for write ops
2-
ABEL_APP_ID=2888048711
2+
ABEL_APP_ID=2914159523
33
CONCURRENCY=5

projects/abel-cli/src/add-label.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ import { abel } from "./lib/config.js";
22
import { parseArgs } from "./lib/util.js";
33
import { wrapAction } from "./lib/wrap-action.js";
44

5-
wrapAction("(admin) Add label (id, name)", parseArgs(String, String), abel.addLabel);
5+
wrapAction("(admin) Add label (id, name, url)", parseArgs(String, String, String), abel.addLabel);

projects/abel-cli/src/scripts/sync-json-to-pv.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,5 @@ if (toRemove.length) {
5555
console.log(`Removing (${toRemove.length})`);
5656
await pMap(toRemove, (id) => abel.removeLabelFromAsset(id, LABEL_ID), { concurrency: config.CONCURRENCY });
5757
}
58+
59+
console.log("Done");

projects/abel-sdk-v2/artifacts/AssetLabeling.arc32.json

Lines changed: 12 additions & 4 deletions
Large diffs are not rendered by default.

projects/abel-sdk-v2/src/generated/abel-contract-client.ts

Lines changed: 51 additions & 49 deletions
Large diffs are not rendered by default.

projects/abel-sdk-v2/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ export class AbelSDK {
221221
* Write methods = transactions
222222
*/
223223

224-
async addLabel(labelId: string, name: string) {
224+
async addLabel(labelId: string, name: string, url: string) {
225225
this.requireWriteClient();
226226

227227
const query = this.writeClient
@@ -234,7 +234,7 @@ export class AbelSDK {
234234
}),
235235
this.writeAccount.signer
236236
)
237-
.addLabel({ args: { id: labelId, name }, boxReferences: [labelId] })
237+
.addLabel({ args: { id: labelId, name, url }, boxReferences: [labelId] })
238238
.send();
239239

240240
return wrapErrors(query);

projects/asset_labeling-contracts/smart_contracts/artifacts/asset_labeling/AssetLabeling.approval.puya.map

Lines changed: 2649 additions & 2384 deletions
Large diffs are not rendered by default.

projects/asset_labeling-contracts/smart_contracts/artifacts/asset_labeling/AssetLabeling.approval.teal

Lines changed: 425 additions & 382 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)