tempo.ts 0.0.6 → 0.1.0
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/chains.d.ts +244 -541
- package/dist/chains.d.ts.map +1 -1
- package/dist/chains.js +10 -23
- package/dist/chains.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/ox/SignatureEnvelope.d.ts +245 -0
- package/dist/ox/SignatureEnvelope.d.ts.map +1 -0
- package/dist/ox/SignatureEnvelope.js +437 -0
- package/dist/ox/SignatureEnvelope.js.map +1 -0
- package/dist/ox/Transaction.d.ts +61 -24
- package/dist/ox/Transaction.d.ts.map +1 -1
- package/dist/ox/Transaction.js +63 -18
- package/dist/ox/Transaction.js.map +1 -1
- package/dist/ox/TransactionEnvelopeAA.d.ts +461 -0
- package/dist/ox/TransactionEnvelopeAA.d.ts.map +1 -0
- package/dist/ox/TransactionEnvelopeAA.js +528 -0
- package/dist/ox/TransactionEnvelopeAA.js.map +1 -0
- package/dist/ox/TransactionRequest.d.ts +7 -5
- package/dist/ox/TransactionRequest.d.ts.map +1 -1
- package/dist/ox/TransactionRequest.js +21 -12
- package/dist/ox/TransactionRequest.js.map +1 -1
- package/dist/ox/index.d.ts +5 -4
- package/dist/ox/index.d.ts.map +1 -1
- package/dist/ox/index.js +5 -4
- package/dist/ox/index.js.map +1 -1
- package/dist/prool/Instance.d.ts +0 -4
- package/dist/prool/Instance.d.ts.map +1 -1
- package/dist/prool/Instance.js +7 -7
- package/dist/prool/Instance.js.map +1 -1
- package/dist/prool/index.d.ts +1 -1
- package/dist/prool/index.d.ts.map +1 -1
- package/dist/prool/index.js +1 -1
- package/dist/prool/index.js.map +1 -1
- package/dist/viem/{abis.d.ts → Abis.d.ts} +523 -9
- package/dist/viem/Abis.d.ts.map +1 -0
- package/dist/viem/{abis.js → Abis.js} +321 -9
- package/dist/viem/Abis.js.map +1 -0
- package/dist/viem/{actions → Actions}/amm.d.ts +21 -21
- package/dist/viem/Actions/amm.d.ts.map +1 -0
- package/dist/viem/{actions → Actions}/amm.js +55 -43
- package/dist/viem/Actions/amm.js.map +1 -0
- package/dist/viem/Actions/dex.d.ts +3263 -0
- package/dist/viem/Actions/dex.d.ts.map +1 -0
- package/dist/viem/Actions/dex.js +1357 -0
- package/dist/viem/Actions/dex.js.map +1 -0
- package/dist/viem/{actions → Actions}/fee.d.ts +8 -8
- package/dist/viem/Actions/fee.d.ts.map +1 -0
- package/dist/viem/{actions → Actions}/fee.js +14 -13
- package/dist/viem/Actions/fee.js.map +1 -0
- package/dist/viem/Actions/index.d.ts +6 -0
- package/dist/viem/Actions/index.d.ts.map +1 -0
- package/dist/viem/Actions/index.js +6 -0
- package/dist/viem/Actions/index.js.map +1 -0
- package/dist/viem/{actions → Actions}/policy.d.ts +19 -19
- package/dist/viem/Actions/policy.d.ts.map +1 -0
- package/dist/viem/{actions → Actions}/policy.js +59 -46
- package/dist/viem/Actions/policy.js.map +1 -0
- package/dist/viem/{actions → Actions}/token.d.ts +3250 -700
- package/dist/viem/Actions/token.d.ts.map +1 -0
- package/dist/viem/{actions → Actions}/token.js +419 -83
- package/dist/viem/Actions/token.js.map +1 -0
- package/dist/viem/Addresses.d.ts +9 -0
- package/dist/viem/Addresses.d.ts.map +1 -0
- package/dist/viem/Addresses.js +9 -0
- package/dist/viem/Addresses.js.map +1 -0
- package/dist/viem/{chain.d.ts → Chain.d.ts} +81 -57
- package/dist/viem/Chain.d.ts.map +1 -0
- package/dist/viem/{chain.js → Chain.js} +7 -7
- package/dist/viem/Chain.js.map +1 -0
- package/dist/viem/{client.d.ts → Client.d.ts} +4 -4
- package/dist/viem/Client.d.ts.map +1 -0
- package/dist/viem/{client.js → Client.js} +3 -3
- package/dist/viem/Client.js.map +1 -0
- package/dist/viem/{decorator.d.ts → Decorator.d.ts} +507 -5
- package/dist/viem/Decorator.d.ts.map +1 -0
- package/dist/viem/{decorator.js → Decorator.js} +31 -5
- package/dist/viem/Decorator.js.map +1 -0
- package/dist/viem/{formatters.d.ts → Formatters.d.ts} +2 -2
- package/dist/viem/Formatters.d.ts.map +1 -0
- package/dist/viem/{formatters.js → Formatters.js} +24 -17
- package/dist/viem/Formatters.js.map +1 -0
- package/dist/viem/Tick.d.ts +111 -0
- package/dist/viem/Tick.d.ts.map +1 -0
- package/dist/viem/Tick.js +127 -0
- package/dist/viem/Tick.js.map +1 -0
- package/dist/viem/TokenIds.d.ts +3 -0
- package/dist/viem/TokenIds.d.ts.map +1 -0
- package/dist/viem/TokenIds.js +3 -0
- package/dist/viem/TokenIds.js.map +1 -0
- package/dist/viem/Transaction.d.ts +57 -0
- package/dist/viem/Transaction.d.ts.map +1 -0
- package/dist/viem/Transaction.js +137 -0
- package/dist/viem/Transaction.js.map +1 -0
- package/dist/viem/{transport.d.ts → Transport.d.ts} +3 -3
- package/dist/viem/Transport.d.ts.map +1 -0
- package/dist/viem/{transport.js → Transport.js} +3 -3
- package/dist/viem/Transport.js.map +1 -0
- package/dist/viem/index.d.ts +13 -9
- package/dist/viem/index.d.ts.map +1 -1
- package/dist/viem/index.js +13 -9
- package/dist/viem/index.js.map +1 -1
- package/dist/viem/{types.d.ts → internal/types.d.ts} +3 -3
- package/dist/viem/internal/types.d.ts.map +1 -0
- package/dist/viem/{types.js.map → internal/types.js.map} +1 -1
- package/dist/viem/internal/utils.d.ts.map +1 -0
- package/dist/viem/internal/utils.js.map +1 -0
- package/package.json +87 -101
- package/src/chains.ts +10 -24
- package/src/ox/SignatureEnvelope.test.ts +1252 -0
- package/src/ox/SignatureEnvelope.ts +709 -0
- package/src/ox/Transaction.test.ts +144 -89
- package/src/ox/Transaction.ts +104 -29
- package/src/ox/TransactionEnvelopeAA.test.ts +1533 -0
- package/src/ox/TransactionEnvelopeAA.ts +858 -0
- package/src/ox/TransactionRequest.ts +25 -17
- package/src/ox/index.ts +2 -1
- package/src/prool/Instance.ts +6 -14
- package/src/prool/internal/chain.json +101 -27
- package/src/viem/{abis.ts → Abis.ts} +322 -8
- package/src/viem/{actions → Actions}/amm.test.ts +65 -68
- package/src/viem/{actions → Actions}/amm.ts +72 -60
- package/src/viem/Actions/dex.test.ts +1608 -0
- package/src/viem/Actions/dex.ts +2026 -0
- package/src/viem/{actions → Actions}/fee.test.ts +34 -36
- package/src/viem/{actions → Actions}/fee.ts +18 -17
- package/src/viem/{actions → Actions}/index.ts +1 -0
- package/src/viem/{actions → Actions}/policy.test.ts +2 -2
- package/src/viem/{actions → Actions}/policy.ts +77 -64
- package/src/viem/{actions → Actions}/token.test.ts +403 -64
- package/src/viem/{actions → Actions}/token.ts +672 -133
- package/src/viem/Addresses.ts +9 -0
- package/src/viem/{chain.ts → Chain.ts} +6 -6
- package/src/viem/{client.bench-d.ts → Client.bench-d.ts} +2 -2
- package/src/viem/{client.test.ts → Client.test.ts} +31 -6
- package/src/viem/{client.ts → Client.ts} +1 -1
- package/src/viem/{decorator.bench-d.ts → Decorator.bench-d.ts} +2 -2
- package/src/viem/{decorator.test.ts → Decorator.test.ts} +1 -0
- package/src/viem/{decorator.ts → Decorator.ts} +586 -4
- package/src/viem/{formatters.ts → Formatters.ts} +31 -20
- package/src/viem/Tick.test.ts +281 -0
- package/src/viem/Tick.ts +176 -0
- package/src/viem/TokenIds.ts +2 -0
- package/src/viem/Transaction.ts +303 -0
- package/src/viem/{transport.ts → Transport.ts} +5 -5
- package/src/viem/e2e.test.ts +153 -78
- package/src/viem/index.ts +13 -9
- package/src/viem/{types.ts → internal/types.ts} +3 -3
- package/dist/ox/TransactionEnvelopeFeeToken.d.ts +0 -393
- package/dist/ox/TransactionEnvelopeFeeToken.d.ts.map +0 -1
- package/dist/ox/TransactionEnvelopeFeeToken.js +0 -452
- package/dist/ox/TransactionEnvelopeFeeToken.js.map +0 -1
- package/dist/viem/abis.d.ts.map +0 -1
- package/dist/viem/abis.js.map +0 -1
- package/dist/viem/actions/amm.d.ts.map +0 -1
- package/dist/viem/actions/amm.js.map +0 -1
- package/dist/viem/actions/fee.d.ts.map +0 -1
- package/dist/viem/actions/fee.js.map +0 -1
- package/dist/viem/actions/index.d.ts +0 -5
- package/dist/viem/actions/index.d.ts.map +0 -1
- package/dist/viem/actions/index.js +0 -5
- package/dist/viem/actions/index.js.map +0 -1
- package/dist/viem/actions/policy.d.ts.map +0 -1
- package/dist/viem/actions/policy.js.map +0 -1
- package/dist/viem/actions/token.d.ts.map +0 -1
- package/dist/viem/actions/token.js.map +0 -1
- package/dist/viem/addresses.d.ts +0 -8
- package/dist/viem/addresses.d.ts.map +0 -1
- package/dist/viem/addresses.js +0 -8
- package/dist/viem/addresses.js.map +0 -1
- package/dist/viem/chain.d.ts.map +0 -1
- package/dist/viem/chain.js.map +0 -1
- package/dist/viem/client.d.ts.map +0 -1
- package/dist/viem/client.js.map +0 -1
- package/dist/viem/decorator.d.ts.map +0 -1
- package/dist/viem/decorator.js.map +0 -1
- package/dist/viem/formatters.d.ts.map +0 -1
- package/dist/viem/formatters.js.map +0 -1
- package/dist/viem/transaction.d.ts +0 -54
- package/dist/viem/transaction.d.ts.map +0 -1
- package/dist/viem/transaction.js +0 -108
- package/dist/viem/transaction.js.map +0 -1
- package/dist/viem/transport.d.ts.map +0 -1
- package/dist/viem/transport.js.map +0 -1
- package/dist/viem/types.d.ts.map +0 -1
- package/dist/viem/utils.d.ts.map +0 -1
- package/dist/viem/utils.js.map +0 -1
- package/src/ox/TransactionEnvelopeFeeToken.test.ts +0 -1119
- package/src/ox/TransactionEnvelopeFeeToken.ts +0 -717
- package/src/prool/internal/consensus.toml +0 -32
- package/src/viem/addresses.ts +0 -10
- package/src/viem/transaction.ts +0 -253
- /package/dist/viem/{types.js → internal/types.js} +0 -0
- /package/dist/viem/{utils.d.ts → internal/utils.d.ts} +0 -0
- /package/dist/viem/{utils.js → internal/utils.js} +0 -0
- /package/src/viem/{utils.ts → internal/utils.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const tip20: readonly [{
|
|
2
2
|
readonly name: "name";
|
|
3
3
|
readonly type: "function";
|
|
4
4
|
readonly stateMutability: "view";
|
|
@@ -30,6 +30,22 @@ export declare const tip20Abi: readonly [{
|
|
|
30
30
|
readonly outputs: readonly [{
|
|
31
31
|
readonly type: "uint256";
|
|
32
32
|
}];
|
|
33
|
+
}, {
|
|
34
|
+
readonly name: "quoteToken";
|
|
35
|
+
readonly type: "function";
|
|
36
|
+
readonly stateMutability: "view";
|
|
37
|
+
readonly inputs: readonly [];
|
|
38
|
+
readonly outputs: readonly [{
|
|
39
|
+
readonly type: "address";
|
|
40
|
+
}];
|
|
41
|
+
}, {
|
|
42
|
+
readonly name: "nextQuoteToken";
|
|
43
|
+
readonly type: "function";
|
|
44
|
+
readonly stateMutability: "view";
|
|
45
|
+
readonly inputs: readonly [];
|
|
46
|
+
readonly outputs: readonly [{
|
|
47
|
+
readonly type: "address";
|
|
48
|
+
}];
|
|
33
49
|
}, {
|
|
34
50
|
readonly name: "balanceOf";
|
|
35
51
|
readonly type: "function";
|
|
@@ -249,7 +265,9 @@ export declare const tip20Abi: readonly [{
|
|
|
249
265
|
readonly type: "bytes32";
|
|
250
266
|
readonly name: "memo";
|
|
251
267
|
}];
|
|
252
|
-
readonly outputs: readonly [
|
|
268
|
+
readonly outputs: readonly [{
|
|
269
|
+
readonly type: "bool";
|
|
270
|
+
}];
|
|
253
271
|
}, {
|
|
254
272
|
readonly name: "changeTransferPolicyId";
|
|
255
273
|
readonly type: "function";
|
|
@@ -280,6 +298,21 @@ export declare const tip20Abi: readonly [{
|
|
|
280
298
|
readonly stateMutability: "nonpayable";
|
|
281
299
|
readonly inputs: readonly [];
|
|
282
300
|
readonly outputs: readonly [];
|
|
301
|
+
}, {
|
|
302
|
+
readonly name: "updateQuoteToken";
|
|
303
|
+
readonly type: "function";
|
|
304
|
+
readonly stateMutability: "nonpayable";
|
|
305
|
+
readonly inputs: readonly [{
|
|
306
|
+
readonly type: "address";
|
|
307
|
+
readonly name: "newQuoteToken";
|
|
308
|
+
}];
|
|
309
|
+
readonly outputs: readonly [];
|
|
310
|
+
}, {
|
|
311
|
+
readonly name: "finalizeQuoteTokenUpdate";
|
|
312
|
+
readonly type: "function";
|
|
313
|
+
readonly stateMutability: "nonpayable";
|
|
314
|
+
readonly inputs: readonly [];
|
|
315
|
+
readonly outputs: readonly [];
|
|
283
316
|
}, {
|
|
284
317
|
readonly name: "permit";
|
|
285
318
|
readonly type: "function";
|
|
@@ -431,6 +464,30 @@ export declare const tip20Abi: readonly [{
|
|
|
431
464
|
readonly type: "bool";
|
|
432
465
|
readonly name: "isPaused";
|
|
433
466
|
}];
|
|
467
|
+
}, {
|
|
468
|
+
readonly name: "UpdateQuoteToken";
|
|
469
|
+
readonly type: "event";
|
|
470
|
+
readonly inputs: readonly [{
|
|
471
|
+
readonly type: "address";
|
|
472
|
+
readonly name: "updater";
|
|
473
|
+
readonly indexed: true;
|
|
474
|
+
}, {
|
|
475
|
+
readonly type: "address";
|
|
476
|
+
readonly name: "newQuoteToken";
|
|
477
|
+
readonly indexed: true;
|
|
478
|
+
}];
|
|
479
|
+
}, {
|
|
480
|
+
readonly name: "QuoteTokenUpdateFinalized";
|
|
481
|
+
readonly type: "event";
|
|
482
|
+
readonly inputs: readonly [{
|
|
483
|
+
readonly type: "address";
|
|
484
|
+
readonly name: "updater";
|
|
485
|
+
readonly indexed: true;
|
|
486
|
+
}, {
|
|
487
|
+
readonly type: "address";
|
|
488
|
+
readonly name: "newQuoteToken";
|
|
489
|
+
readonly indexed: true;
|
|
490
|
+
}];
|
|
434
491
|
}, {
|
|
435
492
|
readonly name: "InsufficientBalance";
|
|
436
493
|
readonly type: "error";
|
|
@@ -483,6 +540,14 @@ export declare const tip20Abi: readonly [{
|
|
|
483
540
|
readonly name: "InvalidCurrency";
|
|
484
541
|
readonly type: "error";
|
|
485
542
|
readonly inputs: readonly [];
|
|
543
|
+
}, {
|
|
544
|
+
readonly name: "InvalidQuoteToken";
|
|
545
|
+
readonly type: "error";
|
|
546
|
+
readonly inputs: readonly [];
|
|
547
|
+
}, {
|
|
548
|
+
readonly name: "TransfersDisabled";
|
|
549
|
+
readonly type: "error";
|
|
550
|
+
readonly inputs: readonly [];
|
|
486
551
|
}, {
|
|
487
552
|
readonly name: "grantRole";
|
|
488
553
|
readonly type: "function";
|
|
@@ -593,7 +658,7 @@ export declare const tip20Abi: readonly [{
|
|
|
593
658
|
readonly type: "error";
|
|
594
659
|
readonly inputs: readonly [];
|
|
595
660
|
}];
|
|
596
|
-
export declare const
|
|
661
|
+
export declare const tip20Factory: readonly [{
|
|
597
662
|
readonly name: "createToken";
|
|
598
663
|
readonly type: "function";
|
|
599
664
|
readonly stateMutability: "nonpayable";
|
|
@@ -606,6 +671,9 @@ export declare const tip20FactoryAbi: readonly [{
|
|
|
606
671
|
}, {
|
|
607
672
|
readonly type: "string";
|
|
608
673
|
readonly name: "currency";
|
|
674
|
+
}, {
|
|
675
|
+
readonly type: "address";
|
|
676
|
+
readonly name: "quoteToken";
|
|
609
677
|
}, {
|
|
610
678
|
readonly type: "address";
|
|
611
679
|
readonly name: "admin";
|
|
@@ -646,7 +714,7 @@ export declare const tip20FactoryAbi: readonly [{
|
|
|
646
714
|
readonly name: "admin";
|
|
647
715
|
}];
|
|
648
716
|
}];
|
|
649
|
-
export declare const
|
|
717
|
+
export declare const tip403Registry: readonly [{
|
|
650
718
|
readonly name: "policyIdCounter";
|
|
651
719
|
readonly type: "function";
|
|
652
720
|
readonly stateMutability: "view";
|
|
@@ -838,7 +906,7 @@ export declare const tip403RegistryAbi: readonly [{
|
|
|
838
906
|
readonly type: "error";
|
|
839
907
|
readonly inputs: readonly [];
|
|
840
908
|
}];
|
|
841
|
-
export declare const
|
|
909
|
+
export declare const tip4217Registry: readonly [{
|
|
842
910
|
readonly name: "getCurrencyDecimals";
|
|
843
911
|
readonly type: "function";
|
|
844
912
|
readonly stateMutability: "view";
|
|
@@ -850,7 +918,33 @@ export declare const tip4217RegistryAbi: readonly [{
|
|
|
850
918
|
readonly type: "uint8";
|
|
851
919
|
}];
|
|
852
920
|
}];
|
|
853
|
-
export declare const
|
|
921
|
+
export declare const nonce: readonly [{
|
|
922
|
+
readonly name: "getNonce";
|
|
923
|
+
readonly type: "function";
|
|
924
|
+
readonly stateMutability: "view";
|
|
925
|
+
readonly inputs: readonly [{
|
|
926
|
+
readonly type: "address";
|
|
927
|
+
readonly name: "account";
|
|
928
|
+
}, {
|
|
929
|
+
readonly type: "uint64";
|
|
930
|
+
readonly name: "nonceKey";
|
|
931
|
+
}];
|
|
932
|
+
readonly outputs: readonly [{
|
|
933
|
+
readonly type: "uint64";
|
|
934
|
+
}];
|
|
935
|
+
}, {
|
|
936
|
+
readonly name: "getActiveNonceKeyCount";
|
|
937
|
+
readonly type: "function";
|
|
938
|
+
readonly stateMutability: "view";
|
|
939
|
+
readonly inputs: readonly [{
|
|
940
|
+
readonly type: "address";
|
|
941
|
+
readonly name: "account";
|
|
942
|
+
}];
|
|
943
|
+
readonly outputs: readonly [{
|
|
944
|
+
readonly type: "uint256";
|
|
945
|
+
}];
|
|
946
|
+
}];
|
|
947
|
+
export declare const tipAccountRegistrar: readonly [{
|
|
854
948
|
readonly name: "delegateToDefault";
|
|
855
949
|
readonly type: "function";
|
|
856
950
|
readonly stateMutability: "nonpayable";
|
|
@@ -886,7 +980,7 @@ export declare const tipAccountRegistrarAbi: readonly [{
|
|
|
886
980
|
readonly type: "error";
|
|
887
981
|
readonly inputs: readonly [];
|
|
888
982
|
}];
|
|
889
|
-
export declare const
|
|
983
|
+
export declare const feeAmm: readonly [{
|
|
890
984
|
readonly name: "getPoolId";
|
|
891
985
|
readonly type: "function";
|
|
892
986
|
readonly stateMutability: "pure";
|
|
@@ -1225,7 +1319,7 @@ export declare const feeAmmAbi: readonly [{
|
|
|
1225
1319
|
readonly type: "error";
|
|
1226
1320
|
readonly inputs: readonly [];
|
|
1227
1321
|
}];
|
|
1228
|
-
export declare const
|
|
1322
|
+
export declare const feeManager: readonly [{
|
|
1229
1323
|
readonly name: "BASIS_POINTS";
|
|
1230
1324
|
readonly type: "function";
|
|
1231
1325
|
readonly stateMutability: "pure";
|
|
@@ -1364,4 +1458,424 @@ export declare const feeManagerAbi: readonly [{
|
|
|
1364
1458
|
readonly type: "error";
|
|
1365
1459
|
readonly inputs: readonly [];
|
|
1366
1460
|
}];
|
|
1367
|
-
|
|
1461
|
+
export declare const stablecoinExchange: readonly [{
|
|
1462
|
+
readonly name: "balanceOf";
|
|
1463
|
+
readonly type: "function";
|
|
1464
|
+
readonly stateMutability: "view";
|
|
1465
|
+
readonly inputs: readonly [{
|
|
1466
|
+
readonly type: "address";
|
|
1467
|
+
readonly name: "user";
|
|
1468
|
+
}, {
|
|
1469
|
+
readonly type: "address";
|
|
1470
|
+
readonly name: "token";
|
|
1471
|
+
}];
|
|
1472
|
+
readonly outputs: readonly [{
|
|
1473
|
+
readonly type: "uint128";
|
|
1474
|
+
}];
|
|
1475
|
+
}, {
|
|
1476
|
+
readonly name: "quoteSwapExactAmountOut";
|
|
1477
|
+
readonly type: "function";
|
|
1478
|
+
readonly stateMutability: "view";
|
|
1479
|
+
readonly inputs: readonly [{
|
|
1480
|
+
readonly type: "address";
|
|
1481
|
+
readonly name: "tokenIn";
|
|
1482
|
+
}, {
|
|
1483
|
+
readonly type: "address";
|
|
1484
|
+
readonly name: "tokenOut";
|
|
1485
|
+
}, {
|
|
1486
|
+
readonly type: "uint128";
|
|
1487
|
+
readonly name: "amountOut";
|
|
1488
|
+
}];
|
|
1489
|
+
readonly outputs: readonly [{
|
|
1490
|
+
readonly type: "uint128";
|
|
1491
|
+
readonly name: "amountIn";
|
|
1492
|
+
}];
|
|
1493
|
+
}, {
|
|
1494
|
+
readonly name: "quoteSwapExactAmountIn";
|
|
1495
|
+
readonly type: "function";
|
|
1496
|
+
readonly stateMutability: "view";
|
|
1497
|
+
readonly inputs: readonly [{
|
|
1498
|
+
readonly type: "address";
|
|
1499
|
+
readonly name: "tokenIn";
|
|
1500
|
+
}, {
|
|
1501
|
+
readonly type: "address";
|
|
1502
|
+
readonly name: "tokenOut";
|
|
1503
|
+
}, {
|
|
1504
|
+
readonly type: "uint128";
|
|
1505
|
+
readonly name: "amountIn";
|
|
1506
|
+
}];
|
|
1507
|
+
readonly outputs: readonly [{
|
|
1508
|
+
readonly type: "uint128";
|
|
1509
|
+
readonly name: "amountOut";
|
|
1510
|
+
}];
|
|
1511
|
+
}, {
|
|
1512
|
+
readonly name: "pairKey";
|
|
1513
|
+
readonly type: "function";
|
|
1514
|
+
readonly stateMutability: "pure";
|
|
1515
|
+
readonly inputs: readonly [{
|
|
1516
|
+
readonly type: "address";
|
|
1517
|
+
readonly name: "tokenA";
|
|
1518
|
+
}, {
|
|
1519
|
+
readonly type: "address";
|
|
1520
|
+
readonly name: "tokenB";
|
|
1521
|
+
}];
|
|
1522
|
+
readonly outputs: readonly [{
|
|
1523
|
+
readonly type: "bytes32";
|
|
1524
|
+
readonly name: "key";
|
|
1525
|
+
}];
|
|
1526
|
+
}, {
|
|
1527
|
+
readonly name: "getPriceLevel";
|
|
1528
|
+
readonly type: "function";
|
|
1529
|
+
readonly stateMutability: "view";
|
|
1530
|
+
readonly inputs: readonly [{
|
|
1531
|
+
readonly type: "address";
|
|
1532
|
+
readonly name: "base";
|
|
1533
|
+
}, {
|
|
1534
|
+
readonly type: "int16";
|
|
1535
|
+
readonly name: "tick";
|
|
1536
|
+
}, {
|
|
1537
|
+
readonly type: "bool";
|
|
1538
|
+
readonly name: "isBid";
|
|
1539
|
+
}];
|
|
1540
|
+
readonly outputs: readonly [{
|
|
1541
|
+
readonly type: "tuple";
|
|
1542
|
+
readonly name: "level";
|
|
1543
|
+
readonly components: readonly [{
|
|
1544
|
+
readonly type: "uint128";
|
|
1545
|
+
readonly name: "head";
|
|
1546
|
+
}, {
|
|
1547
|
+
readonly type: "uint128";
|
|
1548
|
+
readonly name: "tail";
|
|
1549
|
+
}, {
|
|
1550
|
+
readonly type: "uint128";
|
|
1551
|
+
readonly name: "totalLiquidity";
|
|
1552
|
+
}];
|
|
1553
|
+
}];
|
|
1554
|
+
}, {
|
|
1555
|
+
readonly name: "activeOrderId";
|
|
1556
|
+
readonly type: "function";
|
|
1557
|
+
readonly stateMutability: "view";
|
|
1558
|
+
readonly inputs: readonly [];
|
|
1559
|
+
readonly outputs: readonly [{
|
|
1560
|
+
readonly type: "uint128";
|
|
1561
|
+
}];
|
|
1562
|
+
}, {
|
|
1563
|
+
readonly name: "pendingOrderId";
|
|
1564
|
+
readonly type: "function";
|
|
1565
|
+
readonly stateMutability: "view";
|
|
1566
|
+
readonly inputs: readonly [];
|
|
1567
|
+
readonly outputs: readonly [{
|
|
1568
|
+
readonly type: "uint128";
|
|
1569
|
+
}];
|
|
1570
|
+
}, {
|
|
1571
|
+
readonly name: "getOrder";
|
|
1572
|
+
readonly type: "function";
|
|
1573
|
+
readonly stateMutability: "view";
|
|
1574
|
+
readonly inputs: readonly [{
|
|
1575
|
+
readonly type: "uint128";
|
|
1576
|
+
readonly name: "orderId";
|
|
1577
|
+
}];
|
|
1578
|
+
readonly outputs: readonly [{
|
|
1579
|
+
readonly type: "tuple";
|
|
1580
|
+
readonly components: readonly [{
|
|
1581
|
+
readonly type: "address";
|
|
1582
|
+
readonly name: "maker";
|
|
1583
|
+
}, {
|
|
1584
|
+
readonly type: "bytes32";
|
|
1585
|
+
readonly name: "bookKey";
|
|
1586
|
+
}, {
|
|
1587
|
+
readonly type: "bool";
|
|
1588
|
+
readonly name: "isBid";
|
|
1589
|
+
}, {
|
|
1590
|
+
readonly type: "int16";
|
|
1591
|
+
readonly name: "tick";
|
|
1592
|
+
}, {
|
|
1593
|
+
readonly type: "uint128";
|
|
1594
|
+
readonly name: "amount";
|
|
1595
|
+
}, {
|
|
1596
|
+
readonly type: "uint128";
|
|
1597
|
+
readonly name: "remaining";
|
|
1598
|
+
}, {
|
|
1599
|
+
readonly type: "uint128";
|
|
1600
|
+
readonly name: "prev";
|
|
1601
|
+
}, {
|
|
1602
|
+
readonly type: "uint128";
|
|
1603
|
+
readonly name: "next";
|
|
1604
|
+
}, {
|
|
1605
|
+
readonly type: "bool";
|
|
1606
|
+
readonly name: "isFlip";
|
|
1607
|
+
}, {
|
|
1608
|
+
readonly type: "int16";
|
|
1609
|
+
readonly name: "flipTick";
|
|
1610
|
+
}];
|
|
1611
|
+
}];
|
|
1612
|
+
}, {
|
|
1613
|
+
readonly name: "createPair";
|
|
1614
|
+
readonly type: "function";
|
|
1615
|
+
readonly stateMutability: "nonpayable";
|
|
1616
|
+
readonly inputs: readonly [{
|
|
1617
|
+
readonly type: "address";
|
|
1618
|
+
readonly name: "base";
|
|
1619
|
+
}];
|
|
1620
|
+
readonly outputs: readonly [{
|
|
1621
|
+
readonly type: "bytes32";
|
|
1622
|
+
readonly name: "key";
|
|
1623
|
+
}];
|
|
1624
|
+
}, {
|
|
1625
|
+
readonly name: "swapExactAmountIn";
|
|
1626
|
+
readonly type: "function";
|
|
1627
|
+
readonly stateMutability: "nonpayable";
|
|
1628
|
+
readonly inputs: readonly [{
|
|
1629
|
+
readonly type: "address";
|
|
1630
|
+
readonly name: "tokenIn";
|
|
1631
|
+
}, {
|
|
1632
|
+
readonly type: "address";
|
|
1633
|
+
readonly name: "tokenOut";
|
|
1634
|
+
}, {
|
|
1635
|
+
readonly type: "uint128";
|
|
1636
|
+
readonly name: "amountIn";
|
|
1637
|
+
}, {
|
|
1638
|
+
readonly type: "uint128";
|
|
1639
|
+
readonly name: "minAmountOut";
|
|
1640
|
+
}];
|
|
1641
|
+
readonly outputs: readonly [{
|
|
1642
|
+
readonly type: "uint128";
|
|
1643
|
+
readonly name: "amountOut";
|
|
1644
|
+
}];
|
|
1645
|
+
}, {
|
|
1646
|
+
readonly name: "swapExactAmountOut";
|
|
1647
|
+
readonly type: "function";
|
|
1648
|
+
readonly stateMutability: "nonpayable";
|
|
1649
|
+
readonly inputs: readonly [{
|
|
1650
|
+
readonly type: "address";
|
|
1651
|
+
readonly name: "tokenIn";
|
|
1652
|
+
}, {
|
|
1653
|
+
readonly type: "address";
|
|
1654
|
+
readonly name: "tokenOut";
|
|
1655
|
+
}, {
|
|
1656
|
+
readonly type: "uint128";
|
|
1657
|
+
readonly name: "amountOut";
|
|
1658
|
+
}, {
|
|
1659
|
+
readonly type: "uint128";
|
|
1660
|
+
readonly name: "maxAmountIn";
|
|
1661
|
+
}];
|
|
1662
|
+
readonly outputs: readonly [{
|
|
1663
|
+
readonly type: "uint128";
|
|
1664
|
+
readonly name: "amountIn";
|
|
1665
|
+
}];
|
|
1666
|
+
}, {
|
|
1667
|
+
readonly name: "place";
|
|
1668
|
+
readonly type: "function";
|
|
1669
|
+
readonly stateMutability: "nonpayable";
|
|
1670
|
+
readonly inputs: readonly [{
|
|
1671
|
+
readonly type: "address";
|
|
1672
|
+
readonly name: "token";
|
|
1673
|
+
}, {
|
|
1674
|
+
readonly type: "uint128";
|
|
1675
|
+
readonly name: "amount";
|
|
1676
|
+
}, {
|
|
1677
|
+
readonly type: "bool";
|
|
1678
|
+
readonly name: "isBid";
|
|
1679
|
+
}, {
|
|
1680
|
+
readonly type: "int16";
|
|
1681
|
+
readonly name: "tick";
|
|
1682
|
+
}];
|
|
1683
|
+
readonly outputs: readonly [{
|
|
1684
|
+
readonly type: "uint128";
|
|
1685
|
+
readonly name: "orderId";
|
|
1686
|
+
}];
|
|
1687
|
+
}, {
|
|
1688
|
+
readonly name: "placeFlip";
|
|
1689
|
+
readonly type: "function";
|
|
1690
|
+
readonly stateMutability: "nonpayable";
|
|
1691
|
+
readonly inputs: readonly [{
|
|
1692
|
+
readonly type: "address";
|
|
1693
|
+
readonly name: "token";
|
|
1694
|
+
}, {
|
|
1695
|
+
readonly type: "uint128";
|
|
1696
|
+
readonly name: "amount";
|
|
1697
|
+
}, {
|
|
1698
|
+
readonly type: "bool";
|
|
1699
|
+
readonly name: "isBid";
|
|
1700
|
+
}, {
|
|
1701
|
+
readonly type: "int16";
|
|
1702
|
+
readonly name: "tick";
|
|
1703
|
+
}, {
|
|
1704
|
+
readonly type: "int16";
|
|
1705
|
+
readonly name: "flipTick";
|
|
1706
|
+
}];
|
|
1707
|
+
readonly outputs: readonly [{
|
|
1708
|
+
readonly type: "uint128";
|
|
1709
|
+
readonly name: "orderId";
|
|
1710
|
+
}];
|
|
1711
|
+
}, {
|
|
1712
|
+
readonly name: "cancel";
|
|
1713
|
+
readonly type: "function";
|
|
1714
|
+
readonly stateMutability: "nonpayable";
|
|
1715
|
+
readonly inputs: readonly [{
|
|
1716
|
+
readonly type: "uint128";
|
|
1717
|
+
readonly name: "orderId";
|
|
1718
|
+
}];
|
|
1719
|
+
readonly outputs: readonly [];
|
|
1720
|
+
}, {
|
|
1721
|
+
readonly name: "withdraw";
|
|
1722
|
+
readonly type: "function";
|
|
1723
|
+
readonly stateMutability: "nonpayable";
|
|
1724
|
+
readonly inputs: readonly [{
|
|
1725
|
+
readonly type: "address";
|
|
1726
|
+
readonly name: "token";
|
|
1727
|
+
}, {
|
|
1728
|
+
readonly type: "uint128";
|
|
1729
|
+
readonly name: "amount";
|
|
1730
|
+
}];
|
|
1731
|
+
readonly outputs: readonly [];
|
|
1732
|
+
}, {
|
|
1733
|
+
readonly name: "executeBlock";
|
|
1734
|
+
readonly type: "function";
|
|
1735
|
+
readonly stateMutability: "nonpayable";
|
|
1736
|
+
readonly inputs: readonly [];
|
|
1737
|
+
readonly outputs: readonly [];
|
|
1738
|
+
}, {
|
|
1739
|
+
readonly name: "PairCreated";
|
|
1740
|
+
readonly type: "event";
|
|
1741
|
+
readonly inputs: readonly [{
|
|
1742
|
+
readonly type: "bytes32";
|
|
1743
|
+
readonly name: "key";
|
|
1744
|
+
readonly indexed: true;
|
|
1745
|
+
}, {
|
|
1746
|
+
readonly type: "address";
|
|
1747
|
+
readonly name: "base";
|
|
1748
|
+
readonly indexed: true;
|
|
1749
|
+
}, {
|
|
1750
|
+
readonly type: "address";
|
|
1751
|
+
readonly name: "quote";
|
|
1752
|
+
readonly indexed: true;
|
|
1753
|
+
}];
|
|
1754
|
+
}, {
|
|
1755
|
+
readonly name: "OrderPlaced";
|
|
1756
|
+
readonly type: "event";
|
|
1757
|
+
readonly inputs: readonly [{
|
|
1758
|
+
readonly type: "uint128";
|
|
1759
|
+
readonly name: "orderId";
|
|
1760
|
+
readonly indexed: true;
|
|
1761
|
+
}, {
|
|
1762
|
+
readonly type: "address";
|
|
1763
|
+
readonly name: "maker";
|
|
1764
|
+
readonly indexed: true;
|
|
1765
|
+
}, {
|
|
1766
|
+
readonly type: "address";
|
|
1767
|
+
readonly name: "token";
|
|
1768
|
+
readonly indexed: true;
|
|
1769
|
+
}, {
|
|
1770
|
+
readonly type: "uint128";
|
|
1771
|
+
readonly name: "amount";
|
|
1772
|
+
}, {
|
|
1773
|
+
readonly type: "bool";
|
|
1774
|
+
readonly name: "isBid";
|
|
1775
|
+
}, {
|
|
1776
|
+
readonly type: "int16";
|
|
1777
|
+
readonly name: "tick";
|
|
1778
|
+
}];
|
|
1779
|
+
}, {
|
|
1780
|
+
readonly name: "FlipOrderPlaced";
|
|
1781
|
+
readonly type: "event";
|
|
1782
|
+
readonly inputs: readonly [{
|
|
1783
|
+
readonly type: "uint128";
|
|
1784
|
+
readonly name: "orderId";
|
|
1785
|
+
readonly indexed: true;
|
|
1786
|
+
}, {
|
|
1787
|
+
readonly type: "address";
|
|
1788
|
+
readonly name: "maker";
|
|
1789
|
+
readonly indexed: true;
|
|
1790
|
+
}, {
|
|
1791
|
+
readonly type: "address";
|
|
1792
|
+
readonly name: "token";
|
|
1793
|
+
readonly indexed: true;
|
|
1794
|
+
}, {
|
|
1795
|
+
readonly type: "uint128";
|
|
1796
|
+
readonly name: "amount";
|
|
1797
|
+
}, {
|
|
1798
|
+
readonly type: "bool";
|
|
1799
|
+
readonly name: "isBid";
|
|
1800
|
+
}, {
|
|
1801
|
+
readonly type: "int16";
|
|
1802
|
+
readonly name: "tick";
|
|
1803
|
+
}, {
|
|
1804
|
+
readonly type: "int16";
|
|
1805
|
+
readonly name: "flipTick";
|
|
1806
|
+
}];
|
|
1807
|
+
}, {
|
|
1808
|
+
readonly name: "OrderCancelled";
|
|
1809
|
+
readonly type: "event";
|
|
1810
|
+
readonly inputs: readonly [{
|
|
1811
|
+
readonly type: "uint128";
|
|
1812
|
+
readonly name: "orderId";
|
|
1813
|
+
readonly indexed: true;
|
|
1814
|
+
}];
|
|
1815
|
+
}, {
|
|
1816
|
+
readonly name: "OrderFilled";
|
|
1817
|
+
readonly type: "event";
|
|
1818
|
+
readonly inputs: readonly [{
|
|
1819
|
+
readonly type: "uint128";
|
|
1820
|
+
readonly name: "orderId";
|
|
1821
|
+
readonly indexed: true;
|
|
1822
|
+
}, {
|
|
1823
|
+
readonly type: "address";
|
|
1824
|
+
readonly name: "maker";
|
|
1825
|
+
readonly indexed: true;
|
|
1826
|
+
}, {
|
|
1827
|
+
readonly type: "uint128";
|
|
1828
|
+
readonly name: "amountFilled";
|
|
1829
|
+
}, {
|
|
1830
|
+
readonly type: "bool";
|
|
1831
|
+
readonly name: "partialFill";
|
|
1832
|
+
}];
|
|
1833
|
+
}, {
|
|
1834
|
+
readonly name: "OrderDoesNotExist";
|
|
1835
|
+
readonly type: "error";
|
|
1836
|
+
readonly inputs: readonly [];
|
|
1837
|
+
}, {
|
|
1838
|
+
readonly name: "Unauthorized";
|
|
1839
|
+
readonly type: "error";
|
|
1840
|
+
readonly inputs: readonly [];
|
|
1841
|
+
}, {
|
|
1842
|
+
readonly name: "FillFailed";
|
|
1843
|
+
readonly type: "error";
|
|
1844
|
+
readonly inputs: readonly [];
|
|
1845
|
+
}, {
|
|
1846
|
+
readonly name: "InvalidTick";
|
|
1847
|
+
readonly type: "error";
|
|
1848
|
+
readonly inputs: readonly [];
|
|
1849
|
+
}, {
|
|
1850
|
+
readonly name: "InsufficientBalance";
|
|
1851
|
+
readonly type: "error";
|
|
1852
|
+
readonly inputs: readonly [];
|
|
1853
|
+
}, {
|
|
1854
|
+
readonly name: "InvalidFlipTick";
|
|
1855
|
+
readonly type: "error";
|
|
1856
|
+
readonly inputs: readonly [];
|
|
1857
|
+
}, {
|
|
1858
|
+
readonly name: "TickOutOfBounds";
|
|
1859
|
+
readonly type: "error";
|
|
1860
|
+
readonly inputs: readonly [{
|
|
1861
|
+
readonly type: "int16";
|
|
1862
|
+
readonly name: "tick";
|
|
1863
|
+
}];
|
|
1864
|
+
}, {
|
|
1865
|
+
readonly name: "InsufficientLiquidity";
|
|
1866
|
+
readonly type: "error";
|
|
1867
|
+
readonly inputs: readonly [];
|
|
1868
|
+
}, {
|
|
1869
|
+
readonly name: "MaxInputExceeded";
|
|
1870
|
+
readonly type: "error";
|
|
1871
|
+
readonly inputs: readonly [];
|
|
1872
|
+
}, {
|
|
1873
|
+
readonly name: "InsufficientOutput";
|
|
1874
|
+
readonly type: "error";
|
|
1875
|
+
readonly inputs: readonly [];
|
|
1876
|
+
}, {
|
|
1877
|
+
readonly name: "PairDoesNotExist";
|
|
1878
|
+
readonly type: "error";
|
|
1879
|
+
readonly inputs: readonly [];
|
|
1880
|
+
}];
|
|
1881
|
+
//# sourceMappingURL=Abis.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Abis.d.ts","sourceRoot":"","sources":["../../src/viem/Abis.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAocR,CAAA;AAEV,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiCf,CAAA;AAEV,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0HjB,CAAA;AAEV,eAAO,MAAM,eAAe;;;;;;;;;;;EAQlB,CAAA;AAEV,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;EAkBR,CAAA;AAEV,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBtB,CAAA;AAEV,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkLT,CAAA;AAEV,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqFb,CAAA;AAEV,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqPrB,CAAA"}
|