@bronlabs/intents-sdk 1.0.140 → 1.0.142
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/abi/Metadata.json +0 -34
- package/abi/OrderEngine.json +0 -118
- package/dist/contracts.d.ts +0 -8
- package/dist/contracts.js.map +1 -1
- package/package.json +1 -1
package/abi/Metadata.json
CHANGED
|
@@ -358,40 +358,6 @@
|
|
|
358
358
|
"internalType": "uint128",
|
|
359
359
|
"name": "totalFeesPercent_e4",
|
|
360
360
|
"type": "uint128"
|
|
361
|
-
},
|
|
362
|
-
{
|
|
363
|
-
"components": [
|
|
364
|
-
{
|
|
365
|
-
"internalType": "bytes",
|
|
366
|
-
"name": "publicKey",
|
|
367
|
-
"type": "bytes"
|
|
368
|
-
},
|
|
369
|
-
{
|
|
370
|
-
"internalType": "bytes",
|
|
371
|
-
"name": "signature",
|
|
372
|
-
"type": "bytes"
|
|
373
|
-
}
|
|
374
|
-
],
|
|
375
|
-
"internalType": "struct IOrderEngine.Attestation",
|
|
376
|
-
"name": "userTxAttestation",
|
|
377
|
-
"type": "tuple"
|
|
378
|
-
},
|
|
379
|
-
{
|
|
380
|
-
"components": [
|
|
381
|
-
{
|
|
382
|
-
"internalType": "bytes",
|
|
383
|
-
"name": "publicKey",
|
|
384
|
-
"type": "bytes"
|
|
385
|
-
},
|
|
386
|
-
{
|
|
387
|
-
"internalType": "bytes",
|
|
388
|
-
"name": "signature",
|
|
389
|
-
"type": "bytes"
|
|
390
|
-
}
|
|
391
|
-
],
|
|
392
|
-
"internalType": "struct IOrderEngine.Attestation",
|
|
393
|
-
"name": "solverTxAttestation",
|
|
394
|
-
"type": "tuple"
|
|
395
361
|
}
|
|
396
362
|
],
|
|
397
363
|
"internalType": "struct IMetadata.OrderFullResponse",
|
package/abi/OrderEngine.json
CHANGED
|
@@ -913,123 +913,5 @@
|
|
|
913
913
|
"outputs": [],
|
|
914
914
|
"stateMutability": "nonpayable",
|
|
915
915
|
"type": "function"
|
|
916
|
-
},
|
|
917
|
-
{
|
|
918
|
-
"inputs": [
|
|
919
|
-
{
|
|
920
|
-
"internalType": "string",
|
|
921
|
-
"name": "_orderId",
|
|
922
|
-
"type": "string"
|
|
923
|
-
}
|
|
924
|
-
],
|
|
925
|
-
"name": "getSolverTxAttestation",
|
|
926
|
-
"outputs": [
|
|
927
|
-
{
|
|
928
|
-
"components": [
|
|
929
|
-
{
|
|
930
|
-
"internalType": "bytes",
|
|
931
|
-
"name": "publicKey",
|
|
932
|
-
"type": "bytes"
|
|
933
|
-
},
|
|
934
|
-
{
|
|
935
|
-
"internalType": "bytes",
|
|
936
|
-
"name": "signature",
|
|
937
|
-
"type": "bytes"
|
|
938
|
-
}
|
|
939
|
-
],
|
|
940
|
-
"internalType": "struct IOrderEngine.Attestation",
|
|
941
|
-
"name": "",
|
|
942
|
-
"type": "tuple"
|
|
943
|
-
}
|
|
944
|
-
],
|
|
945
|
-
"stateMutability": "view",
|
|
946
|
-
"type": "function"
|
|
947
|
-
},
|
|
948
|
-
{
|
|
949
|
-
"inputs": [
|
|
950
|
-
{
|
|
951
|
-
"internalType": "string",
|
|
952
|
-
"name": "_orderId",
|
|
953
|
-
"type": "string"
|
|
954
|
-
}
|
|
955
|
-
],
|
|
956
|
-
"name": "getUserTxAttestation",
|
|
957
|
-
"outputs": [
|
|
958
|
-
{
|
|
959
|
-
"components": [
|
|
960
|
-
{
|
|
961
|
-
"internalType": "bytes",
|
|
962
|
-
"name": "publicKey",
|
|
963
|
-
"type": "bytes"
|
|
964
|
-
},
|
|
965
|
-
{
|
|
966
|
-
"internalType": "bytes",
|
|
967
|
-
"name": "signature",
|
|
968
|
-
"type": "bytes"
|
|
969
|
-
}
|
|
970
|
-
],
|
|
971
|
-
"internalType": "struct IOrderEngine.Attestation",
|
|
972
|
-
"name": "",
|
|
973
|
-
"type": "tuple"
|
|
974
|
-
}
|
|
975
|
-
],
|
|
976
|
-
"stateMutability": "view",
|
|
977
|
-
"type": "function"
|
|
978
|
-
},
|
|
979
|
-
{
|
|
980
|
-
"inputs": [
|
|
981
|
-
{
|
|
982
|
-
"internalType": "string",
|
|
983
|
-
"name": "_orderId",
|
|
984
|
-
"type": "string"
|
|
985
|
-
},
|
|
986
|
-
{
|
|
987
|
-
"internalType": "string",
|
|
988
|
-
"name": "_solverTxHash",
|
|
989
|
-
"type": "string"
|
|
990
|
-
},
|
|
991
|
-
{
|
|
992
|
-
"internalType": "bytes",
|
|
993
|
-
"name": "_publicKey",
|
|
994
|
-
"type": "bytes"
|
|
995
|
-
},
|
|
996
|
-
{
|
|
997
|
-
"internalType": "bytes",
|
|
998
|
-
"name": "_signature",
|
|
999
|
-
"type": "bytes"
|
|
1000
|
-
}
|
|
1001
|
-
],
|
|
1002
|
-
"name": "setSolverTxOnQuoteNetworkWithAttestation",
|
|
1003
|
-
"outputs": [],
|
|
1004
|
-
"stateMutability": "nonpayable",
|
|
1005
|
-
"type": "function"
|
|
1006
|
-
},
|
|
1007
|
-
{
|
|
1008
|
-
"inputs": [
|
|
1009
|
-
{
|
|
1010
|
-
"internalType": "string",
|
|
1011
|
-
"name": "_orderId",
|
|
1012
|
-
"type": "string"
|
|
1013
|
-
},
|
|
1014
|
-
{
|
|
1015
|
-
"internalType": "string",
|
|
1016
|
-
"name": "_userTxHash",
|
|
1017
|
-
"type": "string"
|
|
1018
|
-
},
|
|
1019
|
-
{
|
|
1020
|
-
"internalType": "bytes",
|
|
1021
|
-
"name": "_publicKey",
|
|
1022
|
-
"type": "bytes"
|
|
1023
|
-
},
|
|
1024
|
-
{
|
|
1025
|
-
"internalType": "bytes",
|
|
1026
|
-
"name": "_signature",
|
|
1027
|
-
"type": "bytes"
|
|
1028
|
-
}
|
|
1029
|
-
],
|
|
1030
|
-
"name": "setUserTxOnBaseNetworkWithAttestation",
|
|
1031
|
-
"outputs": [],
|
|
1032
|
-
"stateMutability": "nonpayable",
|
|
1033
|
-
"type": "function"
|
|
1034
916
|
}
|
|
1035
917
|
]
|
package/dist/contracts.d.ts
CHANGED
|
@@ -46,10 +46,6 @@ export interface SettlementFromAddresses {
|
|
|
46
46
|
userSettlementFromAddress: string;
|
|
47
47
|
solverSettlementFromAddress: string;
|
|
48
48
|
}
|
|
49
|
-
export interface Attestation {
|
|
50
|
-
publicKey: string;
|
|
51
|
-
signature: string;
|
|
52
|
-
}
|
|
53
49
|
interface NetworkParams {
|
|
54
50
|
gasLimit: number;
|
|
55
51
|
}
|
|
@@ -70,13 +66,9 @@ export interface OrderEngineContract {
|
|
|
70
66
|
}, networkParams?: NetworkParams): Promise<ethers.ContractTransactionResponse>;
|
|
71
67
|
getOrder(orderId: string): Promise<Order>;
|
|
72
68
|
getSettlementFromAddresses(orderId: string): Promise<SettlementFromAddresses>;
|
|
73
|
-
getUserTxAttestation(orderId: string): Promise<Attestation>;
|
|
74
|
-
getSolverTxAttestation(orderId: string): Promise<Attestation>;
|
|
75
69
|
solverReact(orderId: string, solverAddressOnBaseChain: string, solverSettlementFromAddress: string, price: bigint, params?: NetworkParams): Promise<ethers.ContractTransactionResponse>;
|
|
76
70
|
setUserTxOnBaseNetwork(orderId: string, txHash: string, params?: NetworkParams): Promise<ethers.ContractTransactionResponse>;
|
|
77
|
-
setUserTxOnBaseNetworkWithAttestation(orderId: string, txHash: string, publicKey: ethers.BytesLike, signature: ethers.BytesLike, params?: NetworkParams): Promise<ethers.ContractTransactionResponse>;
|
|
78
71
|
setSolverTxOnQuoteNetwork(orderId: string, txHash: string, params?: NetworkParams): Promise<ethers.ContractTransactionResponse>;
|
|
79
|
-
setSolverTxOnQuoteNetworkWithAttestation(orderId: string, txHash: string, publicKey: ethers.BytesLike, signature: ethers.BytesLike, params?: NetworkParams): Promise<ethers.ContractTransactionResponse>;
|
|
80
72
|
setOracleConfirmUserTx(orderId: string, params?: NetworkParams): Promise<ethers.ContractTransactionResponse>;
|
|
81
73
|
setOracleConfirmSolverTx(orderId: string, params?: NetworkParams): Promise<ethers.ContractTransactionResponse>;
|
|
82
74
|
executeUserTimeout(orderId: string, params?: NetworkParams): Promise<ethers.ContractTransactionResponse>;
|
package/dist/contracts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../src/contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAE/D,MAAM,CAAN,IAAY,WAWX;AAXD,WAAY,WAAW;IACrB,uDAAS,CAAA;IACT,iEAAc,CAAA;IACd,2EAAmB,CAAA;IACnB,qEAAgB,CAAA;IAChB,mGAA+B,CAAA;IAC/B,yEAAkB,CAAA;IAClB,uGAAiC,CAAA;IACjC,uDAAS,CAAA;IACT,yDAAU,CAAA;IACV,uDAAS,CAAA;AACX,CAAC,EAXW,WAAW,KAAX,WAAW,QAWtB;
|
|
1
|
+
{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../src/contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAE/D,MAAM,CAAN,IAAY,WAWX;AAXD,WAAY,WAAW;IACrB,uDAAS,CAAA;IACT,iEAAc,CAAA;IACd,2EAAmB,CAAA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