@thesingularitynetwork/darkswap-sdk-synara 1.0.0-beta1 → 1.0.0-beta2
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/darkswap-sdk-synara.cjs.development.js +65 -497
- package/dist/darkswap-sdk-synara.cjs.development.js.map +1 -1
- package/dist/darkswap-sdk-synara.cjs.production.min.js +1 -1
- package/dist/darkswap-sdk-synara.cjs.production.min.js.map +1 -1
- package/dist/darkswap-sdk-synara.esm.js +65 -497
- package/dist/darkswap-sdk-synara.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -11184,10 +11184,7 @@ var SynaraDarkSwapOnBridgeAssetManagerAbi = {
|
|
|
11184
11184
|
deployedLinkReferences: deployedLinkReferences$5
|
|
11185
11185
|
};
|
|
11186
11186
|
|
|
11187
|
-
var
|
|
11188
|
-
var contractName$6 = "CanonicalTokenRegistry";
|
|
11189
|
-
var sourceName$6 = "src/CanonicalTokenRegistry.sol";
|
|
11190
|
-
var abi$h = [
|
|
11187
|
+
var CanonicalTokenRegistryAbi = [
|
|
11191
11188
|
{
|
|
11192
11189
|
inputs: [
|
|
11193
11190
|
],
|
|
@@ -11234,50 +11231,16 @@ var abi$h = [
|
|
|
11234
11231
|
name: "ExpectedPause",
|
|
11235
11232
|
type: "error"
|
|
11236
11233
|
},
|
|
11237
|
-
{
|
|
11238
|
-
inputs: [
|
|
11239
|
-
],
|
|
11240
|
-
name: "NotMapped",
|
|
11241
|
-
type: "error"
|
|
11242
|
-
},
|
|
11243
11234
|
{
|
|
11244
11235
|
inputs: [
|
|
11245
11236
|
],
|
|
11246
11237
|
name: "NotRegistered",
|
|
11247
11238
|
type: "error"
|
|
11248
11239
|
},
|
|
11249
|
-
{
|
|
11250
|
-
inputs: [
|
|
11251
|
-
{
|
|
11252
|
-
internalType: "address",
|
|
11253
|
-
name: "owner",
|
|
11254
|
-
type: "address"
|
|
11255
|
-
}
|
|
11256
|
-
],
|
|
11257
|
-
name: "OwnableInvalidOwner",
|
|
11258
|
-
type: "error"
|
|
11259
|
-
},
|
|
11260
|
-
{
|
|
11261
|
-
inputs: [
|
|
11262
|
-
{
|
|
11263
|
-
internalType: "address",
|
|
11264
|
-
name: "account",
|
|
11265
|
-
type: "address"
|
|
11266
|
-
}
|
|
11267
|
-
],
|
|
11268
|
-
name: "OwnableUnauthorizedAccount",
|
|
11269
|
-
type: "error"
|
|
11270
|
-
},
|
|
11271
11240
|
{
|
|
11272
11241
|
inputs: [
|
|
11273
11242
|
],
|
|
11274
|
-
name: "
|
|
11275
|
-
type: "error"
|
|
11276
|
-
},
|
|
11277
|
-
{
|
|
11278
|
-
inputs: [
|
|
11279
|
-
],
|
|
11280
|
-
name: "TokenNotActive",
|
|
11243
|
+
name: "TokenAlreadyMapped",
|
|
11281
11244
|
type: "error"
|
|
11282
11245
|
},
|
|
11283
11246
|
{
|
|
@@ -11287,73 +11250,10 @@ var abi$h = [
|
|
|
11287
11250
|
type: "error"
|
|
11288
11251
|
},
|
|
11289
11252
|
{
|
|
11290
|
-
anonymous: false,
|
|
11291
|
-
inputs: [
|
|
11292
|
-
{
|
|
11293
|
-
indexed: true,
|
|
11294
|
-
internalType: "bytes32",
|
|
11295
|
-
name: "canonicalId",
|
|
11296
|
-
type: "bytes32"
|
|
11297
|
-
},
|
|
11298
|
-
{
|
|
11299
|
-
indexed: false,
|
|
11300
|
-
internalType: "uint256",
|
|
11301
|
-
name: "originChainId",
|
|
11302
|
-
type: "uint256"
|
|
11303
|
-
},
|
|
11304
|
-
{
|
|
11305
|
-
indexed: false,
|
|
11306
|
-
internalType: "address",
|
|
11307
|
-
name: "originToken",
|
|
11308
|
-
type: "address"
|
|
11309
|
-
},
|
|
11310
|
-
{
|
|
11311
|
-
indexed: false,
|
|
11312
|
-
internalType: "uint8",
|
|
11313
|
-
name: "decimals",
|
|
11314
|
-
type: "uint8"
|
|
11315
|
-
}
|
|
11316
|
-
],
|
|
11317
|
-
name: "CanonicalRegistered",
|
|
11318
|
-
type: "event"
|
|
11319
|
-
},
|
|
11320
|
-
{
|
|
11321
|
-
anonymous: false,
|
|
11322
11253
|
inputs: [
|
|
11323
|
-
{
|
|
11324
|
-
indexed: true,
|
|
11325
|
-
internalType: "address",
|
|
11326
|
-
name: "previousOwner",
|
|
11327
|
-
type: "address"
|
|
11328
|
-
},
|
|
11329
|
-
{
|
|
11330
|
-
indexed: true,
|
|
11331
|
-
internalType: "address",
|
|
11332
|
-
name: "newOwner",
|
|
11333
|
-
type: "address"
|
|
11334
|
-
}
|
|
11335
11254
|
],
|
|
11336
|
-
name: "
|
|
11337
|
-
type: "
|
|
11338
|
-
},
|
|
11339
|
-
{
|
|
11340
|
-
anonymous: false,
|
|
11341
|
-
inputs: [
|
|
11342
|
-
{
|
|
11343
|
-
indexed: true,
|
|
11344
|
-
internalType: "address",
|
|
11345
|
-
name: "previousOwner",
|
|
11346
|
-
type: "address"
|
|
11347
|
-
},
|
|
11348
|
-
{
|
|
11349
|
-
indexed: true,
|
|
11350
|
-
internalType: "address",
|
|
11351
|
-
name: "newOwner",
|
|
11352
|
-
type: "address"
|
|
11353
|
-
}
|
|
11354
|
-
],
|
|
11355
|
-
name: "OwnershipTransferred",
|
|
11356
|
-
type: "event"
|
|
11255
|
+
name: "ZeroCanonicalId",
|
|
11256
|
+
type: "error"
|
|
11357
11257
|
},
|
|
11358
11258
|
{
|
|
11359
11259
|
anonymous: false,
|
|
@@ -11368,56 +11268,6 @@ var abi$h = [
|
|
|
11368
11268
|
name: "Paused",
|
|
11369
11269
|
type: "event"
|
|
11370
11270
|
},
|
|
11371
|
-
{
|
|
11372
|
-
anonymous: false,
|
|
11373
|
-
inputs: [
|
|
11374
|
-
{
|
|
11375
|
-
indexed: true,
|
|
11376
|
-
internalType: "bytes32",
|
|
11377
|
-
name: "canonicalId",
|
|
11378
|
-
type: "bytes32"
|
|
11379
|
-
},
|
|
11380
|
-
{
|
|
11381
|
-
indexed: false,
|
|
11382
|
-
internalType: "uint256",
|
|
11383
|
-
name: "chainId",
|
|
11384
|
-
type: "uint256"
|
|
11385
|
-
},
|
|
11386
|
-
{
|
|
11387
|
-
indexed: false,
|
|
11388
|
-
internalType: "address",
|
|
11389
|
-
name: "token",
|
|
11390
|
-
type: "address"
|
|
11391
|
-
}
|
|
11392
|
-
],
|
|
11393
|
-
name: "RepresentationMapped",
|
|
11394
|
-
type: "event"
|
|
11395
|
-
},
|
|
11396
|
-
{
|
|
11397
|
-
anonymous: false,
|
|
11398
|
-
inputs: [
|
|
11399
|
-
{
|
|
11400
|
-
indexed: true,
|
|
11401
|
-
internalType: "bytes32",
|
|
11402
|
-
name: "canonicalId",
|
|
11403
|
-
type: "bytes32"
|
|
11404
|
-
},
|
|
11405
|
-
{
|
|
11406
|
-
indexed: false,
|
|
11407
|
-
internalType: "uint256",
|
|
11408
|
-
name: "chainId",
|
|
11409
|
-
type: "uint256"
|
|
11410
|
-
},
|
|
11411
|
-
{
|
|
11412
|
-
indexed: false,
|
|
11413
|
-
internalType: "address",
|
|
11414
|
-
name: "token",
|
|
11415
|
-
type: "address"
|
|
11416
|
-
}
|
|
11417
|
-
],
|
|
11418
|
-
name: "RepresentationUnmapped",
|
|
11419
|
-
type: "event"
|
|
11420
|
-
},
|
|
11421
11271
|
{
|
|
11422
11272
|
anonymous: false,
|
|
11423
11273
|
inputs: [
|
|
@@ -11503,88 +11353,51 @@ var abi$h = [
|
|
|
11503
11353
|
type: "bytes32"
|
|
11504
11354
|
},
|
|
11505
11355
|
{
|
|
11506
|
-
indexed:
|
|
11507
|
-
internalType: "enum ICanonicalTokenRegistry.TokenStatus",
|
|
11508
|
-
name: "status",
|
|
11509
|
-
type: "uint8"
|
|
11510
|
-
}
|
|
11511
|
-
],
|
|
11512
|
-
name: "TokenStatusChanged",
|
|
11513
|
-
type: "event"
|
|
11514
|
-
},
|
|
11515
|
-
{
|
|
11516
|
-
anonymous: false,
|
|
11517
|
-
inputs: [
|
|
11518
|
-
{
|
|
11519
|
-
indexed: false,
|
|
11356
|
+
indexed: true,
|
|
11520
11357
|
internalType: "address",
|
|
11521
|
-
name: "
|
|
11358
|
+
name: "token",
|
|
11522
11359
|
type: "address"
|
|
11523
11360
|
}
|
|
11524
11361
|
],
|
|
11525
|
-
name: "
|
|
11362
|
+
name: "TokenMappingRemoved",
|
|
11526
11363
|
type: "event"
|
|
11527
11364
|
},
|
|
11528
11365
|
{
|
|
11366
|
+
anonymous: false,
|
|
11529
11367
|
inputs: [
|
|
11530
|
-
],
|
|
11531
|
-
name: "CANONICAL_SALT",
|
|
11532
|
-
outputs: [
|
|
11533
|
-
{
|
|
11534
|
-
internalType: "bytes32",
|
|
11535
|
-
name: "",
|
|
11536
|
-
type: "bytes32"
|
|
11537
|
-
}
|
|
11538
|
-
],
|
|
11539
|
-
stateMutability: "view",
|
|
11540
|
-
type: "function"
|
|
11541
|
-
},
|
|
11542
|
-
{
|
|
11543
|
-
inputs: [
|
|
11544
|
-
],
|
|
11545
|
-
name: "DEFAULT_ADMIN_ROLE",
|
|
11546
|
-
outputs: [
|
|
11547
11368
|
{
|
|
11369
|
+
indexed: true,
|
|
11548
11370
|
internalType: "bytes32",
|
|
11549
|
-
name: "",
|
|
11371
|
+
name: "canonicalId",
|
|
11550
11372
|
type: "bytes32"
|
|
11551
|
-
}
|
|
11552
|
-
],
|
|
11553
|
-
stateMutability: "view",
|
|
11554
|
-
type: "function"
|
|
11555
|
-
},
|
|
11556
|
-
{
|
|
11557
|
-
inputs: [
|
|
11558
|
-
],
|
|
11559
|
-
name: "GUARDIAN_ROLE",
|
|
11560
|
-
outputs: [
|
|
11373
|
+
},
|
|
11561
11374
|
{
|
|
11562
|
-
|
|
11563
|
-
|
|
11564
|
-
|
|
11375
|
+
indexed: true,
|
|
11376
|
+
internalType: "address",
|
|
11377
|
+
name: "token",
|
|
11378
|
+
type: "address"
|
|
11565
11379
|
}
|
|
11566
11380
|
],
|
|
11567
|
-
|
|
11568
|
-
type: "
|
|
11381
|
+
name: "TokenMappingSet",
|
|
11382
|
+
type: "event"
|
|
11569
11383
|
},
|
|
11570
11384
|
{
|
|
11385
|
+
anonymous: false,
|
|
11571
11386
|
inputs: [
|
|
11572
|
-
],
|
|
11573
|
-
name: "NATIVE_TOKEN",
|
|
11574
|
-
outputs: [
|
|
11575
11387
|
{
|
|
11388
|
+
indexed: false,
|
|
11576
11389
|
internalType: "address",
|
|
11577
|
-
name: "",
|
|
11390
|
+
name: "account",
|
|
11578
11391
|
type: "address"
|
|
11579
11392
|
}
|
|
11580
11393
|
],
|
|
11581
|
-
|
|
11582
|
-
type: "
|
|
11394
|
+
name: "Unpaused",
|
|
11395
|
+
type: "event"
|
|
11583
11396
|
},
|
|
11584
11397
|
{
|
|
11585
11398
|
inputs: [
|
|
11586
11399
|
],
|
|
11587
|
-
name: "
|
|
11400
|
+
name: "DEFAULT_ADMIN_ROLE",
|
|
11588
11401
|
outputs: [
|
|
11589
11402
|
{
|
|
11590
11403
|
internalType: "bytes32",
|
|
@@ -11598,83 +11411,21 @@ var abi$h = [
|
|
|
11598
11411
|
{
|
|
11599
11412
|
inputs: [
|
|
11600
11413
|
],
|
|
11601
|
-
name: "
|
|
11602
|
-
outputs: [
|
|
11603
|
-
],
|
|
11604
|
-
stateMutability: "nonpayable",
|
|
11605
|
-
type: "function"
|
|
11606
|
-
},
|
|
11607
|
-
{
|
|
11608
|
-
inputs: [
|
|
11609
|
-
{
|
|
11610
|
-
internalType: "bytes32",
|
|
11611
|
-
name: "canonicalId",
|
|
11612
|
-
type: "bytes32"
|
|
11613
|
-
}
|
|
11614
|
-
],
|
|
11615
|
-
name: "canDeposit",
|
|
11414
|
+
name: "GUARDIAN_ROLE",
|
|
11616
11415
|
outputs: [
|
|
11617
|
-
{
|
|
11618
|
-
internalType: "bool",
|
|
11619
|
-
name: "",
|
|
11620
|
-
type: "bool"
|
|
11621
|
-
}
|
|
11622
|
-
],
|
|
11623
|
-
stateMutability: "view",
|
|
11624
|
-
type: "function"
|
|
11625
|
-
},
|
|
11626
|
-
{
|
|
11627
|
-
inputs: [
|
|
11628
11416
|
{
|
|
11629
11417
|
internalType: "bytes32",
|
|
11630
|
-
name: "canonicalId",
|
|
11631
|
-
type: "bytes32"
|
|
11632
|
-
}
|
|
11633
|
-
],
|
|
11634
|
-
name: "canWithdraw",
|
|
11635
|
-
outputs: [
|
|
11636
|
-
{
|
|
11637
|
-
internalType: "bool",
|
|
11638
11418
|
name: "",
|
|
11639
|
-
type: "bool"
|
|
11640
|
-
}
|
|
11641
|
-
],
|
|
11642
|
-
stateMutability: "view",
|
|
11643
|
-
type: "function"
|
|
11644
|
-
},
|
|
11645
|
-
{
|
|
11646
|
-
inputs: [
|
|
11647
|
-
{
|
|
11648
|
-
internalType: "bytes32",
|
|
11649
|
-
name: "canonicalId",
|
|
11650
11419
|
type: "bytes32"
|
|
11651
11420
|
}
|
|
11652
11421
|
],
|
|
11653
|
-
name: "canonicalDecimals",
|
|
11654
|
-
outputs: [
|
|
11655
|
-
{
|
|
11656
|
-
internalType: "uint8",
|
|
11657
|
-
name: "",
|
|
11658
|
-
type: "uint8"
|
|
11659
|
-
}
|
|
11660
|
-
],
|
|
11661
11422
|
stateMutability: "view",
|
|
11662
11423
|
type: "function"
|
|
11663
11424
|
},
|
|
11664
11425
|
{
|
|
11665
11426
|
inputs: [
|
|
11666
|
-
{
|
|
11667
|
-
internalType: "uint256",
|
|
11668
|
-
name: "originChainId",
|
|
11669
|
-
type: "uint256"
|
|
11670
|
-
},
|
|
11671
|
-
{
|
|
11672
|
-
internalType: "address",
|
|
11673
|
-
name: "originToken",
|
|
11674
|
-
type: "address"
|
|
11675
|
-
}
|
|
11676
11427
|
],
|
|
11677
|
-
name: "
|
|
11428
|
+
name: "OPERATOR_ROLE",
|
|
11678
11429
|
outputs: [
|
|
11679
11430
|
{
|
|
11680
11431
|
internalType: "bytes32",
|
|
@@ -11682,50 +11433,11 @@ var abi$h = [
|
|
|
11682
11433
|
type: "bytes32"
|
|
11683
11434
|
}
|
|
11684
11435
|
],
|
|
11685
|
-
stateMutability: "pure",
|
|
11686
|
-
type: "function"
|
|
11687
|
-
},
|
|
11688
|
-
{
|
|
11689
|
-
inputs: [
|
|
11690
|
-
{
|
|
11691
|
-
internalType: "bytes32",
|
|
11692
|
-
name: "canonicalId",
|
|
11693
|
-
type: "bytes32"
|
|
11694
|
-
}
|
|
11695
|
-
],
|
|
11696
|
-
name: "getCanonical",
|
|
11697
|
-
outputs: [
|
|
11698
|
-
{
|
|
11699
|
-
internalType: "uint256",
|
|
11700
|
-
name: "originChainId",
|
|
11701
|
-
type: "uint256"
|
|
11702
|
-
},
|
|
11703
|
-
{
|
|
11704
|
-
internalType: "address",
|
|
11705
|
-
name: "originToken",
|
|
11706
|
-
type: "address"
|
|
11707
|
-
},
|
|
11708
|
-
{
|
|
11709
|
-
internalType: "uint8",
|
|
11710
|
-
name: "decimals",
|
|
11711
|
-
type: "uint8"
|
|
11712
|
-
},
|
|
11713
|
-
{
|
|
11714
|
-
internalType: "enum ICanonicalTokenRegistry.TokenStatus",
|
|
11715
|
-
name: "status",
|
|
11716
|
-
type: "uint8"
|
|
11717
|
-
}
|
|
11718
|
-
],
|
|
11719
11436
|
stateMutability: "view",
|
|
11720
11437
|
type: "function"
|
|
11721
11438
|
},
|
|
11722
11439
|
{
|
|
11723
11440
|
inputs: [
|
|
11724
|
-
{
|
|
11725
|
-
internalType: "uint256",
|
|
11726
|
-
name: "chainId",
|
|
11727
|
-
type: "uint256"
|
|
11728
|
-
},
|
|
11729
11441
|
{
|
|
11730
11442
|
internalType: "address",
|
|
11731
11443
|
name: "token",
|
|
@@ -11770,12 +11482,12 @@ var abi$h = [
|
|
|
11770
11482
|
type: "bytes32"
|
|
11771
11483
|
}
|
|
11772
11484
|
],
|
|
11773
|
-
name: "
|
|
11485
|
+
name: "getToken",
|
|
11774
11486
|
outputs: [
|
|
11775
11487
|
{
|
|
11776
|
-
internalType: "
|
|
11488
|
+
internalType: "address",
|
|
11777
11489
|
name: "",
|
|
11778
|
-
type: "
|
|
11490
|
+
type: "address"
|
|
11779
11491
|
}
|
|
11780
11492
|
],
|
|
11781
11493
|
stateMutability: "view",
|
|
@@ -11824,25 +11536,6 @@ var abi$h = [
|
|
|
11824
11536
|
stateMutability: "view",
|
|
11825
11537
|
type: "function"
|
|
11826
11538
|
},
|
|
11827
|
-
{
|
|
11828
|
-
inputs: [
|
|
11829
|
-
{
|
|
11830
|
-
internalType: "bytes32",
|
|
11831
|
-
name: "canonicalId",
|
|
11832
|
-
type: "bytes32"
|
|
11833
|
-
}
|
|
11834
|
-
],
|
|
11835
|
-
name: "isActive",
|
|
11836
|
-
outputs: [
|
|
11837
|
-
{
|
|
11838
|
-
internalType: "bool",
|
|
11839
|
-
name: "",
|
|
11840
|
-
type: "bool"
|
|
11841
|
-
}
|
|
11842
|
-
],
|
|
11843
|
-
stateMutability: "view",
|
|
11844
|
-
type: "function"
|
|
11845
|
-
},
|
|
11846
11539
|
{
|
|
11847
11540
|
inputs: [
|
|
11848
11541
|
{
|
|
@@ -11862,44 +11555,6 @@ var abi$h = [
|
|
|
11862
11555
|
stateMutability: "view",
|
|
11863
11556
|
type: "function"
|
|
11864
11557
|
},
|
|
11865
|
-
{
|
|
11866
|
-
inputs: [
|
|
11867
|
-
{
|
|
11868
|
-
internalType: "uint256",
|
|
11869
|
-
name: "chainId",
|
|
11870
|
-
type: "uint256"
|
|
11871
|
-
},
|
|
11872
|
-
{
|
|
11873
|
-
internalType: "address",
|
|
11874
|
-
name: "token",
|
|
11875
|
-
type: "address"
|
|
11876
|
-
},
|
|
11877
|
-
{
|
|
11878
|
-
internalType: "bytes32",
|
|
11879
|
-
name: "canonicalId",
|
|
11880
|
-
type: "bytes32"
|
|
11881
|
-
}
|
|
11882
|
-
],
|
|
11883
|
-
name: "mapRepresentation",
|
|
11884
|
-
outputs: [
|
|
11885
|
-
],
|
|
11886
|
-
stateMutability: "nonpayable",
|
|
11887
|
-
type: "function"
|
|
11888
|
-
},
|
|
11889
|
-
{
|
|
11890
|
-
inputs: [
|
|
11891
|
-
],
|
|
11892
|
-
name: "owner",
|
|
11893
|
-
outputs: [
|
|
11894
|
-
{
|
|
11895
|
-
internalType: "address",
|
|
11896
|
-
name: "",
|
|
11897
|
-
type: "address"
|
|
11898
|
-
}
|
|
11899
|
-
],
|
|
11900
|
-
stateMutability: "view",
|
|
11901
|
-
type: "function"
|
|
11902
|
-
},
|
|
11903
11558
|
{
|
|
11904
11559
|
inputs: [
|
|
11905
11560
|
],
|
|
@@ -11923,53 +11578,15 @@ var abi$h = [
|
|
|
11923
11578
|
stateMutability: "view",
|
|
11924
11579
|
type: "function"
|
|
11925
11580
|
},
|
|
11926
|
-
{
|
|
11927
|
-
inputs: [
|
|
11928
|
-
],
|
|
11929
|
-
name: "pendingOwner",
|
|
11930
|
-
outputs: [
|
|
11931
|
-
{
|
|
11932
|
-
internalType: "address",
|
|
11933
|
-
name: "",
|
|
11934
|
-
type: "address"
|
|
11935
|
-
}
|
|
11936
|
-
],
|
|
11937
|
-
stateMutability: "view",
|
|
11938
|
-
type: "function"
|
|
11939
|
-
},
|
|
11940
11581
|
{
|
|
11941
11582
|
inputs: [
|
|
11942
|
-
{
|
|
11943
|
-
internalType: "uint256",
|
|
11944
|
-
name: "originChainId",
|
|
11945
|
-
type: "uint256"
|
|
11946
|
-
},
|
|
11947
|
-
{
|
|
11948
|
-
internalType: "address",
|
|
11949
|
-
name: "originToken",
|
|
11950
|
-
type: "address"
|
|
11951
|
-
},
|
|
11952
|
-
{
|
|
11953
|
-
internalType: "uint8",
|
|
11954
|
-
name: "decimals",
|
|
11955
|
-
type: "uint8"
|
|
11956
|
-
}
|
|
11957
|
-
],
|
|
11958
|
-
name: "registerCanonical",
|
|
11959
|
-
outputs: [
|
|
11960
11583
|
{
|
|
11961
11584
|
internalType: "bytes32",
|
|
11962
11585
|
name: "canonicalId",
|
|
11963
11586
|
type: "bytes32"
|
|
11964
11587
|
}
|
|
11965
11588
|
],
|
|
11966
|
-
|
|
11967
|
-
type: "function"
|
|
11968
|
-
},
|
|
11969
|
-
{
|
|
11970
|
-
inputs: [
|
|
11971
|
-
],
|
|
11972
|
-
name: "renounceOwnership",
|
|
11589
|
+
name: "removeTokenMapping",
|
|
11973
11590
|
outputs: [
|
|
11974
11591
|
],
|
|
11975
11592
|
stateMutability: "nonpayable",
|
|
@@ -12021,12 +11638,12 @@ var abi$h = [
|
|
|
12021
11638
|
type: "bytes32"
|
|
12022
11639
|
},
|
|
12023
11640
|
{
|
|
12024
|
-
internalType: "
|
|
12025
|
-
name: "
|
|
12026
|
-
type: "
|
|
11641
|
+
internalType: "address",
|
|
11642
|
+
name: "token",
|
|
11643
|
+
type: "address"
|
|
12027
11644
|
}
|
|
12028
11645
|
],
|
|
12029
|
-
name: "
|
|
11646
|
+
name: "setTokenMapping",
|
|
12030
11647
|
outputs: [
|
|
12031
11648
|
],
|
|
12032
11649
|
stateMutability: "nonpayable",
|
|
@@ -12051,39 +11668,6 @@ var abi$h = [
|
|
|
12051
11668
|
stateMutability: "view",
|
|
12052
11669
|
type: "function"
|
|
12053
11670
|
},
|
|
12054
|
-
{
|
|
12055
|
-
inputs: [
|
|
12056
|
-
{
|
|
12057
|
-
internalType: "address",
|
|
12058
|
-
name: "newOwner",
|
|
12059
|
-
type: "address"
|
|
12060
|
-
}
|
|
12061
|
-
],
|
|
12062
|
-
name: "transferOwnership",
|
|
12063
|
-
outputs: [
|
|
12064
|
-
],
|
|
12065
|
-
stateMutability: "nonpayable",
|
|
12066
|
-
type: "function"
|
|
12067
|
-
},
|
|
12068
|
-
{
|
|
12069
|
-
inputs: [
|
|
12070
|
-
{
|
|
12071
|
-
internalType: "uint256",
|
|
12072
|
-
name: "chainId",
|
|
12073
|
-
type: "uint256"
|
|
12074
|
-
},
|
|
12075
|
-
{
|
|
12076
|
-
internalType: "address",
|
|
12077
|
-
name: "token",
|
|
12078
|
-
type: "address"
|
|
12079
|
-
}
|
|
12080
|
-
],
|
|
12081
|
-
name: "unmapRepresentation",
|
|
12082
|
-
outputs: [
|
|
12083
|
-
],
|
|
12084
|
-
stateMutability: "nonpayable",
|
|
12085
|
-
type: "function"
|
|
12086
|
-
},
|
|
12087
11671
|
{
|
|
12088
11672
|
inputs: [
|
|
12089
11673
|
],
|
|
@@ -12094,27 +11678,11 @@ var abi$h = [
|
|
|
12094
11678
|
type: "function"
|
|
12095
11679
|
}
|
|
12096
11680
|
];
|
|
12097
|
-
var bytecode$h = "";
|
|
12098
|
-
var deployedBytecode$6 = "";
|
|
12099
|
-
var linkReferences$6 = {
|
|
12100
|
-
};
|
|
12101
|
-
var deployedLinkReferences$6 = {
|
|
12102
|
-
};
|
|
12103
|
-
var CanonicalTokenRegistryAbi = {
|
|
12104
|
-
_format: _format$6,
|
|
12105
|
-
contractName: contractName$6,
|
|
12106
|
-
sourceName: sourceName$6,
|
|
12107
|
-
abi: abi$h,
|
|
12108
|
-
bytecode: bytecode$h,
|
|
12109
|
-
deployedBytecode: deployedBytecode$6,
|
|
12110
|
-
linkReferences: linkReferences$6,
|
|
12111
|
-
deployedLinkReferences: deployedLinkReferences$6
|
|
12112
|
-
};
|
|
12113
11681
|
|
|
12114
|
-
var _format$
|
|
12115
|
-
var contractName$
|
|
12116
|
-
var sourceName$
|
|
12117
|
-
var abi$
|
|
11682
|
+
var _format$6 = "hh-sol-artifact-1";
|
|
11683
|
+
var contractName$6 = "Bridge";
|
|
11684
|
+
var sourceName$6 = "src/Bridge.sol";
|
|
11685
|
+
var abi$h = [
|
|
12118
11686
|
{
|
|
12119
11687
|
inputs: [
|
|
12120
11688
|
{
|
|
@@ -13069,21 +12637,21 @@ var abi$i = [
|
|
|
13069
12637
|
type: "function"
|
|
13070
12638
|
}
|
|
13071
12639
|
];
|
|
13072
|
-
var bytecode$
|
|
13073
|
-
var deployedBytecode$
|
|
13074
|
-
var linkReferences$
|
|
12640
|
+
var bytecode$h = "";
|
|
12641
|
+
var deployedBytecode$6 = "";
|
|
12642
|
+
var linkReferences$6 = {
|
|
13075
12643
|
};
|
|
13076
|
-
var deployedLinkReferences$
|
|
12644
|
+
var deployedLinkReferences$6 = {
|
|
13077
12645
|
};
|
|
13078
12646
|
var BridgeAbi = {
|
|
13079
|
-
_format: _format$
|
|
13080
|
-
contractName: contractName$
|
|
13081
|
-
sourceName: sourceName$
|
|
13082
|
-
abi: abi$
|
|
13083
|
-
bytecode: bytecode$
|
|
13084
|
-
deployedBytecode: deployedBytecode$
|
|
13085
|
-
linkReferences: linkReferences$
|
|
13086
|
-
deployedLinkReferences: deployedLinkReferences$
|
|
12647
|
+
_format: _format$6,
|
|
12648
|
+
contractName: contractName$6,
|
|
12649
|
+
sourceName: sourceName$6,
|
|
12650
|
+
abi: abi$h,
|
|
12651
|
+
bytecode: bytecode$h,
|
|
12652
|
+
deployedBytecode: deployedBytecode$6,
|
|
12653
|
+
linkReferences: linkReferences$6,
|
|
12654
|
+
deployedLinkReferences: deployedLinkReferences$6
|
|
13087
12655
|
};
|
|
13088
12656
|
|
|
13089
12657
|
var _DOMAIN_PREFIX = "0x191253796e6172614272696467654465706f7369740a";
|
|
@@ -13245,20 +12813,20 @@ var BridgeCreateOrderService = /*#__PURE__*/function () {
|
|
|
13245
12813
|
}
|
|
13246
12814
|
var _proto = BridgeCreateOrderService.prototype;
|
|
13247
12815
|
_proto.getCanonicalTokenAddress = /*#__PURE__*/function () {
|
|
13248
|
-
var _getCanonicalTokenAddress = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(
|
|
12816
|
+
var _getCanonicalTokenAddress = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(sourceAsset) {
|
|
13249
12817
|
var canonicalTokenRegistry;
|
|
13250
12818
|
return _regenerator().w(function (_context) {
|
|
13251
12819
|
while (1) switch (_context.n) {
|
|
13252
12820
|
case 0:
|
|
13253
|
-
canonicalTokenRegistry = new ethers.Contract(this._darkSwapOfSourceChain.contracts.synaraCanonicalTokenRegistry, CanonicalTokenRegistryAbi
|
|
12821
|
+
canonicalTokenRegistry = new ethers.Contract(this._darkSwapOfSourceChain.contracts.synaraCanonicalTokenRegistry, CanonicalTokenRegistryAbi, this._darkSwapOfSourceChain.provider);
|
|
13254
12822
|
_context.n = 1;
|
|
13255
|
-
return canonicalTokenRegistry.getCanonicalId(
|
|
12823
|
+
return canonicalTokenRegistry.getCanonicalId(sourceAsset);
|
|
13256
12824
|
case 1:
|
|
13257
12825
|
return _context.a(2, _context.v);
|
|
13258
12826
|
}
|
|
13259
12827
|
}, _callee, this);
|
|
13260
12828
|
}));
|
|
13261
|
-
function getCanonicalTokenAddress(_x
|
|
12829
|
+
function getCanonicalTokenAddress(_x) {
|
|
13262
12830
|
return _getCanonicalTokenAddress.apply(this, arguments);
|
|
13263
12831
|
}
|
|
13264
12832
|
return getCanonicalTokenAddress;
|
|
@@ -13277,7 +12845,7 @@ var BridgeCreateOrderService = /*#__PURE__*/function () {
|
|
|
13277
12845
|
}
|
|
13278
12846
|
}, _callee2, this);
|
|
13279
12847
|
}));
|
|
13280
|
-
function getBridgeFee(_x3, _x4
|
|
12848
|
+
function getBridgeFee(_x2, _x3, _x4) {
|
|
13281
12849
|
return _getBridgeFee.apply(this, arguments);
|
|
13282
12850
|
}
|
|
13283
12851
|
return getBridgeFee;
|
|
@@ -13301,7 +12869,7 @@ var BridgeCreateOrderService = /*#__PURE__*/function () {
|
|
|
13301
12869
|
_t2 = _context3.v;
|
|
13302
12870
|
feeRatio = _t(_t2);
|
|
13303
12871
|
_context3.n = 3;
|
|
13304
|
-
return this.getCanonicalTokenAddress(
|
|
12872
|
+
return this.getCanonicalTokenAddress(sourceAsset);
|
|
13305
12873
|
case 3:
|
|
13306
12874
|
canonicalIdFromContract = _context3.v;
|
|
13307
12875
|
if (!(canonicalIdFromContract !== canonicalId)) {
|
|
@@ -13347,7 +12915,7 @@ var BridgeCreateOrderService = /*#__PURE__*/function () {
|
|
|
13347
12915
|
}
|
|
13348
12916
|
}, _callee3, this);
|
|
13349
12917
|
}));
|
|
13350
|
-
function prepare(_x6, _x7, _x8, _x9, _x0, _x1, _x10, _x11, _x12, _x13, _x14
|
|
12918
|
+
function prepare(_x5, _x6, _x7, _x8, _x9, _x0, _x1, _x10, _x11, _x12, _x13, _x14) {
|
|
13351
12919
|
return _prepare.apply(this, arguments);
|
|
13352
12920
|
}
|
|
13353
12921
|
return prepare;
|
|
@@ -13415,7 +12983,7 @@ var BridgeCreateOrderService = /*#__PURE__*/function () {
|
|
|
13415
12983
|
}
|
|
13416
12984
|
}, _callee4, this);
|
|
13417
12985
|
}));
|
|
13418
|
-
function submitProof(
|
|
12986
|
+
function submitProof(_x15) {
|
|
13419
12987
|
return _submitProof.apply(this, arguments);
|
|
13420
12988
|
}
|
|
13421
12989
|
return submitProof;
|
|
@@ -13505,7 +13073,7 @@ var BridgeCreateOrderService = /*#__PURE__*/function () {
|
|
|
13505
13073
|
}
|
|
13506
13074
|
}, _callee5, null, [[2, 8]]);
|
|
13507
13075
|
}));
|
|
13508
|
-
function pollJobStatus(
|
|
13076
|
+
function pollJobStatus(_x16) {
|
|
13509
13077
|
return _pollJobStatus.apply(this, arguments);
|
|
13510
13078
|
}
|
|
13511
13079
|
return pollJobStatus;
|
|
@@ -13540,7 +13108,7 @@ var BridgeCreateOrderService = /*#__PURE__*/function () {
|
|
|
13540
13108
|
}
|
|
13541
13109
|
}, _callee6);
|
|
13542
13110
|
}));
|
|
13543
|
-
function generateProof(
|
|
13111
|
+
function generateProof(_x17) {
|
|
13544
13112
|
return _generateProof.apply(this, arguments);
|
|
13545
13113
|
}
|
|
13546
13114
|
return generateProof;
|
|
@@ -13571,7 +13139,7 @@ var BridgeCreateOrderService = /*#__PURE__*/function () {
|
|
|
13571
13139
|
}
|
|
13572
13140
|
}, _callee7, this);
|
|
13573
13141
|
}));
|
|
13574
|
-
function computeDepositId(
|
|
13142
|
+
function computeDepositId(_x18) {
|
|
13575
13143
|
return _computeDepositId.apply(this, arguments);
|
|
13576
13144
|
}
|
|
13577
13145
|
return computeDepositId;
|
|
@@ -13593,7 +13161,7 @@ var BridgeCreateOrderService = /*#__PURE__*/function () {
|
|
|
13593
13161
|
}
|
|
13594
13162
|
}, _callee8, this);
|
|
13595
13163
|
}));
|
|
13596
|
-
function getCurrentNonce(
|
|
13164
|
+
function getCurrentNonce(_x19) {
|
|
13597
13165
|
return _getCurrentNonce.apply(this, arguments);
|
|
13598
13166
|
}
|
|
13599
13167
|
return getCurrentNonce;
|
|
@@ -13631,7 +13199,7 @@ var BridgeCreateOrderService = /*#__PURE__*/function () {
|
|
|
13631
13199
|
}
|
|
13632
13200
|
}, _callee9, this);
|
|
13633
13201
|
}));
|
|
13634
|
-
function composeCallData(
|
|
13202
|
+
function composeCallData(_x20) {
|
|
13635
13203
|
return _composeCallData.apply(this, arguments);
|
|
13636
13204
|
}
|
|
13637
13205
|
return composeCallData;
|
|
@@ -13673,7 +13241,7 @@ var BridgeCreateOrderService = /*#__PURE__*/function () {
|
|
|
13673
13241
|
}
|
|
13674
13242
|
}, _callee0, this);
|
|
13675
13243
|
}));
|
|
13676
|
-
function allowance(
|
|
13244
|
+
function allowance(_x21) {
|
|
13677
13245
|
return _allowance.apply(this, arguments);
|
|
13678
13246
|
}
|
|
13679
13247
|
return allowance;
|
|
@@ -13707,7 +13275,7 @@ var BridgeCreateOrderService = /*#__PURE__*/function () {
|
|
|
13707
13275
|
}
|
|
13708
13276
|
}, _callee1, this);
|
|
13709
13277
|
}));
|
|
13710
|
-
function execute(
|
|
13278
|
+
function execute(_x22) {
|
|
13711
13279
|
return _execute2.apply(this, arguments);
|
|
13712
13280
|
}
|
|
13713
13281
|
return execute;
|
|
@@ -13750,7 +13318,7 @@ var BridgeCreateOrderService = /*#__PURE__*/function () {
|
|
|
13750
13318
|
}
|
|
13751
13319
|
}, _callee10, this);
|
|
13752
13320
|
}));
|
|
13753
|
-
function _execute(
|
|
13321
|
+
function _execute(_x23) {
|
|
13754
13322
|
return _execute3.apply(this, arguments);
|
|
13755
13323
|
}
|
|
13756
13324
|
return _execute;
|