@dcentralab/d402-client 0.2.6 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +210 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +210 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -726,6 +726,25 @@ var sepolia_default = {
|
|
|
726
726
|
name: "ClientInitialized",
|
|
727
727
|
type: "event"
|
|
728
728
|
},
|
|
729
|
+
{
|
|
730
|
+
anonymous: false,
|
|
731
|
+
inputs: [
|
|
732
|
+
{
|
|
733
|
+
indexed: false,
|
|
734
|
+
internalType: "string",
|
|
735
|
+
name: "oldDescription",
|
|
736
|
+
type: "string"
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
indexed: false,
|
|
740
|
+
internalType: "string",
|
|
741
|
+
name: "newDescription",
|
|
742
|
+
type: "string"
|
|
743
|
+
}
|
|
744
|
+
],
|
|
745
|
+
name: "DescriptionUpdated",
|
|
746
|
+
type: "event"
|
|
747
|
+
},
|
|
729
748
|
{
|
|
730
749
|
anonymous: false,
|
|
731
750
|
inputs: [],
|
|
@@ -795,6 +814,25 @@ var sepolia_default = {
|
|
|
795
814
|
name: "Initialized",
|
|
796
815
|
type: "event"
|
|
797
816
|
},
|
|
817
|
+
{
|
|
818
|
+
anonymous: false,
|
|
819
|
+
inputs: [
|
|
820
|
+
{
|
|
821
|
+
indexed: false,
|
|
822
|
+
internalType: "string",
|
|
823
|
+
name: "oldName",
|
|
824
|
+
type: "string"
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
indexed: false,
|
|
828
|
+
internalType: "string",
|
|
829
|
+
name: "newName",
|
|
830
|
+
type: "string"
|
|
831
|
+
}
|
|
832
|
+
],
|
|
833
|
+
name: "NameUpdated",
|
|
834
|
+
type: "event"
|
|
835
|
+
},
|
|
798
836
|
{
|
|
799
837
|
anonymous: false,
|
|
800
838
|
inputs: [
|
|
@@ -840,6 +878,25 @@ var sepolia_default = {
|
|
|
840
878
|
name: "Upgraded",
|
|
841
879
|
type: "event"
|
|
842
880
|
},
|
|
881
|
+
{
|
|
882
|
+
anonymous: false,
|
|
883
|
+
inputs: [
|
|
884
|
+
{
|
|
885
|
+
indexed: true,
|
|
886
|
+
internalType: "enum IIATPWalletFactory.WalletType",
|
|
887
|
+
name: "oldWalletType",
|
|
888
|
+
type: "uint8"
|
|
889
|
+
},
|
|
890
|
+
{
|
|
891
|
+
indexed: true,
|
|
892
|
+
internalType: "enum IIATPWalletFactory.WalletType",
|
|
893
|
+
name: "newWalletType",
|
|
894
|
+
type: "uint8"
|
|
895
|
+
}
|
|
896
|
+
],
|
|
897
|
+
name: "WalletTypeUpdated",
|
|
898
|
+
type: "event"
|
|
899
|
+
},
|
|
843
900
|
{
|
|
844
901
|
anonymous: false,
|
|
845
902
|
inputs: [
|
|
@@ -1024,6 +1081,19 @@ var sepolia_default = {
|
|
|
1024
1081
|
stateMutability: "nonpayable",
|
|
1025
1082
|
type: "function"
|
|
1026
1083
|
},
|
|
1084
|
+
{
|
|
1085
|
+
inputs: [],
|
|
1086
|
+
name: "description",
|
|
1087
|
+
outputs: [
|
|
1088
|
+
{
|
|
1089
|
+
internalType: "string",
|
|
1090
|
+
name: "",
|
|
1091
|
+
type: "string"
|
|
1092
|
+
}
|
|
1093
|
+
],
|
|
1094
|
+
stateMutability: "view",
|
|
1095
|
+
type: "function"
|
|
1096
|
+
},
|
|
1027
1097
|
{
|
|
1028
1098
|
inputs: [],
|
|
1029
1099
|
name: "eip712Domain",
|
|
@@ -1185,6 +1255,21 @@ var sepolia_default = {
|
|
|
1185
1255
|
internalType: "address",
|
|
1186
1256
|
name: "_settlementLayer",
|
|
1187
1257
|
type: "address"
|
|
1258
|
+
},
|
|
1259
|
+
{
|
|
1260
|
+
internalType: "enum IIATPWalletFactory.WalletType",
|
|
1261
|
+
name: "_walletType",
|
|
1262
|
+
type: "uint8"
|
|
1263
|
+
},
|
|
1264
|
+
{
|
|
1265
|
+
internalType: "string",
|
|
1266
|
+
name: "_name",
|
|
1267
|
+
type: "string"
|
|
1268
|
+
},
|
|
1269
|
+
{
|
|
1270
|
+
internalType: "string",
|
|
1271
|
+
name: "_description",
|
|
1272
|
+
type: "string"
|
|
1188
1273
|
}
|
|
1189
1274
|
],
|
|
1190
1275
|
name: "initialize",
|
|
@@ -1255,6 +1340,19 @@ var sepolia_default = {
|
|
|
1255
1340
|
stateMutability: "view",
|
|
1256
1341
|
type: "function"
|
|
1257
1342
|
},
|
|
1343
|
+
{
|
|
1344
|
+
inputs: [],
|
|
1345
|
+
name: "name",
|
|
1346
|
+
outputs: [
|
|
1347
|
+
{
|
|
1348
|
+
internalType: "string",
|
|
1349
|
+
name: "",
|
|
1350
|
+
type: "string"
|
|
1351
|
+
}
|
|
1352
|
+
],
|
|
1353
|
+
stateMutability: "view",
|
|
1354
|
+
type: "function"
|
|
1355
|
+
},
|
|
1258
1356
|
{
|
|
1259
1357
|
inputs: [],
|
|
1260
1358
|
name: "operatorAddress",
|
|
@@ -1376,6 +1474,29 @@ var sepolia_default = {
|
|
|
1376
1474
|
stateMutability: "view",
|
|
1377
1475
|
type: "function"
|
|
1378
1476
|
},
|
|
1477
|
+
{
|
|
1478
|
+
inputs: [
|
|
1479
|
+
{
|
|
1480
|
+
internalType: "enum IIATPWalletFactory.WalletType",
|
|
1481
|
+
name: "_newWalletType",
|
|
1482
|
+
type: "uint8"
|
|
1483
|
+
},
|
|
1484
|
+
{
|
|
1485
|
+
internalType: "string",
|
|
1486
|
+
name: "_newName",
|
|
1487
|
+
type: "string"
|
|
1488
|
+
},
|
|
1489
|
+
{
|
|
1490
|
+
internalType: "string",
|
|
1491
|
+
name: "_newDescription",
|
|
1492
|
+
type: "string"
|
|
1493
|
+
}
|
|
1494
|
+
],
|
|
1495
|
+
name: "updateMetadata",
|
|
1496
|
+
outputs: [],
|
|
1497
|
+
stateMutability: "nonpayable",
|
|
1498
|
+
type: "function"
|
|
1499
|
+
},
|
|
1379
1500
|
{
|
|
1380
1501
|
inputs: [
|
|
1381
1502
|
{
|
|
@@ -1489,6 +1610,19 @@ var sepolia_default = {
|
|
|
1489
1610
|
stateMutability: "view",
|
|
1490
1611
|
type: "function"
|
|
1491
1612
|
},
|
|
1613
|
+
{
|
|
1614
|
+
inputs: [],
|
|
1615
|
+
name: "walletType",
|
|
1616
|
+
outputs: [
|
|
1617
|
+
{
|
|
1618
|
+
internalType: "enum IIATPWalletFactory.WalletType",
|
|
1619
|
+
name: "",
|
|
1620
|
+
type: "uint8"
|
|
1621
|
+
}
|
|
1622
|
+
],
|
|
1623
|
+
stateMutability: "view",
|
|
1624
|
+
type: "function"
|
|
1625
|
+
},
|
|
1492
1626
|
{
|
|
1493
1627
|
inputs: [
|
|
1494
1628
|
{
|
|
@@ -4343,6 +4477,64 @@ var sepolia_default = {
|
|
|
4343
4477
|
type: "address"
|
|
4344
4478
|
}
|
|
4345
4479
|
],
|
|
4480
|
+
name: "createClientWallet",
|
|
4481
|
+
outputs: [
|
|
4482
|
+
{
|
|
4483
|
+
internalType: "address",
|
|
4484
|
+
name: "wallet",
|
|
4485
|
+
type: "address"
|
|
4486
|
+
}
|
|
4487
|
+
],
|
|
4488
|
+
stateMutability: "nonpayable",
|
|
4489
|
+
type: "function"
|
|
4490
|
+
},
|
|
4491
|
+
{
|
|
4492
|
+
inputs: [
|
|
4493
|
+
{
|
|
4494
|
+
internalType: "address",
|
|
4495
|
+
name: "_owner",
|
|
4496
|
+
type: "address"
|
|
4497
|
+
},
|
|
4498
|
+
{
|
|
4499
|
+
internalType: "address",
|
|
4500
|
+
name: "_operatorAddress",
|
|
4501
|
+
type: "address"
|
|
4502
|
+
}
|
|
4503
|
+
],
|
|
4504
|
+
name: "createClientWalletFor",
|
|
4505
|
+
outputs: [
|
|
4506
|
+
{
|
|
4507
|
+
internalType: "address",
|
|
4508
|
+
name: "wallet",
|
|
4509
|
+
type: "address"
|
|
4510
|
+
}
|
|
4511
|
+
],
|
|
4512
|
+
stateMutability: "nonpayable",
|
|
4513
|
+
type: "function"
|
|
4514
|
+
},
|
|
4515
|
+
{
|
|
4516
|
+
inputs: [
|
|
4517
|
+
{
|
|
4518
|
+
internalType: "address",
|
|
4519
|
+
name: "_operatorAddress",
|
|
4520
|
+
type: "address"
|
|
4521
|
+
},
|
|
4522
|
+
{
|
|
4523
|
+
internalType: "enum IIATPWalletFactory.WalletType",
|
|
4524
|
+
name: "_walletType",
|
|
4525
|
+
type: "uint8"
|
|
4526
|
+
},
|
|
4527
|
+
{
|
|
4528
|
+
internalType: "string",
|
|
4529
|
+
name: "_name",
|
|
4530
|
+
type: "string"
|
|
4531
|
+
},
|
|
4532
|
+
{
|
|
4533
|
+
internalType: "string",
|
|
4534
|
+
name: "_description",
|
|
4535
|
+
type: "string"
|
|
4536
|
+
}
|
|
4537
|
+
],
|
|
4346
4538
|
name: "createWallet",
|
|
4347
4539
|
outputs: [
|
|
4348
4540
|
{
|
|
@@ -4365,6 +4557,21 @@ var sepolia_default = {
|
|
|
4365
4557
|
internalType: "address",
|
|
4366
4558
|
name: "_operatorAddress",
|
|
4367
4559
|
type: "address"
|
|
4560
|
+
},
|
|
4561
|
+
{
|
|
4562
|
+
internalType: "enum IIATPWalletFactory.WalletType",
|
|
4563
|
+
name: "_walletType",
|
|
4564
|
+
type: "uint8"
|
|
4565
|
+
},
|
|
4566
|
+
{
|
|
4567
|
+
internalType: "string",
|
|
4568
|
+
name: "_name",
|
|
4569
|
+
type: "string"
|
|
4570
|
+
},
|
|
4571
|
+
{
|
|
4572
|
+
internalType: "string",
|
|
4573
|
+
name: "_description",
|
|
4574
|
+
type: "string"
|
|
4368
4575
|
}
|
|
4369
4576
|
],
|
|
4370
4577
|
name: "createWalletFor",
|
|
@@ -4801,10 +5008,10 @@ var implementations_default = {
|
|
|
4801
5008
|
sepolia: {
|
|
4802
5009
|
Congress: "0x94Fc9eddBd1779542b78eb92F0569762603876e2",
|
|
4803
5010
|
TraiaCongressMembersRegistry: "0x3B685403b195f16D103b42FCf56F848A278d6049",
|
|
4804
|
-
IATPWalletImplementation: "
|
|
5011
|
+
IATPWalletImplementation: "0x4f9f0E1cD21f7122417A2A13b03c1BE84b7CB37E",
|
|
4805
5012
|
RoleManagerImplementation: "0x585AD85FCFBec3B1503E50b46407bF65d4006560",
|
|
4806
5013
|
IATPSettlementLayerImplementation: "0x0fDd39d323EE3538c800d4A13730eecE3F0bA975",
|
|
4807
|
-
IATPWalletFactoryImplementation: "
|
|
5014
|
+
IATPWalletFactoryImplementation: "0x4AC08c53C7ce1244a458D49A4101C3DC664e2D37"
|
|
4808
5015
|
}
|
|
4809
5016
|
};
|
|
4810
5017
|
|
|
@@ -4866,7 +5073,7 @@ async function createIATPWallet(params) {
|
|
|
4866
5073
|
address: factoryConfig.address,
|
|
4867
5074
|
abi: factoryConfig.abi,
|
|
4868
5075
|
functionName: "createWallet",
|
|
4869
|
-
args: [operatorAddress]
|
|
5076
|
+
args: [operatorAddress, 0, "", ""]
|
|
4870
5077
|
});
|
|
4871
5078
|
const hash = await walletClient.writeContract(request);
|
|
4872
5079
|
const receipt = await publicClient.waitForTransactionReceipt({
|