@hyperbridge/sdk 2.8.10 → 2.8.11
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/browser/index.d.ts +204 -65
- package/dist/browser/index.js +266 -88
- package/dist/browser/index.js.map +1 -1
- package/dist/node/index.cjs +266 -88
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +2 -2
- package/dist/node/index.d.ts +2 -2
- package/dist/node/index.js +266 -88
- package/dist/node/index.js.map +1 -1
- package/dist/node/{intents-helpers-BKj42imQ.d.cts → intents-helpers-BRegx4yZ.d.cts} +624 -203
- package/dist/node/{intents-helpers-BKj42imQ.d.ts → intents-helpers-BRegx4yZ.d.ts} +624 -203
- package/dist/node/intents-helpers.cjs +274 -91
- package/dist/node/intents-helpers.cjs.map +1 -1
- package/dist/node/intents-helpers.d.cts +1 -1
- package/dist/node/intents-helpers.d.ts +1 -1
- package/dist/node/intents-helpers.js +274 -91
- package/dist/node/intents-helpers.js.map +1 -1
- package/package.json +1 -1
package/dist/browser/index.d.ts
CHANGED
|
@@ -6559,7 +6559,7 @@ declare function applyPhantomQuoteHaircut(amount: bigint): bigint;
|
|
|
6559
6559
|
declare const ABI$1: readonly [{
|
|
6560
6560
|
readonly type: "constructor";
|
|
6561
6561
|
readonly inputs: readonly [{
|
|
6562
|
-
readonly name: "
|
|
6562
|
+
readonly name: "owner";
|
|
6563
6563
|
readonly type: "address";
|
|
6564
6564
|
readonly internalType: "address";
|
|
6565
6565
|
}];
|
|
@@ -6615,20 +6615,6 @@ declare const ABI$1: readonly [{
|
|
|
6615
6615
|
readonly internalType: "address";
|
|
6616
6616
|
}];
|
|
6617
6617
|
readonly stateMutability: "view";
|
|
6618
|
-
}, {
|
|
6619
|
-
readonly type: "function";
|
|
6620
|
-
readonly name: "_instances";
|
|
6621
|
-
readonly inputs: readonly [{
|
|
6622
|
-
readonly name: "";
|
|
6623
|
-
readonly type: "bytes32";
|
|
6624
|
-
readonly internalType: "bytes32";
|
|
6625
|
-
}];
|
|
6626
|
-
readonly outputs: readonly [{
|
|
6627
|
-
readonly name: "";
|
|
6628
|
-
readonly type: "address";
|
|
6629
|
-
readonly internalType: "address";
|
|
6630
|
-
}];
|
|
6631
|
-
readonly stateMutability: "view";
|
|
6632
6618
|
}, {
|
|
6633
6619
|
readonly type: "function";
|
|
6634
6620
|
readonly name: "_nonce";
|
|
@@ -6657,6 +6643,16 @@ declare const ABI$1: readonly [{
|
|
|
6657
6643
|
readonly internalType: "uint256";
|
|
6658
6644
|
}];
|
|
6659
6645
|
readonly stateMutability: "view";
|
|
6646
|
+
}, {
|
|
6647
|
+
readonly type: "function";
|
|
6648
|
+
readonly name: "_owner";
|
|
6649
|
+
readonly inputs: readonly [];
|
|
6650
|
+
readonly outputs: readonly [{
|
|
6651
|
+
readonly name: "";
|
|
6652
|
+
readonly type: "address";
|
|
6653
|
+
readonly internalType: "address";
|
|
6654
|
+
}];
|
|
6655
|
+
readonly stateMutability: "view";
|
|
6660
6656
|
}, {
|
|
6661
6657
|
readonly type: "function";
|
|
6662
6658
|
readonly name: "_partialFills";
|
|
@@ -6976,6 +6972,49 @@ declare const ABI$1: readonly [{
|
|
|
6976
6972
|
readonly internalType: "address";
|
|
6977
6973
|
}];
|
|
6978
6974
|
readonly stateMutability: "view";
|
|
6975
|
+
}, {
|
|
6976
|
+
readonly type: "function";
|
|
6977
|
+
readonly name: "initialize";
|
|
6978
|
+
readonly inputs: readonly [{
|
|
6979
|
+
readonly name: "p";
|
|
6980
|
+
readonly type: "tuple";
|
|
6981
|
+
readonly internalType: "struct Params";
|
|
6982
|
+
readonly components: readonly [{
|
|
6983
|
+
readonly name: "host";
|
|
6984
|
+
readonly type: "address";
|
|
6985
|
+
readonly internalType: "address";
|
|
6986
|
+
}, {
|
|
6987
|
+
readonly name: "dispatcher";
|
|
6988
|
+
readonly type: "address";
|
|
6989
|
+
readonly internalType: "address";
|
|
6990
|
+
}, {
|
|
6991
|
+
readonly name: "solverSelection";
|
|
6992
|
+
readonly type: "bool";
|
|
6993
|
+
readonly internalType: "bool";
|
|
6994
|
+
}, {
|
|
6995
|
+
readonly name: "surplusShareBps";
|
|
6996
|
+
readonly type: "uint256";
|
|
6997
|
+
readonly internalType: "uint256";
|
|
6998
|
+
}, {
|
|
6999
|
+
readonly name: "protocolFeeBps";
|
|
7000
|
+
readonly type: "uint256";
|
|
7001
|
+
readonly internalType: "uint256";
|
|
7002
|
+
}, {
|
|
7003
|
+
readonly name: "priceOracle";
|
|
7004
|
+
readonly type: "address";
|
|
7005
|
+
readonly internalType: "address";
|
|
7006
|
+
}];
|
|
7007
|
+
}, {
|
|
7008
|
+
readonly name: "peerChains";
|
|
7009
|
+
readonly type: "bytes[]";
|
|
7010
|
+
readonly internalType: "bytes[]";
|
|
7011
|
+
}, {
|
|
7012
|
+
readonly name: "relayer";
|
|
7013
|
+
readonly type: "address";
|
|
7014
|
+
readonly internalType: "address";
|
|
7015
|
+
}];
|
|
7016
|
+
readonly outputs: readonly [];
|
|
7017
|
+
readonly stateMutability: "nonpayable";
|
|
6979
7018
|
}, {
|
|
6980
7019
|
readonly type: "function";
|
|
6981
7020
|
readonly name: "instance";
|
|
@@ -6990,6 +7029,16 @@ declare const ABI$1: readonly [{
|
|
|
6990
7029
|
readonly internalType: "address";
|
|
6991
7030
|
}];
|
|
6992
7031
|
readonly stateMutability: "view";
|
|
7032
|
+
}, {
|
|
7033
|
+
readonly type: "function";
|
|
7034
|
+
readonly name: "migrate";
|
|
7035
|
+
readonly inputs: readonly [{
|
|
7036
|
+
readonly name: "relayer";
|
|
7037
|
+
readonly type: "address";
|
|
7038
|
+
readonly internalType: "address";
|
|
7039
|
+
}];
|
|
7040
|
+
readonly outputs: readonly [];
|
|
7041
|
+
readonly stateMutability: "nonpayable";
|
|
6993
7042
|
}, {
|
|
6994
7043
|
readonly type: "function";
|
|
6995
7044
|
readonly name: "onAccept";
|
|
@@ -7385,7 +7434,7 @@ declare const ABI$1: readonly [{
|
|
|
7385
7434
|
readonly type: "uint256";
|
|
7386
7435
|
readonly internalType: "uint256";
|
|
7387
7436
|
}];
|
|
7388
|
-
readonly stateMutability: "
|
|
7437
|
+
readonly stateMutability: "nonpayable";
|
|
7389
7438
|
}, {
|
|
7390
7439
|
readonly type: "function";
|
|
7391
7440
|
readonly name: "quote";
|
|
@@ -7428,6 +7477,16 @@ declare const ABI$1: readonly [{
|
|
|
7428
7477
|
readonly type: "uint256";
|
|
7429
7478
|
readonly internalType: "uint256";
|
|
7430
7479
|
}];
|
|
7480
|
+
readonly stateMutability: "nonpayable";
|
|
7481
|
+
}, {
|
|
7482
|
+
readonly type: "function";
|
|
7483
|
+
readonly name: "relayer";
|
|
7484
|
+
readonly inputs: readonly [];
|
|
7485
|
+
readonly outputs: readonly [{
|
|
7486
|
+
readonly name: "";
|
|
7487
|
+
readonly type: "address";
|
|
7488
|
+
readonly internalType: "address";
|
|
7489
|
+
}];
|
|
7431
7490
|
readonly stateMutability: "view";
|
|
7432
7491
|
}, {
|
|
7433
7492
|
readonly type: "function";
|
|
@@ -7458,52 +7517,53 @@ declare const ABI$1: readonly [{
|
|
|
7458
7517
|
readonly stateMutability: "nonpayable";
|
|
7459
7518
|
}, {
|
|
7460
7519
|
readonly type: "function";
|
|
7461
|
-
readonly name: "
|
|
7520
|
+
readonly name: "setRelayer";
|
|
7462
7521
|
readonly inputs: readonly [{
|
|
7463
|
-
readonly name: "
|
|
7464
|
-
readonly type: "
|
|
7465
|
-
readonly internalType: "
|
|
7466
|
-
|
|
7467
|
-
|
|
7468
|
-
|
|
7469
|
-
|
|
7470
|
-
|
|
7471
|
-
|
|
7472
|
-
|
|
7473
|
-
|
|
7474
|
-
|
|
7475
|
-
|
|
7476
|
-
readonly type: "bool";
|
|
7477
|
-
readonly internalType: "bool";
|
|
7478
|
-
}, {
|
|
7479
|
-
readonly name: "surplusShareBps";
|
|
7480
|
-
readonly type: "uint256";
|
|
7481
|
-
readonly internalType: "uint256";
|
|
7482
|
-
}, {
|
|
7483
|
-
readonly name: "protocolFeeBps";
|
|
7484
|
-
readonly type: "uint256";
|
|
7485
|
-
readonly internalType: "uint256";
|
|
7486
|
-
}, {
|
|
7487
|
-
readonly name: "priceOracle";
|
|
7488
|
-
readonly type: "address";
|
|
7489
|
-
readonly internalType: "address";
|
|
7490
|
-
}];
|
|
7522
|
+
readonly name: "relayer";
|
|
7523
|
+
readonly type: "address";
|
|
7524
|
+
readonly internalType: "address";
|
|
7525
|
+
}];
|
|
7526
|
+
readonly outputs: readonly [];
|
|
7527
|
+
readonly stateMutability: "nonpayable";
|
|
7528
|
+
}, {
|
|
7529
|
+
readonly type: "function";
|
|
7530
|
+
readonly name: "upgradeToAndCall";
|
|
7531
|
+
readonly inputs: readonly [{
|
|
7532
|
+
readonly name: "newImplementation";
|
|
7533
|
+
readonly type: "address";
|
|
7534
|
+
readonly internalType: "address";
|
|
7491
7535
|
}, {
|
|
7492
|
-
readonly name: "
|
|
7493
|
-
readonly type: "
|
|
7494
|
-
readonly internalType: "
|
|
7495
|
-
readonly components: readonly [{
|
|
7496
|
-
readonly name: "chain";
|
|
7497
|
-
readonly type: "bytes";
|
|
7498
|
-
readonly internalType: "bytes";
|
|
7499
|
-
}, {
|
|
7500
|
-
readonly name: "gateway";
|
|
7501
|
-
readonly type: "address";
|
|
7502
|
-
readonly internalType: "address";
|
|
7503
|
-
}];
|
|
7536
|
+
readonly name: "data";
|
|
7537
|
+
readonly type: "bytes";
|
|
7538
|
+
readonly internalType: "bytes";
|
|
7504
7539
|
}];
|
|
7505
7540
|
readonly outputs: readonly [];
|
|
7506
7541
|
readonly stateMutability: "nonpayable";
|
|
7542
|
+
}, {
|
|
7543
|
+
readonly type: "function";
|
|
7544
|
+
readonly name: "version";
|
|
7545
|
+
readonly inputs: readonly [];
|
|
7546
|
+
readonly outputs: readonly [{
|
|
7547
|
+
readonly name: "";
|
|
7548
|
+
readonly type: "uint64";
|
|
7549
|
+
readonly internalType: "uint64";
|
|
7550
|
+
}];
|
|
7551
|
+
readonly stateMutability: "view";
|
|
7552
|
+
}, {
|
|
7553
|
+
readonly type: "event";
|
|
7554
|
+
readonly name: "DeploymentAdded";
|
|
7555
|
+
readonly inputs: readonly [{
|
|
7556
|
+
readonly name: "chain";
|
|
7557
|
+
readonly type: "string";
|
|
7558
|
+
readonly indexed: false;
|
|
7559
|
+
readonly internalType: "string";
|
|
7560
|
+
}, {
|
|
7561
|
+
readonly name: "gateway";
|
|
7562
|
+
readonly type: "address";
|
|
7563
|
+
readonly indexed: false;
|
|
7564
|
+
readonly internalType: "address";
|
|
7565
|
+
}];
|
|
7566
|
+
readonly anonymous: false;
|
|
7507
7567
|
}, {
|
|
7508
7568
|
readonly type: "event";
|
|
7509
7569
|
readonly name: "DestinationProtocolFeeUpdated";
|
|
@@ -7609,14 +7669,24 @@ declare const ABI$1: readonly [{
|
|
|
7609
7669
|
readonly anonymous: false;
|
|
7610
7670
|
}, {
|
|
7611
7671
|
readonly type: "event";
|
|
7612
|
-
readonly name: "
|
|
7672
|
+
readonly name: "Initialized";
|
|
7613
7673
|
readonly inputs: readonly [{
|
|
7614
|
-
readonly name: "
|
|
7615
|
-
readonly type: "
|
|
7674
|
+
readonly name: "version";
|
|
7675
|
+
readonly type: "uint64";
|
|
7616
7676
|
readonly indexed: false;
|
|
7617
|
-
readonly internalType: "
|
|
7677
|
+
readonly internalType: "uint64";
|
|
7678
|
+
}];
|
|
7679
|
+
readonly anonymous: false;
|
|
7680
|
+
}, {
|
|
7681
|
+
readonly type: "event";
|
|
7682
|
+
readonly name: "OrderCancelled";
|
|
7683
|
+
readonly inputs: readonly [{
|
|
7684
|
+
readonly name: "commitment";
|
|
7685
|
+
readonly type: "bytes32";
|
|
7686
|
+
readonly indexed: true;
|
|
7687
|
+
readonly internalType: "bytes32";
|
|
7618
7688
|
}, {
|
|
7619
|
-
readonly name: "
|
|
7689
|
+
readonly name: "canceller";
|
|
7620
7690
|
readonly type: "address";
|
|
7621
7691
|
readonly indexed: false;
|
|
7622
7692
|
readonly internalType: "address";
|
|
@@ -7875,13 +7945,42 @@ declare const ABI$1: readonly [{
|
|
|
7875
7945
|
}];
|
|
7876
7946
|
}];
|
|
7877
7947
|
readonly anonymous: false;
|
|
7948
|
+
}, {
|
|
7949
|
+
readonly type: "event";
|
|
7950
|
+
readonly name: "RelayerUpdated";
|
|
7951
|
+
readonly inputs: readonly [{
|
|
7952
|
+
readonly name: "previous";
|
|
7953
|
+
readonly type: "address";
|
|
7954
|
+
readonly indexed: false;
|
|
7955
|
+
readonly internalType: "address";
|
|
7956
|
+
}, {
|
|
7957
|
+
readonly name: "current";
|
|
7958
|
+
readonly type: "address";
|
|
7959
|
+
readonly indexed: false;
|
|
7960
|
+
readonly internalType: "address";
|
|
7961
|
+
}];
|
|
7962
|
+
readonly anonymous: false;
|
|
7963
|
+
}, {
|
|
7964
|
+
readonly type: "event";
|
|
7965
|
+
readonly name: "Upgraded";
|
|
7966
|
+
readonly inputs: readonly [{
|
|
7967
|
+
readonly name: "implementation";
|
|
7968
|
+
readonly type: "address";
|
|
7969
|
+
readonly indexed: true;
|
|
7970
|
+
readonly internalType: "address";
|
|
7971
|
+
}];
|
|
7972
|
+
readonly anonymous: false;
|
|
7878
7973
|
}, {
|
|
7879
7974
|
readonly type: "error";
|
|
7880
|
-
readonly name: "
|
|
7881
|
-
readonly inputs: readonly [
|
|
7975
|
+
readonly name: "AddressEmptyCode";
|
|
7976
|
+
readonly inputs: readonly [{
|
|
7977
|
+
readonly name: "target";
|
|
7978
|
+
readonly type: "address";
|
|
7979
|
+
readonly internalType: "address";
|
|
7980
|
+
}];
|
|
7882
7981
|
}, {
|
|
7883
7982
|
readonly type: "error";
|
|
7884
|
-
readonly name: "
|
|
7983
|
+
readonly name: "Cancelled";
|
|
7885
7984
|
readonly inputs: readonly [];
|
|
7886
7985
|
}, {
|
|
7887
7986
|
readonly type: "error";
|
|
@@ -7903,10 +8002,30 @@ declare const ABI$1: readonly [{
|
|
|
7903
8002
|
readonly type: "bytes32";
|
|
7904
8003
|
readonly internalType: "bytes32";
|
|
7905
8004
|
}];
|
|
8005
|
+
}, {
|
|
8006
|
+
readonly type: "error";
|
|
8007
|
+
readonly name: "ERC1967InvalidImplementation";
|
|
8008
|
+
readonly inputs: readonly [{
|
|
8009
|
+
readonly name: "implementation";
|
|
8010
|
+
readonly type: "address";
|
|
8011
|
+
readonly internalType: "address";
|
|
8012
|
+
}];
|
|
8013
|
+
}, {
|
|
8014
|
+
readonly type: "error";
|
|
8015
|
+
readonly name: "ERC1967NonPayable";
|
|
8016
|
+
readonly inputs: readonly [];
|
|
7906
8017
|
}, {
|
|
7907
8018
|
readonly type: "error";
|
|
7908
8019
|
readonly name: "Expired";
|
|
7909
8020
|
readonly inputs: readonly [];
|
|
8021
|
+
}, {
|
|
8022
|
+
readonly type: "error";
|
|
8023
|
+
readonly name: "FailedCall";
|
|
8024
|
+
readonly inputs: readonly [];
|
|
8025
|
+
}, {
|
|
8026
|
+
readonly type: "error";
|
|
8027
|
+
readonly name: "FillExpired";
|
|
8028
|
+
readonly inputs: readonly [];
|
|
7910
8029
|
}, {
|
|
7911
8030
|
readonly type: "error";
|
|
7912
8031
|
readonly name: "Filled";
|
|
@@ -7915,6 +8034,10 @@ declare const ABI$1: readonly [{
|
|
|
7915
8034
|
readonly type: "error";
|
|
7916
8035
|
readonly name: "InsufficientNativeToken";
|
|
7917
8036
|
readonly inputs: readonly [];
|
|
8037
|
+
}, {
|
|
8038
|
+
readonly type: "error";
|
|
8039
|
+
readonly name: "InvalidInitialization";
|
|
8040
|
+
readonly inputs: readonly [];
|
|
7918
8041
|
}, {
|
|
7919
8042
|
readonly type: "error";
|
|
7920
8043
|
readonly name: "InvalidInput";
|
|
@@ -7927,6 +8050,18 @@ declare const ABI$1: readonly [{
|
|
|
7927
8050
|
readonly type: "error";
|
|
7928
8051
|
readonly name: "NotExpired";
|
|
7929
8052
|
readonly inputs: readonly [];
|
|
8053
|
+
}, {
|
|
8054
|
+
readonly type: "error";
|
|
8055
|
+
readonly name: "NotInitializing";
|
|
8056
|
+
readonly inputs: readonly [];
|
|
8057
|
+
}, {
|
|
8058
|
+
readonly type: "error";
|
|
8059
|
+
readonly name: "PartialFillNotAllowed";
|
|
8060
|
+
readonly inputs: readonly [];
|
|
8061
|
+
}, {
|
|
8062
|
+
readonly type: "error";
|
|
8063
|
+
readonly name: "ReentrancyGuardReentrantCall";
|
|
8064
|
+
readonly inputs: readonly [];
|
|
7930
8065
|
}, {
|
|
7931
8066
|
readonly type: "error";
|
|
7932
8067
|
readonly name: "SafeERC20FailedOperation";
|
|
@@ -7955,6 +8090,10 @@ declare const ABI$1: readonly [{
|
|
|
7955
8090
|
readonly type: "error";
|
|
7956
8091
|
readonly name: "UnexpectedCall";
|
|
7957
8092
|
readonly inputs: readonly [];
|
|
8093
|
+
}, {
|
|
8094
|
+
readonly type: "error";
|
|
8095
|
+
readonly name: "UnknownInstance";
|
|
8096
|
+
readonly inputs: readonly [];
|
|
7958
8097
|
}, {
|
|
7959
8098
|
readonly type: "error";
|
|
7960
8099
|
readonly name: "UnknownOrder";
|