* Setup GMX v2 * Add get markets * Map token with service * Add get market info data * Add get markets * Add get market token prices * Get markets infos multicall * Try call datastore * Add some tests to figure out why datastore call dont work * Update funding rates * clean
775 lines
69 KiB
C#
775 lines
69 KiB
C#
using System.Numerics;
|
|
using Nethereum.ABI.FunctionEncoding.Attributes;
|
|
using Nethereum.Contracts;
|
|
|
|
namespace Managing.ABI.GmxV2.Reader.ContractDefinition
|
|
{
|
|
public partial class ReaderDeployment : ReaderDeploymentBase
|
|
{
|
|
public ReaderDeployment() : base(BYTECODE)
|
|
{
|
|
}
|
|
|
|
public ReaderDeployment(string byteCode) : base(byteCode)
|
|
{
|
|
}
|
|
}
|
|
|
|
public class ReaderDeploymentBase : ContractDeploymentMessage
|
|
{
|
|
public static string BYTECODE =
|
|
"608060405234801561001057600080fd5b5061541f806100206000396000f3fe608060405234801561001057600080fd5b506004361061013e5760003560e01c80630815bce114610143578063095ce6c51461016c5780630fa8f516146102155780631485d2971461023557806324c029e0146102555780632572d8f9146102765780632b17b4fd1461029e578063409f37c7146102d157806342a6f8d31461034357806349651b6a146103635780635d2b44f9146103835780635d5c6efe146103a35780635deceb84146103c5578063714af34b146103d857806377cfb162146103f8578063847bb46914610418578063971de27d14610438578063a01409381461044b578063a4f0d5501461045e578063addac2e014610471578063b4976dae14610510578063bc7b5bba14610523578063ce3264bf14610543578063ceeea3bf14610563578063ece9e0c814610583578063fd50649d146105a3575b600080fd5b610156610151366004612d22565b6105b6565b604051610163919061305a565b60405180910390f35b61017f61017a3660046130d1565b61064f565b60405161016392919060006101808201905083825282516020830152602083015160408301526040830151606083015260608301516080830152608083015160a083015260a083015160c083015260c083015160e083015260e083015161010081818501528085015191505061012081818501528085015191505061014081818501528085015161016085015250509392505050565b61022861022336600461314e565b610743565b604051610163919061317a565b61024861024336600461314e565b6107cf565b60405161016391906131cd565b61026861026336600461330d565b610855565b604051908152602001610163565b61028961028436600461338b565b610870565b60408051928352602083019190915201610163565b6102b16102ac366004613406565b610903565b604080519485529215156020850152918301526060820152608001610163565b6102e46102df366004613462565b61099e565b604080519384526020808501939093528151848201529181015160608085019190915291810151608080850191909152918101516001600160a01b031660a0808501919091529181015160c0840152015160e082015261010001610163565b6103566103513660046134cf565b610a78565b60405161016391906136dc565b61037661037136600461314e565b610bc5565b604051610163919061373e565b610396610391366004613751565b610c4b565b60405161016391906137bc565b6103b66103b13660046137ca565b610d64565b60405161016393929190613854565b6102686103d336600461386a565b610e7f565b6103eb6103e6366004613904565b610f08565b6040516101639190613970565b61040b6104063660046134cf565b610f8a565b604051610163919061397e565b61042b6104263660046139cd565b6110c9565b6040516101639190613aea565b610268610446366004613af9565b611158565b61026861045936600461330d565b6111ef565b6103eb61046c36600461314e565b6111fe565b61048461047f36600461314e565b61123f565b60408051825180516001600160a01b0390811683526020808301518216818501528285015182168486015260608084015183168186015260808085015184168187015260a0948501519093169385019390935294850151805160c08501529485015160e08401529284015161010083015283015161012082015291015161014082015261016001610163565b6103b661051e366004613b5e565b6112c2565b610536610531366004613c52565b6113d8565b6040516101639190613cb1565b610556610551366004613cf4565b6114c5565b6040516101639190613d29565b61057661057136600461314e565b611612565b6040516101639190613d6b565b610596610591366004613e0c565b611698565b6040516101639190613efc565b6102686105b1366004613f3f565b611776565b6105be612568565b6040516306bc109960e31b815273e14f1a0387a76c6427f22945246acd40e3f59ae0906335e084c890610601908b908b908b908b908b908b908b90600401613fca565b6106a060405180830381865af415801561061f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610643919061435f565b98975050505050505050565b60006106ae60405180610160016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b604051637d494dc360e01b81527370cb5b3a4f10a25a9b522576bbbe7b9db58d264690637d494dc3906106f1908c908c908c908c908c908c908c906004016144ad565b61018060405180830381865af415801561070f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610733919061450f565b9150915097509795505050505050565b61074b6125b0565b60405163fdfc26f360e01b8152732da2ed5c3dcd92f7797339e2cb7ae30a6dd145329063fdfc26f39061078490869086906004016145c3565b6101e060405180830381865af41580156107a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c691906145dc565b90505b92915050565b6107d7612654565b60405163fdfc26f360e01b8152733063a99d2df2a871068d47041eb8d089e5de1cdc9063fdfc26f39061081090869086906004016145c3565b600060405180830381865af415801561082d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526107c691908101906146bf565b60006108648686868686611784565b90505b95945050505050565b60008073fe1531c3b27e9e882881d9917b9cae9f2082c6df63b027d32d8989898989896040518763ffffffff1660e01b81526004016108b49695949392919061481e565b6040805180830381865af41580156108d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108f49190614876565b91509150965096945050505050565b6000806000806000610916898989611815565b905060006109248a8a61188f565b905060008060006109878d858c8e60405160200161096c9060208082526016908201527513505617d4139317d19050d513d497d193d497d0511360521b604082015260600190565b60405160208183030381529060405280519060200120611920565b969f919e509c50949a509398505050505050505050565b6000806109e36040518060c0016040528060008152602001600081526020016000815260200160006001600160a01b0316815260200160008152602001600081525090565b60405163dafa66bf60e01b8152738c75f9905a9fd94a0d95cb0801d7de33a432667c9063dafa66bf90610a24908c908c908c908c908c908c9060040161489a565b61010060405180830381865af4158015610a42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a6691906148ec565b92509250925096509650969350505050565b60606000610a8886868686611974565b9050600081516001600160401b03811115610aa557610aa5612ade565b604051908082528060200260200182016040528015610ade57816020015b610acb6126ed565b815260200190600190039081610ac35790505b50905060005b8251811015610bba576000838281518110610b0157610b01614974565b602002602001015190507367040c411c1b3195361801e9ad8a91d1fe9c0bc263fdfc26f38a836040518363ffffffff1660e01b8152600401610b449291906145c3565b600060405180830381865af4158015610b61573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b899190810190614aa0565b838381518110610b9b57610b9b614974565b6020026020010181905250508080610bb290614bec565b915050610ae4565b509695505050505050565b610bcd6126ed565b60405163fdfc26f360e01b81527367040c411c1b3195361801e9ad8a91d1fe9c0bc29063fdfc26f390610c0690869086906004016145c3565b600060405180830381865af4158015610c23573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526107c69190810190614aa0565b610c5361276e565b60405163a8d8fff560e01b815260009073bbf05cf8e1c6548092a6a02c4c5330e76bf0fe2d9063a8d8fff590610c8f908c908c90600401614c05565b608060405180830381865af4158015610cac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd09190614c7c565b604051630a37d4c760e11b8152909150738c75f9905a9fd94a0d95cb0801d7de33a432667c9063146fa98e90610d16908c9085908c908c908c908c908c90600401614c98565b606060405180830381865af4158015610d33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d579190614cec565b9998505050505050505050565b60008060008073bbf05cf8e1c6548092a6a02c4c5330e76bf0fe2d63a8d8fff58c8c6040518363ffffffff1660e01b8152600401610da3929190614c05565b608060405180830381865af4158015610dc0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de49190614c7c565b6040516340f5d44f60e11b8152909150738c75f9905a9fd94a0d95cb0801d7de33a432667c906381eba89e90610e2a908e9085908e908e908e908e908e90600401614d08565b606060405180830381865af4158015610e47573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e6b9190614d5a565b935093509350509750975097945050505050565b604051632bf0549960e11b81526000907385fcd569577a0bb52abf9d9e691f69d94dd61af8906357e0a93290610ec7908c908c908c908c908c908c908c908c90600401614d88565b602060405180830381865af4158015610ee4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d579190614df3565b610f1061278f565b60405163a8d8fff560e01b815273bbf05cf8e1c6548092a6a02c4c5330e76bf0fe2d9063a8d8fff590610f499086908690600401614c05565b608060405180830381865af4158015610f66573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c69190614c7c565b60606000610f9a868686866119f3565b9050600081516001600160401b03811115610fb757610fb7612ade565b604051908082528060200260200182016040528015610ff057816020015b610fdd6125b0565b815260200190600190039081610fd55790505b50905060005b8251811015610bba57600083828151811061101357611013614974565b60200260200101519050732da2ed5c3dcd92f7797339e2cb7ae30a6dd1453263fdfc26f38a836040518363ffffffff1660e01b81526004016110569291906145c3565b6101e060405180830381865af4158015611074573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061109891906145dc565b8383815181106110aa576110aa614974565b60200260200101819052505080806110c190614bec565b915050610ff6565b6110d16127b6565b60405163619c4ddb60e01b815273e14f1a0387a76c6427f22945246acd40e3f59ae09063619c4ddb9061110c90879087908790600401614e0c565b6103a060405180830381865af415801561112a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061114e9190614ee7565b90505b9392505050565b60008073bbf05cf8e1c6548092a6a02c4c5330e76bf0fe2d63a8d8fff588886040518363ffffffff1660e01b8152600401611194929190614c05565b608060405180830381865af41580156111b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111d59190614c7c565b90506111e48782878787611a0d565b979650505050505050565b60006108648686868686611a51565b61120661278f565b6040516329bc01e160e11b815273bbf05cf8e1c6548092a6a02c4c5330e76bf0fe2d9063537803c290610f4990869086906004016145c3565b611247612827565b60405163fdfc26f360e01b815273cfad9cb2a681b63884aef98af28458692137c9e39063fdfc26f39061128090869086906004016145c3565b61016060405180830381865af415801561129e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c69190614ff6565b600080600080732da2ed5c3dcd92f7797339e2cb7ae30a6dd1453263fdfc26f38a886040518363ffffffff1660e01b81526004016113019291906145c3565b6101e060405180830381865af415801561131f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061134391906145dc565b60405163e22de79360e01b8152909150734fb37ea32d371fa653d644bdd1e818be5c8fa9ff9063e22de79390611385908c908c908c9087908c906004016150b3565b606060405180830381865af41580156113a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113c69190614d5a565b93509350935050955095509592505050565b606060006113e7868585611a7c565b9050600081516001600160401b0381111561140457611404612ade565b60405190808252806020026020018201604052801561143d57816020015b61142a6127b6565b8152602001906001900390816114225790505b50905060005b8251811015610bba57600087828151811061146057611460614974565b60200260200101519050600084838151811061147e5761147e614974565b602002602001015190506114938a83836110c9565b8484815181106114a5576114a5614974565b6020026020010181905250505080806114bd90614bec565b915050611443565b606060006114d4858585611a7c565b9050600081516001600160401b038111156114f1576114f1612ade565b60405190808252806020026020018201604052801561152a57816020015b61151761278f565b81526020019060019003908161150f5790505b50905060005b825181101561160857600083828151811061154d5761154d614974565b60200260200101519050600073bbf05cf8e1c6548092a6a02c4c5330e76bf0fe2d63a8d8fff58a846040518363ffffffff1660e01b8152600401611592929190614c05565b608060405180830381865af41580156115af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115d39190614c7c565b9050808484815181106115e8576115e8614974565b60200260200101819052505050808061160090614bec565b915050611530565b5095945050505050565b61161a612898565b60405163fdfc26f360e01b815273d521cb31b14bb9f70d9a59b47d8763336cad03959063fdfc26f39061165390869086906004016145c3565b600060405180830381865af4158015611670573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526107c6919081019061511d565b6060600084516001600160401b038111156116b5576116b5612ade565b6040519080825280602002602001820160405280156116ee57816020015b6116db612568565b8152602001906001900390816116d35790505b50905060005b8551811015610bba57600086828151811061171157611711614974565b6020026020010151905061174589898389868151811061173357611733614974565b602002602001015160008a60016105b6565b83838151811061175757611757614974565b602002602001018190525050808061176e90614bec565b9150506116f4565b600061086785858585611b37565b60008061179a611795888887611b66565b611bb9565b905060006117a9888887611c2c565b90508115806117b6575080155b156117c657600092505050610867565b60006117d3878787611c73565b905060006117e46117958385615246565b90506000876117fc576117f7828661525d565b611806565b611806858361525d565b9b9a5050505050505050505050565b6000836001600160a01b031663bd02d0f56118308585611cac565b6040518263ffffffff1660e01b815260040161184e91815260200190565b602060405180830381865afa15801561186b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061114e9190614df3565b61189761278f565b60405163a8d8fff560e01b815260009073bbf05cf8e1c6548092a6a02c4c5330e76bf0fe2d9063a8d8fff5906118d39087908790600401614c05565b608060405180830381865af41580156118f0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119149190614c7c565b90506107c68482611d33565b600080600080611934898989896001611a0d565b905060006119488a878b600001518a611e0c565b90506000808313801561196257508161196084611e87565b115b9b929a50909850909650505050505050565b6060846001600160a01b031663f069052a61198e86611ed9565b85856040518463ffffffff1660e01b81526004016119ae93929190613854565b600060405180830381865afa1580156119cb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526108679190810190615284565b6060846001600160a01b031663f069052a61198e86611f5b565b600080611a1e878787878715611f96565b905080600003611a32576000915050610867565b6000611a45888888600001518888611784565b9050610643818361200f565b600080611a5f878786611b66565b90506000611a708888888888611784565b90506106438282612056565b6060836001600160a01b031663e7e4148e604051602001611abc906020808252600b908201526a13505492d15517d31254d560aa1b604082015260600190565b6040516020818303038152906040528051906020012085856040518463ffffffff1660e01b8152600401611af293929190613854565b600060405180830381865afa158015611b0f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261114e9190810190615309565b600080611b48868686600187611784565b90506000611b5a878787600088611784565b90506111e4818361533d565b600080611b7b8460400151856060015161206c565b90506000611b948686600001518760400151878661209b565b90506000611bad8787600001518860600151888761209b565b90506111e48183615365565b60006001600160ff1b03821115611c285760405162461bcd60e51b815260206004820152602860248201527f53616665436173743a2076616c756520646f65736e27742066697420696e2061604482015267371034b73a191a9b60c11b60648201526084015b60405180910390fd5b5090565b600080611c418460400151856060015161206c565b90506000611c5a86866000015187604001518786612121565b90506000611bad87876000015188606001518887612121565b60008215611c945781611c87578351611c8d565b83602001515b9050611151565b81611ca357836020015161114e565b50509051919050565b6000604051602001611cdf906020808252600d908201526c1310551154d517d0511317d055609a1b604082015260600190565b60408051601f198184030181528282528051602091820120908301526001600160a01b0385169082015282151560608201526080015b60405160208183030381529060405280519060200120905092915050565b80516001600160a01b0316611d5b576040516302fde0d760e11b815260040160405180910390fd5b6000826001600160a01b0316637ae1cfca611d79846000015161213e565b6040518263ffffffff1660e01b8152600401611d9791815260200190565b602060405180830381865afa158015611db4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dd89190615378565b90508015611e075781516040516309f8c93760e01b81526001600160a01b039091166004820152602401611c1f565b505050565b6000846001600160a01b031663bd02d0f5611e28868686612176565b6040518263ffffffff1660e01b8152600401611e4691815260200190565b602060405180830381865afa158015611e63573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108679190614df3565b600080821215611c285760405162461bcd60e51b815260206004820181905260248201527f53616665436173743a2076616c7565206d75737420626520706f7369746976656044820152606401611c1f565b6000604051602001611f11906020808252601290820152711050d0d3d5539517d3d491115497d31254d560721b604082015260600190565b60408051601f198184030181528282528051602091820120908301526001600160a01b03841690820152606001604051602081830303815290604052805190602001209050919050565b6000604051602001611f11906020808252601590820152741050d0d3d5539517d413d4d2551253d397d31254d5605a1b604082015260600190565b60008083611fa8578560600151611fae565b85604001515b90506000611fbd888884612205565b905060008415611feb5785611fda57866040015160200151611fe4565b8660200151602001515b9050612005565b85611ffb57604087015151612002565b6020870151515b90505b610d578183615246565b60008061202461201e856122a3565b846122b4565b9050600084136120455761203781611bb9565b61204090615395565b61204e565b61204e81611bb9565b949350505050565b60008161206284611bb9565b6107c6919061533d565b6000816001600160a01b0316836001600160a01b03161461208e576001612091565b60025b60ff169392505050565b600081866001600160a01b031663bd02d0f56120b88888886122c2565b6040518263ffffffff1660e01b81526004016120d691815260200190565b602060405180830381865afa1580156120f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121179190614df3565b61086491906153c7565b600081866001600160a01b031663bd02d0f56120b888888861233a565b6000604051602001611f11906020808252601290820152711254d7d3505492d15517d11254d05093115160721b604082015260600190565b60006040516020016121aa906020808252600e908201526d26a0ac2fa827262fa320a1aa27a960911b604082015260600190565b60408051601f1981840301815282825280516020918201209083015281018590526001600160a01b0384166060820152821515608082015260a0015b6040516020818303038152906040528051906020012090509392505050565b60008061221a8460400151856060015161206c565b905080856001600160a01b031663bd02d0f561223a876000015187612377565b6040518263ffffffff1660e01b815260040161225891815260200190565b602060405180830381865afa158015612275573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122999190614df3565b61086791906153c7565b600080821215611c28575060000390565b60006107c6838360006123e5565b60006040516020016122f5906020808252600d908201526c13d4115397d2539511549154d5609a1b604082015260600190565b60408051601f198184030181528282528051602091820120908301526001600160a01b038087169183019190915284166060820152821515608082015260a0016121e6565b60006040516020016122f5906020808252601790820152764f50454e5f494e5445524553545f494e5f544f4b454e5360481b604082015260600190565b60006040516020016123a8906020808252600b908201526a1413d3d317d05353d5539560aa1b604082015260600190565b60408051601f198184030181528282528051602091820120908301526001600160a01b038086169183019190915283166060820152608001611d15565b6000836000036123f757506000611151565b811561241657611c8d8468327cb2734119d3b7a9601e1b85600161242d565b61114e8468327cb2734119d3b7a9601e1b8561247e565b60008061243b86868661247e565b9050600183600281111561245157612451613515565b14801561246e575060008480612469576124696153b1565b868809115b1561086757610864600182615365565b60008080600019858709858702925082811083820303915050806000036124b8578382816124ae576124ae6153b1565b0492505050611151565b8084116124ff5760405162461bcd60e51b81526020600482015260156024820152744d6174683a206d756c446976206f766572666c6f7760581b6044820152606401611c1f565b60008486880960026001871981018816978890046003810283188082028403028082028403028082028403028082028403028082028403029081029092039091026000889003889004909101858311909403939093029303949094049190911702949350505050565b6040518060c0016040528061257b6125b0565b81526020016125886128e0565b815260200161259561276e565b81526020016000815260200160008152602001600081525090565b6040805160c081019091526000606082018181526080830182905260a08301919091528190815260200161263760405180610160016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b81526040805160208181019092526000815291015290565b905290565b604080516101808101909152600060608083018281526080840183905260a0840183905260c0840183905260e084018390526101008401839052610120840192909252610140830181905261016083015281905b81526020016126376040518060e00160405280600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b604080516101608101909152600060608083018281526080840183905260a0840183905260c0840183905260e084018390526101008401839052610120840192909252610140830152815260208101612744612a26565b81526040805160808101825260008082526020828101829052928201819052606082015291015290565b60405180606001604052806000815260200160008152602001600081525090565b60408051608081018252600080825260208201819052918101829052606081019190915290565b6040518060e001604052806127c961278f565b815260200160008152602001600081526020016127e4612a41565b81526020016127f1612a61565b815260200161281a60405180606001604052806000815260200160008152602001600081525090565b8152600060209091015290565b60408051610100810182526000918101828152606082018390526080820183905260a0820183905260c0820183905260e0820192909252908190815260200161264f6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b604080516101408101909152600060608083018281526080840183905260a0840183905260c0840183905260e0840192909252610100830181905261012083015281906126a8565b604080516102c0810190915260006101c082018181526101e08301829052610200830182905261022083018290526102408301829052610260830182905261028083018290526102a08301919091528190815260200161296f6040518060c001604052806000815260200160008152602001600081526020016000815260200160008152602001600081525090565b815260200161299f6040518060800160405280600081526020016000815260200160008152602001600081525090565b815260408051606081018252600080825260208281018290529282015291019081526020016129e1604051806040016040528060008152602001600081525090565b81526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b604080516101608101909152806000815260200160006129e1565b6040518060400160405280612a54612a87565b815260200161264f612a87565b6040518060a001604052806000151581526020016000815260200160008152602001612a545b6040805160808101825260009181018281526060820192909252908190815260200161264f604051806040016040528060008152602001600081525090565b6001600160a01b0381168114612adb57600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b0381118282101715612b1657612b16612ade565b60405290565b604051606081016001600160401b0381118282101715612b1657612b16612ade565b604051608081016001600160401b0381118282101715612b1657612b16612ade565b60405161016081016001600160401b0381118282101715612b1657612b16612ade565b60405161010081016001600160401b0381118282101715612b1657612b16612ade565b60405160c081016001600160401b0381118282101715612b1657612b16612ade565b6040516101c081016001600160401b0381118282101715612b1657612b16612ade565b60405160e081016001600160401b0381118282101715612b1657612b16612ade565b60405161012081016001600160401b0381118282101715612b1657612b16612ade565b60405160a081016001600160401b0381118282101715612b1657612b16612ade565b604051601f8201601f191681016001600160401b0381118282101715612c7a57612c7a612ade565b604052919050565b600060408284031215612c9457600080fd5b612c9c612af4565b9050813581526020820135602082015292915050565b600060c08284031215612cc457600080fd5b612ccc612b1c565b9050612cd88383612c82565b8152612ce78360408401612c82565b6020820152612cf98360808401612c82565b604082015292915050565b8035612d0f81612ac6565b919050565b8015158114612adb57600080fd5b6000806000806000806000610180888a031215612d3e57600080fd5b8735612d4981612ac6565b96506020880135612d5981612ac6565b955060408801359450612d6f8960608a01612cb2565b93506101208801359250610140880135612d8881612ac6565b9150610160880135612d9981612d14565b8091505092959891949750929550565b6001600160a01b03169052565b80516001600160a01b03908116835260208083015182169084015260409182015116910152565b805182526020810151602083015260408101516040830152606081015160608301526080810151608083015260a081015160a083015260c081015160c083015260e081015160e08301526101008082015181840152506101208082015181840152506101408082015181840152505050565b612e5a828251612db6565b6020810151612e6c6060840182612ddd565b50604001515115156101c09190910152565b80518252602090810151910152565b8051825260208082015190830152604090810151910152565b612eb1828251612e4f565b602081810151805180516101e0860152808301516001600160a01b0390811661020087015260408083015182166102208801526060808401516102408901526080808501516102608a015260a0808601516102808b015260c08601516102a08b015260e0909501516102c08a01528587015180516102e08b0152808801516103008b0152808401516103208b0152808301516103408b0152808201516103608b0152909401516103808901528185015180516103a08a0152808701516103c08a0152808301516103e08a01528101516104008901528401518051909216610420880152938101516104408701529092015161046085015290810151612fba610480850182612e7e565b5060a08101516104c084015260c08101516104e084015260e08101516105008401526101008101516105208401526101208101516105408401526101408101516105608401526101608101516105808401526101808101516105a08401526101a001516105c083015260408101516130366105e0840182612e8d565b506060810151610640830152608081015161066083015260a0015161068090910152565b6106a081016107c98284612ea6565b60006080828403121561307b57600080fd5b613083612b3e565b9050813561309081612ac6565b815260208201356130a081612ac6565b602082015260408201356130b381612ac6565b604082015260608201356130c681612ac6565b606082015292915050565b60008060008060008060006101a0888a0312156130ed57600080fd5b87356130f881612ac6565b96506131078960208a01613069565b95506131168960a08a01612c82565b94506131258960e08a01612c82565b9350613135896101208a01612c82565b92506101608801359150610180880135612d9981612d14565b6000806040838503121561316157600080fd5b823561316c81612ac6565b946020939093013593505050565b6101e081016107c98284612e4f565b600081518084526020808501945080840160005b838110156131c25781516001600160a01b03168752958201959082019060010161319d565b509495945050505050565b60208152600082516101208060208501526131ed61014085018351612da9565b6020820151613200610160860182612da9565b506040820151613214610180860182612da9565b5060608201516132286101a0860182612da9565b50608082015161323c6101c0860182612da9565b5060a08201516132506101e0860182612da9565b5060c0820151613264610200860182612da9565b5060e08201518161022086015261327f610260860182613189565b9050610100830151925061013f19858203016102408601526132a18184613189565b92505060208501516132f56040860182805182526020810151602083015260408101516040830152606081015160608301526080810151608083015260a081015160a083015260c081015160c08301525050565b50604085015180511515858301525090949350505050565b6000806000806000610120868803121561332657600080fd5b853561333181612ac6565b94506133408760208801613069565b935061334f8760a08801612c82565b925060e086013561335f81612d14565b915061010086013561337081612d14565b809150509295509295909350565b60038110612adb57600080fd5b6000806000806000806101c087890312156133a557600080fd5b86356133b081612ac6565b95506133bf8860208901613069565b94506133ce8860a08901612cb2565b935061016087013592506101808701356133e781612ac6565b91506101a08701356133f88161337e565b809150509295509295509295565b600080600080610120858703121561341d57600080fd5b843561342881612ac6565b9350602085013561343881612ac6565b9250604085013561344881612d14565b91506134578660608701612cb2565b905092959194509250565b6000806000806000806101c0878903121561347c57600080fd5b863561348781612ac6565b95506134968860208901613069565b94506134a58860a08901612cb2565b93506101608701356134b681612ac6565b925061018087013591506101a08701356133f881612ac6565b600080600080608085870312156134e557600080fd5b84356134f081612ac6565b9350602085013561350081612ac6565b93969395505050506040820135916060013590565b634e487b7160e01b600052602160045260246000fd5b6008811061353b5761353b613515565b9052565b60038110612adb57612adb613515565b61353b8161353f565b61356382825161352b565b6020810151613575602084018261354f565b5060408101516040830152606081015160608301526080810151608083015260a081015160a083015260c081015160c083015260e081015160e08301526101008082015181840152506101208082015181840152506101408082015181840152505050565b805161020080845281516001600160a01b03908116918501919091526020820151166102208401526040810151600091613618610240860183612da9565b6060810151915061362d610260860183612da9565b60808101519150613642610280860183612da9565b60a081015191506136576102a0860183612da9565b60c0810151915061366c6102c0860183612da9565b60e001516101006102e08601529050613689610300850182613189565b9050602083015161369d6020860182613558565b5060408381015180511515610180870152602081015115156101a08701529081015115156101c0860152606081015115156101e0860152509392505050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b8281101561373157603f1988860301845261371f8583516135da565b94509285019290850190600101613703565b5092979650505050505050565b6020815260006107c660208301846135da565b6000806000806000806000610100888a03121561376d57600080fd5b873561377881612ac6565b9650602088013561378881612ac6565b95506137978960408a01612c82565b94506080880135935060a0880135925060c0880135915060e0880135612d9981612d14565b606081016107c98284612e8d565b6000806000806000806000610120888a0312156137e657600080fd5b87356137f181612ac6565b9650602088013561380181612ac6565b9550604088013561381181612ac6565b9450606088013561382181612ac6565b9350608088013592506138378960a08a01612c82565b91506138468960e08a01612c82565b905092959891949750929550565b9283526020830191909152604082015260600190565b600080600080600080600080610200898b03121561388757600080fd5b883561389281612ac6565b97506138a18a60208b01613069565b96506138b08a60a08b01612cb2565b9550610160890135945061018089013593506101a08901356138d181612ac6565b92506101c08901356138e28161337e565b91506101e08901356138f381612d14565b809150509295985092959890939650565b6000806040838503121561391757600080fd5b823561392281612ac6565b9150602083013561393281612ac6565b809150509250929050565b80516001600160a01b03908116835260208083015182169084015260408083015182169084015260609182015116910152565b608081016107c9828461393d565b6020808252825182820181905260009190848201906040850190845b818110156139c1576139ad838551612e4f565b928401926101e0929092019160010161399a565b50909695505050505050565b600080600061010084860312156139e357600080fd5b83356139ee81612ac6565b92506139fd8560208601612cb2565b915060e0840135613a0d81612ac6565b809150509250925092565b613a23828251612e7e565b6020810151611e076040840182612e7e565b613a4082825161393d565b60208101516080830152604081015160a08301526060810151613a6760c084018251613a18565b60200151613a79610140840182613a18565b506080810151805115156101c084015260208101516101e084015260408101516102008401526060810151613ab2610220850182613a18565b5060800151613ac56102a0840182613a18565b5060a0810151613ad9610320840182612e8d565b5060c0015115156103809190910152565b6103a081016107c98284613a35565b60008060008060006101408688031215613b1257600080fd5b8535613b1d81612ac6565b94506020860135613b2d81612ac6565b9350613b3c8760408801612cb2565b9250610100860135613b4d81612d14565b915061012086013561337081612d14565b60008060008060006101a08688031215613b7757600080fd5b8535613b8281612ac6565b9450613b918760208801613069565b9350613ba08760a08801612cb2565b949793965093946101608101359450610180013592915050565b60006001600160401b03821115613bd357613bd3612ade565b5060051b60200190565b600082601f830112613bee57600080fd5b81356020613c03613bfe83613bba565b612c52565b82815260c09283028501820192828201919087851115613c2257600080fd5b8387015b85811015613c4557613c388982612cb2565b8452928401928101613c26565b5090979650505050505050565b60008060008060808587031215613c6857600080fd5b8435613c7381612ac6565b935060208501356001600160401b03811115613c8e57600080fd5b613c9a87828801613bdd565b949794965050505060408301359260600135919050565b6020808252825182820181905260009190848201906040850190845b818110156139c157613ce0838551613a35565b928401926103a09290920191600101613ccd565b600080600060608486031215613d0957600080fd5b8335613d1481612ac6565b95602085013595506040909401359392505050565b6020808252825182820181905260009190848201906040850190845b818110156139c157613d5883855161393d565b9284019260809290920191600101613d45565b602081526000825161012080602085015260018060a01b03808351166101408601528060208401511661016086015280604084015116610180860152506060820151613dbb6101a0860182612da9565b506080820151613dcf6101c0860182612da9565b5060a082015160e06101e0860152613deb610220860182613189565b905060c0830151925061013f19858203016102008601526132a18184613189565b600080600080600060a08688031215613e2457600080fd5b8535613e2f81612ac6565b9450602086810135613e4081612ac6565b945060408701356001600160401b0380821115613e5c57600080fd5b818901915089601f830112613e7057600080fd5b8135613e7e613bfe82613bba565b81815260059190911b8301840190848101908c831115613e9d57600080fd5b938501935b82851015613ebb57843582529385019390850190613ea2565b975050506060890135925080831115613ed357600080fd5b5050613ee188828901613bdd565b925050613ef060808701612d04565b90509295509295909350565b6020808252825182820181905260009190848201906040850190845b818110156139c157613f2b838551612ea6565b928401926106a09290920191600101613f18565b6000806000806101008587031215613f5657600080fd5b8435613f6181612ac6565b9350613f708660208701613069565b9250613f7f8660a08701612c82565b915060e0850135613f8f81612d14565b939692955090935050565b613fa5828251612e7e565b6020810151613fb76040840182612e7e565b506040810151611e076080840182612e7e565b6001600160a01b038881168252878116602083015260408201879052610180820190613ff96060840188613f9a565b856101208401528085166101408401525082151561016083015298975050505050505050565b8051612d0f81612ac6565b8051612d0f81612d14565b60006020828403121561404757600080fd5b604051602081016001600160401b038111828210171561406957614069612ade565b8060405250809150825161407c81612d14565b905292915050565b60008183036101e081121561409857600080fd5b6140a0612b1c565b915060608112156140b057600080fd5b6140b8612b1c565b83516140c381612ac6565b815260208401516140d381612ac6565b602082015260408401516140e681612ac6565b60408201528252610160605f19820181131561410157600080fd5b614109612b60565b9150606084015182526080840151602083015260a0840151604083015260c0840151606083015260e084015160808301526101008085015160a08401526101208086015160c08501526101408087015160e08601528387015183860152610180870151828601526101a0870151818601525050505080602083015250612cf9836101c08401614035565b600061010082840312156141a657600080fd5b6141ae612b83565b90508151815260208201516141c281612ac6565b602082015260408201516141d581612ac6565b80604083015250606082015160608201526080820151608082015260a082015160a082015260c082015160c082015260e082015160e082015292915050565b600060c0828403121561422657600080fd5b61422e612ba6565b9050815181526020820151602082015260408201516040820152606082015160608201526080820151608082015260a082015160a082015292915050565b60006080828403121561427e57600080fd5b614286612b3e565b90508151815260208201516020820152604082015160408201526060820151606082015292915050565b6000606082840312156142c257600080fd5b6142ca612b1c565b905081516142d781612ac6565b80825250602082015160208201526040820151604082015292915050565b60006040828403121561430757600080fd5b61430f612af4565b9050815181526020820151602082015292915050565b60006060828403121561433757600080fd5b61433f612b1c565b905081518152602082015160208201526040820151604082015292915050565b60008183036106a081121561437357600080fd5b61437b612ba6565b6143858585614084565b81526104006101df198301121561439b57600080fd5b6143a3612bc8565b91506143b3856101e08601614193565b82526143c3856102e08601614214565b60208301526143d6856103a0860161426c565b60408301526143e98561042086016142b0565b60608301526143fc8561048086016142f5565b60808301526104c084015160a08301526104e084015160c083015261050084015160e08301526105208401516101008301526105408401516101208301526105608401516101408301526105808401516101608301526105a08401516101808301526105c08401516101a083015281602082015261447e856105e08601614325565b6040820152610640840151606082015261066084015160808201526106809093015160a0840152509092915050565b6001600160a01b03881681526101a081016144cb602083018961393d565b6144d860a0830188612e7e565b6144e560e0830187612e7e565b6144f3610120830186612e7e565b8361016083015282151561018083015298975050505050505050565b60008082840361018081121561452457600080fd5b8351925061016080601f198301121561453c57600080fd5b614544612b60565b91506020850151825260408501516020830152606085015160408301526080850151606083015260a0850151608083015260c085015160a083015260e085015160c08301526101008086015160e08401526101208087015182850152610140915081870151818501525081860151818401525050809150509250929050565b6001600160a01b03929092168252602082015260400190565b60006101e082840312156145ef57600080fd5b6107c68383614084565b600082601f83011261460a57600080fd5b8151602061461a613bfe83613bba565b82815260059290921b8401810191818101908684111561463957600080fd5b8286015b84811015610bba57805161465081612ac6565b835291830191830161463d565b600060e0828403121561466f57600080fd5b614677612beb565b9050815181526020820151602082015260408201516040820152606082015160608201526080820151608082015260a082015160a082015260c082015160c082015292915050565b6000602082840312156146d157600080fd5b81516001600160401b03808211156146e857600080fd5b81840191506101208083870312156146ff57600080fd5b614707612b1c565b83518381111561471657600080fd5b840180880383131561472757600080fd5b61472f612c0d565b925061473a8161401f565b83526147486020820161401f565b60208401526147596040820161401f565b604084015261476a6060820161401f565b606084015261477b6080820161401f565b608084015261478c60a0820161401f565b60a084015261479d60c0820161401f565b60c084015260e0810151848111156147b457600080fd5b6147c0898284016145f9565b60e08501525061010080820151858111156147da57600080fd5b6147e68a8285016145f9565b82860152508383526147fb896020880161465d565b602084015261480c89828801614035565b60408401525090979650505050505050565b6001600160a01b0387811682526101c082019061483e602084018961393d565b61484b60a0840188613f9a565b610160830186905284166101808301526148648361353f565b826101a0830152979650505050505050565b6000806040838503121561488957600080fd5b505080516020909101519092909150565b6001600160a01b0387811682526101c08201906148ba602084018961393d565b6148c760a0840188613f9a565b808616610160840152846101808401528084166101a084015250979650505050505050565b600080600083850361010081121561490357600080fd5b845193506020850151925060c0603f198201121561492057600080fd5b50614929612ba6565b60408501518152606085015160208201526080850151604082015260a085015161495281612ac6565b606082015260c0850151608082015260e09094015160a0850152509093909250565b634e487b7160e01b600052603260045260246000fd5b805160088110612d0f57600080fd5b8051612d0f8161337e565b600061016082840312156149b757600080fd5b6149bf612b60565b90506149ca8261498a565b81526149d860208301614999565b602082015260408201516040820152606082015160608201526080820151608082015260a082015160a082015260c082015160c082015260e082015160e082015261010080830151818301525061012080830151818301525061014080830151818301525092915050565b600060808284031215614a5557600080fd5b614a5d612b3e565b90508151614a6a81612d14565b81526020820151614a7a81612d14565b60208201526040820151614a8d81612d14565b604082015260608201516130c681612d14565b600060208284031215614ab257600080fd5b81516001600160401b0380821115614ac957600080fd5b908301906102008286031215614ade57600080fd5b614ae6612b1c565b825182811115614af557600080fd5b83016101008188031215614b0857600080fd5b614b10612b83565b614b198261401f565b8152614b276020830161401f565b6020820152614b386040830161401f565b6040820152614b496060830161401f565b6060820152614b5a6080830161401f565b6080820152614b6b60a0830161401f565b60a0820152614b7c60c0830161401f565b60c082015260e082015184811115614b9357600080fd5b614b9f898285016145f9565b60e083015250825250614bb586602085016149a4565b6020820152614bc8866101808501614a43565b604082015295945050505050565b634e487b7160e01b600052601160045260246000fd5b600060018201614bfe57614bfe614bd6565b5060010190565b6001600160a01b0392831681529116602082015260400190565b600060808284031215614c3157600080fd5b614c39612b3e565b90508151614c4681612ac6565b81526020820151614c5681612ac6565b60208201526040820151614c6981612ac6565b604082015260608201516130c681612ac6565b600060808284031215614c8e57600080fd5b6107c68383614c1f565b6001600160a01b03881681526101608101614cb6602083018961393d565b614cc360a0830188612e7e565b8560e0830152846101008301528361012083015282151561014083015298975050505050505050565b600060608284031215614cfe57600080fd5b6107c68383614325565b6001600160a01b038881168252610180820190614d28602084018a61393d565b87811660a0840152861660c083015260e08201859052614d4c610100830185612e7e565b610643610140830184612e7e565b600080600060608486031215614d6f57600080fd5b8351925060208401519150604084015190509250925092565b6001600160a01b038981168252610200820190614da8602084018b61393d565b614db560a084018a613f9a565b87610160840152866101808401528086166101a084015250614dd68461353f565b836101c08301528215156101e08301529998505050505050505050565b600060208284031215614e0557600080fd5b5051919050565b6001600160a01b038481168252610100820190614e2c6020840186613f9a565b80841660e084015250949350505050565b600060808284031215614e4f57600080fd5b614e57612af4565b9050614e6383836142f5565b8152614e7283604084016142f5565b602082015292915050565b60006101608284031215614e9057600080fd5b614e98612c30565b90508151614ea581612d14565b808252506020820151602082015260408201516040820152614eca8360608401614e3d565b6060820152614edc8360e08401614e3d565b608082015292915050565b60008183036103a0811215614efb57600080fd5b614f03612beb565b614f0d8585614c1f565b81526080840151602082015260a0840151604082015261010060bf1983011215614f3657600080fd5b614f3e612af4565b9150614f4d8560c08601614e3d565b8252614f5d856101408601614e3d565b6020830152816060820152614f76856101c08601614e7d565b6080820152614f89856103208601614325565b60a0820152614f9b610380850161402a565b60c0820152949350505050565b600060a08284031215614fba57600080fd5b614fc2612c30565b9050815181526020820151602082015260408201516040820152606082015160608201526080820151608082015292915050565b600081830361016081121561500a57600080fd5b615012612af4565b60c082121561502057600080fd5b615028612ba6565b9150835161503581612ac6565b8252602084015161504581612ac6565b6020830152604084015161505881612ac6565b6040830152606084015161506b81612ac6565b6060830152608084015161507e81612ac6565b608083015260a084015161509181612ac6565b60a08301528181526150a68560c08601614fa8565b6020820152949350505050565b6001600160a01b038616815261036081016150d1602083018761393d565b6150de60a0830186613f9a565b6150ed61016083018551612db6565b60208401516151006101c0840182612ddd565b506040939093015151151561032082015261034001529392505050565b60006020828403121561512f57600080fd5b81516001600160401b038082111561514657600080fd5b90830190610120828603121561515b57600080fd5b615163612b1c565b82518281111561517257600080fd5b830160e0818803121561518457600080fd5b61518c612beb565b6151958261401f565b81526151a36020830161401f565b60208201526151b46040830161401f565b60408201526151c56060830161401f565b60608201526151d66080830161401f565b608082015260a0820151848111156151ed57600080fd5b6151f9898285016145f9565b60a08301525060c08201518481111561521157600080fd5b61521d898285016145f9565b60c083015250825250615233866020850161465d565b6020820152614bc8866101008501614035565b80820281158282048414176107c9576107c9614bd6565b818103600083128015838313168383128216171561527d5761527d614bd6565b5092915050565b6000602080838503121561529757600080fd5b82516001600160401b038111156152ad57600080fd5b8301601f810185136152be57600080fd5b80516152cc613bfe82613bba565b81815260059190911b820183019083810190878311156152eb57600080fd5b928401925b828410156111e4578351825292840192908401906152f0565b60006020828403121561531b57600080fd5b81516001600160401b0381111561533157600080fd5b61204e848285016145f9565b808201828112600083128015821682158216171561535d5761535d614bd6565b505092915050565b808201808211156107c9576107c9614bd6565b60006020828403121561538a57600080fd5b81516107c681612d14565b6000600160ff1b82016153aa576153aa614bd6565b5060000390565b634e487b7160e01b600052601260045260246000fd5b6000826153e457634e487b7160e01b600052601260045260246000fd5b50049056fea26469706673582212203233d1c88e2834df509795d562a4149615b014be8640709981435c03e4b2051b64736f6c63430008120033";
|
|
|
|
public ReaderDeploymentBase() : base(BYTECODE)
|
|
{
|
|
}
|
|
|
|
public ReaderDeploymentBase(string byteCode) : base(byteCode)
|
|
{
|
|
}
|
|
}
|
|
|
|
public partial class GetAccountOrdersFunction : GetAccountOrdersFunctionBase
|
|
{
|
|
}
|
|
|
|
[Function("getAccountOrders", typeof(GetAccountOrdersOutputDTO))]
|
|
public class GetAccountOrdersFunctionBase : FunctionMessage
|
|
{
|
|
[Parameter("address", "dataStore", 1)] public virtual string DataStore { get; set; }
|
|
[Parameter("address", "account", 2)] public virtual string Account { get; set; }
|
|
[Parameter("uint256", "start", 3)] public virtual BigInteger Start { get; set; }
|
|
[Parameter("uint256", "end", 4)] public virtual BigInteger End { get; set; }
|
|
}
|
|
|
|
public partial class GetAccountPositionInfoListFunction : GetAccountPositionInfoListFunctionBase
|
|
{
|
|
}
|
|
|
|
[Function("getAccountPositionInfoList", typeof(GetAccountPositionInfoListOutputDTO))]
|
|
public class GetAccountPositionInfoListFunctionBase : FunctionMessage
|
|
{
|
|
[Parameter("address", "dataStore", 1)] public virtual string DataStore { get; set; }
|
|
|
|
[Parameter("address", "referralStorage", 2)]
|
|
public virtual string ReferralStorage { get; set; }
|
|
|
|
[Parameter("bytes32[]", "positionKeys", 3)]
|
|
public virtual List<byte[]> PositionKeys { get; set; }
|
|
|
|
[Parameter("tuple[]", "prices", 4)] public virtual List<MarketPrices> Prices { get; set; }
|
|
|
|
[Parameter("address", "uiFeeReceiver", 5)]
|
|
public virtual string UiFeeReceiver { get; set; }
|
|
}
|
|
|
|
public partial class GetAccountPositionsFunction : GetAccountPositionsFunctionBase
|
|
{
|
|
}
|
|
|
|
[Function("getAccountPositions", typeof(GetAccountPositionsOutputDTO))]
|
|
public class GetAccountPositionsFunctionBase : FunctionMessage
|
|
{
|
|
[Parameter("address", "dataStore", 1)] public virtual string DataStore { get; set; }
|
|
[Parameter("address", "account", 2)] public virtual string Account { get; set; }
|
|
[Parameter("uint256", "start", 3)] public virtual BigInteger Start { get; set; }
|
|
[Parameter("uint256", "end", 4)] public virtual BigInteger End { get; set; }
|
|
}
|
|
|
|
public partial class GetAdlStateFunction : GetAdlStateFunctionBase
|
|
{
|
|
}
|
|
|
|
[Function("getAdlState", typeof(GetAdlStateOutputDTO))]
|
|
public class GetAdlStateFunctionBase : FunctionMessage
|
|
{
|
|
[Parameter("address", "dataStore", 1)] public virtual string DataStore { get; set; }
|
|
[Parameter("address", "market", 2)] public virtual string Market { get; set; }
|
|
[Parameter("bool", "isLong", 3)] public virtual bool IsLong { get; set; }
|
|
[Parameter("tuple", "prices", 4)] public virtual MarketPrices Prices { get; set; }
|
|
}
|
|
|
|
public partial class GetDepositFunction : GetDepositFunctionBase
|
|
{
|
|
}
|
|
|
|
[Function("getDeposit", typeof(GetDepositOutputDTO))]
|
|
public class GetDepositFunctionBase : FunctionMessage
|
|
{
|
|
[Parameter("address", "dataStore", 1)] public virtual string DataStore { get; set; }
|
|
[Parameter("bytes32", "key", 2)] public virtual byte[] Key { get; set; }
|
|
}
|
|
|
|
public partial class GetDepositAmountOutFunction : GetDepositAmountOutFunctionBase
|
|
{
|
|
}
|
|
|
|
[Function("getDepositAmountOut", "uint256")]
|
|
public class GetDepositAmountOutFunctionBase : FunctionMessage
|
|
{
|
|
[Parameter("address", "dataStore", 1)] public virtual string DataStore { get; set; }
|
|
[Parameter("tuple", "market", 2)] public virtual Props Market { get; set; }
|
|
[Parameter("tuple", "prices", 3)] public virtual MarketPrices Prices { get; set; }
|
|
|
|
[Parameter("uint256", "longTokenAmount", 4)]
|
|
public virtual BigInteger LongTokenAmount { get; set; }
|
|
|
|
[Parameter("uint256", "shortTokenAmount", 5)]
|
|
public virtual BigInteger ShortTokenAmount { get; set; }
|
|
|
|
[Parameter("address", "uiFeeReceiver", 6)]
|
|
public virtual string UiFeeReceiver { get; set; }
|
|
|
|
[Parameter("uint8", "swapPricingType", 7)]
|
|
public virtual byte SwapPricingType { get; set; }
|
|
|
|
[Parameter("bool", "includeVirtualInventoryImpact", 8)]
|
|
public virtual bool IncludeVirtualInventoryImpact { get; set; }
|
|
}
|
|
|
|
public partial class GetExecutionPriceFunction : GetExecutionPriceFunctionBase
|
|
{
|
|
}
|
|
|
|
[Function("getExecutionPrice", typeof(GetExecutionPriceOutputDTO))]
|
|
public class GetExecutionPriceFunctionBase : FunctionMessage
|
|
{
|
|
[Parameter("address", "dataStore", 1)] public virtual string DataStore { get; set; }
|
|
[Parameter("address", "marketKey", 2)] public virtual string MarketKey { get; set; }
|
|
|
|
[Parameter("tuple", "indexTokenPrice", 3)]
|
|
public virtual Props IndexTokenPrice { get; set; }
|
|
|
|
[Parameter("uint256", "positionSizeInUsd", 4)]
|
|
public virtual BigInteger PositionSizeInUsd { get; set; }
|
|
|
|
[Parameter("uint256", "positionSizeInTokens", 5)]
|
|
public virtual BigInteger PositionSizeInTokens { get; set; }
|
|
|
|
[Parameter("int256", "sizeDeltaUsd", 6)]
|
|
public virtual BigInteger SizeDeltaUsd { get; set; }
|
|
|
|
[Parameter("bool", "isLong", 7)] public virtual bool IsLong { get; set; }
|
|
}
|
|
|
|
public partial class GetMarketFunction : GetMarketFunctionBase
|
|
{
|
|
}
|
|
|
|
[Function("getMarket", typeof(GetMarketOutputDTO))]
|
|
public class GetMarketFunctionBase : FunctionMessage
|
|
{
|
|
[Parameter("address", "dataStore", 1)] public virtual string DataStore { get; set; }
|
|
[Parameter("address", "key", 2)] public virtual string Key { get; set; }
|
|
}
|
|
|
|
public partial class GetMarketBySaltFunction : GetMarketBySaltFunctionBase
|
|
{
|
|
}
|
|
|
|
[Function("getMarketBySalt", typeof(GetMarketBySaltOutputDTO))]
|
|
public class GetMarketBySaltFunctionBase : FunctionMessage
|
|
{
|
|
[Parameter("address", "dataStore", 1)] public virtual string DataStore { get; set; }
|
|
[Parameter("bytes32", "salt", 2)] public virtual byte[] Salt { get; set; }
|
|
}
|
|
|
|
public partial class GetMarketInfoFunction : GetMarketInfoFunctionBase
|
|
{
|
|
}
|
|
|
|
[Function("getMarketInfo", typeof(GetMarketInfoOutputDTO))]
|
|
public class GetMarketInfoFunctionBase : FunctionMessage
|
|
{
|
|
[Parameter("address", "dataStore", 1)] public virtual string DataStore { get; set; }
|
|
[Parameter("tuple", "prices", 2)] public virtual MarketPrices Prices { get; set; }
|
|
[Parameter("address", "marketKey", 3)] public virtual string MarketKey { get; set; }
|
|
}
|
|
|
|
public partial class GetMarketInfoListFunction : GetMarketInfoListFunctionBase
|
|
{
|
|
}
|
|
|
|
[Function("getMarketInfoList", typeof(GetMarketInfoListOutputDTO))]
|
|
public class GetMarketInfoListFunctionBase : FunctionMessage
|
|
{
|
|
[Parameter("address", "dataStore", 1)] public virtual string DataStore { get; set; }
|
|
|
|
[Parameter("tuple[]", "marketPricesList", 2)]
|
|
public virtual List<MarketPrices> MarketPricesList { get; set; }
|
|
|
|
[Parameter("uint256", "start", 3)] public virtual BigInteger Start { get; set; }
|
|
[Parameter("uint256", "end", 4)] public virtual BigInteger End { get; set; }
|
|
}
|
|
|
|
public partial class GetMarketTokenPriceFunction : GetMarketTokenPriceFunctionBase
|
|
{
|
|
}
|
|
|
|
[Function("getMarketTokenPrice", typeof(GetMarketTokenPriceOutputDTO))]
|
|
public class GetMarketTokenPriceFunctionBase : FunctionMessage
|
|
{
|
|
[Parameter("address", "dataStore", 1)] public virtual string DataStore { get; set; }
|
|
[Parameter("tuple", "market", 2)] public virtual MarketsProps Market { get; set; }
|
|
|
|
[Parameter("tuple", "indexTokenPrice", 3)]
|
|
public virtual MarketPrice IndexTokenPrice { get; set; }
|
|
|
|
[Parameter("tuple", "longTokenPrice", 4)]
|
|
public virtual MarketPrice LongTokenPrice { get; set; }
|
|
|
|
[Parameter("tuple", "shortTokenPrice", 5)]
|
|
public virtual MarketPrice ShortTokenPrice { get; set; }
|
|
|
|
[Parameter("bytes32", "pnlFactorType", 6)]
|
|
public virtual byte[] PnlFactorType { get; set; }
|
|
|
|
[Parameter("bool", "maximize", 7)] public virtual bool Maximize { get; set; }
|
|
}
|
|
|
|
public partial class GetMarketsFunction : GetMarketsFunctionBase
|
|
{
|
|
}
|
|
|
|
[Function("getMarkets", typeof(GetMarketsOutputDTO))]
|
|
public class GetMarketsFunctionBase : FunctionMessage
|
|
{
|
|
[Parameter("address", "dataStore", 1)] public virtual string DataStore { get; set; }
|
|
[Parameter("uint256", "start", 2)] public virtual BigInteger Start { get; set; }
|
|
[Parameter("uint256", "end", 3)] public virtual BigInteger End { get; set; }
|
|
}
|
|
|
|
public partial class GetNetPnlFunction : GetNetPnlFunctionBase
|
|
{
|
|
}
|
|
|
|
[Function("getNetPnl", "int256")]
|
|
public class GetNetPnlFunctionBase : FunctionMessage
|
|
{
|
|
[Parameter("address", "dataStore", 1)] public virtual string DataStore { get; set; }
|
|
[Parameter("tuple", "market", 2)] public virtual Props Market { get; set; }
|
|
|
|
[Parameter("tuple", "indexTokenPrice", 3)]
|
|
public virtual Props IndexTokenPrice { get; set; }
|
|
|
|
[Parameter("bool", "maximize", 4)] public virtual bool Maximize { get; set; }
|
|
}
|
|
|
|
public partial class GetOpenInterestWithPnlFunction : GetOpenInterestWithPnlFunctionBase
|
|
{
|
|
}
|
|
|
|
[Function("getOpenInterestWithPnl", "int256")]
|
|
public class GetOpenInterestWithPnlFunctionBase : FunctionMessage
|
|
{
|
|
[Parameter("address", "dataStore", 1)] public virtual string DataStore { get; set; }
|
|
[Parameter("tuple", "market", 2)] public virtual Props Market { get; set; }
|
|
|
|
[Parameter("tuple", "indexTokenPrice", 3)]
|
|
public virtual Props IndexTokenPrice { get; set; }
|
|
|
|
[Parameter("bool", "isLong", 4)] public virtual bool IsLong { get; set; }
|
|
[Parameter("bool", "maximize", 5)] public virtual bool Maximize { get; set; }
|
|
}
|
|
|
|
public partial class GetOrderFunction : GetOrderFunctionBase
|
|
{
|
|
}
|
|
|
|
[Function("getOrder", typeof(GetOrderOutputDTO))]
|
|
public class GetOrderFunctionBase : FunctionMessage
|
|
{
|
|
[Parameter("address", "dataStore", 1)] public virtual string DataStore { get; set; }
|
|
[Parameter("bytes32", "key", 2)] public virtual byte[] Key { get; set; }
|
|
}
|
|
|
|
public partial class GetPnlFunction : GetPnlFunctionBase
|
|
{
|
|
}
|
|
|
|
[Function("getPnl", "int256")]
|
|
public class GetPnlFunctionBase : FunctionMessage
|
|
{
|
|
[Parameter("address", "dataStore", 1)] public virtual string DataStore { get; set; }
|
|
[Parameter("tuple", "market", 2)] public virtual Props Market { get; set; }
|
|
|
|
[Parameter("tuple", "indexTokenPrice", 3)]
|
|
public virtual Props IndexTokenPrice { get; set; }
|
|
|
|
[Parameter("bool", "isLong", 4)] public virtual bool IsLong { get; set; }
|
|
[Parameter("bool", "maximize", 5)] public virtual bool Maximize { get; set; }
|
|
}
|
|
|
|
public partial class GetPnlToPoolFactorFunction : GetPnlToPoolFactorFunctionBase
|
|
{
|
|
}
|
|
|
|
[Function("getPnlToPoolFactor", "int256")]
|
|
public class GetPnlToPoolFactorFunctionBase : FunctionMessage
|
|
{
|
|
[Parameter("address", "dataStore", 1)] public virtual string DataStore { get; set; }
|
|
|
|
[Parameter("address", "marketAddress", 2)]
|
|
public virtual string MarketAddress { get; set; }
|
|
|
|
[Parameter("tuple", "prices", 3)] public virtual MarketPrices Prices { get; set; }
|
|
[Parameter("bool", "isLong", 4)] public virtual bool IsLong { get; set; }
|
|
[Parameter("bool", "maximize", 5)] public virtual bool Maximize { get; set; }
|
|
}
|
|
|
|
public partial class GetPositionFunction : GetPositionFunctionBase
|
|
{
|
|
}
|
|
|
|
[Function("getPosition", typeof(GetPositionOutputDTO))]
|
|
public class GetPositionFunctionBase : FunctionMessage
|
|
{
|
|
[Parameter("address", "dataStore", 1)] public virtual string DataStore { get; set; }
|
|
[Parameter("bytes32", "key", 2)] public virtual byte[] Key { get; set; }
|
|
}
|
|
|
|
public partial class GetPositionInfoFunction : GetPositionInfoFunctionBase
|
|
{
|
|
}
|
|
|
|
[Function("getPositionInfo", typeof(GetPositionInfoOutputDTO))]
|
|
public class GetPositionInfoFunctionBase : FunctionMessage
|
|
{
|
|
[Parameter("address", "dataStore", 1)] public virtual string DataStore { get; set; }
|
|
|
|
[Parameter("address", "referralStorage", 2)]
|
|
public virtual string ReferralStorage { get; set; }
|
|
|
|
[Parameter("bytes32", "positionKey", 3)]
|
|
public virtual byte[] PositionKey { get; set; }
|
|
|
|
[Parameter("tuple", "prices", 4)] public virtual MarketPrices Prices { get; set; }
|
|
|
|
[Parameter("uint256", "sizeDeltaUsd", 5)]
|
|
public virtual BigInteger SizeDeltaUsd { get; set; }
|
|
|
|
[Parameter("address", "uiFeeReceiver", 6)]
|
|
public virtual string UiFeeReceiver { get; set; }
|
|
|
|
[Parameter("bool", "usePositionSizeAsSizeDeltaUsd", 7)]
|
|
public virtual bool UsePositionSizeAsSizeDeltaUsd { get; set; }
|
|
}
|
|
|
|
public partial class GetPositionPnlUsdFunction : GetPositionPnlUsdFunctionBase
|
|
{
|
|
}
|
|
|
|
[Function("getPositionPnlUsd", typeof(GetPositionPnlUsdOutputDTO))]
|
|
public class GetPositionPnlUsdFunctionBase : FunctionMessage
|
|
{
|
|
[Parameter("address", "dataStore", 1)] public virtual string DataStore { get; set; }
|
|
[Parameter("tuple", "market", 2)] public virtual Props Market { get; set; }
|
|
[Parameter("tuple", "prices", 3)] public virtual MarketPrices Prices { get; set; }
|
|
|
|
[Parameter("bytes32", "positionKey", 4)]
|
|
public virtual byte[] PositionKey { get; set; }
|
|
|
|
[Parameter("uint256", "sizeDeltaUsd", 5)]
|
|
public virtual BigInteger SizeDeltaUsd { get; set; }
|
|
}
|
|
|
|
public partial class GetShiftFunction : GetShiftFunctionBase
|
|
{
|
|
}
|
|
|
|
[Function("getShift", typeof(GetShiftOutputDTO))]
|
|
public class GetShiftFunctionBase : FunctionMessage
|
|
{
|
|
[Parameter("address", "dataStore", 1)] public virtual string DataStore { get; set; }
|
|
[Parameter("bytes32", "key", 2)] public virtual byte[] Key { get; set; }
|
|
}
|
|
|
|
public partial class GetSwapAmountOutFunction : GetSwapAmountOutFunctionBase
|
|
{
|
|
}
|
|
|
|
[Function("getSwapAmountOut", typeof(GetSwapAmountOutOutputDTO))]
|
|
public class GetSwapAmountOutFunctionBase : FunctionMessage
|
|
{
|
|
[Parameter("address", "dataStore", 1)] public virtual string DataStore { get; set; }
|
|
[Parameter("tuple", "market", 2)] public virtual Props Market { get; set; }
|
|
[Parameter("tuple", "prices", 3)] public virtual MarketPrices Prices { get; set; }
|
|
[Parameter("address", "tokenIn", 4)] public virtual string TokenIn { get; set; }
|
|
[Parameter("uint256", "amountIn", 5)] public virtual BigInteger AmountIn { get; set; }
|
|
|
|
[Parameter("address", "uiFeeReceiver", 6)]
|
|
public virtual string UiFeeReceiver { get; set; }
|
|
}
|
|
|
|
public partial class GetSwapPriceImpactFunction : GetSwapPriceImpactFunctionBase
|
|
{
|
|
}
|
|
|
|
[Function("getSwapPriceImpact", typeof(GetSwapPriceImpactOutputDTO))]
|
|
public class GetSwapPriceImpactFunctionBase : FunctionMessage
|
|
{
|
|
[Parameter("address", "dataStore", 1)] public virtual string DataStore { get; set; }
|
|
[Parameter("address", "marketKey", 2)] public virtual string MarketKey { get; set; }
|
|
[Parameter("address", "tokenIn", 3)] public virtual string TokenIn { get; set; }
|
|
[Parameter("address", "tokenOut", 4)] public virtual string TokenOut { get; set; }
|
|
[Parameter("uint256", "amountIn", 5)] public virtual BigInteger AmountIn { get; set; }
|
|
|
|
[Parameter("tuple", "tokenInPrice", 6)]
|
|
public virtual Props TokenInPrice { get; set; }
|
|
|
|
[Parameter("tuple", "tokenOutPrice", 7)]
|
|
public virtual Props TokenOutPrice { get; set; }
|
|
}
|
|
|
|
public partial class GetWithdrawalFunction : GetWithdrawalFunctionBase
|
|
{
|
|
}
|
|
|
|
[Function("getWithdrawal", typeof(GetWithdrawalOutputDTO))]
|
|
public class GetWithdrawalFunctionBase : FunctionMessage
|
|
{
|
|
[Parameter("address", "dataStore", 1)] public virtual string DataStore { get; set; }
|
|
[Parameter("bytes32", "key", 2)] public virtual byte[] Key { get; set; }
|
|
}
|
|
|
|
public partial class GetWithdrawalAmountOutFunction : GetWithdrawalAmountOutFunctionBase
|
|
{
|
|
}
|
|
|
|
[Function("getWithdrawalAmountOut", typeof(GetWithdrawalAmountOutOutputDTO))]
|
|
public class GetWithdrawalAmountOutFunctionBase : FunctionMessage
|
|
{
|
|
[Parameter("address", "dataStore", 1)] public virtual string DataStore { get; set; }
|
|
[Parameter("tuple", "market", 2)] public virtual Props Market { get; set; }
|
|
[Parameter("tuple", "prices", 3)] public virtual MarketPrices Prices { get; set; }
|
|
|
|
[Parameter("uint256", "marketTokenAmount", 4)]
|
|
public virtual BigInteger MarketTokenAmount { get; set; }
|
|
|
|
[Parameter("address", "uiFeeReceiver", 5)]
|
|
public virtual string UiFeeReceiver { get; set; }
|
|
|
|
[Parameter("uint8", "swapPricingType", 6)]
|
|
public virtual byte SwapPricingType { get; set; }
|
|
}
|
|
|
|
public partial class DisabledMarketError : DisabledMarketErrorBase
|
|
{
|
|
}
|
|
|
|
[Error("DisabledMarket")]
|
|
public class DisabledMarketErrorBase : IErrorDTO
|
|
{
|
|
[Parameter("address", "market", 1)] public virtual string Market { get; set; }
|
|
}
|
|
|
|
public partial class EmptyMarketError : EmptyMarketErrorBase
|
|
{
|
|
}
|
|
|
|
[Error("EmptyMarket")]
|
|
public class EmptyMarketErrorBase : IErrorDTO
|
|
{
|
|
}
|
|
|
|
public partial class GetAccountOrdersOutputDTO : GetAccountOrdersOutputDTOBase
|
|
{
|
|
}
|
|
|
|
[FunctionOutput]
|
|
public class GetAccountOrdersOutputDTOBase : IFunctionOutputDTO
|
|
{
|
|
[Parameter("tuple[]", "", 1)] public virtual List<Props> ReturnValue1 { get; set; }
|
|
}
|
|
|
|
public partial class GetAccountPositionInfoListOutputDTO : GetAccountPositionInfoListOutputDTOBase
|
|
{
|
|
}
|
|
|
|
[FunctionOutput]
|
|
public class GetAccountPositionInfoListOutputDTOBase : IFunctionOutputDTO
|
|
{
|
|
[Parameter("tuple[]", "", 1)] public virtual List<PositionInfo> ReturnValue1 { get; set; }
|
|
}
|
|
|
|
public partial class GetAccountPositionsOutputDTO : GetAccountPositionsOutputDTOBase
|
|
{
|
|
}
|
|
|
|
[FunctionOutput]
|
|
public class GetAccountPositionsOutputDTOBase : IFunctionOutputDTO
|
|
{
|
|
[Parameter("tuple[]", "", 1)] public virtual List<Props> ReturnValue1 { get; set; }
|
|
}
|
|
|
|
public partial class GetAdlStateOutputDTO : GetAdlStateOutputDTOBase
|
|
{
|
|
}
|
|
|
|
[FunctionOutput]
|
|
public class GetAdlStateOutputDTOBase : IFunctionOutputDTO
|
|
{
|
|
[Parameter("uint256", "", 1)] public virtual BigInteger ReturnValue1 { get; set; }
|
|
[Parameter("bool", "", 2)] public virtual bool ReturnValue2 { get; set; }
|
|
[Parameter("int256", "", 3)] public virtual BigInteger ReturnValue3 { get; set; }
|
|
[Parameter("uint256", "", 4)] public virtual BigInteger ReturnValue4 { get; set; }
|
|
}
|
|
|
|
public partial class GetDepositOutputDTO : GetDepositOutputDTOBase
|
|
{
|
|
}
|
|
|
|
[FunctionOutput]
|
|
public class GetDepositOutputDTOBase : IFunctionOutputDTO
|
|
{
|
|
[Parameter("tuple", "", 1)] public virtual Props ReturnValue1 { get; set; }
|
|
}
|
|
|
|
public partial class GetDepositAmountOutOutputDTO : GetDepositAmountOutOutputDTOBase
|
|
{
|
|
}
|
|
|
|
[FunctionOutput]
|
|
public class GetDepositAmountOutOutputDTOBase : IFunctionOutputDTO
|
|
{
|
|
[Parameter("uint256", "", 1)] public virtual BigInteger ReturnValue1 { get; set; }
|
|
}
|
|
|
|
public partial class GetExecutionPriceOutputDTO : GetExecutionPriceOutputDTOBase
|
|
{
|
|
}
|
|
|
|
[FunctionOutput]
|
|
public class GetExecutionPriceOutputDTOBase : IFunctionOutputDTO
|
|
{
|
|
[Parameter("tuple", "", 1)] public virtual ExecutionPriceResult ReturnValue1 { get; set; }
|
|
}
|
|
|
|
public partial class GetMarketOutputDTO : GetMarketOutputDTOBase
|
|
{
|
|
}
|
|
|
|
[FunctionOutput]
|
|
public class GetMarketOutputDTOBase : IFunctionOutputDTO
|
|
{
|
|
[Parameter("tuple", "", 1)] public virtual Props ReturnValue1 { get; set; }
|
|
}
|
|
|
|
public partial class GetMarketBySaltOutputDTO : GetMarketBySaltOutputDTOBase
|
|
{
|
|
}
|
|
|
|
[FunctionOutput]
|
|
public class GetMarketBySaltOutputDTOBase : IFunctionOutputDTO
|
|
{
|
|
[Parameter("tuple", "", 1)] public virtual Props ReturnValue1 { get; set; }
|
|
}
|
|
|
|
public partial class GetMarketInfoOutputDTO : GetMarketInfoOutputDTOBase
|
|
{
|
|
}
|
|
|
|
[FunctionOutput]
|
|
public class GetMarketInfoOutputDTOBase : IFunctionOutputDTO
|
|
{
|
|
[Parameter("tuple", "", 1)] public virtual MarketInfo ReturnValue1 { get; set; }
|
|
}
|
|
|
|
public partial class GetMarketInfoListOutputDTO : GetMarketInfoListOutputDTOBase
|
|
{
|
|
}
|
|
|
|
[FunctionOutput]
|
|
public class GetMarketInfoListOutputDTOBase : IFunctionOutputDTO
|
|
{
|
|
[Parameter("tuple[]", "", 1)] public virtual List<MarketInfo> ReturnValue1 { get; set; }
|
|
}
|
|
|
|
public partial class GetMarketTokenPriceOutputDTO : GetMarketTokenPriceOutputDTOBase
|
|
{
|
|
}
|
|
|
|
[FunctionOutput]
|
|
public class GetMarketTokenPriceOutputDTOBase : IFunctionOutputDTO
|
|
{
|
|
[Parameter("int256", "", 1)] public virtual BigInteger ReturnValue1 { get; set; }
|
|
[Parameter("tuple", "", 2)] public virtual MarketPoolValueInfo ReturnValue2 { get; set; }
|
|
}
|
|
|
|
public class MarketPoolValueInfo
|
|
{
|
|
[Parameter("int256", "poolValue", 1)]public BigInteger PoolValue { get; set; }
|
|
[Parameter("int256", "longPnl", 2)]public BigInteger LongPnl { get; set; }
|
|
[Parameter("int256", "shortPnl", 3)]public BigInteger ShortPnl { get; set; }
|
|
[Parameter("int256", "NetPnl", 4)]public BigInteger NetPnl { get; set; }
|
|
[Parameter("int256", "longTokenAmount", 5)]public BigInteger LongTokenAmount { get; set; }
|
|
[Parameter("int256", "shortTokenAmount", 6)]public BigInteger ShortTokenAmount { get; set; }
|
|
[Parameter("int256", "longTokenUsd", 7)]public BigInteger LongTokenUsd { get; set; }
|
|
[Parameter("int256", "shortTokenUsd", 8)]public BigInteger ShortTokenUsd { get; set; }
|
|
[Parameter("int256", "totalBorrowingFees", 9)]public BigInteger TotalBorrowingFees { get; set; }
|
|
[Parameter("int256", "borrowingFeePoolFactor", 10)]public BigInteger BorrowingFeePoolFactor { get; set; }
|
|
[Parameter("int256", "impactPoolAmount", 11)]public BigInteger ImpactPoolAmount { get; set; }
|
|
}
|
|
|
|
public partial class GetMarketsOutputDTO : GetMarketsOutputDTOBase
|
|
{
|
|
}
|
|
|
|
[FunctionOutput]
|
|
public class GetMarketsOutputDTOBase : IFunctionOutputDTO
|
|
{
|
|
[Parameter("tuple[]", "", 1)] public virtual List<MarketsProps> ReturnValue1 { get; set; }
|
|
}
|
|
|
|
|
|
public partial class GetNetPnlOutputDTO : GetNetPnlOutputDTOBase
|
|
{
|
|
}
|
|
|
|
[FunctionOutput]
|
|
public class GetNetPnlOutputDTOBase : IFunctionOutputDTO
|
|
{
|
|
[Parameter("int256", "", 1)] public virtual BigInteger ReturnValue1 { get; set; }
|
|
}
|
|
|
|
public partial class GetOpenInterestWithPnlOutputDTO : GetOpenInterestWithPnlOutputDTOBase
|
|
{
|
|
}
|
|
|
|
[FunctionOutput]
|
|
public class GetOpenInterestWithPnlOutputDTOBase : IFunctionOutputDTO
|
|
{
|
|
[Parameter("int256", "", 1)] public virtual BigInteger ReturnValue1 { get; set; }
|
|
}
|
|
|
|
public partial class GetOrderOutputDTO : GetOrderOutputDTOBase
|
|
{
|
|
}
|
|
|
|
[FunctionOutput]
|
|
public class GetOrderOutputDTOBase : IFunctionOutputDTO
|
|
{
|
|
[Parameter("tuple", "", 1)] public virtual Props ReturnValue1 { get; set; }
|
|
}
|
|
|
|
public partial class GetPnlOutputDTO : GetPnlOutputDTOBase
|
|
{
|
|
}
|
|
|
|
[FunctionOutput]
|
|
public class GetPnlOutputDTOBase : IFunctionOutputDTO
|
|
{
|
|
[Parameter("int256", "", 1)] public virtual BigInteger ReturnValue1 { get; set; }
|
|
}
|
|
|
|
public partial class GetPnlToPoolFactorOutputDTO : GetPnlToPoolFactorOutputDTOBase
|
|
{
|
|
}
|
|
|
|
[FunctionOutput]
|
|
public class GetPnlToPoolFactorOutputDTOBase : IFunctionOutputDTO
|
|
{
|
|
[Parameter("int256", "", 1)] public virtual BigInteger ReturnValue1 { get; set; }
|
|
}
|
|
|
|
public partial class GetPositionOutputDTO : GetPositionOutputDTOBase
|
|
{
|
|
}
|
|
|
|
[FunctionOutput]
|
|
public class GetPositionOutputDTOBase : IFunctionOutputDTO
|
|
{
|
|
[Parameter("tuple", "", 1)] public virtual Props ReturnValue1 { get; set; }
|
|
}
|
|
|
|
public partial class GetPositionInfoOutputDTO : GetPositionInfoOutputDTOBase
|
|
{
|
|
}
|
|
|
|
[FunctionOutput]
|
|
public class GetPositionInfoOutputDTOBase : IFunctionOutputDTO
|
|
{
|
|
[Parameter("tuple", "", 1)] public virtual PositionInfo ReturnValue1 { get; set; }
|
|
}
|
|
|
|
public partial class GetPositionPnlUsdOutputDTO : GetPositionPnlUsdOutputDTOBase
|
|
{
|
|
}
|
|
|
|
[FunctionOutput]
|
|
public class GetPositionPnlUsdOutputDTOBase : IFunctionOutputDTO
|
|
{
|
|
[Parameter("int256", "", 1)] public virtual BigInteger ReturnValue1 { get; set; }
|
|
[Parameter("int256", "", 2)] public virtual BigInteger ReturnValue2 { get; set; }
|
|
[Parameter("uint256", "", 3)] public virtual BigInteger ReturnValue3 { get; set; }
|
|
}
|
|
|
|
public partial class GetShiftOutputDTO : GetShiftOutputDTOBase
|
|
{
|
|
}
|
|
|
|
[FunctionOutput]
|
|
public class GetShiftOutputDTOBase : IFunctionOutputDTO
|
|
{
|
|
[Parameter("tuple", "", 1)] public virtual Props ReturnValue1 { get; set; }
|
|
}
|
|
|
|
public partial class GetSwapAmountOutOutputDTO : GetSwapAmountOutOutputDTOBase
|
|
{
|
|
}
|
|
|
|
[FunctionOutput]
|
|
public class GetSwapAmountOutOutputDTOBase : IFunctionOutputDTO
|
|
{
|
|
[Parameter("uint256", "", 1)] public virtual BigInteger ReturnValue1 { get; set; }
|
|
[Parameter("int256", "", 2)] public virtual BigInteger ReturnValue2 { get; set; }
|
|
[Parameter("tuple", "fees", 3)] public virtual SwapFees Fees { get; set; }
|
|
}
|
|
|
|
public partial class GetSwapPriceImpactOutputDTO : GetSwapPriceImpactOutputDTOBase
|
|
{
|
|
}
|
|
|
|
[FunctionOutput]
|
|
public class GetSwapPriceImpactOutputDTOBase : IFunctionOutputDTO
|
|
{
|
|
[Parameter("int256", "", 1)] public virtual BigInteger ReturnValue1 { get; set; }
|
|
[Parameter("int256", "", 2)] public virtual BigInteger ReturnValue2 { get; set; }
|
|
[Parameter("int256", "", 3)] public virtual BigInteger ReturnValue3 { get; set; }
|
|
}
|
|
|
|
public partial class GetWithdrawalOutputDTO : GetWithdrawalOutputDTOBase
|
|
{
|
|
}
|
|
|
|
[FunctionOutput]
|
|
public class GetWithdrawalOutputDTOBase : IFunctionOutputDTO
|
|
{
|
|
[Parameter("tuple", "", 1)] public virtual Props ReturnValue1 { get; set; }
|
|
}
|
|
|
|
public partial class GetWithdrawalAmountOutOutputDTO : GetWithdrawalAmountOutOutputDTOBase
|
|
{
|
|
}
|
|
|
|
[FunctionOutput]
|
|
public class GetWithdrawalAmountOutOutputDTOBase : IFunctionOutputDTO
|
|
{
|
|
[Parameter("uint256", "", 1)] public virtual BigInteger ReturnValue1 { get; set; }
|
|
[Parameter("uint256", "", 2)] public virtual BigInteger ReturnValue2 { get; set; }
|
|
}
|
|
|
|
public class MarketsProps
|
|
{
|
|
[Parameter("address", "marketToken", 1)]
|
|
public string MarketToken { get; set; }
|
|
|
|
[Parameter("address", "indexToken", 2)]
|
|
public string IndexToken { get; set; }
|
|
|
|
[Parameter("address", "longToken", 3)] public string LongToken { get; set; }
|
|
|
|
[Parameter("address", "shortToken", 4)]
|
|
public string ShortToken { get; set; }
|
|
}
|
|
} |