MCPcopy Create free account
hub / github.com/ccxt/ccxt / eip_definitions

Method eip_definitions

python/ccxt/grvt.py:401–480  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

399 })
400
401 def eip_definitions(self):
402 return {
403 'EIP712_ORDER_TYPE': {
404 'Order': [
405 {'name': 'subAccountID', 'type': 'uint64'},
406 {'name': 'isMarket', 'type': 'bool'},
407 {'name': 'timeInForce', 'type': 'uint8'},
408 {'name': 'postOnly', 'type': 'bool'},
409 {'name': 'reduceOnly', 'type': 'bool'},
410 {'name': 'legs', 'type': 'OrderLeg[]'},
411 {'name': 'nonce', 'type': 'uint32'},
412 {'name': 'expiration', 'type': 'int64'},
413 ],
414 'OrderLeg': [
415 {'name': 'assetID', 'type': 'uint256'},
416 {'name': 'contractSize', 'type': 'uint64'},
417 {'name': 'limitPrice', 'type': 'uint64'},
418 {'name': 'isBuyingContract', 'type': 'bool'},
419 ],
420 },
421 'EIP712_ORDER_WITH_BUILDER_TYPE': {
422 'OrderWithBuilderFee': [
423 {'name': 'subAccountID', 'type': 'uint64'},
424 {'name': 'isMarket', 'type': 'bool'},
425 {'name': 'timeInForce', 'type': 'uint8'},
426 {'name': 'postOnly', 'type': 'bool'},
427 {'name': 'reduceOnly', 'type': 'bool'},
428 {'name': 'legs', 'type': 'OrderLeg[]'},
429 {'name': 'builder', 'type': 'address'},
430 {'name': 'builderFee', 'type': 'uint32'},
431 {'name': 'nonce', 'type': 'uint32'},
432 {'name': 'expiration', 'type': 'int64'},
433 ],
434 'OrderLeg': [
435 {'name': 'assetID', 'type': 'uint256'},
436 {'name': 'contractSize', 'type': 'uint64'},
437 {'name': 'limitPrice', 'type': 'uint64'},
438 {'name': 'isBuyingContract', 'type': 'bool'},
439 ],
440 },
441 'EIP712_TRANSFER_TYPE': {
442 'Transfer': [
443 {'name': 'fromAccount', 'type': 'address'},
444 {'name': 'fromSubAccount', 'type': 'uint64'},
445 {'name': 'toAccount', 'type': 'address'},
446 {'name': 'toSubAccount', 'type': 'uint64'},
447 {'name': 'tokenCurrency', 'type': 'uint8'},
448 {'name': 'numTokens', 'type': 'uint64'},
449 {'name': 'nonce', 'type': 'uint32'},
450 {'name': 'expiration', 'type': 'int64'},
451 ],
452 },
453 'EIP712_WITHDRAWAL_TYPE': {
454 'Withdrawal': [
455 {'name': 'fromAccount', 'type': 'address'},
456 {'name': 'toEthAddress', 'type': 'address'},
457 {'name': 'tokenCurrency', 'type': 'uint8'},
458 {'name': 'numTokens', 'type': 'uint64'},

Callers 1

create_signed_requestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected