@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.mjs
CHANGED
|
@@ -724,6 +724,25 @@ var sepolia_default = {
|
|
|
724
724
|
name: "ClientInitialized",
|
|
725
725
|
type: "event"
|
|
726
726
|
},
|
|
727
|
+
{
|
|
728
|
+
anonymous: false,
|
|
729
|
+
inputs: [
|
|
730
|
+
{
|
|
731
|
+
indexed: false,
|
|
732
|
+
internalType: "string",
|
|
733
|
+
name: "oldDescription",
|
|
734
|
+
type: "string"
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
indexed: false,
|
|
738
|
+
internalType: "string",
|
|
739
|
+
name: "newDescription",
|
|
740
|
+
type: "string"
|
|
741
|
+
}
|
|
742
|
+
],
|
|
743
|
+
name: "DescriptionUpdated",
|
|
744
|
+
type: "event"
|
|
745
|
+
},
|
|
727
746
|
{
|
|
728
747
|
anonymous: false,
|
|
729
748
|
inputs: [],
|
|
@@ -793,6 +812,25 @@ var sepolia_default = {
|
|
|
793
812
|
name: "Initialized",
|
|
794
813
|
type: "event"
|
|
795
814
|
},
|
|
815
|
+
{
|
|
816
|
+
anonymous: false,
|
|
817
|
+
inputs: [
|
|
818
|
+
{
|
|
819
|
+
indexed: false,
|
|
820
|
+
internalType: "string",
|
|
821
|
+
name: "oldName",
|
|
822
|
+
type: "string"
|
|
823
|
+
},
|
|
824
|
+
{
|
|
825
|
+
indexed: false,
|
|
826
|
+
internalType: "string",
|
|
827
|
+
name: "newName",
|
|
828
|
+
type: "string"
|
|
829
|
+
}
|
|
830
|
+
],
|
|
831
|
+
name: "NameUpdated",
|
|
832
|
+
type: "event"
|
|
833
|
+
},
|
|
796
834
|
{
|
|
797
835
|
anonymous: false,
|
|
798
836
|
inputs: [
|
|
@@ -838,6 +876,25 @@ var sepolia_default = {
|
|
|
838
876
|
name: "Upgraded",
|
|
839
877
|
type: "event"
|
|
840
878
|
},
|
|
879
|
+
{
|
|
880
|
+
anonymous: false,
|
|
881
|
+
inputs: [
|
|
882
|
+
{
|
|
883
|
+
indexed: true,
|
|
884
|
+
internalType: "enum IIATPWalletFactory.WalletType",
|
|
885
|
+
name: "oldWalletType",
|
|
886
|
+
type: "uint8"
|
|
887
|
+
},
|
|
888
|
+
{
|
|
889
|
+
indexed: true,
|
|
890
|
+
internalType: "enum IIATPWalletFactory.WalletType",
|
|
891
|
+
name: "newWalletType",
|
|
892
|
+
type: "uint8"
|
|
893
|
+
}
|
|
894
|
+
],
|
|
895
|
+
name: "WalletTypeUpdated",
|
|
896
|
+
type: "event"
|
|
897
|
+
},
|
|
841
898
|
{
|
|
842
899
|
anonymous: false,
|
|
843
900
|
inputs: [
|
|
@@ -1022,6 +1079,19 @@ var sepolia_default = {
|
|
|
1022
1079
|
stateMutability: "nonpayable",
|
|
1023
1080
|
type: "function"
|
|
1024
1081
|
},
|
|
1082
|
+
{
|
|
1083
|
+
inputs: [],
|
|
1084
|
+
name: "description",
|
|
1085
|
+
outputs: [
|
|
1086
|
+
{
|
|
1087
|
+
internalType: "string",
|
|
1088
|
+
name: "",
|
|
1089
|
+
type: "string"
|
|
1090
|
+
}
|
|
1091
|
+
],
|
|
1092
|
+
stateMutability: "view",
|
|
1093
|
+
type: "function"
|
|
1094
|
+
},
|
|
1025
1095
|
{
|
|
1026
1096
|
inputs: [],
|
|
1027
1097
|
name: "eip712Domain",
|
|
@@ -1183,6 +1253,21 @@ var sepolia_default = {
|
|
|
1183
1253
|
internalType: "address",
|
|
1184
1254
|
name: "_settlementLayer",
|
|
1185
1255
|
type: "address"
|
|
1256
|
+
},
|
|
1257
|
+
{
|
|
1258
|
+
internalType: "enum IIATPWalletFactory.WalletType",
|
|
1259
|
+
name: "_walletType",
|
|
1260
|
+
type: "uint8"
|
|
1261
|
+
},
|
|
1262
|
+
{
|
|
1263
|
+
internalType: "string",
|
|
1264
|
+
name: "_name",
|
|
1265
|
+
type: "string"
|
|
1266
|
+
},
|
|
1267
|
+
{
|
|
1268
|
+
internalType: "string",
|
|
1269
|
+
name: "_description",
|
|
1270
|
+
type: "string"
|
|
1186
1271
|
}
|
|
1187
1272
|
],
|
|
1188
1273
|
name: "initialize",
|
|
@@ -1253,6 +1338,19 @@ var sepolia_default = {
|
|
|
1253
1338
|
stateMutability: "view",
|
|
1254
1339
|
type: "function"
|
|
1255
1340
|
},
|
|
1341
|
+
{
|
|
1342
|
+
inputs: [],
|
|
1343
|
+
name: "name",
|
|
1344
|
+
outputs: [
|
|
1345
|
+
{
|
|
1346
|
+
internalType: "string",
|
|
1347
|
+
name: "",
|
|
1348
|
+
type: "string"
|
|
1349
|
+
}
|
|
1350
|
+
],
|
|
1351
|
+
stateMutability: "view",
|
|
1352
|
+
type: "function"
|
|
1353
|
+
},
|
|
1256
1354
|
{
|
|
1257
1355
|
inputs: [],
|
|
1258
1356
|
name: "operatorAddress",
|
|
@@ -1374,6 +1472,29 @@ var sepolia_default = {
|
|
|
1374
1472
|
stateMutability: "view",
|
|
1375
1473
|
type: "function"
|
|
1376
1474
|
},
|
|
1475
|
+
{
|
|
1476
|
+
inputs: [
|
|
1477
|
+
{
|
|
1478
|
+
internalType: "enum IIATPWalletFactory.WalletType",
|
|
1479
|
+
name: "_newWalletType",
|
|
1480
|
+
type: "uint8"
|
|
1481
|
+
},
|
|
1482
|
+
{
|
|
1483
|
+
internalType: "string",
|
|
1484
|
+
name: "_newName",
|
|
1485
|
+
type: "string"
|
|
1486
|
+
},
|
|
1487
|
+
{
|
|
1488
|
+
internalType: "string",
|
|
1489
|
+
name: "_newDescription",
|
|
1490
|
+
type: "string"
|
|
1491
|
+
}
|
|
1492
|
+
],
|
|
1493
|
+
name: "updateMetadata",
|
|
1494
|
+
outputs: [],
|
|
1495
|
+
stateMutability: "nonpayable",
|
|
1496
|
+
type: "function"
|
|
1497
|
+
},
|
|
1377
1498
|
{
|
|
1378
1499
|
inputs: [
|
|
1379
1500
|
{
|
|
@@ -1487,6 +1608,19 @@ var sepolia_default = {
|
|
|
1487
1608
|
stateMutability: "view",
|
|
1488
1609
|
type: "function"
|
|
1489
1610
|
},
|
|
1611
|
+
{
|
|
1612
|
+
inputs: [],
|
|
1613
|
+
name: "walletType",
|
|
1614
|
+
outputs: [
|
|
1615
|
+
{
|
|
1616
|
+
internalType: "enum IIATPWalletFactory.WalletType",
|
|
1617
|
+
name: "",
|
|
1618
|
+
type: "uint8"
|
|
1619
|
+
}
|
|
1620
|
+
],
|
|
1621
|
+
stateMutability: "view",
|
|
1622
|
+
type: "function"
|
|
1623
|
+
},
|
|
1490
1624
|
{
|
|
1491
1625
|
inputs: [
|
|
1492
1626
|
{
|
|
@@ -4341,6 +4475,64 @@ var sepolia_default = {
|
|
|
4341
4475
|
type: "address"
|
|
4342
4476
|
}
|
|
4343
4477
|
],
|
|
4478
|
+
name: "createClientWallet",
|
|
4479
|
+
outputs: [
|
|
4480
|
+
{
|
|
4481
|
+
internalType: "address",
|
|
4482
|
+
name: "wallet",
|
|
4483
|
+
type: "address"
|
|
4484
|
+
}
|
|
4485
|
+
],
|
|
4486
|
+
stateMutability: "nonpayable",
|
|
4487
|
+
type: "function"
|
|
4488
|
+
},
|
|
4489
|
+
{
|
|
4490
|
+
inputs: [
|
|
4491
|
+
{
|
|
4492
|
+
internalType: "address",
|
|
4493
|
+
name: "_owner",
|
|
4494
|
+
type: "address"
|
|
4495
|
+
},
|
|
4496
|
+
{
|
|
4497
|
+
internalType: "address",
|
|
4498
|
+
name: "_operatorAddress",
|
|
4499
|
+
type: "address"
|
|
4500
|
+
}
|
|
4501
|
+
],
|
|
4502
|
+
name: "createClientWalletFor",
|
|
4503
|
+
outputs: [
|
|
4504
|
+
{
|
|
4505
|
+
internalType: "address",
|
|
4506
|
+
name: "wallet",
|
|
4507
|
+
type: "address"
|
|
4508
|
+
}
|
|
4509
|
+
],
|
|
4510
|
+
stateMutability: "nonpayable",
|
|
4511
|
+
type: "function"
|
|
4512
|
+
},
|
|
4513
|
+
{
|
|
4514
|
+
inputs: [
|
|
4515
|
+
{
|
|
4516
|
+
internalType: "address",
|
|
4517
|
+
name: "_operatorAddress",
|
|
4518
|
+
type: "address"
|
|
4519
|
+
},
|
|
4520
|
+
{
|
|
4521
|
+
internalType: "enum IIATPWalletFactory.WalletType",
|
|
4522
|
+
name: "_walletType",
|
|
4523
|
+
type: "uint8"
|
|
4524
|
+
},
|
|
4525
|
+
{
|
|
4526
|
+
internalType: "string",
|
|
4527
|
+
name: "_name",
|
|
4528
|
+
type: "string"
|
|
4529
|
+
},
|
|
4530
|
+
{
|
|
4531
|
+
internalType: "string",
|
|
4532
|
+
name: "_description",
|
|
4533
|
+
type: "string"
|
|
4534
|
+
}
|
|
4535
|
+
],
|
|
4344
4536
|
name: "createWallet",
|
|
4345
4537
|
outputs: [
|
|
4346
4538
|
{
|
|
@@ -4363,6 +4555,21 @@ var sepolia_default = {
|
|
|
4363
4555
|
internalType: "address",
|
|
4364
4556
|
name: "_operatorAddress",
|
|
4365
4557
|
type: "address"
|
|
4558
|
+
},
|
|
4559
|
+
{
|
|
4560
|
+
internalType: "enum IIATPWalletFactory.WalletType",
|
|
4561
|
+
name: "_walletType",
|
|
4562
|
+
type: "uint8"
|
|
4563
|
+
},
|
|
4564
|
+
{
|
|
4565
|
+
internalType: "string",
|
|
4566
|
+
name: "_name",
|
|
4567
|
+
type: "string"
|
|
4568
|
+
},
|
|
4569
|
+
{
|
|
4570
|
+
internalType: "string",
|
|
4571
|
+
name: "_description",
|
|
4572
|
+
type: "string"
|
|
4366
4573
|
}
|
|
4367
4574
|
],
|
|
4368
4575
|
name: "createWalletFor",
|
|
@@ -4799,10 +5006,10 @@ var implementations_default = {
|
|
|
4799
5006
|
sepolia: {
|
|
4800
5007
|
Congress: "0x94Fc9eddBd1779542b78eb92F0569762603876e2",
|
|
4801
5008
|
TraiaCongressMembersRegistry: "0x3B685403b195f16D103b42FCf56F848A278d6049",
|
|
4802
|
-
IATPWalletImplementation: "
|
|
5009
|
+
IATPWalletImplementation: "0x4f9f0E1cD21f7122417A2A13b03c1BE84b7CB37E",
|
|
4803
5010
|
RoleManagerImplementation: "0x585AD85FCFBec3B1503E50b46407bF65d4006560",
|
|
4804
5011
|
IATPSettlementLayerImplementation: "0x0fDd39d323EE3538c800d4A13730eecE3F0bA975",
|
|
4805
|
-
IATPWalletFactoryImplementation: "
|
|
5012
|
+
IATPWalletFactoryImplementation: "0x4AC08c53C7ce1244a458D49A4101C3DC664e2D37"
|
|
4806
5013
|
}
|
|
4807
5014
|
};
|
|
4808
5015
|
|
|
@@ -4864,7 +5071,7 @@ async function createIATPWallet(params) {
|
|
|
4864
5071
|
address: factoryConfig.address,
|
|
4865
5072
|
abi: factoryConfig.abi,
|
|
4866
5073
|
functionName: "createWallet",
|
|
4867
|
-
args: [operatorAddress]
|
|
5074
|
+
args: [operatorAddress, 0, "", ""]
|
|
4868
5075
|
});
|
|
4869
5076
|
const hash = await walletClient.writeContract(request);
|
|
4870
5077
|
const receipt = await publicClient.waitForTransactionReceipt({
|